/*
  Die Landingpage von SimplyDay (Neubau 07.10.2026).

  Farben aus dem Zeichen: Sand, Waldgrün, ein Gold. Schrift ist Fira Sans
  vom eigenen Server -- keine Schriften eines Werbekonzerns, keine, die
  man von jeder zweiten erzeugten Seite kennt.
*/

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/media/schrift/fira-sans-400-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/media/schrift/fira-sans-600-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --sand: #fcfaf6;
  --sand-tief: #f3eee4;
  --flaeche: #ffffff;
  --tinte: #17201d;
  --tinte-leise: #5a6661;
  --wald: #2f6a50;
  --wald-tief: #1f4034;
  --wald-hell: #e3efe7;
  --gold: #f2b54e;
  --gold-tief: #b97a12;
  --rose: #e8a6a0;
  --himmel: #9cc3d8;
  --haarlinie: rgba(23, 32, 29, 0.1);
  --auf-dunkel: #fcfaf6;
  --rinne: clamp(20px, 5vw, 64px);
  --breite: 72rem;
  --rund: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sand: #101614;
    --sand-tief: #161e1b;
    --flaeche: #1a2421;
    --tinte: #ebf1ee;
    --tinte-leise: #9eaca6;
    --wald: #86c3a3;
    --wald-tief: #12201b;
    --wald-hell: #20332a;
    --gold: #eab460;
    --gold-tief: #eab460;
    --haarlinie: rgba(235, 241, 238, 0.14);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--tinte);
  font-family:
    "Fira Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

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

a {
  color: inherit;
}

.versteckt {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--wald-tief);
  color: var(--auf-dunkel);
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.fuehrung {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--tinte-leise);
  max-width: 34rem;
  text-wrap: pretty;
}

.beiwerk {
  font-size: 0.88rem;
  color: var(--tinte-leise);
}

.spalte {
  display: grid;
  gap: 16px;
  width: 100%;
}

.spalte > * {
  max-width: 40rem;
}

/* Knöpfe */
.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.knopf:active {
  transform: scale(0.97);
}

.knopf-voll {
  background: var(--wald-tief);
  color: var(--auf-dunkel);
}

.knopf-voll:hover {
  background: var(--wald);
}

.knopf-still {
  background: transparent;
  color: var(--tinte);
  box-shadow: inset 0 0 0 1.5px var(--haarlinie);
}

.knopf-still:hover {
  background: var(--sand-tief);
}

.knopf-hell {
  background: rgba(252, 250, 246, 0.12);
  color: var(--auf-dunkel);
  box-shadow: inset 0 0 0 1px rgba(252, 250, 246, 0.3);
}

@media (prefers-color-scheme: dark) {
  .knopf-voll {
    background: var(--wald);
    color: #0d1714;
  }
}

/* Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--rinne);
  background: color-mix(in srgb, var(--sand) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--haarlinie);
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.marke b,
.fuss b {
  font-weight: 600;
}

.marke-zeichen {
  width: 34px;
  height: 34px;
  color: var(--wald-tief);
}

.zeichen-gold {
  stroke: var(--gold);
}

@media (prefers-color-scheme: dark) {
  .marke-zeichen {
    color: var(--tinte);
  }
}

.kopf-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.kopf-nav a:not(.knopf) {
  text-decoration: none;
  color: var(--tinte-leise);
  font-size: 0.95rem;
}

.kopf-nav a:not(.knopf):hover {
  color: var(--tinte);
}

.kopf-nav .knopf {
  min-height: 40px;
  padding: 0 18px;
}

@media (max-width: 760px) {
  .kopf-nav a:not(.knopf) {
    display: none;
  }
}

/* Abschnitte */
main > section {
  position: relative;
  padding: clamp(72px, 11vw, 140px) var(--rinne);
}

main > section > * {
  max-width: var(--breite);
  margin-inline: auto;
}

/* Telefon-Rahmen um die Bildschirmfotos */
.telefon {
  margin: 0;
  justify-self: center;
  width: min(300px, 78vw);
  padding: 9px;
  border-radius: 46px;
  background: #0c1210;
  box-shadow:
    0 2px 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -28px rgba(15, 32, 26, 0.45),
    0 16px 32px -12px rgba(15, 32, 26, 0.25);
}

.telefon img,
.telefon video {
  width: 100%;
  border-radius: 38px;
}

/* Auftakt */
.auftakt {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  min-height: min(92vh, 900px);
  overflow: hidden;
  isolation: isolate;
}

.auftakt > * {
  max-width: none;
  margin: 0;
}

.auftakt-text {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.auftakt-zeichen {
  position: relative;
  width: 96px;
  height: 96px;
  color: var(--wald-tief);
}

.pixelregen,
.auftakt-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Mit Skript erscheint das scharfe Zeichen erst nach dem Pixelregen. */
.js .auftakt-svg {
  opacity: 0;
  transition: opacity 400ms ease;
}

.js .auftakt-zeichen.fertig .auftakt-svg {
  opacity: 1;
}

.pixelregen {
  overflow: visible;
}

@media (prefers-color-scheme: dark) {
  .auftakt-zeichen {
    color: var(--tinte);
  }
}

.telefon-auftakt {
  transform: rotate(2.5deg);
}

/* Wolken: weiche Kreise, die langsam wandern -- die Kreise der App. */
.wolken {
  position: absolute;
  inset: 0;
  z-index: -1;
  max-width: none;
  pointer-events: none;
}

.wolken i {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.55;
  animation: wandern 22s ease-in-out infinite alternate;
}

.wolken i:nth-child(1) {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -80px;
  background: #cfe6d8;
}

.wolken i:nth-child(2) {
  width: 340px;
  height: 340px;
  right: 6%;
  top: 8%;
  background: #f7dca5;
  animation-duration: 26s;
  animation-delay: -6s;
}

.wolken i:nth-child(3) {
  width: 300px;
  height: 300px;
  left: 30%;
  bottom: -120px;
  background: #f2c9c4;
  animation-duration: 30s;
  animation-delay: -12s;
}

.wolken i:nth-child(4) {
  width: 260px;
  height: 260px;
  right: -60px;
  bottom: 10%;
  background: #c4dcea;
  animation-duration: 24s;
  animation-delay: -3s;
}

@media (prefers-color-scheme: dark) {
  .wolken i {
    opacity: 0.16;
  }
}

@keyframes wandern {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -30px) scale(1.08);
  }
  100% {
    transform: translate(-30px, 40px) scale(0.95);
  }
}

@media (max-width: 860px) {
  .auftakt {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 48px;
  }
  .telefon-auftakt {
    width: min(260px, 70vw);
  }
}

/* Was SimplyDay tut: vier Bildschirme zum Umschalten */
.zeigen {
  display: grid;
  gap: 40px;
  background: var(--sand-tief);
}

.schalter {
  display: grid;
  gap: 32px;
  width: 100%;
}

.schalter > input,
.blasen > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Eine Zeile, nie umbrechen (Befund Inhaber 07.10. am iPhone): Reicht der
   Platz bei großer Schrift nicht, lässt sich die Leiste seitlich schieben. */
.schalter-reiter {
  display: inline-flex;
  justify-self: start;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--haarlinie);
}

.schalter-reiter::-webkit-scrollbar {
  display: none;
}

.schalter-reiter label {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--tinte-leise);
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

@media (max-width: 560px) {
  .schalter-reiter {
    justify-self: stretch;
  }
  .schalter-reiter label {
    flex: 1 0 auto;
    padding: 9px 10px;
    font-size: min(0.95rem, 3.7vw);
    text-align: center;
  }
}

#zeigen-morgen:checked ~ .schalter-reiter [for="zeigen-morgen"],
#zeigen-einkauf:checked ~ .schalter-reiter [for="zeigen-einkauf"],
#zeigen-geld:checked ~ .schalter-reiter [for="zeigen-geld"],
#zeigen-vertrag:checked ~ .schalter-reiter [for="zeigen-vertrag"] {
  background: var(--wald-tief);
  color: var(--auf-dunkel);
}

#zeigen-morgen:focus-visible ~ .schalter-reiter [for="zeigen-morgen"],
#zeigen-einkauf:focus-visible ~ .schalter-reiter [for="zeigen-einkauf"],
#zeigen-geld:focus-visible ~ .schalter-reiter [for="zeigen-geld"],
#zeigen-vertrag:focus-visible ~ .schalter-reiter [for="zeigen-vertrag"] {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  #zeigen-morgen:checked ~ .schalter-reiter [for="zeigen-morgen"],
  #zeigen-einkauf:checked ~ .schalter-reiter [for="zeigen-einkauf"],
  #zeigen-geld:checked ~ .schalter-reiter [for="zeigen-geld"],
  #zeigen-vertrag:checked ~ .schalter-reiter [for="zeigen-vertrag"] {
    background: var(--wald);
    color: #0d1714;
  }
}

.schalter-buehne {
  display: grid;
}

.szene {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 380ms ease,
    transform 380ms ease,
    visibility 0s 380ms;
}

.szene > div {
  display: grid;
  gap: 14px;
  max-width: 30rem;
}

.szene h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.szene p {
  font-size: 1.1rem;
  color: var(--tinte-leise);
}

#zeigen-morgen:checked ~ .schalter-buehne .szene-morgen,
#zeigen-einkauf:checked ~ .schalter-buehne .szene-einkauf,
#zeigen-geld:checked ~ .schalter-buehne .szene-geld,
#zeigen-vertrag:checked ~ .schalter-buehne .szene-vertrag {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 380ms ease,
    transform 380ms ease;
}

@media (max-width: 760px) {
  .szene {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Abrechnung: der Rechner */
.abrechnung {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.abrechnung > * {
  margin: 0;
}

.abrechnung-text {
  display: grid;
  gap: 22px;
}

.rechner {
  display: grid;
  gap: 12px;
  max-width: 30rem;
  padding: 26px;
  border-radius: var(--rund);
  background: var(--flaeche);
  box-shadow:
    inset 0 0 0 1px var(--haarlinie),
    0 24px 48px -30px rgba(15, 32, 26, 0.35);
}

.rechner label {
  font-size: 0.95rem;
  color: var(--tinte-leise);
}

.rechner output {
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rechner input[type="range"] {
  width: 100%;
  accent-color: var(--wald);
}

.ergebnis {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--wald-hell);
  color: var(--wald-tief);
  transition: background-color 300ms ease;
}

.ergebnis strong {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.ergebnis[data-richtung="nach"] {
  background: #fbe9cc;
  color: #7a4b05;
}

@media (prefers-color-scheme: dark) {
  .ergebnis {
    color: var(--wald);
  }
  .ergebnis[data-richtung="nach"] {
    background: #3a2c12;
    color: var(--gold);
  }
}

.rechenweg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  margin: 6px 0 0;
  font-size: 0.92rem;
}

.rechenweg dt {
  color: var(--tinte-leise);
}

.rechenweg dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .abrechnung {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Kreise: Blasen, die sich bewegen */
.kreise {
  display: grid;
  gap: 40px;
  background: var(--wald-tief);
  color: var(--auf-dunkel);
}

.kreise .fuehrung {
  color: rgba(252, 250, 246, 0.72);
}

.blasen {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 40px;
  width: 100%;
}

.blasen-feld {
  position: relative;
  height: clamp(340px, 46vw, 480px);
}

.du {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--auf-dunkel);
  color: var(--wald-tief);
  font-weight: 600;
  box-shadow: 0 0 0 8px rgba(252, 250, 246, 0.1);
}

.blase {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #13261f;
  cursor: pointer;
  border-radius: 50%;
  mix-blend-mode: normal;
  opacity: 0.9;
  animation:
    schweben 14s ease-in-out infinite alternate,
    wabern 9s ease-in-out infinite alternate;
  transition:
    transform 300ms ease,
    box-shadow 300ms ease,
    opacity 300ms ease;
}

.blase-familie {
  width: 46%;
  aspect-ratio: 1;
  left: 8%;
  top: 6%;
  background: radial-gradient(circle at 35% 30%, #d9efe2, #8fc7a8);
}

.blase-wg {
  width: 30%;
  aspect-ratio: 1;
  right: 10%;
  top: 2%;
  background: radial-gradient(circle at 35% 30%, #fff1d2, #f2b54e);
  animation-duration: 17s, 11s;
  animation-delay:
    -4s,
    -2s;
}

.blase-fahrt {
  width: 34%;
  aspect-ratio: 1;
  right: 4%;
  bottom: 6%;
  background: radial-gradient(circle at 35% 30%, #e1eef6, #8dbad4);
  animation-duration: 16s, 10s;
  animation-delay:
    -8s,
    -5s;
}

.blase-freunde {
  width: 30%;
  aspect-ratio: 1;
  left: 4%;
  bottom: 2%;
  background: radial-gradient(circle at 35% 30%, #fbe3df, #e3958d);
  animation-duration: 19s, 12s;
  animation-delay:
    -2s,
    -7s;
}

.blase-verein {
  width: 22%;
  aspect-ratio: 1;
  left: 40%;
  bottom: -2%;
  background: radial-gradient(circle at 35% 30%, #efe6fb, #b9a2e0);
  animation-duration: 15s, 9s;
  animation-delay:
    -10s,
    -3s;
}

#kreis-familie:checked ~ .blasen-feld .blase-familie,
#kreis-wg:checked ~ .blasen-feld .blase-wg,
#kreis-fahrt:checked ~ .blasen-feld .blase-fahrt,
#kreis-freunde:checked ~ .blasen-feld .blase-freunde,
#kreis-verein:checked ~ .blasen-feld .blase-verein {
  opacity: 1;
  z-index: 1;
  box-shadow:
    0 0 0 4px var(--auf-dunkel),
    0 20px 50px rgba(0, 0, 0, 0.35);
}

#kreis-familie:focus-visible ~ .blasen-feld .blase-familie,
#kreis-wg:focus-visible ~ .blasen-feld .blase-wg,
#kreis-fahrt:focus-visible ~ .blasen-feld .blase-fahrt,
#kreis-freunde:focus-visible ~ .blasen-feld .blase-freunde,
#kreis-verein:focus-visible ~ .blasen-feld .blase-verein {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@keyframes schweben {
  0% {
    translate: 0 0;
  }
  33% {
    translate: 14px -12px;
  }
  66% {
    translate: -10px 10px;
  }
  100% {
    translate: 8px 16px;
  }
}

@keyframes wabern {
  0% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
  }
  50% {
    border-radius: 56% 44% 52% 48% / 46% 56% 44% 54%;
  }
  100% {
    border-radius: 46% 54% 44% 56% / 54% 46% 56% 44%;
  }
}

.blasen-text {
  display: grid;
}

.blasen-text p {
  grid-area: 1 / 1;
  font-size: 1.2rem;
  line-height: 1.5;
  color: rgba(252, 250, 246, 0.82);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.blasen-text b {
  color: var(--auf-dunkel);
}

#kreis-familie:checked ~ .blasen-text .text-familie,
#kreis-wg:checked ~ .blasen-text .text-wg,
#kreis-fahrt:checked ~ .blasen-text .text-fahrt,
#kreis-freunde:checked ~ .blasen-text .text-freunde,
#kreis-verein:checked ~ .blasen-text .text-verein {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .blasen {
    grid-template-columns: minmax(0, 1fr);
  }
  .blase {
    font-size: 0.82rem;
  }
}

/* Spaß */
.spass {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.spass > * {
  margin: 0;
}

.spass-text {
  display: grid;
  gap: 22px;
}

.probe {
  display: grid;
  gap: 14px;
  max-width: 26rem;
  padding: 18px;
  border-radius: var(--rund);
  background: var(--flaeche);
  box-shadow:
    inset 0 0 0 1px var(--haarlinie),
    0 24px 48px -30px rgba(15, 32, 26, 0.35);
}

.probe-haken {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 6px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
}

.haken {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--tinte-leise);
  transition:
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.haken::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 8px;
  height: 14px;
  border: solid var(--auf-dunkel);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 220ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

.probe-wer {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #8a5a12;
  color: #fff;
  font-size: 0;
}

.probe-wer::first-letter {
  font-size: 0.9rem;
}

.probe-haken[aria-pressed="true"] .haken {
  background: var(--wald);
  box-shadow: none;
  animation: plopp 360ms ease;
}

.probe-haken[aria-pressed="true"] .haken::after {
  transform: rotate(45deg) scale(1);
}

.probe-haken[aria-pressed="true"] .probe-titel {
  color: var(--tinte-leise);
  text-decoration: line-through;
}

@keyframes plopp {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.28);
  }
  100% {
    transform: scale(1);
  }
}

.probe-reaktionen {
  display: flex;
  gap: 8px;
  padding-left: 50px;
}

.probe-reaktionen button {
  position: relative;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--sand-tief);
  color: var(--tinte);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: transform 160ms ease;
}

.probe-reaktionen button[aria-pressed="true"] {
  background: var(--wald-hell);
  box-shadow: inset 0 0 0 1.5px var(--wald);
}

.probe-reaktionen button.huepft {
  animation: plopp 320ms ease;
}

.funke {
  position: absolute;
  left: 50%;
  top: 0;
  pointer-events: none;
  font-size: 1.1rem;
  animation: aufsteigen 900ms ease-out forwards;
}

@keyframes aufsteigen {
  0% {
    transform: translate(-50%, 0) scale(0.6);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--dx, 0px)), -70px) scale(1.2);
    opacity: 0;
  }
}

.probe-stand {
  padding-left: 50px;
  font-size: 0.92rem;
  color: var(--tinte-leise);
}

.probe-stand b {
  display: inline-block;
  color: var(--tinte);
  font-variant-numeric: tabular-nums;
}

.probe-stand b.zaehlt {
  animation: plopp 320ms ease;
}

.telefon-video {
  display: grid;
  gap: 14px;
}

.telefon-video figcaption {
  padding: 4px 14px 10px;
  font-size: 0.88rem;
  color: rgba(252, 250, 246, 0.75);
}

@media (max-width: 860px) {
  .spass {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Bausteine: der Ring aus 15 Teilen */
.bausteine {
  display: grid;
  gap: 40px;
  background: var(--sand-tief);
}

.ring-feld {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  width: 100%;
}

.ring {
  display: none;
  width: min(420px, 80vw);
  justify-self: center;
  overflow: visible;
}

.js .ring {
  display: block;
}

.ring-teil {
  fill: none;
  stroke: var(--wald);
  stroke-width: 46;
  opacity: 0.35;
  cursor: pointer;
  transition:
    opacity 200ms ease,
    stroke-width 200ms ease,
    stroke 200ms ease;
}

.ring-teil:hover,
.ring-teil.an {
  opacity: 1;
  stroke-width: 64;
}

.ring-teil.an {
  stroke: var(--gold);
}

.ring-name {
  fill: var(--tinte);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ring-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 4px 20px;
}

.ring-liste li {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--tinte-leise);
  font-size: 0.95rem;
  line-height: 1.35;
  cursor: default;
  transition: background-color 200ms ease;
}

.ring-liste b {
  display: block;
  color: var(--tinte);
}

.ring-liste li.an {
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

@media (max-width: 860px) {
  .ring-feld {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Verschlüsselung */
.tresor {
  display: grid;
  gap: 44px;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(242, 181, 78, 0.16),
      transparent 55%
    ),
    #0f1d18;
  color: var(--auf-dunkel);
}

.tresor-kopf {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.tresor .fuehrung {
  color: rgba(252, 250, 246, 0.72);
}

.etikett {
  font-weight: 600;
  color: var(--gold);
}

.weg {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 62rem;
}

.station {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
}

.station-name {
  font-size: 0.82rem;
  color: rgba(252, 250, 246, 0.66);
}

.station-tat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

.zettel {
  width: 100%;
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fcfaf6;
  color: #17201d;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.zettel b {
  font-weight: 600;
}

.zettel span {
  font-size: 0.85rem;
  color: #5a6661;
}

.zettel-salat {
  background: rgba(252, 250, 246, 0.08);
  border: 1px dashed rgba(252, 250, 246, 0.35);
  color: var(--auf-dunkel);
  justify-items: center;
  box-shadow: none;
}

.schloss {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.salat {
  display: grid;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
}

.salat span {
  grid-area: 1 / 1;
  color: rgba(252, 250, 246, 0.8);
  opacity: 0;
  animation: salat 3.6s steps(1, end) infinite;
}

.salat span:nth-child(1) {
  opacity: 1;
}
.salat span:nth-child(2) {
  animation-delay: 1.2s;
}
.salat span:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes salat {
  0% {
    opacity: 1;
  }
  33.33% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.leitung {
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(252, 250, 246, 0.35) 0 6px,
    transparent 6px 11px
  );
}

.leitung i {
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--gold);
  opacity: 0;
  animation: paket 2.4s ease-in-out infinite;
}

.leitung i:nth-child(2) {
  animation-delay: 0.8s;
}
.leitung i:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes paket {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(46px);
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .weg {
    grid-template-columns: minmax(0, 1fr);
    max-width: 22rem;
  }
  .leitung {
    width: 2px;
    height: 40px;
    justify-self: center;
    background: repeating-linear-gradient(
      180deg,
      rgba(252, 250, 246, 0.35) 0 6px,
      transparent 6px 11px
    );
  }
  .leitung i {
    left: -4px;
    top: 0;
    animation-name: paket-senkrecht;
  }
}

@keyframes paket-senkrecht {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(30px);
    opacity: 0;
  }
}

.tresor-punkte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tresor-punkte li {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(252, 250, 246, 0.07);
  box-shadow: inset 0 0 0 1px rgba(252, 250, 246, 0.16);
  font-size: 0.95rem;
  color: rgba(252, 250, 246, 0.8);
}

.tresor-punkte b {
  color: var(--auf-dunkel);
}

.tresor-fuss {
  display: grid;
  gap: 18px;
  justify-items: center;
  max-width: 36rem;
}

.tresor-fuss p {
  font-size: 0.95rem;
  color: rgba(252, 250, 246, 0.66);
}

.technik {
  width: min(42rem, calc(100vw - 32px));
  max-height: min(84vh, 52rem);
  overflow-y: auto;
  padding: clamp(20px, 4vw, 32px);
  border: 0;
  border-radius: var(--rund);
  background: var(--sand);
  color: var(--tinte);
  text-align: left;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.technik::backdrop {
  background: rgba(10, 18, 15, 0.55);
  backdrop-filter: blur(4px);
}

.technik-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.technik-zu {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--sand-tief);
  color: var(--tinte);
  font-size: 1rem;
  cursor: pointer;
}

.technik > p {
  color: var(--tinte-leise);
}

.technik dl {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  gap: 12px 20px;
  margin: 20px 0 0;
}

.technik dt {
  font-weight: 600;
}

.technik dd {
  margin: 0;
  color: var(--tinte-leise);
}

@media (max-width: 560px) {
  .technik dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .technik dd {
    margin-bottom: 12px;
  }
}

/* Preis */
.preis {
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}

.tafeln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 16px;
  width: 100%;
  max-width: 44rem;
}

.tafel {
  display: grid;
  gap: 8px;
  padding: 26px;
  border-radius: var(--rund);
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--haarlinie);
}

.tafel-zeit {
  font-weight: 600;
  color: var(--tinte-leise);
}

.tafel-preis {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tafel-preis span {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--tinte-leise);
}

.tafel-abo {
  box-shadow: inset 0 0 0 2px var(--gold);
}

/* Fragen */
.fragen {
  display: grid;
  gap: 8px;
  max-width: 46rem;
  margin-inline: auto;
}

.fragen > * {
  max-width: 46rem;
  width: 100%;
}

.fragen h2 {
  margin-bottom: 20px;
}

.fragen details {
  border-bottom: 1px solid var(--haarlinie);
}

.fragen summary {
  padding: 18px 0;
  font-size: 1.12rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.fragen summary::-webkit-details-marker {
  display: none;
}

.fragen summary::after {
  content: "+";
  color: var(--wald);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 200ms ease;
}

.fragen details[open] summary::after {
  transform: rotate(45deg);
}

.fragen details p {
  padding: 0 0 20px;
  color: var(--tinte-leise);
  max-width: 40rem;
}

/* Themenseiten (familienplaner, zaehlerstaende, …), aus seiten.mjs */
.thema-kopf {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.thema-kopf > * {
  margin-inline: 0;
}

.thema-kopf h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.8rem);
}

.thema-kopf .etikett {
  color: var(--gold-tief);
}

.thema-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 56px);
  background: var(--sand-tief);
}

.thema-text > article {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 46rem;
}

.thema-text h2,
.thema-weiter h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.thema-text p {
  color: var(--tinte-leise);
  text-wrap: pretty;
}

.punkte {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.punkte li {
  position: relative;
  padding-left: 28px;
}

.punkte li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

/* minmax(0, 1fr): Sonst misst sich das auto-fill-Raster der Liste an seinem
   breitesten Inhalt und schiebt die Seite seitlich hinaus. */
.thema-weiter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.thema-weiter > * {
  width: 100%;
}

.thema-weiter ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thema-weiter a {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 20px 22px;
  border-radius: var(--rund);
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--haarlinie);
  text-decoration: none;
  transition: box-shadow 200ms ease;
}

.thema-weiter a:hover {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.thema-weiter b {
  font-weight: 600;
}

.thema-weiter span {
  font-size: 0.92rem;
  color: var(--tinte-leise);
}

@media (max-width: 860px) {
  .thema-kopf {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Impressum und Datenschutz: eigene Seiten im selben Kleid */
.recht {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(48px, 8vw, 96px) var(--rinne) clamp(72px, 10vw, 120px);
}

.recht-kopf {
  display: grid;
  gap: 14px;
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--haarlinie);
}

.recht-kopf h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.recht-kopf .etikett {
  color: var(--gold-tief);
}

main.recht > section {
  display: grid;
  gap: 12px;
  padding: 0;
}

/* Die Abschnitte der Landingpage zentrieren ihre Kinder; Fließtext nicht. */
main.recht > section > * {
  margin-inline: 0;
}

.recht h2 {
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.recht section p {
  color: var(--tinte-leise);
  text-wrap: pretty;
}

.recht strong {
  font-weight: 600;
  color: var(--tinte);
}

.recht .offen {
  padding: 16px 18px;
  border: 1.5px dashed var(--gold);
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  color: var(--tinte);
}

.offen span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-tief);
}

/* Schluss */
.schluss {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
  background: var(--wald-tief);
  color: var(--auf-dunkel);
}

.schluss-zeichen {
  width: 84px;
  height: 84px;
  color: var(--auf-dunkel);
}

.schluss .beiwerk {
  color: rgba(252, 250, 246, 0.6);
}

.schluss .knopf-voll {
  background: var(--auf-dunkel);
  color: var(--wald-tief);
}

.fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px var(--rinne);
  font-size: 0.92rem;
  color: var(--tinte-leise);
}

.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* Die Themen verlinken sich gegenseitig -- für Leser und Suchmaschinen. */
.fuss-themen {
  flex-basis: 100%;
  order: 3;
  padding-top: 16px;
  border-top: 1px solid var(--haarlinie);
}

.fuss a {
  text-decoration: none;
}

.fuss a:hover {
  color: var(--tinte);
}

/* „Bewegung reduzieren“: nichts wandert, wabert oder hüpft. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .salat span:nth-child(n + 2),
  .leitung i {
    opacity: 0;
  }
  .leitung i:first-child {
    opacity: 1;
    left: 50%;
  }
}
