/* ============================================================================
   AKTIV DAHOAM — Build-Styles  (nutzt Tokens aus tokens.css)
   Reihenfolge im <head>: fonts.css → tokens.css → styles.css
   Prevention-Rules verbaut:
     · html-height-attr  → img,svg,video{height:auto} global
     · Merksatz 3 (Sticky) → html{overflow-x:clip}, KEIN overflow:hidden-Vorfahr um Deck/Header
     · Merksatz 18 → Leerzeichen um + und − in calc()/clamp()
     · Merksatz 17 → Text auf Akzent = --on-*; keine hardcodierten Marken-Hex
     · CSS-Kaskade → keine globale h1/h2/h3-FARBE (nur themebares Token)
   ============================================================================ */

/* ---------------------------------------------------------------------------
   0 · RESET / BASIS
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  overflow-x: clip;                 /* Merksatz 3: clip, NIE hidden (killt sticky) */
  scroll-behavior: auto;            /* Smooth macht Lenis; Fallback ohne JS = instant */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* Replaced elements — verhindert dass HTML-height-Attribut aspect-ratio aushebelt */
img, svg, video { display: block; max-width: 100%; height: auto; }
img { object-fit: cover; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);        /* themebares Token, KEINE harte Hex-Farbe */
  line-height: var(--lh-snug);
  font-weight: var(--fw-display-b);
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}

p { text-wrap: pretty; }

ul { list-style: none; padding: 0; }

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------------------------------------------------------------------------
   1 · HILFSKLASSEN / LAYOUT
   --------------------------------------------------------------------------- */
.u-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: var(--z-modal);
  background: var(--brand-primary); color: var(--on-geranium);
  padding: 0.7rem 1.1rem; border-radius: var(--r-sm);
  font-weight: var(--fw-semibold);
  transition: top var(--dur-base) var(--ease-out-soft);
}
.skip-link:focus { top: 12px; color: var(--on-geranium); }

.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;
}

.wrap {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide   { max-width: calc(var(--content-wide) + var(--gutter) * 2); }
.wrap--narrow { max-width: calc(var(--content-narrow) + var(--gutter) * 2); }
.wrap--stage  { max-width: calc(var(--stage-max) + var(--gutter) * 2); }

.section { padding-block: var(--section-py); position: relative; }
.section--tight { padding-block: var(--section-py-tight); }
.section + .section { border-top: 1px solid transparent; }

/* dezenter Papier-/Leinen-Grain über der ganzen Seite (feTurbulence als data-URI) */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------------
   2 · TYPO-BAUSTEINE
   --------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--geranium-700);
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 2px; border-radius: 2px;
  background: var(--brand-primary);
}
[data-surface="deep"] .eyebrow { color: var(--oak-300); }
[data-surface="deep"] .eyebrow::before { background: var(--geranium-500); }
[data-surface="sage"] .eyebrow { color: var(--sage-700); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.4rem); }
.section-head .eyebrow { margin-bottom: 0.9rem; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head .lead {
  margin-top: 1rem;
  font-size: var(--fs-lead);
  color: var(--text-body);
  line-height: var(--lh-normal);
}

.claim-em { font-style: italic; font-weight: 500; color: var(--geranium-700); }
[data-surface="deep"] .claim-em { color: var(--geranium-400); }

/* ---------------------------------------------------------------------------
   3 · BUTTONS
   --------------------------------------------------------------------------- */
.btn {
  --_bg: var(--brand-primary);
  --_fg: var(--on-geranium);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  min-height: 3.1rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  line-height: 1.1;
  letter-spacing: 0.005em;
  background: var(--_bg);
  color: var(--_fg);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-fast) var(--ease-press),
              box-shadow var(--dur-base) var(--ease-out-soft),
              background var(--dur-base) var(--ease-out-soft);
  text-align: center;
}
.btn:hover { color: var(--_fg); box-shadow: var(--sh-md); transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

.btn--primary { --_bg: var(--brand-primary); --_fg: var(--on-geranium); }
.btn--primary:hover { --_bg: var(--geranium-700); }

.btn--whatsapp {
  --_bg: var(--sage-600); --_fg: var(--on-sage);
}
.btn--whatsapp:hover { --_bg: var(--sage-700); }

.btn--ghost {
  --_bg: transparent; --_fg: var(--oak-700);
  box-shadow: inset 0 0 0 1.5px var(--oak-300);
}
.btn--ghost:hover { --_bg: var(--cream-050); --_fg: var(--oak-800); box-shadow: inset 0 0 0 1.5px var(--oak-400), var(--sh-sm); }

[data-surface="deep"] .btn--ghost {
  --_fg: var(--cream-050);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.32);
}
[data-surface="deep"] .btn--ghost:hover { --_bg: rgba(255,255,255,0.06); --_fg: var(--cream-050); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5); }

.btn--lg { padding: 1.05rem 1.9rem; min-height: 3.5rem; font-size: var(--fs-lead); }
.btn--block { width: 100%; }

/* Text-Link mit wachsendem Geranien-Unterstrich */
.link-underline {
  position: relative; color: var(--link); font-weight: var(--fw-medium);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out-soft);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------------------------
   4 · „TAG UND NACHT"-BADGE (Puls-Ring)
   --------------------------------------------------------------------------- */
.badge-live {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.95rem 0.5rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--cream-050);
  color: var(--oak-800);
  font-size: var(--fs-badge);
  font-weight: var(--fw-semibold);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--cream-300);
}
.badge-live__dot {
  position: relative; width: 0.7rem; height: 0.7rem; flex: none;
  border-radius: 50%; background: var(--brand-primary);
}
.badge-live__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--brand-primary);
  animation: pulse-ring 2.4s var(--ease-out-soft) infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
[data-surface="deep"] .badge-live { background: rgba(253,249,241,0.1); color: var(--cream-050); border-color: rgba(255,255,255,0.18); }

/* ---------------------------------------------------------------------------
   5 · HEADER
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  transition: background var(--dur-base) var(--ease-out-soft),
              box-shadow var(--dur-base) var(--ease-out-soft),
              backdrop-filter var(--dur-base) var(--ease-out-soft);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--cream-300); opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out-soft);
}
.site-header.is-scrolled {
  background: rgba(247,241,230,0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 8px 30px rgba(51,38,26,0.07);
}
.site-header.nav-open {
  background: rgba(247,241,230,0.96);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 8px 30px rgba(51,38,26,0.08);
}
.site-header.is-scrolled::after { opacity: 1; }

.header-inner {
  display: flex; align-items: center; gap: var(--sp-md);
  min-height: 4.25rem;
  padding-block: 0.6rem;
}

.brand-chip {
  display: inline-flex; align-items: center; flex: none;
  background: var(--paper-000);
  padding: 0.4rem 0.6rem;
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--cream-300);
}
.brand-chip img { height: 2.5rem; width: auto; }
.brand-chip--footer img { height: 3rem; }

.primary-nav { margin-inline-start: auto; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(1rem, 0.5rem + 1.2vw, 2rem); }
.primary-nav a {
  position: relative;
  font-weight: var(--fw-medium);
  color: var(--oak-800);
  padding-block: 0.4rem;
  font-size: var(--fs-small);
  letter-spacing: 0.01em;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--brand-primary); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out-soft);
}
.primary-nav a:hover::after,
.primary-nav a.is-active::after { transform: scaleX(1); }
.primary-nav a.is-active { color: var(--geranium-700); }

.header-actions { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.header-actions .badge-live { display: none; }

.btn--tel-compact {
  padding: 0.65rem 1.15rem; min-height: 2.8rem; font-size: var(--fs-small);
}

/* Burger (mobil) */
.burger {
  display: none; flex: none;
  width: 3rem; height: 3rem; border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  background: var(--oak-800);
  box-shadow: var(--sh-sm);
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--cream-050); transition: transform var(--dur-base) var(--ease-out-soft), opacity var(--dur-fast);
}
.burger span { position: relative; }
.burger span::before { position: absolute; top: -6px; left: 0; }
.burger span::after  { position: absolute; top: 6px;  left: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile-Nav-Panel */
.mobile-nav {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(51,38,26,0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out-soft), visibility var(--dur-base);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(88%, 22rem);
  background: var(--cream-100);
  padding: 1.5rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-emphasis);
  box-shadow: var(--sh-xl);
  overflow-y: auto;
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__links { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav__links a {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h4); color: var(--oak-800);
  padding: 0.7rem 0; border-bottom: 1px solid var(--cream-300);
}
.mobile-nav__cta { display: flex; flex-direction: column; gap: 0.7rem; margin-top: auto; }

/* ---------------------------------------------------------------------------
   6 · MOBILE STICKY-ANRUF-LEISTE (unten)
   --------------------------------------------------------------------------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: none;
  gap: 0.6rem; padding: 0.6rem var(--gutter);
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(247,241,230,0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 -6px 26px rgba(51,38,26,0.12);
  border-top: 1px solid var(--cream-300);
}
.callbar .btn { flex: 1; min-height: 3rem; padding-inline: 0.5rem; box-shadow: none; }

/* ---------------------------------------------------------------------------
   7 · HERO — Karten-Stapel
   --------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 6rem); overflow: clip; }
.hero__bg {
  position: absolute; inset: -10% -5% 0; z-index: 0; pointer-events: none;
  background-image: var(--wash-dahoam);
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero__bg-photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.5; -webkit-mask-image: radial-gradient(80% 90% at 70% 20%, #000 40%, transparent 78%);
  mask-image: radial-gradient(80% 90% at 70% 20%, #000 40%, transparent 78%);
}
.hero__bg-photo img { width: 100%; height: 100%; }

.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.hero__text { max-width: 34rem; }
.hero__kicker { margin-bottom: 1.1rem; }
.hero h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-hero);
  color: var(--ink-900);
}
.hero h1 .hl { color: var(--oak-700); }
.hero__sub {
  margin-top: 1.3rem; font-size: var(--fs-lead);
  color: var(--text-body); max-width: 32rem;
}
.hero__badge-row { margin-top: 1.5rem; }
.hero__ctas {
  margin-top: 1.8rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem;
}
.hero__ctas .btn--primary { flex: 1 1 auto; }
.hero__ctas--contact { flex-direction: column; align-items: stretch; max-width: 31rem; }
.hero__ctas--contact .btn { width: 100%; }
.hero__micro { margin-top: 1.1rem; font-size: var(--fs-small); color: var(--text-muted); }

/* Foto-Karte (physisch abgelegt) + Deck-Kanten-Peek darunter */
.hero__stage { position: relative; }
.hero__card {
  position: relative; z-index: 3;
  border-radius: var(--r-2xl);
  background: var(--paper-000);
  padding: 0.6rem;
  box-shadow: var(--sh-xl);
  transform: rotate(-1.6deg);
  transition: transform var(--dur-slow) var(--ease-out-soft), box-shadow var(--dur-slow) var(--ease-out-soft);
}
.hero__card:hover { transform: rotate(-0.6deg) translateY(-4px); box-shadow: var(--sh-card-hover); }
.hero__card img {
  width: 100%; aspect-ratio: 3 / 2; border-radius: calc(var(--r-2xl) - 8px);
}
.hero__card-badge { position: absolute; top: 1rem; left: 1rem; z-index: 4; }

.hero__peek {
  position: absolute; left: 4%; right: 4%; bottom: -1.4rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
.hero__peek i {
  display: block; height: 1.4rem; border-radius: 0 0 var(--r-xl) var(--r-xl);
  box-shadow: var(--sh-sm);
}
.hero__peek i:nth-child(1) { width: 92%; background: var(--tint-frueh),  var(--cream-050); }
.hero__peek i:nth-child(2) { width: 82%; background: var(--tint-mittag), var(--cream-050); margin-top: -0.5rem; }
.hero__peek i:nth-child(3) { width: 72%; background: var(--tint-abend),  var(--cream-050); margin-top: -0.5rem; }

/* Load-Animation „Karte legt sich ab" (NICHT aus scale(0)) */
.js .hero__card { animation: card-settle 900ms var(--ease-settle) both; }
.js .hero__peek i { animation: peek-in 700ms var(--ease-out-soft) both; }
.js .hero__peek i:nth-child(1){ animation-delay: 320ms; }
.js .hero__peek i:nth-child(2){ animation-delay: 400ms; }
.js .hero__peek i:nth-child(3){ animation-delay: 480ms; }
@keyframes card-settle {
  from { opacity: 0; transform: translateY(30px) rotate(-4deg); }
  to   { opacity: 1; transform: translateY(0) rotate(-1.6deg); }
}
@keyframes peek-in {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------------
   8 · LEISTUNGEN — 4 Kategorie-Karten
   --------------------------------------------------------------------------- */
.services {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 0.8rem + 1.5vw, 2rem);
}
.service-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--cream-300);
  border-radius: var(--r-xl);
  overflow: clip;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.service-card__media { position: relative; overflow: clip; aspect-ratio: 16 / 10; }
.service-card__media img { width: 100%; height: 100%; transition: transform var(--dur-slow) var(--ease-out-soft); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__law {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: var(--cream-050); color: var(--oak-700);
  font-size: var(--fs-eyebrow); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: var(--r-pill); box-shadow: var(--sh-xs);
}
.service-card__body { padding: clamp(1.2rem, 0.9rem + 1vw, 1.8rem); display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.service-card h3 { font-size: var(--fs-h3); }
.service-card__teaser { color: var(--text-muted); font-size: var(--fs-small); }
.service-list { display: grid; gap: 0.55rem; margin-top: 0.3rem; }
.service-list li {
  position: relative; padding-left: 1.6rem; font-size: var(--fs-small); color: var(--text-body);
  line-height: 1.45;
}
.service-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--sage-300); box-shadow: inset 0 0 0 2px var(--sage-500);
}
.services-cta { margin-top: clamp(1.8rem, 1.2rem + 2vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.services-cta p { font-size: var(--fs-lead); color: var(--text-body); max-width: 30rem; }

/* ---------------------------------------------------------------------------
   9 · SIGNATURE „DER TAG DAHOAM" — CSS position:sticky Stack-Deck
   --------------------------------------------------------------------------- */
.daydeck { position: relative; overflow: clip; }
.daydeck__ambient {
  position: absolute; z-index: 0; right: -6%; bottom: 0; width: min(46%, 30rem); aspect-ratio: 4 / 5;
  pointer-events: none; opacity: 0.4;
  -webkit-mask-image: radial-gradient(75% 75% at 60% 40%, #000 30%, transparent 76%);
  mask-image: radial-gradient(75% 75% at 60% 40%, #000 30%, transparent 76%);
}
.daydeck__ambient img { width: 100%; height: 100%; }

.deck { position: relative; z-index: 1; }
.deck-card {
  position: sticky;
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-deck);
  overflow: clip;
  transform-origin: top center;
  will-change: transform;
  min-height: clamp(24rem, 20rem + 26vh, 34rem);
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.deck-card:nth-child(1) { top: var(--deck-card-top); z-index: 1; }
.deck-card:nth-child(2) { top: calc(var(--deck-card-top) + var(--deck-peek)); z-index: 2; }
.deck-card:nth-child(3) { top: calc(var(--deck-card-top) + var(--deck-peek) * 2); z-index: 3; }
.deck-card:nth-child(4) { top: calc(var(--deck-card-top) + var(--deck-peek) * 3); z-index: 4; margin-bottom: 0; }

/* Dimm-Overlay der verdeckten Karte (JS setzt --cover: 0..1) */
.deck-card::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: rgba(51,38,26,0.55);
  opacity: calc(var(--cover, 0) * 0.5);
  transition: opacity 120ms linear;
}
.deck-card { transform: scale(calc(1 - var(--cover, 0) * var(--deck-scale-step))); }

.deck-card__grid {
  position: relative; z-index: 1; height: 100%;
  display: grid; grid-template-columns: 1fr minmax(0, 46%);
  gap: clamp(1.2rem, 0.6rem + 2vw, 2.6rem);
  align-items: center;
  padding: clamp(1.6rem, 1rem + 2.5vw, 3rem);
}
.deck-card__tint { position: absolute; inset: 0; z-index: 0; }
.deck-card--frueh  .deck-card__tint { background: var(--tint-frueh),  var(--cream-050); }
.deck-card--mittag .deck-card__tint { background: var(--tint-mittag), var(--cream-100); }
.deck-card--abend  .deck-card__tint { background: var(--tint-abend),  var(--cream-050); }

.deck-time {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  font-size: var(--fs-eyebrow); color: var(--oak-700); margin-bottom: 0.9rem;
}
.deck-time__ico { width: 1.5rem; height: 1.5rem; }
.deck-card h3 { font-size: var(--fs-h2); margin-bottom: 0.8rem; }
.deck-card__copy { color: var(--text-body); font-size: var(--fs-lead); max-width: 30rem; }

/* Foto-Inset (contained ≤ ~48 % Kartenbreite → low-res Porträts reißen nicht auf) */
.deck-card__inset {
  border-radius: var(--r-lg); overflow: clip; box-shadow: var(--sh-md);
  background: var(--paper-000); padding: 0.5rem;
  transform: rotate(1.4deg);
}
.deck-card__inset img { width: 100%; aspect-ratio: 4 / 5; border-radius: calc(var(--r-lg) - 6px); }
.deck-card--mittag .deck-card__inset { transform: rotate(-1.4deg); }

/* Nacht-Karte — deep, full-bleed Hero-Grade-Foto */
.deck-card--nacht { color: var(--on-deep); }
.deck-card--nacht .deck-card__grid { grid-template-columns: 1fr; padding: clamp(1.8rem, 1.2rem + 3vw, 3.5rem); }
.deck-card--nacht .deck-bg { position: absolute; inset: 0; z-index: 0; }
.deck-card--nacht .deck-bg img { width: 100%; height: 100%; }
.deck-card--nacht .deck-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(30,22,15,0.9) 0%, rgba(40,29,19,0.78) 42%, rgba(40,29,19,0.36) 100%);
}
.deck-card--nacht .deck-card__content { position: relative; z-index: 2; max-width: 40rem; }
.deck-card--nacht h3 { color: var(--cream-050); }
.deck-card--nacht .deck-card__copy { color: #EADFCB; }
.deck-card--nacht .deck-time { color: var(--oak-300); }
.deck-card--nacht .deck-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* ---------------------------------------------------------------------------
   10 · SO ARBEITEN WIR — Salbei-Ruhe-Band
   --------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 0.8rem + 1.5vw, 2rem); }
.pillar {
  background: var(--cream-050); border: 1px solid var(--sage-300); border-radius: var(--r-xl);
  overflow: clip; box-shadow: var(--sh-sm); display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.pillar__media { aspect-ratio: 4 / 3; overflow: clip; }
.pillar__media img { width: 100%; height: 100%; transition: transform var(--dur-slow) var(--ease-out-soft); }
.pillar:hover .pillar__media img { transform: scale(1.04); }
.pillar__badge { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--sage-200); }
.pillar__badge .badge-live { transform: scale(1.05); }
.pillar__body { padding: clamp(1.2rem, 0.9rem + 1vw, 1.7rem); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.pillar h3 { font-size: var(--fs-h3); }
.pillar p { color: var(--text-body); font-size: var(--fs-small); line-height: 1.55; }
.pillar__link { margin-top: auto; padding-top: 0.6rem; }

/* ---------------------------------------------------------------------------
   11 · TEAM — Echt-Foto-Galerie (Masonry, dense)
   --------------------------------------------------------------------------- */
.team-body { max-width: 42rem; margin-bottom: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.team-body p { margin-top: 0.9rem; color: var(--text-body); }

/* Prominente Feature-Kachel (nur Hero-Grade team-gruppenfoto, Merksatz 14) */
.team-feature {
  position: relative; overflow: clip; border-radius: var(--r-xl);
  box-shadow: var(--sh-md); background: var(--cream-200);
  margin-bottom: clamp(0.8rem, 0.5rem + 1vw, 1.2rem);
}
.team-feature img { width: 100%; aspect-ratio: 16 / 9; transition: transform var(--dur-slow) var(--ease-out-soft); }
.team-feature:hover img { transform: scale(1.03); }

.gallery-item {
  appearance: none; -webkit-appearance: none;
  width: 100%; padding: 0; border: 0;
  display: block; color: inherit; font: inherit; text-align: inherit;
  cursor: zoom-in;
}

/* Masonry per CSS-Multicolumn → KEINE Grid-Löcher (Ziel von gallery-grid-hole
   ohne fragile Span-Summen); Bilder behalten ihr natürliches Seitenverhältnis. */
.team-masonry { column-count: 3; column-gap: clamp(0.8rem, 0.5rem + 1vw, 1.2rem); }
.tile {
  position: relative; overflow: clip; border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); background: var(--cream-200);
  break-inside: avoid;
  margin-bottom: clamp(0.8rem, 0.5rem + 1vw, 1.2rem);
}
.tile img { width: 100%; height: auto; transition: transform var(--dur-slow) var(--ease-out-soft); }
.tile:hover { box-shadow: var(--sh-md); }
.tile:hover img { transform: scale(1.045); }
.team-cta { margin-top: clamp(1.8rem, 1.2rem + 2vw, 3rem); }

/* ---------------------------------------------------------------------------
   12 · KONTAKT
   --------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2.5vw, 3rem); align-items: stretch; }

.form-card {
  background: var(--cream-050); border: 1px solid var(--cream-300);
  border-radius: var(--r-xl); padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
  box-shadow: var(--sh-sm); height: 100%;
}
.form-card h3 { font-size: var(--fs-h3); margin-bottom: 1.2rem; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; min-width: 0; }
.field label { font-weight: var(--fw-medium); font-size: var(--fs-small); color: var(--oak-800); }
.field label .req { color: var(--geranium-700); }
.field input, .field textarea {
  width: 100%; min-width: 0;
  background: var(--paper-000);
  border: 1.5px solid var(--cream-300);
  border-radius: var(--r-sm);
  padding: 0.8rem 0.95rem;
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease-out-soft), box-shadow var(--dur-fast) var(--ease-out-soft);
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--geranium-500); box-shadow: var(--sh-focus); }
.field .field-error { font-size: var(--fs-small); color: var(--alert); font-weight: var(--fw-medium); display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--alert); }
.field.has-error .field-error { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: var(--fs-small); color: var(--text-muted); margin: 0.4rem 0 1.1rem; }
.form-status { border-radius: var(--r-sm); padding: 0.85rem 1rem; font-size: var(--fs-small); margin-top: 1rem; display: none; }
.form-status.is-ok    { display: block; background: var(--sage-100); border: 1px solid var(--sage-300); color: var(--sage-800); }
.form-status.is-error { display: block; background: var(--geranium-100); border: 1px solid var(--geranium-200); color: var(--geranium-800); }
.form-status a { color: inherit; font-weight: var(--fw-semibold); text-decoration: underline; }

.direct-card {
  background: var(--bg-deep); color: var(--on-deep);
  border-radius: var(--r-xl); padding: clamp(1.5rem, 1rem + 1.8vw, 2.6rem);
  box-shadow: var(--sh-lg); display: flex; flex-direction: column; gap: 1.2rem; height: 100%;
}
.direct-card h3 { font-size: var(--fs-h3); color: var(--cream-050); }
.direct-row { display: flex; gap: 0.9rem; align-items: flex-start; }
.direct-row .ico {
  width: 2.6rem; height: 2.6rem; flex: none; border-radius: var(--r-sm);
  display: grid; place-items: center; background: rgba(255,255,255,0.08); color: var(--oak-300);
}
.direct-row .ico svg { width: 1.3rem; height: 1.3rem; }
.direct-row .lbl { font-size: var(--fs-small); color: var(--text-muted); }
.direct-row .val { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h4); color: var(--cream-050); }
.direct-row .val a { color: var(--cream-050); }
.direct-row .val a:hover { color: var(--geranium-400); }
.direct-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.7rem; }
.direct-actions .btn { width: 100%; }
.direct-note { font-size: var(--fs-small); color: var(--text-muted); }
.nap-block { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.1rem; font-size: var(--fs-small); color: var(--text-body); line-height: 1.6; }
.nap-block strong { color: var(--cream-050); font-weight: var(--fw-semibold); }

/* Team-Galerie: große, fokussierte Bildansicht ohne Seiten-Redesign */
.team-lightbox {
  width: min(94vw, 76rem); height: min(92vh, 54rem);
  max-width: none; max-height: none; padding: 0; border: 0;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--oak-900); color: var(--cream-050);
  box-shadow: var(--sh-xl);
}
.team-lightbox::backdrop { background: rgba(25,18,12,0.88); backdrop-filter: blur(4px); }
.team-lightbox__panel { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 3.5rem 4.5rem 1.5rem; }
.team-lightbox__figure { width: 100%; height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 0.8rem; }
.team-lightbox__figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); }
.team-lightbox__figure figcaption { color: var(--oak-200); font-size: var(--fs-small); text-align: center; }
.team-lightbox__close,
.team-lightbox__nav {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: rgba(253,249,241,0.12); color: var(--cream-050);
  border: 1px solid rgba(255,255,255,0.24); font-size: 2rem; line-height: 1;
}
.team-lightbox__close:hover,
.team-lightbox__nav:hover { background: rgba(253,249,241,0.22); }
.team-lightbox__close { top: 0.8rem; right: 0.8rem; }
.team-lightbox__nav { top: 50%; transform: translateY(-50%); }
.team-lightbox__nav--prev { left: 0.8rem; }
.team-lightbox__nav--next { right: 0.8rem; }

/* ---------------------------------------------------------------------------
   13 · FOOTER
   --------------------------------------------------------------------------- */
.site-footer { background: var(--oak-900); color: var(--on-deep); padding-block: clamp(3rem, 2rem + 3vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.footer-brand .brand-chip { margin-bottom: 1.1rem; }
.footer-claim { font-family: var(--font-display); font-style: italic; font-size: var(--fs-h4); color: var(--cream-050); }
.footer-col h3 { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--oak-300); margin-bottom: 0.9rem; font-family: var(--font-body); font-weight: var(--fw-semibold); }
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a, .footer-col address { color: var(--text-body); font-size: var(--fs-small); font-style: normal; line-height: 1.6; }
.footer-col a:hover { color: var(--geranium-400); }
.footer-bottom { margin-top: clamp(2rem, 1.4rem + 2vw, 3.2rem); padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.14); display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: space-between; align-items: center; font-size: var(--fs-small); color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--cream-050); }
.thaeven-credit { margin: 0; opacity: .62; letter-spacing: .02em; }
.thaeven-credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------------------
   14 · KARRIERE-SPEZIFISCH
   --------------------------------------------------------------------------- */
.hero--karriere .hero__card img { aspect-ratio: 3 / 4; }
.hero--karriere .hero__stage { max-width: 30rem; margin-inline: auto; }

.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.7rem + 1.4vw, 1.8rem); }
.benefit-card {
  background: var(--sage-100); border: 1px solid var(--sage-300); border-radius: var(--r-xl);
  padding: clamp(1.3rem, 1rem + 1.2vw, 2rem); display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft);
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.benefit-card__num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--geranium-100); color: var(--geranium-700);
}
.benefit-card h3 { font-size: var(--fs-h4); }
.benefit-card p { color: var(--text-body); font-size: var(--fs-small); line-height: 1.55; }

.jobs { display: grid; gap: clamp(0.9rem, 0.6rem + 1vw, 1.4rem); max-width: 52rem; }
.job-card {
  position: relative; background: var(--cream-050); border: 1px solid var(--cream-300);
  border-radius: var(--r-lg); padding: clamp(1.2rem, 0.9rem + 1.2vw, 1.9rem) clamp(1.2rem, 0.9rem + 1.2vw, 1.9rem) clamp(1.2rem, 0.9rem + 1.2vw, 1.9rem) clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between;
  box-shadow: var(--sh-sm); overflow: clip;
  transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft);
}
.job-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand-primary); }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.job-card__text { flex: 1 1 22rem; min-width: 0; }
.job-card h3 { font-size: var(--fs-h4); margin-bottom: 0.35rem; }
.job-card p { color: var(--text-muted); font-size: var(--fs-small); }
.jobs-note { margin-top: 1.4rem; font-size: var(--fs-small); color: var(--text-muted); }

.ausbildung-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 1rem + 2.5vw, 3rem); align-items: center; }
.ausbildung-photo { border-radius: var(--r-xl); overflow: clip; box-shadow: var(--sh-lg); background: var(--paper-000); padding: 0.55rem; max-width: 24rem; }
.ausbildung-photo img { width: 100%; aspect-ratio: 3 / 4; border-radius: calc(var(--r-xl) - 6px); }
.ausbildung-text p { margin-top: 1rem; color: var(--text-body); }
.ausbildung-text .btn { margin-top: 1.6rem; }

.faq { max-width: 48rem; display: grid; gap: 0.8rem; }
.faq details {
  background: var(--cream-050); border: 1px solid var(--cream-300); border-radius: var(--r-md);
  overflow: clip; transition: background var(--dur-base) var(--ease-out-soft);
}
.faq details[open] { background: var(--oak-100); border-color: var(--oak-300); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; display: flex; gap: 1rem;
  align-items: center; justify-content: space-between; font-family: var(--font-display);
  font-weight: 500; font-size: var(--fs-h4); color: var(--oak-800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 1.4rem; height: 1.4rem; transition: transform var(--dur-base) var(--ease-out-soft); color: var(--geranium-600); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq__answer { padding: 0 1.3rem 1.2rem; color: var(--text-body); line-height: 1.6; }

.cta-final { background: var(--oak-900); color: var(--on-deep); text-align: center; }
.cta-final .wrap { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.cta-final h2 { font-size: var(--fs-h1); color: var(--cream-050); }
.cta-final p { max-width: 40rem; color: var(--text-body); font-size: var(--fs-lead); }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 0.6rem; }
.cta-final__sub { font-size: var(--fs-small); color: var(--text-muted); margin-top: 0.4rem; }
.cta-final__sub a { color: var(--oak-300); }

/* Rechtsseiten (Impressum/Datenschutz) */
.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.legal h1 { font-size: var(--fs-h1); margin-bottom: 1.5rem; }
.legal h2 { font-size: var(--fs-h3); margin: 2rem 0 0.7rem; }
.legal p, .legal address, .legal ul { margin-bottom: 0.9rem; color: var(--text-body); font-style: normal; }
.legal ul { list-style: disc; padding-left: 1.4rem; }
.legal a { color: var(--link); text-decoration: underline; }

/* ---------------------------------------------------------------------------
   15 · SCROLL-REVEALS  (nur mit JS aktiv; ohne JS alles sichtbar)
   In-Place-Fade (translateY 24px) — Element verlässt den Viewport NICHT,
   Fokus springt also nicht off-screen (Merksatz 21 betrifft Off-screen-Fly-ins).
   Header/Hero-H1/Foto NIE opacity-gated (LCP).
   --------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-reveal) var(--ease-out-soft), transform var(--dur-reveal) var(--ease-out-soft); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal][data-reveal-delay="1"] { transition-delay: 60ms; }
.js [data-reveal][data-reveal-delay="2"] { transition-delay: 120ms; }
.js [data-reveal][data-reveal-delay="3"] { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .js .hero__card, .js .hero__peek i { animation: none !important; }
  .badge-live__dot::after { animation: none; }
  .hero__card { transform: rotate(-1.6deg); }
  .deck-card { transform: none !important; }
  .deck-card::after { opacity: 0 !important; }
}

/* ===========================================================================
   16 · RESPONSIVE
   =========================================================================== */

/* Tablet & darunter */
@media (max-width: 960px) {
  .primary-nav { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .header-actions .btn--tel-compact span.lbl { display: none; }
  .header-actions .badge-live { display: none; }

  .mobile-nav { top: var(--header-h); }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__text { max-width: 40rem; order: 1; }
  .hero__stage { order: 2; max-width: 32rem; margin-inline: auto; width: 100%; }

  .team-masonry { column-count: 2; }
  .deck-card__grid { grid-template-columns: 1fr; }
  .deck-card__inset { max-width: 20rem; }

  .contact-grid { grid-template-columns: 1fr; }
  .direct-card { order: -1; }              /* Direktkontakt zuerst (Content-Priority) */
  .ausbildung-grid { grid-template-columns: 1fr; }
  .ausbildung-photo { max-width: 20rem; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: 1fr; max-width: 32rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 640px) {
  .callbar { display: flex; }
  body { padding-bottom: var(--callbar-h); }   /* JS setzt --callbar-h */

  .services { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }

  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .hero--karriere .hero__ctas .btn--ghost,
  .team-cta .btn--ghost { background: rgba(253,249,241,0.94); }

  .team-lightbox { width: 100vw; height: calc(100vh - var(--header-h)); margin-top: var(--header-h); border-radius: 0; }
  .team-lightbox__panel { padding: 3.6rem 1rem 4.6rem; }
  .team-lightbox__nav { top: auto; bottom: 0.8rem; transform: none; }
  .team-lightbox__nav--prev { left: calc(50% - 3.4rem); }
  .team-lightbox__nav--next { right: calc(50% - 3.4rem); }

  /* SIGNATURE-DECK Mobile-Fallback: KEIN Sticky/Overlap → vertikaler Stapel */
  .deck-card {
    position: static; min-height: auto; transform: none !important;
    margin-bottom: clamp(1rem, 0.7rem + 2vw, 1.6rem);
  }
  .deck-card::after { display: none; }
  .deck-card--nacht .deck-bg::after { background: linear-gradient(180deg, rgba(30,22,15,0.62) 0%, rgba(40,29,19,0.9) 100%); }
  .daydeck__ambient { display: none; }

  .services-cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .hero__peek i:nth-child(2), .hero__peek i:nth-child(3) { display: none; } /* 1 Kante */
  .hero__peek i:nth-child(1) { width: 86%; }
}

/* kleine Phones */
@media (max-width: 420px) {
  .team-masonry { column-count: 1; }
}

/* Ultrawide — Bühne gedeckelt, nichts strecken (Merksatz 1) */
@media (min-width: 1700px) {
  .hero__inner { gap: 5rem; }
}
