/* Wandtyp-Check: Nachtblau, Fels, Eis und ein Akzent in Alpenglühen. Nur Systemschriften. */
:root {
  --nacht: #1c2b39;
  --text: #1f2a33;
  --fels: #5d6b77;
  --linie: #d3dce3;
  --eis: #e6edf2;
  --schnee: #f4f7f9;
  --weiss: #ffffff;
  --akzent: #b5482c;
  --akzent-dunkel: #933a23;
  --fehler: #a2321e;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--schnee);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--nacht); text-underline-offset: 2px; }
a:hover { color: var(--akzent); }

h1, h2 { color: var(--nacht); line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 0 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }

.breite { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.inhalt { padding-top: 2rem; padding-bottom: 3rem; min-height: 60vh; }
.schmal { max-width: 640px; }

/* Kopf und Fuß */
.kopf { background: var(--nacht); color: var(--weiss); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; flex-wrap: wrap; }
.marke { color: var(--weiss); text-decoration: none; display: flex; flex-direction: column; line-height: 1.25; }
.marke:hover { color: var(--weiss); }
.marke-name { font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; }
.marke-zusatz { font-size: .8rem; color: #c9d6df; }
.navigation { display: flex; align-items: center; gap: 1.2rem; font-size: .95rem; }
.navigation a, .navigation .textknopf { color: var(--weiss); }
.navigation form { margin: 0; }

.fuss { border-top: 1px solid var(--linie); color: var(--fels); font-size: .9rem; }
.fuss-innen { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.2rem; padding-bottom: 1.6rem; }
.fuss-links { display: flex; gap: 1.2rem; }
.fuss a { color: var(--fels); }

/* Texte */
.dachzeile { margin: 0 0 .4rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--akzent); }
.einleitung { font-size: 1.12rem; max-width: 46rem; margin: 0 0 1rem; }
.motto { font-size: 1.35rem; color: var(--fels); margin: 0; }
.klein { font-size: .85rem; color: var(--fels); }
.frei { font-weight: 400; color: var(--fels); }
.auftakt { margin-bottom: 1.5rem; }
.merksatz { border-left: 4px solid var(--akzent); padding: .2rem 0 .2rem 1rem; color: var(--nacht); font-weight: 600; }
.hintergrund { max-width: 46rem; margin-top: 2.5rem; color: var(--fels); }
.hintergrund h2 { color: var(--fels); font-size: 1rem; }
.text ul { padding-left: 1.2rem; }
.text li { margin-bottom: .4rem; }

/* Spalten */
.spalten { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 860px) {
  .spalten { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
}
.spalten h2:first-child { margin-top: 0; }

.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 1px 2px rgba(28, 43, 57, .06); }
.karte h2 { margin-top: 0; }
.angebot { margin-top: 2.5rem; max-width: 46rem; border-top: 4px solid var(--akzent); }

.zwei-fragen { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.zwei-fragen li { margin-bottom: .3rem; }
.legende { list-style: none; padding: 0; margin: .8rem 0 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1rem; font-size: .92rem; }
@media (max-width: 520px) { .legende { grid-template-columns: 1fr; } }

/* Matrix */
.matrix { width: 100%; max-width: 460px; height: auto; display: block; margin: .5rem 0; }
.matrix .feld { fill: var(--eis); }
.matrix .feld.aktiv { fill: var(--nacht); }
.matrix .feld-name { fill: var(--nacht); font-weight: 700; font-size: 15px; }
.matrix .feld-name.aktiv { fill: var(--weiss); }
.matrix .achse { fill: var(--fels); font-size: 11px; }
.matrix .punkt { fill: var(--akzent); stroke: var(--weiss); stroke-width: 3; }
.matrix .punkt-ring { fill: none; stroke: var(--akzent); stroke-width: 2; opacity: .45; }

/* Werte-Balken */
.balken { max-width: 460px; margin: 1rem 0; }
.balken-kopf { display: flex; justify-content: space-between; font-size: .95rem; }
.balken-grafik { width: 100%; height: 10px; display: block; margin: .3rem 0 .15rem; }
.balken .spur { fill: var(--eis); }
.balken .wert { fill: var(--nacht); }
.balken-enden { display: flex; justify-content: space-between; font-size: .8rem; color: var(--fels); }

.auswertung h2 { font-size: 1.05rem; margin: 1.4rem 0 .3rem; }
.auswertung h2:first-child { margin-top: 0; }
.auswertung p { margin: 0; }
.abschluss { margin-top: 2rem; }

/* Formulare */
.formular label, .aufgabe label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
input[type="text"], input[type="email"], input:not([type]) {
  width: 100%; font: inherit; padding: .65rem .8rem; border: 1px solid #b9c5ce; border-radius: 6px; background: var(--weiss); color: var(--text);
}
input:focus { outline: 3px solid rgba(181, 72, 44, .35); outline-offset: 1px; border-color: var(--akzent); }

.kaestchen { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; font-size: .92rem; margin: 1.1rem 0 !important; }
.kaestchen input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--nacht); }

.knopf {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  background: var(--akzent); color: var(--weiss); border: 0; border-radius: 6px; padding: .75rem 1.4rem; margin-top: .6rem;
}
.knopf:hover { background: var(--akzent-dunkel); color: var(--weiss); }
.knopf:focus-visible, .textknopf:focus-visible { outline: 3px solid var(--nacht); outline-offset: 2px; }
.knopf.zweitrangig { background: var(--weiss); color: var(--nacht); border: 1px solid var(--nacht); }
.knopf.zweitrangig:hover { background: var(--eis); }
.knopf.warnung { background: var(--fehler); }
.textknopf { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.meldung { background: var(--eis); border-radius: 6px; padding: .8rem 1rem; font-size: .95rem; }
.meldung.fehler { background: #f7e3de; color: var(--fehler); font-weight: 600; }

/* Unsichtbares Feld gegen Bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Fragebogen */
.fragebogen { max-width: 820px; }
.aufgabe { margin-bottom: 1.5rem; }
.frage { border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); margin: 0 0 1rem; padding: 1.1rem 1.2rem 1.2rem; }
.frage.offen { border-color: var(--fehler); box-shadow: 0 0 0 1px var(--fehler); }
.frage legend { float: left; width: 100%; padding: 0; margin-bottom: .8rem; font-weight: 600; color: var(--nacht); }
.frage legend + * { clear: both; }
.nummer { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--fels); margin-bottom: .2rem; }
.skala { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; }
@media (max-width: 640px) { .skala { grid-template-columns: 1fr; } }
.wahl { position: relative; }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 3rem; height: 100%;
  padding: .45rem .5rem; border: 1px solid #b9c5ce; border-radius: 6px; font-size: .85rem; line-height: 1.25; cursor: pointer; background: var(--weiss);
}
.wahl span:hover { border-color: var(--nacht); }
.wahl input:checked + span { background: var(--nacht); border-color: var(--nacht); color: var(--weiss); font-weight: 600; }
.wahl input:focus-visible + span { outline: 3px solid var(--akzent); outline-offset: 2px; }

/* Meine Daten */
.daten { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 1rem 0 1.5rem; }
.daten dt { color: var(--fels); }
.daten dd { margin: 0; font-weight: 600; word-break: break-word; }
@media (max-width: 520px) { .daten { grid-template-columns: 1fr; } .daten dd { margin-bottom: .5rem; } }
.block { margin: 0 0 1rem; }

@media print {
  .kopf, .fuss, .angebot, .abschluss { display: none; }
  body { background: var(--weiss); }
}
