/* =========================================================
   Vorlage 2 „Klar und verbunden“ – Psychotherapie-Praxis
   Farben und Schrift zentral unter :root ändern.
   ========================================================= */

/* Archivo und Source Serif 4 (SIL Open Font License), lokal eingebunden:
   keine Verbindung zu Google oder anderen Anbietern, kein Cookie-Banner nötig */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(fonts/archivo-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(fonts/archivo-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/sourceserif4-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/sourceserif4-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --papier:   #F5F6F2;  /* Hintergrund */
  --kalk:     #E6E9E3;  /* ruhige Abschnitte, Formularfelder-Umfeld */
  --foehre:   #183D35;  /* Text, Überschriften, dunkle Flächen, Hauptbutton */
  --foehre-2: #4B5F58;  /* Nebentext auf Papier und Kalk */
  --foehre-3: #0F2B25;  /* Hover auf dem Hauptbutton */
  --nebel:    #B8CCC4;  /* Nebentext auf Föhre */
  --ringel:   #F2B92B;  /* Akzent: Beziehungslinie im Diagramm. Sparsam einsetzen. */
  --linie:    #B9C2BC;  /* dünne Trennlinien */
  --fehler:   #A3262A;
  --focus:    var(--foehre);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.375rem, 1.3rem + 4.2vw, 4.75rem);

  --measure: 36em;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --gap: clamp(1rem, 2.2vw, 2rem);
}

*, *::before, *::after { 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;
  background: var(--papier);
  color: var(--foehre);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--sans);
  margin: 0;
  line-height: 1.08;
  overflow-wrap: break-word;
  hyphens: manual;
}
h2 {
  font-size: var(--step-3);
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
  max-width: 16em;
}
h3 {
  font-size: var(--step-1);
  font-weight: 650;
  font-stretch: 110%;
  line-height: 1.2;
  margin-bottom: .45rem;
}
p { margin: 0 0 1em; max-width: var(--measure); hyphens: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--papier); color: var(--foehre);
  padding: .6rem 1rem; font-family: var(--sans); font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(76rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* Dunkle Flächen: Fokusring und Nebentext umschalten */
.on-dark { background: var(--foehre); color: var(--papier); --focus: var(--ringel); }

/* ---------- Demo-Hinweis ---------- */
.demo-bar { font-family: var(--sans); font-size: var(--step--1); padding: .55rem 0; }
.demo-bar p { margin: 0; max-width: none; }

/* ---------- Kopfzeile ---------- */
.site-head { padding: 1.5rem 0 1rem; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.brand { text-decoration: none; line-height: 1.25; }
.brand b { display: block; font-family: var(--sans); font-weight: 700; font-stretch: 112%; font-size: 1.125rem; }
.brand span { font-size: var(--step--1); color: var(--foehre-2); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; padding: 0; }
.site-nav a { font-family: var(--sans); font-weight: 500; font-size: .9375rem; text-decoration: none; padding: .35rem 0; display: inline-block; }
.site-nav a:hover { text-decoration: underline; }

/* ---------- Hero mit Genogramm ---------- */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 7rem); }
.hero .grid { align-items: start; row-gap: clamp(1.75rem, 4vw, 3rem); }
.hero h1 {
  grid-column: 1 / -1;
  font-size: var(--step-4);
  font-weight: 750;
  font-stretch: 125%;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 14em;
}
.hero-text { grid-column: 1 / span 6; }
.hero .lead { font-size: var(--step-1); line-height: 1.55; max-width: 30em; }

.genogram { grid-column: 8 / span 5; margin: 0; width: 100%; max-width: 26rem; justify-self: end; align-self: center; }
.genogram svg { display: block; width: 100%; height: auto; overflow: visible; }
.genogram figcaption { font-size: var(--step--1); color: var(--foehre-2); margin-top: 1rem; max-width: 26em; }
/* Genogramm-Zeichen: Kreise für Personen (geschlechtsneutral), Doppellinie für eine enge Beziehung */
.g-line { fill: none; stroke: var(--foehre); stroke-width: 4; stroke-linecap: square; }
.g-node { fill: var(--papier); stroke: var(--foehre); stroke-width: 4; }
.g-band { fill: var(--ringel); }
.g-dash { stroke-dasharray: 5 5; stroke-linecap: butt; }

/* Der eine bewegte Moment: die Beziehungslinie zeichnet sich beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .genogram .g-line { stroke-dasharray: 1; animation: draw .8s cubic-bezier(.4,0,.2,1) both; }
  .genogram .g-node { animation: appear .5s ease-out both; }
  .genogram .g-band { transform-box: fill-box; transform-origin: center; animation: grow .7s cubic-bezier(.4,0,.2,1) 1.2s both; }
  .d1 { animation-delay: .15s; } .d2 { animation-delay: .6s; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.actions { display: flex; flex-wrap: wrap; gap: .9rem 1rem; align-items: stretch; margin: 2.25rem 0 1.4rem; }
.btn {
  display: inline-flex; flex-direction: column; justify-content: center;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; font-stretch: 105%;
  line-height: 1.2;
  padding: .9rem 1.4rem;
  border: 2px solid var(--foehre);
  border-radius: .375rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--foehre); color: var(--papier); }
.btn-primary:hover { background: var(--foehre-3); border-color: var(--foehre-3); }
.btn-ratfinder { background: transparent; color: var(--foehre); }
.btn-ratfinder:hover { background: var(--kalk); }
.btn small { display: block; font-size: .8125rem; font-weight: 400; font-stretch: 100%; margin-top: .15rem; color: var(--foehre-2); }

.availability { font-family: var(--sans); font-size: .9375rem; display: flex; align-items: center; gap: .6rem; margin: 0; }
.availability::before {
  content: ""; flex: none; width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--ringel); border: 2px solid var(--foehre);
}

/* ---------- Abschnitte ---------- */
section, aside { scroll-margin-top: 1rem; }
.block { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.block-rule > .wrap { border-top: 2px solid var(--foehre); padding-top: clamp(1.75rem, 4vw, 3rem); }
.block-kalk { background: var(--kalk); }
.section-intro { font-size: var(--step-1); line-height: 1.5; max-width: 32em; margin-bottom: 0; }
.note { color: var(--foehre-2); font-size: 1rem; }

/* Über mich */
.about { row-gap: 2.5rem; margin-top: clamp(1rem, 3vw, 2rem); }
.portrait { grid-column: 1 / span 4; margin: 0; align-self: start; }
.portrait .room { background: var(--kalk); border: 2px solid var(--foehre); }
.room svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; }
.r-line { fill: none; stroke: var(--foehre); stroke-width: 4; }
.r-lamp { fill: var(--ringel); stroke: var(--foehre); stroke-width: 4; stroke-linejoin: round; }
.r-chair rect { fill: var(--papier); stroke: var(--foehre); stroke-width: 4; }
.r-chair path { fill: none; stroke: var(--foehre); stroke-width: 4; }
.portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait figcaption { font-size: var(--step--1); color: var(--foehre-2); margin-top: .75rem; }
.about-text, .about-method { grid-column: 6 / span 7; }
.about-cv { grid-column: 1 / span 4; }
.about-method p { max-width: 34em; }
.quote {
  font-family: var(--sans); font-size: var(--step-2); font-weight: 500; font-stretch: 108%;
  line-height: 1.3; letter-spacing: -0.01em;
  margin: 2.25rem 0 0; max-width: 22em;
}
.cv { margin: 0; }
.cv div { padding: .7rem 0; border-top: 1px solid var(--linie); }
.cv dt { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; color: var(--foehre-2); font-variant-numeric: tabular-nums; }
.cv dd { margin: 0; line-height: 1.45; }

/* Angebot und Themen */
.head { align-items: end; row-gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.head h2 { grid-column: 1 / span 7; margin-bottom: 0; }
.head .section-intro { grid-column: 8 / span 5; }
.settings { list-style: none; margin: 0 0 clamp(3rem, 6vw, 4.5rem); padding: 0; row-gap: 2.5rem; }
.settings li { grid-column: span 4; }
.settings svg { display: block; width: 9rem; height: 3rem; margin-bottom: 1.25rem; overflow: visible; }
.settings p { font-size: 1rem; }
.settings .meta { font-family: var(--sans); font-size: var(--step--1); font-weight: 500; color: var(--foehre-2); margin: 0; }
.glyph .g-line, .glyph .g-node { stroke-width: 3; }

.topics-wrap h3 { margin-bottom: 1rem; }
.topics { list-style: none; margin: 0 0 1.5rem; padding: 0; columns: 3 15rem; column-gap: var(--gap); }
.topics li {
  break-inside: avoid;
  display: flex; gap: .75rem; align-items: baseline;
  padding: .6rem 0; border-bottom: 1px solid var(--linie);
}
.topics li::before {
  content: ""; flex: none; width: .6rem; height: .6rem; border-radius: 50%;
  border: 2px solid var(--foehre); transform: translateY(-.05em);
}

/* Ablauf: echte Reihenfolge, daher nummeriert */
.steps {
  list-style: none; counter-reset: step;
  margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem var(--gap);
}
.steps li { counter-increment: step; position: relative; padding-top: 4.5rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--papier); border: 3px solid var(--foehre);
  font-family: var(--sans); font-weight: 700; font-size: 1.125rem;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.5rem; left: 3rem; right: calc(-1 * var(--gap));
  height: 3px; background: var(--foehre); transform: translateY(-50%);
}
.steps p { font-size: 1rem; }

/* Kosten */
.costs { row-gap: 1.5rem; align-items: start; }
.costs h2 { grid-column: 1 / span 5; }
.prices-wrap { grid-column: 7 / span 6; }
.prices { margin: 0 0 1.5rem; }
.prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(245, 246, 242, .35); }
.prices div:last-child { border-bottom: 1px solid rgba(245, 246, 242, .35); }
.prices dt { margin: 0; }
.prices dt small { display: block; font-size: var(--step--1); color: var(--nebel); }
.prices dd {
  margin: 0; white-space: nowrap;
  font-family: var(--sans); font-weight: 700; font-stretch: 112%; font-size: var(--step-2);
  font-variant-numeric: tabular-nums;
}
.on-dark .note { color: var(--nebel); }

/* Praxis */
.place { row-gap: 2.5rem; }
.place > div { grid-column: span 4; }
address { font-style: normal; font-family: var(--sans); font-weight: 600; font-stretch: 110%; font-size: var(--step-2); line-height: 1.25; margin-bottom: 1rem; }
.hours { margin: 0 0 1rem; display: grid; grid-template-columns: max-content 1fr; }
.hours dt, .hours dd { padding: .5rem 0; border-top: 1px solid var(--linie); margin: 0; font-size: 1rem; line-height: 1.5; }
.hours dt { font-family: var(--sans); font-weight: 600; padding-right: 1.25rem; }
.hours dd { font-variant-numeric: tabular-nums; }

/* Kontakt */
.contact-form { row-gap: 3rem; }
.contact-form form { grid-column: 1 / span 7; }
.contact-form .direct { grid-column: 9 / span 4; }
form { display: grid; gap: 1.25rem; max-width: 38rem; }
.field label, fieldset legend { display: block; font-family: var(--sans); font-weight: 600; font-size: 1rem; margin-bottom: .4rem; }
.hint { font-weight: 400; color: var(--foehre-2); font-size: var(--step--1); }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--foehre);
  background: var(--papier); border: 2px solid var(--foehre-2); border-radius: .25rem;
  padding: .7rem .85rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--foehre); }
input[aria-invalid="true"] { border-color: var(--fehler); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; }
.choice label, .consent { display: flex; gap: .55rem; align-items: baseline; }
input[type=radio], input[type=checkbox] { accent-color: var(--foehre); width: 1.1rem; height: 1.1rem; flex: none; transform: translateY(.15em); margin: 0; }
.consent { font-size: 1rem; }
.form-status { padding: 1rem 1.2rem; background: var(--papier); border-left: 4px solid var(--ringel); }
.form-status[hidden], .error[hidden] { display: none; }
.error { color: var(--fehler); font-family: var(--sans); font-size: var(--step--1); font-weight: 500; margin: .35rem 0 0; }

.direct .label, .contact-simple h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; font-stretch: 100%; color: var(--foehre-2); margin: 0 0 .25rem; }
.big { font-family: var(--sans); font-weight: 650; font-stretch: 110%; font-size: var(--step-1); margin: 0 0 .25rem; overflow-wrap: anywhere; }
.direct > div + div { margin-top: 1.5rem; }
.direct .ratfinder { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--foehre); }

.contact-simple { list-style: none; margin: 0; padding: 0; row-gap: 2.5rem; }
.contact-simple > div { grid-column: span 4; border-top: 2px solid var(--foehre); padding-top: 1.25rem; }
.contact-simple .note { margin: .4rem 0 0; }

/* ---------- Kontakt-Variante ----------
   <body data-contact="simple"> = Basis: E-Mail, Telefon, Ratfinder
   <body data-contact="form">   = Plus/Pro: Anfrageformular */
body[data-contact="form"] .variant-simple { display: none !important; }
body:not([data-contact="form"]) .variant-form { display: none !important; }

/* Krise */
.crisis { background: var(--kalk); color: var(--foehre); padding: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.crisis .wrap { border-top: 1px solid var(--linie); padding-top: clamp(2rem, 4vw, 3rem); }
.crisis .grid { row-gap: 1.5rem; align-items: start; }
.crisis-head { grid-column: 1 / span 4; }
.crisis h2 { font-size: var(--step-1); margin-bottom: .5rem; }
.crisis-head p { font-size: 1rem; }
.numbers { grid-column: 5 / span 8; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.numbers li { border-top: 2px solid var(--foehre); padding-top: .75rem; }
.numbers a { display: inline-block; font-family: var(--sans); font-weight: 800; font-stretch: 125%; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); line-height: 1; text-decoration: none; margin-bottom: .4rem; }
.numbers a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.numbers p { font-size: 1rem; line-height: 1.45; margin: 0; }
.numbers b { font-family: var(--sans); font-weight: 650; }

/* Fußzeile */
.site-foot { padding: 2.5rem 0 2.75rem; font-family: var(--sans); font-size: .9375rem; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem 2rem; }
.site-foot p { margin: 0; max-width: none; }
.site-foot ul { list-style: none; display: flex; gap: 1.5rem; padding: 0; margin: 0; }
.site-foot .credit { width: 100%; color: var(--nebel); padding-top: 1rem; border-top: 1px solid rgba(245, 246, 242, .25); }
.site-foot .credit a { color: var(--papier); }

/* Unterseiten */
.legal { padding: clamp(2rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.legal .wrap { border-top: 2px solid var(--foehre); padding-top: clamp(1.75rem, 4vw, 3rem); }
.legal h1 { font-size: var(--step-3); font-weight: 750; font-stretch: 125%; letter-spacing: -0.02em; margin-bottom: 1.75rem; }
.legal h2 { font-size: var(--step-1); font-stretch: 110%; letter-spacing: 0; margin: 2.25rem 0 .5rem; }

/* ---------- Responsiv ---------- */
@media (max-width: 1000px) {
  .hero-text { grid-column: 1 / span 7; }
  .genogram { grid-column: 8 / span 5; }
  .about-text { grid-column: 5 / span 8; }
  .portrait { grid-column: 1 / span 4; }
  .about-cv { grid-column: 1 / span 6; }
  .about-method { grid-column: 7 / span 6; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2)::after { display: none; }
  .costs h2, .prices-wrap { grid-column: 1 / -1; }
  .prices-wrap { max-width: 36rem; }
  .place > div { grid-column: span 6; }
  .contact-form form { grid-column: 1 / -1; }
  .contact-form .direct { grid-column: 1 / span 8; }
  .crisis-head, .numbers { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero-text, .genogram,
  .portrait, .about-text, .about-cv, .about-method,
  .head h2, .head .section-intro,
  .settings li, .place > div,
  .contact-form .direct, .contact-simple > div { grid-column: 1 / -1; }
  .genogram { max-width: 21rem; justify-self: start; }
  .portrait { max-width: 16rem; }
  .numbers { grid-template-columns: 1fr; gap: 1.25rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps li { padding: 0 0 0 4.25rem; min-height: 3rem; }
  .steps li:not(:last-child)::after { display: block; top: 3rem; bottom: -2rem; left: 1.5rem; right: auto; width: 3px; height: auto; transform: translateX(-50%); }
  .site-nav ul { gap: .1rem 1.1rem; }
}
@media (max-width: 480px) {
  .btn { width: 100%; text-align: center; align-items: center; }
  .actions { flex-direction: column; }
  .hours { grid-template-columns: 1fr; }
  .hours dt { padding-bottom: 0; }
  .hours dd { border-top: 0; padding-top: .1rem; }
}
