/* Grundfarben */
:root {
    --brown: #f08b07;      /* rötliches Fuchsbraun – bei Bedarf anpassen */
    --white: #ffffff;
    --text-dark: #2b1a16;
}

/* Grundlayout */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
}

/* Hintergrundbild für bestimmte Seiten */
.body-bg-image {
    background-image: url("chefsofa.jpeg");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

/* Braunes Seitenlayout (Fotos, Videos, Memory, Impressum) */
.body-brown {
    background-color: var(--brown);
    color: var(--white);
}

/* Inhaltbox, damit Text lesbar bleibt */
.page-wrapper {
    max-width: 650px;
    margin-left:  auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.5); /* leicht transparentes Weiß */
    color: var(--text-dark);
}

/* Variante für braune Seiten: weiße Box auf braunem Hintergrund */
.page-wrapper-brown {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--white);
    color: var(--text-dark);
}

/* Navigation oben */
.navbar {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    background-color: var(--brown);
}

.navbar a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 4px;
}

.navbar a:hover {
    background-color: var(--white);
    color: var(--brown);
}

/* Überschriften */
h1 {
    margin-top: 0;
}



/* Galerie-Layout */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.photo {
    width: calc(33.333% - 20px);
    text-align: center;
}

.thumb {
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.thumb:hover {
    transform: scale(1.05);
}

.info {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.hidden {
    display: none;
}


.video-box {
    margin-bottom: 25px;
}

.video-box video {
    width: 100%;
    max-width: 200px;
    border-radius: 6px;
}


#memory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    max-width: 360px;   /* WICHTIG: Gesamtbreite begrenzen */
    margin-left: auto;
    margin-right: auto;
}

.memory-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #ebb208;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.4s;
}

.memory-card.flip {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
}

.front {
    background-color: #eff304;
}

.back {
    transform: rotateY(180deg);
    background-size: cover;
    background-position: center;
}

/* --- Mobile Optimierung für Yoko-Projekt --- */
@media (max-width: 650px) {

    /* 1. Videos responsive */
    video {
        width: 100%;
        height: auto;
        display: block;
    }

    /* 2. Navbar mobil besser lesbar */
    .navbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .navbar a {
        padding: 10px 12px;
        font-size: 1rem;
    }

    /* 3. page-wrapper mit angenehmem Rand */
    .page-wrapper {
        padding: 0 15px;
        margin: 0;
    }

    /* 4. Mobile Typografie */
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    p  { font-size: 1rem; line-height: 1.5; }
}

/* Smartphone-Optimierung für das Memory */
@media (max-width: 480px) {
    .memory-grid {
        grid-template-columns: repeat(3, 1fr);   /* weiterhin 3 Spalten */
        gap: 8px;                                 /* kleinerer Abstand */
    }

    .memory-card {
        width: 90px;      /* kleinere Karten */
        height: 90px;
    }

    .memory-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.btn-brown-up {
    display: inline-block;
    padding: 10px 16px;
    background-color: var(--brown);
    color: white;                 /* deine gewünschte Textfarbe */
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 25px;
}

.btn-brown-up:hover {
    background-color: #c67405;   /* etwas dunklerer Braunton */
}

