/* Schriften lokal eingebunden (kein Abruf bei Google): Lexend und Source Sans 3, Open Font License */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/lexend-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/lexend-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/source-sans-3-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* =========================================================
   Meister Umzug & Räumung — Design System & Styles
   ========================================================= */

:root {
  /* Colors */
  --color-primary: #0F3264;
  --color-primary-500: #17427D;
  --color-primary-600: #0B2750;
  --color-primary-700: #071830;
  --color-primary-100: #E8EDF5;
  --color-primary-50: #F2F5FA;
  --color-white: #FFFFFF;
  --color-bg-light: #F5F7FA;
  --color-text: #24272C;
  --color-text-muted: #5B6472;
  --color-border: #E1E6ED;
  --color-accent: #C39A45;

  /* Typography */
  --font-heading: 'Lexend', 'Source Sans 3', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(15, 50, 100, 0.07), 0 1px 2px rgba(15, 50, 100, 0.05);
  --shadow-md: 0 12px 32px -8px rgba(15, 50, 100, 0.16);

  /* Layout */
  --container-w: 1200px;
  --container-wide-w: 1440px;
  --header-h: 82px;

  /* Motion */
  --transition-fast: 180ms ease;
  --transition-med: 320ms cubic-bezier(.2,.7,.2,1);
}

#scroll-sentinel { position: absolute; top: 40px; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 112.5%; }
/* Lesbarkeit: Basisschrift 18 px am Computer, 17,6 px am Handy (alle rem-Größen wachsen mit) */
@media (max-width: 640px) { html { font-size: 110%; } }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(2.5rem, 3.2vw, 3.5rem); line-height: 1.15; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--color-text-muted); }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Shared wide container for header + hero — keeps both aligned to the same edge */
.container-wide {
  width: 100%;
  max-width: var(--container-wide-w);
  margin-inline: auto;
  padding-inline: clamp(24px, 6vw, 36px);
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Icons ---------- */
.icon { flex-shrink: 0; }
.icon-lg { color: var(--color-primary); }
.icon-flip { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  transition: border-color var(--transition-fast);
  white-space: nowrap;
  min-height: 48px;
}
.btn-sm { padding: 9px 16px; min-height: 42px; font-size: .86rem; }
.btn-lg { padding-inline: 28px; min-height: 56px; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* Interactive hover: sliding label + expanding dot */
.btn-label,
.btn-label-hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .32s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
}
.btn-label { position: relative; z-index: 2; }
.btn-label-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: translateX(55%);
  opacity: 0;
  pointer-events: none;
}
.btn-dot {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-50%) scale(1);
  transition: left .38s cubic-bezier(.2,.7,.2,1), top .38s cubic-bezier(.2,.7,.2,1),
              width .38s cubic-bezier(.2,.7,.2,1), height .38s cubic-bezier(.2,.7,.2,1),
              border-radius .38s ease, transform .38s cubic-bezier(.2,.7,.2,1),
              opacity .2s ease;
  z-index: 1;
}
.btn:hover .btn-label,
.btn:focus-visible .btn-label { transform: translateX(55%); opacity: 0; }
.btn:hover .btn-label-hover,
.btn:focus-visible .btn-label-hover { transform: translateX(0); opacity: 1; }
.btn:hover .btn-dot,
.btn:focus-visible .btn-dot {
  left: 0; top: 0; width: 100%; height: 100%;
  border-radius: inherit;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary .btn-dot { background: #fff; }
.btn-primary .btn-label-hover { color: var(--color-primary); }
.btn-primary:hover, .btn-primary:focus-visible { border-color: var(--color-primary); }

.btn-primary-light { background: #fff; color: var(--color-primary); }
.btn-primary-light .btn-dot { background: var(--color-primary); }
.btn-primary-light .btn-label-hover { color: #fff; }

.btn-outline-primary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline-primary .btn-dot { background: var(--color-primary); }
.btn-outline-primary .btn-label-hover { color: #fff; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light .btn-dot { background: #fff; }
.btn-outline-light .btn-label-hover { color: var(--color-primary); }

/* Buttons without the split-label markup (e.g. cookie banner) keep a simple hover */
.btn-simple.btn-primary:hover { background: var(--color-primary-500); }
.btn-simple.btn-outline-primary:hover { background: var(--color-primary); color: #fff; }

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5,20,42,.55);
  backdrop-filter: blur(3px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med), height var(--transition-med);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { border-radius: 6px; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.02rem;
  color: #fff;
  white-space: nowrap;
  transition: color var(--transition-med);
}
.brand-name strong { font-weight: 700; }
.site-header.is-scrolled .brand-name { color: var(--color-primary); }

.main-nav ul { display: flex; gap: clamp(10px, 1vw, 18px); flex-shrink: 0; }
.main-nav ul a {
  color: rgba(255,255,255,.78);
  font-weight: 500;
  font-size: .94rem;
  white-space: nowrap;
  position: relative;
  display: inline-block;
  padding: 6px 1px;
  transition: color .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.main-nav ul a::after {
  content: "";
  position: absolute; left: 0; bottom: 0; width: 100%;
  height: 2px; background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.main-nav ul a:hover,
.main-nav ul a:focus-visible { color: #fff; }
.main-nav ul a:hover::after,
.main-nav ul a:focus-visible::after { transform: scaleX(1); }

.nav-word { display: inline-block; white-space: nowrap; }
.nav-char {
  display: inline-block;
  transition: transform .38s cubic-bezier(.34,1.56,.64,1);
}
.main-nav ul a:hover .nav-char,
.main-nav ul a:focus-visible .nav-char { transform: translateY(-4px); }

.site-header.is-scrolled .main-nav ul a { color: var(--color-text-muted); }
.site-header.is-scrolled .main-nav ul a:hover,
.site-header.is-scrolled .main-nav ul a:focus-visible { color: var(--color-primary); }

/* ---------- Nav dropdowns (Umzüge, Entrümpelungen, Transporte) ---------- */
.nav-group { position: relative; }
.nav-group-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px 1px;
  font-family: inherit;
  color: rgba(255,255,255,.78);
  font-weight: 500;
  font-size: .94rem;
  transition: color .25s ease;
}
.site-header.is-scrolled .nav-group-toggle { color: var(--color-text-muted); }
.nav-group-toggle:hover,
.nav-group-toggle:focus-visible,
.nav-group.is-open .nav-group-toggle { color: #fff; }
.site-header.is-scrolled .nav-group-toggle:hover,
.site-header.is-scrolled .nav-group-toggle:focus-visible,
.site-header.is-scrolled .nav-group.is-open .nav-group-toggle { color: var(--color-primary); }
.nav-group-caret { flex-shrink: 0; transition: transform .25s ease; }
.nav-group.is-open .nav-group-caret { transform: rotate(180deg); }

/* Same underline + letter-lift hover as the plain nav links (Über uns,
   Kontakt), so dropdown and non-dropdown items behave identically. */
.nav-group-toggle::after {
  content: "";
  position: absolute; left: 0; bottom: 0; width: 100%;
  height: 2px; background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.nav-group-toggle:hover::after,
.nav-group-toggle:focus-visible::after,
.nav-group.is-open .nav-group-toggle::after { transform: scaleX(1); }
.nav-group-toggle:hover .nav-char,
.nav-group-toggle:focus-visible .nav-char { transform: translateY(-4px); }

.nav-group-panel {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  z-index: 120;
}
.nav-group.is-open .nav-group-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .22s ease, transform .22s ease;
}
.main-nav .nav-group-panel a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.main-nav .nav-group-panel a:hover,
.main-nav .nav-group-panel a:focus-visible { background: var(--color-bg-light); color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; color: #fff;
  white-space: nowrap;
  padding: 10px 2px;
  min-height: 44px;
  transition: color var(--transition-med);
}
.site-header.is-scrolled .header-phone { color: var(--color-primary); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 101;
  background: none; border: none; color: #fff;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-med);
}
.site-header.is-scrolled .nav-toggle { color: var(--color-primary); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(9, 20, 38, .5);
  opacity: 0; pointer-events: none; z-index: 98;
  transition: opacity var(--transition-med);
}
.nav-overlay.is-active { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
/* Header is position:fixed (an overlay, not part of document flow), so the hero itself
   must equal the full viewport height for header+hero to fill exactly the first screen;
   padding-top pushes the visible content below the fixed header band. */
.hero {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 56px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  display: block;
  overflow: hidden;
  background: var(--color-primary-700);
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% center;
}
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(5,20,42,.98) 0%,
    rgba(5,20,42,.92) 24%,
    rgba(5,20,42,.68) 38%,
    rgba(5,20,42,.24) 52%,
    rgba(5,20,42,.04) 68%,
    rgba(5,20,42,0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}
.hero-content {
  width: min(100%, 600px);
  margin: 0;
  text-align: left;
  color: #fff;
}
.eyebrow {
  font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  font-size: .82rem; color: var(--color-primary);
  margin-bottom: 14px; display: block;
}
.eyebrow-light { color: var(--color-accent); }
.hero .eyebrow {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .12em;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(3rem, 4vw, 3.125rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin: 0;
  text-wrap: balance;
}
.hero-carousel {
  display: inline-grid;
  vertical-align: bottom;
  color: var(--color-accent);
}
.hero-carousel-word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.22,.7,.2,1);
  white-space: nowrap;
}
.hero-carousel-word::before { content: attr(data-word); }
.hero-carousel-word.is-active { opacity: 1; transform: translateY(0); }
.hero-carousel-word.is-leaving { opacity: 0; transform: translateY(-14px); }
.hero-carousel-fallback {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel { display: none; }
  .hero-carousel-fallback {
    position: static;
    width: auto; height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    color: var(--color-accent);
  }
}

.hero-sub { color: rgba(255,255,255,.88); font-size: 1.125rem; line-height: 1.6; max-width: 510px; margin: 24px 0 0; }

.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }

/* Trust strip (below hero) */
.trust-strip { background: var(--color-bg-light); border-bottom: 1px solid var(--color-border); }
.trust-strip .container { padding-block: 18px; }
.trust-points { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 960px) {
  .trust-points { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 32px; }
}
.trust-points li {
  display: flex; align-items: center; gap: 8px;
  color: var(--color-text); font-weight: 500; font-size: .95rem;
}
.trust-points .icon { color: var(--color-accent); }

/* Hero form */
.hero-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.hero-form h2 { font-size: 1.3rem; margin-bottom: .2em; }
.hero-form-sub { font-size: .92rem; margin-bottom: 1.4em; }
/* Force light-card colors regardless of a dark section ancestor (id beats .section-dark h2/p) */
#angebot-formular h2 { color: var(--color-primary); }
#angebot-formular .hero-form-sub { color: var(--color-text-muted); }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; margin-bottom: 0; }
.form-grid-2 .form-row { margin-bottom: 16px; }
.form-row label { font-size: .86rem; font-weight: 600; color: var(--color-text); }
.form-row input, .form-row select {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--color-bg-light);
  color: var(--color-text);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  min-height: 48px;
}
.form-row input:focus, .form-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}
.form-row input:invalid[aria-invalid="true"],
.form-row.has-error input, .form-row.has-error select { border-color: #C0392B; }
.error-msg { display: none; font-size: .8rem; color: #C0392B; }
.form-row.has-error .error-msg { display: block; }

.form-row-checkbox { flex-direction: row; align-items: flex-start; gap: 10px; }
.form-row-checkbox input { margin-top: 4px; min-height: auto; width: 18px; height: 18px; accent-color: var(--color-primary); }
.form-row-checkbox label { font-weight: 400; font-size: .84rem; color: var(--color-text-muted); }
.form-row-checkbox label a { color: var(--color-primary); text-decoration: underline; }

.form-status { margin-top: 14px; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form-status.is-success { color: #1E7A4C; }
.form-status.is-error { color: #C0392B; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--color-bg-light); }
.section-dark { background: var(--color-primary); color: #fff; }
.section-dark p { color: rgba(255,255,255,.82); }
.section-dark h2, .section-dark h3 { color: #fff; }

/* Compact "chapter" sections read as thin slivers on large desktop screens —
   let them breathe to roughly one screen without inflating empty padding elsewhere. */
@media (min-width: 1200px) {
  .section-fill {
    min-height: calc(100svh - var(--header-h));
    display: flex;
    align-items: center;
  }
  .section-fill > .container,
  .section-fill > .container-wide {
    width: 100%;
  }
}
@media (max-width: 1199px) {
  .section-fill { min-height: auto; }
}

.section-head { max-width: 680px; margin: 0 0 52px; }
.section-sub { font-size: 1.15rem; }

.lead-text { font-size: 1.25rem; line-height: 1.6; color: var(--color-text); }
.about-grid > .reveal > p:not(.lead-text) { font-size: 1.05rem; line-height: 1.65; }

/* Marker highlight */
.marker-highlight { position: relative; display: inline-block; white-space: nowrap; }
.marker-highlight-mark {
  position: absolute;
  inset: .06em -.12em;
  background: var(--color-accent);
  opacity: .32;
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s cubic-bezier(.22,.7,.2,1);
  z-index: 0;
}
.marker-highlight.is-marked .marker-highlight-mark { transform: scaleX(1); }
.marker-highlight-text { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .marker-highlight-mark { transition: none; transform: scaleX(1); }
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fact-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.fact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.fact-card h3 { font-size: 1.02rem; margin: 14px 0 6px; }
.fact-card p { font-size: .95rem; margin: 0; }

/* Services */
#leistungen .eyebrow { margin-bottom: 22px; }
#leistungen .section-head {
  margin-bottom: clamp(52px, 6vw, 72px);
}
#leistungen h2 {
  font-size: clamp(2.75rem, 3.6vw, 4rem);
  line-height: 1.08;
  max-width: 760px;
}
#leistungen .section-sub {
  margin-top: clamp(26px, 2.4vw, 34px);
  font-size: clamp(1.125rem, 1.25vw, 1.3125rem);
  line-height: 1.55;
  max-width: 720px;
}

/* Drei Leistungsbereiche: ganze Karte führt zur Hauptseite, die Links darunter zu den Unterseiten */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.svc-grid > .reveal:nth-child(2) { transition-delay: 70ms; }
.svc-grid > .reveal:nth-child(3) { transition-delay: 140ms; }
.svc {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 50, 100, .12);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(7, 24, 48, .03), 0 10px 30px rgba(7, 24, 48, .035);
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1), border-color 260ms ease, box-shadow 260ms ease;
}
.svc:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 50, 100, .24);
  box-shadow: 0 2px 4px rgba(7, 24, 48, .04), 0 18px 40px rgba(7, 24, 48, .08);
}
.svc-anchor { position: absolute; top: 0; scroll-margin-top: calc(var(--header-h) + 20px); }
.svc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-primary-100); }
/* Bild füllt immer den Rahmen, egal ob Quer- oder Hochformat */
.svc-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.22, 1, .36, 1); }
.svc:hover .svc-media img { transform: scale(1.04); }
.svc-body { flex: 1; display: flex; flex-direction: column; padding: clamp(24px, 2.2vw, 34px); }
.svc-title { margin: 0 0 12px; font-size: clamp(1.5rem, 1.9vw, 1.8rem); line-height: 1.15; }
.svc-title a { display: inline-flex; align-items: center; gap: 10px; color: var(--color-primary); text-decoration: none; }
/* Ganze Karte klickbar */
.svc-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.svc-title .icon { flex: 0 0 auto; transition: transform 260ms cubic-bezier(.22, 1, .36, 1); }
.svc:hover .svc-title .icon { transform: translateX(5px); }
.svc-title a:focus-visible { outline: none; }
.svc:has(.svc-title a:focus-visible) { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.svc-text { flex-grow: 1; margin: 0; font-size: 1rem; line-height: 1.6; color: var(--color-text-muted); }
.svc-links {
  position: relative; z-index: 1;
  list-style: none; margin: 24px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--color-border);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 11px 18px;
}
.svc-links a {
  display: inline-flex; align-items: flex-start; gap: 7px;
  color: var(--color-primary);
  font-size: .93rem; font-weight: 600; line-height: 1.35;
  text-decoration: none;
}
.svc-links .icon { flex: 0 0 auto; margin-top: .22em; color: var(--color-accent); transition: transform 200ms cubic-bezier(.22, 1, .36, 1); }
.svc-links a:hover span, .svc-links a:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.svc-links a:hover .icon, .svc-links a:focus-visible .icon { transform: translateX(3px); }
.svc-links a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  .svc, .svc-media img, .svc-title .icon, .svc-links .icon { transition: none !important; }
  .svc:hover, .svc:hover .svc-media img, .svc:hover .svc-title .icon { transform: none; }
}

/* Timeline — sequential progress animation */
.timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  opacity: .75;
  transition: opacity .4s ease;
}
.timeline-step.is-reached { opacity: 1; }

.timeline-rail {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.timeline-num {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.15rem;
  position: relative; z-index: 1;
  transform: scale(1);
  transition: transform .35s cubic-bezier(.65,0,.35,1), box-shadow .3s ease;
}
@keyframes timeline-pulse {
  0% { transform: scale(1); }
  55% { transform: scale(1.18); }
  100% { transform: scale(1.08); }
}
.timeline-step.is-current .timeline-num {
  animation: timeline-pulse .38s cubic-bezier(.34,1.56,.64,1);
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(15,50,100,.14);
}

.timeline-connector {
  flex: 1;
  height: 2px;
  margin: 0 10px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}
.timeline-connector-fill {
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .8s cubic-bezier(.65,0,.35,1);
}
.timeline-connector-fill.is-filled {
  transform: scaleX(1);
}

.timeline-text { transition: transform .4s ease; transform: translateY(8px); }
.timeline-step.is-reached .timeline-text { transform: translateY(0); }
.timeline-step h3 { font-size: 1.05rem; margin-bottom: .35em; transition: color .3s ease; }
.timeline-step.is-current h3 { color: var(--color-primary-600); }
.timeline-step p { font-size: .92rem; }

@media (prefers-reduced-motion: reduce) {
  .timeline-step { opacity: 1; }
  .timeline-num { animation: none !important; transform: none !important; box-shadow: none !important; }
  .timeline-connector-fill { transform: scaleX(1) !important; }
  .timeline-text { transform: none; }
}

/* Advantages (dark) — three value-pillar cards, light-on-dark for contrast.
   Distinct from about-facts/service-card: fewer, larger cards, centered
   content, icon in a round tinted badge instead of a plain glyph. */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.pillar-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: clamp(32px, 3vw, 40px) 28px;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -14px rgba(3, 10, 24, .5); }
.pillar-icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-primary-100);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.pillar-card h3 { color: var(--color-primary); font-size: 1.15rem; margin-bottom: 10px; }
.pillar-card p { color: var(--color-text-muted); font-size: .95rem; margin: 0; }

@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

/* ---------- Work gallery (Unsere Arbeit im Überblick) ---------- */
.work-container { width: min(100% - 48px, 1540px); margin-inline: auto; }
#galerie.section-fill { padding-block: clamp(72px, 8vh, 120px); }
#galerie .eyebrow { margin-bottom: 20px; }
#galerie .section-head { margin-bottom: clamp(48px, 6vw, 72px); }
#galerie h2 {
  font-size: clamp(2.75rem, 3.8vw, 4rem);
  line-height: 1.08;
  max-width: 760px;
}
#galerie .section-sub {
  margin-top: clamp(24px, 2.2vw, 32px);
  font-size: clamp(1.125rem, 1.25vw, 1.3125rem);
  line-height: 1.6;
  max-width: 760px;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(200px, auto);
  gap: clamp(18px, 2vw, 28px);
}
.work-item--team { grid-column: span 7; grid-row: span 2; }
.work-item--transporter,
.work-item--moebel { grid-column: span 5; }
.work-item--kartons,
.work-item--montage,
.work-item--raeumung { grid-column: span 4; }

.work-gallery > .reveal:nth-child(1) { transition-delay: 0ms; }
.work-gallery > .reveal:nth-child(2) { transition-delay: 80ms; }
.work-gallery > .reveal:nth-child(3) { transition-delay: 140ms; }
.work-gallery > .reveal:nth-child(4) { transition-delay: 190ms; }
.work-gallery > .reveal:nth-child(5) { transition-delay: 230ms; }
.work-gallery > .reveal:nth-child(6) { transition-delay: 270ms; }

.work-item {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  min-height: 200px;
  margin: 0; padding: 0; border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: clamp(14px, 1.6vw, 20px);
  font-family: inherit;
  text-align: left;
}
.work-item:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}
.work-item picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.work-item__image {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 520ms cubic-bezier(.22, 1, .36, 1);
}
.work-item:hover .work-item__image,
.work-item:focus-visible .work-item__image { transform: scale(1.035); }

.work-item::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 35% 0 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 24, 48, 0) 0%,
    rgba(7, 24, 48, .48) 30%,
    rgba(7, 24, 48, .95) 100%
  );
  pointer-events: none;
  transition: background 320ms ease;
}
.work-item:hover::after,
.work-item:focus-visible::after {
  background: linear-gradient(
    to bottom,
    rgba(7, 24, 48, 0) 0%,
    rgba(7, 24, 48, .55) 30%,
    rgba(7, 24, 48, .98) 100%
  );
}

.work-item__caption {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  padding: clamp(18px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
}
.work-item:hover .work-item__caption,
.work-item:focus-visible .work-item__caption { transform: translateY(-4px); }
.work-item__category {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #D8AD45;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .65);
}
.work-item__category::before {
  content: "";
  width: 16px; height: 2px;
  background: var(--color-accent);
  transition: width 320ms cubic-bezier(.22, 1, .36, 1);
}
.work-item:hover .work-item__category::before,
.work-item:focus-visible .work-item__category::before { width: 26px; }
.work-item__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.25;
}
.work-item--team .work-item__title { font-size: clamp(1.25rem, 1.8vw, 1.7rem); }

@media (prefers-reduced-motion: reduce) {
  .work-item__image, .work-item::after, .work-item__caption, .work-item__category::before {
    transition: none !important;
  }
  .work-item:hover .work-item__image, .work-item:focus-visible .work-item__image { transform: none; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  margin: auto;
  width: min(92vw, 1200px);
  max-height: 88vh;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(7, 24, 48, .86); }
.lightbox[open] { display: flex; }
.lightbox-figure { margin: 0; position: relative; width: 100%; max-height: 88vh; display: flex; flex-direction: column; }
.lightbox-image {
  width: 100%;
  max-height: calc(88vh - 76px);
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #071830;
  display: block;
}
.lightbox-caption {
  padding: 16px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lightbox-caption__category {
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.lightbox-caption__title { font-family: var(--font-heading); font-weight: 700; color: #fff; font-size: 1.1rem; }

.lightbox-close {
  position: absolute; top: -18px; right: -18px;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.lightbox-close:hover { background: var(--color-primary); color: #fff; }
.lightbox-close:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.lightbox-nav {
  position: absolute; top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 180ms ease;
}
.lightbox-nav:hover { background: #fff; }
.lightbox-nav:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.lightbox-nav--prev { left: -20px; }
.lightbox-nav--next { right: -20px; }

@media (max-width: 720px) {
  .lightbox { width: 94vw; }
  .lightbox-close { top: -14px; right: 0; }
  .lightbox-nav--prev { left: -8px; }
  .lightbox-nav--next { right: -8px; }
}

/* ---------- Kundenstimmen / testimonials ---------- */
.testimonials-container { width: 100%; max-width: var(--container-w); margin-inline: auto; padding: 0 24px; box-sizing: border-box; overflow-x: clip; }
#bewertungen.section-fill { padding-block: clamp(72px, 8vh, 120px); }

.testimonials-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.75fr) minmax(560px, 1.25fr);
  grid-template-areas:
    "text  stage"
    "ctrl  stage";
  align-items: center;
  gap: 12px clamp(48px, 6vw, 96px);
}
.testimonials-text { grid-area: text; }
.testimonials-controls { grid-area: ctrl; }
.testimonials-stage { grid-area: stage; }

.testimonials-text .lead-text { max-width: 560px; }
.testimonials-text h2 { max-width: 540px; }
.testimonials-source {
  margin: 10px 0 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* Dot/pill navigation — replaces the old arrow + counter + progress-line controls */
.testimonial-indicators { display: flex; align-items: center; gap: 13px; margin-top: 28px; }
.testimonial-indicator-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.testimonial-indicator-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 999px;
}
.testimonial-indicator {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(15, 50, 100, .18);
  transition: width 320ms cubic-bezier(.4,0,.2,1), background-color 320ms ease, transform 200ms ease;
}
.testimonial-indicator-btn:hover .testimonial-indicator {
  background: rgba(15, 50, 100, .32);
  transform: scale(1.08);
}
.testimonial-indicator-btn[aria-current="true"] .testimonial-indicator {
  width: 42px;
  background: var(--color-primary);
}
.testimonial-indicator-btn[aria-current="true"]:hover .testimonial-indicator { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .testimonial-indicator { transition: none !important; }
  .testimonial-indicator-btn:hover .testimonial-indicator { transform: none !important; }
}

.testimonials-announce {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Card */
.testimonials-stage { width: 100%; min-width: 0; }
.testimonial-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(32px, 4vw, 52px);
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: opacity .26s cubic-bezier(.2,.7,.2,1), transform .26s cubic-bezier(.2,.7,.2,1);
}
.testimonial-quote-icon { color: var(--color-primary); opacity: .12; margin-bottom: 4px; }
.testimonial-stars { display: flex; gap: 4px; color: var(--color-accent); margin-bottom: 18px; }
.testimonial-text {
  font-size: clamp(1.125rem, 1.15vw, 1.3125rem);
  line-height: 1.65;
  color: var(--color-text);
  white-space: pre-line;
  margin: 0;
}
.testimonial-text.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}
.testimonial-text.is-expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.testimonial-more[hidden] { display: none; }
.testimonial-more {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 8px 16px;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: none;
  font-weight: 600;
  font-size: .85rem;
  color: var(--color-primary);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.testimonial-more:hover { background: var(--color-primary); color: #fff; }
.testimonial-more:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.testimonial-divider { border: none; border-top: 1px solid var(--color-border); margin: 26px 0 22px; }

.testimonial-meta { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--color-primary-500), var(--color-primary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
}
.testimonial-name { margin: 0; font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); font-size: 1rem; }
.testimonial-date { margin: 2px 0 0; font-size: .86rem; color: var(--color-text-muted); }

/* Slide transition — content-swap crossfade rather than a stacked deck.
   is-leaving animates the outgoing card away; once content is swapped,
   is-entering-prep snaps it (no transition) to the incoming-from-right
   position, then removing that class animates it back to rest. */
.testimonial-card.is-leaving { opacity: 0; transform: translateX(-22px) scale(.99); }
.testimonial-card.is-entering-prep { opacity: 0; transform: translateX(22px) scale(.99); transition: none; }

@media (prefers-reduced-motion: reduce) {
  .testimonial-card { transition: opacity .2s ease !important; }
  .testimonial-card.is-leaving, .testimonial-card.is-entering-prep { transform: none !important; }
}

/* ---------- Einsatzgebiet / Berlin map ---------- */
.einsatzgebiet-container {
  width: min(100% - 48px, 1540px);
  margin-inline: auto;
}
#einsatzgebiet.section-fill { padding-block: clamp(72px, 8vh, 120px); }

.einsatzgebiet-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.71fr) minmax(580px, 1.29fr);
  align-items: center;
  gap: clamp(48px, 5vw, 88px);
}
.einsatzgebiet-content .btn { margin-top: 20px; }
.einsatzgebiet-content h2 {
  font-size: clamp(2.75rem, 3.5vw, 3.875rem);
  line-height: 1.09;
  max-width: 620px;
}
.einsatzgebiet-content .lead-text {
  font-size: clamp(1.125rem, 1.2vw, 1.3125rem);
  line-height: 1.65;
  max-width: 580px;
}

.einsatzgebiet__map { width: 100%; min-width: 0; justify-self: end; }
.map-stage {
  position: relative;
  width: min(100%, 1000px);
  margin-inline: auto;
  opacity: .85;
  transition: opacity .4s ease;
}
.map-stage.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .map-stage { opacity: 1; transition: none; }
}
/* Aspect-ratio via the classic padding-box technique — sidesteps a Chromium
   sizing quirk where `aspect-ratio` on a grid item inside a flex container
   (our .section-fill sections) collapsed the whole grid track to 50vw. */
.map-stage::before { content: ""; display: block; padding-top: 66.6667%; } /* 1024 / 1536 */
.map-stage__image,
.map-stage__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-stage__image {
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
}
.map-stage__overlay { overflow: visible; }

/* Route lines — three visual states, thin and elegant rather than "Autobahn" style */
.map-route-base { fill: none; stroke: rgba(126, 180, 225, .25); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.map-route-fill {
  fill: none;
  stroke: rgba(74, 157, 224, .65);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: stroke .3s ease, stroke-width .3s ease;
}
.map-route-fill.is-drawing { stroke: #4A9DE0; stroke-width: 8; }
.map-route-fill.is-hovered { stroke: #4A9DE0; }

/* Umland outline */
.map-umland-fill {
  fill: none;
  stroke: #7EB4E1;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.map-umland-fill.is-visible { opacity: .4; transition: opacity .3s ease; }

/* Mobile-only pin badge ("Berlin") centred on the map, with a radar-style
   pulse ring — desktop keeps its full pin/label system, this stays hidden there. */
.map-stage__badge {
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.map-stage__badge-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .45s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.map-stage__badge-inner .icon { color: var(--color-accent); flex-shrink: 0; }
.map-stage__badge-pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  opacity: 0;
}
.map-stage.is-outline-drawn .map-stage__badge-inner { opacity: 1; transform: scale(1); }
.map-stage.is-outline-drawn .map-stage__badge-pulse {
  animation: map-badge-pulse 2.4s ease-out .5s infinite;
}
@keyframes map-badge-pulse {
  0% { opacity: .45; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}
@media (prefers-reduced-motion: reduce) {
  .map-stage__badge-inner { transition: none; }
  .map-stage.is-outline-drawn .map-stage__badge-pulse { animation: none; }
}

/* Markers */
.map-marker { cursor: pointer; }
.map-marker:focus { outline: none; }
.map-marker-ring {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .3s ease;
}
.map-marker-dot {
  fill: var(--color-accent);
  stroke: var(--color-primary);
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.map-marker-dot-inner { fill: #FBF3E1; pointer-events: none; }

/* Transient "just arrived" flourish — plays once, then settles back down */
@keyframes marker-arrive { 0% { transform: scale(1); } 50% { transform: scale(1.17); } 100% { transform: scale(1); } }
@keyframes marker-ring-arrive { 0% { opacity: 0; transform: scale(.8); } 40% { opacity: .6; } 100% { opacity: 0; transform: scale(1.6); } }
.map-marker.is-arriving .map-marker-dot { animation: marker-arrive .45s cubic-bezier(.34,1.56,.64,1); }
.map-marker.is-arriving .map-marker-ring { animation: marker-ring-arrive .6s ease-out; }

.map-marker:hover .map-marker-dot,
.map-marker:focus-visible .map-marker-dot { transform: scale(1.15); }
.map-marker:focus-visible .map-marker-ring { opacity: .8; stroke: var(--color-primary); }

/* Labels */
.map-label-bg {
  fill: rgba(255, 255, 255, .94);
  stroke: rgba(74, 157, 224, .35);
  stroke-width: 1.5;
  opacity: 0;
  transition: opacity .3s ease;
}
.map-label-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 23px;
  fill: var(--color-primary);
  opacity: .7;
  transition: opacity .3s ease, font-weight .2s ease;
}
.map-marker.is-active .map-label-bg { opacity: 1; }
.map-marker.is-active .map-label-text { opacity: 1; }
.map-marker.is-current .map-label-text { font-weight: 700; }
.map-marker:hover .map-label-text,
.map-marker:focus-visible .map-label-text { opacity: 1; }

/* Small nav point traveling along the active route */
.map-nav-dot {
  fill: #4A9DE0;
  stroke: #fff;
  stroke-width: 2.5;
  opacity: 0;
  transition: opacity .25s ease;
}
.map-nav-dot-ring { fill: none; stroke: #4A9DE0; stroke-width: 1.5; opacity: 0; transition: opacity .25s ease; }
.map-nav-dot.is-active,
.map-nav-dot.is-active + .map-nav-dot-ring { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .map-marker-dot, .map-marker-ring, .map-label-text, .map-label-bg,
  .map-route-fill, .map-umland-fill, .map-nav-dot, .map-nav-dot-ring { transition: none !important; }
}

/* Accessible district list — screen-reader reachable everywhere,
   visually shown only where the map can no longer carry all labels (mobile). */
.region-access { margin-top: 40px; }
.region-access-list {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.region-active-announce {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.region-active-caption {
  display: none;
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .92rem;
  color: var(--color-primary);
}

/* CTA */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 56px;
  align-items: center;
}
.cta-intro .btn { margin: 8px 0 22px; }
.cta-note { margin-top: 0; font-size: .9rem; color: rgba(255,255,255,.7); }

/* FAQ — interactive numbered accordion */
.acc-list { max-width: 760px; margin: 0 auto; }
.acc-item { position: relative; }

.acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.acc-num-wrap {
  position: relative;
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.acc-num-circle {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--color-primary);
  transform: scale(0);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.acc-item:hover .acc-num-circle { transform: scale(.85); opacity: .12; }
.acc-item.is-active .acc-num-circle { transform: scale(1); opacity: 1; }

.acc-num {
  position: relative; z-index: 1;
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--color-text-muted);
  transition: color .25s ease;
}
.acc-item.is-active .acc-num { color: #fff; }

.acc-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color .25s ease, transform .25s cubic-bezier(.34,1.2,.64,1);
}
.acc-item:hover .acc-title,
.acc-item.is-active .acc-title { color: var(--color-primary); transform: translateX(4px); }

.acc-indicator {
  margin-left: auto;
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.acc-indicator svg { color: var(--color-primary); opacity: .4; transition: opacity .25s ease; }
.acc-item:hover .acc-indicator svg,
.acc-item.is-active .acc-indicator svg { opacity: 1; }
.acc-item.is-active .acc-indicator { transform: rotate(45deg); }

.acc-underline { position: relative; height: 1px; background: var(--color-border); }
.acc-underline-fill {
  position: absolute; inset: 0;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.acc-item:hover .acc-underline-fill { transform: scaleX(.3); }
.acc-item.is-active .acc-underline-fill { transform: scaleX(1); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.2,.7,.2,1);
}
.acc-item.is-active .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; min-height: 0; }
.acc-panel-inner p {
  margin: 0;
  padding: 2px 12px 26px 64px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ---------- Footer ---------- */
/* Footer: gerade Kante, großes Logo rechts, eine Linkzeile mit runden Kontakt-Symbolen */
.site-footer {
  position: relative;
  background: var(--color-primary-700);
  color: rgba(255,255,255,.72);
  padding: clamp(44px, 5vw, 64px) 0 30px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.3);
}
.footer-nap { font-style: normal; display: flex; flex-direction: column; gap: 4px; font-size: .95rem; line-height: 1.5; }
.footer-nap a { color: rgba(255,255,255,.72); transition: color var(--transition-fast); }
.footer-nap a:hover, .footer-nap a:focus-visible { color: #fff; }
.footer-nap .footer-phone { margin-bottom: 4px; font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; color: #fff; letter-spacing: -.01em; }
.footer-logo { display: inline-flex; align-items: center; gap: 14px; color: #fff; flex-shrink: 0; }
.footer-logo img { width: 48px; height: auto; display: block; }
.footer-logo span { font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1; letter-spacing: -.012em; white-space: nowrap; }
.footer-logo strong { font-weight: 700; }
.footer-bottom-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 26px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px; }
.footer-links a, .footer-link-btn {
  color: #fff; font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1.4;
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px;
  transition: text-decoration-color var(--transition-fast);
}
.footer-links a:hover, .footer-link-btn:hover { text-decoration-color: currentColor; }
.footer-links a:focus-visible, .footer-link-btn:focus-visible, .footer-logo:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 3px; }
.footer-social { display: flex; gap: 12px; }
.footer-round {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--color-primary-700);
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1), background var(--transition-fast);
}
.footer-round svg { width: 20px; height: 20px; }
.footer-round:hover { transform: translateY(-2px); background: var(--color-primary-100); }
.footer-round:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.footer-copy { margin: 24px 0 0; font-size: .8rem; color: rgba(255,255,255,.5); }
@media (max-width: 640px) {
  .footer-top { flex-direction: column-reverse; align-items: stretch; gap: 26px; }
  .footer-logo { align-self: flex-end; gap: 11px; }
  .footer-logo img { width: 40px; }
  .footer-logo span { font-size: clamp(1rem, 5.2vw, 1.3rem); }
  .footer-bottom-row { flex-direction: column; align-items: stretch; gap: 28px; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links a, .footer-link-btn { font-size: 1.08rem; }
  .footer-social { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .footer-round { transition: none; } .footer-round:hover { transform: none; } }

/* ---------- Phone hint tooltip ---------- */
.phone-hint-wrap { position: relative; display: flex; }
.phone-hint {
  --hint-blue: #2A62C4;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: max-content; max-width: 300px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 44px -16px rgba(7,24,48,.45), 0 2px 8px rgba(7,24,48,.1);
  padding: 13px 44px 13px 18px;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-12px) scale(.9);
  transform-origin: 50% 0;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.phone-hint::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  width: 14px; height: 14px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 3px 0 0 0;
}
.phone-hint.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  transition: opacity .3s ease, transform .6s cubic-bezier(.2,1.25,.35,1);
}
.phone-hint-link { display: block; }
.phone-hint-eyebrow {
  display: block; margin-bottom: 3px;
  font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--hint-blue);
}
.phone-hint-link strong { display: block; font-family: var(--font-heading); font-size: 1.02rem; line-height: 1.3; font-weight: 600; color: var(--color-primary); }
.phone-hint-link:hover strong, .phone-hint-link:focus-visible strong { text-decoration: underline; text-underline-offset: 3px; }
.phone-hint-close {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 50%; cursor: pointer;
  color: var(--color-text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.phone-hint-close:hover, .phone-hint-close:focus-visible { background: var(--color-bg-light); color: var(--color-text); }

/* Telefonsymbol: blauer Kreis wächst beim Einblenden und pocht danach */
.phone-icon-badge {
  position: relative; display: grid; place-items: center;
  width: 34px; height: 34px; margin: -8px 0 -8px -6px; border-radius: 50%;
  background: transparent; color: inherit;
  transition: background .35s ease, transform .5s cubic-bezier(.2,1.4,.4,1), color .35s ease;
}
.phone-icon-badge::before, .phone-icon-badge::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #4C86E6; opacity: 0; pointer-events: none;
}
.phone-hint-wrap.is-hinting .phone-icon-badge { background: #2A62C4; color: #fff; transform: scale(1.06); animation: badge-beat 1.8s ease-in-out .5s infinite; }
.phone-hint-wrap.is-hinting .phone-icon-badge::before { animation: badge-ring 1.8s ease-out .5s infinite; }
.phone-hint-wrap.is-hinting .phone-icon-badge::after { animation: badge-ring 1.8s ease-out 1.1s infinite; }
@keyframes badge-beat { 0%, 100% { transform: scale(1.06); } 12% { transform: scale(1.2); } 26% { transform: scale(1.06); } 38% { transform: scale(1.16); } 55% { transform: scale(1.06); } }
@keyframes badge-ring { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .phone-hint, .phone-hint.is-visible { transition: opacity .2s ease; transform: translateX(-50%); }
  .mobile-call-bar .phone-hint, .mobile-call-bar .phone-hint.is-visible { transform: none; }
  .phone-hint-wrap.is-hinting .phone-icon-badge, .phone-hint-wrap.is-hinting .phone-icon-badge::before,
  .phone-hint-wrap.is-hinting .phone-icon-badge::after, .mobile-call-bar.is-hinting .call-icon-ring::before,
  .mobile-call-bar.is-hinting .call-icon-ring::after { animation: none; }
}

/* ---------- Mobile call bar ---------- */
.mobile-call-bar { display: none; }
@media (max-width: 780px) {
  .mobile-call-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 190;
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -6px 20px rgba(15,50,100,.12);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) 14px;
  }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .cookie-banner { bottom: calc(66px + 12px + env(safe-area-inset-bottom)); }
  /* The sticky call bar takes over the phone CTA role on mobile */
  .phone-hint-wrap { display: none; }
}
.mobile-call-bar__call,
.mobile-call-bar__quote {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .88rem;
  white-space: nowrap;
}
.mobile-call-bar__call { background: var(--color-primary); color: #fff; }
.mobile-call-bar__quote { background: var(--color-bg-light); color: var(--color-primary); border: 1.5px solid var(--color-primary); }
/* Pfeil und Ursprung zeigen auf die Mitte des Anrufen-Buttons (Leiste: Anrufen | WhatsApp 46px | Angebot) */
.mobile-call-bar .phone-hint {
  top: auto; bottom: calc(100% + 14px);
  left: 14px; transform: translateY(12px) scale(.9);
  transform-origin: calc(25vw - 22px) 100%;
  max-width: calc(100vw - 28px);
}
.mobile-call-bar .phone-hint.is-visible { transform: translateY(0) scale(1); }
.mobile-call-bar .phone-hint::before {
  top: auto; bottom: -6px; left: calc(25vw - 30px);
  border-radius: 0 0 3px 0;
}
.call-icon-ring { position: relative; display: grid; place-items: center; width: 22px; height: 22px; }
.call-icon-ring::before, .call-icon-ring::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85); opacity: 0; pointer-events: none;
}
.mobile-call-bar.is-hinting .mobile-call-bar__call .call-icon-ring { animation: badge-beat 1.8s ease-in-out .5s infinite; }
.mobile-call-bar.is-hinting .call-icon-ring::before { animation: call-ring 1.8s ease-out .5s infinite; }
.mobile-call-bar.is-hinting .call-icon-ring::after { animation: call-ring 1.8s ease-out 1.1s infinite; }
@keyframes call-ring { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- WhatsApp ---------- */
:root { --wa-green: #25D366; --wa-green-dark: #1DA851; }

/* Handy: quadratischer Button in der Mitte der unteren Leiste */
.mobile-call-bar__wa {
  position: relative; flex: 0 0 46px;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--wa-green); color: #fff;
  box-shadow: 0 4px 12px -4px rgba(29,168,81,.6);
  animation: wa-pop .6s cubic-bezier(.2,1.4,.4,1) .4s both;
}
.mobile-call-bar__wa svg { animation: wa-wiggle 1s ease-in-out 3s 3; }
.mobile-call-bar__wa::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--wa-green); opacity: 0; pointer-events: none;
  animation: wa-ring 2s ease-out 3s 3;
}
.mobile-call-bar__wa:active { background: var(--wa-green-dark); }
@media (max-width: 350px) { .mobile-call-bar__call, .mobile-call-bar__quote { font-size: .8rem; } }

/* Computer: runder Button unten rechts mit Sprechblase */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 180;
  display: flex; align-items: center; justify-content: flex-end;
  animation: wa-pop .7s cubic-bezier(.2,1.4,.4,1) 1.2s both;
}
.wa-fab__icon {
  position: relative; flex: 0 0 60px;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa-green); color: #fff;
  box-shadow: 0 12px 28px -8px rgba(29,168,81,.65), 0 2px 6px rgba(7,24,48,.12);
  transition: background var(--transition-fast), transform .4s cubic-bezier(.2,1.4,.4,1);
}
.wa-fab__icon::before, .wa-fab__icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa-green); opacity: 0; pointer-events: none;
}
/* Einmal pro Besuch (main.js setzt .is-greeting): Wellen, Wackeln und Sprechblase */
.wa-fab.is-greeting .wa-fab__icon::before { animation: wa-ring 2.4s ease-out .3s 3; }
.wa-fab.is-greeting .wa-fab__icon::after { animation: wa-ring 2.4s ease-out .9s 3; }
.wa-fab.is-greeting .wa-fab__icon svg { animation: wa-wiggle 1s ease-in-out .3s 3; }
.wa-fab__label {
  position: relative; margin-right: 14px;
  padding: 11px 16px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 18px 36px -14px rgba(7,24,48,.4), 0 2px 8px rgba(7,24,48,.08);
  font-family: var(--font-heading); font-size: .92rem; font-weight: 600; line-height: 1.25;
  color: var(--color-primary); white-space: nowrap;
  opacity: 0; visibility: hidden;
  transform: translateX(12px) scale(.9); transform-origin: 100% 50%;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.wa-fab__label small {
  display: block; margin-bottom: 2px;
  font-family: var(--font-body); font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--wa-green-dark);
}
.wa-fab__label::after {
  content: ""; position: absolute; top: 50%; right: -6px;
  width: 12px; height: 12px; background: #fff; border-radius: 0 3px 0 0;
  transform: translateY(-50%) rotate(45deg);
}
.wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label, .wa-fab.is-greeting .wa-fab__label {
  opacity: 1; visibility: visible; transform: translateX(0) scale(1);
  transition: opacity .3s ease, transform .55s cubic-bezier(.2,1.25,.35,1);
}
.wa-fab:hover .wa-fab__icon, .wa-fab:focus-visible .wa-fab__icon { background: var(--wa-green-dark); transform: scale(1.08); }
.wa-fab:focus-visible { outline: none; }
.wa-fab:focus-visible .wa-fab__icon { outline: 3px solid var(--color-primary); outline-offset: 3px; }
@media (max-width: 780px) { .wa-fab { display: none; } }

@keyframes wa-pop { 0% { opacity: 0; transform: scale(.3) translateY(20px); } 100% { opacity: 1; transform: none; } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes wa-wiggle { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-14deg); } 30% { transform: rotate(11deg); } 45% { transform: rotate(-7deg); } 60% { transform: rotate(4deg); } 75% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) {
  .mobile-call-bar__wa, .mobile-call-bar__wa::before, .mobile-call-bar__wa svg, .wa-fab, .wa-fab.is-greeting .wa-fab__icon::before, .wa-fab.is-greeting .wa-fab__icon::after, .wa-fab.is-greeting .wa-fab__icon svg { animation: none; }
  .wa-fab__label, .wa-fab:hover .wa-fab__label, .wa-fab.is-greeting .wa-fab__label { transition: opacity .2s ease; transform: none; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px;
  max-width: 720px; margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px 28px;
  z-index: 200;
  border: 1px solid var(--color-border);
}
.cookie-banner-inner p { font-size: .88rem; margin-bottom: 16px; }
.cookie-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Horizontal entrance for the testimonial card — opacity + translateX only */
.reveal-side { opacity: 0; transform: translateX(32px) scale(.98); transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); }
.reveal-side.is-visible { opacity: 1; transform: translateX(0) scale(1); }

/* Footer columns: blur-up fade-in, staggered per column */
.reveal-blur {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-8px);
  transition: opacity .8s ease, transform .8s ease, filter .8s ease;
}
.reveal-blur.is-visible { opacity: 1; filter: blur(0); transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-blur { opacity: 1; filter: none; transform: none; transition: none; }
  .reveal-side { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: 1fr; gap: 24px; }
  .svc { flex-direction: row; }
  .svc-media { flex: 0 0 42%; aspect-ratio: auto; min-height: 300px; }

  /* Tablet: main image spans both columns, the rest fall into a plain 2-col flow */
  .work-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .work-item { height: auto; }
  .work-item--team { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 9; }
  .work-item--transporter,
  .work-item--moebel,
  .work-item--kartons,
  .work-item--montage,
  .work-item--raeumung { grid-column: span 1; aspect-ratio: 4 / 3; }
}

/* Einsatzgebiet switches to one column earlier than the site's other grids —
   its minmax() floors (text + map) plus gap no longer fit a two-column row
   once the viewport drops much below ~1100px. */
@media (max-width: 1100px) {
  .einsatzgebiet-grid { grid-template-columns: 1fr; gap: 40px; }
  .einsatzgebiet__map { justify-self: stretch; }
  .map-stage { max-width: 720px; }
  .einsatzgebiet-content h2, .einsatzgebiet-content .lead-text { max-width: none; }
}

/* Testimonials: same minmax-floor-plus-gap overflow risk as the map grid above —
   switch to one column (text → controls → card, matching the mobile order) before
   the two-column row runs out of room. */
@media (max-width: 1040px) {
  .testimonials-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "stage" "ctrl";
    gap: 32px;
  }
  .testimonials-text h2, .testimonials-text .lead-text { max-width: none; }
  .testimonial-card { max-width: 100%; }
  .testimonial-indicators { justify-content: center; margin-top: 8px; }
}

@media (max-width: 960px) {
  .hero-form-wrap { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline { flex-direction: column; gap: 0; }
  .timeline-step { flex-direction: row; gap: 20px; }
  .timeline-rail { flex-direction: column; align-items: center; margin-bottom: 0; }
  .timeline-connector {
    width: 2px; height: auto; flex: 1;
    margin: 8px 0; min-height: 28px;
  }
  .timeline-connector-fill { transform: scaleY(0); transform-origin: top center; }
  .timeline-connector-fill.is-filled { transform: scaleY(1); }
  .timeline-text { padding-bottom: 32px; }
  .timeline-step:last-child .timeline-text { padding-bottom: 0; }

  @media (prefers-reduced-motion: reduce) {
    .timeline-connector-fill { transform: scaleY(1) !important; }
  }
}

/* Tablet: text column needs more breathing room from the photo — widen the dark zone slightly */
@media (max-width: 1024px) {
  .hero-content { width: 100%; max-width: 540px; }
  .hero h1 { font-size: clamp(2.875rem, 5vw, 3.375rem); }
  .hero-bg::before {
    background: linear-gradient(90deg,
      rgba(5,20,42,.98) 0%,
      rgba(5,20,42,.93) 28%,
      rgba(5,20,42,.76) 46%,
      rgba(5,20,42,.4) 62%,
      rgba(5,20,42,.12) 78%,
      rgba(5,20,42,0) 96%);
  }
}

@media (max-width: 1279px) {
  /* Full-screen menu overlay in brand navy, large uppercase links divided
     by hairlines — the header itself turns solid navy while it's open so
     logo + close button read as one continuous surface with the menu. */
  .main-nav {
    position: fixed;
    inset: 0;
    height: 100dvh;
    width: 100%;
    background: var(--color-primary);
    padding: 110px clamp(24px, 8vw, 40px) 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-med);
    z-index: 1;
  }
  .main-nav.is-open { transform: translateX(0); }
  /* main-nav is nested inside .site-header, so its z-index is only scoped
     against its header siblings, not the page — without this, the
     full-bleed overlay paints over the logo and close button. */
  .header-inner > .brand,
  .header-inner > .header-actions { position: relative; z-index: 2; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li { border-top: 1px solid rgba(255,255,255,.2); }
  .main-nav ul li:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
  .main-nav ul a {
    color: #fff;
    display: block;
    padding: 19px 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: .01em;
  }
  .main-nav ul a::after { display: none; }

  /* Nav groups become expandable accordion sections within the full-screen menu */
  .nav-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    padding: 19px 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: .01em;
  }
  .nav-group-toggle::after { display: none; }
  .nav-group-caret { color: rgba(255,255,255,.55); }
  .nav-group-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s ease;
  }
  .nav-group.is-open .nav-group-panel { max-height: 640px; transform: none; }
  .main-nav .nav-group-panel a {
    display: block;
    padding: 14px 0 14px 4px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.75);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0;
    white-space: normal;
  }
  .main-nav .nav-group-panel a:hover,
  .main-nav .nav-group-panel a:focus-visible { background: none; color: #fff; }

  .site-header:has(.main-nav.is-open) {
    background: var(--color-primary);
    border-bottom-color: transparent;
    box-shadow: none;
  }
  .site-header:has(.main-nav.is-open) .brand-name { color: #fff; }
  .site-header:has(.main-nav.is-open) .nav-toggle { color: #fff; }
  /* Beats ".site-header.is-scrolled .main-nav ul a" (desktop's scrolled-state
     link color), which otherwise leaks in and greys out the open full-screen menu. */
  .site-header.is-scrolled:has(.main-nav.is-open) .main-nav ul a,
  .site-header.is-scrolled:has(.main-nav.is-open) .nav-group-toggle { color: #fff; }

  .nav-toggle { display: flex; }
  .header-phone .header-phone-number { display: none; }
  .header-actions { gap: 10px; }
  .header-actions > a.btn { display: none; }
  .btn-sm { padding: 10px 14px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-name { font-size: .92rem; }
  @media (max-width: 400px) { .brand-name { font-size: .8rem; } .brand { gap: 8px; } .brand-logo { width: 34px; height: 34px; } }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-facts { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* Mobile hero: no photo, just a solid-navy content block below the
     header. The desktop full-bleed image-with-overlaid-text was tried
     with a contained photo up top first, but a text-only hero was
     chosen instead — cleaner and fits above the fold without scrolling. */
  .hero {
    display: block;
    min-height: auto;
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 40px;
    background: var(--color-primary-700);
    overflow: visible;
  }
  .hero-bg { display: none; }
  #einsatzgebiet.section-fill { min-height: auto; padding-block: 72px; }
  /* Mobile: plain, minimal map — no route lines/animation, no district-name
     list, just a bigger full-bleed image with the location pins on top. */
  .einsatzgebiet-container { width: 100%; }
  .einsatzgebiet-grid { padding-inline: 24px; }
  .einsatzgebiet__map { width: calc(100% + 48px); margin-inline: -24px; }
  .map-stage { max-width: none; overflow: hidden; }
  /* The source artwork has a lot of empty canvas around the actual map —
     crop in on it (matches the SVG viewBox override in main.js) so the
     bigger mobile map shows more map and less empty space. */
  .map-stage::before { padding-top: 60.137%; } /* 703 / 1169 */
  .map-stage__image {
    width: 131.4%;
    height: auto;
    max-width: none;
    left: -13%;
    top: -15.93%;
    right: auto;
    bottom: auto;
  }
  /* Mobile drops pins and routes entirely — the outline draw + labels below
     are the whole story here, not a supporting backdrop for markers. */
  .map-routes, .map-nav-dot, .map-nav-dot-ring, .map-markers { display: none; }
  .map-umland-fill { stroke-width: 5px; }
  .map-umland-fill.is-visible { opacity: .85; }
  .map-stage__badge { display: block; }
  .svc { flex-direction: column; }
  .svc-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  #galerie.section-fill { min-height: auto; padding-block: 64px; }
  .work-gallery { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 20px; }
  .work-item { grid-column: span 1 !important; grid-row: span 1 !important; height: auto; }
  .work-item--team { aspect-ratio: 16 / 10; }
  .work-item--transporter,
  .work-item--moebel,
  .work-item--kartons,
  .work-item--montage,
  .work-item--raeumung { aspect-ratio: 4 / 3; }
  .work-item { border-radius: var(--radius-md); }
  #bewertungen.section-fill { min-height: auto; padding-block: 64px; }
  .testimonial-card { padding: 28px 24px; }
  .testimonial-text { font-size: 1.0625rem; line-height: 1.6; }
  .testimonial-text.is-clamped { -webkit-line-clamp: 5; }
  .region-active-caption { display: block; }
  .map-label-text, .map-label-bg { opacity: 0 !important; }
  .map-marker:focus-visible .map-label-text,
  .map-marker:focus-visible .map-label-bg { opacity: 1 !important; }
  /* Slightly heavier weight so pins stay legible at a glance on small screens */
  .map-marker-dot { r: 17px; }
  .map-marker-ring { r: 22px; }
  .hero-inner {
    display: block;
    height: auto;
  }
  .hero-content { width: 100%; max-width: 100%; }
  .hero h1 { font-size: clamp(2.125rem, 7.4vw, 2.5rem); }
  /* Primary CTA needs to flip to a light button on the new solid-navy
     block — the desktop navy-on-photo button would vanish on navy-on-navy. */
  .hero .btn-primary { background: #fff; color: var(--color-primary); }
  .hero .btn-primary .btn-dot { background: var(--color-primary); }
  .hero .btn-primary .btn-label-hover { color: #fff; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  h1 { font-size: 2rem; }
  .hero-form-wrap { padding: 24px; }
  .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .cta-intro .btn { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .region-list ul { grid-template-columns: 1fr; }
  .acc-header { gap: 14px; }
  .acc-title { font-size: 1.02rem; }
  .acc-panel-inner p { padding-left: 60px; padding-right: 4px; }
  .cookie-banner { left: 12px; right: 12px; bottom: calc(66px + 12px + env(safe-area-inset-bottom)); padding: 20px; }
  .cookie-banner-actions { flex-direction: column; }
  .cookie-banner-actions .btn { width: 100%; }
}

/* Formular: Telefon/E-Mail als Paar (eine Angabe genügt) */
.form-pair { margin-bottom: 16px; }
.form-pair .form-grid-2 .form-row { margin-bottom: 8px; }
.form-pair.has-error input { border-color: #C0392B; }
.form-pair.has-error .error-msg { display: block; }
.form-hint { margin: 2px 0 0; font-size: .8rem; color: var(--color-text-muted); }
.opt-tag { font-weight: 400; color: var(--color-text-muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#angebot-formular .form-hint { color: var(--color-text-muted); }
.form-row-checkbox { flex-wrap: wrap; }
.form-row-checkbox label { flex: 1 1 0; min-width: 0; }
.form-row-checkbox .error-msg { flex-basis: 100%; }

.places-grid.has-single { grid-template-columns: 1fr; }
.form-row[hidden] { display: none; }

/* Lange Wörter (z. B. "Haushaltsauflösung") brechen statt zu überlaufen */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 400px) { h1, h2, h3 { hyphens: auto; } }

/* Mehrzeiliges Textfeld im Anfrageformular */
.form-row textarea {
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 12px 14px; background: var(--color-bg-light); color: var(--color-text);
  font: inherit; resize: vertical; min-height: 110px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.form-row textarea:focus { outline: none; border-color: var(--color-primary); background: #fff; }
