/* think.build.train, Webseite Entwurf 06.10.2026
   Grundlage: Corporate Design (Tokens aus think-build-train-design-tokens.json).
   Aufbau: 1 Tokens, 2 Basis, 3 Layout, 4 Komponenten, 5 Seiten, 6 Responsive.
   Rot nur gezielt (Linien, Buttons, Fokuspunkte), nie flächig. */
@import url("../fonts/fonts.css");

/* 1 Tokens */
:root {
  --rot: #7E272F;
  --rot-hover: #6B2128;
  --rot-15: #E7D9D8;
  --rot-08: #F0E7E6;
  --ink: #242222;
  --muted: #5D5A57;
  --weiss: #FAF8F6;
  --natur: #F3EFEC;
  --linie: #D8D0CA;
  --f-head: "Manrope", "Segoe UI", Arial, sans-serif;
  --f-text: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --f-serif: "Source Serif 4", Georgia, serif;
  --r-s: 12px;
  --r-m: 16px;
  --container: 1200px;
  --gap: 24px;
  --pad: 64px;
  color-scheme: light;
}

/* 2 Basis */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; margin: 0 0 16px; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 16px; max-width: 65ch; }
a { color: var(--rot); text-underline-offset: 3px; }
a:hover { color: var(--rot-hover); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }

/* 3 Layout */
.wrap { max-width: calc(var(--container) + 2 * var(--pad)); margin: 0 auto; padding-inline: var(--pad); }
section { padding-block: 88px; }
.band { background: var(--natur); border-block: 1px solid var(--linie); }
.kicker { font-family: var(--f-head); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--rot); border-radius: 2px; }
.lead { font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.muted { color: var(--muted); }
.sec-head { margin-bottom: 40px; max-width: 760px; }

/* 4 Komponenten */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,248,246,.96); border-bottom: 1px solid var(--linie); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { font-family: var(--f-head); font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--linie); color: var(--ink); }
.nav a[aria-current="page"] { border-color: var(--rot); }
.nav .btn { color: #fff; border-bottom: 0; padding: 10px 20px; }
.nav .btn:hover { color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--linie); border-radius: var(--r-s); padding: 10px 14px; font: 600 .9rem var(--f-head); color: var(--ink); cursor: pointer; }

.btn { display: inline-block; font-family: var(--f-head); font-weight: 600; font-size: 1rem; text-decoration: none; background: var(--rot); color: #fff; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--rot); cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--rot-hover); border-color: var(--rot-hover); color: #fff; }
.btn.sec { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.sec:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--linie); border-radius: var(--r-m); padding: 28px; min-width: 0; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card.top { border-top: 2px solid var(--rot); border-top-left-radius: 4px; border-top-right-radius: 4px; }
.small { font-size: 1rem; }

/* Leitlinie: Think Build Train */
.lane { background: #fff; border: 1px solid var(--linie); border-radius: var(--r-m); padding: 36px 36px 36px 28px; }
.lane ol { list-style: none; margin: 0; padding: 0; position: relative; }
.lane ol::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--rot); border-radius: 2px; }
.lane li { position: relative; padding-left: 52px; }
.lane li + li { margin-top: 28px; }
.lane li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--weiss); border: 2px solid var(--rot); }
.lane li:first-child::before { background: var(--rot); }
.lane strong { display: block; font-family: var(--f-head); font-size: 1.25rem; }
.lane span { color: var(--muted); font-size: 1rem; line-height: 1.45; display: block; }

/* Schritte */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); counter-reset: s; border-top: 2px solid var(--rot); border-radius: 2px; }
.steps li { counter-increment: s; padding-top: 20px; position: relative; min-width: 0; }
.steps li::before { content: counter(s); position: absolute; top: -13px; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--rot); color: #fff; font: 700 .8rem/24px var(--f-head); text-align: center; }
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: 1rem; color: var(--muted); }

.list-line { list-style: none; padding: 0; margin: 0; }
.list-line li { padding: 14px 0 14px 28px; border-top: 1px solid var(--linie); position: relative; max-width: 70ch; }
.list-line li:last-child { border-bottom: 1px solid var(--linie); }
.list-line li::before { content: ""; position: absolute; left: 0; top: 26px; width: 14px; height: 2px; background: var(--rot); }

.quote { font-family: var(--f-serif); font-size: 1.5rem; line-height: 1.4; border-left: 2px solid var(--rot); padding-left: 24px; max-width: 40ch; margin: 0; }

/* Formular */
form { display: grid; gap: 20px; max-width: 640px; }
label { font-family: var(--f-head); font-weight: 600; font-size: .95rem; display: grid; gap: 6px; }
input, textarea, select { font: inherit; font-family: var(--f-text); font-weight: 400; background: #fff; border: 1px solid #8a847f; border-radius: var(--r-s); padding: 12px 14px; color: var(--ink); width: 100%; }
textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-family: var(--f-text); font-weight: 400; font-size: 1rem; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--rot); }

/* Entwurfshinweise */
.draft { background: var(--rot-08); border: 1px solid var(--rot-15); border-left: 3px solid var(--rot); border-radius: 4px var(--r-s) var(--r-s) 4px; padding: 16px 20px; font-size: 1rem; margin: 0 0 32px; max-width: 80ch; }
.todo { background: var(--rot-08); padding: 0 4px; border-radius: 4px; }

/* 5 Seiten */
.hero { padding-block: 72px 88px; }
.hero .grid { grid-template-columns: 7fr 5fr; align-items: center; gap: 56px; }
.page-head { padding-block: 64px 24px; }
.page-head h1 { max-width: 20ch; }
.legal h2 { font-size: 1.4rem; margin-top: 40px; }
.legal h3 { font-size: 1.1rem; margin-top: 24px; }
.legal p, .legal li { max-width: 75ch; }
.site-footer { background: var(--ink); color: #E9E4DF; padding-block: 56px 32px; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gap); }
.site-footer img { height: 24px; width: auto; margin-bottom: 16px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #BDB6B0; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid #4a4644; color: #BDB6B0; font-size: .9rem; }

.split-photo { grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
.split-form { grid-template-columns: 3fr 2fr; gap: 56px; align-items: start; }

/* 6 Responsive */
@media (max-width: 1023px) {
  :root { --pad: 32px; --gap: 20px; }
  section { padding-block: 64px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; border-top: 0; }
  .steps li { border-top: 2px solid var(--rot); }
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
  .split-photo, .split-form { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  :root { --pad: 20px; --gap: 16px; }
  body { font-size: 1.0625rem; }
  section { padding-block: 48px; }
  .hero { padding-block: 40px 56px; }
  .g2, .g3, .g4, .steps { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--weiss); border-bottom: 1px solid var(--linie); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--linie); }
  .nav .btn { margin-top: 16px; text-align: center; border: 2px solid var(--rot); }
  .site-footer .cols { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; text-align: center; }
  .card, .lane { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Spamschutz-Feld: unsichtbar, aber nicht display:none (Bots füllen es trotzdem) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Über mich: Porträt und Zeitleiste (Linienarchitektur wie bei .lane) */
.portrait { margin: 0; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-m); border: 1px solid var(--linie); background: var(--natur); }
/* Werdegang: Jahresspalte links, rote Führungslinie mit Knoten, Inhalt rechts */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 191px; top: 14px; bottom: 14px; width: 2px; background: var(--rot); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 0 232px; min-height: 40px; }
.timeline li + li { margin-top: 0; padding-top: 28px; border-top: 0; }
.timeline li + li::after { content: ""; position: absolute; left: 232px; right: 0; top: 0; height: 1px; background: var(--linie); }
.timeline li { padding-bottom: 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 184px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--weiss); border: 2px solid var(--rot); box-sizing: border-box; }
.timeline li + li::before { top: 34px; }
.timeline li:first-child::before { background: var(--rot); }
.timeline .jahr { position: absolute; left: 0; top: 4px; width: 160px; text-align: right; font-family: var(--f-head); font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rot); line-height: 1.3; }
.timeline li + li .jahr { top: 32px; }
.timeline strong { display: block; font-family: var(--f-head); font-size: 1.2rem; line-height: 1.3; margin: 0 0 8px; color: var(--ink); }
.timeline li > span:last-child { color: var(--muted); font-size: 1rem; line-height: 1.6; display: block; max-width: 60ch; }
@media (max-width: 767px) {
  .timeline::before { left: 7px; }
  .timeline li { padding-left: 40px; }
  .timeline li + li::after { left: 40px; }
  .timeline li::before { left: 0; }
  .timeline .jahr { position: static; width: auto; text-align: left; display: block; margin-bottom: 4px; }
  .timeline li + li .jahr { top: auto; }
}
