/* =========================================================
   Kodevo – gemeinsames Stylesheet
   Aufbau: Schriften · Variablen · Basis · Layout · Header ·
   Buttons · Hero · Abschnitte · Karten · Speisekarte · Ablauf ·
   Über mich · Kontakt · Footer · Detailseiten · Demo · Hilfsklassen
   ========================================================= */

/* ---------- Schriften (lokal, OFL) ---------- */
@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/familjen-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variablen ---------- */
:root {
  --gruen: #0E6B62;
  --gruen-dunkel: #0A4F48;
  --gelb: #E8A91C;
  --hintergrund: #F3F6F5;
  --flaeche: #FFFFFF;
  --text: #13211F;
  --text-gedaempft: #5B6B68;
  --linie: #D5DEDB;

  --auf-gruen: #FFFFFF;          /* Text auf grünen Flächen */
  --auf-gelb: #13211F;           /* Text auf gelben Flächen */
  --gruen-hell: #E3EFED;         /* zarte Fläche, z. B. Hinweise */
  --footer: #0A4F48;
  --footer-text: #E6EFED;

  --schrift-titel: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --schrift-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --schrift-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --breite: 72rem;
  --rand: 1.25rem;
  --radius: 10px;
  --abstand: clamp(4rem, 9vw, 7rem);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --gruen: #3FB3A6;
    --gruen-dunkel: #5CC6BA;
    --gelb: #F0BB3E;
    --hintergrund: #0D1716;
    --flaeche: #14211F;
    --text: #E6EEEC;
    --text-gedaempft: #9DB0AC;
    --linie: #2A3B38;

    --auf-gruen: #0D1716;
    --auf-gelb: #0D1716;
    --gruen-hell: #173330;
    --footer: #091211;
    --footer-text: #C9D6D3;
  }
}

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

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

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--schrift-titel);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--gruen); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gruen-dunkel); text-decoration-thickness: 2px; }

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

::selection { background: var(--gelb); color: var(--auf-gelb); }

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

.skip-link {
  position: absolute;
  left: var(--rand);
  top: -4rem;
  z-index: 100;
  background: var(--gelb);
  color: var(--auf-gelb);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

.abschnitt { padding-block: var(--abstand); }
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }
.abschnitt--flaeche { background: var(--flaeche); }

.kopf { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.kopf p { color: var(--text-gedaempft); font-size: 1.125rem; }

/* Kleine Pixel-Marke über Abschnittstiteln */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: var(--schrift-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-gedaempft);
}
.kicker::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: var(--gruen);
  box-shadow: 0.95rem 0 0 var(--gruen), 0 0.95rem 0 transparent;
  margin-right: 0.95rem;
}

/* Quadrate als Aufzählungszeichen */
.pixel-liste {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pixel-liste li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
}
.pixel-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--gruen);
}

/* ---------- Header ---------- */
.kopfzeile {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hintergrund);
  border-bottom: 1px solid var(--linie);
}
@supports (backdrop-filter: blur(8px)) {
  .kopfzeile {
    background: color-mix(in srgb, var(--hintergrund) 88%, transparent);
    backdrop-filter: blur(10px);
  }
}
.kopfzeile__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.logo-link { display: inline-flex; flex-shrink: 0; border-radius: 6px; }
.logo-link img { height: 36px; width: auto; }

.menue-knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 600 1rem var(--schrift-text);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  min-height: 44px;
  cursor: pointer;
}
.menue-knopf__icon {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  gap: 3px;
}
.menue-knopf__icon i {
  width: 5px; height: 5px;
  background: var(--gruen);
  transition: opacity 0.15s ease;
}
.menue-knopf[aria-expanded="true"] .menue-knopf__icon i:nth-child(2),
.menue-knopf[aria-expanded="true"] .menue-knopf__icon i:nth-child(3) { opacity: 0; }

.navigation {
  display: none;
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--hintergrund);
  border-bottom: 1px solid var(--linie);
  padding: 0.5rem var(--rand) 1.5rem;
}
.navigation.ist-offen { display: block; }
.navigation ul { list-style: none; margin: 0; padding: 0; }
.navigation li a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--linie);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
}
.navigation li a:hover { color: var(--gruen); }
.navigation .knopf { margin-top: 1.25rem; width: 100%; }

@media (min-width: 70em) {
  .menue-knopf { display: none; }
  .navigation {
    display: flex !important;
    align-items: center;
    gap: 1.75rem;
    position: static;
    padding: 0;
    border: 0;
    background: none;
  }
  .navigation ul { display: flex; gap: 1.5rem; }
  .navigation li a {
    padding: 0.4rem 0;
    border: 0;
    font-size: 0.98rem;
  }
  .navigation .knopf { margin-top: 0; width: auto; }
}

/* ---------- Buttons ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid var(--gruen);
  background: var(--gruen);
  color: var(--auf-gruen);
  font: 600 1rem/1.2 var(--schrift-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.knopf:hover {
  background: var(--gruen-dunkel);
  border-color: var(--gruen-dunkel);
  color: var(--auf-gruen);
  text-decoration: none;
}
.knopf--gelb {
  background: var(--gelb);
  border-color: var(--gelb);
  color: var(--auf-gelb);
}
.knopf--gelb:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--hintergrund);
}
.knopf--rahmen {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.knopf--rahmen:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--hintergrund);
}
.knopf--klein { min-height: 44px; padding: 0.55rem 1rem; font-size: 0.95rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Pixel-Ladeanimation (z. B. im Senden-Knopf) */
.lader {
  display: inline-grid;
  grid-template-columns: repeat(3, 6px);
  gap: 3px;
}
.lader i {
  width: 6px; height: 6px;
  background: currentColor;
  animation: lader 0.9s steps(1) infinite;
}
.lader i:nth-child(2) { animation-delay: 0.15s; }
.lader i:nth-child(3) { animation-delay: 0.3s; }
@keyframes lader {
  0%, 100% { opacity: 0.25; }
  33% { opacity: 1; }
}
.knopf .lader { display: none; }
.knopf.laedt .lader { display: inline-grid; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero__raster {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero__unterzeile {
  font-size: clamp(1.125rem, 2.2vw, 1.3rem);
  color: var(--text-gedaempft);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__fakten {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-gedaempft);
}
.hero__fakten li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__fakten li::before { content: ""; width: 0.45rem; height: 0.45rem; background: var(--gelb); }

.hero__bild {
  position: relative;
  aspect-ratio: 1;
  max-width: 18rem;
  width: 100%;
  margin-inline: 0 auto;
  border: 1px solid var(--linie);
  border-radius: 28px;
  background-color: var(--flaeche);
  background-image:
    linear-gradient(var(--linie) 1px, transparent 1px),
    linear-gradient(90deg, var(--linie) 1px, transparent 1px);
  background-size: 14.5% 14.5%;
  background-position: -1px -1px;
  display: grid;
  place-items: center;
}
.hero__bild svg { width: 74%; }
.hero__bild figcaption {
  position: absolute;
  left: 1rem;
  bottom: 0.8rem;
  font-family: var(--schrift-mono);
  font-size: 0.75rem;
  color: var(--text-gedaempft);
}

.pixel-k .grund { fill: var(--gruen); }
.pixel-k .px { fill: #fff; }
.pixel-k .funke { fill: var(--gelb); }
@media (prefers-color-scheme: dark) {
  .pixel-k .grund { fill: #0E6B62; }
}

.pixel-k .grund,
.pixel-k .px,
.pixel-k .funke {
  transform-box: fill-box;
  transform-origin: center;
  animation: px-auf 0.32s cubic-bezier(0.3, 1.5, 0.6, 1) both;
  animation-delay: calc(0.35s + var(--i, 0) * 0.11s);
}
.pixel-k .grund { animation: grund-auf 0.5s ease-out both; }
.pixel-k .funke { animation: funke-auf 0.6s cubic-bezier(0.3, 1.8, 0.5, 1) both; animation-delay: 1.45s; }

@keyframes grund-auf {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: none; }
}
@keyframes px-auf {
  from { opacity: 0; transform: scale(0.2); }
  to   { opacity: 1; transform: none; }
}
@keyframes funke-auf {
  0%   { opacity: 0; transform: scale(0) rotate(-45deg); }
  70%  { opacity: 1; transform: scale(1.35) rotate(0); }
  100% { opacity: 1; transform: none; }
}

@media (min-width: 56em) {
  .hero__raster { grid-template-columns: 1.25fr 1fr; gap: 4rem; }
  .hero__bild { max-width: 26rem; margin-inline: auto 0; }
}

/* ---------- "Woran Sie merken" ---------- */
.anzeichen {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--linie);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
}
.anzeichen li {
  background: var(--flaeche);
  padding: 1.5rem 1.4rem;
}
.anzeichen h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.anzeichen p { margin: 0; color: var(--text-gedaempft); }
.anzeichen__nr {
  display: block;
  font-family: var(--schrift-mono);
  font-size: 0.8rem;
  color: var(--gruen);
  margin-bottom: 0.6rem;
}
.schlusssatz {
  margin-top: 2rem;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.25;
}
.schlusssatz a { white-space: nowrap; }
@media (min-width: 40em) { .anzeichen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .anzeichen { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Paket-Karten ---------- */
.karten {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}
@media (min-width: 56em) { .karten { grid-template-columns: repeat(3, 1fr); } }

.karte {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
}
.karte--hervor {
  border: 2px solid var(--gruen);
}
.karte__badge {
  position: absolute;
  top: -0.8rem;
  left: 1.4rem;
  background: var(--gelb);
  color: var(--auf-gelb);
  font: 600 0.8rem/1 var(--schrift-text);
  letter-spacing: 0.03em;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}
.karte h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.karte__preis {
  font-family: var(--schrift-mono);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 0;
}
.karte__preis small {
  font-family: var(--schrift-text);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-gedaempft);
  letter-spacing: 0;
}
.karte__fuer {
  color: var(--text-gedaempft);
  margin: 0.75rem 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--linie);
}
.karte .pixel-liste { margin-bottom: 1.5rem; }
.karte__fuss {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.mehr-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  min-height: 44px;
}
.mehr-link::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: currentColor;
  transition: transform 0.15s ease;
}
.mehr-link:hover::after { transform: translateX(3px); }

/* Erklärbox (z. B. "Was ist eine Web-App?") */
.hinweis {
  background: var(--gruen-hell);
  border-left: 4px solid var(--gruen);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.4rem;
  margin: 0 0 2rem;
}
.hinweis h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.hinweis p:last-child { margin-bottom: 0; }
.hinweis--gelb {
  background: color-mix(in srgb, var(--gelb) 18%, var(--flaeche));
  border-left-color: var(--gelb);
}

/* ---------- Betreuung ---------- */
.betreuung {
  display: grid;
  gap: 1px;
  background: var(--linie);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.betreuung > div { background: var(--flaeche); padding: 1.5rem; }
.betreuung h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.betreuung .karte__preis { font-size: 1.3rem; margin-bottom: 0.9rem; }
.betreuung .pixel-liste { font-size: 0.98rem; }
@media (min-width: 56em) { .betreuung { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Preise im Speisekarten-Stil ---------- */
.speisekarte {
  display: grid;
  gap: 2.5rem 4rem;
}
@media (min-width: 56em) { .speisekarte { grid-template-columns: 1fr 1fr; } }
.speisekarte h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--text);
  margin-bottom: 0.5rem;
}
.speisekarte h3::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--gelb); }
.posten { list-style: none; padding: 0; margin: 0; }
.posten li { padding: 0.8rem 0; border-bottom: 1px dashed var(--linie); }
.posten__zeile {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 600;
}
.posten__zeile::after {
  content: "";
  order: 2;
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--text-gedaempft);
  transform: translateY(-0.3em);
  opacity: 0.6;
}
.posten__name { order: 1; }
.posten__preis {
  order: 3;
  font-family: var(--schrift-mono);
  font-weight: 500;
  white-space: nowrap;
}
.posten__text {
  margin: 0.15rem 0 0;
  color: var(--text-gedaempft);
  font-size: 0.95rem;
}
.posten__name a { color: inherit; text-decoration-color: var(--linie); }
.posten__name a:hover { color: var(--gruen); }

.steuerhinweis {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-gedaempft);
}

/* ---------- Ablauf ---------- */
.ablauf {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  counter-reset: schritt;
}
@media (min-width: 40em) { .ablauf { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .ablauf { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.ablauf li {
  position: relative;
  counter-increment: schritt;
  padding-top: 3.5rem;
}
@media (min-width: 62em) { .ablauf li { padding-right: 1.75rem; } }
.ablauf li::before {
  content: counter(schritt, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gruen);
  color: var(--auf-gruen);
  font-family: var(--schrift-mono);
  font-weight: 500;
  font-size: 0.9rem;
}
.ablauf li:last-child::before { background: var(--gelb); color: var(--auf-gelb); }
@media (min-width: 62em) {
  .ablauf li::after {
    content: "";
    position: absolute;
    top: 1.25rem;
    left: 3.25rem;
    right: 0.75rem;
    border-top: 2px dotted var(--linie);
  }
  .ablauf li:last-child::after { display: none; }
}
.ablauf h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.ablauf p { margin: 0; color: var(--text-gedaempft); }

/* ---------- Über mich ---------- */
.ueber {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 56em) { .ueber { grid-template-columns: 22rem 1fr; gap: 4rem; } }
.ueber figure { margin: 0; }
.ueber img {
  width: 100%;
  max-width: 22rem;
  border-radius: var(--radius);
  border: 1px solid var(--linie);
}
.ueber figcaption { font-size: 0.85rem; color: var(--text-gedaempft); margin-top: 0.5rem; }
.ueber__text { max-width: 40rem; font-size: 1.125rem; }
.ueber__fakten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
}
.ueber__fakten div {
  border-top: 2px solid var(--text);
  padding-top: 0.6rem;
}
.ueber__fakten dt { font-family: var(--schrift-mono); font-size: 0.8rem; color: var(--text-gedaempft); text-transform: uppercase; letter-spacing: 0.05em; }
.ueber__fakten dd { margin: 0.2rem 0 0; font-weight: 600; }

/* ---------- Referenzen ---------- */
.referenz {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 12rem;
  border: 2px dashed var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.referenz__pixel {
  display: grid;
  grid-template-columns: repeat(3, 10px);
  gap: 3px;
  margin-bottom: 1.5rem;
}
.referenz__pixel i { width: 10px; height: 10px; background: var(--linie); }
.referenz__pixel i:nth-child(5) { background: var(--gelb); }
.referenz h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.referenz p { margin: 0; color: var(--text-gedaempft); }

/* ---------- Kontakt ---------- */
.kontakt {
  display: grid;
  gap: 3rem;
}
@media (min-width: 56em) { .kontakt { grid-template-columns: 1.6fr 1fr; gap: 4rem; } }

.formular {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 40em) {
  .formular { grid-template-columns: 1fr 1fr; }
  .feld--breit, .formular .formular__fuss, .formular .check, .formular__meldung { grid-column: 1 / -1; }
}
.feld { display: grid; gap: 0.35rem; }
.feld label, .feld .label { font-weight: 600; font-size: 0.95rem; }
.feld .optional { font-weight: 400; color: var(--text-gedaempft); }
.feld input,
.feld select,
.feld textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--hintergrund);
  border: 1px solid var(--text-gedaempft);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  min-height: 48px;
}
.feld textarea { min-height: 8rem; resize: vertical; }
.feld select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.feld input:focus-visible,
.feld select:focus-visible,
.feld textarea:focus-visible { outline-offset: 1px; border-color: var(--gruen); }
.feld__hilfe { font-size: 0.85rem; color: var(--text-gedaempft); margin: 0; }

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.95rem;
}
.check input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.15rem 0 0;
  accent-color: var(--gruen);
}
.honig { position: absolute; left: -9999px; }
.formular__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.formular__fuss small { color: var(--text-gedaempft); }
.formular__meldung { margin: 0; }
.formular__meldung:empty { display: none; }
.formular__meldung { padding: 1rem 1.1rem; border-radius: 8px; background: var(--gruen-hell); border-left: 4px solid var(--gruen); }
.formular__meldung.fehler { border-left-color: var(--gelb); }

.direkt { display: grid; gap: 1.5rem; align-content: start; }
.direkt h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.direkt__wert {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  word-break: break-word;
}
.direkt p { margin: 0; color: var(--text-gedaempft); }

/* ---------- Footer ---------- */
.fusszeile {
  background: var(--footer);
  color: var(--footer-text);
  padding-block: 3.5rem 2.5rem;
  font-size: 0.95rem;
}
.fusszeile a { color: #fff; }
.fusszeile a:hover { color: #fff; text-decoration-thickness: 2px; }
.fusszeile__raster {
  display: grid;
  gap: 2rem;
}
@media (min-width: 48em) { .fusszeile__raster { grid-template-columns: 1.4fr 1fr 1fr; } }
.fusszeile img { height: 28px; width: auto; margin-bottom: 1rem; }
.fusszeile p { margin: 0 0 0.4rem; }
.fusszeile h2 {
  font-size: 0.8rem;
  font-family: var(--schrift-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--footer-text);
  opacity: 0.85;
  margin-bottom: 0.8rem;
}
.fusszeile ul { list-style: none; margin: 0; padding: 0; }
.fusszeile li { margin-bottom: 0.35rem; }
.fusszeile li a { display: inline-block; padding: 0.25rem 0; text-decoration: none; }
.fusszeile li a:hover { text-decoration: underline; }
.fusszeile__unten {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.875rem;
}

/* ---------- Detailseiten ---------- */
.brotkrumen { padding-top: 1.5rem; font-size: 0.9rem; }
.brotkrumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; color: var(--text-gedaempft); }
.brotkrumen li + li::before { content: "›"; margin-right: 0.35rem; }
.brotkrumen a { color: var(--text-gedaempft); }
.brotkrumen a:hover { color: var(--gruen); }

.paket-kopf { padding-block: 2.5rem clamp(3rem, 7vw, 4.5rem); }
.paket-kopf__raster { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 56em) { .paket-kopf__raster { grid-template-columns: 1.6fr 1fr; gap: 4rem; } }
.paket-kopf h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 0.3em; }
.paket-kopf__preis {
  font-family: var(--schrift-mono);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.paket-kopf__preis small { font-family: var(--schrift-text); font-size: 1rem; color: var(--text-gedaempft); letter-spacing: 0; font-weight: 400; }
.paket-kopf__fuer { font-size: 1.15rem; max-width: 38rem; }
.paket-kopf__fuer strong { display: block; font-family: var(--schrift-mono); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-gedaempft); margin-bottom: 0.3rem; }
.paket-kopf__box {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.paket-kopf__box dl { margin: 0 0 1.25rem; display: grid; gap: 0.6rem; }
.paket-kopf__box dl div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--linie); padding-bottom: 0.6rem; }
.paket-kopf__box dt { color: var(--text-gedaempft); }
.paket-kopf__box dd { margin: 0; font-weight: 600; text-align: right; }
.paket-kopf__box .knopf { width: 100%; }

/* Inhaltsverzeichnis der Detailseite */
.sprung { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.sprung a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  background: var(--flaeche);
}
.sprung a:hover { border-color: var(--gruen); color: var(--gruen); }

.detail { display: grid; gap: 1.5rem; }
.detail > * { min-width: 0; }
@media (min-width: 56em) {
  .detail { grid-template-columns: 16rem 1fr; gap: 4rem; }
  .detail > h2 { position: sticky; top: 6rem; align-self: start; }
}
.detail > h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 0; }
.detail > h2 .nr {
  display: block;
  font-family: var(--schrift-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gruen);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.detail__inhalt { max-width: 46rem; }
.detail__inhalt > :last-child { margin-bottom: 0; }

.leistungen { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.leistungen li {
  display: grid;
  grid-template-columns: 0.6rem 1fr;
  gap: 0 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--linie);
}
.leistungen li:first-child { padding-top: 0; }
.leistungen li::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--gruen); margin-top: 0.5rem; }
.leistungen strong { display: block; font-size: 1.05rem; }
.leistungen span { color: var(--text-gedaempft); }
.leistungen--minus li::before { background: transparent; border: 2px solid var(--text-gedaempft); }

.beispiel {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.beispiel__marke {
  display: inline-block;
  background: var(--gelb);
  color: var(--auf-gelb);
  font: 600 0.78rem/1 var(--schrift-text);
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.9rem;
}
.beispiel p:last-child { margin-bottom: 0; }

.zeitplan { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--linie); }
.zeitplan li { position: relative; padding: 0 0 1.4rem 1.5rem; }
.zeitplan li:last-child { padding-bottom: 0; }
.zeitplan li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  background: var(--gruen);
}
.zeitplan li:last-child::before { background: var(--gelb); }
.zeitplan__wann { display: block; font-family: var(--schrift-mono); font-size: 0.85rem; color: var(--gruen); }
.zeitplan strong { display: block; }
.zeitplan span:not(.zeitplan__wann) { color: var(--text-gedaempft); }

.fragen details {
  border-bottom: 1px solid var(--linie);
}
.fragen details:first-child { border-top: 1px solid var(--linie); }
.fragen summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--gruen);
  transition: background-color 0.15s ease;
}
.fragen details[open] summary::after { background: var(--gruen); }
.fragen details p { margin: 0 0 1.1rem; color: var(--text-gedaempft); max-width: 42rem; }

.tabelle-huelle {
  overflow-x: auto;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--flaeche);
}
.vergleich {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.vergleich th,
.vergleich td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}
.vergleich tbody tr:last-child th,
.vergleich tbody tr:last-child td { border-bottom: 0; }
.vergleich thead th { font-family: var(--schrift-titel); font-size: 1.05rem; }
.vergleich thead a { color: inherit; }
.vergleich tbody th { font-weight: 400; color: var(--text-gedaempft); width: 34%; }
.vergleich .aktiv { background: var(--gruen-hell); }
.vergleich thead .aktiv { box-shadow: inset 0 3px 0 var(--gruen); }
.vergleich .preis { font-family: var(--schrift-mono); font-weight: 500; white-space: nowrap; }
.ja::before,
.nein::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
  vertical-align: 0.05em;
  background: var(--gruen);
}
.nein { color: var(--text-gedaempft); }
.nein::before { background: transparent; border: 1.5px solid var(--text-gedaempft); }

.anfrage {
  background: var(--gruen);
  color: var(--auf-gruen);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 3rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 48em) { .anfrage { grid-template-columns: 1fr auto; } }
.anfrage h2 { margin-bottom: 0.3rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.anfrage p { margin: 0; }

.weitere { display: grid; gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 40em) { .weitere { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .weitere { grid-template-columns: repeat(3, 1fr); } }
.weitere a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--flaeche);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.weitere a:hover { border-color: var(--gruen); color: var(--gruen); }
.weitere .preis { font-family: var(--schrift-mono); font-weight: 500; font-size: 0.9rem; color: var(--text-gedaempft); white-space: nowrap; }

/* Betreuungs-Tarife auf der Detailseite */
.tarife { display: grid; gap: 1rem; }
@media (min-width: 48em) { .tarife { grid-template-columns: repeat(3, 1fr); } }
.tarife .karte { padding: 1.4rem 1.25rem; }
.tarife .karte h3 { font-size: 1.15rem; }
.tarife .karte__preis { font-size: 1.25rem; margin-bottom: 0.9rem; }

/* ---------- Rechtliches / Textseiten ---------- */
.textseite { max-width: 46rem; }
.textseite h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.textseite dl { display: grid; gap: 0; margin: 0; }
.textseite dl div { display: grid; gap: 0.15rem 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--linie); }
@media (min-width: 40em) { .textseite dl div { grid-template-columns: 14rem 1fr; } }
.textseite dt { color: var(--text-gedaempft); }
.textseite dd { margin: 0; }
.platzhalter {
  background: color-mix(in srgb, var(--gelb) 22%, transparent);
  padding: 0.05em 0.3em;
  border-radius: 3px;
  font-family: var(--schrift-mono);
  font-size: 0.92em;
}

/* ---------- Demo Stempelkarte ---------- */
.demo-band {
  background: var(--gelb);
  color: var(--auf-gelb);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 0.55rem var(--rand);
}
.demo-band a { color: inherit; }
.demo { max-width: 26rem; margin: 0 auto; padding: 1.5rem var(--rand) 3rem; }
.demo__app {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 24px;
  overflow: hidden;
}
.demo__kopf {
  background: #6B3F2A;
  color: #FFF6EC;
  padding: 1.5rem 1.4rem 1.25rem;
}
.demo__kopf p { margin: 0; opacity: 0.85; font-size: 0.9rem; }
.demo__kopf h1 { font-size: 1.6rem; margin: 0.15rem 0 0; letter-spacing: -0.01em; }
.demo__inhalt { padding: 1.4rem; }
.demo__zaehler { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.demo__zaehler { gap: 1rem; }
.demo__zaehler strong { font-family: var(--schrift-mono); font-weight: 500; font-size: 1.4rem; white-space: nowrap; }
.stempel {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
}
.stempel li {
  aspect-ratio: 1;
  border: 2px dashed var(--linie);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--schrift-mono);
  font-size: 0.8rem;
  color: var(--text-gedaempft);
}
.stempel li.voll {
  border: 2px solid #6B3F2A;
  background: #6B3F2A;
  color: #FFF6EC;
  animation: stempeln 0.35s cubic-bezier(0.3, 1.6, 0.6, 1);
}
.stempel li.voll svg { width: 60%; }
.stempel li:last-child:not(.voll) { border-color: var(--gelb); color: var(--text); }
@keyframes stempeln {
  from { transform: scale(1.6) rotate(-12deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.demo__aktionen { display: grid; gap: 0.6rem; }
.demo__aktionen .knopf { width: 100%; }
.demo__belohnung {
  display: none;
  text-align: center;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: var(--gelb);
  color: var(--auf-gelb);
}
.demo__belohnung.sichtbar { display: block; animation: belohnung 0.6s cubic-bezier(0.3, 1.6, 0.6, 1); }
.demo__belohnung h2 { font-size: 1.4rem; margin: 0.6rem 0 0.25rem; }
.demo__belohnung p { margin: 0; }
.konfetti { display: flex; justify-content: center; gap: 6px; }
.konfetti i { width: 10px; height: 10px; background: currentColor; animation: hops 0.8s ease-in-out infinite alternate; }
.konfetti i:nth-child(2n) { animation-delay: 0.15s; }
.konfetti i:nth-child(3n) { animation-delay: 0.3s; }
@keyframes hops { to { transform: translateY(-8px); } }
@keyframes belohnung { from { transform: scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }
.demo__qr {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linie);
  font-size: 0.9rem;
  color: var(--text-gedaempft);
}
.demo__qr svg { width: 7rem; background: #fff; padding: 6px; border-radius: 8px; border: 1px solid var(--linie); }
.push {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  width: min(24rem, calc(100% - 1.5rem));
  transform: translate(-50%, -150%);
  background: color-mix(in srgb, var(--flaeche) 94%, transparent);
  backdrop-filter: blur(12px);
  color: var(--text);
  border: 1px solid var(--linie);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s cubic-bezier(0.3, 1.3, 0.6, 1);
  z-index: 60;
}
.push.sichtbar { transform: translate(-50%, 0); }
.push__icon { width: 2.5rem; height: 2.5rem; border-radius: 9px; background: #6B3F2A; display: grid; place-items: center; color: #FFF6EC; font-family: var(--schrift-titel); font-weight: 700; }
.push p { margin: 0; font-size: 0.9rem; line-height: 1.35; }
.push small { color: var(--text-gedaempft); }
.demo__erklaerung { margin-top: 2rem; font-size: 0.95rem; color: var(--text-gedaempft); }
.demo__erklaerung h2 { font-size: 1.2rem; color: var(--text); }

/* ---------- 404 ---------- */
.fehlerseite { padding-block: clamp(4rem, 12vw, 8rem); }
.fehlerseite .pixel-k { width: 7rem; margin-bottom: 2rem; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Druck ---------- */
@media print {
  .kopfzeile, .fusszeile, .knopf, .sprung { display: none !important; }
  body { background: #fff; color: #000; }
}
