/* Allgemeine Einstellungen */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: white;
}


/* Header */

header {
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

header p {
    color: #aaaaaa;
    font-size: 18px;
}


/* Zurück-Link */

.back-link {
    display: inline-block;
    margin-bottom: 20px;

    color: #aaaaaa;
    text-decoration: none;
}

.back-link:hover {
    color: white;
}


/* Grid für die Karten */

.card-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
    max-width: 1000px;

    margin: 0 auto;
    padding: 20px;
}


/* Einzelne Karten */

.card {
    height: 300px;

    background-color: #252525;

    border: 1px solid #444444;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    text-decoration: none;

    font-size: 24px;
    font-weight: bold;

    transition: transform 0.2s, background-color 0.2s;

    position: relative;
    overflow: hidden;
}


/* Hover-Effekt */

.card:hover {
    background-color: #383838;
    transform: scale(1.03);
}


/* Text auf den Karten */

.nominee[open] span {
    position: relative;
    z-index: 1;

    background-color: rgba(0, 0, 0, 0.6);

    padding: 10px 20px;
    border-radius: 6px;
}

/* Name unten auf den Bild-Karten */

.card-name {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    padding: 15px 10px;

    background-color: rgba(0, 0, 0, 0.65);

    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    pointer-events: none;
    z-index: 2;
}


/* Nominierten-Liste */

.nominee-list {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    
}


/* Einzelner Nominierter */

.nominee {
    background-color: #252525;

    border: 1px solid #444444;
    border-radius: 12px;

    margin-bottom: 15px;

    overflow: hidden;
}


/* Klickbarer Name */

.nominee summary {
    cursor: pointer;
    list-style: none;

    padding: 20px;

    font-size: 22px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Standard-Pfeil entfernen */

.nominee summary::-webkit-details-marker {
    display: none;
}


/* Plus-Symbol */

.nominee summary::after {
    content: "+";

    color: #aaaaaa;
    font-size: 26px;
}


/* Symbol ändern, wenn geöffnet */

.nominee[open] summary::after {
    content: "−";
}


/* Inhalt des Nominierten */

.nominee-content {
    border-top: 1px solid #444444;

    padding: 20px;

    color: #cccccc;
    line-height: 1.6;
}


/* Bilder im Inhalt */

.nominee-content img {
    max-width: 100%;
    height: auto;

    border-radius: 8px;

    display: block;
    margin: 15px 0;
}

.card img,
.card video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;

    margin: 0;
    padding: 0;
    border-radius: 0;
}


/* Videos im Inhalt */

.nominee-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;

    border: none;
    border-radius: 8px;

    margin-top: 15px;
}

/* Startseite liste */

.basic-list{
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Startseite elemente */

.basic {
    background-color: #252525;

    border: 1px solid #444444;
    border-radius: 12px;

    margin-bottom: 15px;

    overflow: hidden;
    cursor: pointer;
    list-style: none;

    padding: 20px;

    font-size: 22px;
    font-weight: bold;
    color:white;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Voting-Seite */

.voting-layout {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);

    gap: 20px;

    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Allgemeine Bildeinstellungen */

.voting-image {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

/* Erstes Bild: links oben */

.image-cat {
    grid-column: 1;
    grid-row: 1;
}

/* Zweites Bild: mittig unten */

.image-dog {
    grid-column: 2;
    grid-row: 2;
}

/* Drittes Bild: rechts mittig */

.image-bob {
    grid-column: 3;
    grid-row: 1 / 3;

    align-self: center;
    height: 300px;
}

/* Vergrößerte Bildansicht */

.lightbox {
    display: none;

    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.9);

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img,
.lightbox video {
    max-width: 95%;
    max-height: 90%;

    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;

    font-size: 40px;
    color: white;

    cursor: pointer;
}

.text-card {
    height: auto;
    min-height: 200px;

    padding: 25px;

    overflow: visible;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    overflow-wrap: anywhere;
    word-break: normal;
}

.text-card p {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
}

.text-card span {
    display: block;
    margin-top: 15px;

    font-size: 16px;
    color: #aaaaaa;
}


/* Tablets und kleinere Bildschirme */

@media (max-width: 700px) {

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .voting-layout {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .voting-image {
        height: 250px;
    }

    .image-cat {
        grid-column: 1;
        grid-row: 1;
    }

    .image-dog {
        grid-column: 2;
        grid-row: 1;
    }

    .image-bob {
        grid-column: 1 / 3;
        grid-row: 2;

        justify-self: center;
        width: 100%;
        max-width: 350px;
        height: 300px;
    }

}
/* Smartphones */

@media (max-width: 450px) {

    .card-grid {
        grid-template-columns: 1fr;
    }

    .voting-layout {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 140px);
        gap: 8px;
        padding: 10px;
    }

    .voting-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .image-cat {
        grid-column: 1;
        grid-row: 1;
    }

    .image-dog {
        grid-column: 2;
        grid-row: 2;
    }

    .image-bob {
        grid-column: 3;
        grid-row: 1 / 3;
        height: 140px;
        align-self: center;
    }

}