/* Dr. Andreas Klein Coaching: Richtung "Ulmer Schule".
   Weißer Grund, 12-Spalten-Raster, Haarlinien, eckige Formen, ein Rot nur für Handlung. */

@font-face {
  font-family: "Carlito";
  src: url("../fonts/carlito-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("../fonts/carlito-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben (aus Logo und Schriftzug gemessen) */
  --ink: #13294d;
  --grey: #5a6779;
  --red: #a82238;
  --paper: #ffffff;
  --wash: #f2f4f7;
  --line: #d3d9e2;
  --night: #13294d;
  --night-text: #eef1f6;
  --night-soft: #b5c0d0;
  --night-line: #4a5d7d;
  --error-on-night: #ffb3bd;
  --slate: #68768a; /* Grau des Gehirns im Logo, nur für Flächen und Zeichen, nicht für Text */

  /* Schrift */
  --font: "Carlito", Calibri, "Segoe UI", Arial, sans-serif;
  --fs-body: 1.1875rem;
  --fs-small: 1rem;
  --fs-h1: clamp(2.6rem, 6.4vw, 5.9rem);
  --fs-h2: clamp(1.55rem, 2.3vw, 2.1rem);
  --fs-dz: clamp(1.9rem, 3.3vw, 3rem);

  /* Raster und Abstände (für das Regler-Panel in Phase 6 verschiebbar) */
  --page-max: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --col-gap: clamp(16px, 2vw, 32px);
  --section-pad: clamp(3.5rem, 8vw, 7.5rem);
  --hero-pad-top: clamp(2.5rem, 6vw, 5rem);
  --hero-h1-width: 8;
  --photo-ratio: 4 / 5;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--grey) var(--paper);
  accent-color: var(--red);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  caret-color: var(--red);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--paper); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.night :focus-visible { outline-color: var(--paper); }

h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.028em; line-height: 0.98; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.012em; line-height: 1.12; }
p { margin: 0; }
p + p { margin-top: 1em; }
.measure { max-width: 62ch; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Dreierzeilen: erstes Wort schwarz, mittleres grau, letztes rot */
.dz span:nth-child(1) { color: var(--ink); }
.dz span:nth-child(2) { color: var(--grey); }
.dz span:nth-child(3) { color: var(--red); }

/* Raster */
.wrap { width: 100%; max-width: calc(var(--page-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; min-width: 0; }
.brand img { width: 2.6rem; height: 2.6rem; flex: none; }
.brand svg { width: clamp(11rem, 22vw, 15rem); height: auto; flex: none; }
.nav { display: none; gap: clamp(1rem, 2vw, 2rem); font-size: var(--fs-small); font-weight: 700; }
.nav a { text-decoration: none; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }
@media (min-width: 62rem) { .nav { display: flex; } }

/* Tasten und Links mit Handlung */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1.1;
  padding: 0.95rem 1.5rem; border: 2px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.btn-small { padding: 0.6rem 1rem; font-size: 0.9375rem; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: #fff; color: var(--red); border-color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.arrow-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: 0.5rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.1rem; }
.arrow-link:hover { color: var(--red); border-bottom-color: var(--red); text-decoration: none; }
.arrow-link span { transition: transform 0.2s ease; }
.arrow-link:hover span { transform: translateX(0.25rem); }

/* Erster Bildschirm */
.hero { padding-top: var(--hero-pad-top); }
.hero .grid { row-gap: 0; }
.hero h1 { grid-column: 1 / -1; grid-row: 1; }
.hero .lead { grid-column: 1 / -1; grid-row: 2; margin-top: clamp(1.5rem, 3vw, 2.5rem); color: var(--grey); font-size: 1.3125rem; max-width: 34ch; }
.hero .lead p + p { margin-top: 0.8em; }
.hero .actions { grid-column: 1 / -1; grid-row: 3; margin-top: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero .actions .note { color: var(--grey); font-size: var(--fs-small); width: 100%; }
.portrait { position: relative; margin: 2.5rem 0 0; grid-column: 1 / -1; grid-row: 4; }
.portrait img { width: 100%; aspect-ratio: var(--photo-ratio); object-fit: cover; object-position: 38% center; background: var(--wash); }
.portrait::after { content: ""; position: absolute; right: 0; bottom: -1.6rem; width: 3.2rem; height: 3.2rem; background: var(--red); }
.portrait + * { margin-top: 0; }
.hero-links { grid-column: 1 / -1; grid-row: 5; list-style: none; margin: clamp(3.5rem, 6vw, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); }
.hero-links li { border-top: 1px solid var(--ink); }
.hero-links a { display: block; padding: 0.9rem 0 1.4rem; text-decoration: none; }
.hero-links b { display: block; font-size: clamp(1.25rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.01em; }
.hero-links span { display: block; margin-top: 0.4rem; color: var(--grey); font-size: var(--fs-small); }
.hero-links li:nth-child(1) b { color: var(--ink); }
.hero-links li:nth-child(2) b { color: var(--grey); }
.hero-links li:nth-child(3) b { color: var(--red); }
.hero-links a:hover span { color: var(--ink); text-decoration: underline; }
@media (max-width: 40rem) {
  .hero-links { grid-template-columns: minmax(0, 1fr); }
  .hero-links a { padding-bottom: 1rem; }
}
@media (min-width: 62rem) {
  .hero h1 { grid-column: 1 / span var(--hero-h1-width); }
  .hero .lead { grid-column: 1 / span 5; grid-row: 2; }
  .hero .actions { grid-column: 1 / span 6; }
  .portrait { grid-column: 9 / -1; grid-row: 1 / span 4; margin: 0.4rem 0 0; align-self: start; }
  .hero-links { margin-top: clamp(4rem, 7vw, 6rem); }
}

/* Abschnitte */
.sec { padding-block: var(--section-pad); }
.sec.wash { background: var(--wash); }
.sec-head { grid-column: 1 / -1; margin-bottom: 1.75rem; }
.sec-body { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 62rem) {
  .sec-head { grid-column: 1 / span 4; margin-bottom: 0; padding-right: 1rem; }
  .sec-body { grid-column: 6 / -1; }
  .sec-body.wide { grid-column: 5 / -1; }
}
.sec-top { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.sec-body p { max-width: 60ch; }
.sec-body p + p { margin-top: 1.1em; }
.sec-body h3 { font-size: 1.5rem; margin-top: 2.75rem; margin-bottom: 0.9rem; letter-spacing: -0.005em; }
.sec-cta { margin-top: 2rem; }

/* Anlässe als Zeilen mit Haarlinie */
.rows { list-style: none; margin: 1.5rem 0 1.75rem; padding: 0; border-bottom: 1px solid var(--line); }
.rows li { border-top: 1px solid var(--line); padding: 0.85rem 0; max-width: 60ch; }

/* Zukunftswerkstatt: drei Phasen */
.phases { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem var(--col-gap); grid-template-columns: minmax(0, 1fr); }
.phases li { border-top: 1px solid var(--ink); padding-top: 0.7rem; }
.phases .n { display: block; font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.phases li:nth-child(1) .n { color: var(--ink); }
.phases li:nth-child(2) .n { color: var(--grey); }
.phases li:nth-child(3) .n { color: var(--red); }
.phases p { font-size: 1.0625rem; max-width: none; }
@media (min-width: 48rem) { .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Ablauf: eine Strecke, die sich beim Scrollen füllt */
.steps { --p: 1; list-style: none; margin: 0; padding: 0; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 1.2rem; top: 1.4rem; bottom: 1.4rem; width: 2px; background: linear-gradient(to bottom, var(--red) calc(var(--p) * 100%), var(--line) calc(var(--p) * 100%)); }
.steps li { position: relative; padding: 0 0 2.1rem 4rem; max-width: 56ch; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); font-weight: 700; font-size: 1.1rem; line-height: 1; }
.steps li.is-done::before { background: var(--ink); color: var(--paper); }
.where { margin-top: 2.75rem; font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; max-width: 26ch; }
.where-note { margin-top: 1rem; color: var(--grey); }

/* Arbeitsansatz: vier Dreierzeilen */
.approach { grid-column: 1 / -1; display: grid; gap: 3rem var(--col-gap); grid-template-columns: minmax(0, 1fr); margin-top: 1rem; }
.approach > div { border-top: 1px solid var(--ink); padding-top: 1rem; }
.approach .dz { font-size: var(--fs-dz); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; margin-bottom: 1rem; }
.approach p { max-width: 46ch; }
@media (min-width: 62rem) { .approach { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem var(--col-gap); margin-top: 3.5rem; } }

/* Über mich */
.about-photo { position: relative; grid-column: 1 / -1; margin: 0 0 2.5rem; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% center; background: var(--wash); }
.about-photo::after { content: ""; position: absolute; left: 0; bottom: -1.2rem; width: 2.6rem; height: 2.6rem; background: var(--red); }
.about-text { grid-column: 1 / -1; min-width: 0; }
.about-text .name { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 1.25rem; }
.about-text p { max-width: 58ch; }
.links { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
@media (min-width: 62rem) {
  .about-photo { grid-column: 1 / span 5; margin: 0; align-self: start; }
  .about-text { grid-column: 7 / -1; }
}

/* Fragen */
.faq { border-bottom: 1px solid var(--ink); }
.faq details { border-top: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 3rem 1.05rem 0; font-weight: 700; font-size: 1.25rem; line-height: 1.25; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.25rem; top: 50%; width: 1rem; height: 1rem; transform: translateY(-50%); background:
  linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
  linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform 0.2s ease; }
.faq details[open] summary::after { background: linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat; }
.faq summary:hover { color: var(--red); }
.faq .answer { padding: 0 0 1.4rem; max-width: 60ch; }

/* Anfrage auf dunkler Fläche */
.night { background: var(--night); color: var(--night-text); }
.night ::selection { background: var(--paper); color: var(--ink); }
.night .intro { color: var(--night-soft); max-width: 46ch; }
.night .intro p + p { margin-top: 0.8em; }
.form-wrap { max-width: 40rem; }
.field { margin-bottom: 1.5rem; }
.field label, .field .label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
.field .hint { display: block; font-weight: 400; color: var(--night-soft); font-size: 0.9375rem; margin-top: 0.1rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--night-text); background: transparent;
  border: 0; border-bottom: 2px solid var(--night-line); border-radius: 0; padding: 0.7rem 0; transition: border-color 0.18s ease;
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.5; border: 2px solid var(--night-line); padding: 0.7rem 0.8rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--night-text) 50%), linear-gradient(135deg, var(--night-text) 50%, transparent 50%); background-position: calc(100% - 0.9rem) 55%, calc(100% - 0.55rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2rem; }
.field select option { color: var(--ink); background: #fff; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--night-soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--paper); box-shadow: 0 2px 0 0 var(--paper); }
.field input::placeholder, .field textarea::placeholder { color: var(--night-soft); opacity: 1; }
.check { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 1rem; }
.check input { width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; flex: none; }
.check a { text-underline-offset: 0.2em; }
.field-error { display: none; margin-top: 0.4rem; color: var(--error-on-night); font-size: 0.9375rem; font-weight: 700; }
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error-on-night); }
.form-status { margin-top: 1rem; min-height: 1.4em; }
.form-status.is-error { color: var(--error-on-night); font-weight: 700; }
.form-status a { color: var(--paper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-wrap.is-sent form { display: none; }
#form-success { border-top: 2px solid var(--paper); padding-top: 1.25rem; }
#form-success h3 { font-size: 1.75rem; }
#form-success p { margin-top: 0.6rem; color: var(--night-soft); }
.mail-direct { margin-top: 1.75rem; color: var(--night-soft); font-size: 1rem; }
.mail-direct a { color: var(--paper); }
.mail-direct + .mail-direct { margin-top: 0.4rem; }

/* Fußzeile */
.site-footer { background: var(--paper); border-top: 1px solid var(--ink); padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-small); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; }

/* Rechtstexte */
.legal { padding-block: 4rem 6rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.legal p { max-width: 60ch; }

@media print {
  .site-header, .night form { display: none; }
}

/* Dreierzeile im Einstieg */
.hero-dz { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 1.1rem; }
.hero .lead .hero-dz + p { margin-top: 0; }
.where-note { font-size: var(--fs-small); }

@media (max-width: 40rem) { .site-header .btn { display: none; } .brand svg { width: 13rem; } }
.hero .lead { max-width: 46ch; }
@media (min-width: 62rem) { .hero .lead { grid-column: 1 / span 6; } .hero .lead { max-width: 44ch; } }

.field label.check { font-weight: 400; display: flex; }
.check input { accent-color: var(--red); background: transparent; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] { min-height: 3rem; }
@media (max-width: 61.99rem) { .sec-head h2 { max-width: 22ch; } }

/* Feinschliff nach unabhängiger Abnahme */
:root { --fs-h1: clamp(2.6rem, 6.6vw, 6.2rem); --fs-dz: clamp(1.7rem, 2.5vw, 2.2rem); --hero-pad-top: clamp(1.75rem, 4vw, 3.25rem); }
.hero .lead { margin-top: clamp(1.1rem, 2vw, 1.6rem); }
.hero .actions { margin-top: clamp(1.1rem, 2vw, 1.6rem); }
.hero-links { margin-top: clamp(2rem, 3.5vw, 3rem); }
.hero-links a { padding-bottom: 1rem; }
@media (min-width: 62rem) { .hero-links { margin-top: clamp(2rem, 3.5vw, 3rem); } }
.hero-links li:nth-child(n) b { color: var(--ink); }
.phases li:nth-child(n) .n { color: var(--ink); }
.faq summary:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.arrow-link:hover { color: var(--ink); border-bottom-width: 4px; padding-bottom: 0; }
.faq details[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat; }
.approach .dz { white-space: nowrap; }
@media (max-width: 40rem) { .approach .dz { white-space: normal; } }
/* Ablauf: feste Linie plus rote Füllung, kein Verlauf */
.steps::before { background: var(--line); }
.steps::after { content: ""; position: absolute; left: 1.2rem; top: 1.4rem; width: 2px; height: calc((100% - 2.8rem) * var(--p)); background: var(--red); }
.steps li { z-index: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--paper); outline-offset: 2px; box-shadow: none; }
/* Über mich: Überschrift links wie die anderen Abschnitte */
.about-head { grid-column: 1 / -1; }
.about-head .about-photo { margin-top: 2rem; }
@media (min-width: 62rem) {
  .about-head { grid-column: 1 / span 4; }
  .about-head .about-photo { grid-column: auto; }
  .about-text { grid-column: 6 / -1; }
}
.about-text .name { margin-top: 0; }

/* Werte aus der Feinjustierung der Person (2026-10-15), auf Desktop 1440 px gemessen */
:root {
  --hero-pad-top: clamp(1.5rem, 1.8vw, 26px);
  --fs-h1: clamp(2.4rem, 3.34vw, 48px);
  --hero-h1-width: 12;
  --section-pad: clamp(3rem, 5.7vw, 82px);
  --col-gap: clamp(16px, 1.75vw, 25px);
  --gutter: clamp(16px, 3.5vw, 50px);
}

/* Dreierzeilen als Kapitälchen wie im Schriftzug: Großbuchstaben, erster Buchstabe etwas größer (18 zu 16) */
.dz span { display: inline-block; text-transform: uppercase; font-size: 0.889em; letter-spacing: 0.03em; }
.dz span::first-letter { font-size: 1.125em; }
.dz { letter-spacing: 0; }
.approach .dz { --fs-dz: clamp(1.25rem, 1.95vw, 1.75rem); font-size: var(--fs-dz); white-space: normal; }
.hero-dz { font-size: clamp(1.35rem, 2.1vw, 1.9rem); }

/* Themen: aufklappbar wie die Fragen, Überschrift plus Leitfrage */
.faq summary h3 { font: inherit; margin: 0; letter-spacing: 0; }
.faq summary .q { display: block; font-weight: 400; font-style: italic; color: var(--grey); font-size: 1.0625rem; margin-top: 0.3rem; line-height: 1.35; }
.faq .answer ol { margin: 0.9em 0 0; padding-left: 1.4rem; max-width: 60ch; }
.faq .answer li + li { margin-top: 0.9em; }
.faq .answer p + ol { margin-top: 1em; }

/* Hero-Foto: 4:5 ohne Beschnitt */
.hero .portrait img { object-position: center; }

/* Foto Über mich: bereits 4:5 zugeschnitten */
.about-photo img { object-position: center; }
.legal h2 { font-size: 1.3rem; margin: 2.25rem 0 0.5rem; }
.faq-single { margin: 1.5rem 0 1.75rem; max-width: 60ch; }
.faq-single .answer { padding-bottom: 0.4rem; }
.faq-single .rows { margin: 0.25rem 0 1rem; }

/* Linien-Illustrationen an den drei Angeboten */
.sec-art { display: block; width: 100%; max-width: 20rem; height: auto; margin-top: 2.5rem; }
@media (min-width: 62rem) { .sec-art { margin-top: 5rem; max-width: 100%; } }

/* Ort und Sprache als zwei Punktzeilen */
.where + .where { margin-top: 0.4rem; }
.dz span:nth-child(2):nth-last-child(1) { color: var(--red); }
