/* =====================================================================
   KjG Mainz-Gonsenheim – Startseite nach Figma-Entwurf
   Raster: 1440 px · 12 Spalten à 85 px · Spaltenabstand 20 px · Rand 100 px
   Spalte n beginnt bei x = 100 + (n-1) * 105
   ===================================================================== */

/* Eine Schrift für die ganze Website: Inter (frei, Open Font License) – klar und minimalistisch, ähnlich Apples SF */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-variable.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-variable-italic.woff2") format("woff2"); }

:root {
  --teal: #007576;
  --grey-tile: #787878;
  --placeholder: #d9d9d9;
  --white: #fff;
  --accent: #F05B83;   /* Akzentfarbe – sparsam einsetzen (aktuell: Kennzahlen auf der Team-Seite) */
  --i: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --o: var(--i);   /* frühere Overpass-Stellen */
  --f: var(--i);   /* frühere Fira-Sans-Stellen */
  /* Raster */
  --page: 1440px;
  --margin: 100px;
  --col: 85px;
  --gap: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: #000; background: var(--white); font-family: var(--o);
  -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* Tastatur-Fokus gut sichtbar: Ring in der Schriftfarbe (weiß auf Petrol, Petrol auf weiß) */
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
section[id] { scroll-margin-top: 0; }
main, .site-footer { overflow-x: clip; }   /* Einflug-Animationen erzeugen kein seitliches Scrollen */

/* Innenbereich des Rasters: 1240 px (Spalte 1 bis 12) */
.wrap { width: 1240px; max-width: calc(100% - 32px); margin-inline: auto; }

/* Module (assets/js/module.js): die Tags sind bis zum Ersetzen durch das fertige Markup unsichtbar (nur mit JavaScript) */
.js kjg-header, .js kjg-footer, .js kjg-bild, .js kjg-sprung, .js kjg-kachel, .js kjg-eventkachel, .js kjg-karte, .js kjg-abschnitt,
.js kjg-zitat, .js kjg-zahlen, .js kjg-kontakt, .js kjg-scrollhinweis, .js kjg-frage, .js kjg-hero, .js kjg-hero-split { display: none; }
kjg-bild { display: block; }

/* ---------- Kopfzeile ---------- */
/* Header: immer oben fixiert. Beim Laden transparent mit Verlauf (Entwurf „Frame 18“),
   nach dem Scrollen Petrol-Leiste (Entwurf „Frame 18-2“, Klasse .scrolled wird in main.js gesetzt). */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--white);
  background-color: rgba(0,117,118,0); transition: background-color .35s ease; }
.site-header::before { transition: opacity .35s ease; }
.site-header .bar, .logo, .main-nav a, .lang a, .lang .sep, .menu-toggle {
  transition: top .35s ease, height .35s ease; }
.site-header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 169px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,0));
}
.site-header .bar { position: relative; width: 1240px; height: 100px; margin-inline: auto; }
.logo { position: absolute; left: 0; top: 40px; }
.logo img { width: 250px; height: 49px; }
.main-nav a { font: 400 22px/22px var(--o); letter-spacing: 1.5px; white-space: nowrap; }
/* Menü mit fünf Punkten auf allen Seiten, mittig zwischen Logo (endet bei x = 350) und Sprachwahl (beginnt bei x = 1165) */
.main-nav { position: absolute; left: 250px; width: 815px; top: 56.5px; display: flex; justify-content: center; gap: 30px; transition: top .35s ease; }
.main-nav a { position: static; }
/* aktive Seite fett; unsichtbare fette Kopie hält die Breite fest, damit nichts springt */
.main-nav a { display: inline-grid; }
.main-nav a::after { content: attr(data-t); font-weight: 700; height: 0; visibility: hidden; overflow: hidden; }
.main-nav a[aria-current="page"] { font-weight: 700; }
@media (hover: hover) { .main-nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; } }
.lang a { position: absolute; top: 52.25px; font: 400 31px/31px var(--o); letter-spacing: .5px; }
.lang .de { left: 1065px; }
.lang .en { left: 1130px; }
.lang .sep { position: absolute; left: 1116px; top: 44px; width: 4px; height: 40px; background: var(--white); }
.lang a.active { font-weight: 700; }   /* gewählte Sprache fett */
.menu-toggle { position: absolute; left: 1200px; top: 57.5px; width: 30px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; }
/* Menü-Button: zwei Striche, werden beim Öffnen animiert zu einem X */
.menu-toggle span { position: absolute; right: 0; height: 3px; background: var(--white); border-radius: 1px;
  transition: top .3s ease, width .3s ease, transform .3s ease; }
.menu-toggle .bar1 { top: 0; width: 30px; }
.menu-toggle .bar2 { top: 11px; width: 20px; }
.site-header.open .menu-toggle .bar1 { top: 5.5px; width: 30px; transform: rotate(45deg); }
.site-header.open .menu-toggle .bar2 { top: 5.5px; width: 30px; transform: rotate(-45deg); }
.mobile-nav { display: none; position: relative; background: var(--teal); padding: 8px 16px 24px; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
/* Menüeinträge im Stil der FAQ: Trennlinien, die zu den Rändern auslaufen, fette Schrift,
   aufklappbare Gruppen mit dem FAQ-Pfeil (dreht sich beim Öffnen) */
.mobile-nav > a, .mobile-nav > details { position: relative; }
.mobile-nav > a::before, .mobile-nav > details::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.9) 50%, rgba(255,255,255,.35)); }
.mobile-nav > a, .mobile-nav summary { display: block; padding: 15px 0 13px; font-size: 24px; font-weight: 700; }
.mobile-nav summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav .mn-chev { flex: none; width: 22px; height: 13px; margin-right: 8px; transition: transform .2s; }
.mobile-nav details[open] .mn-chev { transform: rotate(180deg); }
.mobile-nav .mn-sub { padding: 0 0 8px 16px; }
.mobile-nav .mn-sub a { display: block; padding: 10px 0; font-size: 20px; font-weight: 400; border-top: 1px solid rgba(255,255,255,.18); }
.mobile-nav .mn-sub a.mn-alle { font-weight: 700; }
.mobile-nav details[open] .mn-sub { animation: mn-auf .25s ease; }
@keyframes mn-auf { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.site-header.open .mobile-nav { display: block; }
/* Abgedunkelter Hintergrund bei offenem Menü – Klick darauf schließt das Menü (main.js) */
.menu-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease; }
.menu-backdrop.sichtbar { opacity: 1; visibility: visible; }
html.menu-offen { overflow: hidden; }

/* ---------- Bildflächen ---------- */
.media { position: relative; overflow: hidden; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-label { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center;
  font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(0,0,0,.28); pointer-events: none; }
.tile .ph-label { color: rgba(255,255,255,.35); }

/* ---------- Header mit Video ---------- */
.hero { position: relative; height: 785px; overflow: hidden; color: var(--white); background: #120d14; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .ph-label { place-items: end; padding: 16px 20px; color: rgba(255,255,255,.45); }
.hero-content { display: contents; }   /* Desktop: Titel und Button behalten ihre Positionen aus dem Entwurf */
/* Pause/Play für das Video (WCAG: automatisch laufende Videos müssen sich anhalten lassen) */
.video-toggle { position: absolute; right: 24px; bottom: 24px; z-index: 2; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 50%;
  background: rgba(0,0,0,.35); cursor: pointer; transition: background .15s; }
.video-toggle:hover { background: rgba(0,0,0,.6); }
.video-toggle img { width: 20px; height: 20px; }
.hero h1, .hero-btn { z-index: 1; }
.hero h1 {
  position: absolute; left: 0; right: 0; top: 333px; padding-left: .75px; margin-left: -4px;
  text-align: center; font: 400 89px/89px var(--i); letter-spacing: .75px; white-space: nowrap;
}
.hero-btn {
  position: absolute; left: calc(50% - 238px); top: 437px; width: 476px; height: 90px; /* Abstand zum Schriftzug: top-Wert ändern (Entwurf: 453px) */
  padding-top: .3px; border: 1px solid var(--white); background: rgba(0,0,0,.35);
  text-align: center; font: 400 37.5px/88px var(--i); letter-spacing: .1px; white-space: nowrap;
  transition: background .15s;
}
.hero-btn:hover { background: rgba(0,0,0,.55); }

/* ---------- Sprungmarken ---------- */
.jump { padding: 35.375px 0 29.625px; }
.jump .wrap { width: 1240px; }
.jump ul { position: relative; height: 88px; }
.jump li { position: absolute; left: var(--x); }
.jump li.r1 { top: 0; }
.jump li.r2 { top: 44px; }
.jump a { display: flex; align-items: flex-start; height: 44px; font: 400 22.5px/44px var(--o); letter-spacing: .7px; white-space: nowrap; }
.jump .down { flex: none; margin-top: 14px; color: var(--teal); }
.jump span { margin-left: 9px; }

/* ---------- Kacheln (Zela, Team) ---------- */
.tile { display: grid; grid-template-columns: 735fr 705fr; height: 504px; }
.tile.reverse { grid-template-columns: 705fr 735fr; margin-top: 100px; }
.tile.reverse .media { order: -1; }
.tile .media { background: var(--grey-tile); }
.tile .text { background: var(--teal); color: var(--white); padding: 149.37px 0 0 22.177%; }
.tile.reverse .text { padding-left: 19.592%; padding-top: 149.03px; }
.tile h2 { font: 600 78px/96px var(--f); letter-spacing: 1.8px; white-space: nowrap; }
.tile.reverse h2 { font-size: 79px; letter-spacing: -.75px; }
.tile p { margin-top: 15.74px; font: 600 17.5px/27px var(--f); letter-spacing: .3px; white-space: nowrap; }
.tile.reverse p { margin-top: 16.11px; }
.tile-link { display: inline-flex; align-items: flex-start; margin-top: 14px; padding-left: 2.2px; font: 600 17.5px/27px var(--f); letter-spacing: .3px; }
.tile-link .pfeil { flex: none; margin: 9px 8px 0 0; }

/* ---------- Karten-Bereiche (Events, Soziale Aktionen) ---------- */
.cards-section { padding-top: 104.4px; }
.events { padding-bottom: 98.34px; }
.cards-section h2 { font: 800 40px/40px var(--i); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 43.6px; }  /* je 4 Spalten = 400 px */
.card .media { height: 270px; background: var(--placeholder); }
.card h3 { margin-top: 21.7px; font: 600 20px/20px var(--i); }
.card-text { margin-top: 22.78px; font: 400 16.5px/1.5 var(--i); letter-spacing: -.24px; white-space: nowrap; }   /* Zeilenabstand 150 % wie bei den übrigen Texten */
.card-text p + p { margin-top: .75em; }
.more-link { display: inline-flex; align-items: flex-start; color: var(--teal); }
.more-link .right { flex: none; margin-top: 3.5px; }
.more-link span { margin-left: 9px; font: 400 16px/19px var(--i); }
.card .more-link { margin-top: 23.18px; }
.more-link:hover span { text-decoration-thickness: 2px; }

/* ---------- Wer sind Wir? (Spalte 3–10) ---------- */
.about { margin-top: 0; height: 368px; background: var(--teal); color: var(--white); }
.about .wrap { padding: 65.56px 0 0 210px; }
.about h2 { font: 800 37.5px/37.5px var(--i); letter-spacing: .09px; }
.about p { width: 820px; margin-top: 22.44px; font: 400 24px/29px var(--o); letter-spacing: -.06px; white-space: nowrap; }
.about .more-link { margin-top: 15.16px; color: var(--white); }

/* ---------- FAQ (Spalte 2–11) ---------- */
.faq { padding: 100.74px 0 96.69px; }
.faq-wrap { width: 1030px; max-width: calc(100% - 32px); margin-inline: auto; }
.faq h2 { font: 800 40px/40px var(--i); margin-bottom: 44.1px; }
.faq-item { position: relative; padding-top: 2px; }
.faq-item::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, rgba(0,117,118,.5), #007576 50%, rgba(0,117,118,.5)); }
.faq-item summary { position: relative; display: block; height: 84px; padding-top: 27.82px; cursor: pointer; list-style: none;
  color: var(--teal); font: 400 20px/29px var(--o); }   /* Fragen: Größe und Stärke wie der übrige Text */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { position: absolute; right: 20px; top: 37.5px; color: var(--teal); transition: transform .2s; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-item .answer { padding: 0 60px 28px 0; font: 400 20px/29px var(--o); }
.faq-more { display: inline-flex; align-items: flex-start; margin-top: 19.31px; color: var(--teal); }
.faq-more .right { flex: none; margin-top: 6.25px; }
.faq-more span { margin-left: 9px; font: 400 24.5px/24.5px var(--i); letter-spacing: -.2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal); color: var(--white); height: 349px; }
.site-footer .grid { display: grid; grid-template-columns: 272px 269.67px 269.67px 269.67px 1fr;
  width: 1440px; max-width: 100%; margin-inline: auto; padding-left: 80px; }
.footer-logo { width: 192px; height: 190px; margin-top: 80px; }
.site-footer h3 { margin-top: 104.25px; font: 800 31px/31px var(--o); letter-spacing: 1.3px; }
.site-footer ul { margin-top: 22.75px; }
.site-footer .col-faq ul { margin-top: 17.75px; }
.site-footer li { margin-bottom: 10px; font: 700 16px/19px var(--o); letter-spacing: .8px; white-space: nowrap; }
.site-footer a:hover { text-decoration: underline; }

/* =====================================================================
   Seite „Zela 2027“ (zela-2027.html) – gleiches Raster wie die Startseite
   ===================================================================== */

/* ---------- Header nach dem Scrollen (Desktop) – Entwurf „Frame 18-2“ ----------
   Petrol-Fläche 169 px hoch, alle Elemente 20 px tiefer als im Ausgangszustand („Frame 18“). */
@media (min-width: 1273px) {
  .site-header.scrolled { background-color: var(--teal); }
  .site-header.scrolled::before { opacity: 0; }
  /* Höhe 100 px, alle Elemente vertikal mittig in der Leiste */
  .site-header.scrolled .bar { height: 100px; }
  .site-header.scrolled .logo { top: 25.5px; }
  .site-header.scrolled .main-nav { top: 42px; }
  .site-header.scrolled .lang a { top: 37.75px; }
  .site-header.scrolled .lang .sep { top: 29.5px; }
  .site-header.scrolled .menu-toggle { top: 43px; }
}

.z-hero { display: grid; grid-template-columns: 705fr 735fr; height: 705px; }
.z-hero .left { position: relative; }
.z-hero .left .media { position: absolute; inset: 0; background: #787878; }   /* Bildfläche (bilder/zela-1.jpg) */
.z-hero .intro { position: absolute; left: 7.943%; top: 289.25px; color: var(--teal);
  font: 400 23px/36px var(--o); letter-spacing: .43px; white-space: nowrap; }
.z-hero .right { background: var(--teal); color: var(--white); padding: 199.26px 0 0 18.639%; }
.z-hero h1 { font: 800 76px/76px var(--i); letter-spacing: -.1px; white-space: nowrap; }
.z-hero .right p { margin-top: 32.99px; font: 400 23px/36px var(--o); letter-spacing: .41px; white-space: nowrap; }
.z-hero .btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; margin-top: 24px; padding: 0 36px;
  background: var(--white); color: var(--teal); font: 400 24px/1 var(--o); letter-spacing: .5px; white-space: nowrap; text-align: center; }   /* kompakter, Text zentriert */
.z-hero .btn:hover { background: #e9f3f3; }

.z-jump { padding: 32.875px 0 87.125px; }
.z-jump ul { width: 1030px; max-width: calc(100% - 32px); margin-inline: auto; }
.z-jump a { display: flex; align-items: flex-start; height: 49px; font: 400 22.5px/49px var(--o); letter-spacing: 1px; white-space: nowrap; }
.z-jump .down { flex: none; margin-top: 16.5px; color: var(--teal); }
.z-jump span { margin-left: 9px; }

.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; }

.z-content { padding-bottom: 140px; overflow-x: clip; }   /* seitlich hereingleitende Inhalte (seitlich.js) erzeugen keinen Überstand */
.z-feature { display: grid; grid-template-columns: 630px 400px; width: 1030px; max-width: calc(100% - 32px); height: 533px; margin: 140px auto 0; }
.z-feature.reverse { grid-template-columns: 400px 630px; }
.z-feature.reverse .media { order: -1; }
.z-feature.reverse .text { padding-left: 20px; }
.z-feature .media { background: var(--placeholder); }
.z-feature h2 { color: var(--teal); font: 800 48px/48px var(--i); }
.z-feature.h128 h2 { margin-top: 86.98px; }
.z-feature.h143 h2 { margin-top: 101.48px; }
.z-feature.h157 h2 { margin-top: 115.98px; }
.z-feature .body { margin-top: 28.52px; color: #000; font: 400 22px/29px var(--o); letter-spacing: 1.13px; white-space: nowrap; }
.z-feature .body p + p { margin-top: 29px; }
.z-feature.tight .body p + p { margin-top: 0; }
#zusammen h2 { letter-spacing: -.19px; }
#vierzehn h2 { letter-spacing: .13px; }
.z-feature + .z-quote { margin-top: 116px; }
.z-quote + .z-feature { margin-top: 117px; }

.z-quote { height: 262px; background: var(--teal); color: var(--white); }
.z-quote-inner { position: relative; width: 1030px; max-width: calc(100% - 32px); height: 100%; margin-inline: auto; }
.z-quote .circle { position: absolute; top: -16px; width: 295px; height: 295px; border-radius: 50%; overflow: hidden; }
.z-quote .round { width: 100%; height: 100%; background: #00b6be; }
.z-quote .round .ph-label { color: rgba(255,255,255,.4); }
.z-quote.circle-left .circle { left: 0; }
.z-quote.circle-right .circle { left: 735px; }
.z-quote blockquote { position: absolute; top: 58.12px; margin: 0; }
.z-quote.circle-left blockquote { left: 422px; }
.z-quote.circle-right blockquote { left: 2px; }
.z-quote blockquote p { font: italic 700 29.5px/42px var(--f); letter-spacing: 1.3px; white-space: nowrap; }
.z-quote blockquote footer { margin-top: 10.85px; }
.z-quote blockquote strong { display: block; font: 700 15px/26px var(--f); letter-spacing: .6px; }
.z-quote blockquote span { display: block; margin-top: -.33px; font: 400 16px/26px var(--f); letter-spacing: -.24px; }

/* =====================================================================
   Kleinere Bildschirme
   ===================================================================== */
@media (max-width: 1380px) {
  .site-footer { height: auto; padding-bottom: 60px; }
  .site-footer .grid { grid-template-columns: 200px repeat(4, 1fr); padding: 0 24px; gap: 24px; }
  .footer-logo { width: 150px; height: auto; }
  .site-footer li { white-space: normal; }
}

@media (max-width: 1272px) {
  html { scroll-padding-top: 72px; }
  .site-header.scrolled { background-color: var(--teal); box-shadow: 0 2px 12px rgba(0,0,0,.12); }
  .site-header.scrolled::before { opacity: 0; }
  .site-header.scrolled .bar { height: 72px; }
  .site-header.open .mobile-nav { max-height: calc(100vh - 72px); overflow-y: auto; }
  .z-hero .right { padding-right: 24px; }
  .z-hero .intro { white-space: normal; right: 24px; }
  .z-hero h1 { font-size: 64px; }
  .z-hero .right p, .z-feature .body { white-space: normal; }
  .z-hero br, .z-feature .body br { display: none; }
  .z-feature, .z-feature.reverse { grid-template-columns: 1fr 400px; gap: 30px; height: auto; min-height: 533px; }
  .z-feature.reverse { grid-template-columns: 400px 1fr; }
  .z-feature .text { padding-bottom: 40px; }
  .z-quote { height: auto; min-height: 262px; }
  .z-quote-inner { display: flex; align-items: center; gap: 40px; padding: 32px 0; }
  .z-quote.circle-right .z-quote-inner { flex-direction: row-reverse; justify-content: flex-end; }
  .z-quote .circle, .z-quote blockquote { position: static; }
  .z-quote .circle { flex: none; width: 200px; height: 200px; }
  .z-quote blockquote p { white-space: normal; }
  .site-header .bar { width: auto; height: 90px; margin: 0 16px; display: flex; align-items: center; gap: 16px; }
  .logo, .lang a, .lang .sep, .main-nav, .main-nav a { position: static; left: auto; top: auto; }
  .logo img { height: 40px; width: auto; }
  .main-nav { display: flex; flex: 1; justify-content: center; gap: 28px; width: auto; }
  .main-nav a { font-size: 19px; }
  .lang { display: flex; align-items: center; gap: 10px; margin-left: 0; }
  .lang a { font-size: 24px; line-height: 1; }
  .lang .sep { width: 3px; height: 30px; }
  .menu-toggle { position: relative; left: auto; top: auto; margin-left: 16px; flex: none; }
  .jump ul { position: static; height: auto; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 48px; }
  .jump li { position: static; }
  .tile, .tile.reverse { height: auto; min-height: 504px; }
  .tile .text { padding-right: 32px; padding-bottom: 56px; }
  .tile h2 { font-size: 64px !important; line-height: 80px; }
  .tile p, .about p { white-space: normal; }
  .tile p br, .about p br, .card-text br { display: none; }
  .card-text { white-space: normal; }
  .about { height: auto; padding-bottom: 72px; }
  .about .wrap { padding-left: 0; max-width: min(820px, calc(100% - 32px)); }
  .about p { width: auto; }
}

@media (max-width: 1100px) {
  .main-nav { display: none !important; }
  .lang { margin-left: auto !important; }
}

@media (max-width: 960px) {
  .z-hero { grid-template-columns: 1fr; height: auto; }
  .z-hero .left { min-height: 0; aspect-ratio: 4 / 3; order: 0; }   /* mobil: erst das Bild (unter dem transparenten Header), dann Überschrift */
  .z-hero .intro { position: relative; left: auto; right: auto; top: auto; padding: 32px 16px; font-size: 20px; line-height: 30px; }
  .z-hero .right { padding: 40px 16px 48px; }
  .z-hero h1 { font-size: 52px; line-height: 60px; }
  .z-hero .right p { font-size: 20px; line-height: 30px; }
  .z-jump { padding: 32px 0 40px; }
  .z-feature h2 { font-size: 34px; line-height: 40px; }
  .z-feature, .z-feature.reverse { grid-template-columns: 1fr; gap: 24px; min-height: 0; margin-top: 64px !important; }
  .z-feature.reverse .media { order: 2; }
  .z-feature.reverse .text { padding-left: 0; }
  .z-feature h2 { margin-top: 0 !important; }
  .z-feature .media { height: 420px; width: 100%; max-width: 400px; justify-self: center; }   /* Bilder immer mittig */
  .z-feature .body { font-size: 19px; line-height: 27px; letter-spacing: .6px; }
  .z-feature + .z-quote { margin-top: 64px; }
  .z-quote-inner, .z-quote.circle-right .z-quote-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  /* Zitat-Fotos: so breit wie der Inhaltsbereich (Raster), mittig */
  .z-quote .circle { width: min(72%, 300px); height: auto; aspect-ratio: 1 / 1; align-self: center; }   /* etwas kleiner, mittig */
  .z-quote blockquote p { font-size: 24px; line-height: 34px; letter-spacing: .5px; }
  .z-content { padding-bottom: 80px; }
  .main-nav { display: none; }
  .lang { margin-left: auto; }
  /* Mobil: Video in voller Bildschirmbreite (16:9) direkt unter der Kopfzeile, nichts abgeschnitten.
     Titel und Button liegen mittig darüber. */
  .hero { height: auto; padding-top: 0; }
  .hero video { position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }   /* leicht gezoomt (Seiten werden abgeschnitten) → mehr Höhe */
  .hero-content { position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 75vw; padding-top: 80px; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
  .hero h1 { position: static; margin: 0; padding: 0 16px; font-size: 40px; line-height: 48px; white-space: normal; }
  .hero-btn { position: static; transform: none; width: auto; height: auto; padding: 10px 20px; font-size: 20px; line-height: 1.2; }
  .video-toggle { display: none; }   /* mobil nicht pausierbar – das Video hält nur an, wenn es aus dem Bild gescrollt ist */
  .jump { padding: 32px 0; }
  .jump ul { justify-content: flex-start; flex-direction: column; }
  .tile, .tile.reverse { grid-template-columns: 1fr; }
  .tile .media, .tile.reverse .media { order: -1; }   /* mobil: erst das Bild, dann die Petrol-Box */
  .tile .text, .tile.reverse .text { padding: 56px 16px; }
  .tile .media { height: 280px; }
  .tile h2 { font-size: 52px !important; line-height: 60px; }
  .cards-section { padding-top: 96px; }
  .events { padding-bottom: 72px; }
  .cards-section h2, .faq h2 { font-size: 32px; line-height: 38px; }
  .cards { grid-template-columns: 1fr 1fr; margin-top: 28px; row-gap: 48px; }
  .about .wrap { padding-top: 56px; }
  .about p { font-size: 20px; line-height: 28px; }
  .faq { padding: 72px 0 72px; }
  .faq h2 { margin-bottom: 28px; }
  .faq-item summary { height: auto; padding: 22px 50px 22px 0; font-size: 20px; line-height: 29px; }
  .faq-item .chev { top: calc(50% - 5px); right: 8px; }   /* mittig zur (evtl. zweizeiligen) Frage */
  .site-footer .grid { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .site-footer .brand { grid-column: 1 / -1; }
  .footer-logo { width: 110px; margin-top: 48px; }
  .site-footer h3 { margin-top: 32px; font-size: 26px; line-height: 30px; }
  .site-footer ul { margin-top: 14px !important; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .card .media { height: auto; aspect-ratio: 400 / 270; }
}

@media (max-width: 480px) {
  .logo img { height: 34px; }
  .site-header .bar { gap: 10px; height: 80px; }
  .lang a { font-size: 20px; }
  .hero-content { padding-top: 70px; gap: 10px; }
  .hero h1 { font-size: 30px; line-height: 36px; white-space: nowrap; }
  .hero-btn { font-size: 16px; padding: 8px 16px; }
  .tile h2 { font-size: 44px !important; line-height: 52px; }
  .site-footer .grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 26px; line-height: 32px; }
  .hero-btn { font-size: 15px; padding: 7px 14px; }
  .video-toggle { right: 8px; bottom: 8px; width: 32px; height: 32px; }
  .video-toggle img { width: 16px; height: 16px; }
  .z-hero .btn { height: 52px; padding: 0 30px; font-size: 22px; }
  .z-hero h1 { font-size: 44px; line-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header::before, .site-header .bar, .logo, .main-nav a, .lang a, .lang .sep, .menu-toggle { transition: none; }
}

/* =====================================================================
   Englische Version (en/*.html) – gleiche Gestaltung, Text bricht automatisch um,
   da die festen Zeilenumbrüche des deutschen Entwurfs entfallen.
   ===================================================================== */
html[lang="en"] .tile p, html[lang="en"] .card-text, html[lang="en"] .about p,
html[lang="en"] .z-hero .intro, html[lang="en"] .z-hero .right p,
html[lang="en"] .z-feature .body, html[lang="en"] .z-quote blockquote p { white-space: normal; }
html[lang="en"] .tile p { max-width: 440px; }
@media (min-width: 961px) { html[lang="en"] .z-hero .intro { width: 580px; max-width: calc(100% - 2 * 7.943%); } }
html[lang="en"] .z-hero .right p { max-width: 400px; }
html[lang="en"] .z-feature .body { max-width: 610px; }
html[lang="en"] .z-quote.circle-left blockquote p { max-width: 600px; }
html[lang="en"] .z-quote.circle-right blockquote p { max-width: 700px; }
@media (min-width: 961px) { html[lang="en"] .hero-btn { font-size: 34px; } }

/* =====================================================================
   Einflug-Animationen beim Scrollen (alle Seiten, außer Seitentitel/Hero).
   main.js markiert die Elemente mit data-reveal="up|left|right" und setzt .is-visible,
   sobald sie ins Bild kommen. Ohne JavaScript bleibt alles sichtbar.
   ===================================================================== */
.reveal-ready [data-reveal] { opacity: 0; transition: opacity .7s ease, transform .9s cubic-bezier(.16,.84,.24,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal-ready [data-reveal="up"] { transform: translateY(60px); }
.reveal-ready [data-reveal="left"] { transform: translateX(-90px); }
.reveal-ready [data-reveal="right"] { transform: translateX(90px); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   Ganze Module klickbar: der Link spannt eine unsichtbare Fläche über das ganze Modul
   (Petrol-Kacheln, Angebots-Karten, Kacheln auf Angebote/Soziales, „Wer sind Wir?“)
   ===================================================================== */
.tile, .card, .about, .event-tile { position: relative; }
.tile .tile-link::after, .card .more-link::after, .about .more-link::after, .event-tile .more::after {
  content: ""; position: absolute; inset: 0; z-index: 1; }

/* =====================================================================
   Mobil (bis 960 px)
   ===================================================================== */
@media (max-width: 960px) {
  /* Kopfzeile: liegt transparent (mit dunklem Verlauf für die Lesbarkeit) über dem Hero und wird erst beim Scrollen Petrol */
  .site-header::before { height: 120px; }

  /* Kapitel-Links mit Pfeilen kleiner */
  .jump a, .z-jump a, .sub .jumplinks a { height: 34px; font-size: 17px; line-height: 34px; }
  .jump .down, .z-jump .down, .sub .jumplinks .down { width: 12px; height: 14px; margin-top: 10px; }
  .jump span, .z-jump span, .sub .jumplinks span { margin-left: 8px; }

  /* „Unser Angebot für euch“ und „Soziale Aktionen“: Slider – Karten nebeneinander, wischen oder mit den Pfeilen blättern */
  .events .cards, .social .cards { display: flex; grid-template-columns: none; gap: 16px; margin: 36px -16px 0; padding: 0 max(16px, calc((100vw - min(78vw, 400px)) / 2)) 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(16px, calc((100vw - min(78vw, 400px)) / 2)); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    scrollbar-width: none; }
  .events .cards::-webkit-scrollbar, .social .cards::-webkit-scrollbar { display: none; }
  .events .card, .social .card { flex: none; width: min(78vw, 400px); scroll-snap-align: center; }   /* die aktive Karte (mit Bild) steht mittig, links und rechts schaut die Nachbarkarte hervor */
  .events .card[data-reveal], .social .card[data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }   /* Slider statt Einflug */
  .slider-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; }
  .slider-punkte { display: flex; gap: 10px; }
  .slider-punkte button { width: 12px; height: 12px; padding: 0; border: 2px solid var(--accent); border-radius: 50%; background: transparent; cursor: pointer; }
  .slider-punkte button[aria-current="true"] { background: var(--accent); }
  .slider-pfeil { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--accent); border-radius: 50%; background: var(--white); cursor: pointer; transition: opacity .2s; }
  .slider-pfeil img { display: block; width: 10px; height: 16px; }
  .slider-pfeil:disabled { opacity: .3; cursor: default; }
}
@media (min-width: 961px) { .slider-nav { display: none; } }

/* Inter mit ihren eigenen Laufweiten (die Werte aus dem Entwurf waren auf Overpass abgestimmt) */
body * { letter-spacing: normal !important; }
h1, h2 { letter-spacing: -0.01em !important; }

/* ---------- Mobil: Reihenfolge in den Modulen ----------
   Karten (Slider): Überschrift, Bild, Text. Bild-Text-Abschnitte und Personen: Bild, Überschrift, Text.
   Die Text-Box wird aufgelöst (display: contents), damit Überschrift und Text getrennt um das Bild stehen.
   Petrol-Kacheln: Bild zuerst, darunter Überschrift und Text gemeinsam in der Petrol-Box. */
@media (max-width: 960px) {
  .card { display: flex; flex-direction: column; }
  .card h3 { order: 1; margin: 0 0 16px; }
  .card .media { order: 2; }
  .card .card-text { order: 3; font-size: 17px; }   /* Slider: gleicher Zeilenabstand (150 %) wie überall */
  .card .more-link { order: 4; align-self: flex-start; }

  .z-feature .text, .z-feature.reverse .text { display: contents; }
  .z-feature .media, .z-feature.reverse .media { order: 1; }   /* Bild, darunter Überschrift, dann Text */
  .z-feature h2 { order: 2; }
  .z-feature .body { order: 3; margin-top: 0; }
}

/* Akzentfarbe: Pfeile (Icons), Slider-Bedienung, Textmarkierung */
::selection { background: var(--accent); color: var(--white); }

/* ---------- Links mit Pfeil: Schrift schwarz (auf Weiß), NIE unterstrichen – beim Hover rückt nur der Pfeil ein Stück weiter ---------- */
.jump a, .z-jump a, .sub .jumplinks a, .card .more-link, .faq-more { color: #000; }
.jump .down, .z-jump .down, .sub .jumplinks .down,
.tile-link .pfeil, .more .pfeil, .more-link .right, .faq-more .right { transition: transform .2s ease; }
@media (hover: hover) {
  .jump a:hover .down, .z-jump a:hover .down, .sub .jumplinks a:hover .down { transform: translateY(3px); }
  .tile:hover .tile-link .pfeil, .event-tile:hover .more .pfeil, .card:hover .more-link .right,
  .about:hover .more-link .right, .more-link:hover .right, .faq-more:hover .right { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .jump .down, .z-jump .down, .sub .jumplinks .down, .tile-link .pfeil, .more .pfeil, .more-link .right, .faq-more .right { transition: none; }
}

/* ---------- Farbregel: Fließtext schwarz, Überschriften und Zwischenüberschriften Petrol (auf Petrol-Flächen weiß) ---------- */
h1, h2, h3, h4, h5, h6, .faq-item summary { color: var(--teal); }
.hero h1, .hero-simple h1, .hero-split .content h1, .z-hero .right h1, .tile h2, .event-tile h2,
.z-termine h2, .about h2, .site-footer h3, .z-quote h2 { color: var(--white); }

/* Zela: Abschnitt ohne Bild („Vortreffen“) – Überschrift und Text bilden eine Gruppe, die mittig steht; die Überschrift ist in der Gruppe linksbündig */
.z-feature.solo, .z-feature.solo.reverse { grid-template-columns: 1fr; justify-items: center; }
.z-feature.solo .text, .z-feature.solo.reverse .text { width: max-content; max-width: 100%; padding-left: 0; }
@media (max-width: 960px) { .z-feature.solo, .z-feature.solo.reverse { justify-items: start; } .z-feature.solo .text { width: auto; } }

/* ---------- Hinweis „Weiter scrollen“ in den Scrollytellings (Zela-Zeitleiste, Karte); Sichtbarkeit und Lage setzt main.js ---------- */
.scroll-hinweis { position: absolute; right: 24px; padding: 8px 16px 10px; background: var(--teal); top: 20px; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--white); font: 600 15px/1 var(--i); letter-spacing: .02em; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.scroll-hinweis img { animation: hinweis-hoch-runter 1.4s ease-in-out infinite; }
@keyframes hinweis-hoch-runter { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hinweis img { animation: none; } }

/* ---------- Klickbares erkennbar machen: beim Hover (und Tastatur-Fokus) wird der Text hinter dem Pfeil unterstrichen ----------
   Bei ganzen Kacheln und Karten (komplett anklickbar) reicht der Hover auf der Fläche. Im Ruhezustand ist nichts unterstrichen. */
/* Hover nur auf Geräten mit Maus – auf dem Handy bliebe der „Hover“ nach dem Antippen sonst dauerhaft stehen */
@media (hover: hover) {
  .jump a:hover span, .z-jump a:hover span, .sub .jumplinks a:hover span,
  .faq-more:hover span, .more-link:hover span, .tile:hover .tile-link span, .event-tile:hover .more span, .card:hover .more-link span, .about:hover .more-link span {
    text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
}
/* Tastatur-Fokus und kurz beim Antippen/Klicken */
.jump a:focus-visible span, .z-jump a:focus-visible span, .sub .jumplinks a:focus-visible span,
.tile-link:focus-visible span, .more:focus-visible span, .more-link:focus-visible span, .faq-more:focus-visible span,
.jump a:active span, .z-jump a:active span, .sub .jumplinks a:active span, .more-link:active span, .faq-more:active span {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.faq-item summary:hover { cursor: pointer; }

/* Unterstreichungen laufen durch Unterlängen (g, j, p, y) hindurch, statt sie auszusparen */
html, a, summary, .btn, .hero-btn, .karte-btn { text-decoration-skip-ink: none; }


/* =====================================================================
   Zela: Termine als senkrechte Zeitleiste (Scrollytelling, main.js)
   Petrol-Fläche, weiße Linie in der Mitte (mobil links), die sich beim Scrollen füllt. Die Stationen wechseln links/rechts:
   Text mit rosa Icon auf der einen, Foto (eckig, weißer Rahmen) auf der anderen Seite. Unten rechts steht groß und blass
   das Stichwort der aktuellen Station.
   ===================================================================== */
.z-termine.zeitleiste { position: relative; background: var(--teal); color: var(--white); padding: 56px 0 120px; }
.z-termine .inner { width: 1030px; max-width: calc(100% - 32px); margin-inline: auto; }
.z-termine h2 { font: 800 48px/48px var(--i); }
.zl { position: relative; max-width: 1100px; margin: 24px auto 0; padding: 0 24px; }
.zl-achse { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: rgba(255,255,255,.28); }
.zl-achse i { position: absolute; inset: 0; background: var(--white); transform-origin: top; transform: scaleY(0); }
.zl-liste { list-style: none; margin: 0; padding: 0; }
.zl-eintrag { position: relative; display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; min-height: 62vh; }
.zl-punkt { grid-column: 2; grid-row: 1; justify-self: center; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--white); background: var(--teal); position: relative; z-index: 2; transition: background .4s, border-color .4s, transform .4s; }
.zl-eintrag.an .zl-punkt { background: var(--white); border-color: var(--accent); transform: scale(1.35); }
.zl-text, .zl-bild { grid-row: 1; opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.zl-eintrag.an .zl-text, .zl-eintrag.an .zl-bild { opacity: 1; transform: none; }
.zl-eintrag.an .zl-bild { transition-delay: .15s; }
.zl-text img { display: block; width: 56px; height: 56px; margin-bottom: 18px; }   /* rosa Icon */
.zl-text p { font: 400 34px/42px var(--i); }
.zl-eintrag:nth-child(odd) .zl-text { grid-column: 1; text-align: right; justify-self: end; padding-right: 8px; }
.zl-eintrag:nth-child(odd) .zl-text img { margin-left: auto; }
.zl-eintrag:nth-child(odd) .zl-bild { grid-column: 3; justify-self: start; }
.zl-eintrag:nth-child(even) .zl-text { grid-column: 3; justify-self: start; padding-left: 8px; }
.zl-eintrag:nth-child(even) .zl-bild { grid-column: 1; justify-self: end; }
.zl-bild { width: min(100%, 400px); }
.zl-bild .media { aspect-ratio: 4 / 3; height: auto; background: var(--grey-tile); box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.zl-bild .ph-label { font-size: 11px; color: rgba(255,255,255,.55); }
.zl-gross { position: fixed; right: clamp(20px, 5vw, 72px); bottom: clamp(16px, 4vh, 40px); z-index: 0; font: 800 clamp(64px, 10vw, 150px)/.85 var(--i); letter-spacing: -.03em !important; color: rgba(255,255,255,.14); pointer-events: none; opacity: 0; transition: opacity .5s; white-space: nowrap; }
.zl-gross.zeigen { opacity: 1; }
.z-termine.zeitleiste > * { position: relative; z-index: 1; }
.z-termine.zeitleiste > .zl-gross { position: fixed; z-index: 0; }
@media (max-width: 760px) {
  .z-termine.zeitleiste { padding: 40px 0 72px; }
  .z-termine h2 { font-size: 30px; line-height: 36px; }
  .zl { padding: 0 16px; }
  .zl-achse { left: 31px; margin-left: -1.5px; }
  .zl-eintrag { grid-template-columns: 30px 1fr; column-gap: 20px; min-height: 0; padding: 36px 0; align-items: start; }
  .zl-punkt { grid-column: 1; grid-row: 1 / span 2; margin-top: 8px; justify-self: center; }
  .zl-eintrag .zl-text, .zl-eintrag:nth-child(odd) .zl-text, .zl-eintrag:nth-child(even) .zl-text { grid-column: 2; grid-row: 1; text-align: left; justify-self: start; padding: 0; }
  .zl-eintrag .zl-text img { margin-left: 0 !important; width: 44px; height: 44px; margin-bottom: 12px; }
  .zl-text p { font-size: 24px; line-height: 31px; }
  .zl-eintrag .zl-bild, .zl-eintrag:nth-child(odd) .zl-bild, .zl-eintrag:nth-child(even) .zl-bild { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 20px; width: min(100%, 360px); }
  .zl-gross { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) { .zl-text, .zl-bild { opacity: 1; transform: none; transition: none; } .zl-gross { transition: none; } }

/* Zela ab „Programm“: Wörter der Zitate füllen sich beim Scrollen (seitlich.js) */
.seitlich .z-quote blockquote p .wort { display: inline; margin: 0; font: inherit; transition: opacity .12s linear; }   /* nicht wie die Rollen-Zeile (span) im Zitat */
@media (prefers-reduced-motion: reduce) { .seitlich .z-quote blockquote p .wort { transition: none; } }

/* Stichpunkte im Kopfbild (Zela 2027; die Unterseiten haben dieselben Regeln in unterseiten.css) */
.z-hero .hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.z-hero .hero-chips li { padding: 7px 16px; border-radius: 999px; background: var(--accent); color: #000; font: 600 15px/1.2 var(--i); }
.z-hero .hero-chips + .btn { margin-top: 20px; }

/* Zela-Kopf: Anmelde-Button als runde Pille (passt zu den Stichpunkten) */
.z-hero .btn { border-radius: 999px; padding: 0 44px; }

/* ---------- Wartungsseite (index.html, solange die Website umgebaut wird) ---------- */
body.wartung { min-height: 100vh; min-height: 100svh; margin: 0; display: grid; place-items: center; background: var(--teal); color: var(--white); }
.wartung-in { position: relative; width: min(640px, calc(100vw - 48px)); padding: 72px 0; text-align: center; }
.wartung .lang { position: fixed; top: 24px; right: 24px; display: flex; align-items: center; gap: 10px; }
.wartung .lang a { color: var(--white); font: 400 20px/1 var(--i); }
.wartung .lang a.active { font-weight: 700; }
.wartung .lang .sep { width: 2px; height: 24px; background: var(--white); }
.wartung-schrift { display: block; width: 280px; max-width: 100%; height: auto; margin: 0 auto 40px; }
.wartung h1 { color: var(--white); font: 800 48px/1.1 var(--i); }
.wartung-in p { margin: 20px auto 0; max-width: 34em; font: 400 20px/1.55 var(--i); }
.wartung-in .wartung-kontakt { margin-top: 28px; }
.wartung-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; }
.wartung-links .btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 32px; border-radius: 999px; background: var(--white); color: var(--teal); font: 600 18px/1 var(--i); transition: background .15s; }
.wartung-links .btn:hover { background: #e9f3f3; }
.wartung-links .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) { .wartung h1 { font-size: 34px; } .wartung-in p { font-size: 17px; } .wartung-schrift { width: 260px; margin-bottom: 36px; } }
.wartung .lang a, .wartung .lang .sep { position: static; left: auto; top: auto; }   /* nicht die Positionen aus der Kopfzeile übernehmen */

/* ---------- Wartungsseite: Zelt-Animation „Wir bauen die Zelte auf“ ----------
   Ablauf (einmalig): Boden zieht sich (0–0,7 s) → Stange wächst (0,6–1,3 s) → Plane klappt von der Stange nach außen auf (1,2–2,2 s)
   → Eingang erscheint (2,1–2,6 s) → Spannseile (2,4–3,1 s) → Fähnchen (3,0 s) und weht danach weiter */
.zelt { display: block; width: min(320px, 80vw); height: auto; margin: 0 auto 24px; overflow: visible; }
.zelt line { stroke: var(--white); stroke-linecap: round; }
.zelt-boden { stroke-width: 4; stroke-dasharray: 280; stroke-dashoffset: 280; animation: zelt-zeichnen .7s ease-out forwards; }
.zelt-stange { stroke-width: 4; stroke-dasharray: 152; stroke-dashoffset: 152; animation: zelt-zeichnen .7s ease-out .6s forwards; }
.zelt-plane { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleX(0); animation: zelt-aufklappen 1s cubic-bezier(.2,.9,.3,1.15) 1.2s forwards; }
.zelt-links { fill: var(--white); }
.zelt-rechts { fill: #d9ecec; }
.zelt-tuer { fill: var(--teal); opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: zelt-tuer .5s ease-out 2.1s forwards; }
.zelt-seil { stroke-width: 2; opacity: .7; stroke-dasharray: 180; stroke-dashoffset: 180; animation: zelt-zeichnen .7s ease-out 2.4s forwards; }
.zelt-seil-r { animation-delay: 2.55s; }
.zelt-fahne { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: 0 50%; animation: zelt-fahne-auf .4s ease-out 3s forwards, zelt-wehen 1.6s ease-in-out 3.4s infinite alternate; }
.wartung h1, .wartung-in p, .wartung-links { opacity: 0; animation: zelt-text .7s ease-out forwards; }
.wartung h1 { animation-delay: 2.6s; }
.wartung-in p { animation-delay: 2.9s; }
.wartung-links { animation-delay: 3.2s; }
@keyframes zelt-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes zelt-aufklappen { to { transform: scaleX(1); } }
@keyframes zelt-tuer { to { opacity: 1; transform: scaleY(1); } }
@keyframes zelt-fahne-auf { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes zelt-wehen { from { transform: skewY(-6deg) scaleX(1); } to { transform: skewY(5deg) scaleX(.9); } }
@keyframes zelt-text { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .zelt *, .wartung h1, .wartung-in p, .wartung-links { animation: none !important; opacity: 1; stroke-dashoffset: 0; transform: none; }
  .zelt-seil { opacity: .7; }
}
