/* Peter Stotz · Consulting & Coaching – ein Stylesheet für alle Seiten.
   Aufbau wie erlebnis-schafft-entwicklung.de. Farben aus Peters Konzept: Dunkelgrün, Sandgold, Creme, Anthrazit.
   Schrift: Fraunces für Überschriften und Zitate, Source Sans 3 für Fließtext. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-display: swap }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap }
/* Das Und-Zeichen von Fraunces ist verschnörkelt: in Überschriften kommt es aus Source Sans 3 */
@font-face { font-family: "Und"; src: url("/fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; unicode-range: U+0026; font-display: swap }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-display: swap }

:root {
  --gruen: #1d3a2f;       /* Dunkelgrün: Bühne, Kopf, Fuß, Corporate Happiness */
  --gruen-tief: #132820;
  --gold: #b8935a;        /* Sandgold: Nummern, Linien, Knopf auf Dunkel */
  --gold-hell: #dcc49a;
  --gold-text: #8a6a35;   /* Sandgold, dunkel genug für Text auf Creme */
  --creme: #f5f0e6;
  --creme-tief: #ebe3d4;
  --weiss: #fffcf6;
  --tinte: #2a2c2b;       /* Anthrazit */
  --leise: #5d605d;
  --linie: #ddd3c1;
  --feldrand: #8f8778;    /* Rand der Formularfelder: 3:1 auf Weiß, damit ein Feld als Feld erkennbar ist */
  --linie-dunkel: rgb(255 255 255 / .16);
  --rost: #9a3e1e;
  --rost-hell: #f3e1d7;
  --display: "Und", "Fraunces", "Iowan Old Style", "Georgia", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mass: 72rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --kopfhoehe: 4rem;
  --radius: 6px;
  --schatten-hell: 0 1px 2px rgb(19 40 32 / .06), 0 24px 48px -32px rgb(19 40 32 / .35);
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--creme); color: var(--tinte); font: 400 1.0625rem/1.6 var(--body); text-rendering: optimizeLegibility }
main { flex: 1 }
img { max-width: 100%; display: block }
[hidden] { display: none !important }
/* Fokus: Grün auf hellen Flächen, helles Gold auf dunklen (beide über 3:1) */
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; border-radius: 3px }
:is(.kopf, .buehne, .dunkel, .fuss) :focus-visible { outline-color: var(--gold-hell) }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; margin: 0; font-optical-sizing: auto }
p, ul, ol, figure, blockquote { margin: 0 }
a { color: var(--gruen); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em }
a:hover { color: var(--gruen-tief) }
b, strong { font-weight: 600 }
::selection { background: var(--gold-hell); color: var(--gruen-tief) }
.innen { width: 100%; max-width: var(--mass); margin-inline: auto; padding-inline: var(--rand) }
section[id] { scroll-margin-top: var(--kopfhoehe) }

h1, h2, h3 { overflow-wrap: break-word }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem) }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 600 }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.3rem); line-height: 1.5 }
.ueber { font: 600 .85rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text) }

/* Knöpfe: Grün auf Hell, Gold auf Dunkel */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.35rem; border: 1.5px solid transparent; border-radius: var(--radius);
  background: var(--gruen); color: #fff; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease }
.knopf:hover { background: var(--gruen-tief); color: #fff }
.knopf.gold { background: var(--gold); color: var(--gruen-tief) }
.knopf.gold:hover { background: var(--gold-hell); color: var(--gruen-tief) }
.knopf.leer { background: transparent; border-color: rgb(255 255 255 / .5); color: #fff }
.knopf.leer:hover { background: rgb(255 255 255 / .08); border-color: #fff }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 20; color: #fff; background: var(--gruen); border-bottom: 1px solid var(--linie-dunkel) }
.kopf .innen { display: flex; align-items: center; gap: 1.5rem; min-height: var(--kopfhoehe) }
.kopf .name { font: 500 1.2rem/1 var(--display); color: inherit; text-decoration: none; margin-right: auto; padding-block: .8rem }
.kopf .name span { color: var(--gold-hell); font-style: italic }
.kopf .knopf { margin-left: auto; min-height: 2.75rem; padding: .45rem 1.05rem; font-size: .95rem }
.kopf .zurueck { color: rgb(255 255 255 / .85); text-decoration: none; font-weight: 600; padding-block: .6rem }
.kopf .zurueck::before { content: "← " }
@media (max-width: 420px) { .kopf .name span { display: none } }
/* Startseite: ganz oben nur die Bühne, Name und Kontakt-Knopf kommen erst beim Scrollen (wie bei Julian) */
@supports (animation-timeline: scroll()) {
  @keyframes kopf-erscheint { from { opacity: 0; visibility: hidden; background: transparent; border-color: transparent } to { opacity: 1; visibility: visible; background: var(--gruen); border-color: var(--linie-dunkel) } }
  .kopf.schwebt.erst-beim-scrollen { animation: kopf-erscheint linear both; animation-timeline: scroll(); animation-range: 0 10rem }
}
/* Browser ohne animation-timeline (Firefox): das Skript in index.html setzt .per-skript und schaltet .sichtbar beim Scrollen */
.kopf.per-skript { transition: opacity .25s ease, visibility .25s }
.kopf.per-skript:not(.sichtbar) { opacity: 0; visibility: hidden }

/* Bühne: statisch, dunkelgrün, so hoch wie ihr Text (ohne Video keine volle Bildschirmhöhe, damit der nächste Abschnitt schon hereinschaut); der Kopf liegt unsichtbar darüber */
.buehne { background: var(--gruen); color: #fff; margin-top: calc(-1 * var(--kopfhoehe)); padding-block: clamp(5.5rem, 12vh, 8rem) clamp(2.5rem, 6vh, 4rem); position: relative; overflow: clip }
.buehne .innen { display: grid; gap: 1.6rem; position: relative; z-index: 1 }
.buehne .ueber { color: var(--gold-hell) }
.buehne h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 400; line-height: 1; letter-spacing: -.02em }
.buehne h1 span, .buehne h1 em { display: block }
.buehne h1 em { color: var(--gold-hell) }
.buehne .lead { max-width: 38rem; color: rgb(255 255 255 / .86) }
.buehne .fakten { list-style: none; padding: 1.5rem 0 0; margin-top: 1rem; border-top: 1px solid var(--linie-dunkel); display: flex; flex-wrap: wrap; gap: .4rem 2rem; font: italic 400 1.15rem/1.3 var(--display); color: rgb(255 255 255 / .9) }
.buehne .fakten li::before { content: "— "; color: var(--gold) }
@media (prefers-reduced-motion: no-preference) {
  @keyframes aufgehen { from { opacity: 0; transform: translateY(1rem) } to { opacity: 1; transform: none } }
  .buehne .innen > * { animation: aufgehen .9s cubic-bezier(.2, .7, .2, 1) both }
  .buehne .innen > :nth-child(2) { animation-delay: .08s } .buehne .innen > :nth-child(3) { animation-delay: .16s }
  .buehne .innen > :nth-child(4) { animation-delay: .24s } .buehne .innen > :nth-child(5) { animation-delay: .32s }
}

/* Abschnitte */
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem) }
.band.dunkel { background: var(--gruen); color: #fff }
.band.weiss { background: var(--weiss) }
.kopfzeile { display: grid; gap: .9rem; max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem) }
.kopfzeile p:not(.ueber) { color: var(--leise); font-size: 1.12rem }
.dunkel .kopfzeile p:not(.ueber) { color: rgb(255 255 255 / .78) }
.dunkel .ueber { color: var(--gold-hell) }

/* Einstieg: Überschrift links, Text rechts */
.einstieg { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 6vw, 5rem); align-items: start }
.einstieg .text { display: grid; gap: 1rem; color: var(--leise); font-size: 1.12rem }
@media (max-width: 820px) { .einstieg { grid-template-columns: 1fr } }

/* Leistungen: nummerierte Zeilen mit Linien */
.leistungen { list-style: none; padding: 0; border-top: 1px solid var(--linie); counter-reset: l }
.leistung { counter-increment: l; display: grid; grid-template-columns: 4.5rem minmax(0, 5fr) minmax(0, 7fr); gap: .5rem clamp(1.5rem, 4vw, 3rem); padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--linie) }
.leistung::before { content: counter(l, decimal-leading-zero); font: 400 2rem/1 var(--display); color: var(--gold-text) }
.leistung h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem) }
.leistung p { color: var(--leise) }
.leistung .nutzen { margin-top: .6rem; font: italic 400 1.08rem/1.4 var(--display); color: var(--tinte) }
.leistung .marke { margin-top: .75rem; font: 600 .8rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text) }
/* Schmal: Nummer über der Überschrift, Text über die ganze Breite; lange Wörter dürfen trennen statt überzulaufen */
@media (max-width: 760px) { .leistung { grid-template-columns: minmax(0, 1fr); gap: .5rem } .leistung::before { font-size: 1.35rem } .leistung h3 { hyphens: auto; margin-bottom: .15rem } }

/* Werdegang: fünf Stationen als Reise, auf schmalen Bildschirmen zum Wischen */
.reise { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; position: relative }
.station { display: grid; gap: .55rem; align-content: start }
.station img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); margin-bottom: .5rem; background: var(--gruen-tief) }
.station .ort { font: 600 .8rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hell); display: flex; align-items: center; gap: .6rem }
.station .ort::after { content: ""; flex: 1; height: 1px; background: rgb(184 147 90 / .45) }
.station h3 { font-size: 1.3rem }
.station .rolle { font-weight: 600; color: #fff }
.station p { color: rgb(255 255 255 / .75); font-size: 1rem }
/* Breit: Bild, Ort, Name, Rolle und Text stehen über alle fünf Stationen auf gleicher Höhe */
@media (min-width: 1001px) {
  .reise { grid-template-rows: repeat(5, auto) }
  .station { grid-row: span 5; grid-template-rows: subgrid }
}
@media (max-width: 1000px) {
  .reise { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 1rem; margin-inline: calc(-1 * var(--rand)); padding-inline: var(--rand); scroll-padding-inline: var(--rand) }
  .station { flex: 0 0 min(19rem, 80vw); scroll-snap-align: start }
  .station:last-child { scroll-snap-align: end }
  .station img { aspect-ratio: 4 / 3 }
}
/* Mit dem Finger braucht es keine Bildlaufleiste, mit der Maus bleibt sie */
@media (max-width: 1000px) and (hover: none) { .reise { scrollbar-width: none; padding-bottom: 0 } }
.wischen { display: none; margin: -.75rem 0 1rem; color: rgb(255 255 255 / .6); font-size: .95rem }
@media (max-width: 1000px) { .wischen { display: block } }

/* Über mich: Rolle groß, Geschichte in einer lesbaren Spalte */
.ich { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 6vw, 5rem); align-items: start }
@media (max-width: 820px) { .ich { grid-template-columns: 1fr } }
.ich .seite { position: sticky; top: calc(var(--kopfhoehe) + 2rem); display: grid; gap: 1rem }
@media (max-width: 820px) { .ich .seite { position: static } }
.ich .rolle { font: italic 400 clamp(1.3rem, 2.2vw, 1.6rem)/1.3 var(--display); color: var(--gold-text) }
.ich .text { display: grid; gap: 1.1rem; font-size: 1.12rem; color: var(--leise) }
.ich .text p:first-child { color: var(--tinte) }

/* Corporate Happiness: dunkles Band mit Zahlen */
.happy { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: center }
@media (max-width: 820px) { .happy { grid-template-columns: 1fr } }
.happy .text { display: grid; gap: 1rem }
.happy h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 400 }
.happy .text p:not(.ueber) { color: rgb(255 255 255 / .8); font-size: 1.12rem }
.zahlen { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--linie-dunkel) }
.zahlen li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.25rem; align-items: baseline; padding: 1.25rem 0; border-bottom: 1px solid var(--linie-dunkel) }
.zahlen b { font: 400 2.6rem/1 var(--display); color: var(--gold-hell); font-variant-numeric: lining-nums }
.zahlen span { color: rgb(255 255 255 / .8) }

/* Zitat des Großvaters */
.zitat { text-align: center; display: grid; gap: 1.25rem; justify-items: center; max-width: 48rem; margin-inline: auto }
.zitat blockquote p { font: italic 400 clamp(1.8rem, 4vw, 3rem)/1.15 var(--display); text-wrap: balance }
.zitat blockquote p::before { content: "„" } .zitat blockquote p::after { content: "“" }
.zitat figcaption { color: var(--leise) }
.zitat figcaption::before { content: ""; display: block; width: 3rem; height: 1px; background: var(--gold); margin: 0 auto 1rem }

/* Kontakt: Text links, Formular rechts */
.kontakt > .innen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start }
@media (max-width: 820px) { .kontakt > .innen { grid-template-columns: 1fr } }
.kontakt .links { display: grid; gap: 1rem }
.kontakt .links p:not(.ueber, .gruss) { color: var(--leise); font-size: 1.12rem }
.kontakt .links .gruss { font: italic 400 1.25rem/1.4 var(--display); color: var(--tinte); margin-top: .5rem }
.anfrage { background: var(--creme); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--schatten-hell);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem 1.25rem }
.anfrage .feld { display: grid; gap: .35rem; min-width: 0 }
.anfrage .breit { grid-column: 1 / -1 }
.anfrage label { font-weight: 600; font-size: .95rem }
.anfrage .pflicht { color: var(--gold-text); font-weight: 700 }
.anfrage .hinweis { font-size: .9rem; color: var(--leise) }
.anfrage input, .anfrage select, .anfrage textarea { font: inherit; font-size: 1rem; color: var(--tinte); background: #fff;
  border: 1.5px solid var(--feldrand); border-radius: var(--radius); padding: .65rem .85rem; min-height: 3rem; width: 100%; transition: border-color .15s ease }
.anfrage textarea { min-height: 7rem; resize: vertical }
.anfrage select { appearance: none; padding-right: 2.25rem; text-overflow: ellipsis; background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 fill=%27none%27 stroke=%27%231d3a2f%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4 6l4 4 4-4%27/%3E%3C/svg%3E") no-repeat right .8rem center }
.anfrage input:focus, .anfrage select:focus, .anfrage textarea:focus { outline: 2px solid var(--gruen); outline-offset: 0; border-color: var(--gruen) }
.anfrage button { justify-self: start }
@media (max-width: 560px) { .anfrage button { justify-self: stretch } }
.anfrage button:disabled { cursor: progress; opacity: .7 }
.anfrage .falle { position: absolute; left: -9999px }
/* Zustand: leer (Formular), gesendet (Bestätigung), eingabe/versand (Fehlermeldung) */
.danke, .fehler { display: none }
.rahmen[data-zustand="gesendet"] .anfrage { display: none }
.rahmen[data-zustand="gesendet"] .danke { display: grid }
.rahmen[data-zustand="eingabe"] .fehler-eingabe, .rahmen[data-zustand="versand"] .fehler-versand { display: block }
.fehler { grid-column: 1 / -1; border-radius: var(--radius); padding: .9rem 1.1rem; background: var(--rost-hell); color: var(--rost); font-weight: 600 }
.danke { background: var(--creme); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--schatten-hell); align-content: center; justify-items: start; gap: .75rem; min-height: 18rem }
.danke:focus { outline: none }
.danke h3 { font-size: clamp(1.5rem, 3vw, 2rem) }
.danke p { color: var(--leise) }
.danke .haken { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--gruen); color: var(--gold-hell); display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem }

/* Dezentes Einblenden beim Scrollen, ohne Skript; wo view() fehlt oder Bewegung unerwünscht ist, steht alles sofort da */
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .kopfzeile, .leistung, .reise, .zahlen li, .zitat, .kontakt .rahmen { animation: aufgehen linear both; animation-timeline: view(); animation-range: entry 0 entry 9rem }
  }
}

/* Rechtstexte */
.recht { padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 8vw, 6rem) }
.recht .innen { max-width: 46rem; display: grid; gap: .9rem }
.recht h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .75rem }
.recht h2 { font-size: clamp(1.5rem, 2vw, 1.75rem); margin-top: 2rem }
.recht ul { padding-left: 1.2rem; display: grid; gap: .3rem }
.recht address { font-style: normal }
.recht p, .recht li { color: var(--leise) }
.recht address { color: var(--tinte) }

/* Fußzeile */
.fuss { background: var(--gruen-tief); color: rgb(255 255 255 / .7); padding-block: 2rem; font-size: .95rem }
.fuss .innen { display: flex; flex-wrap: wrap; gap: 0 1.5rem; justify-content: space-between; align-items: center }
.fuss nav { display: flex; gap: 1.25rem }
.fuss a { color: rgb(255 255 255 / .85); text-decoration: none; display: inline-block; padding-block: .65rem }
.fuss a:hover { color: #fff; text-decoration: underline; text-underline-offset: .25em }
