/* ================================================================
   WARNKING – Kinder- und Jugendlichenpsychotherapie
   Adapted from psyche-und-kinderwunsch.de
   Liquid Glass Design · Purple / Lavender Theme
   ================================================================ */

:root {
  --bg-color: #f4eff8;
  --bg-image: url('../images/background.png');
  --surface: #ffffff;

  /* ========== COLOR TOKENS ========== */
  --c-text: #1a1230;
  --c-text-muted: #6a5a80;
  --c-heading: #0f0a1e;

  /* Warm Purple / Lavender Accent */
  --c-accent: #7C5CBF;
  --c-accent-hover: #5E3EA5;
  --c-accent-soft: rgba(124, 92, 191, 0.08);

  --c-nav-text: #1a1230;
  --c-nav-hover: #7C5CBF;
  --c-nav-active: #7C5CBF;
  --c-focus: rgba(124, 92, 191, 0.4);

  /* Legacy */
  --text: var(--c-text);
  --muted: var(--c-text-muted);
  --primary: var(--c-accent);
  --accent: #B39DDB;

  --border: rgba(20, 10, 43, 0.06);
  --shadow: 0 10px 30px rgba(20, 10, 43, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.6);
  --lg-bg-color: rgba(255, 255, 255, 0.25);
  --lg-highlight: rgba(255, 255, 255, 0.6);
  --radius: 12px;
  --blur: 10px;
  --lg-blur: var(--blur);
  --lg-radius: var(--radius);
  --lg-shadow: var(--shadow);
  --nav-h: 80px;
  --footer-h: 120px;
  --container-w: 1100px;
  --max-width: 1200px;
  --flow-space: 1.05rem;
}

/* ========== DARK MODE ========== */
body.dark-mode {
  --bg-color: #0a0814;
  --bg-image: url('../images/background-dark.png');
  --surface: #12101e;

  --c-text: #e8e0f8;
  --c-text-muted: #9a90b8;
  --c-heading: #f0ecff;
  --c-accent: #B39DDB;
  --c-accent-hover: #c9b3ef;
  --c-accent-soft: rgba(179, 157, 219, 0.12);
  --c-nav-text: #e8e0f8;
  --c-nav-hover: #B39DDB;
  --c-nav-active: #B39DDB;
  --c-focus: rgba(179, 157, 219, 0.5);

  --text: var(--c-text);
  --muted: var(--c-text-muted);
  --primary: var(--c-accent);
  --accent: #c9b3ef;
  --border: rgba(240, 232, 255, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --glass-bg: rgba(18, 16, 30, 0.7);
  --glass-border: rgba(240, 232, 255, 0.1);
  --lg-bg-color: rgba(18, 16, 30, 0.55);
  --lg-highlight: rgba(255, 255, 255, 0.1);
  --lg-blur: var(--blur);
  --lg-radius: var(--radius);
  --lg-shadow: var(--shadow);
}

body.dark-mode {
  background-color: var(--bg-color) !important;
  background-image: var(--bg-image) !important;
  color: var(--text);
}

/* ========== MOBILE BACKGROUND FIX ========== */
@media (max-width: 1024px) {
  body {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center top !important;
  }
}
@supports (-webkit-touch-callout: none) {
  body { background-attachment: scroll !important; }
}

/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--bg-color) !important;
  background-image: var(--bg-image) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--c-heading);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 500; }
p { line-height: 1.65; margin-bottom: 1rem; }

.glass-content h1, .glass-content h2, .glass-content h3 {
  color: var(--c-heading);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}
.glass-content p, .glass-content li {
  color: var(--c-text);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}
body.dark-mode .glass-content h1,
body.dark-mode .glass-content h2,
body.dark-mode .glass-content h3,
body.dark-mode .glass-content p,
body.dark-mode .glass-content li { text-shadow: none; }

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

a { color: var(--c-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--c-accent-hover); }
a:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: 2px; }

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 1.25rem;
}
.site-main { width: 100%; max-width: none; overflow-x: hidden; }

/* ========== HEADER ========== */
.site-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: box-shadow 0.3s ease;
  border-radius: 0;
  box-shadow: none;
  cursor: grab;
}
.site-header.glass-container {
  position: fixed !important;
  border-radius: 0;
  box-shadow: none;
  cursor: grab;
}
.site-header .glass-filter,
.site-header .glass-overlay,
.site-header .glass-specular {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.site-header.scrolled .glass-filter,
.site-header.scrolled .glass-overlay,
.site-header.scrolled .glass-specular { opacity: 1; }
.site-header.scrolled.glass-container { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); }
.site-header .glass-overlay { background: var(--lg-bg-color); }
.site-header .glass-specular { border-radius: 0; }
.site-header .glass-content { pointer-events: auto; cursor: default; }
.site-header .glass-content a,
.site-header .glass-content button,
.site-header .settings-toggle { pointer-events: auto !important; cursor: pointer !important; position: relative; z-index: 10; }

/* ========== BRAND ========== */
.site-header .brand { cursor: pointer; }
.site-header .nav-wrap,
.site-header .glass-content.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%; max-width: none; margin: 0;
  padding: 0 2.5rem;
  height: var(--nav-h);
  box-sizing: border-box;
  flex-direction: row; gap: 0;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem; height: 100%;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500; font-size: 1rem; color: var(--c-heading);
  text-decoration: none; letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}
.brand:hover { text-decoration: none; opacity: 0.8; }
.brand img { height: 113px; width: auto; }
.brand .brand-text { font-weight: 500; letter-spacing: 0.01em; max-width: 200px; line-height: 1.3; }
@media (max-width: 600px) {
  .brand img { height: 75px; }
  .brand .brand-text { font-size: 0.95rem; }
}

/* ========== NAVIGATION ========== */
.site-nav { display: flex; align-items: center; height: 100%; }
.site-nav ul {
  display: flex; gap: 0.25rem; align-items: center;
  margin: 0; padding: 0; list-style: none; height: 100%;
}
.site-nav li { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.site-nav a {
  display: flex; align-items: center; height: 100%;
  padding: 0 0.875rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--c-nav-text); text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: 0; position: relative; white-space: nowrap; flex-shrink: 0;
}
.site-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 0; height: 2px;
  background: var(--c-accent); transition: width 0.25s ease;
}
.site-nav a:hover { color: var(--c-nav-hover); background: var(--c-accent-soft); }
.site-nav a:hover::after, .site-nav a.active::after { width: 60%; }
.site-nav a.active { color: var(--c-nav-hover); background: var(--c-accent-soft); }
.site-nav li.sep { margin-left: 0.75rem; padding-left: 0.75rem; border-left: 1px solid rgba(0,0,0,0.08); }

/* Settings toggle */
.nav-settings { margin-left: 0.5rem; }
.settings-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: none;
  background: var(--c-accent-soft); border-radius: 50%;
  cursor: pointer; color: var(--c-text); transition: all 0.3s ease;
}
.settings-toggle:hover { background: rgba(124,92,191,0.15); transform: rotate(45deg); }

/* ========== SETTINGS PANEL ========== */
.settings-panel {
  position: fixed;
  top: var(--nav-h); right: -320px;
  width: 300px;
  max-height: calc(100vh - var(--nav-h));
  z-index: 99998;
  transition: right 0.3s ease, background 0.4s ease, box-shadow 0.4s ease;
  overflow-y: auto;
  background: transparent;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15), 0 0 20px rgba(0,0,0,0.1);
  border-left: 1px solid rgba(255,255,255,0.3);
}
.settings-panel::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  backdrop-filter: blur(0px); filter: url(#lg-dist);
  transition: backdrop-filter 0.4s ease, filter 0.4s ease;
}
.settings-panel::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--lg-bg-color, rgba(255,255,255,0.3));
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.5);
  transition: background 0.4s ease;
}
.settings-panel.active { right: 0; }
body.glass-frosted .settings-panel { border-left: none; }
body.glass-frosted .settings-panel::before {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%); filter: none;
}
body.glass-frosted .settings-panel::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.2) 100%);
}
body.dark-mode .settings-panel { border-left-color: rgba(240,232,255,0.1); }
body.dark-mode .settings-panel::after { background: rgba(18,16,30,0.7); box-shadow: inset 1px 0 0 rgba(240,232,255,0.1); }
body.dark-mode.glass-frosted .settings-panel::after {
  background: linear-gradient(180deg, rgba(18,16,30,0.8) 0%, rgba(18,16,30,0.6) 50%, rgba(18,16,30,0.5) 100%);
}

.settings-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(124,92,191,0.1);
  position: relative; z-index: 1; cursor: grab; user-select: none;
}
.settings-header:active { cursor: grabbing; }
body.draggable-disabled .settings-header { cursor: default; }
.settings-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem; font-weight: 500; margin: 0; color: var(--c-heading);
}
.settings-close {
  width: 32px; height: 32px; border: none; background: transparent;
  font-size: 1.5rem; color: var(--muted); cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.settings-close:hover { background: rgba(124,92,191,0.1); color: var(--c-text); }
.settings-options { padding: 1rem; position: relative; z-index: 1; }
.setting-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(124,92,191,0.08);
}
.setting-item:last-child { border-bottom: none; }
.setting-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: var(--c-text); font-weight: 500;
}
.toggle-switch { display: flex; align-items: center; gap: 0.5rem; }
.toggle-label { font-size: 0.8rem; color: var(--muted); }

/* ========== SWITCH / TOGGLE ========== */
.switch { position: relative; display: inline-block; width: 52px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(124,92,191,0.2); border-radius: 28px;
  transition: 0.3s;
}
.slider::before {
  content: ''; position: absolute;
  height: 22px; width: 22px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%;
  transition: 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.switch input:checked + .slider { background: var(--c-accent); }
.switch input:checked + .slider::before { transform: translateX(24px); }

/* Slider with icons */
.slider-theme, .slider-lang, .slider-glass {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px; overflow: hidden;
}
.slider-icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 0.75rem; transition: opacity 0.2s ease; pointer-events: none;
  display: flex; align-items: center;
}
.slider-icon-sun { left: 6px; opacity: 1; }
.slider-icon-moon { right: 6px; opacity: 0; }
.switch input:checked + .slider-theme .slider-icon-sun { opacity: 0; }
.switch input:checked + .slider-theme .slider-icon-moon { opacity: 1; }
.slider-icon-de { left: 5px; opacity: 1; }
.slider-icon-en { right: 5px; opacity: 0; }
.switch input:checked + .slider-lang .slider-icon-de { opacity: 0; }
.switch input:checked + .slider-lang .slider-icon-en { opacity: 1; }
.slider-icon-clear { left: 5px; opacity: 1; }
.slider-icon-frosted { right: 5px; opacity: 0; }
.switch input:checked + .slider-glass .slider-icon-clear { opacity: 0; }
.switch input:checked + .slider-glass .slider-icon-frosted { opacity: 1; }

/* ========== DARK MODE UI ========== */
body.dark-mode .brand, body.dark-mode .site-nav a { color: var(--text); }
body.dark-mode .brand img { filter: invert(1) brightness(2); }
.portrait-lightbox { cursor: zoom-in; margin: 0; }
.portrait-lightbox figcaption { display: none; }
body.dark-mode .site-nav a:hover, body.dark-mode .site-nav a.active { color: var(--primary); background: rgba(179,157,219,0.1); }
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 { color: var(--text); }
body.dark-mode a { color: var(--primary); }
body.dark-mode a:hover { color: var(--accent); }
body.dark-mode .settings-header { border-bottom: 1px solid rgba(240,232,255,0.1); }
body.dark-mode .settings-header h3, body.dark-mode .setting-label { color: var(--text); }
body.dark-mode .settings-close { color: var(--muted); }
body.dark-mode .settings-close:hover { background: rgba(179,157,219,0.1); color: var(--text); }
body.dark-mode .setting-item { border-bottom-color: rgba(240,232,255,0.08); }
body.dark-mode .toggle-label { color: var(--muted); }
body.dark-mode .slider { background: rgba(179,157,219,0.2); }
body.dark-mode .settings-toggle { background: rgba(179,157,219,0.1); color: var(--text); }
body.dark-mode .settings-toggle:hover { background: rgba(179,157,219,0.2); }

/* ========== SECTIONS ========== */
.section {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
}
.section:first-of-type, .hero { padding-top: var(--nav-h); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.hero-copy { max-width: 640px; }
.hero-copy .glass-content h1 { margin-bottom: 1rem; }
.hero-copy .glass-content .lead { font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-card { max-width: 320px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 0.75rem; border: none;
  font-family: 'Lato', sans-serif; font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer; text-decoration: none;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(124,92,191,0.35); }
.btn-ghost { background: transparent; color: var(--c-text); border: 1.5px solid rgba(124,92,191,0.25); }
.btn-ghost:hover { background: var(--c-accent-soft); border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-2px); }
body.dark-mode .btn-primary { background: var(--primary); color: #0a0814; }
body.dark-mode .btn-ghost { border-color: rgba(240,232,255,0.2); color: var(--text); }
body.dark-mode .btn-ghost:hover { background: rgba(240,232,255,0.05); }

/* ========== CARDS GRID ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ========== PROFILE SECTION ========== */
.profile {
  display: grid;
  grid-template-areas:
    "portrait text"
    "quali    quali";
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.profile-portrait { grid-area: portrait; }
.profile-text     { grid-area: text; }
.profile-card     { grid-area: quali; }
.profile-portrait .glass-content { padding: 0; }
.portrait-img {
  width: 100%; height: auto;
  border-radius: 1rem;
  object-fit: cover;
  display: block;
}

/* ========== PRAXIS GRID ========== */
.praxis-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  align-items: start;
}

/* ========== GALLERY ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  position: relative; border-radius: 1rem; overflow: hidden;
  cursor: pointer; margin: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.18); }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; display: block; }
.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff; font-size: 0.875rem; font-weight: 500; text-align: center;
  text-shadow: none;
}

/* ========== CONTACT GRID ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  align-items: start;
}

/* ========== FORM ========== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.375rem; font-weight: 600; font-size: 0.9rem; color: var(--c-text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(124,92,191,0.15);
  border-radius: 0.75rem;
  font-family: inherit; font-size: 0.95rem; color: var(--c-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(124,92,191,0.15);
  background: rgba(255,255,255,0.9);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group-privacy { margin-top: 0.75rem; }
.privacy-label { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; cursor: pointer; line-height: 1.4; }
.privacy-label input[type="checkbox"] { margin-top: 0.15rem; accent-color: var(--c-accent); }
.btn-submit {
  width: 100%; padding: 0.85rem; border: none; border-radius: 0.75rem;
  background: var(--c-accent); color: #fff;
  font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-submit:hover { background: var(--c-accent-hover); transform: translateY(-2px); }
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background: rgba(18,16,30,0.8); border-color: rgba(240,232,255,0.15); color: var(--text);
}
body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
  border-color: var(--primary); background: rgba(18,16,30,0.95); box-shadow: 0 0 0 3px rgba(179,157,219,0.15);
}
body.dark-mode .btn-submit { background: linear-gradient(135deg, var(--primary), #c9b3ef); }
body.dark-mode .btn-submit:hover { background: linear-gradient(135deg, #c9b3ef, var(--primary)); }

/* ========== STOERUNGSBILDER ========== */
.stoerungen-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.75rem;
}
.stoerungen-list li {
  padding: 0.75rem 1rem; background: var(--c-accent-soft);
  border-radius: 0.75rem; border-left: 3px solid var(--c-accent);
  font-size: 0.95rem; line-height: 1.5;
}
.stoerungen-list li strong { color: var(--c-accent); }
.stoerungen-sub-heading {
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem;
  font-weight: 500; color: var(--c-heading); margin: 2rem 0 1rem; width: 100%;
}
body.dark-mode .stoerungen-list li { background: rgba(179,157,219,0.08); border-left-color: var(--primary); }
body.dark-mode .stoerungen-list li strong { color: var(--primary); }

/* ========== IMPRESSUM ========== */
.impressum-content h3 {
  margin-top: 2rem; font-size: 1.15rem; color: var(--c-heading);
}
.impressum-content p { margin-bottom: 1rem; }

/* ========== MAP ========== */
.map-toggle {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  padding: 0.75rem 0; background: none; border: none;
  font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--c-accent);
  cursor: pointer; transition: opacity 0.2s ease;
}
.map-toggle:hover { opacity: 0.8; }
.map-chevron { transition: transform 0.3s ease; margin-left: auto; flex-shrink: 0; }
.map-toggle[aria-expanded="true"] .map-chevron { transform: rotate(180deg); }
.map-embed { margin-top: 1rem; }
.map-embed iframe { width: 100%; height: 280px; border: none; border-radius: 0.75rem; }
.map-privacy-note { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }

/* ========== FAQ ========== */
.faq-list.glass-container details {
  margin-bottom: 0.75rem; border-bottom: 1px solid rgba(124,92,191,0.1);
  padding-bottom: 0.75rem;
}
.faq-list.glass-container details:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.faq-list.glass-container summary {
  cursor: pointer; font-weight: 600; color: var(--text);
  padding: 0.5rem 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list.glass-container summary::-webkit-details-marker { display: none; }
.faq-list.glass-container summary::after { content: '+'; font-size: 1.25rem; color: var(--primary); transition: transform 0.2s ease; }
.faq-list.glass-container details[open] summary::after { content: '−'; }
.faq-list.glass-container details p { padding: 0.5rem 0; margin: 0; color: var(--muted); }
body.dark-mode .faq-list.glass-container details { border-bottom-color: rgba(240,232,255,0.1); }
body.dark-mode .faq-list.glass-container summary { color: var(--text); }
body.dark-mode .faq-list.glass-container summary::after { color: var(--primary); }

/* ========== MUTED / LEAD TEXT ========== */
.muted { color: var(--muted); font-size: 0.9rem; }
.lead { font-size: 1.1rem; color: var(--c-text-muted); }

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: 0.75rem; object-fit: contain; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 0.75rem; font-size: 0.9rem; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 2rem; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 1.5rem; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }

/* ========== FOOTER ========== */
.site-footer.glass-container { cursor: default; border-radius: 0; margin-top: 2rem; }
.site-footer.glass-container .glass-content.footer-content { padding: 3rem 2rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; color: var(--c-heading); font-weight: 500; }
.footer-logo img { height: 40px; width: auto; }
.footer-brand p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.footer-col h4 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--c-heading); position: relative; }
.footer-col h4::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 24px; height: 2px; background: var(--c-accent); }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 0.5rem; display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.footer-links a, .footer-contact a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--c-accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.heart { color: #e85a8a; }
body.dark-mode .footer-col h4::after { background: var(--primary); }
body.dark-mode .footer-links a, body.dark-mode .footer-contact li, body.dark-mode .footer-brand p { color: var(--muted); }
body.dark-mode .footer-links a:hover, body.dark-mode .footer-contact a:hover { color: var(--primary); }
body.dark-mode .footer-logo span { color: var(--text); }
body.dark-mode .footer-bottom { border-top-color: rgba(240,232,255,0.1); color: var(--muted); }
body.dark-mode .site-footer { background: linear-gradient(180deg, rgba(179,157,219,0.03) 0%, rgba(179,157,219,0.08) 100%); border-top-color: rgba(240,232,255,0.1); }

/* ========== THEME / GLASS FLASH ========== */
.theme-flash, .glass-flash {
  position: fixed; inset: 0; z-index: 999999; pointer-events: none; opacity: 0;
  transition: opacity 0.15s ease;
}
.theme-flash.active, .glass-flash.active { opacity: 1; }
.theme-flash.light-to-dark { background: radial-gradient(circle at center, rgba(18,16,30,0.8), rgba(18,16,30,0.95)); }
.theme-flash.dark-to-light { background: radial-gradient(circle at center, rgba(255,255,255,0.8), rgba(255,255,255,0.95)); }
.glass-flash.clear-to-frosted { background: radial-gradient(circle at center, rgba(200,180,230,0.3), rgba(200,180,230,0.4)); }
.glass-flash.frosted-to-clear { background: radial-gradient(circle at center, rgba(124,92,191,0.2), rgba(124,92,191,0.3)); }

/* ========== TOAST ========== */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.875rem 1rem; border-radius: 0.75rem; min-width: 240px; max-width: 320px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.3);
  animation: toastIn 0.3s ease;
}
.toast.hiding { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } }
.toast-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: #fff; }
.toast-success .toast-icon { background: #22c55e; }
.toast-error .toast-icon { background: #ef4444; }
.toast-info .toast-icon { background: var(--c-accent); }
.toast-body { flex: 1; }
.toast-title { font-size: 0.8rem; font-weight: 700; color: var(--c-heading); margin-bottom: 0.1rem; }
.toast-message { font-size: 0.8rem; color: var(--muted); }
body.dark-mode .toast { background: rgba(18,16,30,0.85); border-color: rgba(240,232,255,0.15); }
body.dark-mode .toast-title { color: var(--text); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 100%; }
  .profile {
    grid-template-areas:
      "portrait"
      "text"
      "quali";
    grid-template-columns: 1fr;
  }
  .portrait-img { width: 100%; max-width: 280px; margin: 0 auto; }
  .praxis-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .section { padding: calc(var(--nav-h) + 2.5rem) 0 2.5rem; }
}
