/* dirksteffen.de v2 – Designplan: v2/designplan.md */

/* Archivo (SIL Open Font License, fonts/OFL.txt), lokal eingebunden, Teilmenge Latin */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --weiss: #FFFFFF;
  --graphit: #23272B;
  --grau: #5E646A;
  --nebel: #F2F3F1;
  --tanne: #1E5B4C;
  --linie: #D7DAD6;

  --schrift: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --breite: 1120px;
  --rand: clamp(16px, 4vw, 40px);
  --abstand: clamp(72px, 10vw, 128px);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--graphit);
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--tanne); color: var(--weiss); }

h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 40px; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--tanne); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--tanne); outline-offset: 3px; border-radius: 2px; }

.rahmen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--graphit); color: var(--weiss); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 10; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf-innen { display: flex; align-items: center; gap: 32px; height: 72px; }
.wortmarke { display: inline-flex; align-items: center; gap: 10px; color: var(--graphit); text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.wortmarke .zeichen { width: 23px; height: auto; flex: none; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--graphit); text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--tanne); }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--graphit); color: var(--weiss);
  border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 16px;
  transition: background-color .15s ease-out;
}
.knopf:hover { background: var(--tanne); }
.knopf-klein { min-height: 40px; padding: 0 18px; font-size: 15px; }
.textlink { color: var(--graphit); font-weight: 600; }
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Einstieg */
/* Text links im Seitenraster, Foto rechts bis zum Rand */
.einstieg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; min-height: min(78vh, 760px); }
.einstieg-text {
  align-self: center;
  padding: clamp(40px, 4.5vw, 64px) clamp(32px, 5vw, 72px) clamp(40px, 4.5vw, 64px) max(var(--rand), calc((100vw - var(--breite)) / 2 + var(--rand)));
}
.einstieg-bild { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; background: var(--nebel); }
.einstieg h1 {
  font-size: clamp(36px, 3.9vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 24px;
}
.einleitung { font-size: clamp(18px, 1.6vw, 20px); color: var(--grau); max-width: 58ch; margin-bottom: 28px; }
.einstieg-punkte { list-style: none; margin: 0 0 32px; padding: 0; max-width: 52ch; border-top: 1px solid var(--linie); }
.einstieg-punkte li { position: relative; padding: 9px 0 9px 26px; line-height: 1.45; border-bottom: 1px solid var(--linie); }
.einstieg-punkte li::before { content: ""; position: absolute; left: 0; top: calc(9px + 0.725em - 1px); width: 12px; height: 2px; background: var(--tanne); }

.einstieg { border-bottom: 1px solid var(--linie); }

/* Abschnitte */
.abschnitt { padding: var(--abstand) 0 0; }

/* Über mich */
.ueber { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.portraet { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--nebel); }
.ueber-text h2 { margin-bottom: 24px; }
.ueber-text p { max-width: 62ch; }
.nachweise { margin: 32px 0 0; border-top: 1px solid var(--linie); }
.nachweise div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.nachweise dt { color: var(--grau); }
.nachweise dd { margin: 0; }
.fussnote { margin: 10px 0 0; font-size: 0.85rem; color: var(--grau); }

/* Leistungen */
.leistung { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; padding: 36px 0; border-top: 1px solid var(--linie); }
.leistung:last-child { border-bottom: 1px solid var(--linie); }
.leistung h3, .leistung h2 { font-size: clamp(22px, 2.2vw, 26px); margin: 0; letter-spacing: 0; line-height: 1.3; }
.leistung p, .leistung ul { max-width: 62ch; }
.leistung ul { margin: 0 0 16px; padding-left: 20px; }
.leistung li { margin-bottom: 4px; }
.leistung li::marker { color: var(--tanne); }
.leistung.mit-bild { grid-template-rows: auto 1fr; }
.leistung.mit-bild > div:last-child { grid-column: 2; grid-row: 1 / span 2; }
/* Unterseiten: Bild neben dem Text, so breit wie die linke Spalte */
.leistung.bild-gross { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 48px; }
.leistung.bild-gross > .leistung-bild { max-width: none; aspect-ratio: 4 / 3; }
/* Test (Berufsunfähigkeit): Bild links, Überschrift + Text rechts, senkrecht mittig */
.leistung.bild-links { align-items: center; }
.leistung.bild-links > .leistung-bild { grid-column: 1; grid-row: 1; }
.leistung.bild-links > div { grid-column: 2; grid-row: 1; }
.leistung.bild-links > div > h2 { margin-bottom: 16px; }
.hebel-block { margin-top: 48px; }
/* Bild links, Überschrift und Text rechts daneben */
.leistung.text-rechts { grid-template-rows: auto 1fr; }
.leistung.text-rechts > .leistung-bild { grid-column: 1; grid-row: 1 / span 2; }
.leistung.text-rechts > h2 { grid-column: 2; grid-row: 1; }
.leistung.text-rechts > div:last-child { grid-column: 2; grid-row: 2; }
.leistungen-einleitung { max-width: 62ch; margin: -16px 0 40px; }
.leistungen-einleitung.kernsatz { margin-top: -20px; }
.bildband { margin: var(--abstand) 0 0; background: var(--nebel); }
.bildband.bildband-rahmen { background: none; }
.bildband.bildband-rahmen img { border-radius: 4px; background: var(--nebel); }
.bildband img { display: block; width: 100%; height: clamp(240px, 36vw, 540px); object-fit: cover; object-position: center 55%; }
.leistung li .hinweis { display: block; margin: 4px 0 8px; }
.leistung-bild { width: 100%; max-width: 360px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; background: var(--nebel); }
.hinweis { color: var(--grau); font-size: 15px; }

/* Ablauf */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: schritt; }
.schritte li { counter-increment: schritt; border-top: 2px solid var(--graphit); padding-top: 20px; }
.schritte li::before { content: counter(schritt); display: block; font-size: 15px; font-weight: 600; color: var(--tanne); margin-bottom: 8px; }
.schritte h3 { margin-bottom: 8px; }
.schritte p { color: var(--grau); }
.danach { margin-top: 40px; max-width: 70ch; }

/* Fragen */
.fragen { max-width: 820px; border-top: 1px solid var(--linie); }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-weight: 600; font-size: 18px;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--graphit); border-bottom: 2px solid var(--graphit);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s ease-out;
}
.fragen details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.fragen summary:hover { color: var(--tanne); }
.fragen details p { padding-bottom: 20px; max-width: 65ch; color: var(--grau); }
@media (prefers-reduced-motion: reduce) { .fragen summary::after, .knopf { transition: none; } }

/* Termin */
.termin { background: var(--nebel); margin-top: var(--abstand); padding: clamp(64px, 9vw, 112px) 0; }
.termin h2 { margin-bottom: 16px; }
.termin p { color: var(--grau); }
.termin .aktionen { margin: 32px 0 24px; }
.klein { font-size: 14px; color: var(--grau); }

/* Fuß */
.fuss { padding: 56px 0 32px; font-size: 15px; }
.fuss-innen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr); gap: 32px; padding-bottom: 32px; }
.fuss-innen p { color: var(--grau); max-width: 44ch; }
.wortmarke-fuss { color: var(--graphit) !important; margin-bottom: 8px; }
.fuss-links { list-style: none; margin: 0; padding: 0; }
.fuss-links li { margin-bottom: 8px; }
.fuss-links a { color: var(--graphit); }
.fuss-pflicht { border-top: 1px solid var(--linie); padding-top: 24px; max-width: 90ch; }
.fuss-pflicht a { color: var(--grau); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Rechtsseiten */
.dokument { padding: clamp(48px, 7vw, 88px) 0 var(--abstand); }
.dokument .rahmen { max-width: 820px; }
.dokument h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 32px; }
.dokument h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: 0; }
.dokument ul { padding-left: 20px; }
.dokument li::marker { color: var(--tanne); }
.vermerk { background: var(--nebel); padding: 16px 20px; border-radius: 4px; margin-bottom: 8px; }
.offen { background: #FFF3B0; padding: 0 4px; border-radius: 2px; }

/* Unterseiten */
.einstieg-bild.bild-links { object-position: 35% center; }
.fliesstext > * { max-width: 68ch; }
.fliesstext h2 { margin-bottom: 24px; }
.fliesstext p { margin-bottom: 20px; }
.zwischentitel { font-size: 20px; margin: 32px 0 8px; }
.kaesten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.kasten { background: var(--nebel); border-radius: 4px; padding: clamp(24px, 3vw, 40px); }
.kasten h3 { font-size: 22px; margin-bottom: 12px; }
.kasten ul { margin: 0; padding-left: 20px; }
.kasten li { margin-bottom: 6px; }
.kasten li::marker { color: var(--tanne); }
.mehr { margin-top: 8px; }
.im-aufbau { display: inline-block; background: var(--nebel); color: var(--grau); font-size: 14px; padding: 2px 10px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.beispiel { margin: 0; max-width: 300px; }
.depots { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 32px; align-items: start; }
@media (max-width: 640px) { .depots { grid-template-columns: minmax(0, 1fr); } }
.beispiel figcaption { margin-top: 12px; display: grid; gap: 4px; }
.beispiel figcaption .klein { line-height: 1.5; }
.beispiel figcaption .bestandteile { font-size: 15px; line-height: 1.5; color: var(--graphit); }
.beispiel figcaption .bestandteile strong { font-weight: 600; }
.durchschnitt { margin: 24px 0 0; max-width: 640px; }
.durchschnitt svg { width: 100%; height: auto; display: block; font-family: var(--schrift); }
.legende { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.leistung .legende li { margin: 0; display: flex; align-items: center; gap: 10px; }
.strich { flex: none; width: 28px; height: 0; border-top: 2px solid var(--graphit); }
.strich-sparplan { border-top: 3px solid var(--tanne); }
.strich-einmal { border-top: 2px dashed var(--grau); }
.vergleich { width: 100%; border-collapse: collapse; margin: 20px 0 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.vergleich th, .vergleich td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--linie); text-align: right; }
.vergleich th:first-child { text-align: left; }
.vergleich thead th { font-weight: 400; color: var(--grau); }
.vergleich tbody th { font-weight: 600; }
.durchschnitt figcaption { max-width: 62ch; line-height: 1.5; }
@media (max-width: 640px) { .durchschnitt svg text { font-size: 26px; } }
.beispielbild { width: 100%; max-width: 300px; height: auto; border-radius: 4px; border: 1px solid var(--linie); display: block; }

/* Beispielrechnung */
.kaufpreis { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.kaufpreis button { font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 18px; border: 1px solid var(--graphit); background: var(--weiss); color: var(--graphit); border-radius: 4px; cursor: pointer; }
.kaufpreis button[aria-pressed="true"] { background: var(--graphit); color: var(--weiss); }
.kaufpreis button:hover { border-color: var(--tanne); }
.schaubilder { display: grid; gap: 48px; max-width: 820px; }
.schaubild h3 { margin-bottom: 8px; }
.schaubild > p { color: var(--grau); max-width: 65ch; }
.schaubild-flaeche { margin-top: 16px; }
.schaubild-bild { display: block; width: 100%; max-width: 560px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; margin-top: 16px; background: var(--nebel); }
.annahmen { margin-top: 40px; max-width: 820px; }

/* Tablet und Handy */
@media (max-width: 860px) {
  .nav { display: none; }
  .kopf-innen { justify-content: space-between; height: 64px; }
  .ueber, .leistung { grid-template-columns: 1fr; }
  .einstieg { grid-template-columns: 1fr; min-height: 0; }
  .einstieg-text { padding: 48px var(--rand) 40px; }
  .einstieg-bild { height: auto; aspect-ratio: 4 / 3; }
  .portraet { max-width: 360px; }
  .leistung { gap: 12px; padding: 28px 0; }
  .leistung.mit-bild > div:last-child { grid-column: auto; grid-row: auto; }
  .leistung-bild { max-width: none; margin: 4px 0 8px; }
  .leistung.bild-gross { grid-template-columns: 1fr; }
  .leistung.bild-gross > .leistung-bild { aspect-ratio: 3 / 2; }
  .leistung.text-rechts > .leistung-bild, .leistung.text-rechts > h2, .leistung.text-rechts > div:last-child { grid-column: 1; grid-row: auto; }
  .leistung.text-rechts > h2 { order: -1; }
  .leistung.bild-links > .leistung-bild, .leistung.bild-links > div { grid-column: 1; grid-row: auto; }
  .leistung.bild-links > .leistung-bild { order: 2; }
  .schritte { grid-template-columns: 1fr; gap: 28px; }
  .fuss-innen { grid-template-columns: 1fr; }
  .kaesten { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wortmarke { font-size: 19px; }
  .knopf-klein { padding: 0 14px; font-size: 14px; }
  .aktionen .knopf { width: 100%; }
  .nachweise div { grid-template-columns: 1fr; gap: 2px; }
  .textlink, .fuss-links a { display: inline-block; padding: 10px 0; }
  .fuss-links li { margin-bottom: 0; }
}
