/* whitemacs Auftakt — Stylesheet. Handgeschrieben, kein Framework, keine Webfonts (Systemschrift
   des Geräts: schnell, kein Fremdabruf). Gestaltung: eine Spalte, viel Luft, Haarlinien statt
   Kästen, Farbe nur mit Bedeutung — Navy handelt, Blau verweist, Orange ist die Marke und der
   aktuelle Schritt, vier Töne für den Status. Markenfarben aus dem Lockup. */
:root {
  --navy: #0B0B3D; --blue: #033878; --orange: #FB3706;
  --ink: #1B1F2A; --muted: #66707E; --hair: #E3E7EC; --field: #C5CDD8; --wash: #F6F7F9;
  --green: #2F7A4C; --amber: #A66A00; --amber-wash: #FFF7E8; --red: #B3261E;
  --breit: 84rem; --mittel: 64rem; --schmal: 38rem;
}
* { box-sizing: border-box; }
/* [hidden] muss gewinnen, auch gegen Klassen mit display: block (z. B. .hilfe am Info-Text). */
[hidden] { display: none !important; }
/* Honeypot der Zugangsanfrage: aus dem Blick, aber nicht display:none (manche Bots lassen
   unsichtbare Felder aus); aria-hidden + tabindex=-1 halten Screenreader und Tastatur fern. */
.honigtopf { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--ink); background: #fff;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: .18em; }
p { margin: 0 0 .8rem; }
strong { font-weight: 600; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95em; }

/* Lockup: Punkte-Marke + whitemacs-Logo + "Auftakt". font-size ist der einzige Regler. */
.auftakt-lockup {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: 20px; line-height: 1; letter-spacing: -.015em; white-space: nowrap;
  font-family: "Segoe UI", "Segoe UI Web", system-ui, -apple-system, sans-serif;
}
.auftakt-lockup > svg { height: 1.25em; width: auto; flex-shrink: 0; }
.auftakt-lockup .text { display: inline-flex; align-items: baseline; gap: .3em; }
.auftakt-lockup .haus img { height: .62em; width: auto; display: block; }
.auftakt-lockup .name { color: var(--navy); font-weight: 600; }
.marke-gross { margin: 1rem 0 3rem; }
.marke-gross .auftakt-lockup { font-size: 32px; }

/* Kopf: Marke links, Navigation rechts, eine Haarlinie darunter. */
.kopf { border-bottom: 1px solid var(--hair); }
.zeile { max-width: var(--breit); margin: 0 auto; padding: 0 1.25rem; }
.kopf .zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.kopf .brand { display: inline-flex; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; align-items: center; margin-left: auto; }
.nav a, .nav button {
  display: inline-block; color: var(--navy); text-decoration: none; font: inherit; font-size: .9375rem;
  font-weight: 500; padding: .3rem 0 .2rem; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.nav a:hover, .nav button:hover { border-bottom-color: var(--hair); }
.nav a.aktiv { border-bottom-color: var(--orange); }
.nav form { margin: 0; display: inline; }
.nav .kopf-knopf { display: inline-flex; align-items: center; line-height: 1; min-height: 38px; padding: 0 1rem; margin-left: .5rem; border: 1px solid var(--navy); }
.nav .kopf-knopf:hover { border-color: var(--blue); }
@media (max-width: 639px) {
  /* Telefon: der Knopf klebt unten rechts, damit er ohne Scrollen erreichbar bleibt. */
  .nav .kopf-knopf { position: fixed; right: 1rem; bottom: 1rem; z-index: 10; min-height: 48px; padding: 0 1.25rem; box-shadow: 0 2px 10px rgba(11, 11, 61, .28); }
  main { padding-bottom: 6rem; }
}

.demo { background: var(--amber-wash); color: var(--amber); font-size: .875rem; }
.demo .zeile { padding-top: .45rem; padding-bottom: .45rem; }
.flash { max-width: var(--breit); margin: 1.5rem auto 0; padding: 0 1.25rem; }
.flash p { border-left: 2px solid var(--navy); padding: .15rem 0 .15rem .9rem; margin: 0 0 .5rem; color: var(--navy); }

main { flex: 1; width: 100%; max-width: var(--breit); margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }
/* width:auto statt 100 %: mit dem linken Aussenabstand waere main sonst 1.25rem breiter als der
   Viewport (auf dem Telefon liess sich die Seite seitlich schieben). Gestreckt und per max-width
   gedeckelt, linksbuendig am Kopf -- auf breiten Schirmen bleibt alles, wo es war. */
main.schmal, main.mittel { width: auto; margin-left: max(1.25rem, calc((100% - var(--breit)) / 2 + 1.25rem)); margin-right: 0; padding-left: 0; padding-right: 1.25rem; }
main.schmal { max-width: var(--schmal); }
main.mittel { max-width: var(--mittel); }
.fuss { border-top: 1px solid var(--hair); color: var(--muted); font-size: .8125rem; }
.fuss .zeile { padding-top: 1.1rem; padding-bottom: 2.5rem; }
.fuss a { color: inherit; }

/* Typografie */
.eyebrow { font-size: .875rem; color: var(--muted); margin: 0 0 .4rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; line-height: 1.2; font-weight: 600; color: var(--navy); margin: 0 0 1.25rem; }
h2 { font-size: 1.0625rem; font-weight: 600; color: var(--navy); margin: 2.75rem 0 .8rem; }
h2:first-child { margin-top: 0; }
.lead { max-width: 62ch; margin: 0 0 1.75rem; }
.hint, .muted { color: var(--muted); }
.hint { font-size: .875rem; }
.fussnote { color: var(--muted); font-size: .875rem; margin-top: 2rem; max-width: 62ch; }
.leer { color: var(--muted); }
.zahl { font-variant-numeric: tabular-nums; }

/* Bedienflächen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.15rem;
  border: 1px solid var(--field); border-radius: 3px; background: #fff; color: var(--navy);
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--navy); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--blue); border-color: var(--blue); }
.btn.small { min-height: 36px; padding: 0 .85rem; font-size: .9rem; }
.btn.text { border: 0; background: none; padding: 0; min-height: 0; color: var(--blue); text-decoration: underline; text-underline-offset: .18em; font-weight: 400; white-space: normal; text-align: left; }
.btn.text:hover { color: var(--navy); }
.btn:disabled { opacity: .45; cursor: default; }
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.dokumente { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 0; }

/* Formulare: einspaltig, Beschriftung über dem Feld, Hilfe darunter. */
label { display: block; margin: 0 0 1.15rem; color: var(--navy); font-weight: 500; font-size: .9375rem; }
label .opt { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .55rem .75rem; min-height: 44px;
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--field); border-radius: 3px;
}
textarea { min-height: 5.5rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, .nav a:focus-visible, a:focus-visible {
  outline: 3px solid rgba(3, 56, 120, .22); outline-offset: 1px;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
input.fehlerhaft, select.fehlerhaft { border-color: var(--red); }
.w-s { max-width: 11rem; }
/* Feld mit eigener Kopfzeile (Label + Info-Knopf): ein <button> darf nicht im <label> stehen. */
.feld { margin: 0 0 1.15rem; }
.feld > label { margin: 0; }
.feld-kopf { display: flex; align-items: center; gap: .5rem; }
.feld > input { margin-top: .35rem; }
.info-knopf {
  flex: none; width: 28px; height: 28px; padding: 0; border-radius: 50%;
  border: 1px solid var(--field); background: #fff; color: var(--navy);
  font: 600 .875rem/1 Georgia, "Times New Roman", serif; font-style: italic; cursor: pointer;
  -webkit-tap-highlight-color: transparent;   /* kein eckiger Tap-Blitz; Tastatur behaelt :focus-visible */
}
.info-knopf:hover { border-color: var(--navy); }
.info-knopf[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.info-knopf:focus-visible { outline: 3px solid rgba(3, 56, 120, .22); outline-offset: 1px; }
.info-text { margin: .4rem 0 0; max-width: 32rem; }
/* Schieberegler: native Bedienung (Tastatur, Touch), Farbe der Marke. */
.regler { display: block; width: 100%; max-width: 20rem; margin: .6rem 0 0; accent-color: var(--navy); min-height: 28px; }
.regler-skala { display: flex; justify-content: space-between; max-width: 20rem; padding: 0 .35rem; font-size: .8125rem; color: var(--muted); }
.feld output { font-weight: 400; color: var(--muted); margin-left: .35rem; }
.w-m { max-width: 20rem; }
.hilfe, .vorschau, .err { display: block; font-weight: 400; font-size: .875rem; margin-top: .4rem; line-height: 1.45; }
.hilfe, .vorschau { color: var(--muted); }
.vorschau.ok { color: var(--green); }
.vorschau.fehler, .err { color: var(--red); }
.domain-feld:has(.err) .vorschau { display: none; }   /* Servermeldung statt Vorschau, bis der Nutzer tippt */
.gruppe { margin: 0 0 2.5rem; }
.gruppe h2 { margin-top: 0; padding-bottom: .5rem; border-bottom: 1px solid var(--hair); margin-bottom: 1.25rem; }
#domain-plus { margin: -.4rem 0 1.4rem; }
.hinweis { border-left: 2px solid var(--amber); padding: .15rem 0 .15rem .9rem; margin: 1.25rem 0; }

/* Übersicht: Titel links, Kontingent und Handlung rechts, die Liste ist der Inhalt. */
.kopfzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.25rem; }
.kopfzeile h1 { margin: 0; }
.kopfzeile .rechts { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.kopfzeile .rechts .kontingent { flex-basis: 100%; font-size: .875rem; }
.btn.gross { min-height: 52px; padding: 0 1.6rem; font-size: 1.0625rem; font-weight: 600; }
@media (min-width: 640px) {
  .kopfzeile .rechts { justify-content: flex-end; }
  .kopfzeile .rechts .kontingent { text-align: right; }
}

/* Status: ein Punkt, kein Etikett. */
.status { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--muted); flex: none; }
.status.st-in_arbeit::before { background: var(--blue); }
.status.st-zur_freigabe::before { background: var(--amber); }
.status.st-versandt::before { background: var(--green); }
.status.st-abgebrochen::before { background: var(--red); }

/* Ablauf eines Vorgangs: drei Schritte, der aktuelle in Orange. */
.ablauf { list-style: none; margin: 1.75rem 0 2.25rem; padding: 0; display: flex; }
.ablauf li { flex: 1; position: relative; padding: 1.15rem .5rem 0 0; font-size: .875rem; color: var(--muted); }
.ablauf li::before { content: ""; position: absolute; top: .2rem; left: 0; width: .7rem; height: .7rem; border-radius: 50%; background: #fff; border: 2px solid var(--hair); }
.ablauf li::after { content: ""; position: absolute; top: .53rem; left: .95rem; right: .35rem; height: 1px; background: var(--hair); }
.ablauf li:last-child::after { display: none; }
.ablauf li.fertig { color: var(--ink); }
.ablauf li.fertig::before { background: var(--navy); border-color: var(--navy); }
.ablauf li.fertig::after { background: var(--navy); }
.ablauf li.aktuell { color: var(--navy); font-weight: 600; }
.ablauf li.aktuell::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(251, 55, 6, .14); }
.ablauf li.gestoppt { color: var(--red); font-weight: 600; }
.ablauf li.gestoppt::before { background: var(--red); border-color: var(--red); }
.ablauf .zusatz { display: block; font-weight: 400; color: var(--muted); }

/* Tabellen und Listen: Haarlinien, tabellarische Ziffern. */
.tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabelle th { text-align: left; font-size: .875rem; color: var(--muted); font-weight: 500; padding: 0 1rem .4rem 0; border-bottom: 1px solid var(--navy); cursor: pointer; user-select: none; white-space: nowrap; }
.tabelle th:hover { color: var(--navy); }
.tabelle th[aria-sort="ascending"]::after { content: " ↑"; color: var(--navy); }
.tabelle th[aria-sort="descending"]::after { content: " ↓"; color: var(--navy); }
.tabelle th.zahl, .tabelle td.zahl { text-align: right; }
.tabelle td { padding: .45rem 1rem .45rem 0; border-bottom: 1px solid var(--hair); vertical-align: top; font-size: .9375rem; line-height: 1.4; }
.tabelle td:last-child, .tabelle th:last-child { padding-right: 0; }
.tabelle a { color: var(--navy); font-weight: 500; text-decoration: none; }
.tabelle a:hover { text-decoration: underline; }
.tabelle .muted { color: var(--muted); }
.tabelle .nummer { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.tabelle td[data-sort], .tabelle td.zahl { white-space: nowrap; }
.tabelle td.haupt { min-width: 12rem; }

.angaben { display: grid; grid-template-columns: 1fr; margin: 0; }
.angaben dt { color: var(--muted); font-size: .875rem; padding-top: .7rem; }
.angaben dd { margin: 0; padding: .15rem 0 .7rem; border-bottom: 1px solid var(--hair); overflow-wrap: anywhere; }

.verlauf { list-style: none; margin: 0; padding: 0; }
.verlauf li { display: grid; grid-template-columns: 1fr; gap: .1rem .75rem; padding: .6rem 0; border-bottom: 1px solid var(--hair); font-size: .9375rem; }
.verlauf time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .875rem; }
.verlauf .was { color: var(--muted); }

/* Nummerierte Schritte (Authenticator einrichten) */
.schritte { list-style: none; margin: 0 0 2.25rem; padding: 0; counter-reset: s; }
.schritte li { position: relative; padding-left: 2.6rem; margin: 0 0 1.35rem; counter-increment: s; }
.schritte li::before { content: counter(s); position: absolute; left: 0; top: .05rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--navy); color: #fff; font-size: .8125rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.geheim { display: block; margin: .6rem 0; padding: .6rem .8rem; background: var(--wash); border: 1px solid var(--hair); border-radius: 3px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95rem; letter-spacing: .08em; word-break: break-all; }
.schritte .btn { display: flex; width: max-content; margin: .6rem 0 .3rem; }
.qr-zeile { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-start; margin-top: .6rem; }
.qr-zeile .qr { width: 11rem; height: 11rem; border: 1px solid var(--hair); border-radius: 3px; background: #fff; }
.qr-zeile > div { flex: 1; min-width: 14rem; }
.schritte form { margin-top: .6rem; }

/* Telefon: Tabellen werden zu Zeilenblöcken. */
.tabelle thead { display: none; }
.tabelle tr { display: block; padding: .75rem 0; border-bottom: 1px solid var(--hair); }
.tabelle td { display: inline-block; padding: .1rem 1rem .1rem 0; border: 0; }
.tabelle td[data-l]::before { content: attr(data-l) " "; color: var(--muted); }
.tabelle td.zahl { text-align: left; }
.tabelle td.haupt, .tabelle td.zeile-domains { display: block; }
.tabelle td.haupt a { font-size: 1.0625rem; }

@media (min-width: 640px) {
  .tabelle thead { display: table-header-group; }
  .tabelle tr { display: table-row; padding: 0; border: 0; }
  .tabelle td { display: table-cell; padding: .45rem 1rem .45rem 0; border-bottom: 1px solid var(--hair); }
  .tabelle td[data-l]::before { content: none; }
  .tabelle td.zahl { text-align: right; }
  .tabelle td.haupt, .tabelle td.zeile-domains { display: table-cell; }
  .tabelle td.haupt a { font-size: 1rem; }
  .angaben { grid-template-columns: 12rem 1fr; }
  .angaben dt { padding: .7rem 0; border-bottom: 1px solid var(--hair); }
  .angaben dd { padding: .7rem 0; }
  .verlauf li { grid-template-columns: 9.5rem 1fr; }
  .marke-gross .auftakt-lockup { font-size: 40px; }
  h1 { font-size: 1.625rem; }
}
