/* Vertriebsportal - dieselbe Bildsprache wie der Manager (Farben, Radien, Schrift), fuer Handy und Headset. */
:root {
  --brand: #2563eb; --brand-strong: #1d4ed8; --brand-soft: #eff6ff;
  --green: #16a34a; --green-soft: #dcfce7; --red: #dc2626; --red-soft: #fee2e2; --orange: #b45309; --orange-soft: #fef3c7;
  --bg: #f3f6fb; --surface: #ffffff; --border: #e5eaf1; --text: #172033; --muted: #5b6475;
  --radius: 16px; --radius-sm: 8px; --shadow: 0 10px 30px rgba(15, 23, 42, .07);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); background: var(--bg); color: var(--text);
  /* Schutz der Leadliste: nur die Telefonnummer ist zum Kopieren gedacht */
  -webkit-user-select: none; user-select: none; }
input, textarea, .kopierbar, code { -webkit-user-select: text; user-select: text; }
a { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.kopf { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2; }
.kopf__innen { max-width: 860px; margin: 0 auto; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.marke { font-weight: 700; text-decoration: none; color: var(--text); }
.wer { color: var(--muted); font-size: .95rem; }
.nav { max-width: 860px; margin: 0 auto; padding: 0 16px 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nav a { padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.nav__aus { margin-left: auto; }

.haupt { max-width: 860px; margin: 0 auto; padding: 20px 16px 48px; }
h1 { font-size: 1.5rem; margin: 8px 0 4px; }
h2 { font-size: 1.15rem; margin: 24px 0 10px; }
h3 { font-size: 1rem; margin: 18px 0 6px; }
.unter { color: var(--muted); margin: 0 0 16px; }
.leise { color: var(--muted); font-size: .92rem; }
.leer { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }

.karte { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 16px 0; box-shadow: var(--shadow); }
.karte--schmal { max-width: 460px; margin: 32px auto; }
.karte--anruf { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.formular { display: grid; gap: 14px; }
.formular label { display: grid; gap: 6px; font-weight: 600; }
input, textarea { font: inherit; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); background: #fff; color: var(--text); min-height: 48px; width: 100%; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
legend { font-weight: 600; margin-bottom: 8px; }
.wahl { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); min-height: 48px; cursor: pointer; }
.wahl input { width: auto; min-height: 0; margin: 0; }
.wahl kbd { margin-left: auto; }
.wahl:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.wahl--warnung { color: var(--red); font-weight: 700 !important; }
.bestaetigen { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.bestaetigen input { width: auto; min-height: 0; margin-top: 4px; }

.knopf { font: inherit; font-weight: 600; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: var(--radius-sm); padding: 12px 18px; min-height: 48px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.knopf:hover { background: var(--brand-strong); }
.knopf--leise { background: #fff; color: var(--brand-strong); border-color: #cbd5e1; }
.knopf--leise:hover { background: var(--brand-soft); }
/* #15803d: 5,0:1 gegen Weiss (das hellere #16a34a hatte nur 3,3:1 - Pruefdienst M-25, Abnahme M-33) */
.knopf--gross { font-size: 1.15rem; padding: 14px 28px; background: #15803d; border-color: #15803d; }
.knopf--gross:hover { background: #166534; }
.telefon { font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; }

.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lead { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; text-decoration: none; color: var(--text); min-height: 56px; }
.lead:hover, .lead.gewaehlt { border-color: var(--brand); background: var(--brand-soft); }
.lead__name { font-weight: 600; }
.lead__info { color: var(--muted); font-size: .92rem; }
.marke-klein { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--orange-soft); color: var(--orange); width: fit-content; }
.marke-klein--faellig { background: var(--red-soft); color: var(--red); }

.meldung { border-radius: var(--radius-sm); padding: 12px 14px; margin: 12px 0; }
.meldung--fehler { background: var(--red-soft); color: #991b1b; }
.meldung--ok { background: var(--green-soft); color: #166534; }
.meldung--info { background: var(--brand-soft); color: var(--brand-strong); }

.leitfaden li, .verlauf li { margin: 6px 0; }
.einwand { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin: 8px 0; }
.einwand summary { font-weight: 600; cursor: pointer; min-height: 32px; }
.qr { display: block; margin: 12px auto; background: #fff; padding: 8px; border-radius: var(--radius-sm); max-width: 100%; height: auto; }
.schluessel { word-break: break-all; }
.schritte { padding-left: 20px; }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.kachel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; color: var(--muted); }
.kachel__zahl { font-size: 1.6rem; font-weight: 700; color: var(--text); }

.geraete { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.geraete li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }

kbd { font: .8rem/1 var(--font); border: 1px solid #cbd5e1; border-bottom-width: 2px; border-radius: 4px; padding: 2px 6px; background: #f8fafc; color: var(--muted); }
@media (hover: none) { kbd, .tasten { display: none; } }
@media (max-width: 520px) { h1 { font-size: 1.3rem; } .karte { padding: 16px; } .knopf--gross { width: 100%; } }
