/* SailCut v5 · gemeinsames Erscheinungsbild (Seidl): Farben aus dem Logo, große Felder.
   Seidl-Blau #0078AE, Segelblau #1995C2 / #66ACD1 / #A0C9E3, Schrift Schwarz #231F20. */
:root {
  color-scheme: light;
  --seidl: #0078ae;
  --seidl-2: #1995c2;
  --seidl-3: #66acd1;
  --seidl-4: #a0c9e3;
  --ink: #1c2430;
  --ink-2: #4d5a6b;
  --paper: #f3f7fa;
  --flaeche: #ffffff;
  --flaeche-2: #e9f2f8;
  --line: #cbd9e4;
  --accent: var(--seidl);
  --accent-ink: #ffffff;
  --fokus: #1995c2;
  --gruen: #1f8a4c;
  --gelb: #b77900;
  --rot: #c62828;
  --gelb-hell: #fff4dc;
  --radius: 12px;
  --feld-h: 52px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #e7eef5; --ink-2: #a9b8c8; --paper: #0e1722; --flaeche: #16222f; --flaeche-2: #1d2d3d;
    --line: #2d4153; --accent: #3aa6db; --accent-ink: #06121c; --fokus: #66acd1; --gelb-hell: #3a2e12;
    --gruen: #3fb877; --gelb: #e0a526; --rot: #ef5350;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7eef5; --ink-2: #a9b8c8; --paper: #0e1722; --flaeche: #16222f; --flaeche-2: #1d2d3d;
  --line: #2d4153; --accent: #3aa6db; --accent-ink: #06121c; --fokus: #66acd1; --gelb-hell: #3a2e12;
  --gruen: #3fb877; --gelb: #e0a526; --rot: #ef5350;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }

/* Kopfleiste mit Logo; das Logo steht immer auf Weiß (schwarze Schrift im Logo) */
.leiste { background: var(--flaeche); border-bottom: 4px solid var(--seidl); }
.leiste-innen { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 auto; padding: 10px 16px; }
.marke { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.marke img { height: 44px; width: auto; background: #fff; border-radius: 8px; padding: 2px 6px; display: block; }
.marke .app { font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--seidl-2);
  border-left: 2px solid var(--line); padding-left: 12px; line-height: 1.15; }
.marke .app small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-2); font-size: 13px; }
.wer { font-size: 15px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wer a { color: var(--accent); }

h1 { font-size: 24px; margin: 18px 0 12px; }
h2 { font-size: 20px; margin: 30px 0 10px; color: var(--ink); }
h3 { font-size: 17px; margin: 22px 0 8px; }
a { color: var(--accent); }
.hinweis { font-size: 15px; color: var(--ink-2); }

/* Eingabefelder: groß, gut zu treffen (Handy, Handschuh) */
input, select, textarea {
  font: inherit; font-size: 18px; color: var(--ink); background: var(--flaeche);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: var(--feld-h);
}
textarea { min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--fokus) 45%, transparent);
  outline-offset: 1px; border-color: var(--fokus); }
input[type=checkbox], input[type=radio] { min-height: 0; width: 26px; height: 26px; accent-color: var(--seidl); vertical-align: middle; }
input::placeholder { color: var(--ink-2); opacity: .7; }

/* Auswahlfelder: aufgeklappte Liste lesbar (v4: transparenter Hintergrund → helle Schrift auf heller Liste) */
select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 15px) 52%; background-size: 7px 7px; background-repeat: no-repeat; }
select option, select optgroup { background: var(--flaeche); color: var(--ink); font-size: 18px; }

button, a.btn {
  font: inherit; font-weight: 600; font-size: 17px; min-height: var(--feld-h); padding: 12px 20px;
  border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
button.zweit, a.btn.zweit { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, a.btn:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

/* Karten */
.karte { background: var(--flaeche); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }

/* Kennzeichen */
.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  border: 1.5px solid currentColor; white-space: nowrap; vertical-align: middle; }
.badge.km { color: var(--gelb); background: var(--gelb-hell); }
.badge.info { color: var(--seidl-2); }
.ampel-punkt { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.gruen { background: var(--gruen); } .gelb { background: var(--gelb); } .rot { background: var(--rot); }
