/* ==========================================================================
   Web Maestro – Design System
   Schriften: ausschließlich serifenlos (Inter, lokal eingebunden)
   ========================================================================== */

/* --- Fonts (lokal gehostet, keine Verbindung zu Google) ------------------ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2');
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Farben */
  --navy-900: #0b1626;
  --navy-800: #102138;
  --navy-700: #16325c;
  --navy-600: #1d4177;
  --blue-500: #2a6bc4;
  --blue-100: #e8f0fb;

  --gold-600: #b8842f;
  --gold-500: #d3a04a;
  --gold-100: #fbf3e4;

  --ink: #101828;
  --body: #475467;
  --muted: #667085;
  --line: #e4e7ec;
  --line-soft: #eef1f5;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --surface-deep: var(--navy-900);

  --ok: #0f7b5f;

  /* Typografie */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1: clamp(1.14rem, 1.07rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.22rem + 0.62vw, 1.72rem);
  --step-3: clamp(1.62rem, 1.38rem + 1.15vw, 2.3rem);
  --step-4: clamp(1.95rem, 1.5rem + 2.1vw, 3.1rem);
  --step-5: clamp(2.25rem, 1.6rem + 3.1vw, 4rem);

  /* Raster & Abstände */
  --wrap: 1180px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  /* Radien & Schatten */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06),
    0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 6px -2px rgba(16, 24, 40, 0.04),
    0 12px 16px -4px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 8px 8px -4px rgba(16, 24, 40, 0.03),
    0 20px 24px -4px rgba(16, 24, 40, 0.1);
  --shadow-xl: 0 24px 48px -12px rgba(16, 24, 40, 0.18);

  --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
picture {
  max-width: 100%;
  display: block;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
  line-height: 1.25;
}
h4 {
  font-size: var(--step-1);
  line-height: 1.35;
}

p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--navy-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t);
}

a:hover {
  color: var(--blue-500);
}

ul,
ol {
  margin: 0 0 1.15em;
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.4em;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

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

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

/* --- Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--alt {
  background: var(--surface-alt);
}

.section--deep {
  background: var(--surface-deep);
  color: rgba(255, 255, 255, 0.72);
}

.section--deep h2,
.section--deep h3,
.section--deep h4 {
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-700);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --- Typo-Bausteine ------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.eyebrow--light {
  color: var(--gold-500);
}

.eyebrow--center {
  justify-content: center;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--body);
}

.section-head {
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section--deep .lead,
.section--deep .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-700);
  --btn-fg: #fff;
  --btn-bd: var(--navy-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t),
    color var(--t), border-color var(--t);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex: none;
  transition: transform var(--t);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--gold {
  --btn-bg: var(--gold-500);
  --btn-bd: var(--gold-500);
  --btn-fg: var(--navy-900);
}

.btn--gold:hover {
  --btn-bg: #c9933d;
  --btn-bd: #c9933d;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-700);
  --btn-bd: var(--line);
}

.btn--ghost:hover {
  --btn-bd: var(--navy-700);
  --btn-bg: var(--surface-alt);
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.35);
}

.btn--ghost-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.1);
  --btn-bd: rgba(255, 255, 255, 0.6);
}

.btn--sm {
  padding: 0.65rem 1.25rem;
  font-size: var(--step--1);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-row--center {
  justify-content: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: none;
}

.link-arrow svg {
  transition: transform var(--t);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --- Header -------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}

.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(16, 24, 40, 0.05);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 0.55rem 0.95rem;
  border-radius: var(--r-full);
  color: var(--body);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t), background var(--t);
}

.nav__link:hover {
  color: var(--navy-700);
  background: var(--surface-alt);
}

.nav__link[aria-current='page'] {
  color: var(--navy-700);
  font-weight: 600;
}

.nav__link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header__phone svg {
  color: var(--gold-600);
}

.header__phone:hover {
  color: var(--navy-700);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--t), opacity var(--t);
}

.burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Standardmäßig ausgeblendet; die Media Query unten schaltet sie frei.
   Diese Regel muss vor der Media Query stehen, sonst überschreibt sie sie. */
.nav__mobile-cta {
  display: none;
}

@media (max-width: 960px) {
  .header__bar {
    min-height: 68px;
  }

  .brand img {
    height: 28px;
  }

  .burger {
    display: flex;
  }

  .header__phone,
  .header__cta .btn {
    display: none;
  }

  /* Hinweis: .header setzt backdrop-filter und bildet damit den
     Bezugsrahmen auch für fixierte Kinder. Das Menü wird deshalb absolut
     unterhalb der Kopfzeile verankert und erhält eine explizite Höhe. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.25rem var(--gutter) 2.5rem;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--t), visibility var(--t);
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__link {
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
  }

  .nav__link:hover {
    background: transparent;
  }

  .nav__link[aria-current='page']::after {
    display: none;
  }

  .nav__link[aria-current='page'] {
    color: var(--navy-700);
  }

  .nav__mobile-cta {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.75rem;
  }
}


/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(170deg, #fdfefe 0%, var(--surface-alt) 62%, #eef3f9 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -22%;
  right: -12%;
  width: min(760px, 70vw);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(42, 107, 196, 0.14) 0%,
    rgba(42, 107, 196, 0) 68%
  );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -14%;
  width: min(620px, 62vw);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(211, 160, 74, 0.16) 0%,
    rgba(211, 160, 74, 0) 68%
  );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  margin-bottom: 1.15rem;
}

.hero__title em {
  font-style: normal;
  color: var(--navy-700);
}

.hero__text {
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero__actions {
  margin-top: 2rem;
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.4rem;
  margin-top: 1.75rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.hero__note span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__note svg {
  color: var(--ok);
  flex: none;
}

.hero__media {
  position: relative;
}

.hero__media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  object-position: center;
  /* Nahe am 3:2-Format des Fotos, damit kaum beschnitten wird */
  aspect-ratio: 4 / 3;
}

.hero__badge {
  position: absolute;
  left: -1.5rem;
  bottom: -1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.35rem;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}

.hero__badge-num {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy-700);
  letter-spacing: -0.03em;
}

.hero__badge-label {
  font-size: var(--step--1);
  line-height: 1.3;
  color: var(--muted);
  max-width: 9rem;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  /* Überschrift und Handlungsaufforderung zuerst, Bild danach */
  .hero__media {
    max-width: 560px;
  }

  .hero__media img {
    aspect-ratio: 16 / 11;
  }

  .hero__badge {
    left: auto;
    right: 1rem;
    bottom: -1.25rem;
    padding: 0.85rem 1.1rem;
  }

  .hero__text {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero__badge {
    position: static;
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
  }
}

/* Seiten-Hero (Unterseiten) */
.page-hero {
  position: relative;
  padding-block: clamp(3.25rem, 7vw, 5.5rem) clamp(2.75rem, 6vw, 4.5rem);
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: min(680px, 72vw);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(42, 107, 196, 0.34) 0%,
    rgba(42, 107, 196, 0) 65%
  );
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -55%;
  left: -6%;
  width: min(520px, 60vw);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(211, 160, 74, 0.22) 0%,
    rgba(211, 160, 74, 0) 66%
  );
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  max-width: 20ch;
}

.page-hero p {
  max-width: 44rem;
  font-size: var(--step-1);
  line-height: 1.55;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li + li::before {
  content: '/';
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

/* --- Karten & Raster ----------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.85rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

/* Unter ~1120px passen vier Spalten nicht mehr nebeneinander */
@media (max-width: 1120px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.1rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

/* Die gesamte Kachel ist ein Link – Inhalt darf nicht unterstrichen werden */
a.card,
a.card:hover {
  text-decoration: none;
  color: inherit;
}

.card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d5dde8;
}

/* Pfeil-Hinweis auf der Kachel folgt dem Hover der ganzen Kachel */
a.card:hover .link-arrow {
  color: var(--blue-500);
}

a.card:hover .link-arrow svg {
  transform: translateX(4px);
}

.card__num {
  display: inline-block;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-600);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.35rem;
  border-radius: var(--r-md);
  background: var(--blue-100);
  color: var(--navy-700);
}

.card h3 {
  margin-bottom: 0.65rem;
}

.card p {
  margin-bottom: 1.35rem;
  font-size: 0.99rem;
}

.card .link-arrow {
  margin-top: auto;
}

/* --- Kennzahlen ---------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* Verhindert eine verwaiste vierte Zelle bei mittleren Breiten */
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat {
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 1.5rem;
  background: var(--navy-900);
  text-align: center;
}

.stat__num {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}

.stat__num span {
  color: var(--gold-500);
}

.stat__label {
  display: block;
  margin-top: 0.7rem;
  font-size: var(--step--1);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.66);
}

/* --- Split (Text + Bild) ------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}

.split__media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3.2;
}

.split--reverse .split__media {
  order: 2;
}

@media (max-width: 800px) {
  .split--reverse .split__media {
    order: 0;
  }
}

.checklist {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.99rem;
}

.checklist svg {
  flex: none;
  margin-top: 0.3rem;
  color: var(--ok);
}

.checklist--light li {
  color: rgba(255, 255, 255, 0.78);
}

.checklist--light svg {
  color: var(--gold-500);
}

/* --- Leistungen (Detail) ------------------------------------------------- */
.service {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.service:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.service__media {
  position: relative;
}

.service__media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.service:nth-of-type(even) .service__media {
  order: 2;
}

@media (max-width: 800px) {
  .service:nth-of-type(even) .service__media {
    order: 0;
  }
}

.service__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.1rem;
  padding-inline: 0.7rem;
  border-radius: var(--r-full);
  background: var(--navy-700);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --- Prozess ------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  counter-reset: step;
}

/* Vierteilige Raster: 2x2 statt 3+1 mit verwaister Zelle.
   Unter ~1120px reichen vier Spalten nicht mehr nebeneinander. */
@media (max-width: 1120px) {
  .steps--quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .steps--quad {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding-top: 2.5rem;
  border-top: 2px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -1.05rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--r-full);
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 700;
}

.step h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.97rem;
}

.section--deep .step {
  border-top-color: rgba(255, 255, 255, 0.18);
}

/* --- Testimonials -------------------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.85rem);
}

.quote {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.1rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.quote__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1.1rem;
  color: var(--gold-500);
}

.quote__text {
  flex: 1;
  margin-bottom: 1.5rem;
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--ink);
}

.quote__person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}

.quote__person img {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  object-fit: cover;
  object-position: center top;
  flex: none;
}

.quote__name {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.quote__role {
  font-size: var(--step--1);
  color: var(--muted);
}

/* --- Akkordeon (FAQ) ----------------------------------------------------- */
.faq {
  display: grid;
  gap: 0.85rem;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}

.faq__item[open] {
  border-color: #d5dde8;
  box-shadow: var(--shadow-sm);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.15rem, 3vw, 1.6rem);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--navy-700);
  border-bottom: 2px solid var(--navy-700);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t);
}

.faq__item[open] .faq__q::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.faq__a {
  padding: 0 clamp(1.15rem, 3vw, 1.6rem) 1.5rem;
  font-size: 0.99rem;
}

.faq__a ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.faq__group-title {
  margin: 0.4rem 0 0.4rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-700);
}

/* --- Kontakt ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin: 0;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

a.contact-card:hover {
  border-color: #d5dde8;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.contact-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--blue-100);
  color: var(--navy-700);
}

.contact-card__label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-card__value {
  display: block;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.contact-card__meta {
  display: block;
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: 0.15rem;
}

/* --- Formular ------------------------------------------------------------ */
.form {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
}

.field .req {
  color: var(--gold-600);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(42, 107, 196, 0.12);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #c0392b;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.35rem;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--muted);
}

.form__consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--navy-700);
}

.form__footer {
  margin-top: 1.6rem;
}

.form__hint {
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.form__status {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--gold-100);
  border: 1px solid #ecdcbc;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6b4d15;
}

.form__status::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  background: currentColor;
  -webkit-mask: var(--status-icon) center / contain no-repeat;
  mask: var(--status-icon) center / contain no-repeat;
}

/* Erfolg: Nachricht wurde versendet */
.form__status--ok {
  background: #e9f7f1;
  border-color: #b9e3d3;
  color: #0b5c46;
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Fehler: Versand nicht möglich */
.form__status--fehler {
  background: #fdecea;
  border-color: #f5c6c0;
  color: #8c2f22;
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8v5M12 16.5v.5'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
}

.form__status[hidden] {
  display: none;
}

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

/* --- CTA-Band ------------------------------------------------------------ */
.cta {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -5%;
  width: min(620px, 65vw);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(211, 160, 74, 0.25) 0%,
    rgba(211, 160, 74, 0) 65%
  );
  pointer-events: none;
}

.cta .wrap {
  position: relative;
  z-index: 1;
}

.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 860px) {
  .cta__inner {
    grid-template-columns: 1fr;
  }
}

.cta h2 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: var(--step-3);
}

.cta p {
  font-size: var(--step-1);
  max-width: 40rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* --- Footer -------------------------------------------------------------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.62);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  font-size: 0.97rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

@media (max-width: 800px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

.footer__logo {
  height: 32px;
  width: auto;
  margin-bottom: 1.35rem;
}

.footer__brand p {
  max-width: 34ch;
  line-height: 1.6;
}

.footer h4 {
  margin-bottom: 1.15rem;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.footer li {
  margin: 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer address {
  font-style: normal;
  line-height: 1.7;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* --- Mobile Kontaktleiste ------------------------------------------------ */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(16, 24, 40, 0.07);
}

.mobile-bar__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  max-width: 34rem;
  margin-inline: auto;
}

.mobile-bar .btn {
  padding: 0.8rem 0.75rem;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .mobile-bar {
    display: block;
  }
  body {
    padding-bottom: 4.75rem;
  }
}

/* --- Rechtstexte --------------------------------------------------------- */
.legal {
  max-width: 62ch;
}

.legal h2 {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--step-3);
}

.legal > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal h3 {
  margin-top: 2rem;
  font-size: var(--step-1);
}

.legal h4 {
  margin-top: 1.5rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.legal p,
.legal li {
  font-size: 0.99rem;
}

.legal a {
  word-break: break-word;
}

.legal .uppercase-block {
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal address {
  font-style: normal;
  padding: 1.35rem 1.5rem;
  background: var(--surface-alt);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  line-height: 1.75;
}

.legal address a {
  color: var(--navy-700);
}

.toc {
  margin-bottom: 3rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.toc h2 {
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy-700);
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.97rem;
}

/* --- Reveal-Animation ----------------------------------------------------
   Wird ausschließlich aktiv, wenn das Skript die Klasse `js-reveal` am
   <html>-Element gesetzt hat. Ohne JavaScript bleiben alle Inhalte sichtbar.
   ------------------------------------------------------------------------ */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Print --------------------------------------------------------------- */
@media print {
  .header,
  .footer,
  .cta,
  .mobile-bar,
  .breadcrumb {
    display: none !important;
  }
  body {
    padding-bottom: 0;
  }
}
