/* =========================================================
   Vorlage 1 "Ruhig & persönlich" – Psychotherapie-Praxis
   Farben und Schrift zentral hier ändern.
   ========================================================= */

/* Literata (SIL Open Font License), lokal eingebunden: keine Verbindung zu Google, kein Cookie-Banner nötig */
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(fonts/literata-italic-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: 'Literata';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(fonts/literata-italic-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: 'Literata';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/literata-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: 'Literata';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/literata-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 {
  --wand:     #E3E9EC;  /* Hintergrund: hellgraublaue Altbauwand */
  --wand-2:   #D6DFE3;  /* etwas dunklere Wand für ruhige Abschnitte */
  --rahmen:   #F8F7F3;  /* weißer Fensterlack: Rahmen, Formularfelder */
  --tinte:    #1E3440;  /* Text, Überschriften */
  --tinte-2:  #4A5C65;  /* Nebentext */
  --pflaume:  #6E3B57;  /* Aktion: Buttons, Links */
  --licht:    #F4E7B8;  /* Morgenlicht */
  --parkett:  #A9793F;  /* nur kleine Details */

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --measure: 34em;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--wand);
  color: var(--tinte);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.68;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); margin-bottom: 1.1rem; font-variation-settings: "opsz" 48; }
h3 { font-size: var(--step-1); font-weight: 500; margin-bottom: .4rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: var(--pflaume); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip { position: absolute; left: -999px; top: 0; background: var(--rahmen); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(72rem, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Demo-Hinweis ---------- */
.demo-bar {
  background: var(--tinte);
  color: var(--rahmen);
  font-size: var(--step--1);
  padding: .55rem 0;
}
.demo-bar p { margin: 0; max-width: none; }
.demo-bar strong { font-weight: 600; }

/* ---------- Kopfzeile ---------- */
.site-head { padding: 1.4rem 0; }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--tinte); line-height: 1.25; }
.brand b { display: block; font-weight: 500; font-size: 1.15rem; }
.brand span { font-size: var(--step--1); color: var(--tinte-2); }
.site-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--tinte); text-decoration: none; font-size: .98rem; }
.site-nav a:hover { text-decoration: underline; }

/* ---------- Hero mit Fenster und Lichtfleck ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2rem, 6vw, 5rem) 0 clamp(3.5rem, 8vw, 7rem); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hero-text { position: relative; z-index: 2; }
.hero h1 {
  font-size: var(--step-3);
  font-weight: 300;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.02em;
  max-width: 13em;
  margin-bottom: 1.5rem;
}
.hero .lead { font-size: 1.15rem; color: var(--tinte); max-width: 30em; }

.light {
  position: absolute; z-index: 1; pointer-events: none;
  left: -4%; top: 6%; width: 80%; height: 100%;
  animation: sun 3.2s cubic-bezier(.3,.1,.2,1) .3s both;
}
@keyframes sun {
  from { opacity: 0; transform: translateX(4%) skewX(-4deg); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .light { animation: none; } }

.window { position: relative; z-index: 2; justify-self: end; width: 100%; max-width: 320px; }
.window svg { display: block; width: 100%; height: auto; }

.actions { display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; align-items: center; margin: 2rem 0 1.2rem; }
.btn {
  display: inline-block;
  font: inherit; font-size: 1rem; font-weight: 500;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--pflaume);
  line-height: 1.2;
}
.btn-primary { background: var(--pflaume); color: var(--rahmen); }
.btn-primary:hover { background: #5a2f47; border-color: #5a2f47; }
.btn-ratfinder { background: var(--rahmen); color: var(--tinte); border-color: var(--tinte); }
.btn-ratfinder:hover { background: #fff; }
.btn-ratfinder small { display: block; font-size: .78rem; font-weight: 400; color: var(--tinte-2); }
.availability { font-size: var(--step--1); color: var(--tinte-2); display: flex; align-items: center; gap: .5rem; margin: 0; }
.availability::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #5F8A6B; flex: none; }

/* ---------- Abschnitte ---------- */
section { scroll-margin-top: 1rem; }
.block { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.block-tone { background: var(--wand-2); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 5vw, 5rem); }

/* Über mich */
.portrait {
  margin: 0;
  background: var(--rahmen);
  padding: 14px 14px 0;
  align-self: start;
  max-width: 340px;
}
.portrait .room svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; }
.portrait img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.portrait figcaption { font-size: var(--step--1); color: var(--tinte-2); padding: .7rem 0 .8rem; }
.quote { font-size: var(--step-1); font-style: italic; font-weight: 300; max-width: 26em; margin: 2rem 0 0; padding-left: 1.2rem; border-left: 2px solid var(--parkett); }

/* Ausbildung */
.cv { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .7rem 2rem; max-width: 44rem; }
.cv dt { color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.cv dd { margin: 0; }
.method { margin-top: 2.5rem; max-width: var(--measure); }

/* Themen */
.topics { list-style: none; margin: 0 0 2rem; padding: 0; columns: 2 15rem; column-gap: 3rem; max-width: 44rem; }
.topics li { break-inside: avoid; padding: .55rem 0; border-bottom: 1px solid #bccad0; }
.note { color: var(--tinte-2); font-size: .98rem; }
.lead-small { font-size: 1.1rem; max-width: 32em; margin-bottom: 1.5rem; }

/* Ablauf: echte Reihenfolge, daher nummeriert */
.steps { list-style: none; counter-reset: step; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.6rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  font-size: 2.6rem; font-weight: 300; line-height: 1; color: var(--parkett);
  font-variation-settings: "opsz" 72;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.3rem; left: 2.6rem; right: -1rem; height: 1px; background: #b7c5cb;
}
.steps p { font-size: .98rem; }

/* Kosten */
.prices { margin: 0 0 1.25rem; max-width: 36rem; }
.prices div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid #bccad0; }
.prices dt { margin: 0; }
.prices dt small { display: block; color: var(--tinte-2); font-size: var(--step--1); }
.prices dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }

/* Ort */
.place-grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); }
address { font-style: normal; font-size: var(--step-1); margin-bottom: 1rem; line-height: 1.45; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
form { display: grid; gap: 1.2rem; max-width: 36rem; }
.field label, fieldset legend { display: block; font-weight: 500; margin-bottom: .35rem; font-size: .98rem; }
.field .hint { font-weight: 400; color: var(--tinte-2); font-size: var(--step--1); }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; font: inherit; color: var(--tinte);
  background: var(--rahmen); border: 1px solid #9fb0b8; border-radius: 6px;
  padding: .75rem .9rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--pflaume); }
fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.choice label, .consent { display: flex; gap: .55rem; align-items: baseline; font-weight: 400; }
input[type=radio], input[type=checkbox] { accent-color: var(--pflaume); width: 1.05rem; height: 1.05rem; flex: none; transform: translateY(.15em); }
.consent { font-size: .95rem; }
.form-status { padding: 1rem 1.2rem; background: var(--rahmen); border-left: 3px solid #5F8A6B; }
.form-status[hidden] { display: none; }
.error { color: #8a1f2d; font-size: var(--step--1); margin: .3rem 0 0; }

.direct p { margin-bottom: .4rem; }
.direct .ratfinder { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid #b7c5cb; }

/* Krise */
.crisis { background: var(--rahmen); padding: 1.6rem 0; font-size: .98rem; }
.crisis h2 { font-size: var(--step-1); font-weight: 500; margin-bottom: .35rem; }
.crisis p { max-width: 60rem; margin: 0; }

/* Fußzeile */
.site-foot { background: var(--tinte); color: #cfdbe0; padding: 2.5rem 0; font-size: var(--step--1); }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.site-foot a { color: var(--rahmen); }
.site-foot ul { list-style: none; display: flex; gap: 1.5rem; padding: 0; margin: 0; }
.site-foot p { margin: 0; max-width: none; }

/* Credit-Zeile */
.site-foot .credit { width: 100%; color: #9fb3bc; font-size: .8rem; }
.site-foot .credit a { color: #cfdbe0; }

/* ---------- Kontakt-Variante ----------
   <body data-contact="form">   = Plus/Pro: Terminanfrage-Formular
   <body data-contact="simple"> = Basis: nur Telefon, E-Mail, Ratfinder */
body[data-contact="simple"] .variant-form { display: none !important; }
body:not([data-contact="simple"]) .variant-simple { display: none !important; }
.contact-simple { display: grid; grid-template-columns: repeat(3, max-content); gap: 1.5rem 3.5rem; align-items: start; margin-top: 2rem; }
.contact-simple h3 { font-size: 1rem; font-weight: 400; color: var(--tinte-2); margin-bottom: .2rem; }
.contact-simple .big { font-size: var(--step-1); margin: 0; }
.contact-simple .note { margin-top: .4rem; }
@media (max-width: 900px) { .contact-simple { grid-template-columns: 1fr; } }

/* Unterseiten */
.legal { padding: 3rem 0 5rem; }
.legal h1 { font-size: var(--step-3); font-weight: 300; margin-bottom: 2rem; }
.legal h2 { font-size: var(--step-1); font-weight: 500; margin: 2rem 0 .5rem; }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps li:nth-child(2)::after { display: none; }
  .contact-grid, .place-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .window { order: -1; justify-self: end; max-width: 130px; margin-bottom: -1rem; }
  .portrait { max-width: 240px; }
  .steps li { padding-top: 0; padding-left: 3rem; }
  .steps li::before { font-size: 2.2rem; }
  .light { width: 140%; height: 70%; left: -20%; bottom: 0; }
  .split { grid-template-columns: 1fr; }
  .site-nav ul { gap: 1.1rem; }
  .cv { grid-template-columns: 1fr; gap: .1rem; }
  .cv dd { margin-bottom: .8rem; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .btn { width: 100%; text-align: center; }
}
