/* =========================================================================
   Hochwasserrückhaltebecken Limbach – Onepage der Marktgemeinde Schweiggers
   Modernes Layout in den Farben von www.schweiggers.gv.at.
   Alle Farben/Schriften zentral in :root – Anpassungen nur dort.
   ========================================================================= */

/* ---------- Schriften (lokal, kein externer Server / DSGVO) ---------- */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Palette „Schweiggers am Ursprung“ */
  --gold: #E2BE2F;
  --pazifik: #65B3C5;
  --oliv: #A9AD48;
  --lavendel: #B18591;
  --pink: #DEB0A6;
  --salbei: #B0B189;
  --hellbraun: #D1B59A;
  --blau: #255884;
  --graphit: #4E4E4E;

  /* abgeleitete Töne */
  --ink: #2a2f33;            /* dunkle Flächen (Hero, Footer) */
  --ink-2: #353b40;
  --text: #3d4246;
  --muted: #6b7278;
  --line: #e4e6e3;
  --bg: #ffffff;
  --bg-soft: #f6f5f0;        /* warmes Off-White */
  --pazifik-dark: #2c7d90;   /* Pazifik mit ausreichendem Kontrast auf Weiß */
  --pazifik-soft: #e6f3f6;
  --gold-soft: #fbf3d3;

  --f-head: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(20, 30, 35, .06), 0 8px 24px rgba(20, 30, 35, .07);
  --shadow-lg: 0 2px 4px rgba(20, 30, 35, .06), 0 20px 48px rgba(20, 30, 35, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --maxw: 1200px;
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--pazifik-dark); text-underline-offset: .18em; }
a:hover { color: var(--blau); }

h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.1; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 32px; } }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: .6em 1em; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Platzhalter für noch fehlende Projektdaten – vor Veröffentlichung ersetzen */
.tbd { background: var(--gold-soft); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 3px; padding: 0 .2em; color: inherit; }
.on-dark .tbd { background: rgba(226, 190, 47, .22); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header.scrolled,
.no-js .site-header {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-logo { width: 150px; height: auto; transition: filter .3s; }
/* Auf dem dunklen Hero: Logo hell darstellen */
.site-header:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }
.no-js .site-header .brand-logo { filter: none; }
.brand-sep { width: 1px; height: 28px; background: currentColor; opacity: .3; }
.brand-name { font: 600 .95rem/1.1 var(--f-head); color: var(--ink); white-space: nowrap; }
.site-header:not(.scrolled) .brand-name, .site-header:not(.scrolled) .brand-sep { color: #fff; }
.no-js .site-header .brand-name { color: var(--ink); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.main-nav a {
  display: block; padding: .45em .9em; border-radius: 99px;
  font: 600 1rem var(--f-head); text-decoration: none; color: var(--ink);
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.main-nav a.active { background: var(--ink); color: #fff; }
.site-header:not(.scrolled) .main-nav a { color: rgba(255, 255, 255, .88); }
.site-header:not(.scrolled) .main-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-header:not(.scrolled) .main-nav a.active { background: #fff; color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; align-items: center; justify-content: center;
}
.site-header.scrolled .nav-toggle { background: rgba(0, 0, 0, .06); color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.nav-open .nav-toggle .i-open { display: none; }

@media (max-width: 900px) {
  .brand-sep, .brand-name { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 12px auto; padding: .75rem;
    background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav-open .main-nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav a, .site-header:not(.scrolled) .main-nav a { color: var(--ink); padding: .8em 1em; font-size: 1.1rem; }
  .site-header:not(.scrolled) .main-nav a.active, .main-nav a.active { background: var(--pazifik-soft); color: var(--ink); }
  .nav-open .site-header { background: #fff; }
  .nav-open .site-header .brand-logo { filter: none; }
  .nav-open .site-header .nav-toggle { background: rgba(0, 0, 0, .06); color: var(--ink); }
  /* ohne JavaScript: Menü unter dem Header einblenden */
  .no-js .nav-toggle { display: none; }
  .no-js .main-nav { position: static; opacity: 1; transform: none; visibility: visible; pointer-events: auto; box-shadow: none; padding: 0; background: none; }
  .no-js .main-nav ul { flex-direction: row; flex-wrap: wrap; }
  .no-js .site-header { height: auto; position: static; }
  .no-js .site-header .container { flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
  .no-js .main-nav a { padding: .4em .7em; font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: min(100svh, 920px);
  display: flex; align-items: center;
  background:
    radial-gradient(60rem 40rem at 85% 10%, rgba(101, 179, 197, .35), transparent 60%),
    radial-gradient(40rem 30rem at 0% 100%, rgba(169, 173, 72, .25), transparent 60%),
    radial-gradient(30rem 20rem at 60% 60%, rgba(226, 190, 47, .12), transparent 70%),
    var(--ink);
  padding: calc(var(--header-h) + 3rem) 0 9rem;
}
.no-js .hero { padding-top: 4rem; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent { color: var(--pazifik); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .82); max-width: 36rem; }

.chip {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .4em .95em .4em .75em; border-radius: 99px;
  font: 600 .9rem var(--f-head); letter-spacing: .02em;
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
  margin-bottom: 1.5rem;
}
.chip .dot { width: .6em; height: .6em; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(226, 190, 47, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(226, 190, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 190, 47, 0); } }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 99px; border: 0; cursor: pointer;
  font: 600 1.05rem var(--f-head); text-decoration: none;
  background: var(--gold); color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(226, 190, 47, .35); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; box-shadow: var(--shadow-lg); }

/* Hero-Karte mit Projektstatus */
.status-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: var(--r-lg); padding: 1.75rem;
}
.status-card h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .65); margin-bottom: 1rem; font-weight: 600; }
.status-card .phase { font: 700 1.6rem/1.15 var(--f-head); color: #fff; margin-bottom: 1.25rem; }
.progress { height: 10px; background: rgba(255, 255, 255, .12); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--pazifik), var(--oliv), var(--gold)); }
.progress-meta { display: flex; justify-content: space-between; font-size: .9rem; color: rgba(255, 255, 255, .7); margin-top: .55rem; }
.status-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .65rem; font-size: .95rem; }
.status-list li { display: flex; justify-content: space-between; gap: 1rem; padding-top: .65rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.status-list span:first-child { color: rgba(255, 255, 255, .65); }
.status-list strong { color: #fff; font-weight: 600; text-align: right; }

/* animierte Wellen am unteren Rand */
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 140px; z-index: 1; pointer-events: none; }
.waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; max-width: none; }
.waves .w1 { animation: drift 18s linear infinite; opacity: .35; }
.waves .w2 { animation: drift 12s linear infinite reverse; opacity: .55; }
.waves .w3 { animation: drift 24s linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 150px; z-index: 2; transform: translateX(-50%);
  width: 28px; height: 44px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 99px;
}
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hint 1.8s infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-bottom: 7rem; }
  .scroll-hint { display: none; }
}

/* ---------- Kennzahlen-Leiste ---------- */
.stats { position: relative; z-index: 3; margin-top: -3.5rem; }
.stats ul {
  list-style: none; margin: 0; padding: .5rem; display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.stat { padding: 1.4rem 1.25rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat .value { display: block; font: 700 clamp(1.7rem, 3vw, 2.4rem)/1.05 var(--f-head); color: var(--ink); letter-spacing: -.02em; }
.stat .label { display: flex; align-items: center; gap: .5em; margin-top: .4rem; font-size: .92rem; color: var(--muted); }
.stat .label::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--c, var(--pazifik)); flex: none; }
@media (max-width: 800px) {
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, .8); }
.section-dark h2, .section-dark h3 { color: #fff; }

.kicker {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1rem;
  font: 700 .85rem var(--f-head); text-transform: uppercase; letter-spacing: .14em; color: var(--pazifik-dark);
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--k, var(--pazifik)); }
.section-dark .kicker { color: var(--pazifik); }

.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }

/* ---------- Bento-Grid „Warum“ ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(6, 1fr); }
.tile {
  grid-column: span 2; background: #fff; border-radius: var(--r); padding: 1.75rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile p { margin: 0; color: var(--muted); }
.tile h3 { margin-bottom: .4em; }
.tile-wide { grid-column: span 4; }
.tile-feature {
  grid-column: span 4; grid-row: span 2;
  background: linear-gradient(150deg, var(--pazifik) 0%, #4a98aa 100%); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px;
}
.tile-feature h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tile-feature p { color: rgba(255, 255, 255, .9); font-size: 1.05rem; max-width: 34rem; }
.tile-feature .big-wave { position: absolute; top: 1.5rem; right: -2rem; width: 70%; opacity: .25; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--c, var(--pazifik)); color: #fff; margin-bottom: 1.25rem;
}
.icon-badge svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile-wide { grid-column: span 1; }
  .tile-feature { grid-column: span 2; grid-row: auto; min-height: 260px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile-feature { grid-column: span 1; }
}

/* ---------- Funktionsweise (interaktives Schema) ---------- */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }

.segmented { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; border-radius: 99px; background: rgba(255, 255, 255, .08); margin-bottom: 1.5rem; }
.segmented button {
  border: 0; cursor: pointer; border-radius: 99px; padding: .55em 1.1em;
  font: 600 .98rem var(--f-head); color: rgba(255, 255, 255, .75); background: transparent;
  transition: background .2s, color .2s;
}
.segmented button:hover { color: #fff; }
.segmented button[aria-selected="true"] { background: #fff; color: var(--ink); }
.no-js .segmented { display: none; }

.state-text { min-height: 7.5rem; }
.state-text [data-for] { display: none; }
.state-text h3 { color: #fff; }
[data-state="normal"] .state-text [data-for="normal"],
[data-state="hochwasser"] .state-text [data-for="hochwasser"],
[data-state="entleerung"] .state-text [data-for="entleerung"] { display: block; animation: fade .4s var(--ease); }
.no-js .state-text [data-for] { display: block; margin-bottom: 1rem; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.diagram { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); padding: clamp(.75rem, 2vw, 1.5rem); }
.diagram svg { width: 100%; height: auto; }
.diagram .water { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .9s var(--ease), opacity .9s var(--ease); }
.diagram .water-basin { transform: scaleY(.08); opacity: .0; }
[data-state="hochwasser"] .diagram .water-basin { transform: scaleY(1); opacity: 1; }
[data-state="entleerung"] .diagram .water-basin { transform: scaleY(.45); opacity: 1; }
.no-js .diagram .water-basin { transform: scaleY(1); opacity: 1; }
.diagram .inflow { transition: stroke-width .9s var(--ease); stroke-width: 6; }
[data-state="hochwasser"] .diagram .inflow { stroke-width: 16; }
[data-state="entleerung"] .diagram .inflow { stroke-width: 8; }
.diagram .flow-dash { stroke-dasharray: 10 14; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.diagram text { font-family: var(--f-head); font-weight: 600; fill: rgba(255, 255, 255, .85); }
.diagram .label-dim { fill: rgba(255, 255, 255, .55); font-weight: 400; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; font-size: .9rem; color: rgba(255, 255, 255, .65); }
.legend span { display: inline-flex; align-items: center; gap: .45em; }
.legend i { width: .8em; height: .8em; border-radius: 3px; background: var(--c); }

/* ---------- Zeitplan ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--oliv) 0, var(--oliv) var(--done, 50%), var(--line) var(--done, 50%));
}
.step { position: relative; padding-top: 2.75rem; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 4px solid var(--line); box-sizing: border-box;
}
.step.done::before { background: var(--oliv); border-color: var(--oliv); }
.step.done::after {
  content: ""; position: absolute; left: 10px; top: 7px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.step.current::before { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 6px rgba(226, 190, 47, .25); }
.step .when { font: 700 .9rem var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.step h3 { font-size: 1.2rem; margin: .3rem 0 .4rem; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }
.step .tag { display: inline-block; margin-top: .6rem; font: 700 .72rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; padding: .25em .7em; border-radius: 99px; background: var(--gold-soft); color: #8a6d00; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .timeline::before { left: 13px; right: auto; top: 0; bottom: 0; width: 4px; height: auto;
    background: linear-gradient(180deg, var(--oliv) 0, var(--oliv) var(--done, 50%), var(--line) var(--done, 50%)); }
  .step { padding: 0 0 2rem 3.25rem; }
}

/* ---------- Aktuelles ---------- */
.news { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post {
  background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-media { aspect-ratio: 16 / 10; background: var(--pazifik-soft); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 1.4rem 1.5rem 1.6rem; }
.post-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; font-size: .85rem; color: var(--muted); }
.post-meta .cat { font: 700 .72rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; padding: .25em .7em; border-radius: 99px; background: var(--c, var(--pazifik-soft)); color: var(--ink); }
.post h3 { font-size: 1.3rem; }
.post p { margin: 0; color: var(--muted); }

/* ---------- Beteiligte & Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.partners { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.partners li {
  display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: var(--r);
  padding: 1rem 1.25rem; box-shadow: var(--shadow);
}
.partners .icon-badge { margin: 0; width: 44px; height: 44px; border-radius: 14px; flex: none; }
.partners .icon-badge svg { width: 22px; height: 22px; }
.partners small { display: block; font: 700 .75rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.partners strong { font: 600 1.1rem var(--f-head); color: var(--ink); }

.contact-card {
  background: var(--ink); color: rgba(255, 255, 255, .8); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 179, 197, .45), transparent 70%);
}
.contact-card h3 { color: #fff; font-size: 1.7rem; }
.contact-card address { font-style: normal; margin-bottom: 1.5rem; }
.contact-links { display: grid; gap: .6rem; margin-bottom: 1.75rem; position: relative; z-index: 1; }
.contact-links a {
  display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; font-weight: 600;
  transition: background .2s;
}
.contact-links a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.contact-links svg { width: 20px; height: 20px; color: var(--pazifik); flex: none; }
.hours { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.25rem; margin: 0; font-size: .95rem; position: relative; z-index: 1; }
.hours dt { color: #fff; font-weight: 600; }
.hours dd { margin: 0; }

/* ---------- Rechtliches (aufklappbar) ---------- */
.legal { padding: 3rem 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.legal details { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: .75rem; }
.legal summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.4rem; display: flex; justify-content: space-between; align-items: center;
  font: 700 1.2rem var(--f-head); color: var(--ink);
}
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--muted); transition: transform .2s; }
.legal details[open] summary::after { transform: rotate(45deg); }
.legal .legal-body { padding: 0 1.4rem 1.4rem; max-width: 50rem; font-size: .95rem; }
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 2.5rem 0; font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.site-footer img { width: 150px; filter: brightness(0) invert(1); opacity: .9; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--ink); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Scroll-Animationen ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .waves, .scroll-hint, .to-top, .segmented, .actions { display: none !important; }
  .hero, .section-dark, .contact-card, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .section-dark h2, .section-dark h3, .contact-card h3 { color: #000 !important; }
  .legal details { box-shadow: none; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .segmented { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 16px; }
  .segmented button { padding: .6em .3em; font-size: .92rem; border-radius: 12px; }
  .no-js .segmented { display: none; }
  .diagram text { font-size: 24px; }
  .diagram .label-dim { font-size: 20px; }
}
