/* Gangkofener Volksfest – Hauptstylesheet (alles lokal, keine externen Ressourcen) */
:root {
    --rot: #c1191f;
    --rot-dunkel: #96121a;
    --blau: #2f2f86;          /* Wappenblau aus dem Logo */
    --himmel: #3d9be0;        /* Himmelblau aus dem Plakat */
    --himmel-hell: #dcefff;
    --holz: #c9a27a;
    --holz-hell: #f4ebe0;
    --holz-bild: url("../img/bg_holz.jpg") center / cover no-repeat #c4a079;
    --dunkel: #1d1d24;
    --text: #2a2a33;
    --grau: #6b6b78;
    --radius: 18px;
    --schatten: 0 18px 40px rgba(29, 29, 36, 0.12);
    --max: 1180px;
    /* Bayerische Rauten als SVG-Muster */
    --rauten: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='22'%3E%3Crect width='36' height='22' fill='%23ffffff'/%3E%3Cpolygon points='18,0 36,11 18,22 0,11' fill='%233d9be0'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.rautenband { height: 14px; background: var(--rauten) repeat-x center / auto 100%; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    /* Holz mit Rautenband & Breze – wie der Kopf des Plakats */
    background: url("../img/bg_holz_mit_bandarole.jpg") left center / cover no-repeat #c4a079;
    box-shadow: 0 4px 14px rgba(59, 36, 18, 0.35);
}
.header .wrap {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem;
    /* Platz links für das Rautenband im Holzbild (Breze reicht bis ca. 12 % der Breite) */
    width: auto; margin: 0;
    padding-left: calc(12.5vw + 0.75rem);
    padding-right: max(1.25rem, calc((100vw - var(--max)) / 2));
}
.header__logo img { height: 54px; width: auto; filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.7)); }
.nav {
    display: flex; gap: 0.25rem; list-style: none;
    background: rgba(255, 250, 244, 0.88); padding: 0.3rem; border-radius: 999px;
    box-shadow: 0 4px 12px rgba(59, 36, 18, 0.2);
}
.nav a {
    display: block; padding: 0.5rem 0.9rem; border-radius: 999px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}
.nav a:hover, .nav a:focus-visible { background: var(--himmel-hell); color: var(--blau); }
.nav .nav__cta { background: var(--rot); color: #fff; }
.nav .nav__cta:hover, .nav .nav__cta:focus-visible { background: var(--rot-dunkel); color: #fff; }
.nav-toggle { display: none; background: rgba(255, 250, 244, 0.9); border: 0; border-radius: 10px; width: 44px; height: 44px; font-size: 1.5rem; cursor: pointer; color: var(--dunkel); box-shadow: 0 4px 12px rgba(59, 36, 18, 0.2); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    background: #3d9be0;
    padding: 5rem 0 8rem;
    overflow: hidden;
    isolation: isolate;
}
/* Himmel mit Sonne als Hintergrund des Startbereichs */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: url("../img/bg_himmel.jpg") center 45% / cover no-repeat;
}
.hero::after { /* leichte Abdunklung links für gut lesbaren weißen Text */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(16, 78, 150, 0.45) 0%, rgba(16, 78, 150, 0.15) 45%, transparent 65%);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
    padding: 0.35rem 0.9rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1.02; font-weight: 900; letter-spacing: -0.02em;
    margin: 1.1rem 0 1rem;
    text-shadow: 0 4px 24px rgba(0, 40, 90, 0.35);
}
.hero h1 span { color: #fff; display: block; font-style: italic; font-weight: 800; }
.hero__intro { font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 500; max-width: 34rem; margin: -0.2rem 0 1.4rem; text-shadow: 0 2px 12px rgba(0, 40, 90, 0.45); }
@media (max-width: 980px) { .hero__intro { margin-inline: auto; } }
.hero__datum {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; margin-bottom: 2rem;
}
.hero__datum .pill { background: #fff; color: var(--rot); padding: 0.4rem 1rem; border-radius: 12px; box-shadow: var(--schatten); }
.hero__datum .bis { opacity: 0.85; font-weight: 600; }
.btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--rot { background: var(--rot); color: #fff; box-shadow: 0 10px 25px rgba(193, 25, 31, 0.35); }
.btn--rot:hover { background: var(--rot-dunkel); }
.btn--hell { background: rgba(255,255,255,0.95); color: var(--blau); }

.hero__herz { position: relative; justify-self: center; width: min(100%, 420px); }
.herz { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25)); }
.hero__jahr {
    position: absolute; right: -0.5rem; bottom: -1rem;
    font-size: 4.5rem; font-weight: 900; font-style: italic; color: var(--rot);
    -webkit-text-stroke: 3px #fff; paint-order: stroke fill;
    transform: rotate(-10deg);
    text-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Abgerissene Papier-/Holzkante */
.riss {
    position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
    background: var(--holz-bild);
    clip-path: polygon(0 55%, 4% 40%, 9% 62%, 14% 35%, 19% 58%, 24% 30%, 29% 52%, 35% 38%, 40% 65%, 46% 32%, 52% 55%, 57% 28%, 63% 50%, 68% 36%, 74% 60%, 79% 30%, 85% 54%, 90% 38%, 95% 58%, 100% 40%, 100% 100%, 0 100%);
}

/* ---------- Countdown ---------- */
.countdown-bar { display: flow-root; padding: 0 0 1rem; }
.countdown {
    margin-top: -4.5rem; position: relative; z-index: 2;
    background: #fff; border-radius: var(--radius); box-shadow: var(--schatten);
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2rem;
    padding: 1.6rem 2rem; overflow: hidden;
}
.countdown__label { font-weight: 800; color: var(--blau); font-size: 1.1rem; }
.countdown__label small { display: block; color: var(--grau); font-weight: 500; font-size: 0.9rem; }
.countdown__zahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.countdown__zahlen div { background: var(--himmel-hell); border-radius: 14px; padding: 0.7rem 0.4rem; }
.countdown__zahlen strong { display: block; font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--rot); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown__zahlen span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grau); font-weight: 600; }

/* ---------- Sektionen ---------- */
section { --abstand: 5.5rem; padding: var(--abstand) 0; }
/* Holzdielen wie auf dem Plakat */
.holz {
    position: relative;
    background: var(--holz-bild);
    background-size: cover; background-position: center; /* Holzgrafik wird auf die Fläche gezogen */
}
.holz .kopf h2 { color: #fff; text-shadow: 0 2px 0 rgba(74, 46, 23, 0.55), 0 6px 18px rgba(74, 46, 23, 0.35); }
.holz .kopf p, .holz .split p { color: #3b2a1c; }
.holz .kopf .kicker, .holz .split .kicker {
    display: inline-block; background: #fff; padding: 0.25rem 0.8rem; border-radius: 999px;
    box-shadow: 0 4px 10px rgba(74, 46, 23, 0.2);
}
.holz .kopf p {
    background: rgba(255, 250, 244, 0.85); border-radius: 12px; padding: 0.6rem 1rem;
    display: inline-block;
}
.holz .split h2 { color: #fff; text-shadow: 0 2px 0 rgba(74, 46, 23, 0.55), 0 6px 18px rgba(74, 46, 23, 0.35); }
.holz .split > div:not(.plakat) {
    background: rgba(255, 250, 244, 0.9); border-radius: var(--radius); padding: 2rem;
    box-shadow: var(--schatten);
}
.holz .split > div:not(.plakat) h2 { color: var(--dunkel); text-shadow: none; }

/* Abgerissene weiße Papierkanten an den Holzflächen */
.kante-oben::before, .kante-unten::after {
    content: ""; position: absolute; left: 0; right: 0; height: 34px; background: #fff; z-index: 1;
}
.kante-oben::before {
    top: -1px;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 96% 70%, 91% 40%, 86% 75%, 80% 45%, 75% 65%, 69% 35%, 63% 70%, 58% 50%, 52% 80%, 46% 45%, 41% 65%, 35% 35%, 29% 72%, 24% 48%, 18% 78%, 12% 42%, 7% 66%, 3% 38%, 0 60%);
}
.kante-unten::after {
    bottom: -1px;
    clip-path: polygon(0 40%, 5% 62%, 10% 30%, 16% 58%, 22% 25%, 27% 55%, 33% 35%, 38% 68%, 44% 30%, 50% 52%, 56% 22%, 61% 60%, 67% 38%, 72% 64%, 78% 28%, 84% 56%, 89% 34%, 94% 62%, 100% 36%, 100% 100%, 0 100%);
}
div.holz.kante-unten { padding-bottom: 2rem; }
/* Sektionen mit Risskante: zusätzlicher Abstand, damit der Inhalt nicht an der Kante klebt */
section.kante-oben { padding-top: calc(var(--abstand) + 34px); }
section.kante-unten { padding-bottom: calc(var(--abstand) + 34px); }
.kopf { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.kopf .kicker { color: var(--rot); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
.kopf h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; color: var(--dunkel); margin: 0.4rem 0 0.8rem; font-weight: 900; letter-spacing: -0.01em; }
.kopf p { color: var(--grau); }

/* Programm */
.programm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tag {
    background: #fff; border-radius: var(--radius); box-shadow: var(--schatten);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform 0.25s;
}
.tag:hover { transform: translateY(-4px); }
.tag__kopf {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 1.2rem 1.4rem; color: #fff; background: var(--blau);
    border-bottom: 8px solid transparent;
    border-image: var(--rauten) 0 0 22 0 / 0 0 8px 0 repeat;
}
.tag:nth-child(odd) .tag__kopf { background: var(--rot); }
.tag__kopf h3 { font-size: 1.35rem; font-weight: 800; }
.tag__kopf span { font-weight: 700; opacity: 0.9; }
.tag ul { list-style: none; padding: 1.2rem 1.4rem 1.5rem; display: grid; gap: 0.8rem; }
.tag li { display: grid; grid-template-columns: 4rem 1fr; gap: 0.6rem; }
.tag li time { font-weight: 800; color: var(--rot); font-variant-numeric: tabular-nums; }
.tag .highlight { display: inline-block; margin-top: 0.15rem; font-size: 0.75rem; font-weight: 700; color: var(--blau); background: var(--himmel-hell); padding: 0.1rem 0.5rem; border-radius: 999px; }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.karte {
    background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
    border: 1px solid #eee3d6; transition: box-shadow 0.25s, transform 0.25s;
}
.karte:hover { box-shadow: var(--schatten); transform: translateY(-4px); }
.karte__icon {
    width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%;
    display: grid; place-items: center; font-size: 2rem;
    background: var(--himmel-hell); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--himmel);
}
.karte h3 { font-size: 1.15rem; color: var(--dunkel); margin-bottom: 0.4rem; }
.karte p { color: var(--grau); font-size: 0.95rem; }

/* Festbier / Plakat */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.plakat { position: relative; max-width: 460px; justify-self: center; }
.plakat img {
    border-radius: var(--radius); transform: rotate(-2.5deg);
    /* kräftiger Schatten rundherum, damit sich das Plakat deutlich vom Holz abhebt */
    box-shadow: 0 0 0 1px rgba(29, 29, 36, 0.15), 0 6px 16px rgba(29, 29, 36, 0.45), 0 0 50px 12px rgba(29, 29, 36, 0.5);
}
.plakat a { display: block; border-radius: var(--radius); cursor: zoom-in; }
.plakat a:focus-visible { outline: 4px solid var(--himmel); outline-offset: 8px; }
.plakat::before {
    content: ""; position: absolute; inset: 8% -6% -6% 8%;
    background: var(--rauten) center / 36px 22px; border-radius: var(--radius); z-index: -1; opacity: 0.7;
}
/* Ohne Plakat: Lebkuchenherz frei stehend – ohne Schatten, Rahmen und Rautenhintergrund */
.plakat--herz::before { content: none; }
.plakat--herz img { box-shadow: none; border-radius: 0; }
.split h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; color: var(--dunkel); font-weight: 900; margin: 0.4rem 0 1rem; }
.split .kicker { color: var(--rot); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
.split p { color: var(--grau); margin-bottom: 1rem; }
.fakten { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 1.8rem 0 2rem; }
.fakten li { background: var(--holz-hell); border-radius: 12px; padding: 0.9rem 1rem; font-weight: 600; }
.fakten li b { display: block; color: var(--rot); font-size: 1.3rem; }

/* Anfahrt / Kontakt */
.info-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.4rem; }
.karte-platzhalter {
    min-height: 340px; border-radius: var(--radius); overflow: hidden; position: relative;
    background:
        linear-gradient(0deg, rgba(61,155,224,0.12), rgba(61,155,224,0.12)),
        repeating-linear-gradient(0deg, transparent 0 38px, rgba(47,47,134,0.08) 38px 40px),
        repeating-linear-gradient(90deg, transparent 0 38px, rgba(47,47,134,0.08) 38px 40px),
        #eef6fd;
    display: grid; place-items: center; text-align: center; color: var(--blau);
}
.karte-platzhalter .pin { font-size: 3rem; }
.karte-platzhalter small { display: block; color: var(--grau); margin-top: 0.3rem; }
.kontakt-box {
    border-radius: var(--radius); padding: 2.2rem; color: #fff;
    background: linear-gradient(145deg, var(--rot), var(--rot-dunkel));
    position: relative; overflow: hidden;
}
.kontakt-box::after {
    content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px;
    background: var(--rauten) center / 36px 22px; opacity: 0.15; border-radius: 50%;
}
.kontakt-box h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.kontakt-box p { opacity: 0.92; margin-bottom: 1.4rem; }
.kontakt-box a.mail {
    display: inline-flex; align-items: center; gap: 0.6rem; background: #fff; color: var(--rot);
    padding: 0.9rem 1.3rem; border-radius: 999px; font-weight: 800; text-decoration: none; word-break: break-all;
    transition: transform 0.2s;
}
.kontakt-box a.mail:hover { transform: translateY(-2px); }

/* Footer */
.footer { background: var(--dunkel); color: #c9c9d3; padding: 3.5rem 0 2rem; }
.footer .wrap { display: grid; gap: 2rem; }
.footer__oben { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer__logo { background: #fff; padding: 0.8rem 1.2rem; border-radius: 14px; }
.footer__logo img { height: 52px; width: auto; }
.footer__slogan { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 2.2rem; color: #fff; }
.footer__unten { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; }
.footer__unten nav { display: flex; gap: 1.2rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__credit { text-align: center; font-size: 0.8rem; color: #8d8d9a; margin-top: -0.6rem; }
.footer__credit a { color: #c9c9d3; font-weight: 600; }

/* Einblend-Animation */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero .wrap, .split, .info-grid { grid-template-columns: 1fr; }
    .hero { padding: 3.5rem 0 7rem; text-align: center; }
    .hero::after { background: linear-gradient(180deg, rgba(16, 78, 150, 0.4), rgba(16, 78, 150, 0.1) 55%, transparent); }
    .hero__datum, .btns { justify-content: center; }
    .hero__herz { width: min(80%, 360px); }
    .programm { grid-template-columns: 1fr 1fr; }
    .highlights { grid-template-columns: 1fr 1fr; }
    .countdown { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
    .plakat { max-width: 440px; margin: 0 auto; }
}
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
        background: #fff; padding: 0.8rem 1.25rem 1.2rem; box-shadow: 0 12px 24px rgba(0,0,0,0.08); border-radius: 0 0 16px 16px;
        display: none;
    }
    .nav.offen { display: flex; }
    .header__logo img { height: 42px; }
}
@media (max-width: 600px) {
    section { --abstand: 4rem; }
    .programm, .highlights, .fakten { grid-template-columns: 1fr; }
    .countdown__zahlen { gap: 0.5rem; }
    .hero__jahr { font-size: 3.2rem; }
    .hero__datum { gap: 0.5rem; font-size: 1.05rem; }
    .hero__datum .pill { padding: 0.35rem 0.7rem; }
}

/* =====================================================================
   Ergänzungen für die dynamische Website
   ===================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: #fff; color: var(--blau); padding: 0.6rem 1rem; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.nav a[aria-current="page"] { background: var(--himmel-hell); color: var(--blau); }
.nav .nav__cta[aria-current="page"] { background: var(--rot-dunkel); color: #fff; }

/* Hinweis-Banner (im Admin pflegbar) */
.banner { background: var(--blau); color: #fff; text-align: center; font-weight: 600; padding: 0.7rem 1.25rem; }
.banner a { color: #fff; }

/* Hero ohne Termin */
.hero__datum .pill--folgt { color: var(--blau); }

/* Countdown-Varianten */
.countdown--status { grid-template-columns: 1fr auto; }
.countdown--status .countdown__label { font-size: 1.25rem; }
.countdown__aktionen { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; }
.btn--klein { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn--blau { background: var(--blau); color: #fff; }
.btn--blau:hover { background: #22226a; }
.btn--rand { border: 2px solid currentColor; color: var(--blau); background: #fff; }

/* Programm noch nicht bekannt */
.programm-leer {
    max-width: 640px; margin: 0 auto; text-align: center; background: rgba(255, 250, 244, 0.94);
    border-radius: var(--radius); padding: 2.5rem 2rem; box-shadow: var(--schatten);
}
.programm-leer .gross { font-size: 3rem; line-height: 1; margin-bottom: 0.8rem; }
.programm-leer h3 { font-size: 1.4rem; color: var(--dunkel); margin-bottom: 0.5rem; }
.programm-leer p { color: #3b2a1c; }
.tag li .beschreibung { display: block; color: var(--grau); font-size: 0.9rem; }

/* Festwirt / Fakten */
.fakten li b.text { font-size: 1.05rem; }

/* Schausteller */
.schausteller { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: stretch; }
.schausteller__text { background: #fff; border-radius: var(--radius); padding: 2.2rem; border: 1px solid #eee3d6; }
.schausteller__text h3 { font-size: 1.4rem; color: var(--dunkel); margin-bottom: 0.6rem; }
.schausteller__text p { color: var(--grau); margin-bottom: 1rem; }
.checkliste { list-style: none; display: grid; gap: 0.55rem; margin: 1rem 0 1.6rem; }
.checkliste li { position: relative; padding-left: 1.9rem; }
.checkliste li::before {
    content: "✓"; position: absolute; left: 0; top: 0.1rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
    background: var(--himmel-hell); color: var(--blau); font-weight: 800; font-size: 0.8rem; display: grid; place-items: center;
}
.schausteller__bild {
    border-radius: var(--radius); background: var(--holz-bild); background-size: cover; position: relative; overflow: hidden;
    display: grid; place-items: center; min-height: 280px; text-align: center; padding: 2rem;
}
.schausteller__bild div { background: rgba(255, 250, 244, 0.92); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--schatten); }
.schausteller__bild .gross { font-size: 3rem; line-height: 1; }
.schausteller__bild strong { display: block; color: var(--dunkel); font-size: 1.15rem; margin: 0.5rem 0 0.2rem; }
.schausteller__bild span { color: var(--grau); font-size: 0.95rem; }

/* Instagram-Feed (lokal zwischengespeichert) */
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.insta-post {
    position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
    background: var(--himmel-hell); box-shadow: 0 8px 20px rgba(29, 29, 36, 0.1);
}
.insta-post img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.insta-post:hover img, .insta-post:focus-visible img { transform: scale(1.05); }
.insta-post .typ { position: absolute; top: 0.6rem; right: 0.6rem; background: rgba(0, 0, 0, 0.55); color: #fff; border-radius: 999px; font-size: 0.75rem; padding: 0.15rem 0.55rem; }
.insta-post .text {
    position: absolute; inset: auto 0 0 0; padding: 2rem 0.8rem 0.7rem; color: #fff; font-size: 0.85rem; line-height: 1.35;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); opacity: 0; transition: opacity 0.3s;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.insta-post:hover .text, .insta-post:focus-visible .text { opacity: 1; }
.insta-fuss { text-align: center; margin-top: 2rem; }

/* Anfahrt (ohne eingebettete Fremdkarte) */
.anfahrt-box {
    border-radius: var(--radius); padding: 2.2rem; background-color: var(--himmel-hell); color: var(--dunkel);
    display: flex; flex-direction: column; justify-content: center; gap: 1rem; min-height: 300px;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 38px, rgba(47,47,134,0.06) 38px 40px),
        repeating-linear-gradient(90deg, transparent 0 38px, rgba(47,47,134,0.06) 38px 40px);
}
.anfahrt-box .pin { font-size: 2.6rem; line-height: 1; }
.anfahrt-box h3 { font-size: 1.5rem; }
.anfahrt-box address { font-style: normal; color: var(--grau); }
.anfahrt-box small { color: var(--grau); }

/* ---------- Unterseiten ---------- */
.seitenkopf { position: relative; color: #fff; padding: 3.5rem 0 5.5rem; overflow: hidden; isolation: isolate; text-align: center; }
.seitenkopf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/bg_himmel.jpg") center 45% / cover no-repeat; }
.seitenkopf::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(16, 78, 150, 0.35); }
.seitenkopf h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.1; text-shadow: 0 4px 24px rgba(0, 40, 90, 0.35); }
.seitenkopf p { margin-top: 0.5rem; font-weight: 600; opacity: 0.95; }
.seitenkopf .riss { height: 60px; background: #fff; }
.seite { padding: 3rem 0 5rem; }
.prosa { max-width: 780px; margin: 0 auto; }
.prosa h2 { font-size: 1.45rem; color: var(--dunkel); margin: 2.2rem 0 0.6rem; }
.prosa h2:first-child { margin-top: 0; }
.prosa h3 { font-size: 1.1rem; color: var(--dunkel); margin: 1.4rem 0 0.4rem; }
.prosa h4 { font-size: 1rem; color: var(--dunkel); margin: 1.1rem 0 0.3rem; }
.prosa { overflow-wrap: anywhere; }
.prosa p, .prosa ul, .prosa address { margin-bottom: 0.9rem; }
.prosa address { font-style: normal; }
.prosa ul { padding-left: 1.3rem; }
.prosa a { color: var(--blau); font-weight: 600; }
.platzhalter { background: #fff6d6; border: 1px dashed #d9a400; border-radius: 6px; padding: 0 0.3rem; }
.hinweis-box { background: #fff6d6; border-left: 4px solid #d9a400; border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 2rem; }

/* Kontakt */
.kontakt-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.formular { background: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--schatten); border: 1px solid #eee3d6; }
.formular h2 { font-size: 1.5rem; color: var(--dunkel); margin-bottom: 1.2rem; }
.feld { margin-bottom: 1.1rem; }
.feld label { display: block; font-weight: 700; margin-bottom: 0.35rem; color: var(--dunkel); }
.feld input, .feld select, .feld textarea {
    width: 100%; font: inherit; color: inherit; padding: 0.75rem 0.9rem; border: 2px solid #e3d8ca; border-radius: 12px; background: #fffdfa;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.feld textarea { min-height: 170px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--himmel); box-shadow: 0 0 0 4px rgba(61, 155, 224, 0.2); }
.feld--zeile { display: flex; gap: 0.6rem; align-items: flex-start; }
.feld--zeile input { width: auto; margin-top: 0.3rem; }
.feld--zeile label { font-weight: 500; }
.feld--zeile a { color: var(--blau); }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.meldung { border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-weight: 600; }
.meldung--ok { background: #e6f6ea; color: #1d6b34; border: 1px solid #b9e2c4; }
.meldung--fehler { background: #fde9e9; color: #9c1c1c; border: 1px solid #f3c1c1; }
.meldung ul { margin: 0.4rem 0 0 1.2rem; font-weight: 500; }
.kontakt-info { display: grid; gap: 1.2rem; }
.kontakt-info .kontakt-box h3 { font-size: 1.35rem; }
.info-karte { background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid #eee3d6; }
.info-karte h3 { font-size: 1.1rem; color: var(--dunkel); margin-bottom: 0.4rem; }
.info-karte address, .info-karte p { font-style: normal; color: var(--grau); }

/* Wartungsseite */
.wartung { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: url("../img/bg_himmel.jpg") center / cover no-repeat #3d9be0; }
.wartung__karte { max-width: 34rem; width: 100%; background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: 2.5rem 2rem; text-align: center; border-top: 8px solid var(--rot); }
.wartung__karte img { margin: 0 auto 1.4rem; max-width: 300px; }
.wartung__karte h1 { color: var(--blau); font-size: 1.7rem; margin-bottom: 0.6rem; }
.wartung__karte p { margin-bottom: 0.8rem; }
.wartung__karte a { color: var(--rot); font-weight: 700; }

@media (max-width: 980px) {
    .schausteller, .kontakt-grid { grid-template-columns: 1fr; }
    .insta-grid { grid-template-columns: repeat(3, 1fr); }
    .countdown--status { grid-template-columns: 1fr; }
    .countdown__aktionen { justify-content: center; }
}
@media (max-width: 600px) {
    .insta-grid { grid-template-columns: repeat(2, 1fr); }
    .zwei-spalten { grid-template-columns: 1fr; }
    .formular, .schausteller__text { padding: 1.5rem; }
}
@media print {
    .header, .footer, .riss, .nav-toggle, .banner { display: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* Modal (z. B. Plakat in groß) */
html.modal-offen { overflow: hidden; }
.modal {
    border: 0; padding: 0; margin: auto; border-radius: var(--radius); background: #fff; color: var(--text);
    width: min(100% - 2rem, 720px); max-height: calc(100vh - 2rem); overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.modal[open] { display: flex; flex-direction: column; animation: modal-auf 0.25s ease; }
.modal::backdrop { background: rgba(16, 30, 60, 0.75); backdrop-filter: blur(3px); }
.modal__kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid #eee3d6; }
.modal__kopf h2 { font-size: 1.1rem; color: var(--dunkel); }
.modal__zu { background: var(--holz-hell); border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; color: var(--dunkel); flex-shrink: 0; }
.modal__zu:hover, .modal__zu:focus-visible { background: var(--himmel-hell); color: var(--blau); }
.modal__bild { flex: 1; min-height: 0; overflow: auto; background: #f3efe9; display: grid; place-items: center; padding: 1rem; }
.modal__bild img { max-height: calc(100vh - 15rem); width: auto; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.modal__fuss { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; padding: 0.9rem 1.2rem; border-top: 1px solid #eee3d6; }
@keyframes modal-auf { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
@media (max-width: 600px) { .modal__fuss { flex-direction: column; } .modal__fuss .btn { justify-content: center; } }
button.btn--rand { border: 2px solid currentColor; }

/* Videos (nach Jahren) */
.jahr-reiter { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: -1rem 0 2rem; }
.jahr-reiter__knopf {
    font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; border: 2px solid var(--blau); color: var(--blau);
    background: #fff; border-radius: 999px; padding: 0.45rem 1.1rem; display: inline-flex; align-items: center; gap: 0.45rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.jahr-reiter__knopf small { font-size: 0.75rem; background: var(--himmel-hell); color: var(--blau); border-radius: 999px; padding: 0 0.45rem; }
.jahr-reiter__knopf:hover { transform: translateY(-2px); }
.jahr-reiter__knopf[aria-selected="true"] { background: var(--blau); color: #fff; }
.jahr-reiter__knopf[aria-selected="true"] small { background: rgba(255, 255, 255, 0.2); color: #fff; }
.jahr-reiter__knopf:focus-visible { outline: 3px solid var(--himmel); outline-offset: 3px; }
.video-jahr + .video-jahr { margin-top: 2.5rem; }
.video-jahr__titel { font-size: 1.3rem; color: var(--dunkel); margin-bottom: 1rem; }
.video-reiter .video-jahr__titel { display: none; }
.video-reiter .video-jahr + .video-jahr { margin-top: 0; }
.holz .video-jahr__titel { color: #fff; text-shadow: 0 2px 0 rgba(74, 46, 23, 0.55); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.video-karte {
    display: block; text-decoration: none; background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--schatten); transition: transform 0.25s;
}
.video-karte:hover, .video-karte:focus-visible { transform: translateY(-4px); }
.video-karte:focus-visible { outline: 3px solid var(--himmel); outline-offset: 3px; }
.video-karte__bild { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--dunkel); }
.video-karte__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, opacity 0.3s; }
.video-karte:hover .video-karte__bild img { transform: scale(1.04); opacity: 0.9; }
.video-karte__play {
    position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
    border-radius: 14px; background: var(--rot); color: #fff; display: grid; place-items: center; font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); transition: transform 0.2s;
}
.video-karte:hover .video-karte__play { transform: translate(-50%, -50%) scale(1.1); }
.video-karte__titel { display: block; padding: 0.9rem 1.1rem 1rem; font-weight: 700; color: var(--dunkel); line-height: 1.35; }
.video-hinweis { text-align: center; color: var(--grau); font-size: 0.85rem; margin-top: 1.6rem; }
.holz .video-hinweis { color: #3b2a1c; }

/* Video-Modal mit Zustimmung */
.modal--video { width: min(100% - 2rem, 960px); }
.video-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-zustimmung { position: absolute; inset: 0; display: grid; place-items: center; }
.video-zustimmung[hidden] { display: none; }
.video-zustimmung img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.video-zustimmung__text { position: relative; max-width: 30rem; margin: 1rem; background: rgba(255, 255, 255, 0.95); border-radius: var(--radius); padding: 1.4rem 1.6rem; text-align: center; }
.video-zustimmung__text p { margin-bottom: 0.7rem; font-size: 0.95rem; }
.video-zustimmung__text a { color: var(--blau); }
.video-zustimmung__merken { display: flex; gap: 0.5rem; justify-content: center; align-items: center; margin-top: 0.9rem; font-size: 0.85rem; color: var(--grau); cursor: pointer; }

@media (max-width: 980px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
    .video-grid { grid-template-columns: 1fr; }
    /* Auf dem Handy wächst der Hinweis mit, damit der Datenschutztext vollständig lesbar bleibt */
    .video-player { aspect-ratio: auto; }
    .video-zustimmung { position: relative; min-height: 56.25vw; }
    .video-zustimmung__text { padding: 1rem; }
    .video-player iframe { position: relative; aspect-ratio: 16 / 9; height: auto; }
}

/* =====================================================================
   Barrierefreiheit: Menü und Einstellungen
   ===================================================================== */
.a11y { display: none; position: fixed; right: 1rem; bottom: 1rem; z-index: 90; }
.js .a11y { display: block; }
.a11y__knopf {
    width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; cursor: pointer;
    background: var(--blau); color: #fff; display: grid; place-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); transition: transform 0.2s, background 0.2s;
}
.a11y__knopf:hover { transform: scale(1.06); background: #22226a; }
.a11y__knopf:focus-visible { outline: 4px solid var(--himmel); outline-offset: 3px; }
.a11y__menue {
    position: absolute; right: 0; bottom: calc(100% + 0.8rem); width: min(320px, calc(100vw - 2rem));
    background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 1rem 1.1rem 1.1rem; border-top: 6px solid var(--blau);
}
.a11y__menue[hidden] { display: none; }
.a11y__kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; font-size: 1.05rem; }
.a11y__zu { background: var(--holz-hell); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 0.95rem; color: var(--dunkel); }
.a11y__titel { display: block; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grau); margin-bottom: 0.4rem; }
.a11y__groesse { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.5rem; align-items: center; margin-bottom: 0.9rem; }
.a11y__groesse button {
    font: inherit; font-weight: 800; font-size: 1.1rem; padding: 0.5rem; border-radius: 10px; cursor: pointer;
    border: 2px solid var(--blau); background: #fff; color: var(--blau);
}
.a11y__groesse button:disabled { opacity: 0.35; cursor: default; }
.a11y__groesse output { min-width: 4.5rem; text-align: center; font-weight: 800; color: var(--dunkel); }
.a11y__schalter { display: grid; gap: 0.4rem; }
.a11y__schalter button {
    font: inherit; font-weight: 600; text-align: left; display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 0.8rem; border-radius: 10px; cursor: pointer; border: 2px solid #e3d8ca; background: #fffdfa; color: var(--dunkel);
}
.a11y__schalter button span { width: 1.6rem; text-align: center; font-weight: 800; }
.a11y__schalter button[aria-pressed="true"] { border-color: var(--blau); background: var(--himmel-hell); color: var(--blau); }
.a11y__schalter button[aria-pressed="true"]::after { content: "✓"; margin-left: auto; font-weight: 800; }
.a11y__groesse button:focus-visible, .a11y__schalter button:focus-visible, .a11y__reset:focus-visible, .a11y__zu:focus-visible { outline: 3px solid var(--himmel); outline-offset: 2px; }
.a11y__reset { margin-top: 0.8rem; width: 100%; font: inherit; font-weight: 700; padding: 0.55rem; border-radius: 10px; border: 0; background: var(--holz-hell); color: var(--dunkel); cursor: pointer; }
@media print { .a11y { display: none !important; } }

/* Textgröße (alle Größen sind in rem angegeben und wachsen mit) */
html[data-textgroesse="1"] { font-size: 115%; }
html[data-textgroesse="2"] { font-size: 130%; }
html[data-textgroesse="3"] { font-size: 150%; }
/* Das Menü selbst bleibt gleich groß, damit es bedienbar bleibt */
html[data-textgroesse] .a11y { font-size: 16px; }

/* Hoher Kontrast */
.a11y-kontrast { --grau: #222; --text: #000; --dunkel: #000; --blau: #1a1a6e; --rot: #a10f14; --himmel-hell: #fff; --holz-hell: #fff; }
.a11y-kontrast body { background: #fff; color: #000; }
.a11y-kontrast .holz, .a11y-kontrast .riss, .a11y-kontrast .schausteller__bild { background: #f2f2f2 !important; }
.a11y-kontrast .kante-oben::before, .a11y-kontrast .kante-unten::after { background: #fff; }
.a11y-kontrast .hero::after, .a11y-kontrast .seitenkopf::after { background: rgba(0, 20, 60, 0.72); }
.a11y-kontrast .holz .kopf h2, .a11y-kontrast .holz .split h2, .a11y-kontrast .holz .video-jahr__titel { color: #000; text-shadow: none; }
.a11y-kontrast .holz .kopf p, .a11y-kontrast .holz .split > div:not(.plakat), .a11y-kontrast .programm-leer { background: #fff; color: #000; border: 2px solid #000; }
.a11y-kontrast .tag, .a11y-kontrast .karte, .a11y-kontrast .schausteller__text, .a11y-kontrast .formular, .a11y-kontrast .info-karte,
.a11y-kontrast .video-karte, .a11y-kontrast .countdown, .a11y-kontrast .fakten li { border: 2px solid #000; box-shadow: none; }
.a11y-kontrast .nav { background: #fff; border: 2px solid #000; }
.a11y-kontrast .footer { background: #000; color: #fff; }
.a11y-kontrast .footer a, .a11y-kontrast .footer__credit { color: #fff; }
.a11y-kontrast .btn--hell, .a11y-kontrast .btn--rand { border: 2px solid currentColor; }
.a11y-kontrast :focus-visible { outline: 4px solid #ffbf00 !important; outline-offset: 2px; }
.a11y-kontrast .highlight, .a11y-kontrast .markierung, .a11y-kontrast .jahr-reiter__knopf small { border: 1px solid currentColor; }
.a11y-kontrast .a11y__reset, .a11y-kontrast .a11y__zu { border: 2px solid #000; }

/* Links hervorheben */
.a11y-links main a:not(.btn):not(.video-karte):not(.insta-post) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; font-weight: 700; }
.a11y-links main a:not(.btn):not(.video-karte):not(.insta-post):not(.mail), .a11y-links .footer__unten a, .a11y-links .footer__credit a { background-color: rgba(255, 230, 0, 0.35); }
.a11y-links .footer a { text-decoration: underline !important; }
.a11y-links .btn, .a11y-links .nav a { outline: 2px dashed currentColor; outline-offset: 2px; }

/* Lesefreundliche Schrift */
.a11y-schrift body, .a11y-schrift button, .a11y-schrift input, .a11y-schrift select, .a11y-schrift textarea {
    font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif;
}
.a11y-schrift body { letter-spacing: 0.03em; word-spacing: 0.12em; line-height: 1.8; }
.a11y-schrift .hero h1 span, .a11y-schrift .hero__jahr { font-style: normal; }

/* Animationen stoppen */
.a11y-ruhig *, .a11y-ruhig *::before, .a11y-ruhig *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.a11y-ruhig .reveal { opacity: 1 !important; transform: none !important; }
.a11y-ruhig .plakat img, .a11y-ruhig .hero__jahr { transform: none !important; }

/* Großer Mauszeiger */
.a11y-zeiger, .a11y-zeiger * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 22-13 2 8 15-6 3-8-15-11 9z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}
.a11y-zeiger a, .a11y-zeiger button, .a11y-zeiger a *, .a11y-zeiger button *, .a11y-zeiger label {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 22-13 2 8 15-6 3-8-15-11 9z' fill='%23c1191f' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, pointer !important;
}
