/* =========================================================
   Astrid Schreiber – Paartherapie Friedberg
   Statische, tracker-freie Website. Ein Stylesheet.
   ========================================================= */

/* ---------- Schriften: Lato, lokal eingebunden ---------- */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/lato-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lato-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lato-400italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/lato-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/lato-900.woff2') format('woff2');
}

/* ---------- Farb-Tokens ---------- */
:root {
  --accent: #0071bc;
  --accent-dark: #003f8a;
  --text: #666666;
  --heading: #444444;
  --line: #eaeaea;
  --light-bg: #f8f8f8;
  --white: #ffffff;
  --muted: #999999;
  --container: 1080px;
  --header-h: 150px; /* ungefähre Höhe des Sticky-Headers (Logo + Nav-Zeile), für Scroll-Offset */
  --font: 'Lato', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / Basis ---------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 .6em;
}
p { margin: 0 0 1.2em; }
ul { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.visually-hidden {
  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-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
}
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 16px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.site-branding { display: flex; align-items: center; gap: 16px; min-width: 0; }
.site-logo img { width: 300px; max-width: 60vw; height: auto; }
.site-tagline {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
}

/* Hauptnavigation – eigene Zeile unter dem Logo */
.main-nav { flex-basis: 100%; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.main-nav li { margin: 0; position: relative; }
.main-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--accent); }

/* Untermenü "Therapie" */
.main-nav .has-submenu > .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
  padding: 6px 0;
  margin: 0;
  display: none;
  z-index: 1001;
}
.main-nav .has-submenu:hover > .submenu,
.main-nav .has-submenu:focus-within > .submenu { display: block; }
.main-nav .submenu a { padding: 8px 18px; }
.submenu-toggle { display: none; }

/* Hamburger */
.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
}
.menu-toggle:hover { background: var(--accent-dark); }
.menu-toggle .bars { position: relative; width: 20px; height: 14px; display: inline-block; }
.menu-toggle .bars span,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: #fff; border-radius: 2px;
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars span { top: 6px; }
.menu-toggle .bars::after { bottom: 0; }

/* =========================================================
   Hero
   ========================================================= */
.hero-banner { width: 100%; }
.hero-banner img { width: 100%; height: auto; object-fit: cover; }

/* BOOT-Akrostichon */
.acrostic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--container);
  margin: 46px auto 30px;
  padding: 0 20px;
  text-align: center;
}
.acrostic .letter {
  font-size: 64px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin: 0 0 10px;
}
.acrostic .word { margin: 0; font-size: 17px; color: var(--heading); }

.intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 20px 20px;
  text-align: center;
  font-size: 17px;
}
.intro strong { color: var(--accent); }

/* =========================================================
   Abschnitte
   ========================================================= */
.section { padding: 46px 0; }
.section:nth-of-type(even) { background: var(--light-bg); }
.section-inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section-title {
  font-size: 30px;
  font-weight: 300;
  color: var(--heading);
  margin: 0 0 30px;
}
.subtitle {
  font-size: 20px;
  color: var(--heading);
  margin: 0 0 18px;
  display: inline-block;
}
.subtitle span,
.subtitle {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

/* Text + Bild nebeneinander (2/3 – 1/3) */
.media-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.media-row.text-only { grid-template-columns: 1fr; }
.media-row .media img {
  width: 100%;
  border-radius: 3px;
}
.block + .block { margin-top: 50px; }

/* Aktuelles: zweispaltig */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}
.news-grid h3 { font-size: 21px; }
.news-item + .news-item {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* Vita-Liste (Über mich) */
.vita { list-style: none; padding-left: 0; }
.vita li { margin-bottom: 12px; }
.vita .date { font-weight: 700; color: var(--heading); }

/* =========================================================
   Kontakt + Karte
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card p { margin-bottom: .5em; }
.contact-card .label { color: var(--muted); }
.contact-card a { font-weight: 700; }
.map-box {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}
.map-box img { display: block; width: 100%; height: auto; }
.map-cta {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 11px 18px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.map-cta:hover { background: var(--accent-dark); color: #fff; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #2f3033; color: #c9cccf; margin-top: 10px; }
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 50px 20px 40px;
}
.footer-widgets h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-widgets p { margin: 0 0 .6em; }
.footer-widgets a { color: #9fd0ea; }
.footer-widgets a:hover { color: #fff; }
.footer-socket {
  border-top: 1px solid rgba(255,255,255,.1);
  background: #262729;
}
.footer-socket .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 13px;
  color: #9a9da0;
}
.footer-socket a { color: #9a9da0; }
.footer-socket a:hover { color: #fff; }

/* Zurück nach oben */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 900;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-dark); }

/* Einfache Seiten (Impressum / Datenschutz) */
.page-hero { background: var(--light-bg); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-top: 40px; padding-bottom: 40px; }
.page-hero h1 { font-size: 32px; font-weight: 300; margin: 0; }
.legal { max-width: 860px; margin: 0 auto; padding: 46px 20px 60px; }
.legal h2 { font-size: 22px; margin-top: 1.6em; }
.legal h3 { font-size: 18px; margin-top: 1.4em; }
.legal p, .legal li { font-size: 15px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  :root { --header-h: 82px; }
  .menu-toggle { display: inline-flex; }
  .site-tagline { display: none; }

  .main-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.is-open { max-height: 80vh; overflow-y: auto; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0; margin-top: 0; border-top: 0; }
  .main-nav li { border-top: 1px solid var(--line); }
  .main-nav li:first-child { border-top: 0; }
  .main-nav a { padding: 14px 20px; font-size: 16px; }

  /* Untermenü als Accordion */
  .main-nav .has-submenu > .submenu {
    position: static;
    display: none;
    border: 0;
    border-top: 1px solid var(--line);
    box-shadow: none;
    padding: 0;
    background: var(--light-bg);
  }
  .main-nav .has-submenu.is-expanded > .submenu { display: block; }
  .main-nav .submenu a { padding-left: 38px; }
  .main-nav .menu-row { display: flex; align-items: center; justify-content: space-between; }
  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    align-self: stretch;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--line);
    color: var(--heading);
    font-size: 18px;
    cursor: pointer;
  }
  .has-submenu.is-expanded > .menu-row .submenu-toggle { color: var(--accent); transform: rotate(180deg); }

  .header-inner { padding: 14px 20px; position: relative; }
  .site-branding { flex: 1 1 auto; min-width: 0; }
  .site-logo img { width: 190px; max-width: 58vw; }
  .menu-toggle { flex: 0 0 auto; }

  .acrostic { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .acrostic .letter { font-size: 52px; }

  .media-row { grid-template-columns: 1fr; gap: 24px; }
  .media-row .media { order: -1; max-width: 420px; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; gap: 30px; padding: 40px 20px 30px; }
  .section { padding: 38px 0; }
  .section-title { font-size: 26px; }
}

@media (max-width: 480px) {
  .acrostic { grid-template-columns: 1fr 1fr; }
  .acrostic .letter { font-size: 46px; }
  .intro { font-size: 16px; }
}

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