/* ==========================================================================
   Der Chancenraum, Psychotherapeutische Gemeinschaftspraxis
   Erster Entwurf. Farben aus dem Logo (AA-geprueft, siehe marke/kontrast.txt).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Schriften, self-hosted, KEIN Google-Fonts-CDN. Die dynamische Einbindung
   von Google Fonts ohne Einwilligung wurde als DSGVO-Verstoss gewertet
   (LG Muenchen I, 3 O 17493/20). Dateien unter assets/fonts/, eigener Server.
   Lora + Raleway als Variable Fonts, Cormorant Garamond italic. SIL OFL 1.1.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-variable.woff2') format('woff2-variations');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-italic-variable.woff2') format('woff2-variations');
  font-weight: 400 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway-variable.woff2') format('woff2-variations');
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2');
  font-weight: 400 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-bold-italic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  --grund:        #FBF8F2;
  --flaeche:      #FFFFFF;
  --sonne:        #F7EAD6;
  --salbei-hell:  #E7E9DF;
  --salbei:       #85876B;
  --salbei-tief:  #5F6249;
  --text:         #3B3B35;
  --leise:        #63635A;
  --linie:        #E3DCCF;
  --stempel:      #A2542F;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:  'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --inhalt: 1120px;
  --radius: 16px;
  --sektion: clamp(56px, 8vw, 104px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--grund);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--salbei-tief); }

.inhalt { max-width: var(--inhalt); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--text); line-height: 1.2; }

/* ---------------------------------------------------------------- Kopfzeile */
.kopf {
  position: sticky; top: 0; z-index: 50;
  /* Fast deckend statt backdrop-filter: Der Blur wuerde das aufklappende
     Mobil-Menue (absolut positioniertes Kind) hinter das Hero-Foto stapeln. */
  background: var(--grund);
  border-bottom: 1px solid var(--linie);
}
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.marke { display: flex; align-items: center; gap: 15px; text-decoration: none; color: inherit; }
/* Signet = Original-Pinselstrich-Artwork (assets/img/signet.png, transparent).
   Wortmarke folgt der Typografie des Original-Logos: lichte Sans, Unterzeile
   gesperrt in Versalien. */
.marke img { width: 60px; height: 60px; flex: none; object-fit: contain; }
.marke-text { display: flex; flex-direction: column; }
.marke-name { font-family: var(--sans); font-weight: 300; font-size: 1.5rem; line-height: 1.05; letter-spacing: 0.01em; color: var(--text); }
.marke-sub { font-family: var(--sans); font-weight: 500; font-size: 0.62rem; line-height: 1.2; letter-spacing: 0.22em; text-transform: uppercase; color: var(--salbei); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.nav-link { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.98rem; }
.nav a.nav-link:hover { color: var(--salbei-tief); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s;
  white-space: nowrap;
}
.button--primaer { background: var(--salbei-tief); color: #fff; }
.button--primaer:hover { background: #4C5040; }
.button--sekundaer { background: transparent; color: var(--salbei-tief); border-color: var(--salbei); }
.button--sekundaer:hover { background: var(--salbei-hell); }

/* Burger-Knopf (nur mobil sichtbar) */
.burger {
  display: none; width: 46px; height: 46px; flex: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.burger span { display: block; width: 25px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; }
.hero-bild {
  /* Rahmen im Bildformat 3:2, zentriert und nach oben gedeckelt: cover zeigt so
     das ganze Foto ohne Beschnitt, und die Kanten laufen ueber die Maske weich
     ins Creme, statt hart abzuschneiden. */
  position: relative; width: 100%; max-width: min(900px, 66vh); margin-inline: auto;
  aspect-ratio: 3 / 2; height: auto;
  /* sichtbar, damit der Stempel unten ueber die Bildkante ins Creme ragen darf */
  overflow: visible;
}
/* Weicher seitlicher Verlauf ins Creme, auf Foto UND Bodenschatten, damit das
   Bild links und rechts sauber mit dem Hintergrund verschmilzt. Nur horizontal,
   damit der Stempel (eigenes Element) scharf bleibt. */
.hero-bild img,
.hero-bild::after {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 13%, #000 87%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 13%, #000 87%, transparent 100%);
}
.hero-bild img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
}
.hero-bild::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(59,59,53,0) 60%, rgba(59,59,53,0.16) 100%);
}
.stempel {
  /* Unten MITTIG an der Bildkante, halb aufs Foto und halb ins Creme. Zentral,
     damit es auf jedem Monitor sicher sichtbar ist, aber unter den Gesichtern.
     z-index, damit es ueber Foto UND Cremeflaeche liegt. */
  position: absolute; bottom: -26px; left: 50%; top: auto; right: auto; z-index: 5;
  font-family: var(--sans); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; font-size: 0.98rem; line-height: 1.15; text-align: center;
  color: var(--stempel); background: var(--grund);
  border: 2.5px solid var(--stempel); border-radius: 10px;
  padding: 11px 22px; transform: translateX(-50%) rotate(-4deg);
}

.hero-text { text-align: center; padding: clamp(26px, 3.2vw, 40px) 0 0; }
.hero-text h1 {
  /* Etwas kleiner und breiter gesetzt, damit der ganze Satz auch auf
     Laptop-Bildschirmen ohne Scrollen sichtbar bleibt (Wunsch Denise). */
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.35;
  max-width: 46ch; margin: 0 auto 16px; font-weight: 400; /* Ortsangabe regular, nur <strong> fett */
}
/* Kernwoerter (Zielgruppen) heben sich ueber eine geschwungene Schrift ab
   (Auswahl noch offen). Farbe: Salbeigruen der Marke, kein Textmarker. */
.hero-text h1 .akzent {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 700;
  /* Cormorant ist auch in 700 zart; feine Kontur laesst die Akzente so fett
     wirken wie "Psychotherapie fuer" in Lora 700 (Vorlage Denise). */
  -webkit-text-stroke: 0.55px currentColor;
  color: var(--salbei-tief);
  font-size: 1.16em;
}
.hero-adresse { color: var(--leise); font-size: 1.02rem; margin: 0 0 24px; }
.hero-adresse strong { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- Sektionen */
.sektion { padding-block: var(--sektion); }
.sektion--warm { background: var(--salbei-hell); }
.kicker {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.72rem; color: var(--salbei);
  margin: 0 0 10px;
}
.sektion-titel { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; }
.sektion-kopf { max-width: 40ch; margin-bottom: 40px; }
/* Ueber uns: Kopf mittig ueber den zwei Portraits und breit genug, dass die
   Headline in zwei statt drei Zeilen laeuft (Wunsch Denise). */
#ueber-uns .sektion-kopf { max-width: 34rem; margin-inline: auto; text-align: center; }
/* Signet wiederholt sich als kleines Zeichen ueber jedem Sektionskopf. */
.sektion-logo { width: 52px; height: 52px; display: block; margin: 0 0 10px; }
#ueber-uns .sektion-logo { margin-inline: auto; }
.prosa p { max-width: 62ch; margin: 0 0 1em; }

/* ---------------------------------------------------------------- Ueber uns */
.personen { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.person { text-align: center; }
.person-bild {
  width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius); background: var(--salbei-hell); margin-bottom: 20px;
}
.person-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.person h3 { font-size: 1.4rem; margin: 0 0 4px; }
.person .rolle { color: var(--leise); margin: 0 0 4px; }
.person .tel { color: var(--text); font-weight: 500; margin: 0 0 18px; }
.person .tel a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- Praxis + Kontakt */
.raster-kontakt { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-karte {
  background: var(--sonne); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: 0 1px 0 var(--linie);
  margin-top: 28px; /* frueher inline im HTML, das blockt die CSP */
}
.info-karte h3 { font-size: 1.2rem; margin: 0 0 14px; }
.info-zeile { padding: 12px 0; border-top: 1px solid rgba(59,59,53,0.10); }
.info-zeile:first-of-type { border-top: none; }
.info-zeile .label {
  /* Deutlich fett und dunkel, damit "Praxiszeiten"/"Kosten" hervorstechen. */
  display: block; font-family: var(--sans); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.88rem; color: var(--text); margin-bottom: 4px;
}
.frei {
  display: inline-block; margin-top: 6px;
  background: var(--salbei-tief); color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 8px 16px; border-radius: 999px;
}
.oeffi { font-size: 0.98rem; color: var(--leise); }

/* ---------------------------------------------------------------- Formular */
.formular-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px 30px; }
.formular-karte h3 { font-size: 1.2rem; margin: 0 0 6px; }
.hinweis { color: var(--leise); font-size: 0.92rem; margin: 0 0 18px; }
.feld { margin-bottom: 16px; }
.feld label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.feld label .opt { color: var(--leise); font-weight: 400; }
.feld input, .feld textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--linie); border-radius: 10px; background: #fff;
}
.feld textarea { min-height: 130px; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: 2px solid var(--salbei); outline-offset: 1px; border-color: var(--salbei); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--leise); }
/* Checkbox NICHT auf 100% Breite (die .feld-input-Regel oben gilt sonst auch
   fuer sie und draengt den Label-Text aus dem Bild). Feste kleine Groesse. */
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; padding: 0; }
.check label { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- Fusszeile */
.fuss { background: var(--salbei-tief); color: #EDEAE0; padding-block: 44px; font-size: 0.95rem; }
.fuss a { color: #fff; }
.fuss-marke { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin-bottom: 4px; }
.fuss-zeile { line-height: 1.8; }
.fuss-nav { margin-top: 18px; display: flex; gap: 20px; }
.fuss-nav a { color: #D9D6CC; text-decoration: none; }
.fuss-nav a:hover { color: #fff; }

/* ---------------------------------------------------------------- Formular-Schutz + Statusseiten */
/* Honigtopf: aus dem Sichtfeld, nicht display:none (manche Bots pruefen das). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status-haupt .inhalt { max-width: 640px; }
.status-karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 40px 32px; text-align: center;
}
.status-karte h1 { font-size: 1.6rem; margin: 0 0 10px; }
.status-karte p { margin: 0 0 14px; color: var(--leise); }
.status-karte .button { margin-top: 8px; }
.krisen {
  margin-top: 22px; background: var(--sonne); border-radius: var(--radius);
  padding: 18px 22px; font-size: 0.95rem; color: var(--text);
}
.krisen strong { color: var(--stempel); }
.status-karte .krisen { color: var(--text); margin-top: 6px; }

/* ---------------------------------------------------------------- Rechtstexte */
.zurueck-link { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.98rem; }
.zurueck-link:hover { color: var(--salbei-tief); }
.rechtstext { max-width: 70ch; margin-inline: auto; }
.rechtstext h1 { margin-bottom: 24px; }
.rechtstext h2 { font-size: 1.28rem; margin: 36px 0 8px; }
.rechtstext h3 { font-size: 1.08rem; margin: 24px 0 6px; }
.rechtstext p { margin: 0 0 1em; }
.rechtstext address { font-style: normal; line-height: 1.85; margin: 6px 0 18px; }
.rechtstext ul { margin: 0 0 1em; padding-left: 1.25em; }
.rechtstext li { margin-bottom: 7px; }
.rechtstext .platzhalter {
  background: var(--sonne); border: 1px dashed var(--stempel); color: var(--stempel);
  padding: 1px 6px; border-radius: 5px; font-weight: 600; font-size: 0.9em;
}
.zurueck-zeile { margin-top: 44px; }
.zurueck { color: var(--salbei-tief); font-weight: 600; text-decoration: none; }
.zurueck:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- Responsiv */
@media (max-width: 820px) {
  .raster-kontakt { grid-template-columns: 1fr; }
  .kopf-zeile { position: relative; }
  .burger { display: inline-flex; }

  /* Menue als aufklappendes Panel unter der Kopfzeile. z-index/isolation, damit
     es zuverlaessig ueber dem Hero liegt (backdrop-filter der Kopfzeile stapelt
     absolut positionierte Kinder sonst dahinter). */
  .nav {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    z-index: 60; isolation: isolate;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--flaeche); border-bottom: 1px solid var(--linie);
    padding: 6px 24px 18px;
    box-shadow: 0 12px 24px rgba(59,59,53,0.10);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav--offen { transform: none; opacity: 1; pointer-events: auto; }
  .nav .nav-link {
    display: block; padding: 14px 2px; font-size: 1.06rem;
    border-bottom: 1px solid var(--linie);
  }
  .nav .button { margin-top: 16px; width: 100%; }
}
@media (max-width: 620px) {
  /* Auf dem Phone die seitlichen Verlaeufe weglassen: das Bild ist schmal,
     die Fades wuerden zu viel vom Foto wegnehmen (Wunsch Denise/Dominik). */
  .hero-bild img, .hero-bild::after { -webkit-mask-image: none; mask-image: none; }
  /* Auf dem Phone volle Breite (kein 900px-Deckel), Foto laeuft randlos. */
  .hero-bild { max-width: none; flex: none; }
  /* Der Hero fuellt den ersten Bildschirm (Kopfzeile 84px abgezogen), damit
     "Ueber uns" nicht anschneidet; Text sitzt mittig im Restraum, etwas tiefer. */
  .hero { min-height: calc(100svh - 84px); display: flex; flex-direction: column; }
  @supports not (height: 100svh) { .hero { min-height: calc(100vh - 84px); } }
  .hero-text {
    flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 44px 24px 28px;
  }
  .hero-text h1 { margin-bottom: 14px; }
  /* Stempel kleiner */
  .stempel { font-size: 0.78rem; padding: 8px 14px; bottom: -18px; border-width: 2px; letter-spacing: 0.06em; }
  /* Beide Portraits nebeneinander, gleichrangig (keine Rangordnung), kompakt. */
  .personen { grid-template-columns: 1fr 1fr; gap: 14px; max-width: none; }
  .person-bild { margin-bottom: 12px; }
  .person h3 { font-size: 1.05rem; margin-bottom: 2px; }
  .person .rolle { font-size: 0.78rem; line-height: 1.35; margin-bottom: 4px; }
  .person .tel { font-size: 0.9rem; margin-bottom: 12px; }
  .person .button { width: 100%; padding: 9px 10px; font-size: 0.85rem; white-space: normal; }
  .marke-sub { display: none; }
  .marke-name { font-size: 1.18rem; }
  .marke img { width: 52px; height: 52px; }
}

/* ---------------------------------------------------------------- Desktop breit */
@media (min-width: 1100px) {
  /* Zweispaltiger Hero: ganzes Foto links (3:2, folgt der Spaltenbreite),
     Headline/Adresse/Button rechts, vertikal zentriert. Nutzt die Breite, der
     Text bleibt im ersten Bildschirm (Wunsch Denise/Katharina, Runde 3). */
  .hero {
    display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    align-items: center; gap: clamp(32px, 4vw, 72px);
    max-width: 1280px; margin-inline: auto;
    padding: clamp(24px, 3vw, 48px) 24px 34px;
  }
  .hero-bild { max-width: none; width: 100%; margin: 0; }
  .hero-text { text-align: left; padding: 0; max-width: none; margin: 0; }
  .hero-text h1 {
    font-size: clamp(1.35rem, 1.8vw, 1.85rem); max-width: none; margin: 0 0 18px;
  }
  .hero-adresse { margin-bottom: 26px; }
}
