/* ============================================================
   Verlassenschaftservice.at — Shared Styles
   Mobile-first · Anti-Slop · WCAG AA
   ============================================================ */

/* ============ SELF-HOSTED FONTS ============
   .woff2-Dateien liegen unter /fonts/ — siehe docs/fonts-setup.md.
   font-display: swap lässt System-Schriften als Fallback einspringen,
   solange die woff2-Dateien noch nicht vorhanden sind. */
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============ DESIGN TOKENS ============ */
:root {
  /* Colors */
  --c-primary: #1F3A2E;
  --c-primary-dark: #122218;
  --c-secondary: #A8C0B5;
  --c-accent: #3D5C4F;
  --c-wood: #8B7355;
  --c-wood-light: #D4C5AE;
  --c-bg: #FFFFFF;
  --c-bg-elev: #E8E4D8;
  --c-bg-warm: #F0EDE5;
  --c-text: #1A1A1A;
  --c-muted: #6B6B66;
  --c-line: rgba(31, 58, 46, 0.12);
  --c-line-strong: rgba(31, 58, 46, 0.22);
  --c-whatsapp: #2F5D4E;
  --c-pulse: #4FAE6B;

  /* Type */
  --f-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --f-body: 'Geist', system-ui, -apple-system, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* Shadows (tinted) */
  --shadow-sm: 0 1px 2px rgba(31, 58, 46, 0.04), 0 2px 6px rgba(31, 58, 46, 0.04);
  --shadow-md: 0 4px 12px rgba(31, 58, 46, 0.06), 0 12px 24px rgba(31, 58, 46, 0.08);
  --shadow-lg: 0 10px 24px rgba(31, 58, 46, 0.08), 0 24px 56px rgba(31, 58, 46, 0.12);
  --shadow-tinted: 0 20px 40px -16px rgba(31, 58, 46, 0.22);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 150ms;
  --t-base: 240ms;
  --t-slow: 360ms;

  /* Layout */
  --max-w: 1440px;
  --pad-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 8vw, 128px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Z-index */
  --z-akt: 40;
  --z-nav: 50;
  --z-cta: 60;
  --z-modal: 80;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; }
ul, ol { list-style: none; }

/* Focus states (a11y) */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--c-primary); color: var(--c-bg);
  padding: 12px 18px; border-radius: var(--radius-md);
  z-index: 100;
  font-family: var(--f-mono); font-size: 0.85rem;
  transition: top var(--t-base) var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 500;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.5vw + 1rem, 4.8rem); letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 2.5vw + 1rem, 3.2rem); }
h3 { font-size: clamp(1.25rem, 1vw + 0.9rem, 1.85rem); letter-spacing: -0.018em; }
h4 { font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem); }

p { text-wrap: pretty; }
.lead {
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem);
  line-height: 1.55;
  color: var(--c-muted);
  max-width: 56ch;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow.on-dark { color: var(--c-secondary); }

/* ============ LAYOUT ============ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
section { padding-block: var(--section-y); }

/* ============ AKTENZEICHEN-LEISTE ============ */
.aktenzeichen {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-primary);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  height: 32px;
  position: relative;
  z-index: var(--z-akt);
}
.aktenzeichen-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  white-space: nowrap;
}
.aktenzeichen .akt-sep { color: var(--c-secondary); }
.aktenzeichen .akt-mitglied { font-weight: 600; letter-spacing: 0.22em; }
@media (max-width: 720px) {
  .aktenzeichen { font-size: 10px; letter-spacing: 0.14em; }
  .aktenzeichen-inner { gap: 12px; }
  .aktenzeichen .akt-desktop { display: none; }
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
  z-index: var(--z-nav);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 14px var(--pad-x);
}
.logo {
  font-family: var(--f-display); font-weight: 600; font-size: 1.1rem;
  letter-spacing: -0.02em; color: var(--c-primary);
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.logo-mark { height: 80px; width: auto; max-width: 340px; display: block; color: var(--c-accent); }
.logo.on-dark .logo-mark { color: var(--c-bg-warm); }
@media (max-width: 600px) {
  .logo-mark { height: 88px; max-width: min(300px, calc(100vw - 100px)); }
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a {
  font-size: 0.92rem; color: var(--c-text); font-weight: 400;
  padding: 8px 12px; border-radius: 8px;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
  position: relative;
}
.nav-links > a:hover { background: var(--c-bg-elev); color: var(--c-primary); }
.nav-links > a[aria-current="page"] {
  color: var(--c-primary); font-weight: 500;
}
.nav-links > a[aria-current="page"]::after {
  content: ''; position: absolute;
  left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--c-primary); border-radius: 1px;
}
.nav-tel {
  margin-left: 6px;
  font-family: var(--f-mono); font-size: 0.86rem; font-weight: 500;
  padding: 9px 16px !important;
  border: 1px solid var(--c-primary); border-radius: var(--radius-pill);
  transition: all var(--t-fast) var(--ease-out);
}
.nav-tel:hover { background: var(--c-primary); color: var(--c-bg) !important; }

/* Mobile burger */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 8px;
  align-items: center; justify-content: center;
  color: var(--c-primary);
  flex-shrink: 0;
}
.nav-burger svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  body.nav-open { overflow: hidden; }
}

/* ============ MOBILE MENU (rendered outside .nav to escape its containing block) ============ */
.mobile-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(31, 58, 46, 0.35);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
  z-index: calc(var(--z-nav) + 1);
  pointer-events: none;
}
.mobile-menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--c-bg);
  border-left: 1px solid var(--c-line);
  display: flex; flex-direction: column; align-items: stretch;
  padding: calc(env(safe-area-inset-top) + 20px) var(--pad-x)
          calc(env(safe-area-inset-bottom) + 24px);
  gap: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform var(--t-base) var(--ease-out);
  z-index: calc(var(--z-nav) + 2);
  box-shadow: -8px 0 24px rgba(31, 58, 46, 0.12);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu > a {
  padding: 16px 4px;
  font-size: 1.05rem;
  color: var(--c-primary);
  border-bottom: 1px solid var(--c-line);
  text-decoration: none;
}
.mobile-menu > a:first-child { border-top: 1px solid var(--c-line); }
.mobile-menu > a[aria-current="page"] {
  color: var(--c-accent);
  font-weight: 500;
}
.mobile-menu > .nav-tel {
  margin-top: 20px;
  border-radius: var(--radius-pill);
  text-align: center;
  padding: 14px 20px;
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
}
.mobile-menu > .nav-tel:hover,
.mobile-menu > .nav-tel:focus {
  background: var(--c-primary);
  color: var(--c-bg);
}
@media (min-width: 961px) {
  .mobile-menu,
  .mobile-menu-backdrop { display: none !important; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.98rem; font-weight: 500;
  font-family: var(--f-body);
  transition: transform var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
  cursor: pointer;
  min-height: 48px;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--c-primary); color: var(--c-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), var(--shadow-sm);
}
.btn-primary:hover { background: var(--c-primary-dark); box-shadow: var(--shadow-md); }
.btn-whatsapp { background: var(--c-whatsapp); color: var(--c-bg); box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: #264a3f; box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent; color: var(--c-primary);
  border: 1px solid var(--c-line-strong);
}
.btn-ghost:hover { border-color: var(--c-primary); background: var(--c-bg-elev); }
.btn-ghost.on-dark {
  color: var(--c-bg); border-color: rgba(255,255,255,0.3);
}
.btn-ghost.on-dark:hover { border-color: var(--c-bg); background: rgba(255,255,255,0.08); }
.btn svg { width: 18px; height: 18px; }

/* Magnetic-light hover (taste-skill MOTION ~5) */
@media (hover: hover) and (pointer: fine) {
  .btn-primary, .btn-whatsapp {
    will-change: transform;
  }
  .btn-primary:hover, .btn-whatsapp:hover {
    transform: translateY(-1px);
  }
}

/* ============ HERO ============ */
.hero {
  padding-block: clamp(48px, 6vw, 96px) clamp(56px, 8vw, 112px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text .eyebrow { margin-bottom: 24px; }
.hero-text h1 { margin-bottom: 24px; max-width: 16ch; }
.hero-text h1 em { font-style: normal; color: var(--c-accent); font-weight: 500; }
.hero-text .lead { margin-bottom: 36px; max-width: 50ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}
.hero-meta-item .eyebrow { display: block; margin-bottom: 6px; font-size: 0.7rem; }
.hero-meta-item strong {
  font-family: var(--f-display); font-weight: 500;
  font-size: 1rem; color: var(--c-primary); letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-meta-item .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-pulse);
  box-shadow: 0 0 0 0 rgba(79, 174, 107, 0.55);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 174, 107, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(79, 174, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 174, 107, 0); }
}

.hero-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-tinted);
  background: var(--c-bg-elev);
  max-height: 70svh;
}
.hero-image-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(31,58,46,0.16));
  pointer-events: none; z-index: 2;
}
.hero-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.78) contrast(0.96);
}
.hero-caption {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500;
  color: var(--c-primary); letter-spacing: 0.04em;
}

/* Hero carousel (Vorher → Während → Nachher) */
.hero-carousel {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; will-change: opacity;
  animation-duration: 7.5s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.hero-slide--1 { animation-name: heroSlide1; }
.hero-slide--2 { animation-name: heroSlide2; }
.hero-slide--3 { animation-name: heroSlide3; }

.hero-slide-label {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 600;
  color: var(--c-primary); letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-progress {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; gap: 6px; z-index: 3;
}
.hero-progress > span {
  flex: 1; height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px; overflow: hidden;
}
.hero-progress > span > i {
  display: block; height: 100%; width: 100%;
  background: #ffffff;
  transform: scaleX(0); transform-origin: left center;
  will-change: transform;
  animation-duration: 7.5s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
.hero-progress > span:nth-child(1) > i { animation-name: heroBar1; }
.hero-progress > span:nth-child(2) > i { animation-name: heroBar2; }
.hero-progress > span:nth-child(3) > i { animation-name: heroBar3; }

@keyframes heroSlide1 {
  0%, 29%   { opacity: 1; }
  33%, 96%  { opacity: 0; }
  100%      { opacity: 1; }
}
@keyframes heroSlide2 {
  0%, 29%   { opacity: 0; }
  33%, 62%  { opacity: 1; }
  66%, 100% { opacity: 0; }
}
@keyframes heroSlide3 {
  0%, 62%   { opacity: 0; }
  66%, 96%  { opacity: 1; }
  100%      { opacity: 0; }
}
@keyframes heroBar1 {
  0%        { transform: scaleX(0); }
  33%, 100% { transform: scaleX(1); }
}
@keyframes heroBar2 {
  0%, 33%   { transform: scaleX(0); }
  66%, 100% { transform: scaleX(1); }
}
@keyframes heroBar3 {
  0%, 66%   { transform: scaleX(0); }
  100%      { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide--3 { opacity: 1; }
  .hero-progress { display: none; }
}

@media (min-width: 768px) {
  .hero-meta { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); }
  .hero-image-wrap { max-height: 720px; }
}

/* Hero compact (subpages) */
.hero-compact {
  padding-block: clamp(48px, 6vw, 80px) clamp(40px, 5vw, 64px);
}
.hero-compact h1 { max-width: 22ch; margin-bottom: 18px; }
.hero-compact .lead { max-width: 56ch; margin-bottom: 0; }
.hero-compact .breadcrumbs { margin-bottom: 18px; }

/* ============ VIDEO PLACEHOLDER ============ */
.video-section {
  padding-block: clamp(56px, 7vw, 96px);
  background: var(--c-wood);
  color: var(--c-bg-warm);
}
.video-section .eyebrow { color: var(--c-secondary); }
.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-primary);
  box-shadow: var(--shadow-tinted);
  cursor: default;
}
.video-frame::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('/imgs/hero-vorher.webp');
  background-size: cover; background-position: center;
  filter: brightness(0.55) saturate(0.6);
}
.video-frame[aria-disabled="true"] .play-circle { opacity: 0.6; }
.video-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--c-bg);
  z-index: 2;
}
.play-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: grid; place-items: center;
  transition: transform var(--t-base) var(--ease-out);
}
.video-frame:hover .play-circle { transform: scale(1.04); }
.play-circle svg { width: 26px; height: 26px; fill: var(--c-primary); margin-left: 4px; }
.video-meta {
  margin-top: 16px;
  display: grid; grid-template-columns: 1fr;
  gap: 8px;
}
.video-meta h4 { font-family: var(--f-display); font-weight: 500; color: var(--c-bg-warm); }
.video-meta p { color: rgba(240, 237, 229, 0.78); font-size: 0.92rem; margin-top: 4px; }
.video-meta .eyebrow { font-size: 0.72rem; }
@media (min-width: 600px) {
  .video-meta { grid-template-columns: 1fr auto; align-items: baseline; gap: 16px; }
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
  font-family: var(--f-mono); font-size: 0.78rem;
  color: var(--c-muted); letter-spacing: 0.04em;
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  align-items: center;
}
.breadcrumbs a {
  color: var(--c-muted);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
  padding: 2px 0;
}
.breadcrumbs a:hover { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.breadcrumbs span[aria-current="page"] { color: var(--c-text); }
.breadcrumbs svg { width: 12px; height: 12px; opacity: 0.5; }

/* ============ SERVICES (editorial list) ============ */
.services { background: var(--c-bg-elev); }
.services-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
.services-head h2 { max-width: 16ch; }
.services-head p { color: var(--c-muted); max-width: 48ch; }

.service-phase-label {
  font-family: var(--f-mono); font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-accent);
  margin-top: 56px; margin-bottom: 4px;
  display: flex; align-items: center; gap: 12px;
}
.service-phase-label::before {
  content: ''; width: 24px; height: 1px; background: var(--c-accent);
}
.service-phase-label:first-of-type { margin-top: 0; }

.service-list { border-top: 1px solid var(--c-line); }
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--c-line);
  transition: background var(--t-fast) var(--ease-out);
}
.service-row:hover { background: rgba(31,58,46,0.025); }
.service-row .service-num {
  font-family: var(--f-mono); font-size: 0.78rem;
  color: var(--c-muted); letter-spacing: 0.04em;
}
.service-row h3 { font-size: 1.2rem; font-weight: 500; }
.service-row p { color: var(--c-muted); font-size: 0.96rem; max-width: 64ch; }
.service-row .service-arrow {
  display: none;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--c-line-strong);
  align-items: center; justify-content: center;
  transition: all var(--t-fast) var(--ease-out);
  flex-shrink: 0;
}
.service-row:hover .service-arrow {
  background: var(--c-primary); border-color: var(--c-primary); color: var(--c-bg);
  transform: translate(2px, -2px);
}
.service-row .service-arrow svg { width: 14px; height: 14px; }

@media (min-width: 768px) {
  .services-head { grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
  .service-row {
    grid-template-columns: 1fr 2fr auto;
    gap: 24px;
    align-items: center;
    padding: 28px 0;
  }
  .service-row .service-arrow { display: inline-flex; }
}

/* ============ ABLAUF ============ */
.ablauf-head { max-width: 720px; margin-bottom: 56px; }
.ablauf-head h2 { margin-top: 16px; }
.ablauf-head p { color: var(--c-muted); margin-top: 18px; max-width: 56ch; }

.ablauf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.ablauf-list { display: flex; flex-direction: column; }
.ablauf-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--c-line);
  align-items: start;
}
.ablauf-step:last-child { border-bottom: 1px solid var(--c-line); }
.ablauf-step-num {
  font-family: var(--f-mono); font-weight: 500; font-size: 0.85rem;
  color: var(--c-primary);
  background: rgba(31,58,46,0.08);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
}
.ablauf-step h4 {
  margin-bottom: 6px;
  font-family: var(--f-display); font-weight: 500;
  font-size: 1.1rem;
}
.ablauf-step p { color: var(--c-muted); font-size: 0.96rem; }

.ablauf-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-tinted);
  max-height: 70svh;
}
.ablauf-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.78);
}

@media (min-width: 960px) {
  .ablauf-grid { grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); }
  .ablauf-image { position: sticky; top: 100px; max-height: 720px; }
  .ablauf-step { grid-template-columns: 56px 1fr; gap: 22px; padding: 28px 0; }
  .ablauf-step h4 { font-size: 1.18rem; }
}

/* ============ DOWNLOADS ============ */
.downloads-head { max-width: 720px; margin-bottom: 48px; }
.downloads-head h2 { margin-top: 16px; }
.downloads-head p { color: var(--c-muted); margin-top: 18px; max-width: 56ch; }

.downloads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.download-card {
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.download-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.download-card .eyebrow { font-size: 0.72rem; }
.download-card h3 { font-size: 1.25rem; font-weight: 500; }
.download-card p { color: var(--c-muted); font-size: 0.95rem; }
.download-card .download-meta {
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--c-muted); text-transform: uppercase;
  display: flex; gap: 14px;
  padding-top: 14px; margin-top: auto;
  border-top: 1px solid var(--c-line);
}
.download-card .btn { align-self: flex-start; }
@media (min-width: 720px) { .downloads-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* ============ TEAM ============ */
.team { background: var(--c-bg-elev); }
.team-head {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-bottom: 48px;
}
.team-head p { color: var(--c-muted); max-width: 50ch; }
.team-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.team-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color var(--t-base), transform var(--t-base);
}
.team-card:hover { border-color: var(--c-line-strong); transform: translateY(-2px); }
.team-card .role {
  font-family: var(--f-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-accent);
}
.team-card h3 { font-size: 1.18rem; font-weight: 500; }
.team-card p { color: var(--c-muted); font-size: 0.94rem; line-height: 1.6; }
.team-photo {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--c-secondary);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 500; color: var(--c-primary);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
@media (min-width: 768px) { .team-head { grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; } .team-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ============ VERBAND ============ */
.verband { background: var(--c-primary); color: var(--c-bg); }
.verband-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; align-items: center;
}
.verband-mark {
  aspect-ratio: 1; max-width: 320px;
  margin-inline: auto;
  display: grid; place-items: center;
}
.verband-mark img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.25));
}
.verband h2 { color: var(--c-bg); margin-bottom: 20px; }
.verband p { color: rgba(255,255,255,0.78); font-size: 1rem; max-width: 56ch; margin-bottom: 14px; }
.verband strong { font-weight: 600; color: var(--c-bg); }
.verband .btn-ghost { color: var(--c-bg); border-color: rgba(255,255,255,0.3); margin-top: 14px; }
.verband .btn-ghost:hover { border-color: var(--c-bg); background: rgba(255,255,255,0.08); }
@media (min-width: 960px) { .verband-grid { grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 80px); } .verband-mark { margin-inline: 0; } }

/* ============ REMOTE ============ */
.remote-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: center;
}
.remote h2 { margin: 16px 0 20px; max-width: 18ch; }
.remote p { color: var(--c-muted); max-width: 54ch; margin-bottom: 14px; font-size: 1rem; }
.remote-features { margin-top: 28px; }
.remote-features div {
  display: grid; grid-template-columns: 32px 1fr;
  gap: 14px; padding: 14px 0;
  border-top: 1px solid var(--c-line);
  align-items: baseline;
}
.remote-features div:last-child { border-bottom: 1px solid var(--c-line); }
.remote-features span:first-child {
  font-family: var(--f-mono); font-size: 0.78rem; color: var(--c-accent);
  letter-spacing: 0.04em;
}
.remote-features span:last-child { font-size: 0.96rem; color: var(--c-text); }
.remote-image {
  aspect-ratio: 3/4; border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-tinted);
  max-height: 70svh;
}
.remote-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.78); }
@media (min-width: 960px) { .remote-grid { grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); } }

/* ============ WISSEN / BLOG ============ */
.wissen-head {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-bottom: 48px;
}
.wissen-head p { color: var(--c-muted); max-width: 56ch; }

.wissen-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.wissen-card {
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all var(--t-base) var(--ease-out);
  height: 100%;
}
.wissen-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.wissen-card .eyebrow { font-size: 0.72rem; }
.wissen-card h3 { font-size: 1.15rem; font-weight: 500; line-height: 1.3; }
.wissen-card p { color: var(--c-muted); font-size: 0.92rem; }
.wissen-card .read-more {
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--c-accent); margin-top: auto;
  padding-top: 14px; border-top: 1px solid var(--c-line);
  display: flex; align-items: center; gap: 6px;
  transition: gap var(--t-fast) var(--ease-out);
}
.wissen-card:hover .read-more { gap: 10px; color: var(--c-primary); }
.wissen-card .read-time {
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em;
  color: var(--c-muted); text-transform: uppercase;
}

@media (min-width: 768px) { .wissen-head { grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; } .wissen-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1024px) { .wissen-grid { grid-template-columns: repeat(3, 1fr); } }

/* Blog post layout */
.article {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
  padding-block: clamp(40px, 5vw, 80px);
}
.article-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 0.78rem;
  letter-spacing: 0.04em; color: var(--c-muted);
  margin-bottom: 18px;
}
.article-meta time { color: var(--c-accent); }
.article h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3.4rem);
  margin-bottom: 16px;
  max-width: 24ch;
}
.article .lead {
  font-size: 1.2rem; line-height: 1.55;
  color: var(--c-text);
  margin-bottom: 32px;
  max-width: none;
}
.article-body {
  font-size: 1.04rem; line-height: 1.75;
  color: var(--c-text);
}
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 {
  margin-top: 2em; margin-bottom: 0.5em;
  font-size: clamp(1.4rem, 1.5vw + 0.9rem, 1.8rem);
}
.article-body h3 {
  margin-top: 1.6em; margin-bottom: 0.4em;
  font-size: 1.2rem;
}
.article-body p { color: var(--c-text); }
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-block: 1em;
}
.article-body ul li { list-style: disc; margin-bottom: 0.4em; }
.article-body ol li { list-style: decimal; margin-bottom: 0.4em; }
.article-body strong { font-weight: 600; }
.article-body a {
  color: var(--c-primary); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.article-body blockquote {
  border-left: 3px solid var(--c-secondary);
  padding: 12px 0 12px 22px;
  font-style: italic; color: var(--c-muted);
  margin-block: 1.4em;
}
.article-body code {
  background: var(--c-bg-elev);
  padding: 2px 6px; border-radius: 4px;
  font-family: var(--f-mono); font-size: 0.9em;
}
.article-body hr {
  border: 0; border-top: 1px solid var(--c-line);
  margin-block: 2em;
}
.article-tldr {
  background: var(--c-bg-elev);
  border-left: 3px solid var(--c-accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-block: 24px;
}
.article-tldr .eyebrow { font-size: 0.72rem; margin-bottom: 6px; }
.article-tldr p { color: var(--c-text); font-size: 0.96rem; }

.article-footer {
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--c-line);
}

/* FAQ accordion */
.faq { margin-top: 32px; }
.faq-item {
  border-bottom: 1px solid var(--c-line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-family: var(--f-display); font-weight: 500;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--f-mono);
  font-size: 1.4rem; color: var(--c-accent);
  transition: transform var(--t-base) var(--ease-out);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
  padding: 0 0 20px;
  color: var(--c-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ============ STIMME ============ */
.stimme { background: var(--c-primary); color: var(--c-bg-warm); }
.stimme .eyebrow { color: var(--c-secondary); }
.stimme-inner { max-width: 880px; }
.stimme blockquote {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 1.5vw + 1rem, 2.2rem);
  line-height: 1.3; letter-spacing: -0.02em;
  color: var(--c-bg-warm); font-weight: 400;
  margin-top: 24px;
}
.stimme blockquote::before {
  content: '"';
  color: var(--c-secondary); font-family: var(--f-display);
  font-size: 4rem; line-height: 0.8;
  display: block; margin-bottom: 8px;
}
.stimme-attr {
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid rgba(168, 192, 181, 0.25);
  display: flex; align-items: center; gap: 14px;
}
.stimme-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-secondary);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 500; color: var(--c-primary);
  flex-shrink: 0;
}
.stimme-meta strong { display: block; font-family: var(--f-body); font-weight: 500; font-size: 0.96rem; color: var(--c-bg-warm); }
.stimme-meta span { color: rgba(240, 237, 229, 0.7); font-size: 0.86rem; }
.stimme-note {
  margin-top: 14px; font-family: var(--f-mono); font-size: 0.74rem;
  color: var(--c-secondary); letter-spacing: 0.04em;
}

/* ============ KONTAKT ============ */
.kontakt-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
.kontakt h2 { max-width: 16ch; margin-bottom: 18px; margin-top: 16px; }
.kontakt-cards { display: flex; flex-direction: column; gap: 12px; }
.kontakt-card {
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 14px; align-items: center;
  transition: all var(--t-base) var(--ease-out);
}
.kontakt-card:hover { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kontakt-card .eyebrow { font-size: 0.7rem; margin-bottom: 4px; }
.kontakt-card strong {
  font-family: var(--f-mono); font-size: 1.08rem;
  color: var(--c-primary); font-weight: 500;
  letter-spacing: -0.005em;
}
.kontakt-card p { color: var(--c-muted); font-size: 0.84rem; margin-top: 4px; }
.kontakt-card-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary); color: var(--c-bg);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.kontakt-card-icon svg { width: 18px; height: 18px; }
.kontakt-card.whatsapp .kontakt-card-icon { background: var(--c-whatsapp); }
@media (min-width: 768px) { .kontakt-grid { grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 80px); } }

/* ============ FOOTER ============ */
footer {
  background: var(--c-wood); color: var(--c-bg);
  padding-block: 64px 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; margin-bottom: 40px;
}
.footer h4 {
  font-size: 0.74rem; font-family: var(--f-mono); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-wood-light); margin-bottom: 14px;
}
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer ul a, .footer ul li {
  font-size: 0.92rem; color: rgba(255,255,255,0.78);
  transition: color var(--t-fast) var(--ease-out);
}
.footer ul a:hover { color: var(--c-bg); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-top: 14px; max-width: 36ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  font-family: var(--f-mono);
}
.footer-bottom a { transition: color var(--t-fast); }
.footer-bottom a:hover { color: var(--c-bg); }
.footer-siegel {
  width: 96px; height: 96px;
  margin-top: 20px;
  opacity: 0.92;
  transform: rotate(-8deg);
}
.footer-siegel img { width: 100%; height: 100%; display: block; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
}

/* ============ WHATSAPP STICKY (Desktop only — Mobile uses bottom CTA bar) ============ */
.wa-sticky {
  position: fixed; bottom: 24px; right: 24px;
  display: none;
  align-items: center; gap: 10px;
  background: var(--c-whatsapp); color: var(--c-bg);
  padding: 12px 18px 12px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(31,58,46,0.25);
  font-family: var(--f-body); font-size: 0.92rem; font-weight: 500;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
  z-index: var(--z-cta);
}
.wa-sticky:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31,58,46,0.3); }
.wa-sticky svg { width: 20px; height: 20px; }
@media (min-width: 768px) { .wa-sticky { display: inline-flex; } }

/* ============ MOBILE STICKY CTA BAR ============ */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  padding: 10px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  z-index: var(--z-cta);
  transform: translateY(120%);
  transition: transform var(--t-base) var(--ease-out);
  box-shadow: 0 -4px 16px rgba(31,58,46,0.08);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { padding: 12px 16px; font-size: 0.92rem; min-height: 44px; }
.mobile-cta .btn svg { width: 16px; height: 16px; }
@media (min-width: 768px) { .mobile-cta { display: none; } }
@media (max-width: 767px) {
  body { padding-bottom: 70px; }
}

/* ============ RELATED-CARDS (subpage footer) ============ */
.related { background: var(--c-bg-elev); }
.related h2 {
  font-size: clamp(1.4rem, 1.5vw + 0.9rem, 1.85rem);
  margin-bottom: 28px;
}
.related-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.related-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
  transition: all var(--t-base) var(--ease-out);
}
.related-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.related-card .eyebrow { font-size: 0.7rem; }
.related-card h3 { font-size: 1.02rem; font-weight: 500; }
.related-card p { color: var(--c-muted); font-size: 0.88rem; margin-top: 4px; }
@media (min-width: 600px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============ STATEMENT BLOCK (e.g. "Wir kaufen nichts") ============ */
.statement {
  background: var(--c-bg-warm);
  border-block: 1px solid var(--c-line);
}
.statement-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; align-items: center;
}
.statement h2 {
  font-size: clamp(1.8rem, 2vw + 1.1rem, 2.8rem);
  max-width: 18ch;
  letter-spacing: -0.02em;
}
.statement p { color: var(--c-muted); margin-top: 16px; max-width: 50ch; font-size: 1.02rem; }
.statement-siegel {
  width: 200px; height: 200px;
  color: var(--c-primary);
  opacity: 0.92;
  transform: rotate(-12deg);
  margin-inline: auto;
}
.statement-siegel svg { width: 100%; height: 100%; }
@media (min-width: 768px) { .statement-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; } .statement-siegel { width: 240px; height: 240px; margin-inline: 0 auto; } }

/* ============ INTRO TEASER (for homepage section linking to subpages) ============ */
.teaser-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-top: 32px;
}
.teaser-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all var(--t-base) var(--ease-out);
  text-decoration: none;
  color: inherit;
}
.teaser-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.teaser-card .eyebrow { font-size: 0.7rem; }
.teaser-card h3 { font-size: 1.15rem; font-weight: 500; }
.teaser-card p { color: var(--c-muted); font-size: 0.94rem; }
.teaser-card .arrow {
  margin-top: 8px;
  font-family: var(--f-mono); font-size: 0.82rem;
  color: var(--c-accent); letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--t-fast);
}
.teaser-card:hover .arrow { gap: 10px; color: var(--c-primary); }
@media (min-width: 600px) { .teaser-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .teaser-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============ REVEAL ANIMATION (IntersectionObserver) ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 360ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 420ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* View transitions (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 240ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ UTILITIES ============ */
.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;
}
.dev-banner {
  background: var(--c-primary); color: #F5F1E8;
  padding: 8px 16px; text-align: center;
  font-family: var(--f-mono); font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.dev-banner strong { color: var(--c-secondary); }

/* Icon helper */
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* On-dark overrides */
.on-dark { color: var(--c-bg) !important; }
.on-dark .eyebrow { color: var(--c-secondary) !important; }
.on-dark p { color: rgba(255,255,255,0.8); }

/* ============ AUDIT-FOLLOWUP REFINEMENTS ============ */

/* ablauf-step-title — semantic h3 with h4 visual sizing
   (so the step-block headings don't dominate the section) */
.ablauf-step-title {
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
  letter-spacing: -0.018em;
  line-height: 1.2;
  font-weight: 500;
  font-family: var(--f-display);
  margin: 0;
}

/* Step-meta (replaces 7 inline-styled <p> blocks in /ablauf/ and reused on home) */
.step-meta {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--c-accent);
}

/* Hyphenation for long German compounds on narrow viewports */
@media (max-width: 600px) {
  body, h1, h2, h3, h4, p {
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }
}

/* Hero-meta — 1 column on very narrow phones (4 items wrapped 2x2 was cramped) */
@media (max-width: 479px) {
  .hero-meta { grid-template-columns: 1fr; gap: 14px; }
  .hero-meta-item .eyebrow { font-size: 0.74rem; }
}

/* Aktenzeichen — bump readable size, tighten letter-spacing */
@media (max-width: 720px) {
  .aktenzeichen { font-size: 11px; letter-spacing: 0.08em; }
}

/* Logo — reduce mobile height (the previous bump optimized desktop but cramped mobile) */
@media (max-width: 600px) {
  .logo-mark { height: 68px; max-width: min(260px, calc(100vw - 100px)); }
}

/* WhatsApp-Sticky — push to desktop-only so it doesn't overlay iPad-portrait footers */
.wa-sticky { display: none !important; }
@media (min-width: 1024px) { .wa-sticky { display: inline-flex !important; } }

/* Footer contrast — bring rgba opacity up to clear WCAG AA */
.footer ul a, .footer ul li { color: rgba(255,255,255,0.88); }
.footer-brand p { color: rgba(255,255,255,0.82); }
.footer-bottom { color: rgba(255,255,255,0.78); }

/* Responsive table — stack on mobile (used in /leistungen/raeumung-reinigung/) */
@media (max-width: 600px) {
  .service-includes-table { display: block; }
  .service-includes-table thead { display: none; }
  .service-includes-table tbody, .service-includes-table tr {
    display: block; width: 100%;
  }
  .service-includes-table td {
    display: block; padding: 6px 0 !important;
    border: none !important;
  }
  .service-includes-table td:first-child::before {
    content: "Beinhaltet"; display: block;
    font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--c-accent);
    margin-top: 14px; margin-bottom: 2px;
  }
  .service-includes-table td:last-child::before {
    content: "Auf Anfrage"; display: block;
    font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--c-accent);
    margin-top: 6px; margin-bottom: 2px;
  }
  .service-includes-table tr {
    border-bottom: 1px solid var(--c-line);
    padding-bottom: 12px; margin-bottom: 4px;
  }
}

/* Vorher-Nachher-Gallery */
.gallery-section { background: var(--c-bg-elev); }
.gallery-head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 720px; }
.gallery-head h2 { margin-top: 14px; }
.gallery-head p { color: var(--c-muted); max-width: 56ch; }
.gallery-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
.gallery-case {
  display: grid; gap: 12px;
  background: var(--c-bg); border-radius: var(--radius-md);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.gallery-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.gallery-pair figure { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3/4; background: var(--c-bg-elev); }
.gallery-pair img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-pair figcaption {
  position: absolute; top: 8px; left: 8px;
  background: rgba(255,255,255,0.92);
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 600;
  color: var(--c-primary); letter-spacing: 0.06em; text-transform: uppercase;
}
.gallery-case-meta { font-size: 0.92rem; color: var(--c-muted); }
.gallery-case-meta strong { color: var(--c-text); font-weight: 500; }
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (min-width: 1024px) {
  .gallery-pair figcaption { font-size: 0.78rem; padding: 6px 12px; }
}

/* Author byline (Wissen articles) */
.byline {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  margin: 24px 0 32px;
}
.byline-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-primary); color: var(--c-bg);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 600;
  font-size: 1.05rem; flex-shrink: 0;
}
.byline-meta { display: grid; gap: 2px; }
.byline-meta strong {
  font-family: var(--f-display); font-weight: 500;
  font-size: 0.95rem; color: var(--c-text);
}
.byline-meta span {
  font-family: var(--f-mono); font-size: 0.74rem;
  color: var(--c-muted); letter-spacing: 0.04em;
}
.byline-meta a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }

/* Contact form (Netlify Forms) */
.kontakt-form {
  display: grid; gap: 20px;
  max-width: 640px;
  margin-top: 32px;
}
.kontakt-form label {
  display: grid; gap: 6px;
  font-family: var(--f-mono); font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c-accent);
}
.kontakt-form input,
.kontakt-form select,
.kontakt-form textarea {
  font-family: var(--f-body);
  font-size: 16px; /* prevent iOS zoom */
  padding: 12px 14px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  background: var(--c-bg);
  color: var(--c-text);
  text-transform: none; letter-spacing: normal;
  transition: border-color var(--t-fast) var(--ease-out);
}
.kontakt-form input:focus,
.kontakt-form select:focus,
.kontakt-form textarea:focus {
  outline: none; border-color: var(--c-primary);
}
.kontakt-form textarea { min-height: 120px; resize: vertical; }
.kontakt-form .form-row { display: grid; gap: 20px; }
@media (min-width: 600px) {
  .kontakt-form .form-row.two-col { grid-template-columns: 1fr 1fr; }
}
.kontakt-form .form-consent {
  font-family: var(--f-body); font-size: 0.85rem;
  text-transform: none; letter-spacing: normal;
  color: var(--c-muted);
  display: flex; gap: 10px; align-items: flex-start;
}
.kontakt-form .form-consent input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0;
}
.kontakt-form .hp { position: absolute; left: -10000px; }
.kontakt-form .btn { justify-self: start; }

/* ============ COOKIES-BANNER (DSGVO) ============ */
.cookies-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 90;
  max-width: 720px;
  margin-inline: auto;
  background: var(--c-bg);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 22px 22px 20px;
  display: none;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.cookies-banner.is-visible { display: block; }
.cookies-banner.is-shown { opacity: 1; transform: translateY(0); }
.cookies-banner h3 {
  font-size: 1.05rem; margin-bottom: 8px; font-weight: 500;
}
.cookies-banner p {
  font-size: 0.92rem; color: var(--c-muted);
  line-height: 1.55; margin-bottom: 14px;
}
.cookies-banner a {
  color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px;
}
.cookies-banner-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.cookies-banner-actions .btn {
  font-size: 0.92rem; padding: 10px 16px; min-height: 40px;
}
.cookies-banner-details {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--c-line);
  display: none;
}
.cookies-banner.is-detailed .cookies-banner-details { display: block; }
.cookies-banner-cat {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
}
.cookies-banner-cat:last-of-type { border-bottom: none; }
.cookies-banner-cat strong {
  font-family: var(--f-display); font-weight: 500;
  font-size: 0.95rem; display: block; margin-bottom: 2px;
}
.cookies-banner-cat span {
  font-size: 0.82rem; color: var(--c-muted); line-height: 1.5;
}
.cookies-banner-cat label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 0.78rem;
  letter-spacing: 0.04em; color: var(--c-accent);
  cursor: pointer; user-select: none;
}
.cookies-banner-cat input[type="checkbox"] {
  width: 18px; height: 18px; cursor: pointer;
  accent-color: var(--c-primary);
}
.cookies-banner-cat input[type="checkbox"]:disabled {
  cursor: not-allowed; opacity: 0.7;
}
.cookies-banner .btn-link {
  background: none; border: none;
  color: var(--c-accent);
  text-decoration: underline; text-underline-offset: 2px;
  padding: 8px 0;
  font-family: var(--f-mono); font-size: 0.82rem;
  letter-spacing: 0.04em; cursor: pointer;
}
.cookies-banner .btn-link:hover { color: var(--c-primary); }
.cookies-reopen {
  background: none; border: none;
  color: inherit; font: inherit;
  cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: 2px;
}
@media (min-width: 600px) {
  .cookies-banner {
    inset: auto 24px 24px auto;
    left: auto; max-width: 460px;
  }
}
@media (max-width: 599px) {
  .cookies-banner {
    padding: 18px 18px 16px;
    /* Sit above the mobile-cta bar (~64px high) + safe-area-inset */
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .cookies-banner-cat { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 767px) {
  /* Tablet portrait: mobile-cta bar still visible — lift banner */
  .cookies-banner { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
