/* Psychotherapie Flatz – statische Version (Nachbau des Bridge-Layouts, ohne externe Ressourcen) */

/* ---------- Schrift (lokal, variable Raleway) ---------- */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Basis ---------- */
:root {
  --text: #818181;
  --heading: #303030;
  --accent: #ffc000;
  --light: #f6f6f6;
  --footer: #303030;
  --container: 1100px;
  --header-h: 100px;
  --header-h-small: 57px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  line-height: 26px;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[id] { scroll-margin-top: 70px; }
#home { scroll-margin-top: 0; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--heading); }
h1, h2, h3, h4, h5 { margin: 0; color: var(--heading); font-weight: 600; }
h2 { font-size: 25px; line-height: 1.385; letter-spacing: 1px; text-transform: uppercase; }
h3 { font-size: 17px; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; }
h4 { font-size: 19px; line-height: 1.375; font-weight: 400; color: var(--text); }
p { margin: 0; }
.container { width: 100%; max-width: calc(var(--container) + 40px); margin: 0 auto; padding: 0 20px; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--solid { fill: currentColor; stroke: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: #fff; color: var(--heading); padding: 8px 16px; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* kleiner Trennstrich unter Überschriften */
.sep { width: 22px; height: 1px; background: var(--heading); margin: 21px auto 30px; border: 0; }
.sep--white { background: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  padding: 0 45px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, .35);
  transition: height .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.site-header .logo img { height: 90px; width: 90px; transition: height .3s ease, width .3s ease; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav a {
  display: block; padding: 0 17px;
  line-height: var(--header-h);
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: #000;
  transition: color .2s ease, line-height .3s ease;
}
.main-nav a:hover { color: var(--heading); }
/* nach dem Scrollen: kleiner Header (Designoptimierung: deckender Hintergrund für bessere Lesbarkeit) */
.site-header.is-scrolled { height: var(--header-h-small); background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.site-header.is-scrolled .logo img { height: 47px; width: 47px; }
.site-header.is-scrolled .main-nav a { line-height: var(--header-h-small); color: #9d9d9d; }
.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .main-nav a.is-active { color: var(--heading); }
/* Unterseiten: Header immer weiß */
.site-header--solid { background: #fff; }
.site-header--solid .main-nav a { color: #9d9d9d; }
.site-header--solid .main-nav a.is-active,
.site-header--solid .main-nav a:hover { color: var(--heading); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-left: -10px; cursor: pointer; color: #000;
  font-size: 22px; line-height: 0;
}

/* ---------- Slider ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; background: #222; }
.hero-track { display: flex; height: 100%; transition: transform .6s ease-in-out; will-change: transform; }
.slide { position: relative; flex: 0 0 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.slide-content {
  position: absolute; left: 1%; width: 98%; top: 42%;
  text-align: center;
}
.slide-title {
  font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .4);
}
.slide-subtitle { margin-top: 14px; font-size: 21px; line-height: 28px; color: #d3d3d3; text-shadow: 1px 1px 2px rgba(0, 0, 0, .4); }
.hero-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; z-index: 2; }
.hero-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); cursor: pointer; transition: background-color .2s ease;
}
.hero-dots button[aria-current="true"] { background: #fff; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 50px; height: 50px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .15); color: #fff; font-size: 22px; line-height: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease, background-color .2s ease;
}
.hero:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-arrow:hover { background: rgba(0, 0, 0, .35); }
.hero-arrow--prev { left: 30px; }
.hero-arrow--next { right: 30px; }

/* ---------- Abschnitte ---------- */
.section { background: #fff; text-align: center; }
.section--about { padding: 79px 0 112px; }
.section--services { padding: 80px 0 69px; }
.section--services .sep { margin-bottom: 70px; }

.parallax {
  background-image: url("../img/slide-0313-1920.webp");
  background-size: cover; background-position: 50% 0; background-attachment: fixed;
}
.parallax--spacer { height: 462px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 30px; row-gap: 43px; text-align: left; }
.service { display: flex; align-items: center; gap: 12px; color: #4e4e4e; }
.service .icon { font-size: 20px; }
.service h3 { font-size: 17px; }

/* Kontakt */
.section--contact { min-height: 483px; padding: 119px 0 60px; color: #fff; text-align: center; }
.section--contact h2 { color: #fff; }
.section--contact .sep { margin-bottom: 78px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contact-item .icon { font-size: 42px; margin: 0 auto 20px; stroke-width: 1.4; }
.contact-item a, .contact-item p { color: #fff; }
.contact-item a:hover { color: var(--accent); }

/* Karte (2-Klick-Lösung) */
.map { background: var(--light); }
.map-toggle {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; height: 103px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--heading);
}
.map-toggle .icon { font-size: 18px; transition: transform .3s ease; }
.map-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.map-panel { padding: 0 0 40px; }
.map-panel[hidden] { display: none; }
.map-consent {
  max-width: 640px; margin: 0 auto; padding: 32px; background: #fff; text-align: center;
  border: 1px solid #e6e6e6;
}
.map-consent p + p { margin-top: 12px; }
.map-consent a:not(.btn) { text-decoration: underline; }
.btn {
  display: inline-block; margin-top: 22px; padding: 12px 28px; border: 2px solid var(--heading);
  background: var(--heading); color: #fff; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: #fff; color: var(--heading); }
.btn--ghost { background: transparent; color: var(--heading); margin-left: 8px; }
.btn--ghost:hover { background: var(--heading); color: #fff; }
.map-frame { display: block; width: 100%; height: 523px; border: 0; }

/* Nach-oben-Button (wie im Original) */
.to-top {
  position: fixed; right: 25px; bottom: 25px; z-index: 90;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: #e8e8e8; color: #9d9d9d; font-size: 18px; line-height: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease, background-color .2s ease, color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--heading); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); text-align: center; padding: 50px 0 40px; color: var(--text); }
.site-footer .footer-logo { width: 200px; height: 200px; margin: 0 auto 20px; }
.site-footer a:hover { color: #fff; }
.site-footer .sep-dot { margin: 0 6px; }

/* ---------- Unterseite (Impressum / Datenschutz) ---------- */
.page-title { padding: calc(var(--header-h) + 60px) 0 50px; }
.page-title h1 { font-size: 17px; line-height: 22px; letter-spacing: 1px; text-transform: uppercase; }
.page-title .sep { margin: 15px 0 0; }
.legal { padding-bottom: 90px; }
.legal-body { max-width: 820px; }
.legal h2 { margin: 50px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 32px 0 8px; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { margin: 8px 0 0; padding-left: 20px; }
.legal a { color: var(--heading); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal .todo { background: #fff3c4; color: #6b5200; padding: 0 4px; }
.legal .meta { margin-top: 40px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .site-header { padding: 0 20px; height: 80px; background: #fff; justify-content: center; }
  .site-header.is-scrolled { height: 64px; background: #fff; }
  .site-header .logo img, .site-header.is-scrolled .logo img { height: 60px; width: 60px; }
  .site-header.is-scrolled .logo img { height: 50px; width: 50px; }
  .nav-toggle { display: block; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    max-height: 0; overflow: hidden; transition: max-height .35s ease; box-shadow: 0 6px 12px rgba(0, 0, 0, .06);
  }
  .main-nav.is-open { max-height: 420px; }
  .main-nav ul { flex-direction: column; padding: 6px 0 12px; }
  .main-nav a, .site-header.is-scrolled .main-nav a { line-height: 44px; padding: 0 20px; color: var(--heading); border-top: 1px solid #f0f0f0; }
  .hero { height: 70vh; height: 70svh; min-height: 380px; margin-top: 80px; }
  .slide-title { font-size: 30px; line-height: 36px; }
  .slide-subtitle { font-size: 17px; line-height: 24px; }
  .hero-arrow { display: none; }
  .page-title { padding-top: 130px; }
}
@media (max-width: 800px) {
  .services { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; row-gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .section--contact { padding: 80px 0 70px; }
  .section--contact .sep { margin-bottom: 50px; }
  .parallax--spacer { height: 260px; }
  .map-toggle { font-size: 15px; }
  .map-frame { height: 400px; }
}
/* fixed-Hintergrund ruckelt auf Touch-Geräten bzw. wird von iOS ignoriert */
@media (hover: none), (max-width: 1000px) {
  .parallax { background-attachment: scroll; background-image: url("../img/slide-0313-960.webp"); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-track { transition: none; }
}
