/* Typenkunde. Alle Werte stammen aus MARKE-ENTSCHEIDUNGEN.md, Richtung C.
   Nichts hier neu erfinden, dort nachschlagen und dann hier aendern. */

@font-face {
  font-family: 'Literata';
  src: url('schrift/literata.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('schrift/literata-kursiv.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('schrift/quicksand.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben. Kontraste in MARKE-ENTSCHEIDUNGEN.md nachgerechnet. */
  --grund: #FBF4EE;
  --flaeche-warm: #F5E6DA;
  --flaeche-kuehl: #EFE3EC;
  --feld: #FFFFFF;
  --feldrahmen: #A08876;    /* 3,35:1 auf Weiss, AA Bedienelemente */
  --text: #3B2C33;          /* 12,09:1 auf Grund, AAA */
  --sekundaer: #6E5A63;     /* 5,83:1 auf Grund, AA */
  --label: #7E5340;         /* 5,38:1 auf Flaeche, AA */
  --platzhalter: #7B6A73;   /* 5,06:1 auf Weiss, AA */
  --aktion: #A45C38;        /* 5,04:1 mit Weiss darauf, AA */
  --dekor: #E8C9B4;         /* Sterne, tragen nie Bedeutung */
  --haarlinie: #E8D8CB;

  /* Form. Ein Radius-System: Karten, davon 70 Prozent fuer Felder. */
  --r-karte: 26px;
  --r-feld: 18px;

  /* Schrift */
  --lesen: 'Literata', Georgia, serif;
  --bedienen: 'Quicksand', 'Trebuchet MS', sans-serif;

  /* Satzbreite: rund 65 Zeichen */
  --zeile: 34em;

  --rand: clamp(20px, 5vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--bedienen);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--bedienen); font-weight: 700; text-wrap: pretty; }
p { margin: 0; }

h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.18; letter-spacing: -0.005em; }
h3 { font-size: clamp(20px, 2vw, 22px); line-height: 1.3; }

a { color: var(--aktion); text-underline-offset: 3px; }
a:hover { color: var(--label); }

/* Serife heisst lesen, Grotesk heisst bedienen. */
.lesen {
  font-family: var(--lesen);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 18px);
  line-height: 1.65;
  max-width: var(--zeile);
}
.lesen.betont { font-weight: 600; }
.lead {
  font-family: var(--lesen);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--sekundaer);
  max-width: 29em;
}
.klein { font-size: 15px; line-height: 1.55; font-weight: 600; color: var(--sekundaer); }
.label {
  font-size: 13px; font-weight: 700; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--label);
}

/* Flaechen */
.karte { background: var(--flaeche-warm); border-radius: var(--r-karte); padding: clamp(24px, 3vw, 38px); }
.karte.kuehl { background: var(--flaeche-kuehl); }
.karte.hell { background: var(--feld); }

/* Formular: jedes Feld traegt ein Label darueber, nie nur einen Platzhalter. */
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld > label { font-size: 14px; font-weight: 700; color: #5C4A52; }
.feld input, .feld select {
  font-family: var(--bedienen); font-size: 16px; font-weight: 600;
  color: var(--text); background: var(--feld);
  border: 1px solid var(--feldrahmen); border-radius: var(--r-feld);
  padding: 13px 15px; width: 100%; min-height: 48px;
}
.feld input::placeholder { color: var(--platzhalter); }
.feld input:focus-visible, .feld select:focus-visible,
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--aktion); outline-offset: 2px;
}

button {
  font-family: var(--bedienen); font-size: 17px; font-weight: 700;
  color: var(--feld); background: var(--aktion);
  border: 0; border-radius: var(--r-feld);
  padding: 17px 24px; min-height: 48px; width: 100%;
  cursor: pointer; white-space: nowrap;
}
button:hover { background: var(--label); }

/* Fehler bekommen keine eigene Farbe: Text, Rahmen, Position. */
.fehler {
  font-size: 15px; font-weight: 600; line-height: 1.5;
  border-left: 3px solid var(--text); padding-left: 14px;
}
[hidden] { display: none !important; }

/* Raster */
.seite { padding-inline: var(--rand); }
.bahn { padding-block: clamp(48px, 6vw, 84px); }
.stapel { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
@media (max-width: 860px) {
  .zwei, .drei { grid-template-columns: minmax(0, 1fr); }
}

.trenner { height: 1px; background: var(--haarlinie); border: 0; margin: 0; }

/* Kopf und Fuss */
.kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 26px; flex-wrap: wrap;
}
.wortmarke { font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: 0.005em; }
.fuss {
  border-top: 1px solid var(--haarlinie); padding-block: 30px;
  display: flex; gap: 16px 28px; flex-wrap: wrap;
  justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--sekundaer);
}

/* Dekor. Sterne tragen nie Bedeutung, deshalb aria-hidden im Markup. */
.sterne { position: absolute; inset: 0; pointer-events: none; fill: var(--dekor); z-index: -1; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Rechtstexte: Impressum und Datenschutz. Lang, deshalb schmal und ruhig. */
.rechtstext { max-width: var(--zeile); }
.rechtstext h2 { font-size: clamp(20px, 2.2vw, 24px); margin-top: 38px; }
.rechtstext h3 { font-size: 17px; margin-top: 24px; }
.rechtstext p, .rechtstext li {
  font-family: var(--lesen); font-weight: 400;
  font-size: 17px; line-height: 1.65; margin-top: 12px;
}
.rechtstext ul { padding-left: 22px; margin: 0; }
.rechtstext address { font-style: normal; }
/* Was Marius noch eintragen muss. Absichtlich nicht zu uebersehen. */
.offen {
  display: inline-block; font-family: var(--bedienen); font-weight: 700; font-size: 14px;
  background: var(--flaeche-warm); border: 2px dashed var(--aktion); border-radius: 6px;
  padding: 2px 8px; color: var(--label);
}
