:root {
      --black:      #000000;
      --white:      #FFFFFF;
      --teal:       #4A7A8A;
      --teal-dark:  #2A5060;
      --teal-light: #EEF5F7;
      --teal-mid:   #6B9EB0;
      --teal-deep:  #21333D;
      --ochre:      #C0894E;
      --cool-tint:  #E6F0F2;
      --warm-100:   #F7F4F0;
      --warm-200:   #EDE8E0;
      --gray-100:   #F6F6F6;
      --gray-200:   #E8E8E8;
      --gray-400:   #AAAAAA;
      --gray-600:   #666666;
      --font-display: 'Cormorant Garamond', Georgia, serif;
      --font-body:    'DM Sans', system-ui, sans-serif;
      --max-w: 1280px;
      --pad-x: 64px;
      --sec-v: 120px;
    }

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

    html { scroll-behavior: smooth; }

    body {
      font-family: var(--font-body);
      font-size: 18px;
      line-height: 1.7;
      color: var(--black);
      background: var(--white);
      overflow-x: hidden;
    }

    .container {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 0 var(--pad-x);
    }

    /* ── NAVIGATION ─────────────────────────── */
    #nav {
      position: fixed;
      inset: 0 0 auto 0;
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 28px var(--pad-x);
      transition: padding .4s ease, background .4s ease, box-shadow .4s ease;
    }

    #nav.scrolled {
      background: var(--white);
      box-shadow: 0 1px 0 rgba(0,0,0,.07);
      padding: 18px var(--pad-x);
    }

    .nav-logo {
      font-family: var(--font-display);
      font-size: 21px;
      font-weight: 500;
      letter-spacing: .02em;
      color: var(--black);
      text-decoration: none;
      transition: color .4s ease;
      white-space: nowrap;
    }

    #nav.scrolled .nav-logo { color: var(--black); }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 40px;
      list-style: none;
    }

    .nav-links a {
      font-size: 13px;
      font-weight: 400;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--gray-600);
      text-decoration: none;
      transition: color .25s ease;
    }
    .nav-links a:hover { color: var(--black); }

    #nav.scrolled .nav-links a { color: var(--gray-600); }
    #nav.scrolled .nav-links a:hover { color: var(--black); }

    .nav-cta {
      font-size: 12px !important;
      font-weight: 500 !important;
      letter-spacing: .1em !important;
      color: var(--white) !important;
      background: var(--teal);
      padding: 11px 26px;
      border: 1.5px solid var(--teal);
      transition: background .25s ease, border-color .25s ease !important;
      white-space: nowrap;
    }
    .nav-cta:hover {
      background: var(--teal-dark) !important;
      border-color: var(--teal-dark) !important;
    }
    #nav.scrolled .nav-cta { color: var(--white) !important; }

    

/* Hero Logo Anpassung */
.hero-logo-card {
  width: clamp(180px, 22vw, 290px);
  margin: 0 0 30px;
  padding: 12px;
  position: relative;
  isolation: isolate;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(238,245,247,.38)),
    linear-gradient(145deg, rgba(74,122,138,.20), rgba(192,137,78,.12));
  box-shadow:
    0 28px 70px rgba(33,51,61,.15),
    0 1px 0 rgba(255,255,255,.75) inset;
}

.hero-logo-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 36px;
  background:
    radial-gradient(circle at 35% 25%, rgba(74,122,138,.22), transparent 58%),
    radial-gradient(circle at 80% 80%, rgba(192,137,78,.18), transparent 55%);
  filter: blur(12px);
  opacity: .75;
}

.hero-logo-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.hero-logo-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #000;
}

@media (max-width: 800px) {
  .hero-logo-card {
    width: min(240px, 72vw);
    margin-bottom: 26px;
  }
}

/* ── HERO ───────────────────────────────── */
    /* Teal accent line at top */
    body::before {
      content: '';
      position: fixed;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(to right, var(--teal), var(--teal-dark));
      z-index: 300;
    }

    #hero {
      min-height: 100vh;
      background: var(--warm-100);
      display: grid;
      grid-template-columns: 55% 45%;
      position: relative;
      overflow: hidden;
    }

    .hero-left {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 160px var(--pad-x) 100px;
      position: relative;
      z-index: 2;
    }

    .hero-eyebrow {
      display: flex;
      align-items: center;
      gap: 14px;
      font-size: 11px;
      font-weight: 400;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--teal);
      margin-bottom: 32px;
    }
    .hero-eyebrow::before {
      content: '';
      display: block;
      width: 36px;
      height: 1px;
      background: var(--teal);
    }

    .hero-title {
      font-family: var(--font-display);
      font-size: clamp(56px, 5.5vw, 88px);
      font-weight: 400;
      line-height: 1.05;
      color: var(--black);
      margin-bottom: 32px;
    }
    .hero-title em {
      font-style: italic;
      color: var(--teal);
    }

    .hero-sub {
      font-size: 17px;
      font-weight: 300;
      line-height: 1.7;
      color: var(--gray-600);
      max-width: 420px;
      margin-bottom: 52px;
      text-wrap: pretty;
    }

    .hero-btns {
      display: flex;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap;
    }

    .btn-primary {
      display: inline-block;
      padding: 15px 36px;
      background: var(--teal);
      color: var(--white);
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 500;
      letter-spacing: .09em;
      text-transform: uppercase;
      text-decoration: none;
      transition: background .25s ease;
    }
    .btn-primary:hover { background: var(--teal-dark); }

    .btn-ghost {
      display: inline-block;
      padding: 14px 36px;
      border: 1.5px solid var(--gray-200);
      color: var(--gray-600);
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 400;
      letter-spacing: .09em;
      text-transform: uppercase;
      text-decoration: none;
      transition: border-color .25s ease, color .25s ease;
    }
    .btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

    .hero-scroll {
      position: absolute;
      bottom: 44px;
      left: var(--pad-x);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      color: var(--gray-400);
      font-size: 10px;
      letter-spacing: .2em;
      text-transform: uppercase;
    }
    .hero-scroll::before {
      content: '';
      display: block;
      width: 1px;
      height: 48px;
      background: linear-gradient(to bottom, rgba(0,0,0,.15), transparent);
    }

    .hero-right {
      position: relative;
      overflow: hidden;
    }

    .hero-right::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to right, var(--warm-100) 0%, transparent 20%);
      z-index: 1;
      pointer-events: none;
    }

    /* ── PLACEHOLDER ────────────────────────── */
    .ph {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 14px;
    }

    .ph-hero  { background: linear-gradient(155deg, var(--teal) 0%, var(--teal-dark) 100%); }
    .ph-light { background: linear-gradient(145deg, var(--teal-light) 0%, #d4e6ec 100%); }
    .ph-warm  { background: linear-gradient(145deg, var(--warm-200) 0%, var(--warm-100) 100%); }

    .ph-icon { display: block; }
    .ph-hero  .ph-icon { color: rgba(255,255,255,.45); }
    .ph-light .ph-icon { color: rgba(42,80,96,.4); }
    .ph-warm  .ph-icon { color: rgba(74,122,138,.45); }

    .ph-label {
      font-size: 11px;
      letter-spacing: .16em;
      text-transform: uppercase;
      font-family: var(--font-body);
      font-weight: 400;
    }
    .ph-hero  .ph-label { color: rgba(255,255,255,.45); }
    .ph-light .ph-label { color: rgba(42,80,96,.55); }
    .ph-warm  .ph-label { color: rgba(74,122,138,.65); }

    /* ── FUSION SLIDESHOW ─────────────────── */
    .fusion { position: relative; overflow: hidden; }
    .fusion__layer {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 14px;
      opacity: 0;
      transition: opacity 1.9s cubic-bezier(.4,0,.2,1);
    }
    .fusion__layer.is-active { opacity: 1; }

    @media (prefers-reduced-motion: no-preference) {
      .fusion--motion .fusion__layer {
        animation: kenburns 18s ease-in-out infinite alternate;
      }
      .fusion--motion .fusion__layer:nth-child(2) { animation-delay: -6s; }
      .fusion--motion .fusion__layer:nth-child(3) { animation-delay: -12s; }
    }
    @keyframes kenburns {
      from { transform: scale(1.03); }
      to   { transform: scale(1.13); }
    }

    .fusion--dark .ph-label { color: rgba(255,255,255,.55); }
    .fusion--dark .ph-icon  { color: rgba(255,255,255,.5); }
    .fusion--tint .ph-label { color: rgba(42,80,96,.62); }
    .fusion--tint .ph-icon  { color: rgba(42,80,96,.46); }

    /* ── SECTION BASE ───────────────────────── */
    section { padding: var(--sec-v) 0; }

    .eyebrow {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--teal);
      margin-bottom: 14px;
    }

    .sec-title {
      font-family: var(--font-display);
      font-size: clamp(38px, 3.8vw, 58px);
      font-weight: 400;
      line-height: 1.12;
      margin-bottom: 22px;
      text-wrap: pretty;
    }

    .sec-lead {
      font-size: 17px;
      font-weight: 300;
      color: var(--gray-600);
      line-height: 1.75;
      max-width: 540px;
    }

    /* ── LEISTUNGEN ─────────────────────────── */
    #leistungen { background: var(--cool-tint); }

    .lst-head { margin-bottom: 72px; }

    .lst-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2px;
      background: var(--gray-200);
    }

    .lst-card {
      background: var(--white);
      padding: 64px 56px;
      position: relative;
      overflow: hidden;
      transition: background .3s ease;
    }

    .lst-card::before {
      content: '';
      position: absolute;
      inset: 0 auto 0 0;
      width: 3px;
      background: var(--teal);
      transform: scaleY(0);
      transform-origin: top;
      transition: transform .45s ease;
    }
    .lst-card:hover::before { transform: scaleY(1); }
    .lst-card:hover { background: #FAFCFD; }

    .lst-num {
      font-family: var(--font-display);
      font-size: 96px;
      font-weight: 400;
      color: var(--teal-light);
      line-height: 1;
      margin-bottom: 20px;
      transition: color .3s ease;
    }
    .lst-card:hover .lst-num { color: rgba(74,122,138,.18); }

    /* second card: warm ochre accent */
    .lst-card:nth-child(2)::before { background: var(--ochre); }
    .lst-card:nth-child(2) .lst-num { color: #F0E4D3; }
    .lst-card:nth-child(2):hover .lst-num { color: rgba(192,137,78,.3); }
    .lst-card:nth-child(2) .lst-items li::before { color: var(--ochre); }

    .lst-title {
      font-family: var(--font-display);
      font-size: 30px;
      font-weight: 500;
      margin-bottom: 18px;
    }

    .lst-body {
      font-size: 16px;
      font-weight: 300;
      color: var(--gray-600);
      line-height: 1.8;
      margin-bottom: 32px;
    }

    .lst-items {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .lst-items li {
      font-size: 15px;
      color: var(--gray-600);
      padding-left: 22px;
      position: relative;
    }
    .lst-items li::before {
      content: '—';
      position: absolute;
      left: 0;
      color: var(--teal);
    }

    /* ── ÜBER UNS ───────────────────────────── */
    #team { background: var(--warm-100); }

    .team-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 96px;
      align-items: center;
    }

    .team-img { aspect-ratio: 3/4; overflow: hidden; }

    .team-body-text {
      font-size: 17px;
      font-weight: 300;
      color: var(--gray-600);
      line-height: 1.85;
      margin-bottom: 24px;
      text-wrap: pretty;
    }

    .team-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 32px;
      margin-top: 48px;
      padding-top: 40px;
      border-top: 1px solid rgba(74,122,138,.2);
    }

    .stat-val {
      font-family: var(--font-display);
      font-size: 40px;
      font-weight: 400;
      color: var(--teal-dark);
      line-height: 1;
      margin-bottom: 6px;
    }

    .stat-lbl {
      font-size: 13px;
      font-weight: 400;
      color: var(--gray-400);
      line-height: 1.5;
    }

    /* ── PHILOSOPHIE ────────────────────────── */
    #philosophie {
      background: var(--teal-dark);
      color: var(--white);
      padding: 160px 0;
    }

    .phil-inner {
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: 96px;
      align-items: start;
    }

    .phil-aside-label {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: rgba(255,255,255,.3);
      padding-top: 10px;
    }

    .phil-quote {
      font-family: var(--font-display);
      font-size: clamp(30px, 3vw, 48px);
      font-weight: 400;
      font-style: italic;
      line-height: 1.35;
      color: var(--white);
      margin-bottom: 36px;
      quotes: '\201E' '\201C';
    }
    .phil-quote::before { content: open-quote; color: var(--teal-mid); margin-right: 4px; }
    .phil-quote::after  { content: close-quote; color: var(--teal-mid); margin-left: 4px; }

    .phil-text {
      font-size: 16px;
      font-weight: 300;
      color: rgba(255,255,255,.55);
      line-height: 1.85;
      max-width: 620px;
    }

    .phil-pillars {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 48px;
      margin-top: 80px;
      padding-top: 64px;
      border-top: 1px solid rgba(255,255,255,.1);
    }

    .pillar-title {
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 500;
      color: var(--white);
      margin-bottom: 12px;
    }

    .pillar-text {
      font-size: 15px;
      font-weight: 300;
      color: rgba(255,255,255,.45);
      line-height: 1.75;
      text-wrap: pretty;
    }

    /* ── CTA BAND ───────────────────────────── */
    #cta-band {
      background: var(--teal);
      padding: 88px 0;
      text-align: center;
    }

    .cta-band-title {
      font-family: var(--font-display);
      font-size: clamp(34px, 3vw, 50px);
      font-weight: 400;
      color: var(--white);
      margin-bottom: 14px;
    }

    .cta-band-sub {
      font-size: 17px;
      font-weight: 300;
      color: rgba(255,255,255,.7);
      margin-bottom: 44px;
    }

    .btn-white {
      display: inline-block;
      padding: 16px 40px;
      background: var(--white);
      color: var(--teal-dark);
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 500;
      letter-spacing: .09em;
      text-transform: uppercase;
      text-decoration: none;
      transition: background .25s ease, color .25s ease;
    }
    .btn-white:hover { background: var(--teal-light); color: var(--teal-dark); }

    /* ── ÖFFNUNGSZEITEN & STANDORT ──────────── */
    #kontakt { background: var(--cool-tint); }

    .kontakt-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 96px;
      align-items: start;
    }

    .hours-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 44px;
    }

    .hours-table tr { border-bottom: 1px solid var(--gray-200); }
    .hours-table tr:last-child { border-bottom: none; }

    .hours-table td {
      padding: 14px 0;
      font-size: 16px;
    }

    .hours-table td:first-child { color: var(--black); font-weight: 400; }
    .hours-table td:last-child  { text-align: right; color: var(--gray-600); font-weight: 300; }
    .hours-table tr.closed td  { color: var(--gray-400); }

    .contact-details {
      margin-top: 48px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .contact-row {
      display: flex;
      gap: 16px;
      align-items: flex-start;
    }

    .contact-icon {
      width: 18px;
      height: 18px;
      color: var(--teal);
      flex-shrink: 0;
      margin-top: 3px;
    }

    .contact-text {
      font-size: 16px;
      font-weight: 300;
      color: var(--gray-600);
      line-height: 1.55;
    }

    .map-block { margin-top: 44px; }

    .map-ph {
      height: 300px;
      overflow: hidden;
    }

    .map-note {
      font-size: 13px;
      font-weight: 300;
      color: var(--gray-400);
      margin-top: 12px;
      line-height: 1.6;
    }

    /* ── FOOTER ─────────────────────────────── */
    footer {
      background: var(--teal-deep);
      padding: 72px 0 36px;
    }

    .footer-top {
      display: grid;
      grid-template-columns: 2.2fr 1fr 1fr;
      gap: 80px;
      padding-bottom: 52px;
      border-bottom: 1px solid rgba(255,255,255,.07);
      margin-bottom: 28px;
    }

    .footer-logo {
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 400;
      color: var(--white);
      margin-bottom: 14px;
    }

    .footer-tagline {
      font-size: 14px;
      font-weight: 300;
      color: rgba(255,255,255,.3);
      line-height: 1.7;
      max-width: 270px;
      text-wrap: pretty;
    }

    .footer-col-head {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: rgba(255,255,255,.25);
      margin-bottom: 20px;
    }

    .footer-col-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer-col-links a {
      font-size: 14px;
      font-weight: 300;
      color: rgba(255,255,255,.45);
      text-decoration: none;
      transition: color .2s ease;
    }
    .footer-col-links a:hover { color: var(--white); }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .footer-copy {
      font-size: 12px;
      font-weight: 300;
      color: rgba(255,255,255,.18);
    }

    .footer-legal {
      display: flex;
      gap: 24px;
    }

    .footer-legal a {
      font-size: 12px;
      font-weight: 300;
      color: rgba(255,255,255,.18);
      text-decoration: none;
      transition: color .2s ease;
    }
    .footer-legal a:hover { color: rgba(255,255,255,.5); }

    /* ── SCROLL ANIMATIONS ──────────────────── */
    .fu {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity .75s ease, transform .75s ease;
    }
    .fu.vis { opacity: 1; transform: translateY(0); }
    .fu[data-d="1"] { transition-delay: .1s; }
    .fu[data-d="2"] { transition-delay: .2s; }
    .fu[data-d="3"] { transition-delay: .3s; }
    .fu[data-d="4"] { transition-delay: .4s; }

    /* ── RESPONSIVE ─────────────────────────── */
    @media (max-width: 1100px) {
      :root { --pad-x: 40px; --sec-v: 96px; }
      .team-grid, .kontakt-grid { grid-template-columns: 1fr; gap: 56px; }
      .team-img { aspect-ratio: 16/9; }
      .phil-inner { grid-template-columns: 1fr; gap: 32px; }
      .phil-aside-label { display: none; }
      .footer-top { grid-template-columns: 1fr 1fr; gap: 48px; }
    }

    @media (max-width: 800px) {
      :root { --pad-x: 24px; --sec-v: 72px; }
      #hero { grid-template-columns: 1fr; }
      .hero-right { display: none; }
      .hero-left { padding: 130px 24px 88px; }
      #nav { padding: 20px 24px; }
      #nav.scrolled { padding: 14px 24px; }
      .nav-links { display: none; }
      .lst-grid { grid-template-columns: 1fr; }
      .lst-card { padding: 48px 32px; }
      .lst-num { font-size: 72px; }
      .team-stats { grid-template-columns: 1fr 1fr; }
      .phil-pillars { grid-template-columns: 1fr; gap: 36px; }
      .footer-top { grid-template-columns: 1fr; }
    }

/* WordPress Ergänzungen */
.custom-logo {
  max-height: 48px;
  width: auto;
}
.default-page {
  padding-top: 150px;
  padding-bottom: 90px;
  min-height: 60vh;
}
.entry-content {
  font-size: 18px;
  line-height: 1.8;
}
.entry-content a {
  color: var(--teal);
}


/* Optional freie Builder-Unterseiten */
.builder-page-full {
  padding-top: 110px;
  min-height: 70vh;
}

.builder-page-full article,
.builder-page-blank article {
  width: 100%;
  max-width: none;
}

.builder-page-full .alignfull,
.builder-page-blank .alignfull {
  width: 100%;
  max-width: 100%;
}

.builder-page-full > article > :not(.alignfull) {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.builder-page-blank {
  padding-top: 0;
}

.blank-builder-template {
  background: var(--white);
}


/* =========================================================
   Version 1.3.0: Header, Logo-Abstand und Mobile Optimierung
   ========================================================= */

/* Header kompakter und besser lesbar */
#nav {
  padding-top: 18px;
  padding-bottom: 18px;
}

#nav.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav-logo {
  font-size: 28px;
  line-height: 1.1;
}

.nav-links {
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  letter-spacing: .085em;
}

.nav-cta {
  font-size: 14px !important;
  padding: 12px 28px;
}

/* Hero näher an den Header ziehen */
.hero-left {
  padding-top: 112px;
}

.hero-logo-card {
  margin-bottom: 18px;
  width: clamp(170px, 19vw, 260px);
}

/* Menü-Button Desktop ausblenden */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  margin: 6px auto;
  background: var(--black);
  transition: transform .25s ease, opacity .25s ease;
}

/* Tablets */
@media (max-width: 1100px) {
  .nav-logo {
    font-size: 24px;
  }

  .nav-links {
    gap: 24px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .hero-left {
    padding-top: 105px;
  }

  .hero-logo-card {
    width: clamp(165px, 24vw, 235px);
  }
}

/* Mobile Navigation */
@media (max-width: 800px) {
  body.nav-open {
    overflow: hidden;
  }

  #nav,
  #nav.scrolled {
    padding: 12px 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 1px 0 rgba(0,0,0,.07);
    backdrop-filter: blur(12px);
  }

  .nav-logo {
    font-size: 22px;
    max-width: calc(100vw - 92px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 260;
    flex-shrink: 0;
  }

  #nav.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  #nav.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    background: var(--white);
    border: 1px solid rgba(74,122,138,.16);
    box-shadow: 0 26px 70px rgba(33,51,61,.18);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }

  #nav.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 15px 12px;
    font-size: 15px;
    color: var(--black);
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-links li:last-child a {
    border-bottom: 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 10px;
    padding: 14px 18px !important;
  }

  #hero {
    min-height: auto;
  }

  .hero-left {
    padding: 92px 24px 64px;
    min-height: auto;
  }

  .hero-logo-card {
    width: min(205px, 58vw);
    margin-bottom: 16px;
    padding: 9px;
    border-radius: 22px;
  }

  .hero-logo-img {
    border-radius: 16px;
  }

  .hero-eyebrow {
    margin-bottom: 22px;
    font-size: 10px;
  }

  .hero-title {
    font-size: clamp(44px, 13vw, 58px);
    margin-bottom: 24px;
  }

  .hero-sub {
    font-size: 16px;
    margin-bottom: 34px;
  }

  .hero-btns {
    gap: 12px;
  }

  .btn-primary,
  .btn-ghost,
  .btn-white {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .container {
    padding-left: 22px;
    padding-right: 22px;
  }

  .sec-title {
    font-size: clamp(34px, 10vw, 44px);
  }

  .sec-lead,
  .team-body-text,
  .phil-text,
  .pillar-text,
  .contact-text {
    font-size: 16px;
  }

  .lst-card {
    padding: 38px 26px;
  }

  .kontakt-grid,
  .team-grid {
    gap: 42px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-legal {
    flex-wrap: wrap;
  }
}

/* Kleine Smartphones */
@media (max-width: 420px) {
  .nav-logo {
    font-size: 19px;
  }

  .hero-left {
    padding-top: 86px;
  }

  .hero-logo-card {
    width: min(185px, 62vw);
  }

  .hero-title {
    font-size: 42px;
  }

  .team-stats {
    grid-template-columns: 1fr;
  }

  .hours-table td {
    display: block;
    text-align: left !important;
    padding: 6px 0;
  }

  .hours-table tr {
    display: block;
    padding: 12px 0;
  }
}


/* =========================================================
   Version 1.4.0: Hero enger, CTA aus Header, 5 Leistungen
   ========================================================= */

/* Header bleibt schlank, aber gut lesbar */
#nav {
  padding-top: 14px;
  padding-bottom: 14px;
}

#nav.scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav-logo {
  font-size: 28px;
}

.nav-links a {
  font-size: 15px;
}

/* Termin-CTA im Header entfernen, auch falls noch in einem WP-Menü vorhanden */
#nav .nav-cta,
#nav a.nav-cta,
#nav .nav-links li:last-child a.nav-cta {
  display: none !important;
}

/* Hero-Inhalt deutlich weiter nach oben */
#hero {
  min-height: 82vh;
}

.hero-left {
  justify-content: flex-start;
  padding-top: 86px;
  padding-bottom: 70px;
}

.hero-logo-card {
  width: clamp(165px, 17vw, 240px);
  margin-bottom: 14px;
}

.hero-eyebrow {
  margin-bottom: 22px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-sub {
  margin-bottom: 34px;
}

/* Hero Scroll-Hinweis weniger dominant */
.hero-scroll {
  bottom: 24px;
}

/* 5 Leistungsblöcke */
.lst-grid-extended {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lst-grid-extended .lst-card {
  min-height: 100%;
}

.lst-grid-extended .lst-card:nth-child(3)::before,
.lst-grid-extended .lst-card:nth-child(5)::before {
  background: var(--teal-dark);
}

.lst-grid-extended .lst-card:nth-child(4)::before {
  background: var(--ochre);
}

.lst-grid-extended .lst-card:nth-child(3) .lst-num,
.lst-grid-extended .lst-card:nth-child(5) .lst-num {
  color: rgba(74,122,138,.16);
}

.lst-grid-extended .lst-card:nth-child(4) .lst-num {
  color: rgba(192,137,78,.22);
}

@media (max-width: 1100px) {
  #hero {
    min-height: 78vh;
  }

  .hero-left {
    padding-top: 82px;
  }

  .lst-grid-extended {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  #hero {
    min-height: auto;
  }

  .hero-left {
    padding-top: 76px;
    padding-bottom: 54px;
  }

  .hero-logo-card {
    width: min(180px, 52vw);
    margin-bottom: 12px;
  }

  .hero-eyebrow {
    margin-bottom: 18px;
  }

  .lst-grid-extended {
    grid-template-columns: 1fr;
  }

  .lst-card {
    padding: 34px 24px;
  }
}

@media (max-width: 420px) {
  .hero-left {
    padding-top: 70px;
  }

  .hero-logo-card {
    width: min(165px, 56vw);
  }
}


/* =========================================================
   Version 1.5.0: Termin-Popup / Kontaktfenster
   ========================================================= */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.contact-modal.is-open {
  display: flex;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33,51,61,.58);
  backdrop-filter: blur(10px);
}

.contact-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,244,240,.98));
  border: 1px solid rgba(74,122,138,.18);
  box-shadow: 0 34px 90px rgba(0,0,0,.26);
  padding: 48px;
  color: var(--black);
}

.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--gray-600);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.contact-modal__close:hover {
  color: var(--black);
}

.contact-modal__eyebrow {
  margin-bottom: 12px;
}

.contact-modal__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 16px;
}

.contact-modal__text {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 30px;
}

.contact-modal__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.contact-modal__action {
  display: block;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--black);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contact-modal__action:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(33,51,61,.10);
}

.contact-modal__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 5px;
}

.contact-modal__action strong {
  display: block;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.contact-modal-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .contact-modal {
    padding: 18px;
    align-items: flex-end;
  }

  .contact-modal__dialog {
    padding: 38px 24px 28px;
    width: 100%;
  }

  .contact-modal__action {
    padding: 18px;
  }

  .contact-modal__action strong {
    font-size: 18px;
  }
}


/* =========================================================
   Version 1.6.0: Öffnungszeiten einzeln editierbar
   ========================================================= */

.hours-table td:first-child {
  width: 38%;
}

.hours-table td:last-child {
  width: 62%;
}

@media (max-width: 800px) {
  .hours-table td {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .hours-table td {
    display: block;
    width: 100% !important;
    text-align: left !important;
    padding: 4px 0;
  }

  .hours-table tr {
    display: block;
    padding: 11px 0;
  }

  .hours-table td:first-child {
    font-weight: 500;
  }
}


/* =========================================================
   Version 1.7.0: iOS / Android Mobile Pro
   ========================================================= */

/* Stabilität auf Mobile Browsern */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

a,
button {
  -webkit-tap-highlight-color: rgba(74,122,138,.18);
}

button,
input,
textarea,
select {
  font: inherit;
}

/* iPhone Notch / Android Status-Bar */
body::before {
  top: env(safe-area-inset-top, 0px);
}

#nav {
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px));
}

/* Desktop/Tablet etwas stabiler */
#hero {
  min-height: 82svh;
  min-height: 82dvh;
}

.hero-left {
  min-width: 0;
}

.hero-title,
.sec-title,
.cta-band-title {
  overflow-wrap: anywhere;
}

/* Auf Mobile soll der Look näher am Web bleiben: rechts kein Bild, aber gleiche ruhige Flächen */
@media (max-width: 800px) {
  :root {
    --pad-x: 22px;
    --sec-v: 64px;
  }

  body {
    font-size: 16px;
    line-height: 1.65;
  }

  #nav,
  #nav.scrolled {
    min-height: 64px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
  }

  .nav-logo {
    font-size: clamp(18px, 5.2vw, 23px);
    letter-spacing: .01em;
    line-height: 1.1;
  }

  .nav-toggle {
    width: 48px;
    height: 48px;
    margin-right: -8px;
  }

  .nav-toggle span {
    width: 28px;
  }

  .nav-links {
    top: calc(66px + env(safe-area-inset-top, 0px));
    left: max(14px, env(safe-area-inset-left, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
    max-height: calc(100svh - 88px - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 88px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
  }

  .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* Hero Mobile: näher nach oben, aber nicht vom fixed Header verdeckt */
  #hero {
    display: block;
    min-height: auto;
    background:
      radial-gradient(circle at 70% 0%, rgba(74,122,138,.16), transparent 34%),
      linear-gradient(180deg, var(--warm-100) 0%, #fff 100%);
  }

  .hero-left {
    padding:
      calc(76px + env(safe-area-inset-top, 0px))
      max(22px, env(safe-area-inset-right, 0px))
      54px
      max(22px, env(safe-area-inset-left, 0px));
    min-height: auto;
  }

  .hero-logo-card {
    width: clamp(150px, 46vw, 185px);
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 20px;
    box-shadow:
      0 18px 44px rgba(33,51,61,.14),
      0 1px 0 rgba(255,255,255,.75) inset;
  }

  .hero-logo-card::before {
    inset: -10px;
    filter: blur(9px);
    opacity: .55;
  }

  .hero-logo-img {
    border-radius: 14px;
  }

  .hero-eyebrow {
    font-size: 10px;
    margin-bottom: 16px;
    letter-spacing: .18em;
  }

  .hero-eyebrow::before {
    width: 28px;
  }

  .hero-title {
    font-size: clamp(42px, 12.5vw, 58px);
    line-height: 1.03;
    margin-bottom: 22px;
    max-width: 10ch;
  }

  .hero-sub {
    font-size: 16px;
    line-height: 1.65;
    max-width: 34ch;
    margin-bottom: 30px;
  }

  .hero-btns {
    width: 100%;
    gap: 12px;
  }

  .btn-primary,
  .btn-ghost,
  .btn-white {
    min-height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 360px;
    padding: 14px 18px;
  }

  .hero-scroll {
    display: none;
  }

  section {
    padding-top: var(--sec-v);
    padding-bottom: var(--sec-v);
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: max(22px, env(safe-area-inset-left, 0px));
    padding-right: max(22px, env(safe-area-inset-right, 0px));
  }

  .lst-head {
    margin-bottom: 42px;
  }

  .lst-grid,
  .lst-grid-extended {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    background: transparent;
  }

  .lst-card {
    padding: 34px 24px;
    border: 1px solid rgba(74,122,138,.10);
    border-radius: 20px;
  }

  .lst-card::before {
    border-radius: 20px 0 0 20px;
  }

  .lst-num {
    font-size: 58px;
    margin-bottom: 12px;
  }

  .lst-title {
    font-size: 27px;
    line-height: 1.15;
  }

  .team-img,
  .map-ph {
    border-radius: 22px;
  }

  .team-stats {
    gap: 18px;
  }

  #philosophie {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .phil-pillars {
    margin-top: 52px;
    padding-top: 46px;
  }

  #cta-band {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .kontakt-grid {
    grid-template-columns: 1fr;
  }

  .hours-table {
    margin-top: 32px;
  }

  .hours-table tr {
    background: rgba(255,255,255,.55);
    border-radius: 14px;
    margin-bottom: 8px;
  }

  .contact-details {
    margin-top: 38px;
  }

  footer {
    padding:
      58px
      max(0px, env(safe-area-inset-right, 0px))
      calc(34px + env(safe-area-inset-bottom, 0px))
      max(0px, env(safe-area-inset-left, 0px));
  }

  .footer-top {
    gap: 36px;
    padding-bottom: 38px;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .contact-modal {
    padding:
      16px
      max(16px, env(safe-area-inset-right, 0px))
      calc(16px + env(safe-area-inset-bottom, 0px))
      max(16px, env(safe-area-inset-left, 0px));
  }

  .contact-modal__dialog {
    border-radius: 22px 22px 0 0;
    max-height: calc(100svh - 32px - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Kleine iPhones / schmale Androids */
@media (max-width: 430px) {
  .hero-left {
    padding-top: calc(70px + env(safe-area-inset-top, 0px));
  }

  .hero-title {
    font-size: clamp(38px, 11.8vw, 48px);
  }

  .hero-logo-card {
    width: clamp(138px, 44vw, 165px);
  }

  .sec-title {
    font-size: clamp(32px, 9.8vw, 40px);
  }

  .lst-title {
    font-size: 25px;
  }

  .stat-val {
    font-size: 34px;
  }
}

/* Sehr kleine Geräte */
@media (max-width: 360px) {
  .nav-logo {
    font-size: 17px;
  }

  .hero-title {
    font-size: 36px;
  }

  .btn-primary,
  .btn-ghost,
  .btn-white {
    font-size: 12px;
    letter-spacing: .07em;
  }
}
