:root {
  --primaer: #57799d;
  --primaer-dunkel: #4a6a8c;
  --primaer-hell: #eef3f8;
  --kopf-start: #52738f;
  --kopf-ende: #46617c;
  --tinte: #364152;
  --grau: #657184;
  --flaeche: #f3f5f9;
  --weiss: #fff;
  --linie: #e7ebf1;
  --feldrahmen: #8b8e92;
  --gruen: #408365;
  --gruen-hell: #eaf6f0;
  --rot: #ad6156;
  --rot-hell: #fbedeb;
  --gelb: #d0973f;
  --gelb-hell: #fbf2e3;
  --radius: 16px;
  --radius-klein: 10px;
  --schatten: 0 4px 16px rgba(54, 65, 82, .06), 0 1px 3px rgba(54, 65, 82, .05);
  --schatten-weich: 0 2px 8px rgba(54, 65, 82, .05);
}

* { box-sizing: border-box; }

/* Das hidden-Attribut muss auch gegen ".knopf { display: inline-block }"
   gewinnen -- sonst bleibt ein versteckter Knopf sichtbar (Bild-Scanner). */
[hidden] { display: none !important; }

/* Sprunglink: Die Navigation hat bis zu 14 Links. Ohne diesen muesste sie
   auf jeder Seite durchtabbt werden, bevor der Inhalt erreichbar ist. */
.sprunglink {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--weiss); color: var(--tinte); padding: 0.7rem 1.2rem;
  border: 2px solid var(--primaer); border-radius: 0 0 var(--radius-klein) 0;
  text-decoration: none; font-weight: 600;
}
.sprunglink:focus { left: 0; }
body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; background: var(--flaeche); color: var(--tinte); line-height: 1.5; }

/* ------------------------------------------------------------- Kopf */
header {
  background: linear-gradient(135deg, var(--kopf-start), var(--kopf-ende));
  color: #fff; display: flex; align-items: center; gap: 1.5rem;
  padding: 0.75rem 1.5rem; position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 10px rgba(30, 45, 60, .12);
}
.logo { font-weight: 700; font-size: 1.1rem; white-space: nowrap; letter-spacing: .2px; }
nav { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; flex: 1; }
nav a { color: rgba(255,255,255,.85); text-decoration: none; padding: 0.45rem 0.85rem; border-radius: 999px; transition: background .15s, color .15s; font-size: 0.95rem; }
nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
nav a.aktiv { background: rgba(255,255,255,.22); color: #fff; font-weight: 600; }
nav select { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
nav select option { color: var(--tinte); }
nav .mandant-name { color: rgba(255,255,255,.85); font-size: 0.9rem; padding: 0.35rem 0.75rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; white-space: nowrap; }

/* ------------------------------------------------------------- Inhalt */
main { max-width: 1200px; margin: 1.8rem auto; padding: 0 1.2rem; }
h1 { font-size: 1.5rem; font-weight: 700; margin: 0.4rem 0 1.2rem; color: var(--tinte); }
h2 { font-size: 1.08rem; font-weight: 700; margin: 0 0 0.9rem; color: var(--tinte); }

.meldung { background: var(--gruen-hell); border: 1px solid #cfe8dc; color: #2f6b4f; padding: 0.7rem 1.1rem; border-radius: var(--radius-klein); margin-bottom: 1rem; }
.meldung.fehler { background: var(--rot-hell); border-color: #f2d4cf; color: #9c4a3d; }

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--schatten-weich); }
.karte .zahl { font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.karte.warn .zahl { color: var(--rot); }
.karte.ok .zahl { color: var(--gruen); }

/* ------------------------------------------------------------- Tabellen */
table { width: 100%; border-collapse: collapse; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten-weich); font-size: 0.88rem; }
th, td { padding: 0.6rem 0.7rem; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { background: var(--primaer-hell); font-weight: 600; white-space: nowrap; color: var(--tinte); }
tr:hover td { background: #fafbfd; }
.betrag { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.betrag.minus { color: var(--rot); } .betrag.plus { color: var(--gruen); }
.status-offen { color: var(--gelb); font-weight: 600; background: var(--gelb-hell); padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.82rem; }
.status-geprueft { color: var(--gruen); font-weight: 600; background: var(--gruen-hell); padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.82rem; }

/* ------------------------------------------- Zeitraum, Frist, Ablauf */
.zeitraum-leiste { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.zeitraum-leiste label { font-weight: 600; font-size: 0.9rem; }
.frist { background: var(--primaer-hell); color: var(--tinte); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.88rem; white-space: nowrap; }
.frist.knapp { background: var(--gelb-hell); color: #6b5227; }
.frist.ueberfaellig { background: var(--rot-hell); color: #9c4a3d; }

.schritte { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.schritt { flex: 1; min-width: 190px; display: flex; align-items: center; gap: 0.6rem;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-klein);
  padding: 0.7rem 1rem; font-size: 0.92rem; color: var(--grau); }
.schritt .nummer { display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--linie);
  color: var(--grau); font-weight: 700; font-size: 0.85rem; flex: 0 0 auto; }
.schritt.aktiv { border-color: var(--primaer); color: var(--tinte); font-weight: 600;
  box-shadow: 0 0 0 3px var(--primaer-hell); }
.schritt.aktiv .nummer { background: var(--primaer); color: #fff; }
.schritt.erledigt { color: var(--gruen); border-color: #cfe8dc; }
.schritt.erledigt .nummer { background: var(--gruen); color: #fff; }

.naechster-schritt { background: var(--weiss); border: 1px solid var(--primaer);
  border-left: 4px solid var(--primaer); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin-bottom: 1.5rem; box-shadow: var(--schatten-weich); }
.naechster-schritt p { margin: 0 0 0.9rem; }

table.cockpit td, table.cockpit th { vertical-align: middle; }
table.cockpit .klein-text { display: block; font-weight: 400; }

/* Feld-Ausrichtung in .zeile-Formularen (frueher inline-styles) */
.feld-unten { display: flex; align-items: flex-end; }
details.abweichend { margin-top: 0.8rem; }
details.abweichend summary { cursor: pointer; color: var(--primaer); font-size: 0.88rem; }
.bearbeiten-zeile > td { padding-top: 0; padding-bottom: 0.6rem; }
.bearbeiten-zeile summary { cursor: pointer; color: var(--primaer); }
.bearbeiten-form { margin-top: 0.6rem; }
.auswahl-kasten { cursor: pointer; }
.saldo { font-weight: 700; }

/* -------------------------------- Freigabe-Status und Nachrichten */
.status-leiste { border-radius: var(--radius-klein); padding: 0.8rem 1.1rem;
  margin: 1rem 0; font-size: 0.92rem; border: 1px solid var(--linie); }
.status-leiste.status-offen { background: var(--primaer-hell); }
.status-leiste.status-freigegeben { background: var(--gelb-hell); border-color: #f2e0bb; color: #6b5227; }
.status-leiste.status-gesendet { background: var(--gruen-hell); border-color: #cfe8dc; color: #2f6b4f; }

.nachrichten { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.2rem; }
.nachricht { border: 1px solid var(--linie); border-radius: var(--radius-klein);
  padding: 0.6rem 0.9rem; background: #fbfcfe; max-width: 46rem; }
.nachricht.eigen { background: var(--primaer-hell); border-color: #d6e2ee; align-self: flex-end; }
.nachricht .kopf { display: flex; gap: 0.6rem; align-items: baseline; margin-bottom: 0.25rem; }
.nachricht .text { white-space: pre-wrap; }
textarea { width: 100%; font: inherit; resize: vertical; }

/* -------------------------------------- USt-Voranmeldung-Kennziffern */
.kennziffer-zeile { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--linie); }
.kennziffer-zeile:last-child { border-bottom: 0; }
.kennziffer-zeile > span:first-child { flex: 1; }
.kennziffer-box { flex: 0 0 auto; border: 1px solid var(--tinte); border-radius: 4px; padding: 0.1rem 0.5rem; font-weight: 700; font-size: 0.85rem; }
.kennziffer-zeile .betrag { flex: 0 0 auto; min-width: 9rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.betrag-gross { font-size: 1.1rem; }
.ustva-kopf { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; margin-bottom: 1rem; font-size: 0.92rem; color: var(--grau); }
.ustva-kopf strong { color: var(--tinte); }

/* ------------------------------------------------------------- Formulare */
select, textarea,
input[type=text], input[type=number], input[type=date],
input[type=file], input[type=password], input[type=email] {
  padding: 0.5rem 0.65rem; border: 1px solid var(--feldrahmen); border-radius: var(--radius-klein);
  font: inherit; max-width: 100%; background: #fbfcfe; color: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
select:focus, textarea:focus, input:focus {
  outline: none; border-color: var(--primaer); background: var(--weiss);
  box-shadow: 0 0 0 4px var(--primaer-hell);
}
button, .knopf {
  background: var(--primaer); color: #fff; border: 0; padding: 0.55rem 1.2rem;
  border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600;
  text-decoration: none; display: inline-block; transition: background .15s, transform .1s;
}
button:hover, .knopf:hover { background: var(--primaer-dunkel); }
button:active, .knopf:active { transform: scale(.98); }
button:focus-visible, .knopf:focus-visible, a:focus-visible { outline: 2px solid var(--primaer); outline-offset: 2px; }
button.klein { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
button.rot { background: var(--rot); } button.rot:hover { background: #8f4f45; }
button.gruen { background: var(--gruen); } button.gruen:hover { background: #346b52; }
button.beenden { background: transparent; border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.85); padding: 0.35rem 0.85rem; font-size: 0.8rem; font-weight: 500; }
button.beenden:hover { background: rgba(212, 119, 106, .85); border-color: transparent; color: #fff; }
form.inline { display: inline-flex; gap: 0.4rem; align-items: center; margin: 0; }

.formular, .abschnitt {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; box-shadow: var(--schatten-weich); max-width: 640px;
}
.abschnitt { margin-bottom: 1.5rem; }
.abschnitt h2 { margin-bottom: 0.3rem; }
.abschnitt .beschreibung { color: var(--grau); font-size: 0.9rem; margin: 0 0 1.1rem; max-width: 60ch; }
.formular label, .abschnitt label { display: block; margin: 0.9rem 0 0.3rem; font-weight: 600; font-size: 0.9rem; color: var(--tinte); }
.formular label:first-child, .abschnitt form label:first-of-type { margin-top: 0; }
.formular input[type=text], .formular input[type=number],
.formular input[type=date], .formular input[type=password], .formular input[type=email],
.formular select, .abschnitt input[type=text], .abschnitt input[type=password],
.abschnitt input[type=email], .abschnitt select { width: 100%; }
.formular .hinweis, .abschnitt .hinweis { color: var(--grau); font-size: 0.82rem; margin-top: 0.3rem; }
.zeile { display: flex; gap: 1rem; flex-wrap: wrap; }
table.bankkonten input { width: 100%; box-sizing: border-box; }
.steuer-wahl .feld-titel { font-weight: 600; margin: 1rem 0 0.3rem; }
table.bankkonten th { font-weight: 600; text-align: left; }
.zeile > div { flex: 1; min-width: 140px; }

.hilfe { background: var(--gelb-hell); border: 1px solid #f2e0bb; border-radius: var(--radius-klein); padding: 0.85rem 1.1rem; font-size: 0.88rem; margin: 1rem 0; color: #6b5227; }
.klein-text { color: var(--grau); font-size: 0.8rem; }

/* ------------------------------------------------------------- Schmale Bildschirme */
@media (max-width: 900px) {
  header { flex-wrap: wrap; gap: 0.5rem; padding: 0.6rem 0.8rem; position: static; }
  nav { gap: 0.15rem; }
  nav a { padding: 0.35rem 0.6rem; font-size: 0.9rem; }
  main { margin-top: 1.2rem; }
  .formular, .abschnitt { padding: 1.1rem 1.2rem; }
  th, td { padding: 0.45rem 0.5rem; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ------------------------------------- Kanzleien / Lizenzen (Betreiber) */
.status-aktiv { color: var(--gruen); font-weight: 600; background: var(--gruen-hell); padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.82rem; }
/* Noch nicht zugeordnet: In einer langen Liste muss das ins Auge springen,
   sonst sucht man Zeile fuer Zeile. */
select.nicht-zugeordnet { border-color: var(--rot); color: var(--rot); font-weight: 600; }
.status-gesperrt { color: var(--rot); font-weight: 600; background: var(--rot-hell); padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.82rem; }
.protokoll td { font-size: 0.86rem; }
.protokoll .zeitpunkt { white-space: nowrap; color: var(--grau); }
.protokoll .details { color: var(--grau); word-break: break-word; }

/* --------------------------------------- Mandanten-Startseite und Fehler */
.grossaktion { text-align: center; margin: 1.6rem 0 2rem; }
.knopf.gross {
  display: inline-block; font-size: 1.15rem; font-weight: 600;
  padding: 1rem 2.4rem; border-radius: var(--radius);
}
.grossaktion .klein-text { display: block; margin-top: 0.7rem; }

/* Bild-Scanner: steht direkt ueber "Unterlagen hochladen" und gehoert
   mit ihm zusammen -- deshalb weniger Abstand nach unten. Die Farben der
   Rueckmeldung sind die der Meldungskaesten (geprueft ausreichend Kontrast). */
.grossaktion.scannen { margin-bottom: 0.6rem; }

/* "Passwort vergessen?" auf der Anmeldeseite -- aufklappbar, damit es die
   Seite nicht fuer alle anderen verstellt. */
.vergessen { margin-top: 1rem; }
.vergessen summary { cursor: pointer; color: var(--primaer-dunkel); font-weight: 600; }
.vergessen p { margin: 0.5rem 0 0; }
.grossaktion .scan-ok { color: #2f6b4f; font-weight: 600; }
.grossaktion .scan-fehler { color: #9c4a3d; font-weight: 600; }

/* Kasten "Foto unscharf" bzw. "nicht lesbar" -- dieselben Farben wie der
   Warnhinweis der Einladung. */
.scan-warnung {
  max-width: 30rem; margin: 0.9rem auto 0; padding: 1rem 1.1rem;
  background: #fff7ed; border: 2px solid #b45309; border-radius: var(--radius);
}
.scan-warnung img {
  display: block; max-width: 100%; max-height: 13rem; margin: 0 auto 0.7rem;
  border-radius: var(--radius-klein); border: 1px solid var(--linie);
}
.scan-warnung p { margin: 0.35rem 0; }
.scan-warnung .scan-warntext { color: #7c2d12; font-weight: 700; }
.scan-warnung .knopf { margin: 0.6rem 0.25rem 0; }

/* Nach dem Scannen: bar oder Karte? Der erkannte Weg ist markiert. */
.scan-bezahlt {
  max-width: 30rem; margin: 0.9rem auto 0; padding: 1rem 1.1rem;
  background: var(--primaer-hell); border-radius: var(--radius);
}
.scan-bezahlt p { margin: 0.3rem 0; }
.scan-bezahlt .knopf { margin: 0.4rem 0.25rem; min-width: 9rem; }
.scan-bezahlt .knopf.gewaehlt { outline: 3px solid var(--gruen); outline-offset: 2px; }

/* Nach dem Hochladen: je Beleg eine Zeile mit bar oder Karte/Ueberweisung */
.hochladen-fragen {
  max-width: 30rem; margin: 0.9rem auto 0; padding: 0.9rem 1rem; text-align: left;
  background: var(--primaer-hell); border-radius: var(--radius);
}
.hochladen-fragen p { margin: 0.3rem 0; }
.hochladen-fragen ul { list-style: none; margin: 0.4rem 0; padding: 0; }
.hochladen-fragen li { padding: 0.45rem 0; border-top: 1px solid var(--linie); }
.hochladen-fragen li > span:first-child { display: block; overflow-wrap: anywhere; }
.hochladen-fragen .knopf { margin: 0.3rem 0.4rem 0 0; }
.hochladen-fragen .knopf.gewaehlt { outline: 3px solid var(--gruen); outline-offset: 2px; }
/* Meine Unterlagen: die Frage nachtragen, je Beleg eine Zeile */
.nachtrag-fragen { max-width: 40rem; }
.nachtrag-fragen h2 { margin-top: 0; }
form.nachtrag { margin: 0; padding: 0.55rem 0; border-top: 1px solid var(--linie); }
form.nachtrag .nachtrag-datei { display: block; overflow-wrap: anywhere; }
form.nachtrag .knopf { margin: 0.35rem 0.4rem 0 0; }

/* ------------------------------------------ Mandant: Kopf, Start, Kacheln */
/* Nur Logo und "Anwendungen" -- die Menueleiste hat der Mandant nicht. */
/* Auch am Handy in einer Zeile: "Anwendungen" bleibt rechts oben. */
header.kopf-mandant { justify-content: space-between; flex-wrap: nowrap; }
header.kopf-mandant .logo { color: #fff; text-decoration: none; white-space: normal; min-width: 0; }
.knopf-anwendungen {
  color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap;
  padding: 0.5rem 1.1rem; border-radius: 999px; margin-left: auto; flex-shrink: 0;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45);
}
.knopf-anwendungen:hover, .knopf-anwendungen.aktiv { background: rgba(255,255,255,.3); }

/* Startseite: zwei Knoepfe mittig uebereinander, 1 cm Abstand. Als gap:
   Zwischen den beiden Bloecken steht ein <script>, ein "+"-Selektor
   griffe deshalb nie. */
.startknoepfe {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 55vh; gap: 1cm;
}
.startknoepfe .grossaktion { margin: 0; width: 100%; }
.startknoepfe .knopf.gross { width: 100%; max-width: 20rem; }
.startknoepfe .klein-text:empty { display: none; }

/* Anwendungen: Kacheln zum Antippen, am Handy zwei Spalten */
.kacheln {
  display: grid; gap: 0.9rem; max-width: 46rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
}
.kachel, .kachel-form .kachel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; min-height: 7rem; width: 100%; padding: 1rem 0.6rem;
  background: var(--weiss); color: var(--tinte); border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten-weich);
  text-decoration: none; text-align: center; font: inherit; font-weight: 600;
  cursor: pointer;
}
.kachel:hover, .kachel-form .kachel:hover { background: var(--primaer-hell); border-color: var(--primaer); }
.kachel-form { margin: 0; display: flex; }
.kachel-bild { font-size: 2rem; line-height: 1; }
.kachel-marke {
  font-size: 0.75rem; font-weight: 600; color: #7c2d12;
  background: #fff7ed; border-radius: 999px; padding: 0.1rem 0.55rem;
}
.zurueck-start { margin-top: 1.4rem; }

/* ------------------------------------------------------ App installieren */
/* Was nur im Browser Sinn ergibt, verschwindet in der installierten App
   (display-mode: standalone; iPhone: Klasse als-app aus _app_kopf.html). */
.nur-app, .nur-installiert, .nur-installierbar { display: none !important; }
@media (display-mode: standalone) {
  .nur-browser { display: none !important; }
  .nur-app { display: block !important; }
}
html.als-app .nur-browser { display: none !important; }
html.als-app .nur-app { display: block !important; }
html.installierbar a.nur-installierbar { display: inline-block !important; }
html.installiert .nur-installiert { display: block !important; }
html.installiert .nur-installierbar { display: none !important; }
.app-link { text-align: center; margin-top: 1.2rem; }
.app-schon { font-weight: 600; color: var(--gruen); }
.app-knopf { margin: 1.2rem 0; }
.app-weg { margin: 1.2rem 0; }
.app-weg ol { padding-left: 1.3rem; }
.app-weg li { margin: 0.45rem 0; }
.teilen-symbol { width: 1.15em; height: 1.15em; vertical-align: -0.2em; color: #1a73e8; }
.symbol-knopf { display: inline-block; padding: 0 0.5em; border-radius: 999px;
  background: var(--primaer-hell); color: var(--tinte); font-weight: 700;
  letter-spacing: 0.08em; line-height: 1.6; }
.nicht-safari { font-size: 1rem; }
.nicht-safari p { margin: 0.45rem 0; }
.kopieren-zeile { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.kopieren-zeile input { flex: 1 1 14rem; min-width: 0; }
.warnung { color: #9c4a3d; }

.fehlerseite { text-align: center; padding: 3rem 1rem; }
.fehlerseite .fehlercode {
  font-size: 3.4rem; font-weight: 700; color: var(--linie); line-height: 1;
}
.fehlerseite h1 { margin: 0.6rem 0 0.4rem; }
.fehlerseite p { color: var(--grau); max-width: 30rem; margin: 0 auto 1.2rem; }

/* ------------------------------------------------- Kleine Bildschirme
   Mandanten laden ihre Belege meist vom Handy hoch. Breite Tabellen
   duerfen die Seite dabei nicht seitlich verschieben -- sie bekommen
   stattdessen einen eigenen Bildlauf. */
@media (max-width: 620px) {
  body { -webkit-text-size-adjust: 100%; }
  main { padding: 0 0.7rem; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.15rem; }

  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .karten { flex-direction: column; }
  .karte { width: 100%; }
  .zeile { flex-direction: column; gap: 0.6rem; }
  .zeile > div { width: 100%; }

  /* Fingerfreundliche Ziele statt Mausgroessen */
  button, .knopf, select, input[type="text"], input[type="date"],
  input[type="password"], input[type="file"] {
    min-height: 2.75rem; font-size: 1rem;
  }
  button.klein, .knopf.klein { min-height: 2.25rem; }
  .knopf.gross { width: 100%; padding: 1.1rem 1rem; }

  nav { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  nav a { white-space: nowrap; }
}

/* Ortsmarke: erscheint nur in der lokalen Installation.
   Die produktive bleibt bewusst unbeschriftet -- ein Hinweis, der immer da
   ist, wird nach zwei Tagen nicht mehr gelesen. Auffallen soll die
   Ausnahme. */
.ortsmarke {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.1rem 0.5rem;
    border-radius: 0.7rem;
    background: #b45309;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    vertical-align: middle;
    white-space: nowrap;
}

/* ------------------------------------------------- Unterlagen-Checkliste
   Orientierung fuer den Mandanten, keine Pflichtabfrage. Der offene Punkt
   ist deshalb bewusst neutral gehalten -- kein Rot, kein Warndreieck: Eine
   leere Zeile heisst meist nur, dass es diesen Monat nichts davon gab. */
.checkliste { list-style: none; margin: 0; padding: 0; }
.checkliste li { display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.6rem 0; border-bottom: 1px solid var(--linie); }
.checkliste li:last-child { border-bottom: 0; }
.checkliste .haken { flex: 0 0 1.5rem; font-size: 1.05rem; line-height: 1.4; }
.checkliste .haken.da { color: var(--gruen); }
.checkliste .haken.offen { color: var(--grau); }

/* ------------------------------------------------------ Belege per E-Mail */
.belegpost-adresse { font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  word-break: break-all; }
.belegpost-eintrag { padding: 0.8rem 0; border-bottom: 1px solid var(--linie); }
.belegpost-eintrag:last-child { border-bottom: 0; }
.belegpost-eintrag p { margin: 0 0 0.4rem; }
.belegpost-eintrag form { display: flex; gap: 0.5rem; align-items: center;
  flex-wrap: wrap; margin: 0.4rem 0 0; }

/* ------------------------------------------------------- Abo der Mandanten */
.abo-karten .karte h2 { margin-top: 0; }
.hilfe-liste dt { font-weight: 600; margin-top: 0.9rem; }
.hilfe-liste dd { margin: 0.2rem 0 0 0; color: var(--grau-dunkel, inherit); }
.notfallcodes { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.notfallcodes code { font-size: 1.05rem; letter-spacing: 0.04em; }
.schluessel code { font-size: 1.1rem; letter-spacing: 0.08em; word-break: break-all; background: var(--gelb-hell); padding: 0.4rem 0.7rem; border-radius: var(--radius-klein); display: inline-block; }
.schritte li { margin-bottom: 0.6rem; }
.merken { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; margin: 0.8rem 0; }
.rabatt-hinweis { color: var(--gruen); font-weight: 600; margin: 0.2rem 0; }

/* ---------------------------------------------- Werbe-Startseite (/start) */
.kopf-anmelden { margin-left: auto; color: #fff; font-weight: 600; text-decoration: none; }
.kopf-anmelden:hover { text-decoration: underline; }
.angebot { max-width: 760px; }
.angebot section { margin: 2.2rem 0; }
.held { text-align: center; padding-top: 0.6rem; }
.held h1 { font-size: 1.9rem; margin-bottom: 0.6rem; }
.held .unterzeile { font-size: 1.1rem; color: var(--grau); max-width: 36rem;
  margin: 0 auto 1.3rem; }
.held .bald { font-weight: 700; color: var(--primaer-dunkel); font-size: 1.1rem; }
.schritte-angebot ol { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.schritte-angebot li { background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 0.9rem 1.1rem; }
.schritte-angebot .symbol { font-size: 1.4rem; margin-right: 0.5rem; }
.karte.empfohlen { border-color: var(--primaer); box-shadow: 0 0 0 3px var(--primaer-hell); }
.zahlarten span { display: inline-block; border: 1px solid var(--linie); border-radius: 999px;
  padding: 0.15rem 0.7rem; margin: 0.2rem 0.1rem; font-size: 0.85rem; background: var(--weiss); }
.vertrauen ul { padding-left: 1.2rem; }
.vertrauen li { margin: 0.3rem 0; }
.fragen details { background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius-klein); padding: 0.7rem 1rem; margin: 0.5rem 0; }
.fragen summary { cursor: pointer; font-weight: 600; }
.mitte { text-align: center; }
/* .steuer-wahl sieht aus wie .abo-wahl, heisst aber anders: Das Skript der
   Registrierung sucht die Abo-Wahl ueber ihre Klasse. */
.abo-wahl, .steuer-wahl { border: 1px solid var(--linie); border-radius: var(--radius-klein);
  padding: 0.6rem 0.9rem; margin: 1.1rem 0; }
.abo-wahl legend, .steuer-wahl legend { font-weight: 600; padding: 0 0.3rem; }
.formular .abo-wahl label, .formular .steuer-wahl .abo-option,
.formular .zustimmung label { font-weight: 400; }
.abo-wahl .abo-option, .steuer-wahl .abo-option { display: flex; gap: 0.6rem;
  align-items: flex-start; margin: 0.5rem 0; font-size: 0.95rem; }
.abo-wahl .abo-option input, .steuer-wahl .abo-option input { margin-top: 0.3rem; flex: 0 0 auto; }
.abo-wahl .abo-option .klein-text, .steuer-wahl .abo-option .klein-text { display: block;
  margin-top: 0.15rem; }
.formular .zustimmung label { margin: 0.6rem 0; }
.unsichtbar { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
input.schmal { width: 5.5rem; }
/* Abos: drei Formulare je Zeile (bezahlt bis, kostenlos, Rabatt) -- in
   einer Zeile nebeneinander waere die Tabelle breiter als der Bildschirm. */
.abos-tabelle form.inline { flex-wrap: wrap; max-width: 17rem; }
.abos-tabelle form.inline input[type=text] { width: 100%; }
.abo-karten .karte form { margin-top: 0.6rem; }
.abo-zeile { margin: 0.4rem 0 1rem; }
/* „Mein Abo“ */
.abo-uebersicht h2 { margin: 0.1rem 0 0.4rem; }
.abo-uebersicht .zahl { font-size: 1.6rem; }
.abo-fakten { padding-left: 1.2rem; margin: 0.6rem 0 0; }
.abo-fakten li { margin: 0.25rem 0; }
.abo-kasten { background: var(--primaer-hell); border-radius: var(--radius-klein);
  padding: 0.7rem 1rem; margin: 0 0 1rem; }
.abo-ueberweisung { margin: 1rem 0; }
.abo-ueberweisung summary { cursor: pointer; color: var(--primaer-dunkel); }
/* Ein Knopf, der wie ein Link aussieht -- fuer "Rechnungen und Zahlungsart",
   das nur per POST ins Kundenportal fuehrt. */
button.link-knopf { background: none; color: var(--primaer-dunkel); padding: 0;
  border-radius: 0; font-weight: 400; text-decoration: underline; }
button.link-knopf:hover { background: none; color: var(--tinte); }

/* ------------------------------------------------------- Lohnbuchhaltung */
/* Der Hinweis auf die Stundenzettel: nicht zu uebersehen, aber kein Alarm */
.lohn-hinweis { background: var(--gelb-hell); border: 1px solid #f2e0bb;
  border-left: 4px solid #d99a2b; border-radius: var(--radius-klein);
  padding: 0.85rem 1.1rem; margin: 1rem 0; color: #5c4520; }
.lohn-hinweis p { margin: 0.3rem 0; }
.lohn-stand.da, .lohn-stand.nichts_neues { color: var(--gruen); font-weight: 600; }
.lohn-stand.ueberfaellig { color: #9c4a3d; font-weight: 600; }
.lohn-nichts-neues { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap;
  margin: 0.4rem 0 0; }
.lohn-anzahl { display: flex; gap: 0.8rem; align-items: flex-end; flex-wrap: wrap;
  margin: 0.6rem 0; }
.lohn-anzahl label { display: flex; flex-direction: column; gap: 0.2rem; font-weight: 600;
  margin: 0; }
.lohn-anzahl input[type=number] { width: 6.5rem; }
.lohn-anzahl input[type=text], .lohn-anzahl select { max-width: 16rem; }
.lohn-summe { font-size: 1.1rem; margin: 0.2rem 0 0.8rem; }
.lohn-verwalten { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  margin-top: 0.8rem; }
/* Die Mitarbeiterliste (lohn.html): je Zeile Name, Art und Stand; "ändern"
   klappt Name, Abmelden und Storno auf */
.lohn-mitarbeiter { list-style: none; padding: 0; margin: 0 0 1rem; }
.lohn-mitarbeiter > li { padding: 0.6rem 0; border-bottom: 1px solid var(--linie);
  overflow-wrap: anywhere; }
.lohn-mitarbeiter > li:last-child { border-bottom: 0; }
.lohn-ma-kopf .klein-text { display: block; }
.lohn-ma-aktion > summary { cursor: pointer; color: var(--primaer-dunkel); font-size: 0.9rem;
  margin-top: 0.15rem; }
.lohn-ma-aktion[open] { background: var(--flaeche); border-radius: var(--radius-klein);
  padding: 0.35rem 0.8rem 0.6rem; margin-top: 0.35rem; }
.lohn-zubuchen { margin: 0.8rem 0; }
.lohn-zubuchen > summary { display: inline-block; list-style: none; cursor: pointer; }
.lohn-zubuchen > summary::-webkit-details-marker { display: none; }
.lohn-zubuchen[open] > summary { margin-bottom: 0.6rem; }
.lohn-frueher > summary { cursor: pointer; color: var(--grau); }
/* "So rechnen wir ab" (_lohn_regeln.html): beim Buchen und Zubuchen */
.lohn-regeln { background: var(--primaer-hell); border-radius: var(--radius-klein);
  padding: 0.7rem 1rem; margin: 0.8rem 0; font-size: 0.93rem; }
.lohn-regeln p { margin: 0 0 0.3rem; }
.lohn-regeln ul { margin: 0; padding-left: 1.1rem; }
.lohn-regeln li { margin: 0.25rem 0; }
tr.gedimmt td { color: var(--grau); }
.formulare { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
/* Gruendungsservice (gruendung.html, gruendung_auftrag.html) */
.gruendung-punkte { list-style: none; padding: 0; margin: 0.6rem 0; display: grid; gap: 0.5rem; }
.gruendung-stand {
  font-size: 0.8rem; font-weight: 600; border-radius: 999px; padding: 0.1rem 0.55rem;
  background: var(--primaer-hell); color: var(--primaer-dunkel); margin-left: 0.3rem;
}
.gruendung-stand.beantragt { background: var(--gelb-hell); color: #7c4a03; }
.gruendung-stand.erledigt { background: var(--gruen-hell); color: var(--gruen); }
.gruendung-stand.entfaellt { background: var(--flaeche); color: var(--grau); }
.gruendung-stand-form { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: end;
  padding: 0.6rem 0; border-bottom: 1px solid var(--linie); }
.gruendung-stand-form strong { flex-basis: 100%; }
.gruendung-ausweis { margin-top: 0.9rem; }
.gruendung-storno { margin-top: 0.9rem; }
.gruendung-storno form { display: grid; gap: 0.5rem; max-width: 32rem; }
/* Formular oder Lohnunterlage ansehen (lohn_ansicht.html) */
.ansicht-zurueck { margin: 0.4rem 0 1rem; }
.ansicht-knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.6rem 0; }
.ansicht-seiten { display: grid; gap: 1rem; margin: 1rem 0; }
.ansicht-seiten img {
  display: block; width: 100%; height: auto; background: var(--weiss);
  border: 1px solid var(--linie); border-radius: var(--radius-klein);
  box-shadow: var(--schatten-weich);
}
.formulare li { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start; }
.lohn-liste { list-style: none; padding: 0; margin: 0; }
.lohn-liste li { padding: 0.55rem 0; border-bottom: 1px solid var(--linie);
  overflow-wrap: anywhere; }
.lohn-liste li:last-child { border-bottom: 0; }
.lohn-neu .knopf { margin: 0.2rem 0.2rem 0.2rem 0; }
.lohn-tabelle .klein-text { display: block; }
.lohn-kasten { margin-top: 1.5rem; }

/* ------------------------------------------------- AGB, Datenschutz, Impressum */
.logo a { color: inherit; text-decoration: none; }
.rechtstext { max-width: 780px; line-height: 1.55; }
.rechtstext h2 { font-size: 1.05rem; margin: 1.7rem 0 0.5rem; }
.rechtstext ol, .rechtstext ul { padding-left: 1.4rem; }
.rechtstext li { margin: 0.4rem 0; }
.rechtliches-fuss { text-align: center; color: var(--grau); font-size: 0.8rem;
  padding: 1.5rem 1rem 2rem; }
.rechtliches-fuss a { color: var(--grau); }

/* Zustimmung vor dem Abschluss: ein Haekchen, das man nicht uebersieht */
.zustimmung { background: var(--primaer-hell); border-radius: var(--radius-klein);
  padding: 0.85rem 1rem; margin: 1rem 0; }
.zustimmung label { display: flex; gap: 0.6rem; align-items: flex-start;
  font-weight: 400; margin: 0; }
.zustimmung input[type=checkbox] { margin-top: 0.25rem; flex: 0 0 auto;
  width: 1.1rem; height: 1.1rem; }
.zustimmung-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  margin: 0.6rem 0 0; }
.knopf.zweitrangig { background: var(--weiss); color: var(--primaer-dunkel);
  border: 1px solid var(--primaer); }
.knopf.zweitrangig:hover { background: var(--primaer-hell); }

/* --------------------------- Hauptseite www.business-base-center.com */
.app-karte { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.app-karte .symbol { font-size: 2rem; line-height: 1; }
.app-karte h3, .angebot .karte h3 { margin: 0 0 0.3rem; }
.app-karte ul { margin: 0.5rem 0 0.9rem; padding-left: 1.1rem; }
.kopf-registrieren { color: var(--primaer-dunkel); background: #fff; font-weight: 600;
  text-decoration: none; padding: 0.35rem 0.9rem; border-radius: 999px; white-space: nowrap; }
.kopf-registrieren:hover { background: var(--primaer-hell); }
.held .knoepfe { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.marke { display: inline-block; font-size: 0.75rem; font-weight: 600; border-radius: 999px;
  padding: 0.1rem 0.6rem; margin-left: 0.3rem; vertical-align: middle; }
.marke.verfuegbar { background: var(--gruen-hell); color: var(--gruen); }
.marke.bald { background: var(--primaer-hell); color: var(--primaer-dunkel); }
@media (max-width: 600px) { .app-karte { flex-direction: column; gap: 0.4rem; } }
