/* q-drive Portal – services.cozz.com */
:root {
  --bg: #f6f8fb; --fl: #ffffff; --fl2: #eef2f7; --text: #172033; --leise: #5b6578; --linie: #dde3ec;
  --akzent: #0d6bd9; --akzent-2: #0a56ae; --akzent-hell: #e3eefc; --gut: #1f8a4c; --gut-hell: #e2f4ea;
  --warn: #b36b00; --warn-hell: #fdf1dc; --schlecht: #c2372f; --schlecht-hell: #fbe5e3;
  --schatten: 0 1px 2px rgba(20, 30, 50, .06), 0 4px 16px rgba(20, 30, 50, .06);
  --rund: 14px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e131b; --fl: #161d28; --fl2: #1d2633; --text: #e8edf5; --leise: #9aa6b8; --linie: #2a3442;
    --akzent: #4c9bff; --akzent-2: #79b4ff; --akzent-hell: #16263d; --gut: #4cc683; --gut-hell: #12291d;
    --warn: #f0b04a; --warn-hell: #2c2414; --schlecht: #ff7a70; --schlecht-hell: #331a18;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: 1.35rem; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left)); outline: none; }

/* Kopf */
.kopf { background: var(--fl); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.kopf-innen { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem; color: var(--text); letter-spacing: -.01em; }
.marke:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--leise); padding: 7px 12px; border-radius: 9px; font-weight: 550; font-size: .95rem; }
.nav a:hover { background: var(--fl2); color: var(--text); text-decoration: none; }
.nav a.aktiv { background: var(--akzent-hell); color: var(--akzent); }
.konto { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--leise); }

/* Knöpfe und Felder */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px;
  padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; background: var(--akzent); color: #fff; text-decoration: none; }
.knopf:hover { background: var(--akzent-2); text-decoration: none; }
.knopf.zweit { background: var(--fl); color: var(--text); border-color: var(--linie); }
.knopf.zweit:hover { background: var(--fl2); }
/* „Eintrag löschen“: blass-rot (Nutzer 12.11.2026) */
.knopf.loeschen { background: #fbe9e9; color: #a32626; border-color: #f0c4c4; }
.knopf.loeschen:hover { background: #f7dada; }
@media (prefers-color-scheme: dark) { .knopf.loeschen { background: #3a1f1f; color: #f2b8b8; border-color: #5a2c2c; } }
.knopf.klein { padding: 6px 12px; font-size: .9rem; }
.knopf.gefahr { background: var(--fl); color: var(--schlecht); border-color: var(--linie); }
.knopf:disabled { opacity: .55; cursor: default; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--leise); margin-bottom: 4px; }
input, select { width: 100%; font: inherit; color: var(--text); background: var(--fl); border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus { outline: 2px solid var(--akzent); outline-offset: 0; border-color: var(--akzent); }
input[type=checkbox] { width: auto; }
/* mehrzeilige Felder (Adresszusatz): wie die übrigen Felder, volle Breite (12.11.2026: ohne Stil war die Textarea 20 Zeichen
   schmal, lange Adressen brachen um und die letzte Zeile lag unsichtbar unter dem Rand) */
textarea { width: 100%; font: inherit; color: var(--text); background: var(--fl); border: 1px solid var(--linie); border-radius: 10px;
  padding: 10px 12px; resize: vertical; }
textarea:focus { outline: 2px solid var(--akzent); outline-offset: 0; border-color: var(--akzent); }
.feld.voll { grid-column: 1 / -1; }
/* E-Mail und Nummern (FORMATS §9e2): eine Zeile je Wert – Wert, Bezeichnung, × */
.mehr-zeilen { display: grid; gap: 8px; margin-bottom: 8px; }
.mehr-zeile { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.feld.fehler .mehr-zeile input { border-color: var(--linie); }
.mehr-zeile.fehler input.m-wert { border-color: var(--schlecht); }
.mehr-zeile.auch-zeile { grid-template-columns: minmax(0, 1fr) auto; }
.mehr-zeile.auch-zeile.fehler input { border-color: var(--schlecht); }
@media (max-width: 560px) {
  .mehr-zeile { grid-template-columns: minmax(0, 1fr) auto; }
  .mehr-zeile .m-wert { grid-column: 1; grid-row: 1; }
  .mehr-zeile [data-mehr-weg] { grid-column: 2; grid-row: 1; }
  .mehr-zeile .m-bez { grid-column: 1; grid-row: 2; }
}
.feld { min-width: 0; }
.feld .fehlertext { color: var(--schlecht); font-size: .85rem; margin-top: 4px; }
.feld.fehler input, .feld.fehler select, .feld.fehler textarea { border-color: var(--schlecht); }
.hilfe { color: var(--leise); font-size: .85rem; margin-top: 4px; }
.gitter { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gitter.zwei { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* Karten (Flächen) */
.flaeche { background: var(--fl); border: 1px solid var(--linie); border-radius: var(--rund); padding: 22px; box-shadow: var(--schatten); min-width: 0; }
.flaeche + .flaeche { margin-top: 18px; }
.gruppe { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.gruppe legend { font-weight: 700; font-size: 1rem; margin-bottom: 10px; padding: 0; }

/* Start */
.held { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; padding: 24px 0 40px; }
.held p.gross { font-size: 1.15rem; color: var(--leise); max-width: 34em; }
.held .aktionen { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.held-bild { background: linear-gradient(160deg, var(--akzent) 0%, #0a3f80 100%); border-radius: 22px; min-height: 280px; position: relative; overflow: hidden; box-shadow: var(--schatten); }
.held-bild svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.merkmale { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 10px 0 36px; }
.merkmal h3 { display: flex; align-items: center; gap: 10px; }
.merkmal .symbol { width: 34px; height: 34px; border-radius: 10px; background: var(--akzent-hell); color: var(--akzent); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.merkmal p { color: var(--leise); margin: 0; }
.schritte { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.schritt { position: relative; padding-top: 44px; }
.schritt::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--akzent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.schritt p { color: var(--leise); margin: 0; }
.abschnitt { margin: 42px 0 16px; }

/* Suche und Listen */
.layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.karte { height: 560px; border-radius: var(--rund); overflow: hidden; border: 1px solid var(--linie); background: var(--fl2); position: sticky; top: 76px; }
.karte.klein { height: 340px; position: relative; }
.suchzeile { display: flex; gap: 8px; }
.liste { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.liste li a, .liste li .zeile { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--fl); border: 1px solid var(--linie); color: var(--text); }
.liste li a:hover { border-color: var(--akzent); text-decoration: none; }
.liste .titel { font-weight: 650; }
.liste .unter { color: var(--leise); font-size: .88rem; }
.liste .rechts { margin-left: auto; text-align: right; color: var(--leise); font-size: .85rem; white-space: nowrap; flex: none; }
.punkt { width: 30px; height: 30px; border-radius: 50%; background: var(--akzent-hell); color: var(--akzent); display: grid; place-items: center; flex: none; font-size: .95rem; }
.sterne { color: #e0a800; letter-spacing: 1px; }
.marke-status { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 650; }
.marke-quelle { display: inline-block; padding: 0 7px; border-radius: 99px; font-size: .72rem; font-weight: 600; background: var(--warn-hell); color: var(--warn); vertical-align: 1px; margin-left: 4px; }
.klein-text { font-size: .85rem; margin-top: 12px; }
.st-pruefen { background: var(--akzent-hell); color: var(--akzent); }
.st-ok { background: var(--gut-hell); color: var(--gut); }
.st-unsicher { background: var(--warn-hell); color: var(--warn); }
.st-abgelehnt { background: var(--schlecht-hell); color: var(--schlecht); }
.st-zurueckgezogen { background: var(--fl2); color: var(--leise); }
.osm-zeilen { display: grid; gap: 8px; margin-bottom: 10px; }
.osm-zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--fl2); padding: 1px 5px; border-radius: 5px; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle td { padding: 7px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle td:first-child { color: var(--leise); width: 38%; padding-right: 12px; }
.aenderung { font-size: .9rem; color: var(--leise); }
.aenderung b { color: var(--text); font-weight: 600; }

/* Meldungen */
.hinweis { padding: 12px 16px; border-radius: 12px; background: var(--akzent-hell); color: var(--text); margin: 0 0 16px; }
.hinweis.gut { background: var(--gut-hell); }
.hinweis.fehler { background: var(--schlecht-hell); }
.leise { color: var(--leise); }
.zentriert { max-width: 440px; margin: 40px auto; }
.knopfzeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.laden { color: var(--leise); padding: 12px 0; }
.text { max-width: 760px; }
.text h2 { margin-top: 1.4em; }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); background: var(--fl); }
.fuss-innen { max-width: 1120px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right)) 18px max(16px, env(safe-area-inset-left)); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--leise); font-size: .88rem; }
.fuss-links { display: flex; gap: 18px; flex-wrap: wrap; }
.fuss a { color: var(--leise); }
.noscript { text-align: center; padding: 40px; }
.maplibregl-ctrl-attrib { font-size: 11px; }

@media (max-width: 860px) {
  .held { grid-template-columns: 1fr; }
  .held-bild { min-height: 200px; }
  .layout { grid-template-columns: 1fr; }
  .karte { height: 360px; position: relative; }
  .nav { order: 3; flex-basis: 100%; }
}

/* Meldung im Kartenkasten (Kacheln nicht ladbar, kein WebGL …), Nutzer 11.11.2026 */
.karte-meldung { position: absolute; inset: auto 12px 12px 12px; z-index: 5; padding: 10px 12px; border-radius: 10px;
  background: var(--fl); color: var(--text); border: 1px solid var(--linie); font-size: .9rem; box-shadow: 0 2px 10px rgba(0,0,0,.18); }

/* „stimmt“: Foursquare-Angabe unverändert übernehmen (11.11.2026) */
.stimmt { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-size: .85rem; font-weight: 600; color: var(--warn); cursor: pointer; }
.stimmt input { width: auto; margin: 0; }
.stimmt.alle { display: flex; margin-top: 10px; }
/* „Automatisch ausfüllen“ (FORMATS §9i): Abweichung der Website am Feld */
.website-sagt { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--warn-hell); color: var(--text); font-size: .85rem; }
.link-knopf { background: none; border: 0; padding: 0 0 0 6px; color: var(--akzent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Öffnungszeiten als Raster (Nutzer 16.11.2026) */
.oh-zeilen { display: grid; gap: 6px; margin-bottom: 6px; }
.oh-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 4px 0; border-bottom: 1px solid var(--linie); }
.oh-tag { min-width: 6.5em; font-weight: 600; }
.oh-spannen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.oh-spannen[hidden] { display: none; }
.oh-paar { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.oh-paar input { width: 4.6em; text-align: center; }
.oh-haken { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; }

/* Anmeldung und Profil (konto.js, FORMATS §14a) */
.anbieter-knoepfe { display: grid; gap: 10px; margin: 8px 0 4px; }
.anbieter-knoepfe .knopf { width: 100%; }
.knopf.anbieter.apple { background: #000; color: #fff; }
.knopf.anbieter.apple:hover { background: #222; }
.knopf.anbieter.google { background: var(--fl); color: var(--text); border-color: var(--linie); }
.knopf.anbieter.google:hover { background: var(--fl2); }
@media (prefers-color-scheme: dark) { .knopf.anbieter.apple { background: #fff; color: #000; } .knopf.anbieter.apple:hover { background: #e8e8e8; } }
.trenner { display: flex; align-items: center; gap: 12px; color: var(--leise); font-size: .85rem; margin: 18px 0 12px; }
.trenner::before, .trenner::after { content: ""; flex: 1; border-top: 1px solid var(--linie); }
.anbieter-knoepfe:empty + .trenner { display: none; }
input.code-eingabe { font-size: 1.4rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; max-width: 12ch; }
.schritte { padding-left: 1.2em; }
.schritte li { margin-bottom: 16px; }
.qr { background: #fff; display: inline-block; padding: 8px; border-radius: 10px; margin: 10px 0; }
.qr img { display: block; width: 220px; height: 220px; }
code.schluessel { font-size: 1.05rem; letter-spacing: .05em; word-break: break-all; background: var(--fl2); padding: 4px 8px; border-radius: 6px; }
.wh-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 16px; padding: 0; list-style: none; }
.wh-codes code { font-size: 1.05rem; }
label.haken { display: flex; gap: 8px; align-items: center; font-size: .95rem; color: var(--text); margin-top: 12px; font-weight: 500; }
dialog.erneut { border: 1px solid var(--linie); border-radius: var(--rund); background: var(--fl); color: var(--text); padding: 22px;
  width: min(440px, calc(100vw - 32px)); box-shadow: var(--schatten); }
dialog.erneut::backdrop { background: rgba(10, 15, 25, .45); }
section.profil h3 { margin-top: 18px; }
section.profil details { margin-top: 10px; }
section.profil summary { cursor: pointer; color: var(--akzent); font-weight: 600; }
.marke-gut { background: var(--gut-hell); color: var(--gut); border-radius: 6px; padding: 1px 8px; font-size: .85rem; font-weight: 600; }
.liste-schlicht { list-style: none; padding: 0; }
.liste-schlicht li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--linie); }
form.reihe { display: flex; gap: 10px; flex-wrap: wrap; }
form.reihe input { flex: 1; min-width: 180px; }
.gefahr-zone { border-color: var(--schlecht-hell); }

/* Koordinaten eingeben (Nutzer 16.11.2026) */
.koord-zeile { display: flex; gap: 8px; margin-top: 8px; }
.koord-zeile input { flex: 1; min-width: 0; }
