/* Entscheidungs-Board (PRD Etappe 3). Nur Weiss, Blau, Schwarz; Grau ist Schwarz mit Transparenz.
   Layout nach dem Referenzbild (Musik-App): grosse Ueberschrift, Kartenreihe, Listen mit feinen Linien und Pfeil,
   ein blauer Hauptknopf plus heller Zweitknopf, Leiste unten. */
:root {
  --weiss: #ffffff;
  --blau: #0a58ca;
  --blau-hell: #0a58ca14;
  --schwarz: #111111;
  --leise: #11111199;
  --linie: #1111111f;
  --abstand: 1.25rem;
  --leiste: 4.25rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--weiss); color: var(--schwarz); }
body {
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 34rem; margin: 0 auto;
  padding: calc(var(--abstand) + env(safe-area-inset-top)) var(--abstand) calc(var(--leiste) + 2rem + env(safe-area-inset-bottom));
}

h1 { font-size: 2rem; line-height: 1.15; margin: 0.75rem 0 0.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 1.5rem 0 0.35rem; }
p { margin: 0.4rem 0; }
.leise { color: var(--leise); font-size: 0.9rem; }
.blau { color: var(--blau); }
.icon { width: 1.15rem; height: 1.15rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5;
        stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2rem; }

/* Kartenreihe "Neu im Radar" */
.karten { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory;
          margin: 0 calc(-1 * var(--abstand)); padding: 0.25rem var(--abstand) 0.5rem; }
.karte { flex: 0 0 72%; max-width: 16rem; scroll-snap-align: start; text-align: left; cursor: pointer;
         border: 1px solid var(--linie); border-radius: 1rem; padding: 1rem; background: var(--weiss);
         display: flex; flex-direction: column; gap: 0.6rem; min-height: 9rem; font: inherit; color: inherit; }
.karte { background: var(--blau); border-color: var(--blau); color: var(--weiss); }
.karte .marke { width: 2.25rem; height: 2.25rem; border-radius: 0.6rem; background: #ffffff26; color: var(--weiss);
                display: grid; place-items: center; }
.karte strong { font-size: 1rem; line-height: 1.3; }
.karte .leise { margin-top: auto; color: #ffffffcc; }
.karte:focus-visible { outline-color: var(--schwarz); }

/* Listen mit feinen Linien und Pfeil */
.liste { list-style: none; margin: 0; padding: 0; }
.zeile { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px solid var(--linie);
         width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: inherit;
         text-align: left; cursor: pointer; }
.zeile .text { flex: 1; min-width: 0; }
.zeile .marke { width: 2.25rem; height: 2.25rem; flex: none; border-radius: 0.6rem; background: var(--blau-hell);
                color: var(--blau); display: grid; place-items: center; }
.zeile .text span { display: block; overflow: hidden; text-overflow: ellipsis; }
.zeile .rechts { color: var(--leise); font-size: 0.9rem; white-space: nowrap; }
.zeile .pfeil { color: var(--leise); }
.zeile.fest { cursor: default; }

/* Knoepfe */
.knopf { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%;
         font: inherit; font-weight: 600; padding: 0.85rem 1rem; border-radius: 0.85rem; cursor: pointer;
         border: 1px solid var(--blau); background: var(--blau); color: var(--weiss); }
.knopf.zweit { background: var(--weiss); color: var(--blau); border-color: var(--linie); }
.knopf:disabled { opacity: 0.45; cursor: default; }
.knoepfe { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.knoepfe .paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.zurueck { background: none; border: 0; padding: 0.25rem 0; font: inherit; color: var(--blau); cursor: pointer;
           display: inline-flex; align-items: center; gap: 0.25rem; }

.hinweis { border-radius: 0.85rem; background: var(--blau-hell); color: var(--blau); padding: 0.75rem 1rem;
           margin-top: 1rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.hinweis.schwarz { background: #1111110a; color: var(--schwarz); }

/* Eingaben */
label { display: block; font-size: 0.9rem; color: var(--leise); margin: 1rem 0 0.35rem; }
input { width: 100%; font: inherit; padding: 0.8rem 0.9rem; border: 1px solid var(--linie); border-radius: 0.85rem;
        background: var(--weiss); color: var(--schwarz); }
input:focus, .knopf:focus-visible, .zeile:focus-visible, .karte:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }
.linkfeld { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; margin-top: 0.75rem; }
.linkfeld .knopf { width: auto; padding: 0.8rem 1rem; }

/* Lesetext (Markdown) */
.text-block { margin-top: 0.25rem; }
.text-block ul, .text-block ol { padding-left: 1.25rem; margin: 0.4rem 0; }
.text-block code { font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; background: #1111110a;
                   padding: 0.05rem 0.3rem; border-radius: 0.3rem; }
details { border-bottom: 1px solid var(--linie); padding: 0.85rem 0; }
details summary { cursor: pointer; display: flex; align-items: center; gap: 0.75rem; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary .pfeil { margin-left: auto; color: var(--leise); transition: transform 0.15s; }
details[open] summary .pfeil { transform: rotate(90deg); }

/* Leiste unten */
nav.leiste { position: fixed; left: 0; right: 0; bottom: 0; background: var(--weiss); border-top: 1px solid var(--linie);
             padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom)); }
nav.leiste .innen { max-width: 34rem; margin: 0 auto; display: flex; justify-content: space-around; }
nav.leiste button { background: none; border: 0; font: inherit; font-size: 0.72rem; color: var(--leise); cursor: pointer;
                    display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.35rem 0.5rem;
                    min-width: 3.5rem; }
nav.leiste button .icon { width: 1.4rem; height: 1.4rem; }
nav.leiste button.aktiv { color: var(--blau); }

.vorschau-band { font-size: 0.72rem; text-align: center; color: var(--blau); margin: -0.4rem -0.5rem 0.3rem;
                 padding: 0.25rem; background: var(--blau-hell); }

/* Anmeldung: blauer Hintergrund, weisse Schrift, weisser Knopf */
body.anmeldung { background: var(--blau); color: var(--weiss); min-height: 100vh; }
body.anmeldung main { padding-top: calc(4rem + env(safe-area-inset-top)); }
body.anmeldung .leise, body.anmeldung label { color: #ffffffcc; }
body.anmeldung input { border-color: transparent; }
body.anmeldung input:focus { outline-color: var(--weiss); }
body.anmeldung .knopf { background: var(--weiss); color: var(--blau); border-color: var(--weiss); }
body.anmeldung .knopf:focus-visible { outline-color: var(--weiss); }
body.anmeldung .blau { color: var(--weiss); font-weight: 600; }
