/* Psychotherapie Kirchmair – Stylesheet
   Corporate Design: Grün #88C03E · Schiefergrau #4A4A4A · Off-White #F9F9F7
   Sekundärfarbe (ersetzt Senfgelb): Hellblau (Standard) bzw. Hellorange
   Schriften (selbst gehostet): Cormorant Garamond, Raleway, Amatic SC, Roboto Condensed (Wortmarke) */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Amatic SC"; src: url("../fonts/amatic-sc-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("../fonts/roboto-condensed-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

@font-face { font-family: "Raleway Fallback"; src: local("Arial"); size-adjust: 106%; ascent-override: 90%; descent-override: 23%; }
@font-face { font-family: "Marke Fallback"; src: local("Arial Narrow"), local("Arial"); size-adjust: 88%; }

:root {
  --gruen: #88C03E;
  --gruen-text: #4F7F1A;          /* Grün mit ausreichendem Kontrast für Text/Links */
  --gruen-aktiv: #46701A;         /* Hover/Active für alles Klickbare */
  --text: #4A4A4A;
  --text-leise: #666666;
  --auf-gruen: #1F2A12;           /* Text auf hellgrünen Flächen (Kontrast 6,9:1) */
  --bg: #F9F9F7;
  --weiss: #FFFFFF;
  --linie: #E4E4DF;

  /* Sekundärfarbe – Standard: Hellblau (aus dem Logo abgeleitet) */
  --akzent: #5FA9C3;
  --akzent-text: #2F7189;
  --akzent-hell: #E6F2F6;

  /* Claim „Neugierde auf mich“ – Probe: Violett (aus dem Logo) */
  --claim: #7A4BC6;
  --claim-hero: #B79CF2;
  --akzent-hero: #8CCDE3;
  --gruen-hero: #A8D867;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Raleway", "Raleway Fallback", Arial, sans-serif;
  --hand: "Amatic SC", "Comic Sans MS", cursive;
  --marke: "Roboto Condensed", "Marke Fallback", Arial, sans-serif;

  --breite: 1120px;
  --radius: 14px;
  --schatten: 0 10px 30px rgba(74, 74, 74, .08);
}

/* Varianten für die Abstimmung mit dem Kunden (Vorschau-Leiste) */
html[data-farbe="orange"] { --akzent-hero: #F4BB7E; --akzent: #E8A25B; --akzent-text: #B8702A; --akzent-hell: #FBF0E3; }
html[data-farbe="gelb"]   { --akzent-hero: #D9CF5A; --akzent: #C4B93D; --akzent-text: #8E8526; --akzent-hell: #F5F3DC; }
html[data-claim="gruen"]  { --claim: #88C03E; --claim-hero: #A8D867; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.75; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen-text); text-underline-offset: 3px; -webkit-tap-highlight-color: rgba(136, 192, 62, .25); }
a:hover, a:active { color: var(--gruen-aktiv); }
p a:not(.btn):not(.link-pfeil), .unterseite a { text-decoration: underline; }
button { -webkit-tap-highlight-color: rgba(136, 192, 62, .25); }
:focus-visible { outline: 3px solid var(--gruen-aktiv); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px #fff; }
.hero :focus-visible, .vision :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px rgba(0, 0, 0, .6); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--text); margin: 0 0 .6em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
/* Sektions-Überschriften im Stil des Claims „Neugierde auf mich“ */
main:not(.unterseite) h2 { font-family: var(--hand); font-weight: 700; font-size: clamp(2.8rem, 6vw, 4rem); line-height: 1.05; letter-spacing: .03em; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }

.container { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--weiss { background: var(--weiss); }
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gruen-text); margin-bottom: .8rem; display: block; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(249, 249, 247, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.ist-gescrollt { border-color: var(--linie); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__marke { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--akzent-text); font-family: var(--marke); font-size: 1.3rem; line-height: 1; white-space: nowrap; }
.nav__marke:hover { color: var(--akzent-text); opacity: .85; }
.nav__marke img { width: 36px; height: auto; }
.nav__links { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 600; letter-spacing: .02em; }
.nav__links a:hover { color: var(--gruen-aktiv); }
.nav__links .nav__cta { background: var(--gruen); color: var(--auf-gruen); padding: .55rem 1.1rem; border-radius: 999px; }
.nav__links .nav__cta:hover, .nav__links .nav__cta:active { background: #79B032; color: var(--auf-gruen); }
.nav__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--text); }

/* ---------- Hero mit Sternenhimmel ---------- */
.hero { position: relative; color: #fff; text-align: center; overflow: hidden; min-height: min(86vh, 760px); display: flex; align-items: center; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.hero__bild { position: absolute; inset: 0; }
.hero__bild img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 18, 34, .55) 0%, rgba(12, 18, 34, .35) 55%, rgba(12, 18, 34, .6) 100%); }
.hero__inhalt { position: relative; }
.lockup { display: inline-flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.8rem); margin: 0; font-weight: 400; text-align: left; }
.lockup__bild { width: clamp(120px, 14vw, 180px); flex: none; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .35)); }
.lockup__titel { font-family: var(--marke); font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: .005em; hyphens: manual; }
.lockup__praxis { color: var(--akzent-hero); }
.lockup__vt { color: var(--akzent-hero); }
.hero .claim { color: var(--claim-hero); }
.claim { font-family: var(--hand); font-weight: 700; color: var(--claim); font-size: clamp(2.2rem, 4.2vw, 3rem); letter-spacing: .04em; margin: 1.6rem 0 0; line-height: 1; }
.hero__ort span { white-space: nowrap; }
.hero__ort { margin: 1rem 0 0; color: rgba(255, 255, 255, .9); font-size: clamp(1.1rem, 1.6vw, 1.3rem); letter-spacing: .01em; }
.hero__cta { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; margin-top: clamp(2rem, 4vw, 2.8rem); }

.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.btn svg { width: 18px; height: 18px; }
.btn--gruen { background: var(--gruen); color: var(--auf-gruen); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.btn--gruen:hover { background: #79B032; color: var(--auf-gruen); transform: translateY(-1px); }
.btn--gruen:active { background: #6CA02A; transform: none; }
.btn--gross { padding: 1.05rem 2rem; font-size: 1.1rem; }
.btn--gross svg { width: 20px; height: 20px; transition: transform .2s; }
.btn--gross:hover svg { transform: translateY(3px); }
.btn--hell { background: rgba(255, 255, 255, .94); color: var(--text); }
.btn--hell:hover { background: #fff; color: var(--gruen-aktiv); transform: translateY(-1px); }
.btn--hell:active { transform: none; }

/* ---------- Schwerpunkte ---------- */
.zwei-spalten > *, .vt > *, .ueber > *, .kontakt > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.foto { border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.themen { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
/* Schwerpunkte: weiße Pills mit Punkt in den Logo-Farben */
.themen li { background: #fff; border: 1px solid var(--linie); color: var(--text); border-radius: 999px; padding: .45rem 1rem; font-size: .95rem; line-height: 1.4; display: inline-flex; align-items: center; gap: .55rem; }
.themen li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--gruen)); flex: none; }
.section--weiss .themen li { background: var(--bg); }
/* Varianten für die Abstimmung (?vorschau) */
html[data-themen="tint"] .themen li { background: color-mix(in srgb, var(--c) 16%, #fff); border-color: transparent; }
html[data-themen="einheitlich"] .themen li { background: var(--akzent-hell); border-color: transparent; }
html[data-themen="einheitlich"] .themen li::before { display: none; }

/* ---------- Vision ---------- */
.vision { position: relative; padding: clamp(5rem, 12vw, 9rem) 0; color: #fff; overflow: hidden; }
.vision__bild { position: absolute; inset: 0; }
.vision__bild img { width: 100%; height: 100%; object-fit: cover; }
.vision__bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40, 46, 50, .78) 0%, rgba(40, 46, 50, .45) 60%, rgba(40, 46, 50, .15) 100%); }
.vision .container { position: relative; }
.vision__text { max-width: 600px; }
.vision h2 { color: #fff; }
.vision .eyebrow { color: #CFE7A9; }
.vision p { font-size: 1.15rem; }

/* ---------- Vorteile ---------- */
.kopfzeile { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 2rem 1.8rem; }
.section--weiss .karte { background: var(--bg); }
.karte__punkte { display: flex; gap: 6px; margin-bottom: 1.2rem; }
.karte__punkte i { width: 14px; height: 14px; border-radius: 50%; display: block; }
.karte h3 { margin-bottom: .5rem; }
.karte p { margin: 0; color: var(--text-leise); }

/* ---------- Verhaltenstherapie ---------- */
.vt { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4.5rem); }
.vt__titel h2 { font-size: clamp(2.8rem, 6vw, 4.2rem); }
.vt__zitat { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.45rem; line-height: 1.4; color: var(--akzent-text); border-left: 3px solid var(--akzent); padding-left: 1.2rem; margin: 1.5rem 0 0; }
.weiterlesen { display: none; }
.link-pfeil { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; color: var(--gruen-text); }
.link-pfeil:hover { text-decoration: underline; }

/* Dekorative Logo-Punkte im Hintergrund */
.section--punkte { position: relative; overflow: hidden; }
.section--punkte > .container { position: relative; z-index: 1; }
.punkte { position: absolute; pointer-events: none; opacity: .16; }
.punkte--links { width: clamp(260px, 28vw, 400px); left: max(20px, calc((100% - var(--breite)) / 2 + 60px)); bottom: 30px; }
.punkte--rechts { width: clamp(120px, 11vw, 160px); right: max(10px, calc((100% - var(--breite)) / 2 - 90px)); top: -10px; opacity: .14; }

/* ---------- Über mich ---------- */
.ueber { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ueber .foto img { aspect-ratio: 3 / 2; }
.ueber__name { font-family: var(--sans); font-size: .95rem; color: var(--text-leise); margin-top: -.4rem; }

/* ---------- Zwischen-CTAs ---------- */
.cta-zeile { margin-top: 1.6rem; color: var(--text-leise); }
.cta-zeile .link-pfeil { margin-left: .3rem; text-decoration: underline; text-underline-offset: 3px; }
.cta-box { margin-top: 2rem; background: var(--bg); border-radius: var(--radius); padding: 1.4rem 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.cta-box p { margin: 0; flex: 1 1 260px; }

/* ---------- Kontakt ---------- */
.kontakt { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--weiss); }
.kontakt .kopfzeile p { color: var(--text-leise); margin: 0; }
.kontakt__wege { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 980px; margin-inline: auto; }
.kontakt__weg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 2rem 1.2rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--bg); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.kontakt__weg:hover { border-color: var(--gruen); box-shadow: var(--schatten); transform: translateY(-2px); color: var(--text); }
.kontakt__weg:active { transform: none; background: #F1F7E8; }
.kontakt__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #EEF6E2; color: var(--gruen-text); margin-bottom: .5rem; }
.kontakt__icon svg { width: 24px; height: 24px; }
.kontakt__label { font-weight: 600; font-size: 1.05rem; }
.kontakt__wert { color: var(--gruen-text); font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.kontakt__weg--haupt { background: var(--gruen); border-color: var(--gruen); color: var(--auf-gruen); }
.kontakt__weg--haupt:hover { background: #79B032; border-color: #79B032; color: var(--auf-gruen); }
.kontakt__weg--haupt:active { background: #6CA02A; }
.kontakt__weg--haupt .kontakt__icon { background: rgba(255, 255, 255, .35); color: var(--auf-gruen); }
.kontakt__weg--haupt .kontakt__wert { color: var(--auf-gruen); font-size: 1.1rem; }
.kontakt__person { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2.5rem auto 0; }
.kontakt__person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.kontakt__person strong { display: block; font-family: var(--serif); font-size: 1.3rem; }
.kontakt__person span { color: var(--text-leise); font-size: .92rem; }
.kontakt__notfall { max-width: 680px; margin: 2.2rem auto 0; text-align: center; font-size: .9rem; color: var(--text-leise); background: var(--bg); border-radius: 10px; padding: .9rem 1.2rem; }

/* ---------- Schnellkontakt (Handy) ---------- */
.schnellkontakt { display: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--linie); padding: 2rem 0; font-size: .9rem; color: var(--text-leise); }
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer a { color: var(--text-leise); }
.footer nav { display: flex; gap: 1.4rem; }
.footer__credit { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--linie); font-size: .82rem; text-align: center; }
.footer__credit a { display: inline-block; padding: .3rem 0; }
.footer nav a { display: inline-block; padding: .4rem 0; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.unterseite { padding: clamp(3rem, 7vw, 5rem) 0; }
.unterseite .container { max-width: 760px; }
.unterseite h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.unterseite h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.zurueck { display: inline-block; margin-bottom: 2rem; font-weight: 600; text-decoration: none; }

/* ---------- Vorschau-Leiste (nur mit ?vorschau) ---------- */
.vorschau { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; background: #fff; border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten); padding: .9rem 1rem; font-size: .85rem; display: grid; gap: .5rem; }
.vorschau strong { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.vorschau div { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.vorschau button { font: inherit; border: 1px solid var(--linie); background: var(--bg); border-radius: 999px; padding: .25rem .7rem; cursor: pointer; }
.vorschau button[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .zwei-spalten, .vt, .ueber, .kontakt { grid-template-columns: 1fr; }
  .karten { grid-template-columns: 1fr; }
  .kontakt__wege { grid-template-columns: 1fr; }
  .kontakt__weg { flex-direction: row; text-align: left; padding: 1rem 1.2rem; gap: 1rem; }
  .kontakt__icon { margin: 0; flex: none; width: 46px; height: 46px; }
  .kontakt__weg > .kontakt__label { display: none; }
  .kontakt__wert { font-size: .9rem; }
  .kontakt__weg--haupt .kontakt__wert { font-size: 1.1rem; }
  .vision__bild::after { background: rgba(30, 36, 42, .68); }
}

@media (max-width: 980px) {
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--linie); padding: .5rem 1.25rem 1.25rem; display: none; }
  .nav__links.ist-offen { display: flex; }
  .nav__links a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--linie); }
  .nav__links .nav__cta { margin-top: 1rem; text-align: center; border: 0; }
}

@media (max-width: 760px) {
  /* Handy: Menüleiste scrollt mit (nicht sticky) */
  .nav { position: relative; backdrop-filter: none; background: var(--bg); }
  html { scroll-padding-top: 0; }
  .nav__marke { font-size: 1.1rem; }
  .nav__marke img { width: 30px; }

  /* Handy: Bildmarke links, daneben „Psychotherapie Kirchmair“ und
     darunter in gleicher Größe „Verhaltenstherapie“ */
  .hero { min-height: 0; }
  .lockup { gap: .9rem; }
  .lockup__bild { width: clamp(78px, 22vw, 100px); }
  .lockup__titel { font-size: clamp(1.55rem, 7vw, 2.2rem); }
  .lockup__praxis, .lockup__vt { display: block; }
  .hero__cta { flex-direction: column; align-items: center; }
  .kontakt__person { justify-content: flex-start; }

  /* Verhaltenstherapie: am Handy nach dem ersten Absatz einklappen */
  .vt__zitat { display: none; }
  .punkte--links { width: 220px; left: auto; right: -50px; bottom: -50px; opacity: .13; }
  .punkte--rechts { display: none; }
  .vt { gap: .4rem; }
  .vt__titel h2 { margin-bottom: .4em; }
  .js .weiterlesen { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 600; color: var(--gruen-text); background: none; border: 0; padding: .6rem 0; cursor: pointer; }
  .js .weiterlesen:hover, .js .weiterlesen:active { color: var(--gruen-aktiv); }
  .js .weiterlesen svg { transition: transform .2s; }
  .js .weiterlesen[aria-expanded="true"] svg { transform: rotate(180deg); }
  .js .vt__mehr:not(.ist-offen) { display: none; }
  .kontakt__person strong { font-size: 1.15rem; }
  .footer__inner { flex-direction: column; }
  .schnellkontakt { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(249, 249, 247, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--linie); transform: translateY(110%); visibility: hidden; transition: transform .3s, visibility 0s .3s; }
  .schnellkontakt.ist-sichtbar { transform: none; visibility: visible; transition: transform .3s, visibility 0s; }
  .schnellkontakt a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem; border-radius: 999px; font-weight: 600; text-decoration: none; background: #fff; color: var(--text); border: 1px solid var(--linie); }
  .schnellkontakt a:first-child { background: var(--gruen); color: var(--auf-gruen); border-color: var(--gruen); }
  .schnellkontakt a:active { background: #6CA02A; color: var(--auf-gruen); }
  .schnellkontakt svg { width: 18px; height: 18px; }
  body { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
