/* ==========================================================================
   Vorlage 05 Berater / Kanzlei · Steuerberatung Hallwanger & Partner (Demo)
   --------------------------------------------------------------------------
   Ruhig wie ein gutes Magazin: Newsreader für Überschriften, ein Wort kursiv,
   Tintenblau auf Papier, Safran als einziger warmer Punkt.
   Umfärben: nur die Werte unter „Farben" ändern.
   Bewegung: im <html>-Tag data-bewegung="starr | mittel | dynamisch".
   ========================================================================== */

/* ---------- Schriften (lokal, SIL Open Font License, Lizenz in fonts/) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var-kursiv.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* ---------- Farben ---------- */
  --papier: #f2f1ec;          /* Seitenhintergrund */
  --papier-tief: #e2e1da;     /* Bildrahmen */
  --blau-hell: #e3e6ec;       /* Abschnitt Karriere */
  --tinte: #1c2745;           /* Text, Knopf, Fuß */
  --tinte-leise: #4b5572;     /* Nebentext, 6,6:1 auf Papier */
  --text-hell: #f2f1ec;       /* Schrift auf Tinte */
  --text-hell-leise: #b9bfd0; /* Nebentext auf Tinte, 8,4:1 */
  --safran: #e3a72f;          /* der warme Akzent: Unterstrich, Knopf beim Überfahren. Nie als Schrift auf Papier */
  --linie: #c6c7c3;
  --fokus: var(--tinte);

  /* ---------- Schrift ---------- */
  --schrift-titel: "Newsreader", Georgia, serif;
  --schrift-text: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  /* ---------- Maße ---------- */
  --breite: 75rem;
  --rand: clamp(1.25rem, 4.5vw, 3.5rem);
  --abschnitt: clamp(4.5rem, 9vw, 8rem);
  --ecke: 6px;                /* Knöpfe, Bilder, Felder: überall gleich */
  --ease: cubic-bezier(.22, .8, .24, 1);

  color-scheme: light;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font-family: var(--schrift-text); font-size: 1.0625rem; line-height: 1.62;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--safran); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
main { overflow-x: clip; }

.behaelter { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.sprunglink { position: absolute; left: var(--rand); top: -4rem; z-index: 20; background: var(--tinte); color: var(--text-hell); padding: .75rem 1rem; border-radius: var(--ecke); }
.sprunglink:focus { top: .75rem; }

.abschnitt-titel {
  font-family: var(--schrift-titel); font-weight: 400;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.015em;
  max-width: 28ch;
}

/* ---------- Knopf ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .8rem 1.5rem;
  background: var(--tinte); color: var(--text-hell);
  border-radius: var(--ecke);
  font-weight: 600; font-size: 1.0625rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
}
.knopf:hover { background: var(--safran); color: var(--tinte); }

/* ---------- Bildrahmen (Platzhalter für Fotos) ---------- */
.bild-platzhalter {
  position: relative; display: flex; align-items: flex-end;
  aspect-ratio: var(--format, 4 / 5);
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgb(28 39 69 / .07) 9px 10px),
    var(--papier-tief);
  border: 1px solid var(--linie); border-radius: var(--ecke);
  overflow: hidden;
}
.bild-platzhalter figcaption {
  margin: .6rem; padding: .35rem .55rem; max-width: calc(100% - 1.2rem);
  background: var(--papier); color: var(--tinte); border-radius: 4px;
  font-size: .75rem; line-height: 1.35;
}

/* ---------- Kopf ---------- */
.kopf { border-bottom: 1px solid var(--linie); }
.kopf-innen { display: flex; align-items: center; gap: 2rem; min-height: 4.75rem; }
.marke { font-family: var(--schrift-titel); font-size: 1.625rem; line-height: 1; text-decoration: none; margin-right: auto; letter-spacing: -.01em; }
.und { font-style: italic; color: var(--tinte-leise); }
.kopf-nav ul { display: flex; gap: 1.6rem; }
.kopf-nav a { text-decoration: none; font-weight: 500; font-size: .96875rem; }
.kopf-nav a:hover { text-decoration: underline; text-decoration-color: var(--safran); text-decoration-thickness: 2px; }
.menue { position: relative; }
.menue summary { list-style: none; cursor: pointer; min-height: 2.75rem; padding: .55rem 1rem; border: 1px solid var(--tinte); border-radius: var(--ecke); font-weight: 600; }
.menue summary::-webkit-details-marker { display: none; }
.menue[open] summary { background: var(--tinte); color: var(--text-hell); }
.menue nav { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 10; min-width: 14rem; background: var(--papier); border: 1px solid var(--tinte); border-radius: var(--ecke); overflow: hidden; }
.menue nav a { display: block; padding: .85rem 1.1rem; text-decoration: none; font-weight: 500; }
.menue nav li + li { border-top: 1px solid var(--linie); }
@media (max-width: 63.99rem) { .kopf-nav { display: none; } }
@media (min-width: 64rem) { .menue { display: none; } }

/* ---------- 1 · Erster Bildschirm ---------- */
.held { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); }
.held h1 {
  font-family: var(--schrift-titel); font-weight: 400;
  font-size: clamp(2.375rem, 1.3rem + 4.2vw, 5rem); line-height: 1.04; letter-spacing: -.022em;
  max-width: 19ch;
}
/* Das eine betonte Wort: kursiv aus derselben Schrift, mit Safran unterstrichen */
.held h1 em {
  font-style: italic;
  text-decoration: underline; text-decoration-color: var(--safran);
  text-decoration-thickness: .075em; text-underline-offset: .12em;
}
.held-text {
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--tinte);
  display: grid; gap: 1.25rem 3rem; align-items: center;
}
.held-text > p:first-child { font-size: 1.1875rem; max-width: 40ch; }
.held-hinweis { font-size: .9375rem; color: var(--tinte-leise); }
@media (min-width: 60rem) {
  .held-text { grid-template-columns: 1.3fr auto 1fr; }
}

/* ---------- 2 · Schwerpunkte, wie ein Inhaltsverzeichnis ---------- */
.themen { padding-bottom: var(--abschnitt); }
.themenliste { margin-top: 2.5rem; border-bottom: 1px solid var(--linie); }
.themenliste li { display: grid; gap: .4rem 3rem; padding-block: 1.4rem; border-top: 1px solid var(--linie); }
.themenliste h3 { font-family: var(--schrift-titel); font-weight: 400; font-size: clamp(1.375rem, 1.15rem + .9vw, 1.75rem); line-height: 1.2; }
.themenliste p { color: var(--tinte-leise); max-width: 46ch; }
@media (min-width: 52rem) {
  .themenliste li { grid-template-columns: 1fr 1fr; align-items: baseline; }
}

/* ---------- 3 · Personen ---------- */
.personen { padding-bottom: var(--abschnitt); }
.personenliste { margin-top: 2.5rem; display: grid; gap: 2.5rem 3rem; }
.person { display: grid; grid-template-columns: 7rem 1fr; gap: 1.25rem; align-items: start; }
.person h3 { font-family: var(--schrift-titel); font-weight: 500; font-size: 1.375rem; line-height: 1.2; }
.person .titel { color: var(--tinte-leise); font-size: .9375rem; margin: .15rem 0 .6rem; }
.person p:last-child { max-width: 40ch; }
.person .bild-platzhalter figcaption { font-size: .6875rem; }
@media (min-width: 48rem) {
  .personenliste { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: 10rem 1fr; gap: 1.5rem; }
}

/* ---------- 4 · Zusammenarbeit: Bild und Text nebeneinander ----------
   Das Bild steht in der linken Spalte der Inhaltsbreite und bleibt beim Scrollen stehen.
   Bis 24.09.2026 lief es links bis an den Fensterrand; einseitig an den Rand greifen ist
   ein Fehler (STATUS.md, Entscheidung 8). */
.ablauf { padding-bottom: var(--abschnitt); }
.ablauf-raster { display: grid; gap: 2.5rem; align-items: start; }
.ablauf-fall { margin-top: 1.25rem; font-size: 1.1875rem; max-width: 42ch; }
.zeitleiste { margin-top: 2rem; border-left: 1px solid var(--tinte); display: grid; gap: 1.75rem; }
.zeitleiste li { padding-left: 1.5rem; }
.monat { font-family: var(--schrift-titel); font-style: italic; font-size: 1.375rem; line-height: 1.1; margin-bottom: .3rem; }
.zeitleiste li p:last-child { max-width: 44ch; color: var(--tinte-leise); }
@media (min-width: 60rem) {
  .ablauf-raster { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 6rem); }
  .ablauf-bild { position: sticky; top: 2rem; }
}

/* ---------- 5 · Karriere ---------- */
.karriere { background: var(--blau-hell); padding-block: var(--abschnitt); }
.karriere-raster { display: grid; gap: 2rem 4rem; }
.karriere-satz { margin-top: 1.25rem; max-width: 40ch; font-size: 1.125rem; }
.stellen { display: grid; gap: 1.25rem; }
.stellen li { border-top: 1px solid var(--tinte); padding-top: 1rem; }
.stellen h3 { font-weight: 700; font-size: 1.125rem; }
.stellen p { margin-top: .3rem; color: var(--tinte-leise); max-width: 44ch; }
.karriere-kontakt { font-weight: 600; }
@media (min-width: 60rem) {
  .karriere-raster { grid-template-columns: 1fr 1fr; }
  .karriere-kontakt { grid-column: 2; }
}

/* ---------- 6 · Kontakt ---------- */
.kontakt { padding-block: var(--abschnitt); }
.kontakt-raster { display: grid; gap: 2.5rem 4rem; }
.kontakt-satz { margin-top: 1.25rem; max-width: 42ch; font-size: 1.125rem; }
.kontakt-telefon { margin-top: 1.75rem; font-family: var(--schrift-titel); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1; }
.kontakt-telefon a { text-decoration: none; white-space: nowrap; }
.kontakt-telefon a:hover { text-decoration: underline; text-decoration-color: var(--safran); }
.kontakt-telefon + p { margin-top: .75rem; }
.kontakt-daten { display: grid; gap: 1rem; align-content: start; }
.kontakt-daten > div { border-top: 1px solid var(--linie); padding-top: .9rem; display: grid; gap: .15rem; }
.kontakt-daten dt { font-size: .875rem; color: var(--tinte-leise); }
@media (min-width: 60rem) { .kontakt-raster { grid-template-columns: 6fr 5fr; } }

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: var(--text-hell); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .9375rem; --fokus: var(--safran); }
.fuss-raster { display: grid; gap: 1.5rem; }
.fuss-raster p + p { margin-top: .75rem; }
.fuss-marke { font-family: var(--schrift-titel); font-size: 1.75rem; line-height: 1; margin-bottom: .75rem; }
.fuss .und { color: var(--text-hell-leise); }
.fuss-links { display: flex; gap: 1.25rem; }
.fuss-demo { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgb(242 241 236 / .2); color: var(--text-hell-leise); font-size: .875rem; }
/* D29: letzte Zeile, ganz unten mittig */
.fuss-zeile { width: 100%; max-width: none; text-align: center; padding: 1.5rem 1rem 1.25rem; font-size: .8125rem; color: var(--text-hell-leise); }
@media (min-width: 48rem) { .fuss-raster { grid-template-columns: 4fr 5fr 3fr; } }

/* ==========================================================================
   Bewegung (Grundstufe dieser Vorlage: starr)
   starr      – nichts bewegt sich, Knöpfe und Links wechseln nur die Farbe
   mittel     – Einblenden beim Scrollen, erster Bildschirm blendet ein
   dynamisch  – dazu: die Monate der Zusammenarbeit rücken beim Scrollen nach
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  :root.js:not([data-bewegung="starr"]) [data-auftritt] { transition: opacity .8s var(--ease), transform .8s var(--ease); }
  :root.js:not([data-bewegung="starr"]) [data-auftritt]:not(.ist-sichtbar) { opacity: 0; transform: translateY(1rem); }
  :root:not([data-bewegung="starr"]) .held h1 { animation: rein 1s var(--ease) both; }
  :root:not([data-bewegung="starr"]) .held-text { animation: rein 1s var(--ease) .2s both; }
  :root:not([data-bewegung="starr"]) .knopf { transition: background-color .2s, color .2s; }
}
@keyframes rein { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :root[data-bewegung="dynamisch"] .zeitleiste li { animation: nachruecken linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    :root[data-bewegung="dynamisch"] .themenliste li { animation: rein linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@keyframes nachruecken { from { opacity: 0; transform: translateX(2rem); } to { opacity: 1; transform: none; } }

/* Drucken: keine Bewegung, alles sichtbar */
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-auftritt] { opacity: 1 !important; transform: none !important; }
}
