/* OBDRest Fahrten – Homepage. Hell, modern, farbig. Keine externen Abhängigkeiten. */
:root {
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --karte: rgba(255, 255, 255, 0.86);
  --indigo: #4f46e5;
  --fuchsia: #c026d3;
  --pink: #ec4899;
  --sky: #0ea5e9;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --emerald: #10b981;
  --rose: #f43f5e;
  --verlauf: linear-gradient(120deg, #6366f1 0%, #c026d3 55%, #f43f5e 100%);
  --schatten: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(79, 70, 229, .18);
  --radius: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--text); font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1100px 600px at -10% -5%, #e0e7ff 0%, transparent 60%),
    radial-gradient(900px 520px at 110% 0%, #fce7f3 0%, transparent 55%),
    radial-gradient(900px 700px at 50% 120%, #dcfce7 0%, transparent 60%), var(--bg);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
:not(pre) > code { background: #eef2ff; color: #3730a3; padding: .1em .4em; border-radius: 6px; }
.huelle { width: min(1180px, 100% - 32px); margin-inline: auto; }
.verlauf-text { background: var(--verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(255, 255, 255, .72); border-bottom: 1px solid rgba(226, 232, 240, .8); }
.kopf .huelle { display: flex; align-items: center; gap: 20px; height: 68px; }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); flex-shrink: 0; white-space: nowrap; }
.marke:hover { text-decoration: none; }
.marke img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 16px -6px rgba(192, 38, 211, .6); }
.marke small { display: block; font-size: 11px; font-weight: 600; color: var(--fuchsia); letter-spacing: .04em; margin-top: -4px; }
.reiter { display: flex; gap: 4px; padding: 4px; background: #eef2ff; border-radius: 14px; margin-left: 8px; }
.reiter button { white-space: nowrap; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 14px; border-radius: 10px; cursor: pointer; }
.reiter button[aria-selected="true"] { background: #fff; color: var(--indigo); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.navi { display: flex; gap: 18px; margin-left: auto; font-size: 14px; font-weight: 500; white-space: nowrap; }
.navi a { color: #475569; }
.konto { display: flex; gap: 8px; margin-left: 12px; }
.knopf { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.knopf:hover { text-decoration: none; transform: translateY(-1px); }
.knopf.primaer { background: var(--verlauf); color: #fff; box-shadow: 0 10px 22px -10px rgba(192, 38, 211, .7); }
.knopf.sekundaer { background: #fff; color: var(--text); border-color: var(--line); }
.knopf.gross { padding: 13px 22px; font-size: 16px; border-radius: 14px; }
.menue { display: none; margin-left: auto; border: 0; background: #fff; border-radius: 10px; padding: 8px 10px; font-size: 18px; }

/* ---------- Abschnitte ---------- */
section { padding: 84px 0; }
.ueberschrift { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.ueberschrift .etikett { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fuchsia); background: #fdf4ff; border: 1px solid #f5d0fe; padding: 4px 12px; border-radius: 999px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 12px; }
h3 { font-size: 20px; }
.ueberschrift p, .leise { color: var(--muted); font-size: 18px; }
.karte { min-width: 0; background: var(--karte); border: 1px solid rgba(226, 232, 240, .9); border-radius: var(--radius); box-shadow: var(--schatten); backdrop-filter: blur(8px); }

/* ---------- Held ---------- */
.held { padding: 64px 0 40px; overflow: hidden; }
.held .held-raster { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.held h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 850; }
.held p.lead { font-size: 20px; color: #475569; margin: 20px 0 28px; }
.held .aktionen { display: flex; gap: 12px; flex-wrap: wrap; }
.punkte { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: #475569; font-size: 14px; font-weight: 500; }
.punkte span::before { content: "✓"; color: var(--emerald); font-weight: 800; margin-right: 6px; }
.buehne { position: relative; min-height: 520px; }
.buehne .browser { position: absolute; right: 0; top: 30px; width: 92%; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(79, 70, 229, .45); border: 1px solid #e0e7ff; background: #fff; transform: rotate(1.5deg); }
.buehne .browser .leiste { height: 30px; background: #f1f5f9; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.buehne .browser .leiste i { width: 10px; height: 10px; border-radius: 50%; background: #fda4af; }
.buehne .browser .leiste i:nth-child(2) { background: #fcd34d; } .buehne .browser .leiste i:nth-child(3) { background: #86efac; }
.buehne .browser .leiste span { margin-left: 10px; font-size: 11px; color: var(--muted); }
.buehne .telefon { position: absolute; left: 0; bottom: 0; width: 34%; border-radius: 34px; overflow: hidden; border: 8px solid #0f172a; box-shadow: 0 40px 70px -24px rgba(15, 23, 42, .55); transform: rotate(-4deg); background: #000; }
.blase { position: absolute; z-index: 2; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--schatten); font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.blase b { font-size: 18px; }

/* ---------- Kennzahlen ---------- */
.zahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px; margin-top: 36px; }
.zahlen div { text-align: center; }
.zahlen strong { display: block; font-size: 34px; font-weight: 850; }
.zahlen span { color: var(--muted); font-size: 14px; }

/* ---------- Ablauf ---------- */
.ablauf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: schritt; }
.ablauf .karte { padding: 24px; position: relative; }
.ablauf .karte::before { counter-increment: schritt; content: counter(schritt); position: absolute; top: -14px; left: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--verlauf); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.symbol { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; color: #fff; }
.s-indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); } .s-pink { background: linear-gradient(135deg, #f472b6, #db2777); }
.s-amber { background: linear-gradient(135deg, #fbbf24, #ea580c); } .s-emerald { background: linear-gradient(135deg, #34d399, #0d9488); }
.s-sky { background: linear-gradient(135deg, #38bdf8, #2563eb); } .s-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.s-rose { background: linear-gradient(135deg, #fb7185, #e11d48); } .s-lime { background: linear-gradient(135deg, #a3e635, #16a34a); }
.ablauf p, .raster p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }

/* ---------- Daten zentral ---------- */
.zentral { background: linear-gradient(135deg, rgba(99, 102, 241, .08), rgba(236, 72, 153, .08)); border-block: 1px solid #ede9fe; }
.drei { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.drei .karte { padding: 28px; }
.drei ul { margin: 14px 0 0; padding: 0; list-style: none; }
.drei li { padding: 6px 0 6px 26px; position: relative; color: #334155; font-size: 15px; }
.drei li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 10px; border-radius: 3px; background: var(--verlauf); }
.formate { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.formate span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; }
.formate span b { color: var(--fuchsia); }

/* ---------- Fahrtenbuch ---------- */
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.arten { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.art { border-radius: 16px; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.art small { font-weight: 500; opacity: .8; }
.a-privat { background: #e0f2fe; color: #075985; } .a-gesch { background: #ede9fe; color: #5b21b6; }
.a-arbeit { background: #fef3c7; color: #92400e; } .a-offen { background: #f1f5f9; color: #475569; }
.liste { margin: 0; padding: 0; list-style: none; }
.liste li { padding: 8px 0 8px 32px; position: relative; }
.liste li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.bild-rahmen { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(79, 70, 229, .5); border: 1px solid #e0e7ff; }
.hinweis { margin-top: 18px; font-size: 14px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: 10px 14px; }

/* ---------- Funktionen ---------- */
.raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.raster .karte { padding: 22px; }
.raster h3 { font-size: 17px; }

/* ---------- Galerie ---------- */
.galerie-wahl { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.galerie-wahl button { border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.galerie-wahl button[aria-pressed="true"] { background: var(--verlauf); color: #fff; border-color: transparent; }
.galerie { display: grid; gap: 22px; }
.galerie.ios { grid-template-columns: repeat(6, 1fr); }
.galerie.web { grid-template-columns: repeat(3, 1fr); }
.galerie figure { margin: 0; cursor: zoom-in; }
.galerie img { border-radius: 18px; box-shadow: var(--schatten); border: 1px solid #e2e8f0; transition: transform .2s; }
.galerie.ios img { border-radius: 26px; border: 5px solid #0f172a; }
.galerie img:hover { transform: translateY(-4px); }
.galerie figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 500; }
.lupe { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, .78); display: none; place-items: center; padding: 24px; cursor: zoom-out; }
.lupe.offen { display: grid; }
.lupe img { max-height: 92vh; width: auto; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }

/* ---------- Betrieb ---------- */
.betrieb .karte { padding: 28px; }
.betrieb .karte.hervor { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--verlauf) border-box; }
.marke-klein { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #fdf4ff; color: var(--fuchsia); margin-bottom: 10px; }
pre.code { background: #0f172a; color: #e2e8f0; border-radius: 16px; padding: 16px 18px; overflow-x: auto; position: relative; line-height: 1.55; margin: 14px 0 0; }
pre.code .k { color: #94a3b8; }
.kopieren { position: absolute; top: 8px; right: 8px; background: linear-gradient(120deg, #6366f1, #c026d3); color: #fff; border: 0; border-radius: 9px; font: 600 12px ui-sans-serif, system-ui, sans-serif; padding: 5px 11px; cursor: pointer; box-shadow: 0 4px 12px -4px rgba(192, 38, 211, .8); }
.kopieren:hover { filter: brightness(1.1); }
.kopieren.ok { background: #10b981; }
pre.code code { display: block; padding-right: 96px; }

/* ---------- FAQ / Fuß ---------- */
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: #475569; margin: 10px 0 0; }
.cta { text-align: center; padding: 56px 24px; color: #fff; background: var(--verlauf); border-radius: 28px; box-shadow: 0 30px 70px -30px rgba(192, 38, 211, .7); }
.cta h2 { color: #fff; }
.cta p { opacity: .9; font-size: 18px; }
.cta .knopf.sekundaer { background: rgba(255, 255, 255, .95); }
.cta .knopf.hell { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
footer { padding: 40px 0 60px; color: var(--muted); font-size: 14px; }
footer .huelle { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- API-Reiter ---------- */
.api { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; padding: 40px 0 80px; }
.api-navi { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14px; padding: 16px; }
.api-navi h4 { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.api-navi h4:first-child { margin-top: 0; }
.api-navi a { display: flex; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 8px; color: #334155; }
.api-navi a:hover { background: #eef2ff; text-decoration: none; }
.api-inhalt { min-width: 0; }
.api-inhalt :not(pre) > code { overflow-wrap: anywhere; }
.api-inhalt h2 { font-size: 34px; margin-top: 0; }
.api-inhalt h3.gruppe { font-size: 24px; margin: 48px 0 6px; padding-top: 10px; }
.api-inhalt > p, .api-inhalt .text p { color: #334155; }
.methode { display: inline-block; min-width: 58px; text-align: center; font: 700 11px/1 ui-monospace, Menlo, monospace; padding: 5px 6px; border-radius: 7px; color: #fff; letter-spacing: .03em; }
.m-get { background: #0ea5e9; } .m-post { background: #10b981; } .m-put { background: #f59e0b; } .m-patch { background: #8b5cf6; } .m-delete { background: #f43f5e; }
.endpunkt { padding: 24px; margin: 18px 0; }
.endpunkt .pfad { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.endpunkt .pfad code { font-size: 16px; font-weight: 700; background: none; color: var(--text); padding: 0; }
.endpunkt .zusammenfassung { margin: 8px 0 0; font-weight: 600; }
.endpunkt .text { font-size: 15px; }
.endpunkt h5 { margin: 18px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tabelle td { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.status { display: inline-block; font: 700 12px ui-monospace, Menlo, monospace; padding: 2px 7px; border-radius: 6px; }
.st-2 { background: #dcfce7; color: #166534; } .st-4 { background: #fef3c7; color: #92400e; } .st-5 { background: #fee2e2; color: #991b1b; }
.schritt-login { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--verlauf) border-box; padding: 26px; border-radius: var(--radius); margin: 22px 0; }
.schloss { font-size: 12px; color: var(--muted); }
.server-liste { display: grid; gap: 8px; margin: 12px 0; }
.server-liste div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; }

.prompt { display: inline-block; background: linear-gradient(135deg, #eef2ff, #fdf4ff); border: 1px solid #e0e7ff; border-radius: 16px 16px 16px 4px; padding: 8px 12px; margin: 4px 6px 4px 0; font-size: 14px; color: #3730a3; }
.prompt::before { content: "💬 "; }
.dialog-beispiel { border-radius: 18px; background: #0f172a; color: #e2e8f0; padding: 18px 20px; font-size: 14px; line-height: 1.6; }
.dialog-beispiel b { color: #a5b4fc; } .dialog-beispiel .werkzeug { color: #f9a8d4; font-family: ui-monospace, Menlo, monospace; }
[hidden] { display: none !important; }

/* ---------- Responsiv ---------- */
@media (max-width: 1500px) {
  .navi { display: none; }
  .raster { grid-template-columns: repeat(2, 1fr); }
  .galerie.ios { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .held .held-raster, .zwei, .drei, .ablauf { grid-template-columns: minmax(0, 1fr); }
  .buehne { min-height: 420px; }
  .zahlen { grid-template-columns: repeat(2, 1fr); }
  .galerie.web { grid-template-columns: 1fr; }
  .api { grid-template-columns: 1fr; }
  .api-navi { position: static; max-height: none; }
  .konto .knopf.sekundaer { display: none; }
  .reiter button { padding: 6px 10px; }
}
@media (max-width: 560px) {
  .raster, .galerie.ios { grid-template-columns: repeat(2, 1fr); }
  .marke span { display: none; }
  .reiter { margin-left: 0; }
  .reiter button { padding: 5px 9px; font-size: 13px; }
  .konto { margin-left: auto; }
  .konto .knopf { padding: 7px 11px; font-size: 13px; }
  .kopf .huelle { gap: 10px; }
  section { padding: 60px 0; }
}

/* Sprachauswahl (DE/EN/PL) oben rechts */
.sprachwahl { position: relative; align-self: center; }
.sprachwahl > summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 7px 10px; border-radius: 12px;
  border: 1px solid #e2e8f0; background: #fff; font-size: 13px; font-weight: 700; color: #334155; user-select: none; }
.sprachwahl > summary::-webkit-details-marker { display: none; }
.sprachwahl > summary::after { content: "▾"; font-size: 11px; color: #64748b; }
.sprachwahl[open] > summary { border-color: #a5b4fc; box-shadow: 0 0 0 3px #eef2ff; }
.flagge { width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); flex-shrink: 0; }
.sprach-menue { position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px; background: #fff; border-radius: 14px; padding: 6px;
  box-shadow: 0 18px 40px -12px rgba(30, 27, 75, .35); border: 1px solid #e2e8f0; z-index: 60; }
.sprach-menue a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: #1e293b; font-size: 14px; font-weight: 600; }
.sprach-menue a:hover { background: #f5f3ff; text-decoration: none; }
.sprach-menue a[aria-current="true"] { background: #eef2ff; color: #4338ca; }
.hinweis-uebersetzung { background: #eff6ff; border-left: 5px solid #3b82f6; border-radius: 10px; padding: 10px 14px; }
@media (max-width: 560px) { .sprachwahl > summary span { display: none; } }
@media (max-width: 1100px) {
  .kopf .huelle { gap: 12px; }
  .reiter button { padding: 6px 10px; }
  .konto { margin-left: auto; }
}
@media (max-width: 860px) {
  .kopf .huelle { height: auto; flex-wrap: wrap; row-gap: 8px; padding: 10px 0; }
  .reiter { order: 3; width: 100%; margin-left: 0; justify-content: center; }
  .reiter button { flex: 1; }
}

/* Deko-Elemente (schwebende Karten) dürfen nie horizontal scrollen lassen; clip statt hidden hält sticky am Leben */
html, body { overflow-x: clip; }
