/* ==========================================================================
   Praxis für Psychotherapie & Hypnose – Dr. phil. Florian Nelle, Köln
   Statischer Nachbau. Farben, Schriften und Maße 1:1 aus dem Original.
   Keine externen Ressourcen, kein Tracking.
   ========================================================================== */

:root {
  /* Originalpalette (Astra Global Colors der Bestandsseite) */
  --orange:        #ea580c;   /* Primär, Buttons */
  --orange-hell:   #f97316;   /* Sekundär, Hover */
  --ueberschrift:  #0F172A;   /* sehr dunkles Marineblau */
  --text:          #454F5E;   /* Grauschiefer */
  --creme:         #fff1e8;   /* warme Abschnittsfläche */
  --weiss:         #FFFFFF;
  --sand:          #F9F0C8;
  --dunkel:        #141006;
  --grau-dunkel:   #222222;

  /* FAQ-Blöcke – Salbeitöne aus dem Custom-CSS des Originals */
  --faq-bg:            #f8faf8;
  --faq-bg-active:     #eef4ef;
  --faq-border:        #d9ddd7;
  --faq-border-active: #9caf9f;
  --faq-focus:         #6f8f7c;
  --faq-icon-bg:       #e5eee7;
  --faq-icon-color:    #315b47;
  --faq-text:          #4f5b54;
  --faq-title:         #1f2a24;

  --linie: #e6e6e6;

  --font: Verdana, Helvetica, Arial, sans-serif;
  --wrap: 1140px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ueberschrift);
  line-height: 1.3;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: 35px; }
h2 { font-size: 25px; }
h3 { font-size: 22px; }
h4 { font-size: 20px; }

@media (max-width: 780px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 20px; }
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hell); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: .5em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--orange); color: #fff; padding: .8rem 1.2rem; font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Raster ------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--eng { width: min(100% - 2.5rem, 820px); margin-inline: auto; }

.abschnitt { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.abschnitt--creme { background: var(--creme); }
.abschnitt--sand  { background: var(--sand); }
.abschnitt--eng   { padding-block: clamp(2rem, 3.5vw, 3rem); }

.kopf { max-width: 760px; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.kopf--mitte { margin-inline: auto; text-align: center; }

/* --- Buttons (Originalmaße: 17px 40px, Radius 4px, 14px Schrift) --------- */
.btn {
  display: inline-block;
  padding: 17px 40px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--orange-hell); border-color: var(--orange-hell); color: #fff; text-decoration: none; }
.btn--umriss { background: transparent; color: var(--orange); }
.btn--umriss:hover { background: var(--orange); color: #fff; }

.btn-reihe { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.btn-reihe .oder { color: var(--text); font-size: 14px; }

/* --- Kopfbereich -------------------------------------------------------- */
.kopfbereich {
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 100;
}
.kopfbereich__innen {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 84px;
}
.marke { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.marke:hover { text-decoration: none; }
.marke img { max-height: 54px; width: auto; }
.marke__text { color: var(--ueberschrift); font-size: 15px; line-height: 1.3; }
.marke__text strong { display: block; font-weight: 700; }
.marke__text span { font-size: 13px; color: var(--text); }

/* Navigation */
.nav { display: flex; align-items: center; }
.nav__liste { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav__punkt { position: relative; }
.nav__link {
  display: block; padding: .7rem .85rem;
  font-size: 14px; color: var(--ueberschrift); text-decoration: none;
  white-space: nowrap;
}
.nav__link:hover { color: var(--orange); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--orange); }
.nav__punkt--unter > .nav__link::after { content: " ⌄"; font-size: .85em; opacity: .6; }

.nav__unter {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: 0 8px 26px -12px rgb(15 23 42 / .35);
  padding: .4rem; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__punkt--unter:hover > .nav__unter,
.nav__punkt--unter:focus-within > .nav__unter { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__unter .nav__link { padding: .55rem .8rem; }
.nav__unter li { margin: 0; }

.sprachen { display: flex; gap: .35rem; margin-left: .6rem; padding-left: .8rem; border-left: 1px solid var(--linie); }
.sprachen a { font-size: 13px; color: var(--text); padding: .3rem .35rem; text-decoration: none; }
.sprachen a:hover, .sprachen a[aria-current="page"] { color: var(--orange); }

.nav-schalter {
  display: none; width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--linie); border-radius: var(--radius);
  cursor: pointer; color: var(--ueberschrift); position: relative;
}
.nav-schalter span, .nav-schalter span::before, .nav-schalter span::after {
  display: block; width: 20px; height: 2px; background: currentColor;
  position: absolute; left: 12px; transition: transform .2s ease, opacity .2s ease;
}
.nav-schalter span { top: 22px; }
.nav-schalter span::before { content: ""; transform: translateY(-6px); left: 0; }
.nav-schalter span::after  { content: ""; transform: translateY(6px); left: 0; }
.nav-schalter[aria-expanded="true"] span { background: transparent; }
.nav-schalter[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-schalter[aria-expanded="true"] span::after  { transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-schalter { display: block; }
  .nav {
    position: fixed; inset: 84px 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--linie);
    padding: 1rem 1.25rem 2rem; max-height: calc(100dvh - 84px); overflow-y: auto;
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.offen { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__liste { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: .85rem .5rem; font-size: 16px; }
  .nav__punkt--unter > .nav__link::after { content: ""; }
  .nav__unter {
    position: static; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--linie);
    border-radius: 0; margin: 0 0 .4rem .6rem; padding: 0 0 0 .6rem; min-width: 0;
  }
  /* Nur sichtbar/klickbar, wenn das mobile Menü tatsächlich geöffnet ist —
     sonst erbt es korrekt den unsichtbaren, nicht-klickbaren Zustand von .nav. */
  .nav.offen .nav__unter { opacity: 1; visibility: visible; }
  .sprachen { margin: 1rem 0 0; padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--linie); }
}

/* --- Hero --------------------------------------------------------------- */
.hero { background: var(--creme); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hero__raster { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .hero__raster { grid-template-columns: 1.1fr .9fr; } }
.hero__bild img { border-radius: var(--radius); width: 100%; }
.hero__stand {
  display: inline-block; margin-top: 1.25rem;
  font-size: 14px; color: var(--text);
}
.hero__stand strong { color: var(--ueberschrift); }

/* --- Karten ------------------------------------------------------------- */
.raster { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.raster--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.raster--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.raster--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.karte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.5vw, 1.9rem);
}
.karte h3 { margin-bottom: .5em; }
.karte h3 a { color: var(--ueberschrift); text-decoration: none; }
.karte h3 a:hover { color: var(--orange); text-decoration: underline; }
.karte__pfeil { color: var(--orange); text-decoration: none; display: inline-block; }
.karte p:last-child { margin-bottom: 0; }
.abschnitt--creme .karte { background: #fff; border-color: #f2ddd0; }

.schritt { position: relative; padding-left: 3.4rem; }
.schritt__nr {
  position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: grid; place-items: center; font-size: 15px;
}

/* --- Text/Bild ---------------------------------------------------------- */
.wechsel { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 880px) {
  .wechsel { grid-template-columns: 1fr 1fr; }
  .wechsel--gedreht > :first-child { order: 2; }
}
.wechsel__bild img { border-radius: var(--radius); width: 100%; }
.wechsel__bild { position: relative; }
.wechsel__bild img.siegel {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  width: 144px;
  height: 144px;
  max-width: 30%;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 22px rgb(0 0 0 / .22);
  background: #fff;
}
@media (max-width: 640px) {
  .wechsel__bild img.siegel { width: 103px; height: 103px; right: -0.6rem; bottom: -0.6rem; border-width: 3px; }
}

.fliesstext > * + * { margin-top: 1.1em; }
.fliesstext h2 { margin-top: 1.8em; }
.fliesstext h3 { margin-top: 1.5em; }
.fliesstext h2:first-child, .fliesstext h3:first-child { margin-top: 0; }

/* --- FAQ (Salbeitöne wie im Original) ----------------------------------- */
.faq { display: grid; gap: .75rem; }
.faq__punkt {
  background: var(--faq-bg);
  border: 1px solid var(--faq-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__punkt[open] { background: var(--faq-bg-active); border-color: var(--faq-border-active); }
.faq__frage {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: 1.1rem 1.3rem;
  color: var(--faq-title); font-size: 17px; line-height: 1.4;
  cursor: pointer; list-style: none;
}
.faq__frage::-webkit-details-marker { display: none; }
.faq__frage:focus-visible { outline: 3px solid var(--faq-focus); outline-offset: -3px; }
.faq__frage::before {
  content: "+";
  flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--faq-icon-bg); color: var(--faq-icon-color);
  display: grid; place-items: center; font-size: 16px; line-height: 1;
  margin-top: .1rem;
}
.faq__punkt[open] .faq__frage::before { content: "–"; }
.faq__antwort { padding: 0 1.3rem 1.3rem 3.8rem; color: var(--faq-text); }
.faq__antwort p:last-child { margin-bottom: 0; }

/* --- Hinweiskasten ------------------------------------------------------ */
.hinweis {
  background: var(--creme);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  font-size: 15px;
}
.hinweis strong { color: var(--ueberschrift); }

/* --- Fußbereich --------------------------------------------------------- */
.fussbereich {
  background: var(--ueberschrift); color: #c6ccd6;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem;
  font-size: 15px;
}
.fussbereich h2, .fussbereich h3 { color: #fff; font-size: 16px; margin-bottom: .9em; }
.fussbereich a { color: #c6ccd6; text-decoration: none; }
.fussbereich a:hover { color: #fff; text-decoration: underline; }
.fuss__raster {
  display: grid; gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  padding-bottom: 2.25rem;
}
.fuss__liste { list-style: none; padding: 0; margin: 0; }
.fuss__liste li { margin-bottom: .5em; }
.fuss__unten {
  border-top: 1px solid rgb(255 255 255 / .15);
  padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: 14px; color: #9aa3b0;
}
.fuss__recht { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 0; }

/* --- Seitenkopf für Unterseiten ----------------------------------------- */
.seitenkopf {
  background: var(--creme);
  padding-block: clamp(2.25rem, 4vw, 3.5rem) clamp(1.5rem, 2.5vw, 2.25rem);
}
.krume { font-size: 13px; color: var(--text); margin-bottom: .8rem; }
.krume a { color: var(--text); }
.krume a:hover { color: var(--orange); }
.krume span { margin-inline: .4em; opacity: .5; }

/* --- Formular ----------------------------------------------------------- */
.formular { display: grid; gap: 1.1rem; max-width: 640px; }
.feld { display: flex; flex-direction: column; gap: .4rem; }
.feld > label { font-size: 14px; color: var(--ueberschrift); }
.feld .pflicht { color: var(--orange); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; font-size: 15px; padding: .8em 1em;
  color: var(--text); background: #fff;
  border: 1px solid var(--linie); border-radius: var(--radius); width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgb(234 88 12 / .18);
}
textarea { min-height: 9rem; resize: vertical; }
.haken { display: flex; gap: .7rem; align-items: flex-start; font-size: 14px; }
.haken input { margin-top: .25em; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--orange); }
.hp-feld { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Platzhalter für fehlende Bilder ------------------------------------ */
.platzhalter {
  display: grid; place-items: center; min-height: 160px;
  background: repeating-linear-gradient(45deg, #f6efe9 0 12px, var(--creme) 12px 24px);
  border: 1px dashed #e0bfa8; border-radius: var(--radius);
  color: #a08268; font-size: 13px; text-align: center; padding: 1rem;
}

@media print {
  .kopfbereich, .fussbereich, .nav-schalter, .btn { display: none !important; }
  body { color: #000; background: #fff; }
}
