/* ==========================================================================
   psychotherapie-herrmann.de — statischer Nachbau (Divi-Look), poliert
   Farben: Akzent #d99518 (+ Ton-Varianten) | Text #000 | Praxis-Spalte #f4f4f4
   Schrift: Montserrat (self-hosted, latin subset)
   ========================================================================== */

/* ---- Fonts (self-hosted, keine externen Requests) ---- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin-700-normal.woff2') format('woff2');
}

/* ---- Basis ---- */
:root {
  --accent: #d99518;                       /* Marken-Gold */
  --accent-deep: #92610e;                  /* dunklere Gold-Schattierung: AA-fähig auf Weiß */
  --accent-wash: rgba(217, 149, 24, .08);  /* zarter Gold-Hauch */
  --text: #000000;
  --heading: #1f1f1f;
  --panel: #f4f4f4;
  --hairline: rgba(0, 0, 0, .08);
  --header-h-desktop: 147px;
  --header-h-mobile: 80px;
  --radius-btn: 5px;
  --radius-card: 10px;
  --radius-dialog: 10px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --font: 'Montserrat', Helvetica, Arial, 'Lucida Grande', sans-serif;
}

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

html {
  background: #fff;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8em;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h-desktop);
}

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

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

/* Sichtbarer Tastatur-Fokus, überall */
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
  border-radius: 3px;
}
.hero :focus-visible,
#therapieangebot :focus-visible,
.footer-band :focus-visible {
  outline-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.4em;
  padding-bottom: 10px;
  margin: 0 0 10px;
}

p { margin: 0 0 1em; }
ul { padding-left: 35px; }
ol { padding-left: 25px; }
li { line-height: 1.7em; }

/* Text-Links im Inhalt: dezente, dauerhafte Unterstreichung */
#kontakt a,
.popup-content a,
.footer-band-text a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(217, 149, 24, .55);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
#kontakt a:hover,
.popup-content a:hover,
.footer-band-text a:hover {
  text-decoration-color: currentColor;
}
.footer-band-text a { text-decoration-color: rgba(255, 255, 255, .55); }

.row {
  width: min(92%, 1080px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 0;
}

/* ---- Skip-Link ---- */
/* ==========================================================================
   Header (fixiert, Logo mittig, Menü darunter — kollabiert beim Scrollen)
   ========================================================================== */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #fff;
  box-shadow: 0 1px 0 var(--hairline);
  transition: background-color .35s ease, box-shadow .35s ease;
}

/* Beim Scrollen: transluzent + Blur + weicher Schatten statt harter Linie */
#main-header.scrolled {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .07);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.logo-link { display: block; overflow: hidden; }

#logo {
  display: block;
  height: 96px;
  width: auto;
  margin: 8px 0 4px;
  transition: height .35s var(--ease-out), margin .35s var(--ease-out), opacity .25s ease;
}

/* Logo kollabiert beim Scrollen (wie et_hide_fixed_logo) */
.scrolled #logo {
  height: 0;
  margin: 0;
  opacity: 0;
}

#main-nav { width: 100%; }

#top-menu {
  display: flex;
  justify-content: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
}

#top-menu li a {
  position: relative;
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 18px;
}
/* Hover: goldene Linie gleitet ein */
#top-menu li a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .22s var(--ease-out);
}
#top-menu li a:hover { text-decoration: none; }
#top-menu li a:hover::after,
#top-menu li a:focus-visible::after { transform: scaleX(1); }

#menu-toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h-desktop));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Verlauf im Gold-Ton, unten dunkler abgestuft für Lesbarkeit */
  background-image:
    linear-gradient(180deg,
      rgba(217, 149, 24, .5) 0%,
      rgba(217, 149, 24, .26) 48%,
      rgba(122, 81, 10, .5) 100%),
    url('../assets/img/praxis-herrmann-bg.jpg');
  background-size: cover;
  background-position: 50%;
}

.hero-content {
  width: 80%;
  max-width: 800px;
  padding: 40px 0 110px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(28px, 5.4vw, 50px);
  font-weight: 700;
  line-height: 1.3em;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 18px rgba(0, 0, 0, .28);
  margin: 0 0 6px;
}

.hero-sub {
  color: #fff;
  font-size: clamp(18px, 2.6vw, 31px);
  line-height: 1.6em;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .32), 0 3px 14px rgba(0, 0, 0, .25);
  margin: 0 0 32px;
}

.hero-cta { margin: 0; }

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  line-height: 0;
  opacity: .9;
  transition: opacity .2s ease;
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll svg {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3));
  animation: chevron-float 2.6s ease-in-out infinite;
}
@keyframes chevron-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* ---- Buttons (ein System) ---- */
.btn {
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: var(--radius-btn);
  padding: .5em 1.4em;
  line-height: 1.7em;
  font-weight: 600;
  background: transparent;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease,
              transform .2s var(--ease-out), box-shadow .2s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
  transition-duration: .08s;
}

.btn-hero {
  color: #fff;
  border-color: #fff;
  font-size: 16px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .65em 1.6em;
}
.btn-hero:hover {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
}
.btn-hero:active { box-shadow: 0 2px 8px rgba(0, 0, 0, .16); }

.btn-info {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}
.btn-info:hover {
  background: rgba(255, 255, 255, .16);
  border-color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

/* ==========================================================================
   Praxis
   ========================================================================== */
#praxis { background: #fff; position: relative; }

.praxis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.praxis-photo {
  background-image:
    url('../assets/img/aiste-herrmann-psychotherapie.jpg'),
    linear-gradient(180deg, #f4f4f4 0%, rgba(217, 149, 24, .3) 100%);
  background-size: cover;
  background-position: 50%;
  min-height: 100%;
}

.praxis-text {
  background: var(--panel);
  padding: clamp(40px, 8%, 88px) clamp(28px, 6%, 64px);
  /* Boden-Freiheit: die Welle überlappt das Sektionsende (wie im Original) */
  padding-bottom: calc(clamp(92px, 6vw, 150px) + 48px);
}

.praxis-text p { max-width: 65ch; }

.divider-line {
  max-width: 100px;
  border-top: 3px solid var(--accent);
  border-radius: 2px;
  margin-bottom: 22px;
}
.divider-line-white {
  border-top-color: #fff;
  margin-left: auto;
  margin-right: auto;
}

.h1-style {
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.4em;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.praxis-text h3 {
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.45em;
  letter-spacing: -0.01em;
  margin-top: 32px;
}

.praxis-img-mobile { display: none; }

/* ---- Wellen-/Zickzack-Divider (Signatur-Element) ---- */
.wave-divider { line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* Liegt wie beim Original-Divider ÜBER dem Ende der Praxis-Sektion –
   kein weißer Streifen zwischen Foto/Panel und Goldband */
.wave-to-orange {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  background: transparent;
  z-index: 2;
  pointer-events: none;
}
.wave-to-orange svg { height: clamp(92px, 6vw, 150px); transform: scale(-1, 1); }

.wave-to-white svg { height: 62px; }

.zigzag-top svg { height: 62px; }

/* ==========================================================================
   Therapieangebot
   ========================================================================== */
#therapieangebot {
  background: var(--accent);
  padding-top: clamp(20px, 3.5vw, 40px);
}

#therapieangebot .h1-style {
  color: #fff;
  text-align: center;
  text-wrap: balance;
  max-width: 710px;
  margin: 0 auto 10px;
}

.blurbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 36px);
  max-width: 680px;
  margin: 36px auto 12px;
  text-align: center;
}

/* Ruhige, transluzente Karten auf dem Goldband
   (dunkler Scrim statt weißem: hält Weiß auf der Karte über 4.5:1) */
.blurb {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 40px) 24px 30px;
  transition: transform .25s var(--ease-out), background-color .25s ease,
              box-shadow .25s ease;
}
.blurb:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .17);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

.blurb-icon {
  display: inline-block;
  color: #fff;
  line-height: 0;
  transition: transform .25s var(--ease-out);
}
.blurb-icon svg { width: 72px; height: 72px; }
.blurb-icon:hover { transform: translateY(-3px); }

.blurb-title { margin-top: 12px; }
.blurb-title a {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5em;
}
.blurb-title a:hover { text-decoration: none; opacity: .85; }

.blurb > p { margin: 10px 0 0; }

#therapieangebot .wave-to-white { margin-top: clamp(28px, 4vw, 44px); }

/* ==========================================================================
   Kontakt
   ========================================================================== */
#kontakt { padding: clamp(48px, 7vw, 84px) 0 clamp(20px, 3vw, 36px); }

.section-title {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-align: center;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5%, 56px);
  margin-top: clamp(20px, 3vw, 36px);
}

/* Haarlinie zwischen den Spalten */
.kontakt-grid > :last-child {
  border-left: 1px solid var(--hairline);
  padding-left: clamp(28px, 5%, 56px);
}

.kontakt-grid p { margin: 0 0 1.25em; }

/* ==========================================================================
   Footer-Band „Bitte beachten Sie“
   ========================================================================== */
.footer-band {
  background: var(--accent);
  color: #fff;
}
.footer-band .row { padding-top: clamp(40px, 6vw, 64px); }
.footer-band .section-title { color: #fff; }
.footer-band a { color: #fff; text-decoration: underline; }

.footer-band-text {
  max-width: min(68ch, 100%);
  margin: 0 auto;
}

.legal-links {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .28);
  margin-top: clamp(28px, 4vw, 44px);
  padding: 26px 0 18px;
}
.legal-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity .2s ease;
}
.legal-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .9;
}

/* ==========================================================================
   Popups (#einzeltherapie, #diagnostik, #impressum, #datenschutz)
   Öffnen per :target (ohne JS) bzw. .is-open (JS-Enhancement)
   ========================================================================== */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow-y: auto;
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  padding: 5vh 0 6vh;
}
/* :target nur als No-JS-Fallback — mit JS steuert ausschließlich .is-open,
   damit Escape/Backdrop/Schließen ein per Deep-Link geöffnetes Popup
   tatsächlich schließen können (history.replaceState löscht :target nicht) */
html:not(.js) .popup:target,
.popup.is-open {
  display: block;
  animation: popup-fade .25s ease-out;
}
html:not(.js) .popup:target .popup-inner,
.popup.is-open .popup-inner {
  animation: popup-rise .28s var(--ease-out) both;
}
@keyframes popup-fade {
  from { opacity: 0; }
}
@keyframes popup-rise {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
}

.popup-inner {
  position: relative;
  width: min(92%, 800px);      /* ~70ch Zeilenmaß für lange Textblöcke */
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-dialog);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .06),
    0 12px 32px rgba(0, 0, 0, .16),
    0 40px 90px rgba(0, 0, 0, .24);
}

.popup-content {
  padding: clamp(36px, 6vw, 56px) clamp(22px, 6%, 56px);
}

.popup-content h2 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.popup-content h3 {
  font-size: clamp(21px, 2.5vw, 26px);
  line-height: 1.4em;
  margin-top: 28px;
}
.popup-content h4 {
  font-size: 18px;
  line-height: 1.5em;
  margin-top: 24px;
}
.popup-h3-tight {
  font-size: 18px !important;
  line-height: 1.5em !important;
  margin-top: 24px;
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  border-radius: 50%;
  color: var(--heading);
  opacity: .65;
  transition: opacity .2s ease, background-color .2s ease;
}
.popup-close:hover {
  opacity: 1;
  background: var(--accent-wash);
  text-decoration: none;
}

body.popup-open { overflow: hidden; }

/* ==========================================================================
   Scroll-Reveal (nur aktiv, wenn JS läuft: html.js)
   ========================================================================== */
html.js .anim {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s var(--ease-out);
}
html.js .anim.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Reduzierte Bewegung: alle Animationen/Transitions deaktivieren
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  html.js .anim {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  body { padding-top: var(--header-h-mobile); }
  html { scroll-padding-top: calc(var(--header-h-mobile) + 10px); }

  /* Header wird zur Leiste mit Hamburger */
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    height: var(--header-h-mobile);
  }
  #logo, .scrolled #logo {
    height: 56px;
    margin: 0;
    opacity: 1;
  }

  #menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, .05);
    border: 0;
    border-radius: 5px;
    padding: 6px 12px;
    font-family: var(--font);
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: background-color .2s ease;
  }
  #menu-toggle:hover { background: rgba(0, 0, 0, .08); }
  .icon-burger { color: var(--accent); }

  #top-menu {
    display: none;
    position: absolute;
    top: var(--header-h-mobile);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-top: 3px solid var(--accent);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .1);
    padding: 5%;
  }
  #top-menu.open { display: flex; }
  #top-menu li a {
    display: block;
    padding: 10px 5%;
    border-radius: 4px;
    transition: background-color .2s ease;
  }
  #top-menu li a::after { display: none; }
  #top-menu li a:hover { background: var(--accent-wash); }

  .hero { min-height: calc(100vh - var(--header-h-mobile)); }

  /* Praxis: Foto als Fläche oben */
  .praxis-grid { grid-template-columns: 1fr; }
  .praxis-photo { min-height: 750px; }

  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .kontakt-grid > :last-child {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--hairline);
    margin-top: 8px;
    padding-top: 26px;
  }
}

@media (max-width: 767px) {
  .praxis-photo { display: none; }
  .praxis-img-mobile {
    display: block;
    margin-top: 30px;
    padding-bottom: 40px;
  }

  .blurbs {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 420px;
  }

  .popup { padding: 0; }
  .popup-inner { width: 100%; min-height: 100%; border-radius: 0; }
}
