/* =========================================================================
   Familienquelle - style.css
   Eine Datei fuer die ganze Website. Aufbau:
   1 Schriften  2 Farb- und Groessen-Werte  3 Grundlagen  4 Typografie
   5 Layout-Helfer  6 Kopfleiste + Menue  7 Buttons  8 Kopfbereich (Hero)
   9 Einblenden beim Scrollen  10 Abschnitte + Karten  11 Formular
   12 Fussbereich  13 Cookie-Hinweis  14 Hilfsklassen  15 Handy/Tablet/Desktop
   ========================================================================= */

/* 1 ---------- Schriften (liegen lokal in assets/fonts, nichts von Google) - */
/* Shantell Sans, nur fuer Ueberschriften; das kleine q ist begradigt (ohne Haekchen) */
@font-face {
  font-family: "Shantell Sans";
  src: url("../fonts/shantell-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2 ---------- Farb- und Groessen-Werte ---------------------------------- */
:root {
  --tuerkis: #0097b2;          /* Marke, aus dem Logo */
  --tuerkis-tief: #0a6070;     /* dunkleres Tuerkis fuer Text und Buttons */
  --tuerkis-satt: #0b7286;     /* Zwischenton */
  --tinte: #2c2723;            /* warmes Fast-Schwarz fuer Text */
  --tinte-weich: #5c5349;      /* zweite Textfarbe */
  --creme: #fbf7ef;            /* Seitenhintergrund */
  --creme-tief: #f4ecdd;       /* etwas tieferes Creme */
  --sand: #ece1cd;            /* Sand fuer Karten und abgesetzte Bereiche */
  --sand-linie: #ddceb2;       /* feine Linien */
  --weiss: #ffffff;

  --schrift-display: "Shantell Sans", "Segoe Print", "Bradley Hand", ui-rounded,
    "Trebuchet MS", sans-serif;
  --schrift-text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI",
    Helvetica, Arial, sans-serif;

  --mass: 64ch;               /* angenehme Textbreite */
  --wrap: 68rem;              /* max. Inhaltsbreite */
  --radius: 16px;
  --radius-klein: 10px;
  --schatten: 0 1px 2px rgba(44, 39, 35, 0.05), 0 12px 30px -18px rgba(44, 39, 35, 0.28);
  --rand: 1px solid var(--sand-linie);
  --tempo: 240ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 1.02rem;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img,
picture,
svg,
canvas { display: block; max-width: 100%; }

img { height: auto; }

a { color: var(--tuerkis-tief); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

::selection { background: rgba(0, 151, 178, 0.18); }

/* 4 ---------- Typografie ---------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--schrift-display);
  font-weight: 500;
  line-height: 1.14;
  color: var(--tinte);
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(1.7rem, 2.8vw + 0.7rem, 2.55rem); }
h2 { font-size: clamp(1.35rem, 1.8vw + 0.6rem, 1.85rem); }
h3 {
  font-family: var(--schrift-text);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.2vw + 0.85rem, 1.4rem);
  line-height: 1.3;
  letter-spacing: 0;
}
h4 {
  font-family: var(--schrift-text);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--schrift-text);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tuerkis-tief);
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 2.4rem;
  height: 0.8rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14'%3E%3Cpath d='M 2.0,7.0 2.7,6.4 3.4,5.9 4.1,5.4 4.8,4.9 5.5,4.4 6.2,4.0 6.9,3.6 7.6,3.3 8.3,3.0 9.0,2.8 9.7,2.7 10.4,2.6 11.1,2.6 11.8,2.6 12.5,2.7 13.2,2.9 13.9,3.1 14.6,3.4 15.3,3.7 16.0,4.0 16.7,4.4 17.4,4.8 18.1,5.3 18.8,5.7 19.5,6.2 20.2,6.7 20.9,7.2 21.6,7.6 22.3,8.1 23.0,8.5 23.7,8.9 24.4,9.3 25.1,9.6 25.8,9.9 26.5,10.1 27.2,10.3 27.9,10.5 28.6,10.6 29.3,10.6 30.0,10.6 30.7,10.5 31.4,10.4 32.1,10.3 32.8,10.1 33.5,9.9 34.2,9.6 34.9,9.3 35.6,9.0 36.3,8.6 37.0,8.3 37.7,7.9 38.4,7.5 39.1,7.1 39.8,6.8 40.5,6.4 41.2,6.0 41.9,5.7 42.6,5.4 43.3,5.1 44.0,4.9 44.7,4.7 45.4,4.5 46.1,4.4 46.8,4.3 47.5,4.2 48.2,4.2 48.9,4.2 49.6,4.3 50.3,4.4 51.0,4.5 51.7,4.7 52.4,4.9 53.1,5.1 53.8,5.3 54.5,5.6 55.2,5.9 55.9,6.1 56.6,6.4 57.3,6.7 58.0,7.0' fill='none' stroke='%230097b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

.lead {
  font-size: clamp(1.1rem, 0.7vw + 1rem, 1.28rem);
  line-height: 1.6;
  color: var(--tinte);
}

.prose { max-width: var(--mass); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin: 0.35rem 0; }
.prose ul > li { margin: 0.55rem 0; font-weight: 500; }
.prose ul ul { margin: 0.4rem 0 0.7rem; padding-left: 1.05rem; }
.prose ul ul > li { margin: 0.3rem 0; font-weight: 400; color: var(--tinte-weich); }

/* 5 ---------- Layout-Helfer ------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.6rem);
}
.wrap--schmal { max-width: 46rem; }

.section { padding-block: clamp(3.25rem, 8vw, 6rem); }
.section--sand { background: var(--sand); }
.section--creme-tief { background: var(--creme-tief); }
.section + .section { border-top: 1px solid rgba(221, 206, 178, 0.5); }
.section--sand + .section,
.section + .section--sand,
.section + .section--creme-tief { border-top: 0; }

.stack > * + * { margin-top: 1.1rem; }
.stack-l > * + * { margin-top: 1.8rem; }

.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .prose { margin-inline: auto; }

/* 6 ---------- Kopfleiste + Menue ----------------------------------- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 200;
  background: var(--tuerkis-tief);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 0 0 10px 10px;
  transition: top var(--tempo) var(--ease);
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.86);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tempo) var(--ease), background var(--tempo) var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--sand-linie);
  background: rgba(251, 247, 239, 0.95);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
  padding-block: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px;
}
.brand img { width: clamp(132px, 34vw, 176px); height: auto; }

/* Navigation */
.nav { display: flex; align-items: center; }
.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.nav__link,
.nav__button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  color: var(--tinte);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.nav__link:hover,
.nav__button:hover { background: rgba(0, 151, 178, 0.1); color: var(--tuerkis-tief); }
.nav__link[aria-current="page"] {
  color: var(--tuerkis-tief);
  box-shadow: inset 0 -2px 0 var(--tuerkis);
}

/* Untermenue "Wege" */
.has-menu { position: relative; }
.nav__button svg { width: 0.7rem; height: 0.7rem; transition: transform var(--tempo) var(--ease); }
.has-menu[data-open="true"] .nav__button svg { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 15rem;
  background: var(--weiss);
  border: var(--rand);
  border-radius: var(--radius-klein);
  box-shadow: var(--schatten);
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  display: none;
}
/* unsichtbare Bruecke ueber der Luecke, damit das Menue beim Hinsteuern nicht zuklappt */
.submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.7rem;
}
.has-menu[data-open="true"] .submenu { display: block; }
@media (min-width: 901px) and (hover: hover) {
  .has-menu:hover .submenu,
  .has-menu:focus-within .submenu { display: block; }
  .has-menu:hover .nav__button svg,
  .has-menu:focus-within .nav__button svg { transform: rotate(180deg); }
}
.submenu a {
  display: block;
  padding: 0.6rem 0.7rem;
  border-radius: 7px;
  color: var(--tinte);
  text-decoration: none;
}
.submenu a:hover { background: var(--creme-tief); color: var(--tuerkis-tief); }
.submenu a[aria-current="page"] { color: var(--tuerkis-tief); font-weight: 600; }

/* Menue-Schalter (Handy) */
.nav-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  border: var(--rand);
  border-radius: 10px;
  background: var(--weiss);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--tinte);
  border-radius: 2px;
  transition: transform var(--tempo) var(--ease), opacity var(--tempo) var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); position: relative; top: -2px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-2px) rotate(-45deg); }

/* 7 ---------- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--schrift-text);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--tuerkis-tief);
  background: var(--tuerkis-tief);
  color: #fff;
  transition: transform var(--tempo) var(--ease), background var(--tempo) var(--ease),
    box-shadow var(--tempo) var(--ease);
}
.btn:hover {
  background: #094c59;
  border-color: #094c59;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(10, 96, 112, 0.6);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--tuerkis-tief);
}
.btn--ghost:hover {
  background: rgba(0, 151, 178, 0.1);
  color: var(--tuerkis-tief);
  box-shadow: none;
}

.btn--gross { padding: 0.95rem 1.9rem; font-size: 1.05rem; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0;
  min-height: 2.75rem;
  font-weight: 600;
  color: var(--tuerkis-tief);
  text-decoration: none;
}
.textlink::after {
  content: "\2192";
  transition: transform var(--tempo) var(--ease);
}
.textlink:hover::after { transform: translateX(4px); }

/* 8 ---------- Kopfbereich (Hero) ---------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 34rem;
  min-height: clamp(33rem, 78svh, 44rem);
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 12vh, 6rem);
  overflow: hidden;
  background: #14343b;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  z-index: 0;
}
.hero::after {   /* weicher Lichthof nur hinter dem Text, der Rest des Fotos bleibt hell */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(75% 48% at 50% 46%, rgba(6, 20, 24, 0.52) 0%, rgba(6, 20, 24, 0.28) 46%, rgba(6, 20, 24, 0.04) 74%, rgba(6, 20, 24, 0) 100%);
  pointer-events: none;
}
.hero__ripple {   /* volle Breite, aber nur der untere Bereich (Wasser); genaue Kante setzt JS */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 58%;
  width: 100%;
  z-index: 2;
  touch-action: manipulation;
}
.hero__inner {
  color: #fff;
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 3;
  pointer-events: none;   /* Taps auf Text gehen durch zum Wasser, nur der Button faengt sie ab */
}
.hero__inner .btn { pointer-events: auto; }
.hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(4, 16, 19, 0.85), 0 2px 10px rgba(4, 16, 19, 0.6), 0 0 34px rgba(4, 16, 19, 0.45);
}
.hero__sub {
  font-size: clamp(1.05rem, 0.7vw + 0.95rem, 1.24rem);
  line-height: 1.55;
  color: #fff;
  margin: 0 auto 1.7rem;
  max-width: 32rem;
  text-shadow: 0 1px 2px rgba(4, 16, 19, 0.92), 0 2px 8px rgba(4, 16, 19, 0.7), 0 0 22px rgba(4, 16, 19, 0.5);
}
.hero .btn {
  background: #fff;
  border-color: #fff;
  color: var(--tuerkis-tief);
  box-shadow: 0 8px 22px -10px rgba(8, 24, 28, 0.55);
}
.hero .btn:hover {
  background: var(--creme);
  border-color: var(--creme);
  color: #08424e;
}
.hero__hint {
  margin-top: 1.35rem;
  font-family: var(--schrift-text);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(4, 16, 19, 0.9), 0 2px 12px rgba(4, 16, 19, 0.6);
}
.hero__hint::before {
  content: "\2193";
  margin-right: 0.45rem;
}

/* Kopfbereich der Unterseiten (ohne grosses Foto) */
.page-head { padding-block: clamp(2.75rem, 7vw, 4.75rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head .prose { margin-top: 0.4rem; }
.breadcrumb {
  font-size: 0.84rem;
  color: var(--tinte-weich);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--tinte-weich); }
.breadcrumb span[aria-current] { color: var(--tinte); }

/* 9 ---------- Einblenden beim Scrollen --------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 10 ---------- Abschnitte + Karten ----------------------------- */
.split {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.25rem);
  align-items: center;
}
.media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--schatten);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--hoch { aspect-ratio: 4 / 5; }
.media--quer { aspect-ratio: 3 / 2; }
figure.media { margin: 0; }
figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  color: var(--tinte-weich);
  background: var(--weiss);
}

.karten {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.karte {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.6rem 1.5rem 1.7rem;
  background: var(--weiss);
  border: var(--rand);
  border-radius: var(--radius);
  transition: transform var(--tempo) var(--ease), box-shadow var(--tempo) var(--ease);
}
.karte:hover { transform: translateY(-4px); box-shadow: var(--schatten); }
.karte__icon {
  width: 3.6rem;
  height: 3.6rem;
  color: var(--tuerkis-satt);
  background: var(--creme-tief);
  border-radius: 50%;
  padding: 0.55rem;
  object-fit: contain;
}
.karte h3 { margin: 0; }
.karte p { color: var(--tinte-weich); margin: 0; flex: 1; }
.karte .textlink { margin-top: 0.3rem; }

/* Haeufige Fragen */
.faq { max-width: var(--mass); }
.faq details {
  border-bottom: 1px solid var(--sand-linie);
  padding: 0.35rem 0;
}
.faq details:first-of-type { border-top: 1px solid var(--sand-linie); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 2.2rem 0.95rem 0;
  position: relative;
  font-weight: 600;
  color: var(--tinte);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--tuerkis-tief);
  transition: transform var(--tempo) var(--ease);
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--tuerkis-tief); }
.faq details > p {
  margin: 0 0 1rem;
  color: var(--tinte-weich);
  max-width: 60ch;
}

/* Preise (Seite Ausgleich, bewusst schlicht) */
.preise {
  margin: 0;
  max-width: 34rem;
  border-top: 1px solid var(--sand-linie);
}
.preise > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sand-linie);
}
.preise dt { font-weight: 400; color: var(--tinte); }
.preise dd { margin: 0; font-weight: 600; color: var(--tinte); white-space: nowrap; }
@media (max-width: 460px) {
  .preise > div { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .preise dd { color: var(--tuerkis-tief); }
}

/* Aufruf am Seitenende */
.cta-band { text-align: center; }
.cta-band .prose { margin-inline: auto; margin-bottom: 1.6rem; }

/* 11 ---------- Formular ---------------------------------------- */
.form {
  display: grid;
  gap: 1.1rem;
  max-width: 34rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.94rem; }
.field .hint { font-size: 0.82rem; color: var(--tinte-weich); }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--tinte);
  background: var(--weiss);
  border: 1px solid var(--sand-linie);
  border-radius: var(--radius-klein);
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--tuerkis);
  outline-offset: 1px;
  border-color: var(--tuerkis);
}
.field--check {
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
}
.field--check input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; }
.field--check label { font-weight: 400; font-size: 0.92rem; }

/* Honigtopf: unsichtbar fuer Menschen, sichtbar fuer viele Bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  border-radius: var(--radius-klein);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  display: none;
}
.form__status[data-state="ok"] {
  display: block;
  background: rgba(0, 151, 178, 0.12);
  border: 1px solid var(--tuerkis);
  color: var(--tuerkis-tief);
}
.form__status[data-state="error"] {
  display: block;
  background: #fbeae4;
  border: 1px solid #d98a67;
  color: #8a3c1e;
}
.form__note { font-size: 0.82rem; color: var(--tinte-weich); }

/* 12 ---------- Fussbereich ------------------------------------ */
.site-footer {
  background: var(--creme-tief);
  border-top: 1px solid var(--sand-linie);
  padding-block: clamp(2.75rem, 7vw, 4rem);
  font-size: 0.95rem;
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.site-footer img { width: 150px; margin-bottom: 0.9rem; }
.site-footer p { color: var(--tinte-weich); max-width: 30rem; }
.footer-nav { display: grid; gap: 0.5rem; }
.footer-nav h2 {
  font-family: var(--schrift-text);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinte-weich);
  margin: 0 0 0.3rem;
}
.footer-nav a { color: var(--tinte); text-decoration: none; padding: 0.15rem 0; }
.footer-nav a:hover { color: var(--tuerkis-tief); text-decoration: underline; }
.site-footer__foot {
  margin-top: 2.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--sand-linie);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  color: var(--tinte-weich);
  font-size: 0.86rem;
}
.site-footer__foot a { color: var(--tinte-weich); }

/* 13 ---------- Cookie-Hinweis -------------------------------- */
.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  max-width: 30rem;
  margin-inline: auto;
  background: var(--weiss);
  border: var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.1rem 1.2rem;
  font-size: 0.9rem;
  transform: translateY(140%);
  transition: transform 480ms var(--ease);
}
.cookie[data-show="true"] { transform: none; }
.cookie p { margin: 0 0 0.9rem; color: var(--tinte-weich); }
.cookie__row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.cookie .btn { padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.cookie a { font-weight: 600; }

/* 14 ---------- Hilfsklassen --------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nowrap { white-space: nowrap; }
.mt-l { margin-top: 2rem; }
.flush-top { padding-top: 0; }
.section.flush-top { padding-top: 0; }

/* 15 ---------- Handy / Tablet / Desktop --------------------- */

/* Menue als Klappmenue bis 900px */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 4.4rem 0 auto 0;
    background: var(--creme);
    border-bottom: 1px solid var(--sand-linie);
    box-shadow: var(--schatten);
    max-height: calc(100svh - 4.4rem);
    overflow-y: auto;
    transform: translateY(-130%);
    transition: transform 320ms var(--ease);
    padding: 1rem clamp(1.25rem, 5vw, 2.6rem) 1.75rem;
  }
  .nav[data-open="true"] { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .nav__link,
  .nav__button { padding: 0.85rem 0.6rem; font-size: 1.05rem; width: 100%; justify-content: space-between; }
  .nav__link[aria-current="page"] { box-shadow: none; background: rgba(0, 151, 178, 0.1); border-radius: 9px; }
  .has-menu { position: static; }
  .submenu {
    position: static;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--sand-linie);
    border-radius: 0;
    margin: 0.2rem 0 0.4rem 0.6rem;
    background: transparent;
    padding: 0;
  }
  .submenu::before { display: none; }
  .nav .btn { margin-top: 0.8rem; width: 100%; }
  body[data-menu-open="true"] { overflow: hidden; }
}

/* ab 640px: Karten zweispaltig, Hero-Text etwas groesser */
@media (min-width: 640px) {
  .karten { grid-template-columns: repeat(2, 1fr); }
  .cookie { left: auto; right: 1.5rem; bottom: 1.5rem; margin-inline: 0; }
}

/* ab 900px: Split-Layout nebeneinander, Karten dreispaltig */
@media (min-width: 900px) {
  body { font-size: 1.06rem; }
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--medialinks { grid-template-columns: 0.95fr 1.05fr; }
  .split--medialinks .media { order: -1; }
  .karten--drei { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1100px) {
  .karten { gap: 1.6rem; }
}

/* 16 ---------- weniger Bewegung ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 17 ---------- Druck --------------------------------------- */
@media print {
  .site-header, .site-footer, .cookie, .hero__ripple, .cta-band { display: none; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; }
}
