/* Amplendo — Gestaltung.
   Bewusst ohne Rahmenwerk: die Seite bleibt klein, laedt sofort und ist in
   fuenf Jahren noch wartbar.

   Aufbau
     1  Marken- und Farbwerte
     2  Grundlagen
     3  Kopfzeile und Navigation
     4  Schaltflaechen
     5  Abschnitte und Typografie
     6  Held (Startbereich)
     7  Datenbausteine: Kennzahlen, Zonen, Balken, Zeitleiste
     8  Karten, Raster, Ablaufschritte
     9  Tabellen
    10  Hinweis, Marker, Statusanzeige
    11  Formulare (Anmelden, Konto)
    12  Fusszeile

   Die Farben der Geschwindigkeitszonen sind keine Dekoration: dieselbe
   Zuordnung gilt in der Auswertung, im Diagramm und in der Spur im Kopfbereich.
*/

/* == 1  Marken- und Farbwerte ============================================= */

:root {
  /* Marke */
  --pinie:        #0E4F35;
  --pinie-tief:   #0A3A27;
  --pinie-hell:   #2E8B63;

  /* Geschwindigkeitszonen — durchgaengige Kodierung der ganzen Seite */
  --zone-1:       #64748B;   /* gehen        bis  7,2 km/h */
  --zone-2:       #0E7C86;   /* traben       bis 14,4 km/h */
  --zone-3:       #2F9E44;   /* laufen       bis 19,8 km/h */
  --zone-4:       #D98314;   /* hochintensiv bis 25,2 km/h */
  --zone-5:       #D93A3A;   /* sprint         ab 25,2 km/h */

  --akzent:       #D98314;
  --rot:          #C0342F;

  /* Zustandsmarken: eigene Textfarben. Die Zonenfarben sind fuer
     Flaechen gedacht und erreichen als kleiner Text auf Weiss die
     4,5:1 nicht (#2F9E44 = 3,4:1, #D98314 = 2,9:1). */
  --zust-fertig:  #1E7A32;
  --zust-laeuft:  #0B6870;
  --zust-offen:   #8A5200;

  /* Neutrale mit leichtem Gruenstich — gewaehlt, nicht geerbt */
  --bg:           #FAFBF9;
  --bg-alt:       #F0F3EF;
  --karte:        #FFFFFF;
  --text:         #0F1613;
  --text-mittel:  #3A4642;
  --text-leise:   #5E6A65;
  --rand:         #DDE3DC;
  --rand-leise:   #E9EDE7;

  /* Raster und Schrift */
  --breite:       1120px;
  --breite-text:  660px;
  --radius:       10px;
  --radius-klein: 6px;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --schrift: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
             Roboto, Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --schatten: 0 1px 2px rgba(15, 22, 19, .04),
              0 12px 28px -20px rgba(15, 22, 19, .30);
}

@media (prefers-color-scheme: dark) {
  :root {
    --pinie:       #2E8B63;
    --pinie-tief:  #1F6B4A;
    --pinie-hell:  #5FD09B;

    --zone-1:      #94A3B8;
    --zone-2:      #2AA5AF;
    --zone-3:      #4ABE5F;
    --zone-4:      #EBA33F;
    --zone-5:      #F16A6A;

    --akzent:      #EBA33F;
    --rot:         #F1706B;

    --zust-fertig: #4ABE5F;
    --zust-laeuft: #2AA5AF;
    --zust-offen:  #EBA33F;

    --bg:          #0B0F0D;
    --bg-alt:      #0F1412;
    --karte:       #171D19;
    --text:        #E7EDE9;
    --text-mittel: #BAC4BE;
    --text-leise:  #8C978F;
    --rand:        #242C27;
    --rand-leise:  #1C231F;

    --schatten:    0 1px 2px rgba(0, 0, 0, .40),
                   0 12px 28px -20px rgba(0, 0, 0, .90);
  }
}

/* == 2  Grundlagen ======================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Sprunglink: liegt ausserhalb des Sichtfelds und kommt erst beim Tabben
   hervor. Ohne ihn muss man sich durch die ganze Kopfzeile arbeiten. */
.sprung {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--pinie);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-klein) 0;
  font-weight: 600;
  text-decoration: none;
}
.sprung:focus {
  left: 0;
}
@media (prefers-color-scheme: dark) {
  .sprung { color: #06120C; }
}

/* Die klebende Kopfzeile darf das Sprungziel nicht verdecken.
   konto.html benutzt "seitenanfang", weil dort "inhalt" schon fuer den
   Container vergeben ist, den konto.js ein- und ausblendet. */
#inhalt, #seitenanfang { scroll-margin-top: 76px; }

/* == 3  Kopfzeile und Navigation ========================================== */

header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rand);
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.marke {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

/* Wortmarke: die Spur als Zeichen, nicht als Emoji */
.marke .punkt {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pinie);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.marke .punkt svg { width: 26px; height: 26px; display: block; }

nav.haupt {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav.haupt a {
  color: var(--text-leise);
  text-decoration: none;
  font-size: .92rem;
  transition: color .15s;
}
nav.haupt a:hover { color: var(--text); }

@media (max-width: 820px) {
  nav.haupt { gap: 16px; }
  nav.haupt a.verbergen-klein { display: none; }
}

/* == 4  Schaltflaechen ==================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-klein);
  border: 1px solid transparent;
  font-family: var(--schrift);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }

.btn-voll { background: var(--pinie); color: #FFFFFF; }
.btn-voll:hover { background: var(--pinie-tief); }
@media (prefers-color-scheme: dark) {
  .btn-voll { color: #06120C; }
  .btn-voll:hover { background: var(--pinie-hell); }
}

.btn-rand {
  background: transparent;
  color: var(--text);
  border-color: var(--rand);
}
.btn-rand:hover { border-color: var(--pinie); color: var(--pinie); }

.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn-breit { width: 100%; }

/* == 5  Abschnitte und Typografie ========================================= */

section { padding: 76px 0; }
section.alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--rand);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1.15;
  margin: 0 0 14px;
}

h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 7px;
}

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

.intro {
  color: var(--text-mittel);
  max-width: var(--breite-text);
  font-size: 1.04rem;
  margin: 0 0 38px;
}

/* Abschnittsmarke: Kennung plus Haarlinie. Die Nummerierung entfaellt
   bewusst — die Abschnitte sind kein Ablauf, nur der Ablaufteil ist einer. */
.marke-zeile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.marke-zeile::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rand);
}

.text-bahn { max-width: var(--breite-text); }

/* == 6  Held (Startbereich) =============================================== */

.held {
  padding: 72px 0 0;
  overflow: hidden;
}

.held-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (min-width: 940px) {
  .held-raster { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
}

.held h1 {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.038em;
  margin: 0 0 20px;
  max-width: 15ch;
}

.held p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.19rem);
  color: var(--text-mittel);
  max-width: 52ch;
  margin: 0 0 30px;
}

.held .knoepfe {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

/* Kurzbelege unter den Schaltflaechen */
.belege {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--text-leise);
  letter-spacing: .02em;
}
.belege span { display: inline-flex; align-items: center; gap: 7px; }
.belege span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--pinie);
  flex: 0 0 auto;
}

/* Platz mit GNSS-Spur */
.platz-huelle {
  position: relative;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  background: var(--karte);
  box-shadow: var(--schatten);
  padding: 14px;
}
.platz-huelle canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-klein);
}

.platz-fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rand-leise);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-leise);
}

/* Zonenlegende — dieselbe Farbfolge wie im Diagramm */
.legende {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--text-leise);
  text-transform: none;
}
.legende b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}
.legende b::before {
  content: "";
  width: 9px; height: 3px;
  border-radius: 2px;
  background: currentColor;
}
.legende .z1 { color: var(--zone-1); }
.legende .z2 { color: var(--zone-2); }
.legende .z3 { color: var(--zone-3); }
.legende .z4 { color: var(--zone-4); }
.legende .z5 { color: var(--zone-5); }

/* == 7  Datenbausteine ==================================================== */

/* Kennzahlenreihe */
.zahlen {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  background: var(--rand);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  overflow: hidden;
}

.zahl {
  background: var(--karte);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.zahl b {
  display: block;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.zahl span {
  color: var(--text-leise);
  font-size: .82rem;
  line-height: 1.4;
}
.zahl em {
  font-style: normal;
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-leise);
  margin-left: 3px;
  letter-spacing: -0.01em;
}

/* Zonenband: gestapelte Verteilung ueber eine Zeile */
.zonen { display: flex; flex-direction: column; gap: 14px; }

.zonen-band {
  display: flex;
  height: 46px;
  border-radius: var(--radius-klein);
  overflow: hidden;
  border: 1px solid var(--rand);
}
.zonen-band > i {
  display: block;
  height: 100%;
  transition: filter .15s;
}
.zonen-band > i:hover { filter: brightness(1.12); }

.zonen-liste {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  background: var(--rand);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  overflow: hidden;
}
.zonen-liste > div {
  background: var(--karte);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 3px solid transparent;
}
.zonen-liste .wert {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.zonen-liste .name { font-size: .88rem; }
.zonen-liste .spanne {
  font-family: var(--mono);
  font-size: .71rem;
  color: var(--text-leise);
  letter-spacing: .02em;
}

/* Vergleichsbalken (Messverfahren, Kosten) */
.balken { display: flex; flex-direction: column; gap: 18px; }

.balken-zeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.balken-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.balken-kopf .titel { font-size: .95rem; font-weight: 500; }
.balken-kopf .wert {
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.balken-spur {
  height: 15px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
}
section.alt .balken-spur { background: var(--bg); }

.balken-spur > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--zone-1);
  transform-origin: left center;
  animation: balken-auf .9s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes balken-auf { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.balken-zeile.gut  .balken-spur > i { background: var(--zone-3); }
.balken-zeile.warn .balken-spur > i { background: var(--zone-4); }
.balken-zeile.raus .balken-spur > i { background: var(--zone-5); }
.balken-zeile.wahr .balken-spur > i {
  background: repeating-linear-gradient(
    -45deg,
    var(--text-leise) 0 5px,
    transparent 5px 10px
  );
  border: 1px dashed var(--text-leise);
  box-sizing: border-box;
}

.balken-fuss {
  font-size: .86rem;
  color: var(--text-leise);
  margin: 0;
}

/* Sprint-Zeitleiste */
.zeitleiste {
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  background: var(--karte);
  padding: 20px;
}
.zeitleiste-spur {
  position: relative;
  height: 62px;
  border-bottom: 1px solid var(--rand);
}
.zeitleiste-spur i {
  position: absolute;
  bottom: 0;
  width: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--zone-5);
}
.zeitleiste-achse {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-leise);
  letter-spacing: .04em;
}

/* == 8  Karten, Raster, Ablaufschritte ==================================== */

.raster {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.karte {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 24px;
}
.karte p { color: var(--text-mittel); font-size: .95rem; }
.karte p:last-child { margin-bottom: 0; }

/* Kennung statt Emoji: kurze Monospace-Marke ueber der Ueberschrift */
.karte .kennung {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pinie);
  margin-bottom: 10px;
}

/* Messkanal-Karte mit Taktrate */
.kanal { position: relative; }
.kanal .rate {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 600;
  color: var(--text-leise);
  letter-spacing: .02em;
}

.schritte { display: grid; gap: 0; }

.schritt {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--rand);
  align-items: start;
}
.schritt:last-child { border-bottom: 1px solid var(--rand); }

.schritt .nr {
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 600;
  color: var(--pinie);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.schritt p { margin: 5px 0 0; color: var(--text-mittel); font-size: .95rem; }

/* == 9  Tabellen ========================================================== */

.tab-huelle {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  background: var(--karte);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  min-width: 460px;
}
th, td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--rand-leise);
}
tbody tr:last-child td { border-bottom: none; }
th {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text-leise);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rand);
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) {
  th { background: color-mix(in srgb, var(--bg) 60%, var(--karte)); }
}
/* Zeilenkoepfe sind fuer Vorleseprogramme ausgezeichnet, sollen aber aussehen
   wie normale Zellen — nicht wie die Spaltenkoepfe darueber. */
tbody th {
  font-family: var(--schrift);
  font-size: .93rem;
  font-weight: 400;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  background: none;
  border-bottom: 1px solid var(--rand-leise);
  white-space: normal;
}
tbody tr:last-child th { border-bottom: none; }
tr.hebt th { font-weight: 700; background: var(--bg-alt); }
@media (prefers-color-scheme: dark) {
  tr.hebt th { background: color-mix(in srgb, var(--bg) 60%, var(--karte)); }
}

td.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
tr.hebt td { font-weight: 700; background: var(--bg-alt); }
@media (prefers-color-scheme: dark) {
  tr.hebt td { background: color-mix(in srgb, var(--bg) 60%, var(--karte)); }
}

/* == 10  Hinweis, Marker, Statusanzeige =================================== */

.hinweis {
  border-left: 3px solid var(--akzent);
  background: color-mix(in srgb, var(--akzent) 9%, transparent);
  padding: 18px 22px;
  border-radius: 0 var(--radius-klein) var(--radius-klein) 0;
  font-size: .95rem;
  color: var(--text-mittel);
}
.hinweis strong { color: var(--text); }

.marker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mittel);
  background: var(--karte);
  border: 1px solid var(--rand);
  padding: 6px 14px 6px 11px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.marker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--akzent);
  flex: 0 0 auto;
  animation: puls 2.4s ease-in-out infinite;
}
@keyframes puls {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.8); }
}

/* Zustandsmarke in Tabellen */
.zust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.zust::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.zust.fertig { color: var(--zust-fertig); }
.zust.laeuft { color: var(--zust-laeuft); }
.zust.offen  { color: var(--zust-offen); }
/* Der Punkt davor darf die kraeftige Zonenfarbe behalten: als reine
   Flaeche gilt fuer ihn die 3:1-Grenze, die er haelt. */
.zust.fertig::before { background: var(--zone-3); }
.zust.laeuft::before { background: var(--zone-2); }
.zust.offen::before  { background: var(--zone-4); }
.zust.wartet { color: var(--text-leise); }

.stand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
}
.stand.wartet {
  background: color-mix(in srgb, var(--akzent) 15%, transparent);
  color: var(--akzent);
}
.stand.frei {
  background: color-mix(in srgb, var(--pinie) 15%, transparent);
  color: var(--pinie);
}

/* == 11  Formulare (Anmelden, Konto) ====================================== */

.mitte {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.box {
  width: 100%;
  max-width: 430px;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--schatten);
}

.box h1 {
  font-size: 1.55rem;
  margin: 0 0 6px;
  letter-spacing: -0.028em;
}
.box p.unter {
  color: var(--text-leise);
  font-size: .93rem;
  margin: 0 0 28px;
}

label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text-mittel);
}

input[type=text], input[type=email], input[type=password], select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rand);
  border-radius: var(--radius-klein);
  background: var(--bg);
  color: var(--text);
  font-family: var(--schrift);
  font-size: .95rem;
  margin-bottom: 18px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--text-leise); opacity: .75; }
input:focus, select:focus {
  outline: none;
  border-color: var(--pinie);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pinie) 18%, transparent);
}
select { margin-bottom: 0; }

.trenner {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-leise);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 22px 0;
}
.trenner::before, .trenner::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rand);
}

.meldung {
  padding: 12px 15px;
  border-radius: var(--radius-klein);
  font-size: .9rem;
  margin-bottom: 18px;
  display: none;
  border: 1px solid transparent;
}
.meldung.zeigen { display: block; }
.meldung.fehler {
  background: color-mix(in srgb, var(--rot) 10%, transparent);
  border-color: color-mix(in srgb, var(--rot) 30%, transparent);
  color: var(--rot);
}
.meldung.gut {
  background: color-mix(in srgb, var(--pinie) 12%, transparent);
  border-color: color-mix(in srgb, var(--pinie) 30%, transparent);
  color: var(--pinie);
}

.wechsel {
  text-align: center;
  margin-top: 24px;
  font-size: .9rem;
  color: var(--text-leise);
}

code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--bg-alt);
  padding: .1em .38em;
  border-radius: 3px;
}

/* == 12  Fusszeile ======================================================== */

footer {
  border-top: 1px solid var(--rand);
  padding: 40px 0 52px;
  color: var(--text-leise);
  font-size: .88rem;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
footer a { color: var(--text-leise); }
footer a:hover { color: var(--text); }

a { color: var(--pinie); text-underline-offset: 2px; }

/* == Feinheiten fuer kleine Schirme ====================================== */

@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .held { padding-top: 48px; }
  .schritt { grid-template-columns: 34px 1fr; gap: 14px; }
  .zahl b { font-size: 1.6rem; }
}
