/* ==========================================================================
   Schweizer Familiengärtner-Verband – Redesign-Entwurf (MADLAB)
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --green-950: #102c1f;
  --green-900: #173d2a;
  --green-800: #1d4b33;
  --green-600: #2f6b45;
  --green-100: #e5ecdf;
  --sage-50: #f1f3eb;
  --paper: #fbfaf6;
  --ink: #18221c;
  --ink-soft: #46524a;
  --line: #dde2d6;
  --red: #d52b1e;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --radius: 6px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--green-600); outline-offset: 3px; border-radius: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; background: var(--green-900); color: #fff; border-radius: var(--radius);
  transform: translateY(-160%); transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typo-Bausteine ---------- */
.eyebrow, .kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-900);
}
.eyebrow::before, .kicker::before {
  content: ""; width: 32px; height: 2px; background: var(--green-600); flex: none;
}
.kicker { font-size: 0.95rem; letter-spacing: 0.16em; font-weight: 700; }

.display, .hero-title, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
  font-variation-settings: "SOFT" 30, "WONK" 0;
  text-wrap: balance;
}
.display { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem); }
.h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.lead { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; }
.tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-600); }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green-900); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.75); border-color: rgba(23,61,42,0.28); color: var(--green-900); }
.btn-light { background: #fff; color: var(--green-900); }

.arrow { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--ease-out); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; color: var(--green-900);
  padding-block: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size 250ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--green-800); }
  .btn-ghost:hover { background: #fff; border-color: var(--green-900); }
  .btn-light:hover { background: var(--green-100); }
  .btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }
  .link-arrow:hover { background-size: 0% 1.5px; background-position: 100% 100%; }
}

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
/* Blur auf Pseudo-Element: backdrop-filter am Header selbst würde das fixe Mobile-Menü einsperren */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16, 44, 31, 0.5); }

.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 46px; height: 46px; border-radius: 3px; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.08;
  letter-spacing: -0.01em; color: var(--ink);
}

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 10px; border: 0; background: none; cursor: pointer;
  font-size: 0.95rem; font-weight: 500; color: var(--ink); border-radius: var(--radius);
  transition: background-color 150ms ease;
}
.chev { width: 12px; height: 12px; stroke-width: 1.8; transition: transform 200ms var(--ease-out); }
.has-sub { position: relative; }
.has-sub.is-open .chev { transform: rotate(180deg); }

.sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  display: grid; gap: 2px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(16, 44, 31, 0.35);
  transform-origin: top left;
  opacity: 0; transform: translateY(-4px) scale(0.97); visibility: hidden;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
}
.sub-wide { grid-template-columns: 1fr 1fr; min-width: 380px; }
.sub-wide a:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; margin-top: 4px; }
.has-sub.is-open .sub {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s;
}
.sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; } /* Hover-Brücke */
.sub a {
  display: flex; flex-direction: column; padding: 9px 12px; border-radius: 6px;
  font-size: 0.95rem; font-weight: 500;
  transition: background-color 150ms ease;
}
.sub a small { font-size: 0.78rem; font-weight: 400; color: var(--ink-soft); }

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover, .sub a:hover { background: var(--sage-50); }
}

.header-tools { display: flex; align-items: center; gap: 6px; }
.lang { display: flex; gap: 2px; margin-right: 4px; }
.lang a {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; padding: 6px 7px;
  color: var(--ink-soft); border-bottom: 2px solid transparent;
}
.lang a[aria-current] { color: var(--green-900); border-color: var(--green-600); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: none; border-radius: 50%; cursor: pointer;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 22px; height: 22px; stroke-width: 1.8; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--sage-50); } }

.header-cta { margin-left: 8px; min-height: 44px; padding: 0 18px; font-size: 0.92rem; }
.menu-btn { display: none; }
.nav-cta-mobile, .nav-lang-mobile { display: none; }

/* Suche */
.search-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 220ms var(--ease-out), visibility 0s linear 220ms;
}
.search-panel.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 260ms var(--ease-out), visibility 0s; }
.search-inner { display: flex; gap: 12px; padding-block: 18px 22px; }
.search-inner input {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px; font-size: 1.05rem;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color 150ms ease;
}
.search-inner input:focus { outline: none; border-color: var(--green-600); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 62vh, 620px);
  display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0 0 0 28%; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 28%, rgba(251,250,246,0.86) 40%, rgba(251,250,246,0) 64%);
}
.hero-content { padding-block: 72px; }
.hero-title { font-size: clamp(2.6rem, 1.3rem + 5vw, 5.1rem); margin: 22px 0 22px; max-width: 11ch; }
.hero-title span { display: block; }
.hero-lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem); max-width: 36ch; margin-bottom: 32px; color: var(--ink); }

/* Einstieg Hero: einmalig beim Laden, gestaffelt */
.js .hero .eyebrow, .js .hero-title span, .js .hero-lead, .js .hero .btn-row {
  animation: rise 700ms var(--ease-out) both;
}
.js .hero .eyebrow { animation-delay: 60ms; }
.js .hero-title span:nth-child(1) { animation-delay: 120ms; }
.js .hero-title span:nth-child(2) { animation-delay: 190ms; }
.js .hero-lead { animation-delay: 260ms; }
.js .hero .btn-row { animation-delay: 330ms; }
.js .hero-media img { animation: settle 1400ms var(--ease-out) both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } }

/* ==========================================================================
   Sektionen
   ========================================================================== */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 32px; }
.section-head .kicker { white-space: nowrap; }

/* Bild-Zoom auf Hover (nur Maus) */
.img-zoom { display: block; overflow: hidden; border-radius: var(--radius); background: var(--green-100); }
.img-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }

/* Aktuell */
.aktuell-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 4vw, 56px); }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; padding-right: clamp(0px, 3vw, 48px); border-right: 1px solid var(--line); }
.feature-img { aspect-ratio: 4 / 3.3; }
.feature-body { display: grid; gap: 14px; align-content: center; }
.feature-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
.feature-body p:not(.tag) { color: var(--ink-soft); }
.feature-body .link-arrow { justify-self: start; }

.side-list { display: grid; align-content: start; }
.side-item { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); }
.side-item:first-child { padding-top: 0; }
.side-item:last-child { border-bottom: 0; }
.side-img { aspect-ratio: 4 / 3; }
.side-title { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; line-height: 1.12; margin: 6px 0 6px; text-wrap: balance; }
.meta { font-size: 0.85rem; color: var(--ink-soft); }

/* gesamte Karte klickbar via Titel-Link */
.feature, .side-item { position: relative; }
.feature-title a::after, .side-title a::after { content: ""; position: absolute; inset: 0; }

@media (hover: hover) and (pointer: fine) {
  .feature:hover .img-zoom img, .side-item:hover .img-zoom img, .tile a:hover .img-zoom img { transform: scale(1.04); }
  .feature:hover .link-arrow .arrow { transform: translateX(3px); }
  .feature-title a, .side-title a { transition: color 150ms ease; }
  .feature:hover .feature-title a, .side-item:hover .side-title a { color: var(--green-600); }
}

/* Magazin */
.magazin {
  position: relative; overflow: hidden;
  background: linear-gradient(100deg, var(--green-100) 0%, var(--sage-50) 55%, #f6f5ee 100%);
}
.magazin-deco {
  position: absolute; right: max(-40px, calc((100vw - var(--container)) / 2 - 80px)); bottom: -30px;
  width: clamp(180px, 22vw, 300px); height: auto; color: var(--green-600); opacity: 0.35;
  stroke-width: 1.4;
}
.magazin-deco .petals { color: #b05c8a; stroke: #b05c8a; }
.magazin-inner { position: relative; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(56px, 7vw, 88px); }
.cover {
  display: block; transform: rotate(-4deg); border-radius: 3px;
  box-shadow: 0 30px 50px -22px rgba(16, 44, 31, 0.55), 0 2px 6px rgba(16, 44, 31, 0.15);
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
.cover img { border-radius: 3px; }
@media (hover: hover) and (pointer: fine) {
  .cover:hover { transform: rotate(-2deg) translateY(-6px); box-shadow: 0 40px 60px -24px rgba(16, 44, 31, 0.55), 0 2px 6px rgba(16, 44, 31, 0.15); }
}
.magazin-text { display: grid; gap: 20px; max-width: 640px; }
.magazin-text .btn-row { margin-top: 8px; }

/* Wissen */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile a {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.tile a:active { transform: scale(0.98); }
.tile-img { aspect-ratio: 4 / 3; border-radius: 0; }
.tile-body { position: relative; display: grid; gap: 4px; padding: 16px 16px 40px; flex: 1; }
.tile-body strong { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.15; }
.tile-body span { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.4; }
.tile-body .arrow { position: absolute; right: 14px; bottom: 14px; color: var(--green-900); }
@media (hover: hover) and (pointer: fine) {
  .tile a:hover { border-color: #c7d0c0; box-shadow: 0 16px 30px -22px rgba(16, 44, 31, 0.5); }
  .tile a:hover .arrow { transform: translateX(3px); }
}

/* Gemeinsam */
.gemeinsam { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border-block: 1px solid var(--line); }
.gemeinsam-media { min-height: 420px; overflow: hidden; }
.gemeinsam-media img { width: 100%; height: 100%; object-fit: cover; }
.gemeinsam-text {
  display: grid; gap: 22px; align-content: center;
  padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(48px, 6vw, 88px) clamp(32px, 5vw, 72px);
  max-width: 680px;
}
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 40px; padding-block: 6px; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.stats dd { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; line-height: 1.1; color: var(--green-900); font-variant-numeric: lining-nums tabular-nums; }

.chips-label { font-weight: 600; font-size: 0.95rem; margin-bottom: -10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 999px; font-size: 0.92rem; font-weight: 500;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.chips a:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .chips a:hover { border-color: var(--green-900); background: var(--green-900); color: #fff; }
}

/* Jubiläum */
.jubi-inner { display: grid; grid-template-columns: 170px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 980px; }
.jubi-cover { border-radius: 3px; box-shadow: 0 20px 36px -20px rgba(16, 44, 31, 0.5); transform: rotate(2deg); }
.jubi-inner > div { display: grid; gap: 16px; }
.jubi-inner p:not(.eyebrow) { color: var(--ink-soft); max-width: 56ch; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; }
.downloads a {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px;
  background: var(--sage-50); border-radius: var(--radius); font-weight: 600; font-size: 0.92rem; color: var(--green-900);
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.downloads a:active { transform: scale(0.97); }
.downloads small { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--green-600); }
@media (hover: hover) and (pointer: fine) { .downloads a:hover { background: var(--green-100); } }

/* Service */
.service { border-top: 1px solid var(--line); background: var(--paper); }
.service-inner { display: grid; grid-template-columns: 150px 1fr; gap: 32px; align-items: center; padding-block: 44px; }
.service-title {
  font-size: 1.35rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.15;
  padding-top: 14px; border-top: 2px solid var(--green-600); justify-self: start;
}
.service-list { display: grid; grid-template-columns: repeat(5, 1fr); }
.service-list li + li { border-left: 1px solid var(--line); }
.service-list a {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 20px; height: 100%;
  border-radius: var(--radius); transition: background-color 150ms ease;
}
.service-list svg { width: 28px; height: 28px; margin-bottom: 8px; color: var(--green-900); stroke-width: 1.5; flex: none; }
.service-list strong { font-size: 0.98rem; line-height: 1.25; }
.service-list span { font-size: 0.84rem; color: var(--ink-soft); line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .service-list a:hover { background: var(--sage-50); } }

/* Footer */
.site-footer { background: var(--green-950); color: #dfe7dc; padding-top: 64px; }
.site-footer a { transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: #fff; } }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand img { width: 56px; height: 56px; border-radius: 4px; }
.footer-brand p { font-size: 0.95rem; line-height: 1.5; color: #b8c6b6; }
.footer-brand strong { color: #fff; font-weight: 600; }
.site-footer h3 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9fb39c; font-weight: 600; margin-bottom: 14px; }
.site-footer nav li { margin-bottom: 8px; }
.social { display: flex; gap: 18px; font-weight: 600; font-size: 0.92rem; }
.footer-news p { color: #b8c6b6; font-size: 0.95rem; margin-bottom: 14px; }
.footer-news .field { display: flex; gap: 8px; }
.footer-news input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; font-size: 1rem;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.18); border-radius: var(--radius); color: #fff;
  transition: border-color 150ms ease;
}
.footer-news input::placeholder { color: #8fa38c; }
.footer-news input:focus { outline: none; border-color: #fff; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem; color: #9fb39c;
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ==========================================================================
   Scroll-Reveal (einmalig, kurz, nur transform + opacity)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .jubi-cover.reveal.is-in { transform: rotate(2deg); }
.js .reveal-clip img { clip-path: inset(0 0 100% 0); transform: scale(1.05); transition: clip-path 1100ms var(--ease-in-out), transform 1400ms var(--ease-out); }
.js .reveal-clip.is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1340px) {
  .header-cta { display: none; }
}

@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .service-list { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .service-list li:nth-child(4) { border-left: 0; }
  .aktuell-grid { grid-template-columns: 1fr; }
  .feature { border-right: 0; padding-right: 0; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
  .side-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .side-item { grid-template-columns: 1fr; border: 0; padding: 0; align-items: start; }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 0.98rem; }
  .menu-btn { display: inline-grid; position: relative; }
  .menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform 220ms var(--ease-out); }
  .menu-btn span:first-child { transform: translateY(-4px); }
  .menu-btn span:last-child { transform: translateY(4px); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  .header-tools { margin-left: auto; }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 40; margin: 0;
    display: flex; flex-direction: column; gap: 24px;
    padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; height: 58px; padding: 0 2px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
  .chev { width: 16px; height: 16px; }
  .sub, .sub-wide {
    position: static; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; background: none;
    grid-template-columns: 1fr; opacity: 1; transform: none; visibility: visible;
    display: none;
  }
  .has-sub.is-open .sub { display: grid; }
  .sub-wide a:last-child { border: 0; margin: 0; }
  .sub a { padding: 10px 2px; font-size: 1.02rem; }
  .nav-cta-mobile { display: inline-flex; align-self: stretch; }
  .nav-lang-mobile { display: block; align-self: center; font-weight: 600; font-size: 0.95rem; color: var(--green-900); text-decoration: underline; text-underline-offset: 4px; }
  body.menu-open { overflow: hidden; }

  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-media { position: relative; inset: auto; order: -1; aspect-ratio: 16 / 10; }
  .hero::before { display: none; }
  .hero-content { padding-block: 36px 56px; }

  .magazin-inner { grid-template-columns: 1fr; }
  .cover { width: min(240px, 60vw); margin-inline: auto; }
  .magazin-deco { display: none; }

  .gemeinsam { grid-template-columns: 1fr; }
  .gemeinsam-media { min-height: 0; aspect-ratio: 16 / 10; }
  .gemeinsam-text { padding: 48px var(--gutter) 56px; max-width: none; }

  .service-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .lang { display: none; }
  .hero .eyebrow::before { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile-body { padding: 12px 12px 36px; }
  .tile-body strong { font-size: 1rem; }
  .tile-body span { font-size: 0.82rem; }
  .feature { grid-template-columns: 1fr; }
  .side-list { grid-template-columns: 1fr; gap: 0; }
  .side-item { grid-template-columns: 112px 1fr; padding-block: 16px; border-bottom: 1px solid var(--line); align-items: center; }
  .side-item:first-child { padding-top: 16px; }
  .section-head .link-arrow { font-size: 0.88rem; }
  .btn-row .btn { flex: 1 1 auto; }
  .stats { gap: 8px 28px; }
  .stats dd { font-size: 1.6rem; }
  .jubi-inner { grid-template-columns: 1fr; }
  .jubi-cover { width: 150px; }
  .service-list { grid-template-columns: 1fr; }
  .service-list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .service-list a { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; align-content: start; padding: 16px 4px; }
  .service-list svg { grid-row: span 2; margin: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .search-inner input { font-size: 16px; }
  .footer-news input { font-size: 16px; }
}

/* ==========================================================================
   Reduzierte Bewegung: keine Positionsbewegung, nur sanfte Opazität
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .js .hero .eyebrow, .js .hero-title span, .js .hero-lead, .js .hero .btn-row, .js .hero-media img { animation: fade 300ms ease both; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .js .reveal-clip img { clip-path: none; transform: none; transition: none; }
  .img-zoom img, .cover, .arrow { transition: none !important; }
  .btn:active, .tile a:active, .chips a:active, .icon-btn:active { transform: none; }
  .sub, .main-nav { transform: none !important; }
}
@keyframes fade { from { opacity: 0; } }
