/* ==========================================================================
   BAYLEX CONSULTING – STYLES
   --------------------------------------------------------------------------
   Aufbau:  1 Basis · 2 Typografie · 3 Buttons · 4 Header · 5 Hero
            6 Raster & Karten · 7 Leistungen · 8 Branchen · 9 Über uns
            10 Ablauf · 11 CTA · 12 Detailseiten · 13 Kontakt & Formular
            14 Rechtstexte · 15 Footer · 16 Animationen · 17 Reduced Motion
   Farben/Schrift/Tempo stehen NICHT hier, sondern in tokens.css.
   ========================================================================== */

/* ==========================================================================
   1  BASIS
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
  background: var(--navy-950);
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
site-header, site-footer { display: block; }
em { font-style: normal; }

::selection { background: var(--navy-900); color: #fff; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.icon {
  width: 1.25rem; height: 1.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Bereiche mit dunklem Grund: Text-/Linienfarben automatisch umschalten */
.section--dark, .hero, .page-hero, .site-header, .mobile-menu, .cta-band, .card--navy {
  --ink: var(--on-dark);
  --ink-muted: var(--on-dark-muted);
  --line: var(--line-dark);
  --line-strong: var(--line-dark-strong);
  --surface: var(--navy-900);
  --focus: #fff;
  color: var(--ink);
}
:root { --focus: var(--navy-600); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 300;
  padding: .7rem 1.1rem; border-radius: var(--r-md);
  background: #fff; color: var(--navy-900); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; outline-color: var(--navy-900); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.noscript-nav { position: relative; z-index: 100; padding: 1rem var(--gutter); background: var(--navy-900); color: #fff; display: flex; flex-wrap: wrap; gap: 1rem; }
.noscript-nav a { color: inherit; }
.noscript-nav nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.noscript-footer { padding: 1.5rem var(--gutter); background: var(--navy-950); color: #fff; font-size: .9rem; line-height: 1.7; }
.noscript-footer a { color: inherit; }
.noscript-footer nav { margin-top: .5rem; }

/* ==========================================================================
   2  TYPOGRAFIE
   ========================================================================== */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; text-wrap: balance; }
p { text-wrap: pretty; }

.h1 { font-size: var(--fs-h1); letter-spacing: -0.04em; }
.h2 { font-size: var(--fs-h2); line-height: 1.05; }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.025em; line-height: 1.15; }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-muted); max-width: 40rem; }
.muted { color: var(--ink-muted); }
.small { font-size: var(--fs-small); }

/* Kicker: schlichte Beschriftung über Überschriften (reiner Text, keine Pille) */
.kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-muted);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; text-decoration: none; color: var(--ink);
}
.link-arrow .icon { transition: transform var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover .icon { transform: translateX(4px); }
}

/* Sektionen */
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2rem, 1rem + 4vw, 5rem); }
.section--dark { background: var(--navy-900); }
.section--white { background: #fff; }

.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 4.25rem); justify-items: start; }
.section-head h2 { max-width: 20ch; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.15fr 1fr; align-items: end; column-gap: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
  .section-head--split .kicker { grid-column: 1 / -1; }
  .section-head--split .lead { margin: 0 0 .35rem; justify-self: end; }
}
.section-head--split { border-top: 1px solid var(--line-strong); padding-top: 1.5rem; }

/* ==========================================================================
   3  BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: var(--navy-900); --btn-fg: #fff; --btn-bd: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  height: 3.1rem; padding: 0 1.5rem;
  border: 1px solid var(--btn-bd); border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .975rem; letter-spacing: -0.005em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out),
              background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform var(--dur-base) var(--ease-out); }
.btn--sm { height: 2.6rem; padding: 0 1.15rem; font-size: .9rem; }
.btn--lg { height: 3.5rem; padding: 0 1.8rem; font-size: 1.025rem; }
.btn--block { width: 100%; }

/* Auf kleinen Bildschirmen dürfen Buttons umbrechen und gehen über die volle Breite */
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; height: auto; min-height: 3.1rem; padding-block: .7rem; }
  .btn--lg { min-height: 3.4rem; padding-inline: 1.2rem; font-size: 1rem; }
  .hero__cta, .page-hero__cta, .cta-band__actions { display: grid; width: 100%; }
}

/* Hell: für Buttons auf Navy */
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-bd: #fff; }
/* Umriss auf Navy (auch WhatsApp) */
.btn--ghost-dark, .btn--whatsapp { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: var(--line-dark-strong); }
.btn--whatsapp .icon { color: var(--whatsapp); }
/* Umriss auf Hell */
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-900); --btn-bd: var(--line-strong); }

@media (hover: hover) and (pointer: fine) {
  .btn .icon:last-child:not(:first-child) { transition: transform var(--dur-base) var(--ease-out); }
  .btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
  .btn:not(.btn--light):not(.btn--ghost-dark):not(.btn--whatsapp):not(.btn--outline):hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }
  .btn--light:hover { --btn-bg: var(--slate-100); --btn-bd: var(--slate-100); }
  .btn--ghost-dark:hover, .btn--whatsapp:hover { --btn-bd: #fff; }
  .btn--outline:hover { --btn-bd: var(--navy-900); }
}

/* ==========================================================================
   4  HEADER, NAVIGATION, MOBILMENÜ
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: var(--navy-900);
  border-bottom: 1px solid var(--line-dark);
  view-transition-name: site-header;
}
.site-header__inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.brand__logo { display: block; height: 2.2rem; width: auto; }
@media (max-width: 480px) { .brand__logo { height: 1.6rem; } }

.primary-nav { display: none; }
.primary-nav ul { display: flex; align-items: stretch; gap: .25rem; list-style: none; height: var(--header-h); }
@media (min-width: 1200px) {
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; }
  .primary-nav { display: block; }
  .header-actions { justify-self: end; }
}

.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; padding: 0 .95rem;
  text-decoration: none; white-space: nowrap;
  font-size: .95rem; font-weight: 500; color: var(--on-dark-muted);
  transition: color var(--dur-fast) ease;
}
.nav-link::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: -1px; height: 2px; background: #fff;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out);
}
.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: #fff; }
  .nav-link:hover::after { transform: scaleX(1); }
}
.has-dropdown .nav-link { padding-right: .35rem; }
.has-dropdown .nav-link::after { right: .35rem; }
.dd-toggle {
  width: 1.7rem; padding: 0; margin-right: .3rem; display: grid; place-items: center;
  border: 0; background: none; color: var(--on-dark-muted);
  transition: color var(--dur-fast) ease;
}
.dd-toggle .icon { width: 1rem; height: 1rem; transition: transform var(--dur-base) var(--ease-out); }
.has-dropdown[data-open="true"] .dd-toggle .icon { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .dd-toggle:hover, .has-dropdown[data-open="true"] .dd-toggle { color: #fff; } }

.dropdown {
  position: absolute; top: 100%; left: 0; width: 23rem;
  transform: translateY(-4px);
  transform-origin: 0 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out),
              visibility 0s linear var(--dur-fast);
}
.has-dropdown[data-open="true"] .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s;
}
.dropdown__inner {
  background: var(--navy-800); border: 1px solid var(--line-dark-strong); border-top: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .5);
}
.dd-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem;
  text-decoration: none; color: #fff; border-bottom: 1px solid var(--line-dark);
  transition: background-color var(--dur-fast) ease;
}
@media (hover: hover) and (pointer: fine) { .dd-item:hover, .dd-all:hover { background: rgba(255, 255, 255, .06); } }
.dd-icon { flex: none; display: grid; place-items: center; color: #fff; }
.dd-icon .icon { width: 1.5rem; height: 1.5rem; }
.dd-text strong { display: block; font-size: .95rem; font-weight: 600; letter-spacing: -0.01em; }
.dd-text small { display: block; font-size: .82rem; color: var(--on-dark-muted); }
.dd-all {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .95rem 1.15rem;
  font-size: .88rem; font-weight: 500; color: var(--on-dark-muted); text-decoration: none;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.dd-all .icon { width: 1rem; height: 1rem; transition: transform var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .dd-all:hover { color: #fff; } .dd-all:hover .icon { transform: translateX(3px); } }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.menu-toggle {
  position: relative; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; padding: 0; border-radius: var(--r-md);
  background: transparent; border: 1px solid var(--line-dark-strong); color: #fff;
  transition: transform var(--dur-press) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:active { transform: scale(.94); }
@media (min-width: 1200px) { .menu-toggle { display: none; } }
.menu-toggle__bars { position: relative; width: 18px; height: 10px; }
.menu-toggle__bars i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 320ms var(--ease-drawer);
}
.menu-toggle__bars i:nth-child(1) { top: 0; }
.menu-toggle__bars i:nth-child(2) { top: 8.5px; }
.menu-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* Mobilmenü: Vollbild-Sheet */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  padding-top: var(--header-h);
  background: var(--navy-900);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 460ms var(--ease-drawer), visibility 0s linear 460ms;
}
.menu-open .mobile-menu { clip-path: inset(0); visibility: visible; transition-delay: 0s; }
@media (min-width: 1200px) { .mobile-menu { display: none; } }
.mobile-menu__inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding-block: 1rem calc(2rem + env(safe-area-inset-bottom)); }
.m-list { list-style: none; display: grid; }
.m-item { border-bottom: 1px solid var(--line-dark); padding-block: .3rem; }
.m-link {
  display: block; padding: .55rem 0; text-decoration: none; color: #fff;
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1;
}
.m-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.m-sub { list-style: none; display: grid; gap: .1rem; margin: 0 0 .7rem .1rem; padding-left: 1rem; border-left: 1px solid var(--line-dark-strong); }
.m-sub a { display: block; padding: .4rem 0; color: var(--on-dark-muted); text-decoration: none; font-size: 1.05rem; }
.mobile-menu__foot { display: grid; gap: .75rem; }
.m-contact { text-align: center; font-size: .9rem; color: var(--on-dark-muted); margin-top: .5rem; }
.m-contact a { color: #fff; text-decoration: none; }

/* Menü-Einträge gleiten gestaffelt ein (nur beim Öffnen, Schließen ist sofort) */
.m-item, .mobile-menu__foot { opacity: 0; transform: translateY(14px); transition: opacity 120ms ease, transform 120ms ease; }
.menu-open .m-item, .menu-open .mobile-menu__foot {
  opacity: 1; transform: none;
  transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-drawer);
  transition-delay: calc(80ms + var(--k, 0) * 45ms);
}
.m-item:nth-child(1) { --k: 0; } .m-item:nth-child(2) { --k: 1; } .m-item:nth-child(3) { --k: 2; }
.m-item:nth-child(4) { --k: 3; } .m-item:nth-child(5) { --k: 4; } .mobile-menu__foot { --k: 5; }

/* ==========================================================================
   5  HERO (Startseite) & SEITEN-HERO (Unterseiten)
   ========================================================================== */
.hero, .page-hero { position: relative; background: var(--navy-900); }

/* ----- Hero Startseite: Text links, Bild rechts bis zum Fensterrand ----- */
.hero { padding-top: var(--header-h); --bleed: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero__content {
  display: grid; gap: clamp(1.25rem, 1rem + 1vw, 1.9rem); justify-items: start; align-content: center;
  padding-block: clamp(3rem, 2rem + 5vw, 7.5rem) clamp(2.5rem, 2rem + 3vw, 5.5rem);
}
.hero__title { font-size: var(--fs-hero); letter-spacing: -0.045em; line-height: 1; font-weight: 600; color: #fff; max-width: 14ch; }
.hero__lead { max-width: 36rem; font-size: var(--fs-lead); color: var(--on-dark-muted); line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.hero__media { position: relative; aspect-ratio: 4 / 3; margin-inline: calc(-1 * var(--gutter)); background: var(--navy-800); }
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%;
  animation: hero-img 1400ms var(--ease-out) both;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: clamp(2rem, 4vw, 5rem); }
  .hero__cta .btn { padding-inline: 1.4rem; }
  .hero__media { aspect-ratio: auto; min-height: 32rem; margin: 0 calc(-1 * var(--bleed)) 0 0; }
}

.hero__facts { border-top: 1px solid var(--line-dark); }
.hero__facts ul { list-style: none; display: grid; }
.hero-fact { display: flex; gap: 1rem; align-items: flex-start; padding-block: 1.5rem; border-bottom: 1px solid var(--line-dark); }
.hero-fact:last-child { border-bottom: 0; }
.hero-fact .icon { width: 1.6rem; height: 1.6rem; margin-top: .1rem; color: #fff; }
.hero-fact strong { display: block; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; color: #fff; }
.hero-fact span { display: block; margin-top: .15rem; font-size: .92rem; line-height: 1.45; color: var(--on-dark-muted); }
@media (min-width: 760px) {
  .hero__facts ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-fact { padding: 1.75rem 2rem 1.75rem 0; border-bottom: 0; }
  .hero-fact + .hero-fact { padding-left: 2rem; border-left: 1px solid var(--line-dark); }
}

/* ----- Seiten-Hero (Unterseiten) ----- */
.page-hero { padding: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6.5rem)) 0 clamp(3.25rem, 2rem + 4.5vw, 6rem); }
.page-hero__inner { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: end; }
.page-hero__text { display: grid; gap: 1.4rem; justify-items: start; max-width: 52rem; }
.page-hero h1 { font-size: min(var(--fs-h1), 7.8vw); letter-spacing: -0.045em; line-height: 1.02; color: #fff; max-width: 18ch; }
.page-hero .lead { color: var(--on-dark-muted); }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.page-hero__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-800); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .page-hero--media .page-hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .85rem; color: var(--on-dark-muted); }
.crumbs a { text-decoration: none; transition: color var(--dur-fast) ease; }
.crumbs span[aria-hidden] { opacity: .5; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: #fff; } }
.crumbs [aria-current] { color: #fff; }

/* ==========================================================================
   6  RASTER & KARTEN
   Zellen-Raster: Karten sitzen bündig nebeneinander, getrennt durch feine Linien.
   ========================================================================== */
.bento, .services, .steps, .values, .feature-grid, .service-rows, .related {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bento > * { grid-column: span 12; min-width: 0; }

.card {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
  background: var(--surface); color: var(--ink);
  transition: background-color var(--dur-base) ease;
}
.bento > .card, .services > .card, .steps > .card, .values > .card, .feature-grid > .card, .service-rows > .card, .related > .card { border: 0; border-radius: 0; }
.card--solo { border: 1px solid var(--line); border-radius: var(--r-lg); }
.card h3 { font-size: var(--fs-h3); letter-spacing: -0.03em; line-height: 1.12; }
.card p { color: var(--ink-muted); }
.card__icon { display: block; color: var(--ink); }
.card__icon .icon { width: 1.9rem; height: 1.9rem; stroke-width: 1.4; }

.check-list { list-style: none; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.8rem; color: var(--ink); line-height: 1.45; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.1rem; height: 1.1rem;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b192c' stroke-width='2.2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='m4.5 12.5 5 5L19.500 7'/%3E%3C/svg%3E");
}
.section--dark .check-list li::before, .cta-band .check-list li::before, .card--navy .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='m4.5 12.5 5 5L19.500 7'/%3E%3C/svg%3E");
}

/* ----- Vorteile-Raster ----- */
@media (min-width: 900px) {
  .bento--values .bv-a { grid-column: span 7; }
  .bento--values .bv-b { grid-column: span 5; }
  .bento--values .bv-c { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: clamp(2rem, 5vw, 6rem); }
}
.card__body { display: grid; gap: 1rem; align-content: start; }
.bv-a { justify-content: space-between; gap: 2.5rem; --surface: var(--navy-900); }
.bv-a h3 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); max-width: 16ch; }
.bv-a .card__body { gap: 1.1rem; max-width: 34rem; }
.bv-c .card__body { max-width: 32rem; }
.bv-c .greeter { margin-top: 0; }

/* Ansprechpartner-Block (dekorativ) */
.person {
  display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem 0 0; border-top: 1px solid var(--line-dark-strong);
}
.person__avatar {
  width: 3.4rem; height: 3.4rem; flex: none; display: grid; place-items: center;
  background: #fff;
}
.person__avatar img { width: 56%; height: auto; }
.person__name { font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.person__role { font-size: .9rem; color: var(--on-dark-muted); }

/* Kommunikationswege (dekorativ) */
.channels { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: auto; }
.channels a {
  position: relative; display: grid; justify-items: start; gap: .35rem; padding: 1rem 1rem 1.05rem; height: 100%;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.channels a:active { background: var(--slate-100); }
.channels a > .icon:first-child { width: 1.45rem; height: 1.45rem; margin-bottom: .35rem; }
.channels li:last-child a > .icon:first-child { color: #1a9b50; }
.channels small { font-size: .8rem; font-weight: 500; color: var(--ink-muted); transition: color var(--dur-fast) ease; }
.channels__arrow { position: absolute; top: .9rem; right: .9rem; width: 1rem; height: 1rem; opacity: .4; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) ease; }
.channels a:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .channels a:hover { background: var(--navy-900); color: #fff; }
  .channels a:hover small { color: var(--on-dark-muted); }
  .channels a:hover .channels__arrow { opacity: 1; transform: translate(2px, -2px); }
  .channels li:last-child a:hover > .icon:first-child { color: var(--whatsapp); }
}

/* Sprach-Karte */
.greeter { display: grid; gap: 1rem; margin-top: auto; }
.greeter__word {
  justify-self: start; min-height: 1.15em; font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); line-height: 1.1;
  font-weight: 600; letter-spacing: -0.04em; color: var(--ink);
  transition: opacity 220ms ease, transform 260ms var(--ease-out), filter 220ms ease;
}
.greeter__word[data-state="out"] { opacity: 0; transform: translateY(-6px); filter: blur(5px); }
.greeter__word[data-state="pre"] { opacity: 0; transform: translateY(8px); filter: blur(5px); transition: none; }
.greeter__word:lang(ar) { font-family: system-ui, "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; }
.lang-chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; }
.lang-chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); font-size: .85rem; font-weight: 500; color: var(--ink-muted);
  transition: background-color var(--dur-base) ease, color var(--dur-base) ease, border-color var(--dur-base) ease;
}
.lang-chip[data-active="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.section--dark .lang-chip[data-active="true"], .page-hero .lang-chip[data-active="true"] { background: #fff; border-color: #fff; color: var(--navy-900); }
.lang-chip b { font-weight: 700; letter-spacing: .04em; }

/* ==========================================================================
   7  LEISTUNGEN
   ========================================================================== */
@media (min-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service-card { gap: 1.2rem; padding: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); }
.service-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.25rem; }
.service-card__num { font-size: .9rem; font-weight: 600; letter-spacing: .08em; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.service-card__tag { color: var(--ink); font-weight: 600; margin-top: -.55rem; }
.service-card .check-list { margin-block: .25rem 1.5rem; }
.service-card .link-arrow { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.service-card .link-arrow::after, .service-row .link-arrow::after, .related .link-arrow::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* ganze Karte klickbar */
.service-card:has(.link-arrow:focus-visible), .service-row:has(.link-arrow:focus-visible), .related .card:has(.link-arrow:focus-visible) { outline: 2px solid var(--focus); outline-offset: -4px; }
.service-card .link-arrow:focus-visible, .service-row .link-arrow:focus-visible, .related .link-arrow:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .link-arrow .icon, .service-row:hover .link-arrow .icon, .related .card:hover .link-arrow .icon { transform: translateX(4px); }
  .service-card:hover, .service-row:hover, .related .card:hover { background: color-mix(in srgb, var(--surface) 94%, var(--ink)); }
}

/* Große Leistungsblöcke (Übersichtsseite) */
.service-row { display: grid; gap: 1.5rem; padding: clamp(1.6rem, 1.1rem + 1.8vw, 3rem); }
@media (min-width: 900px) { .service-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; align-items: center; gap: clamp(2rem, 4vw, 4.5rem); } }
.service-row__lead { display: grid; gap: 1rem; }

/* ==========================================================================
   8  BRANCHEN
   ========================================================================== */
.tiles { display: grid; gap: .5rem; grid-template-columns: 1fr; }
.tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 17rem; padding: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  border-radius: var(--r-sm); color: #fff; text-decoration: none; background: var(--navy-800);
}
.tile img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 25, 44, .94) 0%, rgba(11, 25, 44, .55) 45%, rgba(11, 25, 44, .2) 100%); }
.tile__icon { position: absolute; top: 1.4rem; left: 1.4rem; color: #fff; }
.tile__icon .icon { width: 1.7rem; height: 1.7rem; }
.tile__arrow { position: absolute; top: 1.4rem; right: 1.4rem; color: #fff; transition: transform var(--dur-base) var(--ease-out); }
.tile strong { display: block; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.tile small { display: block; margin-top: .45rem; max-width: 26rem; font-size: .92rem; line-height: 1.4; color: rgba(255, 255, 255, .82); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.04); }
  .tile:hover .tile__arrow { transform: translate(3px, -3px); }
}
.tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (min-width: 640px) and (max-width: 999px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .tile:first-child { grid-column: 1 / -1; min-height: 20rem; }
}
@media (min-width: 1000px) {
  .tiles { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(15rem, 1fr)); }
  .tile { min-height: 0; }
  .tile--1 { grid-column: 1 / span 5; grid-row: 1 / span 2; }
  .tile--2 { grid-column: 6 / span 4; }
  .tile--3 { grid-column: 10 / span 3; }
  .tile--4 { grid-column: 6 / span 4; }
  .tile--5 { grid-column: 10 / span 3; }
}

/* Branchen-Detailseite: abwechselnde Bild/Text-Blöcke */
.industry { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); scroll-margin-top: calc(var(--header-h) + 1rem); }
.industry + .industry { border-top: 1px solid var(--line-strong); }
.industry__media { position: relative; overflow: hidden; aspect-ratio: 5 / 4; background: var(--navy-800); }
.industry__media img { width: 100%; height: 100%; object-fit: cover; }
.industry__text { display: grid; gap: 1.2rem; justify-items: start; }
.industry__text .card__icon .icon { width: 2.1rem; height: 2.1rem; }
.industry__text h2 { font-size: var(--fs-h2); }
.industry__text .check-list { margin-block: .25rem .5rem; }
@media (min-width: 900px) {
  .industry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry:nth-of-type(even) .industry__media { order: 2; }
}

/* ==========================================================================
   9  ÜBER UNS / FAKTEN
   ========================================================================== */
.about { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 1000px) { .about { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } .about--reverse .about__media { order: 2; } }
.about__media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__text { display: grid; gap: 1.4rem; justify-items: start; }
.about__text h2 { max-width: 16ch; }

.facts { display: grid; gap: 1.8rem 2rem; margin-top: .75rem; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { display: flex; gap: 1rem; align-items: flex-start; padding-top: 1.1rem; border-top: 1px solid var(--line-strong); }
.fact__icon { flex: none; color: var(--ink); }
.fact__icon .icon { width: 1.6rem; height: 1.6rem; }
.fact h3 { font-size: 1.05rem; letter-spacing: -0.015em; font-weight: 600; line-height: 1.25; }
.fact p { margin-top: .3rem; font-size: .95rem; color: var(--ink-muted); line-height: 1.5; }

@media (min-width: 700px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.contact-person { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
@media (min-width: 800px) { .contact-person { grid-template-columns: auto 1fr auto; gap: 2rem; } }
.contact-person__avatar { width: 5rem; height: 5rem; display: grid; place-items: center; background: var(--navy-900); color: #fff; }
.contact-person__avatar img { width: 52%; height: auto; }

/* ==========================================================================
   10  ABLAUF
   ========================================================================== */
.steps { counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { counter-increment: step; gap: .8rem; }
.step::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 1.6rem;
  font-size: .9rem; font-weight: 600; letter-spacing: .08em; color: var(--ink-muted); font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.3rem; }

/* ==========================================================================
   11  CTA-BAND
   ========================================================================== */
.cta-band {
  position: relative; background: var(--navy-900);
  display: grid; gap: 2rem; align-items: center;
  padding: clamp(2rem, 1rem + 4vw, 5rem);
}
.cta-band__text { display: grid; gap: 1rem; max-width: 40rem; justify-items: start; }
.cta-band h2 { font-size: var(--fs-h2); color: #fff; letter-spacing: -0.04em; max-width: 16ch; }
.cta-band p { color: var(--on-dark-muted); font-size: var(--fs-lead); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 1000px) { .cta-band { grid-template-columns: 1fr auto; } .cta-band__actions { flex-direction: column; align-items: stretch; } }

/* ==========================================================================
   12  DETAILSEITEN (Leistungen)
   ========================================================================== */
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature { gap: .9rem; }
.feature h3 { font-size: 1.25rem; }
.feature p { font-size: .975rem; line-height: 1.55; }

.split { display: grid; gap: clamp(1.75rem, 1rem + 3vw, 4rem); align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.split__sticky { display: grid; gap: 1.2rem; justify-items: start; }
.split__sticky h2 { max-width: 14ch; }
@media (min-width: 1000px) { .split__sticky { position: sticky; top: calc(var(--header-h) + 2rem); } }

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.tag-list li {
  display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--surface); font-size: .95rem; font-weight: 500;
}
.tag-list .icon { width: 1.05rem; height: 1.05rem; }

@media (min-width: 800px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.related .card { padding-block: 1.75rem; }

/* ==========================================================================
   13  KONTAKT & FORMULAR
   ========================================================================== */
.contact-layout { display: grid; gap: clamp(1.25rem, .5rem + 2.5vw, 3rem); align-items: start; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.contact-info { display: grid; gap: 0; border: 1px solid var(--line-strong); background: var(--surface); }
@media (min-width: 1000px) { .contact-info { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.info-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem 1.4rem; text-decoration: none; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); transition: background-color var(--dur-fast) ease; }
.info-card:last-child { border-bottom: 0; }
.info-card .icon { width: 1.5rem; height: 1.5rem; }
.info-card__label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.info-card__value { display: block; margin-top: .1rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; overflow-wrap: anywhere; }
a.info-card .icon-arrow { margin-left: auto; color: var(--ink-muted); transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast) ease; }
@media (hover: hover) and (pointer: fine) { a.info-card:hover { background: var(--slate-50); } a.info-card:hover .icon-arrow { transform: translate(2px, -2px); color: var(--ink); } }
.info-card--wa { --surface: var(--navy-900); --ink: #fff; --ink-muted: var(--on-dark-muted); --line: var(--line-dark); }
.info-card--wa .icon:first-child { color: var(--whatsapp); }
@media (hover: hover) and (pointer: fine) { a.info-card--wa:hover { background: var(--navy-800); } }

.form-card { padding: clamp(1.5rem, 1rem + 2.4vw, 3rem); gap: 1.6rem; background: #fff; border: 1px solid var(--line-strong); }
.form-card__head { display: grid; gap: .5rem; }
.form-card__head h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }

.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: grid; gap: .45rem; align-content: start; }
.field > label:not(.consent), .fieldset > legend { font-size: .875rem; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); padding: 0; }
.field .req { color: var(--danger); margin-left: .15em; }
.field .opt { color: var(--ink-muted); font-weight: 400; margin-left: .35em; }
.field__wrap { position: relative; }
.input, .textarea {
  width: 100%; min-height: 3.2rem; padding: .85rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; color: var(--navy-900);
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease;
  appearance: none;
}
.textarea { min-height: 9rem; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--slate-400); }
@media (hover: hover) and (pointer: fine) { .input:hover, .textarea:hover { border-color: var(--slate-500); } }
.input:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(11, 25, 44, .14); }
.field[data-state="invalid"] .input, .field[data-state="invalid"] .textarea { border-color: var(--danger); background: #fffafa; }
.field[data-state="invalid"] .input:focus-visible, .field[data-state="invalid"] .textarea:focus-visible { box-shadow: 0 0 0 3px rgba(179, 38, 30, .16); }
.field[data-state="valid"] .input, .field[data-state="valid"] .textarea { border-color: rgba(26, 127, 85, .6); }
.field__ok {
  position: absolute; right: .95rem; top: 1.6rem; translate: 0 -50%; color: var(--success); pointer-events: none;
  opacity: 0; scale: .7; transition: opacity var(--dur-fast) ease, scale var(--dur-base) var(--ease-out);
}
.field[data-state="valid"] .field__ok { opacity: 1; scale: 1; }
.field__ok .icon { width: 1.15rem; height: 1.15rem; stroke-width: 2; }
.field__msg { display: none; align-items: flex-start; gap: .45rem; font-size: .85rem; line-height: 1.35; color: var(--danger); }
.field__msg .icon { width: 1rem; height: 1rem; margin-top: .08rem; }
.field[data-state="invalid"] .field__msg { display: flex; animation: msg-in var(--dur-base) var(--ease-out); }

.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; min-width: 0; }
.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 2.6rem; padding: 0 1.1rem; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: #fff; font-size: .92rem; font-weight: 500; color: var(--ink);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out);
  user-select: none;
}
.chip:active span { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover span { border-color: var(--slate-500); } }
.chip input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--navy-600); outline-offset: 3px; }

.consent { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.consent input { position: absolute; opacity: 0; width: 1.4rem; height: 1.4rem; margin: 0; cursor: pointer; }
.consent__box {
  position: relative; width: 1.4rem; height: 1.4rem; margin-top: .1rem; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; color: #fff;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.consent__box .icon { width: .95rem; height: .95rem; stroke-width: 2.6; opacity: 0; scale: .6; transition: opacity var(--dur-fast) ease, scale var(--dur-base) var(--ease-out); }
.consent input:checked ~ .consent__box { background: var(--navy-900); border-color: var(--navy-900); }
.consent input:checked ~ .consent__box .icon { opacity: 1; scale: 1; }
.consent input:focus-visible ~ .consent__box { outline: 2px solid var(--navy-600); outline-offset: 3px; }
.field[data-state="invalid"] .consent__box { border-color: var(--danger); }
.consent__text { font-size: .9rem; line-height: 1.5; color: var(--ink-muted); }
.consent__text a { color: var(--ink); text-underline-offset: 3px; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Spam-Schutz (Cloudflare Turnstile): Widget ist 300 × 65 px, auf sehr schmalen Bildschirmen wird es per JS verkleinert */
.turnstile-field { gap: .5rem; }
.turnstile-box { width: 100%; min-height: 65px; overflow: hidden; }
.turnstile-box .cf-turnstile { width: 300px; transform-origin: 0 0; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .4rem; }
.form-note { font-size: .82rem; color: var(--ink-muted); max-width: 22rem; line-height: 1.45; }

.btn[aria-busy="true"] { pointer-events: none; --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }
.btn__spinner { display: none; width: 1.1rem; height: 1.1rem; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin 700ms linear infinite; }
.btn[aria-busy="true"] .btn__spinner { display: block; }
.btn[aria-busy="true"] .btn__icon { display: none; }

.form-alert {
  display: none; gap: .8rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--r-md);
  background: var(--danger-soft); border: 1px solid rgba(179, 38, 30, .3); color: #7d1f1a; font-size: .92rem; line-height: 1.45;
}
.form-alert[data-visible="true"] { display: flex; animation: msg-in var(--dur-base) var(--ease-out); }
.form-alert .icon { margin-top: .1rem; color: var(--danger); }
.form-alert a { color: inherit; font-weight: 600; }

.form-success { display: none; justify-items: start; gap: 1rem; padding: clamp(1rem, .5rem + 2vw, 2.5rem) 0; }
.form-card[data-state="success"] .form-success { display: grid; animation: success-in 520ms var(--ease-out) both; }
.form-card[data-state="success"] .form, .form-card[data-state="success"] .form-card__head { display: none; }
.form-success__icon { width: 3.6rem; height: 3.6rem; display: grid; place-items: center; background: var(--navy-900); color: #fff; }
.form-success__icon .icon { width: 1.7rem; height: 1.7rem; stroke-width: 2; }
.form-success h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.form-success p { max-width: 30rem; color: var(--ink-muted); }

/* ==========================================================================
   14  RECHTSTEXTE
   ========================================================================== */
.prose { max-width: 48rem; display: grid; gap: 1rem; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-top: 2.25rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1rem; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--slate-700); line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.5rem; display: grid; gap: .6rem; }
.prose ol { list-style: decimal; }
.prose ol li::marker { font-weight: 600; color: var(--navy-900); }
.prose a { color: var(--navy-700); text-underline-offset: 3px; }
mark.placeholder { background: #fff0c2; color: #5c4400; padding: .05em .35em; border-radius: 2px; font-weight: 500; }
.notice { padding: 1rem 1.2rem; border-radius: var(--r-md); background: #fff8e0; border: 1px solid #f0dc99; color: #5c4400; font-size: .92rem; line-height: 1.5; }

/* ==========================================================================
   15  FOOTER (hell): links Marke + Info · Mitte Öffnungszeiten · rechts Kontakt
   ========================================================================== */
.site-footer { background: #fff; color: var(--navy-900); border-top: 1px solid var(--line-strong); padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
.footer-main { display: grid; gap: 2.5rem 3rem; padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 760px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .footer-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .9fr); } .footer-brand { grid-column: auto; } }

.footer-brand { display: grid; gap: 1.15rem; align-content: start; justify-items: start; }
.footer-brand .brand__logo { height: clamp(2.4rem, 2rem + 1vw, 3rem); }
.footer-claim { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; color: var(--navy-900); max-width: 26rem; line-height: 1.35; }
.footer-about { max-width: 26rem; font-size: .975rem; line-height: 1.65; color: var(--slate-600); }

.footer-title { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 1.1rem; color: var(--navy-900); }
.footer-col, .footer-col address { font-size: 1.025rem; line-height: 1.7; font-style: normal; color: var(--navy-900); }
.footer-col address { display: grid; gap: 1rem; }
.footer-col a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { background-size: 100% 1px; } }
.footer-hours .hours__time { color: var(--navy-900); }
.footer-hours .hours li { margin-bottom: .65rem; }
.footer-hours .hours__note { margin-top: .9rem; }

.footer-note { padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: .9rem; line-height: 1.6; color: var(--slate-600); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem;
  padding-block: 1.5rem 1.75rem; font-size: .9rem; color: var(--slate-600);
}
.footer-legal { display: flex; flex-wrap: wrap; }
.footer-legal a { color: inherit; text-decoration: none; transition: color var(--dur-fast) ease; }
.footer-legal > * + *::before { content: "|"; margin-inline: .7rem; color: var(--slate-300); }
@media (hover: hover) and (pointer: fine) { .footer-legal a:hover { color: var(--navy-900); text-decoration: underline; text-underline-offset: 3px; } }

/* ----- Öffnungszeiten (Footer & Kontaktseite) ----- */
.hours { list-style: none; display: grid; }
.hours li { display: grid; }
.hours__days { font-weight: 600; }
.hours__time { color: var(--ink-muted); }
.hours__note { color: var(--ink); }
.info-card .hours { margin-top: .25rem; gap: .35rem; }
.info-card .hours li { display: flex; flex-wrap: wrap; gap: 0 .75rem; font-size: .975rem; }
.info-card .hours__days { min-width: 11rem; font-weight: 600; }
.info-card .hours__time { font-weight: 500; }

/* ==========================================================================
   15b  ZUSATZ-BAUSTEINE: Zellraster, FAQ, Fristen, Unterseiten-Navigation
   ========================================================================== */
/* Allgemeines Zellraster (Karten bündig, durch feine Linien getrennt) */
.cells { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cells > .card { border: 0; border-radius: 0; }
.cells > .card .link-arrow { margin-top: auto; padding-top: 1.1rem; }
.cells > .card .link-arrow::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* ganze Karte klickbar */
.cells > .card:has(.link-arrow:focus-visible) { outline: 2px solid var(--focus); outline-offset: -4px; }
.cells > .card .link-arrow:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) { .cells > .card:has(.link-arrow):hover { background: color-mix(in srgb, var(--surface) 94%, var(--ink)); } .cells > .card:hover .link-arrow .icon { transform: translateX(4px); } }
@media (min-width: 700px) { .cells--2, .cells--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Fließtext in Abschnitten */
.richtext { display: grid; gap: 1.2rem; max-width: 44rem; }
.richtext p { font-size: 1.075rem; line-height: 1.7; color: var(--ink-muted); }
.richtext p:first-child { color: var(--ink); font-size: var(--fs-lead); line-height: 1.55; }

/* Kleine Meta-Zeile oberhalb von Hinweiskarten */
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.card .check-list { margin-top: .25rem; }
.card--note { background: var(--slate-50); }

/* Hinweisbox (z. B. "Stand der Informationen") */
.info-note { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.2rem; border-left: 3px solid var(--navy-900); background: rgba(255, 255, 255, .06); color: var(--on-dark-muted); font-size: .92rem; line-height: 1.55; max-width: 46rem; }
.info-note .icon { width: 1.2rem; height: 1.2rem; margin-top: .15rem; color: #fff; }
.section:not(.section--dark) .info-note { background: #fff; color: var(--slate-700); border: 1px solid var(--line); border-left: 3px solid var(--navy-900); }
.section:not(.section--dark) .info-note .icon { color: var(--navy-900); }

/* FAQ-Akkordeon (reines HTML <details>; animiert in aktuellen Browsern) */
.faq { display: grid; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); interpolate-size: allow-keywords; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3;
  transition: color var(--dur-fast) ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.05rem; height: 1.05rem;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--navy-600); } }
.faq__a { padding: 0 3rem 1.6rem 0; max-width: 46rem; color: var(--ink-muted); line-height: 1.7; display: grid; gap: .8rem; }
.faq details::details-content {
  block-size: 0; overflow: clip; opacity: 0;
  transition: block-size 320ms var(--ease-out), opacity 220ms ease, content-visibility 320ms allow-discrete;
}
.faq details[open]::details-content { block-size: auto; opacity: 1; }

/* Fristenliste */
.deadlines { display: grid; border-top: 1px solid var(--line-strong); }
.deadline { display: grid; gap: .6rem 3rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line-strong); }
@media (min-width: 800px) { .deadline { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); } }
.deadline__when { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.deadline__when small { display: block; margin-top: .25rem; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.deadline h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.deadline p { color: var(--ink-muted); max-width: 46rem; }

/* Unterseiten-Navigation (Anker), klebt unter dem Header */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line-strong); }
.subnav ul { list-style: none; display: flex; gap: 2rem; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; padding: 1rem 0; margin-bottom: -1px; white-space: nowrap; text-decoration: none;
  font-size: .92rem; font-weight: 600; color: var(--ink-muted); border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.subnav a[aria-current="true"] { color: var(--ink); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .subnav a:hover { color: var(--ink); } }
.anchor-section { scroll-margin-top: calc(var(--header-h) + 3.5rem); }

.section--slim { padding-block: clamp(2.75rem, 2rem + 3.5vw, 5.5rem); }

/* ==========================================================================
   19  COOKIE-BANNER, EINSTELLUNGEN & GESPERRTE EXTERNE INHALTE
   ========================================================================== */
.footer-link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transition: color var(--dur-fast) ease; }
@media (hover: hover) and (pointer: fine) { .footer-link-btn:hover { color: var(--navy-900); text-decoration: underline; text-underline-offset: 3px; } }
.footer-link-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.cookie-banner {
  position: fixed; z-index: 200; left: 1.25rem; bottom: 1.25rem; width: min(34rem, calc(100vw - 2.5rem));
  background: #fff; color: var(--navy-900); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -18px rgba(7, 19, 34, .45), 0 2px 8px rgba(7, 19, 34, .08);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-open { opacity: 1; transform: none; pointer-events: auto; }
.cookie-banner:not(.is-open) { transition-duration: 160ms; }
.cookie-banner__inner { display: grid; gap: .9rem; padding: 1.35rem 1.4rem 1.2rem; }
.cookie-banner .cookie-banner__title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--navy-900) !important; }
.cookie-banner p { font-size: .9rem; line-height: 1.55; color: var(--slate-700); }
.cookie-banner a { color: var(--navy-900); text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .1rem; }
.cookie-banner__actions .btn { flex: 1 1 0; min-width: 0; padding-inline: .6rem; }
.cookie-banner__legal, .cookie-dialog__legal { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem !important; color: var(--slate-600) !important; }
.cookie-banner__legal a, .cookie-dialog__legal a { color: inherit; }
@media (max-width: 560px) {
  .cookie-banner { left: 0; right: 0; bottom: 0; width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; transform: translateY(24px); padding-bottom: env(safe-area-inset-bottom); }
  .cookie-banner__actions .btn { flex: 1 1 100%; }
}

.cookie-dialog { width: min(40rem, calc(100vw - 2rem)); max-height: min(44rem, calc(100svh - 2rem)); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: #fff; color: var(--navy-900); overflow: auto; box-shadow: 0 40px 90px -24px rgba(7, 19, 34, .55); }
.cookie-dialog[open] { animation: dlg-in 240ms var(--ease-out); }
.cookie-dialog::backdrop { background: rgba(7, 19, 34, .55); }
.cookie-dialog[open]::backdrop { animation: backdrop-in 240ms ease-out; }
.cookie-dialog__panel { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.cookie-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-dialog h2 { font-size: 1.4rem; letter-spacing: -0.03em; }
.cookie-dialog h3 { font-size: 1.02rem; letter-spacing: -0.015em; margin-bottom: .25rem; }
.cookie-dialog p { font-size: .92rem; line-height: 1.55; color: var(--slate-700); }
.cookie-dialog__close { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; color: var(--navy-900); cursor: pointer; transition: transform var(--dur-press) var(--ease-out); }
.cookie-dialog__close:active { transform: scale(.94); }
.cookie-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.cookie-cat__fixed { flex: none; padding: .3rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: .78rem; font-weight: 600; color: var(--slate-700); white-space: nowrap; }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.cookie-dialog__actions .btn { flex: 1 1 auto; }
.cookie-dialog a { color: var(--navy-900); text-underline-offset: 3px; }

.switch { position: relative; flex: none; display: inline-block; width: 3rem; height: 1.7rem; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: var(--slate-300); transition: background-color var(--dur-base) ease; }
.switch__track::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(7, 19, 34, .3); transition: transform var(--dur-base) var(--ease-out); }
.switch input:checked + .switch__track { background: var(--navy-900); }
.switch input:checked + .switch__track::after { transform: translateX(1.3rem); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--navy-600); outline-offset: 3px; }

/* Gesperrte externe Inhalte (Karte): Platzhalter bis zur Einwilligung */
.consent-gate { position: relative; min-height: 16rem; background: var(--slate-100); border: 1px solid var(--line-strong); overflow: hidden; }
.consent-gate__frame { display: block; width: 100%; height: clamp(18rem, 30vw, 26rem); border: 0; }
.consent-gate__placeholder { display: grid; justify-items: start; align-content: center; gap: .9rem; min-height: 16rem; padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); }
.consent-gate__placeholder .icon { width: 1.9rem; height: 1.9rem; }
.consent-gate__placeholder p { max-width: 34rem; font-size: .95rem; line-height: 1.55; color: var(--slate-700); }
.consent-gate__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.map-note { margin-top: .75rem; font-size: .88rem; color: var(--ink-muted); }
.map-note a { color: var(--ink); text-underline-offset: 3px; }

@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media print { .cookie-banner, .cookie-dialog { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .cookie-banner, .cookie-banner:not(.is-open) { transform: none; transition: opacity 150ms ease; }
  .cookie-dialog[open], .cookie-dialog[open]::backdrop { animation: none; }
  .switch__track::after { transition: none; }
}

/* ==========================================================================
   16  ANIMATIONEN
   ========================================================================== */
/* --- Scroll-Reveal ---------------------------------------------------------
   Elemente mit data-reveal blenden einmalig ein, sobald sie sichtbar werden.
   Elemente in einer Gruppe (data-reveal-group) erscheinen gestaffelt. */
.js.js-ready [data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js.js-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* --- Wort-für-Wort-Reveal der Hauptüberschriften -------------------------- */
.js [data-split]:not(.is-split) { visibility: hidden; }
.js:not(.js-ready) [data-split]:not(.is-split) { animation: show-fallback 0s linear 2.5s forwards; }
.js:not(.js-ready) [data-reveal] { animation: reveal-fallback 0s linear 2.5s forwards; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em; margin: 0 -.06em -.14em; }
.word > span {
  display: inline-block; transform: translateY(110%);
  transition: transform 800ms var(--ease-out); transition-delay: calc(var(--w, 0) * 45ms + 100ms);
}
.is-split.is-in .word > span { transform: none; }

@keyframes hero-img { from { transform: scale(1.05); opacity: .7; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes success-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes show-fallback { to { visibility: visible; } }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

/* --- Seitenübergänge (Cross-Document View Transitions) ------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 150ms var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 260ms var(--ease-out) both; }
::view-transition-group(site-header) { animation-duration: 0s; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ==========================================================================
   17  REDUCED MOTION – weniger Bewegung, sanfte Überblendungen bleiben
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js.js-ready [data-reveal] { transform: none; transition-duration: 300ms; transition-delay: 0s; }
  .word > span { transform: none; transition: none; }
  .hero__media img { animation: none; }
  .dropdown { transform: none; transition-property: opacity, visibility; }
  .mobile-menu { clip-path: none; opacity: 0; transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .menu-open .mobile-menu { opacity: 1; }
  .m-item, .mobile-menu__foot { transform: none; }
  .tile img { transition: none; }
  .greeter__word[data-state="out"], .greeter__word[data-state="pre"] { transform: none; filter: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 1ms; }
}
