/* WellAdvised – Stylesheet
   Schriften lokal eingebunden (keine Verbindung zu Google). Lizenz: SIL Open Font License, siehe assets/fonts/ */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/newsreader-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/newsreader-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/newsreader-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/newsreader-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/public-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/public-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/public-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  --ground: #F5F3EE;
  --surface: #FFFFFF;
  --ink: #16213A;
  --text: #3A4458;
  --muted: #4A5468;
  --line: #D9D4C8;
  --accent: #8A5E26;
  --accent-light: #D8B77E;
  --navy-line: #334060;
  --on-navy: #F5F3EE;
  --on-navy-muted: #C9CEDA;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --pad-x: clamp(20px, 8.3vw, 120px);
  --section-y: clamp(72px, 9vw, 120px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--on-navy); font-weight: 600; }
.skip-link:focus { top: 16px; color: var(--on-navy); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: calc(var(--max) + 2 * var(--pad-x)); margin: 0 auto; padding: 0 var(--pad-x); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text); }
.section { padding: var(--section-y) 0; }
.section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.1; }
.h2--sm { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.15; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; background: var(--ink); color: var(--on-navy); border: 0; border-radius: 2px; font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: #22304F; color: var(--on-navy); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 86px; }
.logo { font-family: var(--serif); font-size: 30px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.logo em { font-weight: 500; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a.is-active { color: var(--accent); }
.lang { display: flex; gap: 8px; padding-left: 24px; border-left: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.lang strong { color: var(--ink); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero { padding: clamp(64px, 8vw, 112px) 0 clamp(72px, 8vw, 120px); }
.hero .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6.6vw, 96px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 32px; }
.hero h1 { font-size: clamp(38px, 4.5vw, 64px); line-height: 1.08; letter-spacing: -0.015em; }
.hero .lead { max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding-top: 8px; }
.hero-actions .text-link { font-weight: 500; text-underline-offset: 6px; }
.levels { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; letter-spacing: 0.06em; color: var(--muted); }
.levels span[aria-hidden] { color: #B8B1A2; }
.portrait { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #E6E1D6; border: 1px solid var(--line); }
.portrait figcaption { font-size: 14px; color: var(--muted); }

/* Für wen */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6.6vw, 96px); }
.split-head { display: flex; flex-direction: column; gap: 20px; }
.split-head p { font-size: 18px; color: var(--text); }
.rows > div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { font-size: 26px; line-height: 1.25; }
.rows p { font-size: 18px; color: var(--text); }

/* Karten & Listen */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 3.3vw, 48px); background: var(--surface); border: 1px solid var(--line); }
.card-num { font-family: var(--serif); font-size: 20px; color: var(--accent); }
.card h3 { font-weight: 500; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.2; }
.card-lead { font-size: 18px; line-height: 1.55; font-weight: 500; }
.dash-list { display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.dash-list li { display: flex; gap: 14px; }
.dash-list li::before { content: ''; flex-shrink: 0; width: 14px; height: 1px; margin-top: 13px; background: var(--accent); }

/* Arbeitsweise */
.steps li { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 2px solid var(--ink); }
.step-label { font-family: var(--serif); font-size: 18px; color: var(--accent); }
.steps h3 { font-size: 26px; }
.steps p { color: var(--text); }
.formats { margin-top: 56px; padding: 40px; background: var(--ground); border: 1px solid var(--line); }
.formats h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.formats p { color: var(--text); }

/* Praxis */
.praxis-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 5vw, 56px); }
.praxis-head .section-head { margin-bottom: 0; }
.draft-badge { flex-shrink: 0; padding: 10px 16px; border: 1px dashed var(--accent); color: var(--accent); font-size: 14px; font-weight: 600; }
.case { gap: 24px; padding: 40px; }
.case-tag { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.case h3 { font-size: 26px; line-height: 1.25; margin-top: 10px; }
.case dl { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.case dl div { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.case dt { font-weight: 600; }
.case dd { margin: 0; color: var(--text); }

/* Über mich */
.about { background: var(--ink); color: var(--on-navy); }
.about a { color: var(--on-navy); }
.about .eyebrow { color: var(--accent-light); }
.about-intro { align-items: center; }
.about-intro h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-muted); margin-top: 16px; }
.about-intro p { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.65; }
.about-intro-text { display: flex; flex-direction: column; gap: 20px; }
.about-portrait { margin: 0; max-width: 440px; }
.about-portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #E6E1D6; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6.6vw, 96px); margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--navy-line); }
.about-grid h3 { font-size: 32px; margin-bottom: 32px; }
.timeline { display: flex; flex-direction: column; gap: 28px; }
.timeline li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 20px; }
.timeline li::before { content: ''; width: 11px; height: 11px; margin-top: 6px; border: 2px solid var(--accent-light); border-radius: 50%; }
.timeline li:last-child::before { width: 15px; height: 15px; margin-top: 4px; background: var(--accent-light); border: 0; }
.timeline strong { display: block; font-size: 17px; margin-bottom: 6px; }
.timeline p, .about .dash-list { color: var(--on-navy-muted); }
.about .dash-list { gap: 18px; color: #E4E7EE; }
.about .dash-list li::before { background: var(--accent-light); }
.network-box { margin-top: 48px; padding: 32px; border: 1px solid var(--navy-line); }
.network-box .eyebrow { margin-bottom: 12px; }
.network-box p { font-family: var(--serif); font-size: 22px; line-height: 1.45; }
.assoc { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--navy-line); }
.assoc-label { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-muted); }
.assoc ul { display: flex; flex-wrap: wrap; gap: 12px 48px; font-family: var(--serif); font-size: 24px; }

/* Kontakt */
.contact-text { display: flex; flex-direction: column; gap: 24px; }
.contact-card { font-style: normal; display: flex; flex-direction: column; gap: 4px; margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-card .org { font-family: var(--serif); font-size: 24px; }
.contact-card .name { font-weight: 600; }
.contact-card .title { color: var(--text); }
.contact-card .links { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.form { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3.3vw, 48px); background: var(--surface); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #A9A293; border-radius: 2px; background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
.field textarea { resize: vertical; min-height: 160px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #A3261E; }
.field-error { font-size: 14px; color: #A3261E; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 6px; }
.form-footer p { font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 360px; }
.form-status { padding: 16px 18px; border: 1px solid var(--line); font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { border-color: #2F6B45; background: #EEF5F0; color: #1F4D31; }
.form-status.is-error { border-color: #A3261E; background: #FBEFEE; color: #7A1C16; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-navy-muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 32px; padding-bottom: 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--on-navy); }

/* Rechtstexte */
.legal { padding: clamp(56px, 7vw, 96px) 0; }
.legal .container { max-width: calc(820px + 2 * var(--pad-x)); }
.legal h1 { font-size: clamp(36px, 4vw, 52px); margin-bottom: 40px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.todo { background: #FFF3D6; padding: 0 4px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero .container, .split, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 420px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-portrait { max-width: 340px; order: 2; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--pad-x) 24px; background: var(--ground); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { display: block; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .lang { padding: 16px 0 0; border-left: 0; }
  .no-js .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 16px; padding: 0; border: 0; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-header .container { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: minmax(0, 1fr); }
  .rows > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .praxis-head, .form-footer { flex-direction: column; align-items: flex-start; }
  .form-footer .btn { width: 100%; }
  .site-header .container { min-height: 72px; }
  .hero h1 { font-size: 32px; line-height: 1.12; text-wrap: pretty; }
  .hero-actions .btn { width: 100%; padding: 0 20px; text-align: center; }
  .levels { gap: 8px 16px; }
  .levels span[aria-hidden] { display: none; }
  .logo { font-size: 26px; }
  html { scroll-padding-top: 80px; }
}
