/*
 * ┌──────────────────────────────────────────────────────┐
 * │                                                      │
 * │   Praxis für Logopädie – Kompass                     │
 * │   Shared Stylesheet · wons-logo.de                   │
 * │                                                      │
 * │   Version  2.0 · April 2026                          │
 * │   Autor    Tim Siewert                               │
 * │                                                      │
 * │   Für Patricia —                                     │
 * │   weil gute Arbeit einen guten Rahmen verdient.      │
 * │                                                      │
 * └──────────────────────────────────────────────────────┘
 */

/* ── [ˈʃʁɪftˌaɐ̯tən] — Schriftarten (selbst gehostet, DSGVO-konform) ── */

/* Lato 300 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/lato-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/lato-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Lato 400 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lato-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lato-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Lato 700 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/lato-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/lato-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display — normal (400 / 500 / 700) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/playfair-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/playfair-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display — italic (400 / 500) */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/playfair-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/playfair-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── [ˈɡʁʊntˌvɛɐ̯tə] — Design-Tokens ── */
:root {
  --brand:        #d8f0be;
  --brand-deep:   #a8c9b0;
  --cream:        #faf9f5;
  --cream-dark:   #edf5e4;
  --parchment:    #d8f0be;
  --primary:      #558a65;
  --primary-deep: #3d6e52;
  --accent:       #c8845a;
  --accent-pale:  #f0e0d4;
  --ink:          #22372a;
  --ink-mid:      #3d5c47;
  --ink-soft:     #5a7a65;
  --ink-muted:    #8aaa95;
  --white:        #ffffff;
  /* legacy aliases */
  --terra:        #558a65;
  --terra-deep:   #3d6e52;
  --terra-pale:   #edf5e4;
  --moss:         #558a65;
  --moss-pale:    #d8f0be;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Lato', system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: 48px;

  --max: 1200px;
  --pad: clamp(1.2rem, 4vw, 3rem);
}

/* ── [ˈnʊlˌʃtɛlʊŋ] — Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { text-decoration: underline; }

/* ── [tɛksˈtuːɐ̯] — Hintergrundtextur ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9999;
}

/* ── [baˈʁiːʁəfʁaɪ̯haɪ̯t] — Barrierefreiheit ── */
.skip-link {
  position: absolute; left: -999px; top: 1rem;
  background: var(--white); padding: .6rem 1rem;
  border-radius: var(--r-sm); z-index: 2000;
  font-size: .9rem;
}
.skip-link:focus { left: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important;
}

/* ═══════════════════════════════════════════
   [naviɡaˈt͡si̯oːn] — Navigation
═══════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 245, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(85, 138, 101, .15);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
}

.brand {
  display: flex; align-items: center; gap: .9rem;
  text-decoration: none; color: inherit;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(85,138,101,.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { width: 34px; height: 34px; object-fit: contain; display: block; }
.brand-text strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1rem; font-weight: 500;
  color: var(--ink); line-height: 1.1;
}
.brand-text small {
  display: block;
  font-size: .75rem; font-weight: 300;
  color: var(--ink-soft); letter-spacing: .04em;
}

/* Hamburger button — hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1.5px solid rgba(85,138,101,.4);
  border-radius: var(--r-sm);
  background: transparent;
  padding: .6rem .75rem;
  cursor: pointer;
  z-index: 110;
  flex-shrink: 0;
  min-width: 44px; min-height: 44px; /* touch target */
}
.menu-toggle .bar {
  display: block; width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* X-Animation beim Öffnen */
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Nav links */
.main-nav ul {
  list-style: none;
  display: flex; gap: .25rem;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  padding: .5rem .9rem;
  border-radius: 999px;
  font-size: .88rem; font-weight: 400;
  color: var(--ink-mid);
  transition: background .2s, color .2s;
  letter-spacing: .02em;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--terra-pale); color: var(--terra-deep); text-decoration: none; }
.main-nav a[aria-current="page"] {
  background: var(--terra-pale); color: var(--terra);
  font-weight: 700;
}

/* CTA button in nav */
.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(85,138,101,.28);
  transition: background .2s, transform .2s, box-shadow .2s !important;
}
.nav-cta:hover {
  background: var(--primary-deep) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(85,138,101,.35) !important;
  text-decoration: none;
}

/* ═══════════════════════════════════════════
   [ˈzaɪ̯tn̩ˌʔaʊ̯fˌbaʊ̯] — Seitenaufbau
═══════════════════════════════════════════ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--primary); display: block; }

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 400; line-height: 1.15;
  letter-spacing: -.015em; color: var(--ink);
}
.section-title em { font-style: italic; color: var(--primary); }

/* ── [ˈʃaltˌflɛːçn̩] — Schaltflächen ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .85rem 1.6rem;
  font-family: var(--ff-body);
  font-size: .9rem; font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:disabled { opacity: .6; pointer-events: none; }

.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 8px 28px rgba(85,138,101,.28);
}
.btn-primary:hover { background: var(--primary-deep); box-shadow: 0 12px 36px rgba(85,138,101,.38); }

.btn-secondary {
  background: transparent; color: var(--ink-mid);
  border-color: var(--brand);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ── [ˈfuːsˌt͡saɪ̯lə] — Fußzeile ── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
  padding: 2.2rem 0;
  font-size: .82rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--brand); text-decoration: none; }

/* ── [t͡suˈʁʏk naːx ˈoːbn̩] — Zurück nach oben ── */
.back-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary);
  color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 8px 24px rgba(85,138,101,.3);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  text-decoration: none;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); text-decoration: none; }
.back-top svg { width: 18px; height: 18px; fill: white; }

/* ── [animaˈt͡si̯oːnən] — Animationen ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroIn {
  from { opacity: 0; transform: scale(.95) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ═══════════════════════════════════════════
   [ʁɛˈspɔnsɪv] — Responsives Layout
   Breakpoint 860px: Hamburger für Tablets
   und Smartphones (auch Landscape)
═══════════════════════════════════════════ */
@media (max-width: 860px) {
  /* Hamburger anzeigen */
  .menu-toggle { display: flex; }

  /* Nav als Dropdown */
  .main-nav {
    position: fixed;
    top: 5rem; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--brand);
    box-shadow: 0 12px 32px rgba(34,55,42,.1);
    /* calc(-100% - 5rem) verschiebt die gesamte Eigenhöhe + den top-Offset
       nach oben, sodass die Unterkante exakt am Viewport-Rand verschwindet */
    transform: translateY(calc(-100% - 5.5rem));
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }

  /* Stacked items */
  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1rem 1.5rem;
    gap: .2rem;
    align-items: stretch;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    padding: .8rem 1rem;
    border-radius: var(--r-sm);
    display: block;
    font-size: .95rem;
    white-space: normal;
  }

  /* CTA: volle Breite, zentriert, deutlicher Abstand nach oben */
  .nav-cta {
    display: block !important;
    margin-top: .6rem !important;
    text-align: center !important;
    border-radius: var(--r-sm) !important;
    box-shadow: 0 4px 20px rgba(85,138,101,.25) !important;
    padding: .9rem 1rem !important;
  }
  .nav-cta:hover {
    transform: none !important;
  }
}

/* Brand kompakt auf kleinen Geräten */
@media (max-width: 480px) {
  .nav-wrap { gap: .75rem; }
  .brand { flex-shrink: 1; min-width: 0; gap: .6rem; }
  .brand-text { min-width: 0; }
  .brand-text strong { font-size: .85rem; }
  .brand-text small  { display: none; }
}

/* Footer mobile */
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; gap: .8rem; text-align: center; }
  .footer-links { justify-content: center; }
}

/* Keep all entrance content visible when motion is reduced. */
@media (prefers-reduced-motion: reduce) {
  .reveal, .cta-row, .hero h1, .hero-kicker, .hero-lead, .hero-actions,
  .hero-visual, .page-hero-content .section-label, .page-hero-content h1,
  .page-hero-cta, .page-hero-lead, .page-hero-photo {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mobile navigation stays hidden until opened. */
@media (max-width: 860px) {
  .main-nav { position: absolute; top: 100%; visibility: hidden; pointer-events: none; }
  .main-nav.open { visibility: visible; pointer-events: auto; }
}
