/* ==========================================================================
   Harzfest – ig_template
   Structure: .all (band, background) > .main (content width) > .cStage (columns)
   ========================================================================== */

/* Fonts: self-hosted (SIL Open Font License), only the weights in use */
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../Fonts/fira-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../Fonts/fira-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../Fonts/fira-sans-800.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../Fonts/caveat-700.woff2") format("woff2"); }

:root {
    --red: #B00A33;
    --red-dark: #8A0828;
    --forest: #4F5C21;
    --forest-dark: #3A4418;
    --moss: #8F9E3D;
    --clearing: #BED893;
    --meadow: #ACCE74;
    --light: #EEF4E0;
    --paper: #FBFCF7;
    --white: #FFFFFF;
    --ink: #262D10;
    --grey: #545B3F;
    --line: #D3E0B4;
    --yellow: #F4B728;
    --light-green-text: #DCEBBE;
    --focus: #1D4ED8;

    --font: "Fira Sans", "Helvetica Neue", Arial, sans-serif;
    --font-hand: "Caveat", "Bradley Hand", cursive;

    --radius: 8px;
    --radius-photo: 28px 8px 28px 8px;
    --width: 1120px;
    --gutter: 26px;
    --band: clamp(48px, 7vw, 84px);
    --stack: 28px;

    color-scheme: light;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-wrap: break-word; }

img, video, svg { max-width: 100%; height: auto; }
img, video { display: block; }
picture { display: contents; }
picture > source { display: none; }

a { color: var(--forest-dark); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; text-wrap: balance; color: var(--forest-dark); }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }

p, ul, ol, dl, blockquote, figure, table { margin: 0 0 1em; }
:is(p, ul, ol, dl, blockquote, figure, table):last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .25em; }
strong, b { font-weight: 700; }

.lead, .lead p { font-size: clamp(18px, 2vw, 21px); max-width: 60ch; }
.hand { font-family: var(--font-hand); font-weight: 700; color: var(--red); font-size: clamp(30px, 4vw, 42px); line-height: 1; }
.small { font-size: 15px; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.sr-only { position: absolute !important; 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: 16px; top: -80px; z-index: 100; background: var(--forest-dark); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 8px; color: #fff; }

/* --------------------------------------------------------------------------
   Structure: bands and columns
   -------------------------------------------------------------------------- */
.all { width: 100%; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.main { max-width: var(--width); margin: 0 auto; position: relative; }
.main::after { content: ""; display: table; clear: both; }

.all.content { padding-top: var(--band); padding-bottom: var(--band); scroll-margin-top: 80px; }
/* Two bands without background in a row: no double spacing */
.all.content:not(.l-10, .l-11, .l-12, .l-13):has(+ .all.content:not(.l-10, .l-11, .l-12, .l-13)) { padding-bottom: 0; }
.all.content:not(.l-10, .l-11, .l-12, .l-13) + .all.content:not(.l-10, .l-11, .l-12, .l-13) { padding-top: clamp(32px, 4vw, 44px); }
/* First band after a page header: closer to the foliage strip */
.page-head:has(.page-header) + main > .all.content:first-child { padding-top: 36px; }

/* Background options of the 1er Raster (field "layout") */
.all.l-10 { background: var(--light); }
.all.l-11 { background: var(--clearing); }
.all.l-12 { background: var(--forest-dark); color: #F2F5E8; }
.all.l-12 :is(h1, h2, h3, h4) { color: #fff; }
.all.l-12 a { color: #fff; }
.all.l-12 .overline { color: var(--light-green-text); }
.all.l-13 { background: var(--moss) url("../Images/garland.svg") center top / 100% 50px no-repeat; padding-top: 60px; padding-bottom: 56px; }
.all.l-13 :is(h2, h3) { color: var(--ink); }

/* Stacking inside a content band / column (not in head bar, page header, footer line) */
.all.content > .main > * + *,
.cStage > div > * + * { margin-top: var(--stack); }

/* Columns (container 2er–4er) */
.cStage { display: flex; flex-wrap: wrap; margin-inline: calc(var(--gutter) * -1); }
.cStage > div { padding: 0 var(--gutter); min-width: 0; }
.cStage.f-10 { align-items: center; }
.cStage.f-11 { align-items: flex-end; }

.c16 { flex: 0 0 16.6666%; max-width: 16.6666%; }
.c20 { flex: 0 0 20%; max-width: 20%; }
.c25 { flex: 0 0 25%; max-width: 25%; }
.c30 { flex: 0 0 30%; max-width: 30%; }
.c33 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.c35 { flex: 0 0 35%; max-width: 35%; }
.c40 { flex: 0 0 40%; max-width: 40%; }
.c50 { flex: 0 0 50%; max-width: 50%; }
.c60 { flex: 0 0 60%; max-width: 60%; }
.c66 { flex: 0 0 66.6666%; max-width: 66.6666%; }
.c70 { flex: 0 0 70%; max-width: 70%; }
.c75 { flex: 0 0 75%; max-width: 75%; }
.c80 { flex: 0 0 80%; max-width: 80%; }

/* 3er/4er rows of cards: equal height */
.cStage > div > .frame-card:only-child { height: 100%; }

/* 2er Raster as card (layout 20/21): text with padding, image without margin */
.cStage.l-20, .cStage.l-21 { margin-inline: 0; background: var(--white); border-radius: var(--radius-photo); overflow: hidden; }
.cStage.l-20 > div, .cStage.l-21 > div { padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.cStage.l-20 > .last:has(.frame-type-image:only-child),
.cStage.l-21 > .last:has(.frame-type-image:only-child) { padding: 0; }
.cStage.l-20 > .last .frame-type-image:only-child :is(figure, img),
.cStage.l-21 > .last .frame-type-image:only-child :is(figure, img) { height: 100%; margin: 0; }
.cStage.l-20 > .last .frame-type-image:only-child img,
.cStage.l-21 > .last .frame-type-image:only-child img { width: 100%; object-fit: cover; border-radius: 0; min-height: 260px; }

@media (max-width: 900px) {
    .c16, .c20, .c25, .c30, .c33, .c35, .c40, .c50, .c60, .c66, .c70, .c75, .c80 { flex: 0 0 100%; max-width: 100%; }
    .cStage > div + div { margin-top: var(--stack); }
    .cStage:is(.l-20, .l-21) > div + div { margin-top: 0; }
    .cStage.l-99, .cStage.l-21 { flex-direction: column-reverse; }
    .cStage.l-99 > div + div { margin-top: 0; }
    .cStage.l-99 > div:first-child { margin-top: var(--stack); }
}
@media (min-width: 640px) and (max-width: 900px) {
    /* 4er Raster: two columns on tablets */
    .cStage > .c25 { flex: 0 0 50%; max-width: 50%; }
    .cStage > .c25:nth-child(-n+2) { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   Top: service bar, sticky head with navigation
   -------------------------------------------------------------------------- */
.service-bar { background: var(--light); font-size: 15px; }
.service-bar ul { list-style: none; margin: 0; padding: 4px 0; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 20px; }
.service-bar li { margin: 0; }
.service-bar a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--forest-dark); font-weight: 700; text-decoration: none; }
.service-bar a:hover, .service-bar a[aria-current] { text-decoration: underline; }
.service-bar svg { width: 18px; height: 18px; flex: none; }

.top { position: sticky; top: 0; z-index: 30; background: var(--clearing); box-shadow: 0 1px 0 rgba(38, 45, 16, .12); }
.top > .main { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
/* Clearfix would become an extra flex item (shifts the menu button) */
.top > .main::after,
.hero-info > .main::after,
.page-header > .main::after,
.footer-bottom > .main::after { content: none; }
.top .logo { margin-right: auto; display: block; }
.top .logo img { width: 150px; height: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; position: relative; }
.main-nav > ul { display: flex; gap: 4px; align-items: center; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--forest-dark); font-weight: 700; text-decoration: none; }
.main-nav a:hover { background: rgba(255, 255, 255, .6); color: var(--forest-dark); }
.main-nav a[aria-current="page"], .main-nav li.act > a { background: var(--white); color: var(--red); }
.main-nav .mobile-only { display: none; }

/* Sub navigation (navi.js) */
.main-nav > ul > li:has(.openSub) { display: flex; align-items: center; }
.openSub { display: inline-grid; place-items: center; width: 32px; height: 44px; border: 0; background: transparent; color: var(--forest-dark); cursor: pointer; border-radius: var(--radius); }
.openSub[aria-expanded="true"] svg { transform: rotate(180deg); }
.main-nav li ul { position: absolute; left: 0; top: 100%; min-width: 240px; background: var(--white); border-radius: var(--radius); box-shadow: 0 12px 24px rgba(38, 45, 16, .18); padding: 8px; z-index: 5; }
.main-nav li ul[hidden] { display: none; }
.main-nav li ul a { border-radius: var(--radius); font-weight: 600; }

.contact-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; }
.contact-btn:hover, .contact-btn[aria-current="page"] { background: var(--red-dark); color: #fff; }

.menu-btn { display: none; align-items: center; gap: 8px; font: 700 16px var(--font); color: var(--forest-dark); background: var(--white); border: 2px solid var(--forest-dark); border-radius: 999px; padding: 8px 14px; min-height: 44px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
    /* Opened navigation spans the whole head bar, not only the content width */
    .js .top > .main { position: static; }
    .js .menu-btn { display: inline-flex; margin-left: auto; }
    .js .top .contact-btn { display: none; }
    .js .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--clearing); box-shadow: 0 12px 20px rgba(38, 45, 16, .18); display: none; max-height: calc(100vh - 80px); overflow-y: auto; }
    .js .main-nav.open { display: block; }
    .js .main-nav > ul { flex-direction: column; align-items: stretch; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); }
    .js .main-nav a { padding: 12px 16px; font-size: 19px; border-radius: var(--radius); }
    .js .main-nav .mobile-only { display: block; }
    .main-nav > ul > li:has(.openSub) { flex-wrap: wrap; }
    .main-nav > ul > li:has(.openSub) > a { flex: 1; }
    .main-nav li ul { position: static; flex-basis: 100%; box-shadow: none; background: rgba(255, 255, 255, .5); }
    /* Without JavaScript the navigation simply wraps */
    html:not(.js) .top > .main { flex-wrap: wrap; }
    html:not(.js) .main-nav > ul { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   Header area: hero (start page), page header with foliage strip
   -------------------------------------------------------------------------- */
.hero { background: var(--clearing); }
.hero-media { position: relative; }
.hero-media img, .hero-video { width: 100%; height: auto; }
.hero-video { aspect-ratio: 1920 / 660; object-fit: cover; }
.video-toggle { position: absolute; right: 16px; bottom: 16px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--forest-dark); background: var(--white); color: var(--forest-dark); font: 700 15px var(--font); cursor: pointer; }
.hero-info { background: var(--white); }
.hero-info > .main { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; padding-block: 30px 34px; }
.hero-text { display: grid; gap: 6px; }
.hero-date { font-weight: 800; color: var(--red); font-size: clamp(20px, 2.6vw, 26px); letter-spacing: .03em; text-transform: uppercase; margin: 0; }
@media (max-width: 760px) { .hero-info > .main { grid-template-columns: 1fr; } }

.page-header { background: var(--clearing); }
.page-header > .main { padding-block: 34px 10px; display: grid; gap: 8px; }
.page-header .btns { margin-top: 12px; }
/* Header area: spacing only via grid gap, not via the general stacking rule */
.page-header > .main > * + *,
.hero-info > .main > * + * { margin-top: 0; }
.page-header .lead p, .hero-text .lead p { margin: 0; }

.foliage { height: clamp(48px, 7vw, 90px); background-color: var(--clearing); background-image: var(--foliage-image, none); background-position: center top; background-size: 100% auto; background-repeat: repeat-x; }

/* --------------------------------------------------------------------------
   Content elements: headings, overline, links, buttons
   -------------------------------------------------------------------------- */
.ce-header { display: grid; gap: 8px; margin-bottom: 18px; }
.ce-header:last-child { margin-bottom: 0; }
.overline { font-family: var(--font-hand); font-weight: 700; font-size: clamp(26px, 3vw, 32px); color: var(--red); line-height: 1; margin: 0; }
.frame-card .overline { font-size: 24px; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 700 17px/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { background: var(--white); color: var(--forest-dark); border-color: var(--forest-dark); }
.btn-outline:hover { background: var(--light); color: var(--forest-dark); }

/* Stand-alone "more" link (RTE style "Weiter-Link"): bold text + round red arrow */
a.more { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 800; font-size: 18px; color: var(--forest-dark); text-decoration: none; }
a.more::after { content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 4px 0 var(--red-dark); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
a.more:hover, a.more:focus-visible { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
a.more:hover::after, a.more:focus-visible::after { transform: translateX(5px) rotate(-8deg); }
a.more:active::after { transform: translate(5px, 3px); box-shadow: 0 1px 0 var(--red-dark); }
a.more.more-light, .all.l-12 a.more { color: #fff; }
a.more.more-light:hover, .all.l-12 a.more:hover { color: var(--light-green-text); }
a.more.more-light::after, .all.l-12 a.more::after { background-color: var(--white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B00A33' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }

/* Sub headings inside running text (RTE) */
.frame-type-text > :is(h2, h3) { font-size: 24px; margin: 1.4em 0 .5em; }
.frame-type-text > h3 { font-size: 20px; }

/* --------------------------------------------------------------------------
   Images
   -------------------------------------------------------------------------- */
figure.image { margin: 0; }
figure.image figcaption { font-size: 15px; color: var(--grey); margin-top: 8px; }
.photo { width: 100%; border-radius: var(--radius-photo); }
.photo-tilted { transform: rotate(1.5deg); box-shadow: 0 10px 0 var(--clearing); }
.photo-shadow { box-shadow: 0 10px 0 var(--meadow); }
.graphic { border-radius: 0; }
.frame-type-image a[data-lightbox] { display: block; }

/* --------------------------------------------------------------------------
   Cards (frame_class "card"), text & image
   -------------------------------------------------------------------------- */
.frame-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.frame-card .ce-header { gap: 6px; margin-bottom: 10px; }
.frame-card h3 { font-size: 19px; }
.frame-card .textpic-above .textpic-media { margin: -22px -22px 18px; }
.frame-card .textpic-above .textpic-media img:not(.icon) { border-radius: var(--radius) var(--radius) 0 0; }
.frame-card .textpic-above .textpic-media:has(.icon) { margin: 0 0 10px; }

.textpic { display: grid; gap: 18px; }
.textpic-media img:not(.icon) { width: 100%; border-radius: var(--radius); }
.textpic-below .textpic-media { order: 2; }
@media (min-width: 761px) {
    .textpic-right, .textpic-left { grid-template-columns: 1fr 1fr; gap: 32px 52px; align-items: center; }
    .textpic-right .textpic-media { order: 2; }
}
.icon { width: 34px; height: 34px; color: var(--red); }

/* --------------------------------------------------------------------------
   Stamp band (key figures as hiking pin stamps)
   -------------------------------------------------------------------------- */
.frame-type-ig_stamps .ce-header { text-align: center; }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; justify-items: center; }
.stamps li { margin: 0; width: min(190px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--paper); border: 4px solid var(--forest-dark); display: grid; place-content: center; text-align: center; gap: 2px; position: relative; box-shadow: 0 6px 0 rgba(38, 45, 16, .22); padding: 18px; }
.stamps li::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 2px dashed var(--moss); pointer-events: none; }
.stamps li:nth-child(4n+1) { transform: rotate(-5deg); }
.stamps li:nth-child(4n+2) { transform: rotate(3deg); }
.stamps li:nth-child(4n+3) { transform: rotate(-2deg); }
.stamps li:nth-child(4n) { transform: rotate(5deg); }
.stamp-number { font-weight: 800; font-size: clamp(38px, 5vw, 54px); line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.stamp-label { font-family: var(--font-hand); font-weight: 700; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.05; color: var(--forest-dark); }
@media (max-width: 760px) { .stamps { grid-template-columns: 1fr 1fr; gap: 24px 14px; } }

/* --------------------------------------------------------------------------
   Tiles (Meilen)
   -------------------------------------------------------------------------- */
.frame-type-ig_tiles > .lead { margin-bottom: 32px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tile { margin: 0; background: var(--white); border-radius: var(--radius); padding: 20px 20px 22px; display: grid; gap: 8px; align-content: start; border-top: 6px solid var(--forest); }
.tile:nth-child(3n+2) { border-top-color: var(--red); }
.tile:nth-child(3n) { border-top-color: var(--yellow); }
.tile h3 { font-size: 19px; }
.tile p { font-size: 16px; color: var(--grey); margin: 0; }

/* --------------------------------------------------------------------------
   Greeting
   -------------------------------------------------------------------------- */
.greeting { display: grid; grid-template-columns: 200px 1fr; gap: 28px 96px; align-items: center; margin: 0; }
.greeting-portrait img, .greeting-placeholder { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--white); box-shadow: 0 0 0 4px var(--red); object-fit: cover; }
.greeting-placeholder { background: var(--clearing); }
.greeting-body { display: grid; gap: 18px; }
.greeting blockquote { margin: 0; }
.greeting blockquote p { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; color: var(--ink); max-width: 46ch; position: relative; }
.greeting blockquote p:first-child::before { content: "„"; font-family: var(--font-hand); color: var(--red); font-size: 90px; line-height: 0; position: absolute; left: -.55em; top: .45em; }
.greeting figcaption { font-weight: 700; color: var(--forest-dark); }
.greeting figcaption span { display: block; font-weight: 400; color: var(--grey); }
@media (max-width: 760px) {
    .greeting { grid-template-columns: 1fr; }
    .greeting-portrait { width: 160px; }
    .greeting blockquote p:first-child::before { position: static; display: block; height: 30px; }
}

/* --------------------------------------------------------------------------
   Timeline: scrolls horizontally, image appears on hover and focus
   -------------------------------------------------------------------------- */
.timeline-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.timeline-head .ce-header { margin: 0; }
.timeline-arrows { display: flex; gap: 8px; }
.timeline-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #E3ECCB; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.timeline-arrows svg { width: 22px; height: 22px; }
.timeline-arrows button:hover { background: rgba(255, 255, 255, .12); }
.timeline-arrows button:disabled { opacity: .35; cursor: default; }
.timeline-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 14px; scrollbar-color: var(--meadow) transparent; overscroll-behavior-x: contain; }
.timeline-scroll:focus-visible, .timeline li:focus-visible { outline-color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; width: max-content; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 213px; border-top: 3px dashed var(--clearing); }
.timeline li { margin: 0; width: 250px; scroll-snap-align: start; display: grid; grid-template-rows: 190px auto; position: relative; border-radius: var(--radius); outline-offset: 4px; }
.timeline-image { margin: 0; border-radius: 20px 6px 20px 6px; overflow: hidden; opacity: 0; transform: translateY(14px) rotate(-2deg) scale(.96); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 8px 0 rgba(0, 0, 0, .18); }
.timeline li:nth-child(even) .timeline-image { transform: translateY(14px) rotate(2deg) scale(.96); }
.timeline-image img { width: 100%; height: 175px; object-fit: cover; }
.timeline li:is(:hover, :focus, :focus-within) .timeline-image { opacity: 1; transform: translateY(0) rotate(-1.5deg) scale(1); }
.timeline li:nth-child(even):is(:hover, :focus, :focus-within) .timeline-image { transform: translateY(0) rotate(1.5deg) scale(1); }
@media (hover: none) { .timeline-image { opacity: 1; transform: none !important; } }
.timeline-text { display: grid; gap: 4px; padding-top: 42px; position: relative; }
.timeline-text::before { content: ""; position: absolute; top: 12px; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--forest-dark); border: 4px solid var(--clearing); }
.timeline li.is-current .timeline-text::before { background: var(--red); border-color: #FFD2DC; width: 30px; height: 30px; top: 9px; }
.timeline-year { font-weight: 800; color: var(--yellow); font-variant-numeric: tabular-nums; }
.timeline-place { font-weight: 800; color: #fff; font-size: 21px; line-height: 1.15; }
.timeline-line { font-family: var(--font-hand); font-weight: 700; font-size: 24px; line-height: 1.05; color: #E3ECCB; }
.timeline li.is-current .timeline-line { color: #FFD2DC; }
.timeline-hint { font-size: 14px; color: #E3ECCB; margin-top: 6px; }
@media (hover: none) { .timeline-hint { display: none; } }
.timeline-after { margin-top: 28px; }
/* Timeline on light background */
.all:not(.l-12) .timeline-place { color: var(--forest-dark); }
.all:not(.l-12) .timeline-line, .all:not(.l-12) .timeline-hint { color: var(--grey); }
.all:not(.l-12) .timeline-arrows button { color: var(--forest-dark); border-color: var(--forest-dark); }
.all:not(.l-12) .timeline-year { color: var(--red); }

/* --------------------------------------------------------------------------
   Partners ("Mit Unterstützung von")
   -------------------------------------------------------------------------- */
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.partners li { margin: 0; flex: 1 1 160px; min-height: 74px; display: grid; }
.partners li > a, .partners li > span, .partners li > img { display: grid; place-items: center; padding: 10px; border-radius: var(--radius); text-align: center; }
.partners li.is-text > * { background: var(--white); border: 1px dashed var(--moss); color: var(--grey); font-size: 14px; }
.partners li.has-logo > * { background: var(--white); border: 1px solid var(--line); }
.partners li a { text-decoration: none; }
.partners li a:hover { border-color: var(--forest); }
.partner-logo { max-height: 54px; width: auto; }
.partners-after { margin-top: 20px; }

/* --------------------------------------------------------------------------
   Programme with filter
   -------------------------------------------------------------------------- */
.program-filter { display: grid; gap: 14px; background: var(--white); border-radius: var(--radius); padding: 16px; margin-bottom: 22px; border: 1px solid var(--line); }
.program-filter[hidden] { display: none; }
.program-days { display: flex; flex-wrap: wrap; gap: 8px; }
.program-days button { font: 700 16px var(--font); min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--forest-dark); background: var(--white); color: var(--forest-dark); cursor: pointer; }
.program-days button[aria-pressed="true"] { background: var(--forest-dark); color: #fff; }
.field { display: grid; gap: 4px; max-width: 360px; }
.field label { font-weight: 700; font-size: 15px; }
.program-day + .program-day { margin-top: 18px; }
.program-day-title { font-size: 24px; margin-bottom: 10px; }
.program-day-title span { font-weight: 800; }
.program-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.program-item { margin: 0; display: grid; grid-template-columns: 90px 1fr auto; gap: 4px 18px; align-items: baseline; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--forest); border-radius: var(--radius); padding: 14px 16px; }
.program-item[hidden], .program-day[hidden] { display: none; }
.program-item.is-highlight { border-left-color: var(--red); background: #FFF5F7; }
.program-time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--forest-dark); }
.program-title { font-weight: 700; }
.program-badge { color: var(--red); }
.program-location { font-size: 14px; color: var(--grey); text-align: right; }
.program-empty { padding: 20px; background: var(--white); border-radius: var(--radius); }
.program-after { margin-top: 18px; color: var(--grey); font-size: 15px; }
@media (max-width: 640px) {
    .program-item { grid-template-columns: 70px 1fr; }
    .program-location { grid-column: 2; text-align: left; }
}

/* Key facts (table layout "Eckdaten") */
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.facts dt { font-weight: 700; color: var(--forest-dark); }
.facts dd { margin: 0; }

/* --------------------------------------------------------------------------
   Accordion / FAQ
   -------------------------------------------------------------------------- */
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
details + details { margin-top: 8px; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 700; min-height: 48px; display: flex; align-items: center; gap: 12px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; flex: none; width: 10px; height: 10px; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); transition: transform .2s; }
details[open] > summary::before { transform: rotate(45deg); }
.details-body { padding: 0 18px 18px 40px; }
/* Text followed by an accordion (e.g. Lageplan / "Lageplan als Text") belongs together */
.all.content > .main > .frame-type-text + .frame-type-ig_accordion,
.cStage > div > .frame-type-text + .frame-type-ig_accordion { margin-top: 16px; }

/* --------------------------------------------------------------------------
   Video (two-click), gallery, lightbox
   -------------------------------------------------------------------------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; display: grid; }
.video .video-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; border-radius: 0; }
.video-consent { position: relative; display: grid; gap: 10px; align-content: center; justify-items: start; padding: 20px; font-size: 15px; max-width: 46ch; }
.video-consent :is(h2, h3, h4) { color: #fff; font-size: 20px; }
.video-consent .ce-header { margin: 0; }
.video-consent p { margin: 0; }
.video-load { display: inline-flex; align-items: center; gap: 6px; font: 700 16px var(--font); background: #fff; color: var(--forest-dark); border: 0; border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; }
.video-load svg { width: 18px; height: 18px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-file { width: 100%; border-radius: var(--radius); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gallery li { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery a { display: block; border-radius: var(--radius); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 24, 8, .88); }
.lightbox img { max-width: 100%; max-height: 86vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: -56px; right: 0; min-width: 48px; min-height: 48px; border-radius: 999px; border: 2px solid #fff; background: var(--forest-dark); color: #fff; font: 700 16px var(--font); padding: 8px 16px; cursor: pointer; }

/* --------------------------------------------------------------------------
   Tables, uploads
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; }
.contenttable { width: 100%; border-collapse: collapse; background: var(--white); }
.contenttable :is(th, td) { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.contenttable th { background: var(--light); color: var(--forest-dark); }
.ce-uploads { list-style: none; padding: 0; }
.ce-uploads li { display: flex; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }

/* Menus as link list */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.link-list li { margin: 0; }

/* --------------------------------------------------------------------------
   Forms (EXT:form)
   -------------------------------------------------------------------------- */
.frame-type-form_formframework form { display: grid; gap: 16px; max-width: 640px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.frame-type-form_formframework .form-group, .frame-type-form_formframework .mb-3 { display: grid; gap: 4px; margin: 0; }
.frame-type-form_formframework label { font-weight: 700; font-size: 15px; }
.frame-type-form_formframework .required { color: var(--red); }
select, input:not([type="checkbox"], [type="radio"], [type="submit"]), textarea { font: 400 17px var(--font); color: var(--ink); background: var(--white); border: 2px solid #7B835F; border-radius: var(--radius); padding: 10px 12px; min-height: 46px; width: 100%; }
textarea { min-height: 130px; resize: vertical; }
[aria-invalid="true"], .has-error :is(input, select, textarea) { border-color: var(--red); }
.frame-type-form_formframework :is(.help-block, .invalid-feedback, .error) { color: var(--red); font-size: 15px; font-weight: 600; }
.form-check-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 15px; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--forest-dark); }
.frame-type-form_formframework .actions, .frame-type-form_formframework nav { margin: 0; }
.frame-type-form_formframework [type="submit"], .frame-type-form_formframework .btn-primary { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0; background: var(--red); color: #fff; font: 700 17px/1.2 var(--font); cursor: pointer; }
.frame-type-form_formframework [type="submit"]:hover { background: var(--red-dark); }
.form-summary { padding: 14px 16px; border-radius: var(--radius); background: #FFF5F7; border: 2px solid var(--red); font-weight: 600; }
.form-summary ul { margin: 6px 0 0; }

/* --------------------------------------------------------------------------
   Easy language (text layout 30)
   -------------------------------------------------------------------------- */
.frame-layout-30 { font-size: 20px; line-height: 1.7; max-width: 52ch; }
.frame-layout-30 p + p { margin-top: 18px; }

/* --------------------------------------------------------------------------
   Footer: wave, content from the footer folder, legal navigation
   -------------------------------------------------------------------------- */
.footer { background: var(--forest-dark); color: #E8EEDA; font-size: 16px; padding-bottom: 28px; }
.wave { display: block; width: 100%; height: clamp(28px, 4vw, 56px); fill: var(--paper); margin-bottom: 8px; }
main:has(> .all:last-child.l-10) + .footer .wave { fill: var(--light); }
main:has(> .all:last-child.l-11) + .footer .wave { fill: var(--clearing); }
main:has(> .all:last-child.l-13) + .footer .wave { fill: var(--moss); }
.footer .all.content { padding-block: 20px 8px; }
.footer :is(h2, h3) { color: #fff; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; }
.footer .ce-header { margin-bottom: 10px; }
.footer a { color: #fff; }
.footer .hand { color: var(--light-green-text); }
.footer .graphic { width: 170px; }
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social-icons li { margin: 0; }
.social-icons a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); color: #fff; }
.social-icons a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.social-icons svg { width: 22px; height: 22px; fill: currentColor; }
.footer-bottom > .main { border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 18px; margin-top: 20px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
.footer-bottom p { margin: 0; }
.footer-bottom-right { margin-left: auto; }

/* Footer columns as in the layout: 1.3fr / 1fr / 1fr */
@media (min-width: 901px) {
    .footer .cStage > .c33:first-child { flex: 0 0 40%; max-width: 40%; }
    .footer .cStage > .c33:not(:first-child) { flex: 0 0 30%; max-width: 30%; }
}
/* Service column: page menu + legal pages (subpages of the footer folder) read as one list */
.footer .frame-type-menu_pages + .frame-type-menu_subpages { margin-top: 6px; }

/* --------------------------------------------------------------------------
   Motion, print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .timeline-scroll { scroll-behavior: auto; }
}
@media print {
    .service-bar, .main-nav, .menu-btn, .contact-btn, .foliage, .wave, .timeline-arrows, .video-toggle { display: none !important; }
    .top { position: static; box-shadow: none; }
    .timeline-image { opacity: 1; transform: none; }
}
