/* LogiTourTrack-Portal – ohne externe Schriften oder Bibliotheken. */
:root {
    --blau: #1565c0; --blau-dunkel: #0d47a1; --blau-hell: #e3f0fc; --akzent: #ef6c00; --akzent-dunkel: #d45f00;
    --text: #1c2733; --text-leise: #5a6877; --linie: #dbe3ec; --flaeche: #f5f8fb; --weiss: #fff;
    --gut: #1b7f3b; --gut-hell: #e6f4ea; --warn: #9a5b00; --warn-hell: #fff4dc; --fehler: #b3261e; --fehler-hell: #fdecea;
    --radius: 10px; --schatten: 0 1px 3px rgba(16, 42, 77, .08), 0 6px 20px rgba(16, 42, 77, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--weiss); line-height: 1.55; font-size: 17px; }
img { max-width: 100%; }
a { color: var(--blau); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.breite { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.schmal { max-width: 720px; }
.mittel { max-width: 900px; }
.leise { color: var(--text-leise); }
.klein-text { font-size: .9rem; }
.mitte { text-align: center; }
.nowrap { white-space: nowrap; }

/* Kopf */
.kopf { background: var(--blau-dunkel); color: #fff; position: sticky; top: 0; z-index: 20; }
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.marke { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.haupt-nav { display: flex; align-items: center; gap: 22px; }
.haupt-nav a { color: #fff; text-decoration: none; font-size: .98rem; }
.haupt-nav a:hover { text-decoration: underline; }
.haupt-nav a.knopf:hover { text-decoration: none; }
.nav-form { margin: 0; }
.menue-knopf { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 1.3rem; border-radius: 8px; padding: 4px 12px; cursor: pointer; }

/* Knöpfe */
.knopf { display: inline-block; border: 0; border-radius: 8px; padding: 13px 24px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; background: var(--blau); color: #fff; transition: background .15s; }
.knopf:hover { background: var(--blau-dunkel); }
.knopf.akzent { background: var(--akzent); }
.knopf.akzent:hover { background: var(--akzent-dunkel); }
.knopf.hell { background: rgba(255,255,255,.14); color: #fff; }
.knopf.hell:hover { background: rgba(255,255,255,.26); }
.knopf.rand { background: #fff; color: var(--blau); box-shadow: inset 0 0 0 2px var(--blau); }
.knopf.rand:hover { background: var(--blau-hell); }
.knopf.gefahr { background: #fff; color: var(--fehler); box-shadow: inset 0 0 0 2px var(--fehler); }
.knopf.gefahr:hover { background: var(--fehler-hell); }
.knopf.klein { padding: 8px 16px; font-size: .95rem; }
.knopf[disabled] { opacity: .55; cursor: not-allowed; }
.knopf-zeile { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-knopf { background: none; border: 0; padding: 0; font: inherit; color: var(--blau); text-decoration: underline; cursor: pointer; }

/* Startseite */
.held { background: linear-gradient(160deg, var(--blau-dunkel) 0%, var(--blau) 70%, #1e7bd6 100%); color: #fff; padding: 72px 0 80px; }
.held-raster { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.held p.unter { font-size: 1.2rem; opacity: .95; max-width: 34em; }
.held .knopf-zeile { margin-top: 28px; }
.held .punkte { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .98rem; opacity: .95; }
.held .punkte li::before { content: "✓ "; font-weight: 700; }
.held-bild { background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.28); padding: 14px; }
.held-bild svg { display: block; width: 100%; height: auto; border-radius: 8px; }
.held-bild img { display: block; width: 100%; height: auto; border-radius: 8px; }
.bilder { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.bilder figure { margin: 0; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 10px; box-shadow: var(--schatten); }
.bilder img { display: block; width: 100%; height: auto; border-radius: 6px; }
.bilder figcaption { text-align: center; padding: 10px 0 2px; font-weight: 600; color: var(--text-leise); }
.abschnitt { padding: 68px 0; }
.abschnitt.grau { background: var(--flaeche); }
.abschnitt-kopf { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.abschnitt-kopf p { color: var(--text-leise); font-size: 1.08rem; }
.raster-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.raster-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; box-shadow: var(--schatten); }
.karte .zeichen { width: 46px; height: 46px; border-radius: 12px; background: var(--blau-hell); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 14px; }
.karte ul { margin: 0; padding-left: 1.15em; color: var(--text-leise); }
.karte li { margin-bottom: .25em; }
.schritte { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.schritte > div { position: relative; padding: 22px 22px 22px 70px; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); }
.schritte > div::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--akzent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.haken { list-style: none; padding: 0; margin: 0; }
.haken li { padding-left: 1.7em; position: relative; margin-bottom: .5em; }
.haken li::before { content: "✓"; position: absolute; left: 0; color: var(--gut); font-weight: 700; }

/* Preise */
.preis-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.preis-zahl { font-size: 2.6rem; font-weight: 700; color: var(--blau-dunkel); line-height: 1.1; }
.preis-zahl small { font-size: 1rem; font-weight: 400; color: var(--text-leise); }
.rechner { background: #fff; border: 2px solid var(--blau); border-radius: 14px; padding: 26px; box-shadow: var(--schatten); }
.rechner label { font-weight: 600; display: block; margin-bottom: 6px; }
.rechner .wahl { display: flex; gap: 12px; align-items: center; }
.rechner input[type=range] { flex: 1; accent-color: var(--blau); }
.rechner input[type=number] { width: 96px; }
.summe { width: 100%; border-collapse: collapse; margin: 16px 0 6px; }
.summe td { padding: 7px 0; border-bottom: 1px solid var(--linie); }
.summe td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summe tr.gesamt td { font-weight: 700; font-size: 1.15rem; border-bottom: 0; padding-top: 12px; }
.summe tr.netto td { font-weight: 600; }

/* Fragen */
details.frage { border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; margin-bottom: 10px; }
details.frage summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; position: relative; padding-right: 48px; }
details.frage summary::-webkit-details-marker { display: none; }
details.frage summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.5rem; color: var(--blau); }
details.frage[open] summary::after { content: "–"; }
details.frage > div { padding: 0 20px 16px; color: var(--text-leise); }
.aufruf { background: var(--blau-dunkel); color: #fff; text-align: center; padding: 60px 0; }
.aufruf .knopf-zeile { justify-content: center; margin-top: 22px; }

/* Formulare und Kontoseiten */
.seite { padding: 44px 0 70px; background: var(--flaeche); min-height: 62vh; }
.seite h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.kasten { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 26px; box-shadow: var(--schatten); margin-bottom: 22px; }
.kasten h2 { font-size: 1.25rem; }
.feld { margin-bottom: 16px; }
.feld label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .96rem; }
.feld .hilfe { font-size: .87rem; color: var(--text-leise); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #b9c5d2; border-radius: 8px; background: #fff; color: var(--text); }
input:focus, select:focus { outline: 2px solid var(--blau); outline-offset: 1px; border-color: var(--blau); }
.feld-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feld-zeile.plz { grid-template-columns: 140px 1fr; }
.haekchen { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.haekchen input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--blau); }
.haekchen label { font-weight: 400; }
.subdomain { display: flex; align-items: stretch; }
.subdomain input { border-radius: 8px 0 0 8px; min-width: 0; }
.subdomain span { padding: 10px 12px; background: var(--flaeche); border: 1px solid #b9c5d2; border-left: 0; border-radius: 0 8px 8px 0; color: var(--text-leise); white-space: nowrap; }
.pruef { font-size: .9rem; margin-top: 5px; min-height: 1.3em; }
.pruef.gut { color: var(--gut); }
.pruef.schlecht { color: var(--fehler); }
.field-validation-error, .fehler-text { color: var(--fehler); font-size: .9rem; display: block; margin-top: 4px; }
.input-validation-error { border-color: var(--fehler) !important; }
.validation-summary-errors ul { margin: 0; padding-left: 1.2em; }
.validation-summary-errors { background: var(--fehler-hell); color: var(--fehler); border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; }
.validation-summary-valid { display: none; }
.hinweis { border-radius: 8px; padding: 14px 18px; margin-bottom: 18px; border-left: 5px solid var(--blau); background: var(--blau-hell); }
.hinweis.gut { border-color: var(--gut); background: var(--gut-hell); }
.hinweis.warn { border-color: var(--akzent); background: var(--warn-hell); }
.hinweis.fehler { border-color: var(--fehler); background: var(--fehler-hell); }
.hinweis p:last-child { margin-bottom: 0; }
.entwurf { background: repeating-linear-gradient(45deg, #fff4dc, #fff4dc 12px, #ffeec4 12px, #ffeec4 24px); border: 1px solid #e6c36a; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-size: .95rem; }
.rechtstext { max-height: 420px; overflow-y: auto; border: 1px solid var(--linie); border-radius: 8px; padding: 18px 20px; background: #fff; margin-bottom: 18px; font-size: .95rem; }
.rechtstext h2, .text h2 { font-size: 1.1rem; margin-top: 1.4em; }
.rechtstext h2:first-child { margin-top: 0; }
.text h1 { margin-bottom: .8em; }
.schritt-anzeige { display: flex; gap: 8px; margin-bottom: 24px; font-size: .92rem; flex-wrap: wrap; }
.schritt-anzeige span { padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--linie); color: var(--text-leise); }
.schritt-anzeige span.aktiv { background: var(--blau); border-color: var(--blau); color: #fff; font-weight: 600; }
.schritt-anzeige span.fertig { background: var(--gut-hell); border-color: var(--gut-hell); color: var(--gut); }
.kauf-raster { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.kauf-raster .rechner { position: sticky; top: 84px; }
.daten { width: 100%; border-collapse: collapse; }
.daten th, .daten td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.daten th { font-weight: 600; width: 40%; color: var(--text-leise); font-size: .95rem; }
.daten.liste th { width: auto; }
.daten td.zahl, .daten th.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.marke-status { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .85rem; font-weight: 600; background: var(--blau-hell); color: var(--blau-dunkel); }
.marke-status.gut { background: var(--gut-hell); color: var(--gut); }
.marke-status.warn { background: var(--warn-hell); color: var(--warn); }
.marke-status.fehler { background: var(--fehler-hell); color: var(--fehler); }
.konto-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .feld { margin: 0; }
.inline-form input[type=number] { width: 120px; }
.lade { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--blau-hell); border-top-color: var(--blau); border-radius: 50%; animation: dreh 1s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes dreh { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

/* Fuß */
.fuss { background: #14202d; color: #c7d1dc; padding: 30px 0 22px; font-size: .93rem; }
.fuss-zeile { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.fuss a { color: #fff; margin-left: 18px; }
.fuss nav a:first-child { margin-left: 0; }
.fuss-klein { margin-top: 16px; font-size: .82rem; color: #8d9aa8; }

@media (max-width: 900px) {
    .held-raster, .preis-raster, .kauf-raster, .konto-raster, .raster-2 { grid-template-columns: 1fr; }
    .raster-3, .schritte { grid-template-columns: 1fr 1fr; }
    .kauf-raster .rechner { position: static; }
    .held { padding: 48px 0 56px; }
}
@media (max-width: 720px) {
    .menue-knopf { display: block; }
    .haupt-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--blau-dunkel); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 4px; }
    .haupt-nav.offen { display: flex; }
    .haupt-nav a { padding: 10px 0; }
    .raster-3, .schritte, .feld-zeile, .feld-zeile.plz { grid-template-columns: 1fr; }
    .abschnitt { padding: 48px 0; }
    .kasten { padding: 20px; }
    body { font-size: 16px; }
}

/* Abstände in Kästen */
.daten + .knopf-zeile, .daten + p, .daten + form { margin-top: 18px; }
.kasten h3 { font-size: 1.02rem; margin-top: 1.5em; }
.kasten > :last-child { margin-bottom: 0; }
.knopf-zeile + p, .knopf-zeile + .leise { margin-top: 14px; }

/* Unterstützte Geräte */
.einleitung { font-size: 1.1rem; color: var(--text-leise); margin-bottom: 26px; }
.geraete-wege { margin-bottom: 22px; }
.geraete-wege .karte p { color: var(--text-leise); margin: 0; }
.tabelle-rahmen { overflow-x: auto; }
.geraete { min-width: 640px; font-size: .95rem; }
.geraete thead th { white-space: nowrap; }
.geraete .marke-status { white-space: nowrap; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.text .kasten h3 { margin-bottom: .35em; }
.text .kasten ul { padding-left: 1.2em; }
.text .kasten li { margin-bottom: .45em; }
.geraete-link { margin-top: 1em; }
.kasten > h2:first-child { margin-top: 0; }
.tabelle-rahmen + p { margin-top: 18px; }
@media (max-width: 720px) {
    .geraete { min-width: 0; }
    .geraete.stapel thead { display: none; }
    .geraete.stapel tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--linie); }
    .geraete.stapel tr:last-child { border-bottom: 0; padding-bottom: 0; }
    .geraete.stapel td { display: block; border: 0; padding: 2px 0; }
    .geraete.stapel td:nth-child(2) { color: var(--text-leise); }
    .geraete.stapel td:nth-child(3) { padding: 6px 0; }
}
