/* ==========================================================
   Backhausfest Ginolfs
   Grundlayout
========================================================== */

:root{

    --primary:#7A4E2D;
    --primary-dark:#5D3920;
    --accent:#C67B37;

    --background:#F7F3EC;
    --white:#ffffff;

    --text:#2D2D2D;
    --text-light:#666666;

    --border:#E8E2D8;

    --shadow:0 10px 30px rgba(0,0,0,.08);

    --radius:18px;

    --max-width:1200px;

}

/* ==========================================================
   RESET
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

	font-family:"Inter",sans-serif;

    background:var(--background);

    color:var(--text);

    line-height:1.7;

}

h1,h2,h3{

    font-family:"Merriweather",serif;

}

/* ==========================================================
   CONTAINER
========================================================== */

.container{

    width:min(92%,var(--max-width));

    margin:auto;

}

/* ==========================================================
   LINKS
========================================================== */

a{

    color:inherit;

    text-decoration:none;

}

/* ==========================================================
   HEADER
========================================================== */

.header{

    position:sticky;

    top:0;

    z-index:1000;

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(10px);

    box-shadow:0 3px 15px rgba(0,0,0,.05);

}

.header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    min-height:80px;

}

.logo{

    font-size:1.5rem;

    font-weight:700;

    color:var(--primary);

}

.navigation ul{

    display:flex;

    gap:32px;

    list-style:none;

}

.navigation a{

    transition:.25s;

    font-weight:600;

}

.navigation a:hover{

    color:var(--primary);

}

/* ==========================================================
   MOBILE BUTTON
========================================================== */

.menuButton{

    display:none;

    background:none;

    border:none;

    font-size:30px;

    cursor:pointer;

}

/* ==========================================================
   HERO
========================================================== */

.hero{

    position:relative;

    min-height:80vh;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    color:white;
	
	overflow:hidden;

    background:
        url("../img/hero.jpg")
        center center/cover
        no-repeat;

}

.hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:url("../img/hero.jpg")
               center center/cover
               no-repeat;

    animation:heroZoom 18s ease-in-out infinite alternate;

}

.heroInfo{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:25px;

    margin:25px 0;

    font-size:1.1rem;

    font-weight:600;

}

@keyframes heroZoom{

    from{

        transform:scale(1);

    }

    to{

        transform:scale(1.08);

    }

}

.heroOverlay{

    position:absolute;

    inset:0;

	background:
	linear-gradient(
		rgba(0,0,0,.55),
		rgba(0,0,0,.45),
		rgba(0,0,0,.65)
	);

}

.heroContent{

    position:relative;

    z-index:2;

    width:min(90%,800px);

}

.heroSubline{

    text-transform:uppercase;

    letter-spacing:3px;

    margin-bottom:20px;

    opacity:.9;

}

.hero h1{

    font-size:clamp(2.8rem,7vw,5rem);

    margin-bottom:20px;

}

.heroText{

    font-size:1.25rem;

    margin-bottom:40px;

}

/* ==========================================================
   HERO INFO
========================================================== */

.heroInfo{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:18px;

    margin-bottom:35px;

}

.heroInfoItem{

    display:flex;

    align-items:center;

    gap:10px;

    padding:10px 18px;

    border-radius:999px;

    background:rgba(255,255,255,.15);

    backdrop-filter:blur(8px);

    font-weight:600;

}

.heroInfoIcon{

    font-size:1.2rem;

}

/* ==========================================================
   BUTTONS
========================================================== */

.button{

    display:inline-block;

    padding:15px 34px;

    border-radius:999px;

    background:var(--accent);

    color:white;

    font-weight:700;

    transition:.25s;

    margin:8px;

}

.button{

    box-shadow:0 8px 20px rgba(0,0,0,.12);

}

.button:hover{

    background:var(--primary);

    transform:translateY(-4px);

    box-shadow:0 18px 35px rgba(0,0,0,.18);

}

.secondary{

    background:white;

    color:var(--primary);

}

.secondary:hover{

    background:#f0ece7;

}

/* ==========================================================
   SECTION
========================================================== */

section{

    padding:100px 0;

    position:relative;

}

section:nth-of-type(even){

    background:#ffffff;

}

section:nth-of-type(odd){

    background:#f8f4ed;

}

section h2{

    text-align:center;

    color:var(--primary);

    font-size:clamp(2rem,4vw,3rem);

    margin-bottom:18px;

    position:relative;

}

section h2::after{

    content:"";

    display:block;

    width:90px;

    height:4px;

    margin:18px auto 0;

    border-radius:20px;

    background:var(--accent);

}

/* ==========================================================
   FLYER
========================================================== */

.flyerWrapper{

    display:flex;
    justify-content:center;

}

.flyerImage{

    width:100%;
    max-width:650px;

    border-radius:18px;

    box-shadow:var(--shadow);

    transition:.35s;

    cursor:pointer;

}

.flyerImage:hover{

    transform:translateY(-8px);

}

/* ==========================================================
   PROGRAMM
========================================================== */

.programCard{

    max-width:700px;

    margin:auto;

    background:white;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    overflow:hidden;

}

.programmEintrag{

    display:flex;

    align-items:center;

    padding:22px 30px;

    border-bottom:1px solid var(--border);

}

.programmEintrag:last-child{

    border-bottom:none;

}

.programmZeit{

    width:110px;

    color:var(--primary);

    font-weight:700;

    font-size:1.1rem;

}

.programmTitel{

    flex:1;

    font-size:1.05rem;

}

/* ==========================================================
   HIGHLIGHTS
========================================================== */

.cardGrid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.card{

    background:white;

    padding:35px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    text-align:center;

    transition:.3s;

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

    height:100%;

}

.card:hover{

    transform:translateY(-10px);

}

.card span{

    font-size:3rem;

}

.card h3{

    margin:20px 0 10px;

    color:var(--primary);

}

.card p{

    color:var(--text-light);

}

/* ==========================================================
   COUNTDOWN
========================================================== */

.countdownGrid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(130px,1fr));

    gap:20px;

    max-width:800px;

    margin:auto;
	


}

.countdownCard{

    background:white;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    padding:30px;

    text-align:center;
	
	transition:.3s;

}

.countdownCard:hover{

    transform:translateY(-6px);

}

.countdownValue{

    display:block;

    font-size:3rem;

    font-weight:700;

    color:var(--primary);

}

.countdownLabel{

    display:block;

    margin-top:10px;

    color:var(--text-light);

}

.countdownFinished{

    text-align:center;

    font-size:2rem;

    font-weight:bold;

    color:var(--primary);

}

/* ==========================================================
   INSTAGRAM
========================================================== */

.instagramCard{

    background:linear-gradient(
        135deg,
        #833AB4,
        #FD1D1D,
        #FCAF45
    );

    color:white;

    border-radius:var(--radius);

    padding:60px;

    text-align:center;

    box-shadow:var(--shadow);

}

.instagramCard h2{

    color:white;

}

.instagramCard p{

    margin:25px 0;

    font-size:1.1rem;

}

/* ==========================================================
   FOOTER
========================================================== */

footer{

    margin-top:90px;

    background:var(--primary);

    color:white;

}

.footerGrid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:50px;

    padding:70px 0;

}

.footerColumn h4{

    margin-bottom:18px;

}

.footerColumn ul{

    list-style:none;

}

.footerColumn li{

    margin-bottom:12px;

}

.footerColumn a{

    opacity:.85;

    transition:.25s;

}

.footerColumn a:hover{

    opacity:1;

}

.footerLogo{

    width:90px;

    margin-bottom:20px;

}

.footerInstagram{

    display:inline-block;

    margin-top:15px;

    padding:12px 20px;

    border-radius:999px;

    background:rgba(255,255,255,.15);

}

.footerInstagram:hover{

    background:rgba(255,255,255,.25);

}

.footerBottom{

    text-align:center;

    padding:25px;

    background:rgba(0,0,0,.12);

    font-size:.95rem;

}

/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:900px){

    .navigation{

        display:none;

    }

    .menuButton{

        display:block;

    }

    .hero{

        min-height:70vh;

    }

    .heroButtons{

        display:flex;

        flex-direction:column;

    }

    .button{

        width:100%;

    }

}

/* ==========================================================
   HEADER ANIMATION
========================================================== */

.header{

    transition:.3s;

}

.headerSmall{

    min-height:65px;

    box-shadow:0 10px 25px rgba(0,0,0,.12);

}

/* ==========================================================
   MOBILE NAVIGATION
========================================================== */

@media(max-width:900px){

    .navigation{

        position:absolute;

        top:80px;

        left:0;
        right:0;

        background:white;

        display:none;

        padding:25px;

        box-shadow:0 15px 30px rgba(0,0,0,.12);

    }

    .navigation.navigationOpen{

        display:block;

        animation:fadeDown .25s ease;

    }

    .navigation ul{

        flex-direction:column;

        gap:20px;

    }

}

@keyframes fadeDown{

    from{

        opacity:0;
        transform:translateY(-15px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}
/* ==========================================================
   SCROLL ANIMATIONEN
========================================================== */

.hidden{

    opacity:0;

    transform:translateY(40px);

    transition:
        opacity .7s ease,
        transform .7s ease;

}

.show{

    opacity:1;

    transform:translateY(0);

}

/* kleine Verzögerung für Karten */

.card:nth-child(1){transition-delay:.05s;}
.card:nth-child(2){transition-delay:.15s;}
.card:nth-child(3){transition-delay:.25s;}
.card:nth-child(4){transition-delay:.35s;}

/* ==========================================================
   SCROLL INDICATOR
========================================================== */

.scrollIndicator{

    position:absolute;

    bottom:30px;

    left:50%;

    transform:translateX(-50%);

    z-index:10;

}

.scrollIndicator span{

    display:block;

    width:26px;

    height:42px;

    border:2px solid white;

    border-radius:20px;

    position:relative;

}

.scrollIndicator span::before{

    content:"";

    position:absolute;

    left:50%;

    width:6px;

    height:6px;

    border-radius:50%;

    background:white;

    transform:translateX(-50%);

    animation:scrollMouse 2s infinite;

}

@keyframes scrollMouse{

    0%{

        top:8px;
        opacity:1;

    }

    100%{

        top:24px;
        opacity:0;

    }

}

/* ==========================================================
   GALERIE
========================================================== */

.galleryYear{

    margin-bottom:70px;

}

.galleryYear h3{

    margin-bottom:25px;

    color:var(--primary);

}

.galleryGrid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));

    gap:22px;

}

.galleryImage{

    width:100%;

    aspect-ratio:4/3;

    object-fit:cover;

    border-radius:16px;

    box-shadow:var(--shadow);

    cursor:pointer;

    transition:.3s;

}

.galleryImage:hover{

    transform:translateY(-6px) scale(1.02);

}

.albumCard{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    margin-bottom:40px;
    box-shadow:var(--shadow);
    cursor:pointer;
}

.albumImage{
    width:100%;
    height:380px;
    object-fit:cover;
    display:block;
    transition:.4s;
}

.albumCard:hover .albumImage{
    transform:scale(1.05);
}

.albumOverlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    color:white;

    opacity:0;
    transition:.3s;
}

.albumCard:hover .albumOverlay{
    opacity:1;
}

.albumOverlay h3{
    color:white;
    margin-bottom:10px;
}

.lightbox{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.9);

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:99999;

}

.lightboxImage{

    max-width:90%;
    max-height:90%;
    border-radius:12px;

}

.lightboxClose,
.lightboxPrev,
.lightboxNext{

    position:absolute;

    color:white;

    font-size:42px;

    cursor:pointer;

    user-select:none;

}

.lightboxClose{
    top:20px;
    right:30px;
}

.lightboxPrev{
    left:30px;
}

.lightboxNext{
    right:30px;
}

.lightboxCounter{

    position:absolute;
    bottom:25px;

    color:white;

    font-size:18px;

}

.galleryTeaser{

display:block;

position:relative;

overflow:hidden;

border-radius:18px;

box-shadow:var(--shadow);

}

.galleryTeaser img{

width:100%;

height:420px;

object-fit:cover;

transition:.4s;

}

.galleryTeaser:hover img{

transform:scale(1.05);

}

.galleryTeaserOverlay{

position:absolute;

inset:0;

background:rgba(0,0,0,.45);

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

color:white;

}

.galleryIntro{

text-align:center;

margin-bottom:40px;

}

.programmTag {
    margin: 2rem 0 1rem;
}

.programmTag h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: .4rem;
}

.flyerImage{

    cursor:pointer;
    transition:.25s;

}

.flyerImage:hover{

    transform:scale(1.02);

}

.flyerLightbox{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.9);

    display:none;

    justify-content:center;
    align-items:center;

    z-index:9999;

    padding:2rem;

}

.flyerLightbox.active{

    display:flex;

}

.flyerLightbox img{

    max-width:90%;
    max-height:90%;
    border-radius:12px;

}

.flyerClose{

    position:absolute;

    top:20px;
    right:35px;

    color:white;
    font-size:48px;

    cursor:pointer;

}

#spezialitaetenContainer{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:2rem;
}

.spezialitaetCard{
    overflow:hidden;
    border-radius:16px;
    background:#fff;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.25s;
}

.spezialitaetCard:hover{
    transform:translateY(-6px);
}

.spezialitaetCard img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.spezialitaetContent{
    padding:1.5rem;
}

.spezialitaetContent h3{
    margin-top:0;
}