/* ===========================
   KRANIOFAZIAL.CH – STYLESHEET
   Modern Minimalist / Swiss Medical
   =========================== */

:root {
  --ink: #0f1117;
  --ink-soft: #3a3d47;
  --ink-muted: #7a7e8a;
  --paper: #f8f7f5;
  --white: #ffffff;
  --accent: #1a5c8a;
  --accent-light: #d6e8f5;
  --accent-soft: #e8f2fa;
  --border: #e2e0dc;
  --border-strong: #c8c5be;
  --phase-bg: #f0ede8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-w: 1120px;
  --section-pad: 96px 24px;
  --radius: 2px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ——— SCROLLBAR ——— */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

/* ——— HEADER ——— */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(248, 247, 245, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0;
}

.logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin-right: 28px;
  flex-shrink: 0;
}
.logo-dot { color: var(--accent); }
.logo-tld { font-weight: 300; color: var(--ink-soft); }

/* ——— MAIN NAV ——— */
.main-nav { flex: 1; min-width: 0; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.main-nav > ul > li > a,
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.main-nav > ul > li > a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open > .nav-dropdown-toggle { color: var(--accent); }
.nav-current, .nav-dropdown-toggle.nav-current { color: var(--accent); font-weight: 500; }

/* Dropdown chevron SVG inherits color */
.nav-dropdown-toggle svg { transition: transform 0.2s; }
.nav-dropdown.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); }

/* Separator between dropdowns and standalone links */
.nav-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 8px;
  flex-shrink: 0;
}

/* ——— DROPDOWN MENUS ——— */
.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  min-width: 240px;
  padding: 6px 0;
  z-index: 500;
  list-style: none;
  animation: ddIn 0.14s ease;
}
@keyframes ddIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 20px;
  width: 8px; height: 8px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.nav-dropdown-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.nav-dropdown-menu li:last-child a { border-bottom: none; }
.nav-dropdown-menu li.nav-group-label { padding: 10px 16px 4px; font-size: .68rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); pointer-events: none; }
.nav-dropdown-menu li.nav-group-label + li a { border-top: none; }
.nav-dropdown-menu li a:hover { color: var(--accent); background: var(--accent-soft); }
.nav-dropdown-menu li a[aria-current="page"] { color: var(--accent); font-weight: 500; }

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }

/* ——— HEADER RIGHT (lang + hamburger) ——— */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%237a7e8a' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 5px 22px 5px 9px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  min-width: 52px;
}
.lang-select:hover,
.lang-select:focus {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}

/* ——— MOBILE NAV ——— */
@media (max-width: 768px) {
  .header-inner { gap: 8px; padding: 0 16px; }
  .logo { margin-right: auto; font-size: 1.1rem; }
  .main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: #f8f7f5;
    border-bottom: 2px solid #d4cfc4;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    padding: 8px 0 20px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--border); }
  .main-nav > ul > li:last-child { border-bottom: none; }
  .main-nav > ul > li > a,
  .nav-dropdown-toggle {
    padding: 13px 20px;
    font-size: 0.88rem;
    width: 100%;
    justify-content: space-between;
  }
  .nav-sep { display: none; }
  .nav-dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--accent-light);
    border-radius: 0;
    padding: 2px 0;
    margin: 0 0 4px 20px;
    animation: none;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu li a {
    padding: 9px 16px;
    font-size: 0.82rem;
    border-bottom: none;
  }
  .hamburger { display: flex !important; }
  .lang-select { min-width: 48px; font-size: 0.7rem; padding: 4px 18px 4px 7px; }
}


/* ——— EINSTIEGSBEREICH (2-Spalten-Homepage) ——— */
/* ═══ EINSTIEGSBEREICH ════════════════════════════════════════ */
.entry-section {
  border-bottom: 1px solid var(--border);
}
.entry-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.entry-section-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 20px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.entry-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.entry-col {
  padding: 28px 40px 36px 0;
}
.entry-col--right {
  padding: 28px 0 36px 40px;
  border-left: 1px solid var(--border);
}
.entry-eyebrow {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.entry-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.entry-eyebrow--muted { color: var(--ink-muted); }
.entry-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.entry-desc {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.entry-list { list-style: none; }
.entry-list li { border-bottom: 1px solid var(--border); }
.entry-list li:last-child { border-bottom: none; }
.entry-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 10px 13px 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-radius: var(--radius);
  min-height: 60px;
}
.entry-row:hover { background: var(--accent-soft); }
.entry-row:hover .entry-link-title {
  display: block;
  font-size: 0.84rem;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.3;
  transition: color 0.2s;
}
.entry-row:hover .entry-link-title { color: var(--accent); }
.entry-row:hover .entry-arr { color: var(--accent); transform: translateX(3px); }
.entry-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--border-strong);
  font-weight: 300;
  flex-shrink: 0;
  width: 20px;
  text-align: right;
  line-height: 1;
}
.entry-link-content { flex: 1; min-width: 0; }
.entry-link-title {
  display: block;
  font-size: 0.84rem;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.3;
  transition: color 0.2s;
}
.entry-link-sub {
  display: block;
  font-size: 0.69rem;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.4;
}
.entry-tag {
  font-size: 0.58rem;
  background: var(--phase-bg, rgba(26,92,138,0.07));
  color: var(--ink-muted);
  border-radius: var(--radius);
  padding: 2px 7px;
  letter-spacing: 0.04em;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}
.entry-arr {
  color: var(--border-strong);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
  padding-right: 4px;
}
.entry-cross {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.entry-cross-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.entry-cross-items { display: flex; gap: 8px; flex-wrap: wrap; }
.entry-cross-pill {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-decoration: none;
  background: var(--paper);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.entry-cross-pill:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 768px) {
  .entry-section-inner { padding: 0 20px; }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-col { padding: 20px 0 8px; }
  .entry-col--right { padding: 20px 0 8px; border-left: none; border-top: 1px solid var(--border); }
  .entry-row { min-height: 54px; padding: 11px 8px 11px 0; }
  .entry-cross { flex-direction: column; align-items: flex-start; gap: 10px; }
  .entry-cross-items { gap: 6px; }
}


/* ——— HERO ——— */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding-top: 40px;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
  /* Lange deutsche Komposita auf schmalen Screens umbrechen statt ueberlaufen */
  overflow-wrap: break-word;
  word-break: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.25s, transform 0.2s;
  border-radius: var(--radius);
}
.hero-cta:hover { background: var(--accent); transform: translateY(-1px); }

.hero-stat-bar {
  max-width: var(--max-w);
  margin: 60px auto 0;
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  display: flex;
  gap: 0;
  align-items: center;
  animation: fadeUp 0.9s 0.2s ease both;
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px;
}
.stat:first-child { padding-left: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 400;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ——— SECTIONS ——— */
.content-section { padding: var(--section-pad); }
.alt-bg { background: var(--white); }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 60px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  color: var(--ink);
}

.section-intro {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ——— TWO COL ——— */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.col-text p {
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.8;
}
.col-text h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}
.col-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.col-text ul li {
  padding-left: 16px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}
.col-text ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* ——— HIGHLIGHT BOXES ——— */
.col-highlight { display: flex; flex-direction: column; gap: 20px; }
.highlight-box {
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.highlight-box:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.hb-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.highlight-box h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.highlight-box p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; }

/* ——— CARDS ——— */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  background: var(--white);
  padding: 36px 28px;
  transition: background 0.25s;
  position: relative;
}
.card:hover { background: var(--accent-soft); }
.card-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--border-strong);
  margin-bottom: 16px;
  line-height: 1;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}
.card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.7; }

/* ——— TIMELINE ——— */
.timeline {
  border-left: 2px solid var(--border);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.tl-item { position: relative; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.tl-week {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.tl-desc { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }

/* ——— PHASES ——— */
.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.phase { background: var(--white); }
.phase-header {
  padding: 20px 24px;
  background: var(--ink);
  color: var(--white);
}
.phase-time {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.phase-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; }
.phase ul {
  list-style: none;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phase ul li {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
}
.phase ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  top: 1px;
}

/* ——— CONTACT ——— */
.contact-section { background: var(--paper); }
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: 48px;
  align-items: start;
  overflow: hidden;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; min-width: 0; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Consent box – fasst beide Checkboxen zusammen */
.consent-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}
.checkbox-label span { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.55; }

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  align-self: flex-start;
}
.submit-btn:hover { background: var(--accent); transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-status {
  font-size: 0.88rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  display: none;
}
.form-status.success { background: #e8f5e9; color: #2e7d32; display: block; }
.form-status.error { background: #fce4e4; color: #c62828; display: block; white-space: pre-line; }

/* Contact info – rechte Spalte */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  max-width: 280px;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}
.ci-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}
.ci-icon {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 28px;
}
.ci-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 3px;
}
.ci-item a { color: var(--accent); font-size: 0.88rem; text-decoration: none; word-break: break-all; }
.ci-item a:hover { text-decoration: underline; }
.ci-item p { font-size: 0.84rem; color: var(--ink-soft); line-height: 1.6; min-width: 0; }

.disclaimer-box {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}
.disclaimer-box p {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ——— FOOTER ——— */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 48px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
}
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  gap: 24px;
  margin: 8px 0;
}
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); margin-top: 4px; }

/* ——— ANIMATIONS ——— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— RESPONSIVE ——— */
@media (max-width: 1024px) {
  .phases { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px 20px; }

  .main-nav {
    display: none;
    position: fixed;           /* fixed = relativ zum Viewport, unabhängig vom header */
    top: 64px;
    left: 0;
    right: 0;
    background: #f8f7f5;       /* explizit, nicht var() – verhindert Rendering-Probleme */
    border-bottom: 2px solid #d4cfc4;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    padding: 8px 0 20px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;             /* über allem – definitiv sichtbar */
  }
  .main-nav.open { display: block; }  /* block statt flex – maximal kompatibel */
  .main-nav > ul { display: block; padding: 0; margin: 0; }
  .main-nav > ul > li { display: block; border-bottom: 1px solid #ede9e0; }
  .main-nav > ul > li:last-child { border-bottom: none; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 24px; font-size: 0.9rem; }

  .hamburger { display: flex !important; margin-left: auto; }
  .header-inner { gap: 8px; }
  .lang-select { min-width: 75px; font-size: 0.68rem; padding: 4px 20px 4px 7px; }

  .hero-stat-bar {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .stat-divider { width: 40px; height: 1px; }
  .stat { padding: 0; }

  .hero-title { font-size: clamp(1.85rem, 8.5vw, 2.9rem); line-height: 1.14; margin-bottom: 20px; }
  .hero-sub { font-size: 1rem; }
  .hero { padding-top: 88px; }

  .two-col, .two-col.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 40px;
  }

  .cards-grid { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }

  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  h2 { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .header-inner { gap: 16px; }
  .lang-select { min-width: 110px; font-size: 0.72rem; }
  .hero-title { font-size: clamp(1.6rem, 9vw, 2.3rem); }
}

/* ===========================
   NEUE SEKTIONEN: KONZEPTE
   =========================== */

/* Concept blocks */
.concept-block {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.concept-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.concept-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.concept-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}
.concept-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
}
.concept-sub {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* 3-column concept grid */
.concept-grid-3 {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.concept-card {
  background: var(--white);
  padding: 28px;
  position: relative;
  transition: background 0.2s;
}
.concept-card:hover { background: var(--accent-soft); }
.concept-card.featured { background: var(--ink); color: var(--white); }
.concept-card.featured:hover { background: var(--accent); }
.concept-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.concept-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: inherit;
}
.concept-card.featured h4 { color: var(--white); }
.concept-card p { font-size: 0.88rem; line-height: 1.7; color: var(--ink-soft); }
.concept-card.featured p { color: rgba(255,255,255,0.75); }

/* Concept info boxes (2-col) */
.concept-info-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
}
.concept-info-box.featured-box {
  border-color: var(--accent);
  border-width: 2px;
}
.concept-info-box h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.concept-info-box p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 16px; }
.concept-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.concept-list li {
  font-size: 0.87rem;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}
.concept-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-size: 0.8rem; }

/* Evidence note */
.evidence-note {
  display: flex;
  gap: 12px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-top: 16px;
}
.evidence-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.evidence-note p { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* col-text h4 */
.col-text h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
}
.col-text h4:first-child { margin-top: 0; }
.col-text p { font-size: 0.91rem; }

/* Responsive */
@media (max-width: 1024px) {
  .concept-grid-3 { grid-template-columns: 1fr 1fr; }
  .concept-grid-3 .concept-card.featured { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .concept-grid-3 { grid-template-columns: 1fr; }
  .concept-header { gap: 16px; }
  .concept-num { font-size: 2rem; width: 36px; }
}

/* ===========================
   ZENTREN-LISTE
   =========================== */
.center-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}
.center-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.center-item:last-child { border-bottom: none; }
.center-item:hover { background: var(--accent-soft); }
.center-city {
  padding: 14px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.center-name {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.5;
  background: var(--white);
}
.center-item:hover .center-city,
.center-item:hover .center-name { background: var(--accent-soft); }
.center-sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: block;
  margin-top: 2px;
}

/* Col-text links */
.col-text a { color: var(--accent); text-decoration: none; }
.col-text a:hover { text-decoration: underline; }
.col-text h3 + p { margin-top: 8px; }

/* ===========================
   ZITATIONEN & QUELLEN
   =========================== */
sup.cite {
  font-size: 0.68rem;
  line-height: 0;
  vertical-align: super;
  margin-left: 1px;
}
sup.cite a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0 1px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
sup.cite a:hover { border-bottom-color: var(--accent); }
sup.cite.highlight a {
  background: var(--accent-soft);
  border-radius: 2px;
  outline: 2px solid var(--accent);
}

/* Zurück-Leiste */
.back-cite-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 32px;
}
.back-cite-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.back-cite-btn:hover { opacity: 0.85; }

/* Aktive / angeklickte Quellenzeile */
.ref-list li.ref-active {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  transition: background 0.2s;
}
.ref-list li.ref-active::before {
  font-weight: 700;
}

/* Inline-Zurück-Button innerhalb der Quellenzeile */
.back-cite-inline {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  margin-left: 0;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.back-cite-inline:hover { opacity: 0.8; }

/* Referenzliste */
.ref-list {
  list-style: none;
  counter-reset: ref-counter;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}
.ref-list li {
  counter-increment: ref-counter;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
  line-height: 1.6;
  transition: background 0.15s;
}
.ref-list li:last-child { border-bottom: none; }
.ref-list li:hover { background: var(--accent-soft); }
.ref-list li::before {
  content: counter(ref-counter);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  padding: 14px 0 14px 14px;
  align-self: start;
}
.ref-item-body {
  padding: 14px 16px 14px 0;
  color: var(--ink-soft);
}
.ref-item-body em { font-style: italic; color: var(--ink); }
.ref-item-body a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 2px;
}
.ref-item-body a:hover { text-decoration: underline; }

/* ── FAQ Accordion ── */
.faq-list {
  max-width: 760px;
  margin: 2rem auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.faq-item:first-child {
  border-top: 1px solid var(--border, #e2e8f0);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink, #1a202c);
  position: relative;
  line-height: 1.45;
  font-family: inherit;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent, #2b6cb0);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-q[aria-expanded="true"]::after {
  content: '−';
}
.faq-q:hover {
  color: var(--accent, #2b6cb0);
}
.faq-a {
  padding: 0 1rem 1.1rem 0;
  color: var(--ink-soft, #4a5568);
  line-height: 1.7;
  font-size: 0.97rem;
}
.faq-a p {
  margin: 0;
}

/* ── 7-Sprachen-Badge ── */
.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.9rem 0 1.1rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  backdrop-filter: blur(4px);
}
.lang-badge-icon {
  font-size: 0.95rem;
  line-height: 1;
}
.lang-badge-langs {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink, #1a202c);
  opacity: 0.75;
}
@media (prefers-color-scheme: dark) {
  .lang-badge { background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.18); }
}

/* Mehrsprachige Unterseiten: nur die aktive Sprache anzeigen (Regel war durch Datei-Truncation verloren) */
.lang-section { display: none; }
.lang-section.active { display: block; }

/* --- Syndrome detail links & categorized references (added 2026-06-27) --- */
.syn-detail-link{display:inline-block;margin-top:10px;font-size:.82rem;font-weight:500;color:var(--accent);text-decoration:none;border-bottom:1px solid var(--accent-light);transition:border-color .2s;}
.syn-detail-link:hover{border-bottom-color:var(--accent);}
.syn-more-pages{margin:28px 0 8px;padding:20px 22px;background:var(--accent-soft);border:1px solid var(--accent-light);border-radius:6px;}
.syn-more-label{margin:0 0 12px;font-size:.9rem;font-weight:500;color:var(--ink-soft);}
.syn-more-links{display:flex;flex-wrap:wrap;gap:8px 14px;}
.syn-more-links a{font-size:.85rem;color:var(--accent);text-decoration:none;padding:6px 13px;background:#fff;border:1px solid var(--accent-light);border-radius:5px;transition:background .2s,color .2s,border-color .2s;}
.syn-more-links a:hover{background:var(--accent);color:#fff;border-color:var(--accent);}

/* Untergruppen-Ueberschrift in der Startseiten-Uebersicht */
.entry-list li.entry-subgroup { border-bottom: none; padding: 20px 0 4px; }
.entry-list li.entry-subgroup span { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }

/* Sprachleiste (Auch verfuegbar in) */
.lang-bar{background:var(--paper);border-bottom:1px solid var(--border);padding:10px 24px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:.78rem}
.lang-link{padding:4px 11px;border:1px solid var(--border);border-radius:3px;text-decoration:none;color:var(--ink-soft);transition:border-color .18s,color .18s}
.lang-link:hover,.lang-link.active{border-color:var(--accent);color:var(--accent)}
.lang-link.active{font-weight:500;background:var(--accent-soft)}
.lang-bar-label{font-size:.72rem;color:var(--ink-soft);margin-right:4px}

/* ── Fachpersonen/Professionals: Dringlichkeits-Matrix, Ampel, Checklisten, Zentren ── */
.matrix-table { width: 100%; border-collapse: collapse; font-size: .84rem; margin: 20px 0; }
.matrix-table th { background: var(--bg-warm, #f5f4f1); padding: 9px 12px; text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 2px solid var(--border); white-space: nowrap; }
.matrix-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--ink-soft); vertical-align: top; line-height: 1.5; }
.matrix-table tr:last-child td { border-bottom: none; }
.matrix-table tr:hover td { background: var(--accent-light, #d6e8f5); transition: background .1s; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-green  { background: var(--green-light, #d4eddd); color: var(--green, #2d7a4a); }
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; }
.checklist-card { background: var(--bg, #f8f7f5); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.checklist-card h3 { font-size: .9rem; color: var(--accent); margin-bottom: 10px; font-weight: 600; }
.checklist-card ul { padding: 0; margin: 0; list-style: none; }
.checklist-card li { padding: 5px 0 5px 22px; border-bottom: 1px solid var(--border); position: relative; font-size: .83rem; color: var(--ink-soft); line-height: 1.45; }
.checklist-card li:last-child { border-bottom: none; }
.checklist-card li::before { content: '✓'; position: absolute; left: 0; color: var(--green, #2d7a4a); font-weight: 700; }
.checklist-card.warn li::before { content: '→'; color: var(--amber, #d97706); }
.urgency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 20px 0; }
.urgency-card { border-radius: var(--radius); padding: 18px; }
.urgency-card.red    { background: #fee2e2; border-left: 4px solid #b91c1c; }
.urgency-card.orange { background: #ffedd5; border-left: 4px solid #c2410c; }
.urgency-card.yellow { background: #fef9c3; border-left: 4px solid #a16207; }
.urgency-card.green  { background: var(--green-light, #d4eddd); border-left: 4px solid var(--green, #2d7a4a); }
.urgency-card h3 { font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.urgency-card.red    h3 { color: #b91c1c; }
.urgency-card.orange h3 { color: #c2410c; }
.urgency-card.yellow h3 { color: #a16207; }
.urgency-card.green  h3 { color: var(--green, #2d7a4a); }
.urgency-card p { font-size: .8rem; margin: 0; color: var(--ink-soft); line-height: 1.5; }
.zentren-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 20px 0; }
.zentrum-card { background: var(--bg, #f8f7f5); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.zentrum-card .ort { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.zentrum-card h3 { font-size: .9rem; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.zentrum-card p { font-size: .8rem; color: var(--ink-muted); margin: 0; }
a.zentrum-link { display: block; text-decoration: none; color: inherit; border-radius: var(--radius); transition: box-shadow .15s, transform .15s; }
a.zentrum-link:hover .zentrum-card { border-color: var(--accent); box-shadow: 0 2px 10px rgba(26,92,138,.12); }
a.zentrum-link:hover { transform: translateY(-1px); }
.infobox.notice { background: var(--accent-light, #d6e8f5); border-left: 4px solid var(--accent); }
.infobox.notice p { color: var(--ink-soft); }
@media (max-width: 600px) {
  .checklist-grid, .urgency-grid, .zentren-list { grid-template-columns: 1fr; }
  .matrix-table { font-size: .78rem; }
  .matrix-table th, .matrix-table td { padding: 8px 8px; }
}
