/* Vorlage der Familie für Websites, R3.9.3 in specs/designsprache.md.
   Dachseite ohne Akzent (specs/linusfritz-com.md): die Rolle trägt --text. */
:root {
  --grund: #F5EFE6;
  --karte: #FFFFFF;
  --nebentext: #6B635D;
  --akzent: var(--text);
  --akzent-text: var(--nebentext);
  --myo: #9A5450;
  --grit: #8D6126;
  --hi2you: #915477;
  --bildflaeche: #181F29;
  --text: #1C1C1E;
  --linie: rgba(107, 99, 93, 0.25);
  --auf-akzent: var(--grund);
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #171514;
    --karte: #262220;
    --nebentext: #A39A92;
    --akzent: var(--text);
    --akzent-text: var(--nebentext);
    --myo: #D8847D;
    --grit: #C89351;
    --hi2you: #CD83AE;
    --bildflaeche: #0F141B;
    --text: #F5EFE6;
    --linie: rgba(163, 154, 146, 0.25);
    --auf-akzent: var(--grund);
  }
}

/* Grundlage: Systemschrift, Stufe Text, Zeilenlänge 42 rem (R3.2). */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0 16px 48px;
  background: var(--grund);
  color: var(--text);
  font: 400 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
header, main, footer { max-width: 42rem; margin: 0 auto; }
a { color: var(--akzent-text); }

/* Fünf Schriftstufen, mehr gibt es nicht (R3.2.2). */
h1 { font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; margin: 48px 0 12px; }
h3 { font-size: 1.0625rem; font-weight: 600; margin: 24px 0 8px; }
p, li { margin: 0 0 12px; }
ul { padding-left: 24px; }
.nebentext { color: var(--nebentext); font-size: 0.9375rem; }
.fuss { color: var(--nebentext); font-size: 0.8125rem; }

/* Kopf der Seite. */
header { padding: 48px 0 24px; }
header .nebentext { margin: 0; }
nav { margin: 16px 0 0; font-size: 0.9375rem; }
nav a { display: inline-block; min-height: 44px; line-height: 44px; margin-right: 16px; }

/* Karte: Fläche auf Grund, Ecken 16, innen 16, kein Rand, kein Schatten (R3.4.2). */
.karte { background: var(--karte); border-radius: 16px; padding: 16px; margin: 24px 0; }
.karte > :last-child { margin-bottom: 0; }

/* Hauptknopf: 56 hoch, Ecken 16, Akzent, weiße Schrift halbfett (R3.4.1). */
.hauptknopf {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; padding: 0 16px;
  background: var(--akzent); color: var(--auf-akzent);
  border: 0; border-radius: 16px; cursor: pointer;
  font-family: inherit; font-size: 1.0625rem; font-weight: 600; line-height: 1.2;
  text-decoration: none;
}
.hauptknopf:hover { filter: brightness(1.08); }

/* Laden-Block der App-Seiten: Hauptknopf, darunter eine Zeile Nebentext. */
.store { margin: 24px 0 0; }
.beiwerk { display: block; margin-top: 8px; text-align: center; }

/* Kapsel: 44 hoch, rund, voll im Akzent (R3.4.7). */
.kapsel {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px;
  background: var(--akzent); color: var(--auf-akzent);
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 0.9375rem; font-weight: 600;
  text-decoration: none;
}
.kapsel:hover { filter: brightness(1.08); }

/* Umschalter: Kapsel auf Karte, je Wahl 44 hoch, gewählt im Akzent (R3.4.6). */
.umschalter { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  background: var(--grund); border-radius: 24px; }
.umschalter button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text); cursor: pointer;
  font-family: inherit; font-size: 0.9375rem; }
.umschalter button[aria-pressed="true"], .umschalter button.active {
  background: var(--akzent); color: var(--auf-akzent); font-weight: 600; }

/* Sehne: Spur 2, Punkt 10 im Akzent. Im Web die Trennlinie zwischen Teilen (R2.2). */
.sehne { position: relative; height: 10px; max-width: 42rem; margin: 24px auto; }
.sehne::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px;
  background: var(--linie); border-radius: 1px; }
.sehne::after { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px;
  background: var(--akzent); border-radius: 50%; }

/* Abschnittskopf: Haarlinie, Großbuchstaben in Nebentext, Haarlinie (R3.4.5). */
.abschnittskopf { display: flex; align-items: center; gap: 12px; margin: 48px 0 12px;
  color: var(--nebentext); font-size: 0.8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; }
.abschnittskopf::before, .abschnittskopf::after { content: ""; flex: 1; height: 1px; background: var(--linie); }

/* Tabellen in Karte-Optik. */
table { border-collapse: collapse; width: 100%; margin: 12px 0 24px; font-size: 0.9375rem; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { color: var(--nebentext); font-weight: 600; }
code { background: var(--karte); padding: 1px 4px; border-radius: 4px; font-size: 0.9em; }

/* Fuß: Versprechen, darunter klein der Absender (R1.5, R3.7.4). */
footer { padding-top: 24px; }
footer .versprechen { margin: 24px 0 4px; }
footer .absender { margin: 0; }

/* Bewegung nur bei Zustandswechsel, reduziert heißt 0 (R3.5). */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ============ Anhang Dachseite: Kopf, Zeitachse, Projektkarten. ============ */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--karte); padding: 8px 12px; border-radius: 12px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Leiste oben: Anmelden und Sprache, rechts. */
.topbar { max-width: 42rem; margin: 0 auto; padding-top: 16px;
  display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.langsw button { min-width: 44px; padding: 0 12px; }

/* Kopf: Text links, Foto als Karte rechts. Mobil untereinander. */
.kopf { display: grid; grid-template-columns: minmax(0, 1fr) 12rem; gap: 24px; align-items: center; padding: 32px 0 24px; }
.kopf h1 { margin: 4px 0; }
.kopf .pitch { margin: 12px 0 0; }
.kopf .store { margin-top: 24px; }
.kopf .links { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 72% 40%; border-radius: 16px; display: block; }
@media (max-width: 640px) {
  .kopf { grid-template-columns: minmax(0, 1fr); }
  .foto { aspect-ratio: 4 / 3; order: -1; }
}

section { scroll-margin-top: 24px; }
.greet { color: var(--nebentext); margin: 0 0 12px; }

/* Zeitachse als senkrechte Sehne: Spur 2, Füllung 4 bis --rp, Punkt 10. */
.chrono { position: relative; padding-left: 32px; margin-top: 32px; --rp: 0; }
.rail { position: absolute; left: 0; top: 0; bottom: 0; width: 10px; pointer-events: none; }
.rail-spur { position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--linie); border-radius: 1px; }
.rail-fuellung { position: absolute; left: 3px; top: 0; width: 4px; height: calc(var(--rp) * 100%);
  background: var(--akzent); border-radius: 2px; }
.rail-punkt { position: absolute; left: 0; top: calc(var(--rp) * 100% - 5px); width: 10px; height: 10px;
  background: var(--akzent); border-radius: 50%; }
.entry { position: relative; margin-bottom: 24px; }
.entry:last-child { margin-bottom: 0; }
.pad { position: absolute; left: -32px; top: 22px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--punkt, var(--nebentext)); box-shadow: 0 0 0 3px var(--grund); z-index: 1; }
/* Punktfarbe je Projekt, gesetzt von tools/linusfritz/karten_bauen.mjs (PUNKT). */
.pad[data-punkt="myo"] { --punkt: var(--myo); }
.pad[data-punkt="grit"] { --punkt: var(--grit); }
.pad[data-punkt="hi2you"] { --punkt: var(--hi2you); }

/* Projektkarte. */
.projekt { margin: 0; }
.projekt .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.projekt .date { color: var(--nebentext); font-size: 0.8125rem; }
.stat, .tag { font-size: 0.8125rem; color: var(--nebentext); border: 1px solid var(--linie);
  border-radius: 8px; padding: 2px 8px; white-space: nowrap; }
.projekt h3 { font-size: 1.375rem; margin: 8px 0 0; }
.projekt .topic { color: var(--nebentext); font-size: 0.9375rem; margin: 0 0 16px; }
.projekt .body { margin: 16px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.proof { margin: 12px 0 0; font-size: 0.9375rem; }
.cardlinks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.more { display: inline-block; min-height: 44px; line-height: 44px; font-size: 0.9375rem; }

/* Bildfläche: echte Screenshots auf dunkler Fläche (R3.1.6), ohne Drehen. */
.bildflaeche { display: flex; gap: 12px; justify-content: center; align-items: center;
  background: var(--bildflaeche); border-radius: 12px; padding: 16px; overflow: hidden; }
.bildflaeche img { display: block; border-radius: 12px; min-width: 0; }
.bildflaeche.phone img { width: calc((100% - 24px) / 3); max-width: 9rem; aspect-ratio: 1206 / 2622; object-fit: cover; object-position: top; }
.bildflaeche.win img { width: 100%; height: auto; }

/* Entscheidung, aufklappbar. Zeile 44 hoch auf Grund in der Karte. */
.dec { margin-top: 12px; background: var(--grund); border-radius: 12px; }
.dec > button { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 8px 12px; background: transparent; border: 0; cursor: pointer; text-align: left;
  color: var(--text); font-family: inherit; font-size: 0.9375rem; font-weight: 600; }
.plus { width: 12px; height: 12px; flex: none; position: relative; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 2px; background: currentColor; }
.plus::after { transform: rotate(90deg); transition: transform 200ms ease-out; }
.dec[data-open="true"] .plus::after { transform: rotate(0); }
.decbody { display: none; }
.dec[data-open="true"] .decbody { display: block; }
.decbody p { margin: 0; padding: 0 12px 12px; color: var(--nebentext); font-size: 0.9375rem; }

/* Breite Projektkarten, entschieden von Linus am 09.10.2026. Abweichung von
   R3.2.5, begründet in Designsprache/specs/linusfritz-com.md.
   Ab 1024 px wird der Projektbereich breiter als die Textspalte (42 rem).
   Die Karte teilt sich: links Text, rechts die Bilder. Die Textzeilen bleiben
   damit unter 42 rem (R3.2.5), nur die Bilder bekommen mehr Platz.
   Unter 1024 px ändert sich nichts. */
@media (min-width: 1024px) {
  /* Ganze Seite auf eine Breite, damit alle Blöcke dieselbe linke Kante
     haben (Linus, 09.10.2026). Textzeilen bleiben unter 42 rem. */
  :root { --breit: min(72rem, 100vw - 64px); }
  header, main, footer, .topbar, .sehne { max-width: var(--breit); }
  .kopf { grid-template-columns: minmax(0, 42rem) 16rem; justify-content: space-between; }
  #kontakt .karte { max-width: 42rem; }
  .projekt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    column-gap: 32px; align-items: start; }
  .projekt > * { grid-column: 1; }
  .projekt > .bildflaeche { grid-column: 2; grid-row: 1 / span 6; align-self: start; }
  .bildflaeche.phone img { max-width: 14rem; }
}

/* Kontakt und Fuß. */
#kontakt .karte h2 { margin-top: 0; }
.ctarow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
footer .zeile { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 0; }
footer .zeile a { color: var(--nebentext); }
