/* ==========================================================================
   Wedekind Objektservice – Stylesheet
   Aufbau: Tokens → Reset/Base → Layout → Komponenten → Sektionen → Utilities
   ========================================================================== */

@layer reset, base, layout, components, sections, utilities;

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Farben – Dunkelblau, Anthrazit, Weiß; ein Signal-Akzent nur für Aktionen */
  --navy-950: #08131e;
  --navy-900: #0f1e2d;
  --navy-800: #112848;
  --navy-700: #1b3a66;
  --navy-200: #c9d4e4;
  --navy-100: #e6ecf4;
  --anthracite-900: #1d2126;
  --anthracite-700: #383e46;
  --anthracite-500: #59616b;
  --paper: #f4f3ef;
  --white: #ffffff;
  /* Markenfarbe Petrol aus dem Logo (#05767E); weiße Schrift darauf 5,4:1 */
  --accent: #05767e;
  --accent-strong: #045c63;
  --accent-bright: #4fc2c7; /* Petrol für Text/Icons auf dunklem Grund */
  --accent-soft: #e3f2f2;
  --error: #b42318;
  --success: #1f7a4d;

  --color-bg: var(--white);
  --color-text: var(--anthracite-900);
  --color-text-muted: var(--anthracite-500);
  --color-heading: var(--navy-900);
  --color-line: rgb(11 27 48 / 0.12);
  --color-line-strong: rgb(11 27 48 / 0.24);
  --color-on-dark: #eef2f8;
  --color-on-dark-muted: #a9b6c9;
  --color-line-dark: rgb(255 255 255 / 0.14);

  /* Typografie */
  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --stretch-display: 78%;
  --fs-display: clamp(2.5rem, 1.2rem + 4.4vw, 5.25rem);
  --fs-h2: clamp(2.05rem, 1.35rem + 2.9vw, 3.75rem);
  --fs-h3: clamp(1.4rem, 1.2rem + 0.8vw, 1.95rem);
  --fs-h4: 1.1875rem;
  --fs-lead: clamp(1.125rem, 1.04rem + 0.35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  /* Abstände (8er-Skala) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --section-space: clamp(4.5rem, 2.8rem + 6.5vw, 9rem);
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --container: 80rem;

  /* Form */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-1: 0 1px 2px rgb(7 17 31 / 0.06), 0 2px 8px rgb(7 17 31 / 0.05);
  --shadow-2: 0 2px 6px rgb(7 17 31 / 0.06), 0 18px 40px -12px rgb(7 17 31 / 0.22);

  /* Bewegung */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 700ms;

  --header-h: 4.5rem;
  --z-header: 50;
  --z-quickbar: 40;
}

/* ---------- Reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, picture, svg { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }
  ul[class], ol[class] { list-style: none; padding: 0; }
  address { font-style: normal; }
}

/* ---------- Base ---------- */
@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
  }
  body {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3, h4 {
    color: var(--color-heading);
    line-height: 1.08;
    font-weight: 700;
    text-wrap: balance;
  }
  p, li, dd { text-wrap: pretty; }
  a { color: inherit; text-underline-offset: 0.2em; }
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
  }
  ::selection { background: var(--accent); color: var(--white); }
  .hero :focus-visible, .section--dark :focus-visible, .cta-band :focus-visible,
  .site-footer :focus-visible, .nav :focus-visible { outline-color: var(--accent-bright); }
  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  .icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* ---------- Layout ---------- */
@layer layout {
  .container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .section { padding-block: var(--section-space); }
  .section--paper { background: var(--paper); }
  .section--dark {
    background: var(--navy-900);
    color: var(--color-on-dark);
    --color-heading: var(--white);
  }
}

/* ---------- Komponenten ---------- */
@layer components {
  .skip-link {
    position: absolute;
    left: var(--s-4);
    top: -100px;
    z-index: 100;
    padding: var(--s-3) var(--s-4);
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
  }
  .skip-link:focus { top: var(--s-4); }

  /* Logo: Bildmarke (freigestellt aus dem Original) + Schriftzug als Text,
     damit „Objektservice“ auch in kleiner Größe scharf und lesbar bleibt.
     Schriftzug nachempfunden: breite Grotesk, gleichmäßige Strichstärke. */
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    text-decoration: none;
    color: var(--navy-900);
  }
  .brand__mark {
    width: auto;
    height: 3rem;
    flex: none;
  }
  .brand__text { display: grid; gap: 0.3rem; line-height: 1; }
  .brand__name {
    font-size: 1.375rem;
    font-weight: 500;
    font-stretch: 125%;
    letter-spacing: 0.015em;
    text-transform: uppercase;
  }
  .brand__tag {
    font-size: 0.5625rem;
    font-weight: 600;
    font-stretch: 112%;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--accent);
    /* wie im Original: zentriert unter dem Namen; letzte Laufweite ausgleichen */
    justify-self: center;
    margin-right: -0.34em;
  }
  .brand--light { color: var(--white); }
  .brand--light .brand__tag { color: var(--accent-bright); }
  @media (max-width: 22.5em) {
    .brand__mark { height: 2.5rem; }
    .brand__name { font-size: 1.15rem; }
  }

  /* Buttons */
  .btn {
    --btn-bg: var(--navy-900);
    --btn-fg: var(--white);
    --btn-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-height: 48px;
    padding: 0.8rem 1.35rem;
    border: 1.5px solid var(--btn-border);
    border-radius: var(--radius-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0.005em;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
  }
  .btn .icon { transition: transform var(--dur-base) var(--ease-out); }
  .btn:active { transform: translateY(1px); }
  @media (hover: hover) {
    .btn:hover .icon { transform: translateX(3px); }
  }
  .btn--accent { --btn-bg: var(--accent); --btn-fg: var(--white); }
  @media (hover: hover) { .btn--accent:hover { --btn-bg: var(--accent-strong); } }
  .btn--ghost-light {
    --btn-bg: transparent;
    --btn-fg: var(--white);
    --btn-border: rgb(255 255 255 / 0.5);
  }
  @media (hover: hover) {
    .btn--ghost-light:hover { --btn-bg: var(--white); --btn-fg: var(--navy-900); --btn-border: var(--white); }
  }
  .btn--sm { min-height: 44px; padding: 0.6rem 1.05rem; font-size: 0.9375rem; }
  .btn--lg { min-height: 54px; padding: 0.95rem 1.6rem; font-size: 1.0625rem; }
  .btn--block { width: 100%; }

  .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: 44px;
    font-weight: 600;
    color: var(--navy-800);
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 100% 2px;
    background-position: 0 calc(100% - 8px);
    background-repeat: no-repeat;
  }
  .link-arrow .icon { transition: transform var(--dur-base) var(--ease-out); }
  @media (hover: hover) {
    .link-arrow:hover { color: var(--navy-950); }
    .link-arrow:hover .icon { transform: translateX(4px); }
  }

  /* Eyebrow / Abschnittsindex – Signaturelement: Nummer + Messlinie */
  .eyebrow {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy-700);
  }
  .eyebrow__index {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
  }
  .eyebrow__index::after {
    content: "";
    width: 2.5rem;
    height: 9px;
    /* Maßband-Linie: Grundlinie mit Teilstrichen */
    background:
      linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat,
      repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px) left bottom / 100% 5px no-repeat;
    opacity: 0.7;
  }
  .eyebrow--light { color: var(--accent-bright); }
  .eyebrow--light .eyebrow__index { color: var(--color-on-dark-muted); }

  .section-head {
    display: grid;
    gap: var(--s-5);
    margin-bottom: clamp(var(--s-7), 2rem + 4vw, var(--s-9));
  }
  .section-head .eyebrow { margin-bottom: 0; }
  .section-head__title {
    font-size: var(--fs-h2);
    font-stretch: var(--stretch-display);
    letter-spacing: -0.015em;
  }
  .section-head__intro {
    max-width: 34rem;
    font-size: var(--fs-lead);
    color: var(--color-text-muted);
  }
  @media (min-width: 64em) {
    .section-head {
      grid-template-columns: 7fr 5fr;
      column-gap: var(--s-8);
      align-items: end;
    }
    .section-head .eyebrow { grid-column: 1 / -1; }
    .section-head__intro { justify-self: end; }
  }

  .checklist {
    display: grid;
    gap: var(--s-3);
  }
  .checklist li {
    display: flex;
    gap: var(--s-3);
    align-items: flex-start;
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--color-line);
  }
  .checklist .icon {
    margin-top: 0.15em;
    color: var(--navy-700);
    stroke-width: 2.25;
  }

  /* Akzent-Orange nur auf dunklem Grund (Kontrast), auf Hell: Navy */
  .num {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--navy-700);
  }
  .hero .num, .section--dark .num { color: var(--accent-bright); }

  /* Formular */
  .form {
    display: grid;
    gap: var(--s-5);
  }
  .form__row {
    display: grid;
    gap: var(--s-5);
  }
  @media (min-width: 40em) {
    .form__row { grid-template-columns: 1fr 1fr; }
  }
  .form__notice {
    display: flex;
    gap: var(--s-3);
    padding: var(--s-4);
    border-radius: var(--radius-md);
    background: var(--navy-100);
    color: var(--navy-900);
    font-size: var(--fs-small);
    line-height: 1.5;
  }
  .form__notice .icon { margin-top: 0.1em; color: var(--navy-700); }
  .form__summary {
    padding: var(--s-4);
    border-left: 3px solid var(--error);
    border-radius: var(--radius-sm);
    background: #fdf0ef;
    color: var(--error);
    font-size: var(--fs-small);
  }
  .form__summary:focus { outline: none; }
  .form__summary ul { margin-top: var(--s-2); padding-left: 1.2em; }
  .form__summary a { color: inherit; }

  .field { display: grid; gap: var(--s-2); }
  .field label {
    font-weight: 600;
    font-size: var(--fs-small);
    color: var(--navy-900);
  }
  .req { color: var(--error); }
  .opt { font-weight: 400; color: var(--color-text-muted); }
  .field input:not([type="checkbox"]),
  .field select,
  .field textarea {
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid #8b94a0; /* ≥ 3:1 gegen Weiß */
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 1rem;
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  }
  .field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
  @media (hover: hover) {
    .field input:not([type="checkbox"]):hover,
    .field select:hover,
    .field textarea:hover { border-color: var(--navy-700); }
  }
  .field input:not([type="checkbox"]):focus-visible,
  .field select:focus-visible,
  .field textarea:focus-visible {
    outline: none;
    border-color: var(--navy-800);
    box-shadow: 0 0 0 3px rgb(5 118 126 / 0.35);
  }
  .field [aria-invalid="true"] { border-color: var(--error) !important; } /* Fehlerzustand muss Hover überstimmen */
  .field__hint { font-size: var(--fs-label); color: var(--color-text-muted); }
  .field__error {
    display: none;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--fs-label);
    font-weight: 600;
    color: var(--error);
  }
  .field__error:not(:empty) { display: flex; }
  .field__error::before {
    content: "!";
    display: inline-grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--error);
    color: var(--white);
    font-size: 0.7rem;
    flex: none;
  }

  .select { position: relative; }
  .select select { appearance: none; padding-right: 2.75rem; cursor: pointer; }
  .select::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--navy-800);
    border-bottom: 2px solid var(--navy-800);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
  }

  .field--check {
    grid-template-columns: auto 1fr;
    column-gap: var(--s-3);
    align-items: start;
  }
  .field--check input {
    width: 1.375rem;
    height: 1.375rem;
    margin-top: 0.1rem;
    accent-color: var(--navy-800);
    cursor: pointer;
  }
  .field--check label { font-weight: 400; line-height: 1.5; cursor: pointer; }
  .field--check label a { color: var(--navy-800); font-weight: 600; }
  .field--check .field__error { grid-column: 2; }

  .form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
  }
  .form__legend { font-size: var(--fs-label); color: var(--color-text-muted); }
  .form__success {
    display: flex;
    gap: var(--s-3);
    padding: var(--s-4) var(--s-5);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--success);
    background: #eef7f2;
    color: #134d31;
    font-size: var(--fs-small);
  }
  .form__success[hidden], .form__summary[hidden] { display: none; }
  .form__success .icon { color: var(--success); stroke-width: 2.5; margin-top: 0.1em; }
  .form__success p + p { margin-top: var(--s-1); }
}

/* ---------- Sektionen ---------- */
@layer sections {
  /* Header */
  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: var(--z-header);
    height: var(--header-h);
    /* Immer hell: Das Logo erscheint so stets in seinen Originalfarben */
    background: var(--white);
    color: var(--navy-900);
    box-shadow: 0 1px 0 var(--color-line);
    transition: box-shadow var(--dur-base) var(--ease-out);
  }
  .site-header.is-scrolled {
    box-shadow: 0 1px 0 var(--color-line), 0 6px 24px -12px rgb(7 17 31 / 0.25);
  }
  .site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
  }
  .site-header__actions { display: flex; align-items: center; gap: var(--s-2); }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    color: inherit;
  }
  .nav-toggle .icon { width: 1.6rem; height: 1.6rem; grid-area: 1 / 1; }
  .nav-toggle .icon--close { display: none; }
  .nav-open .nav-toggle .icon--open { display: none; }
  .nav-open .nav-toggle .icon--close { display: block; }

  .nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    font-weight: 500;
  }

  /* Mobile Navigation: Vollflächiges Overlay */
  @media (max-width: 63.99em) {
    .nav {
      position: fixed;
      inset: var(--header-h) 0 0;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: var(--s-7);
      padding: var(--s-6) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
      background: var(--navy-900);
      color: var(--white);
      overflow-y: auto;
      visibility: hidden;
      opacity: 0;
      transform: translateY(-8px);
      transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
    }
    .nav-open .nav {
      visibility: visible;
      opacity: 1;
      transform: none;
      transition-delay: 0s;
    }
    .nav__list { display: grid; }
    .nav__list li { border-bottom: 1px solid var(--color-line-dark); }
    .nav__link {
      width: 100%;
      min-height: 64px;
      font-size: 1.75rem;
      font-weight: 700;
      font-stretch: var(--stretch-display);
    }
    .nav__mobile-extra { display: grid; gap: var(--s-4); }
    .nav__phone {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: var(--s-2);
      min-height: 48px;
      color: var(--color-on-dark);
      text-decoration: none;
      font-weight: 600;
    }
    .site-header__cta { display: none; }
  }
  @media (min-width: 30em) and (max-width: 63.99em) {
    .site-header__cta { display: inline-flex; }
  }
  @media (min-width: 64em) {
    .nav-toggle, .nav__mobile-extra { display: none; }
    .nav__list { display: flex; gap: var(--s-6); }
    .nav__link::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 8px;
      height: 2px;
      background: var(--accent);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform var(--dur-base) var(--ease-out);
    }
    .nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
  }
  body.nav-open { overflow: hidden; }

  /* Hero */
  .hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100svh;
    min-height: max(100svh, 40rem);
    color: var(--white);
    background: var(--navy-950);
  }
  .hero__media, .hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
  }
  .hero__media img { object-fit: cover; object-position: 62% 40%; }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(180deg, rgb(7 17 31 / 0.55) 0%, rgb(7 17 31 / 0) 22%),
      linear-gradient(90deg, rgb(7 17 31 / 0.92) 0%, rgb(7 17 31 / 0.78) 45%, rgb(7 17 31 / 0.25) 100%),
      linear-gradient(0deg, rgb(7 17 31 / 0.85) 0%, rgb(7 17 31 / 0) 40%);
  }
  .hero__content {
    align-self: center;
    padding-top: calc(var(--header-h) + var(--s-8));
    padding-bottom: var(--s-8);
  }
  .hero__title {
    display: grid;
    max-width: 13em;
    color: var(--white);
    font-size: var(--fs-display);
    font-weight: 800;
    font-stretch: 75%;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-wrap: initial;
  }
  .hero__title-accent { color: var(--accent-bright); }
  .hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: var(--s-5);
    padding: 0.45em 1em 0.45em 0.8em;
    border: 1px solid rgb(255 255 255 / 0.22);
    border-radius: 999px;
    background: rgb(8 19 30 / 0.45);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .hero__badge .icon { width: 1.1em; height: 1.1em; color: var(--accent-bright); }
  .hero__lead {
    max-width: 36rem;
    margin-top: var(--s-6);
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: #dbe3ee;
  }
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    margin-top: var(--s-7);
  }
  @media (max-width: 29.99em) {
    .hero__actions .btn { width: 100%; }
  }
  .hero__rail {
    border-top: 1px solid var(--color-line-dark);
    background: rgb(7 17 31 / 0.45);
  }
  .hero__rail-list {
    display: grid;
  }
  .hero__rail-list li + li { border-top: 1px solid var(--color-line-dark); }
  .hero__rail-list a {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    min-height: 60px;
    padding-block: var(--s-3);
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
  }
  .hero__rail-list .icon { margin-left: auto; opacity: 0.6; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base); }
  @media (hover: hover) {
    .hero__rail-list a:hover .icon { transform: translateX(4px); opacity: 1; }
  }
  /* Fünf Leistungen nebeneinander brauchen Desktop-Breite */
  @media (max-width: 63.99em) {
    .hero__rail { display: none; }
  }
  @media (min-width: 64em) {
    .hero__rail-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .hero__rail-list li + li { border-top: 0; border-left: 1px solid var(--color-line-dark); }
    .hero__rail-list li + li a { padding-left: var(--s-4); }
    .hero__rail-list a {
      gap: var(--s-3);
      min-height: 76px;
      padding-right: var(--s-4);
      font-size: var(--fs-small);
    }
  }

  /* Leistungen */
  .service {
    display: grid;
    gap: var(--s-6);
    padding-block: var(--s-7);
    border-top: 1px solid var(--color-line);
  }
  .service:first-of-type { border-top: 0; padding-top: 0; }
  .service__media {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 3;
    background: var(--navy-100);
  }
  .service__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease-out);
  }
  @media (hover: hover) {
    .service:hover .service__media img { transform: scale(1.04); }
  }
  .service__num {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-bottom: var(--s-4);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--navy-700);
    font-variant-numeric: tabular-nums;
  }
  .service__num .icon { width: 1.5rem; height: 1.5rem; }
  .service__title {
    font-size: var(--fs-h3);
    font-stretch: var(--stretch-display);
    letter-spacing: -0.01em;
    hyphens: manual;
  }
  .service__text {
    margin-top: var(--s-4);
    margin-bottom: var(--s-6);
    max-width: 34rem;
    color: var(--color-text-muted);
  }
  .service .checklist { margin-bottom: var(--s-5); max-width: 34rem; }
  @media (min-width: 64em) {
    .service {
      grid-template-columns: 1fr 1fr;
      gap: var(--s-9);
      align-items: center;
      padding-block: var(--s-9);
    }
    .service--flip .service__media { order: 2; }
    .service__media { aspect-ratio: 5 / 4; }
  }
  /* Querformat-Foto (Transporter): komplett zeigen statt beschneiden */
  .service__media.service__media--wide { aspect-ratio: 1161 / 653; align-self: center; }

  /* Warum wir */
  .why__grid { display: grid; gap: var(--s-8); }
  .why__lead {
    margin-top: var(--s-5);
    margin-bottom: var(--s-6);
    max-width: 26rem;
    font-size: var(--fs-lead);
    color: var(--color-on-dark-muted);
  }
  .why__list { border-top: 1px solid var(--color-line-dark); }
  .why__item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: var(--s-4);
    padding-block: var(--s-5);
    border-bottom: 1px solid var(--color-line-dark);
    transition: background-color var(--dur-base) var(--ease-out);
  }
  .why__num {
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--accent-bright);
    font-variant-numeric: tabular-nums;
    padding-top: 0.2em;
  }
  .why__item h3 {
    font-size: 1.3rem;
    font-stretch: 88%;
    margin-bottom: var(--s-2);
  }
  .why__item p { color: var(--color-on-dark-muted); max-width: 36rem; }
  @media (min-width: 64em) {
    .why__grid { grid-template-columns: 5fr 7fr; gap: var(--s-9); }
    .why__intro { position: sticky; top: calc(var(--header-h) + var(--s-7)); align-self: start; }
    .why__item {
      grid-template-columns: 4rem 1fr;
      padding: var(--s-6) var(--s-4);
      margin-inline: calc(-1 * var(--s-4));
      border-radius: var(--radius-sm);
    }
    .why__item:hover { background: rgb(255 255 255 / 0.04); }
  }

  /* Einsatzbereiche */
  .sectors__grid { display: grid; gap: var(--s-7); }
  .sectors__list { border-top: 1px solid var(--color-line); }
  .sector {
    display: grid;
    grid-template-columns: clamp(4rem, 18vw, 5.5rem) minmax(0, 1fr);
    column-gap: var(--s-4);
    row-gap: var(--s-2);
    padding-block: var(--s-5);
    border-bottom: 1px solid var(--color-line);
  }
  .sector__thumb {
    grid-row: span 2;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
  }
  .sector__title {
    display: flex;
    align-items: baseline;
    gap: var(--s-3);
    font-size: 1.35rem;
    font-stretch: 88%;
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  .sector__title .num { font-size: var(--fs-label); }
  .sector__text { color: var(--color-text-muted); font-size: var(--fs-small); }
  .sectors__stage { display: none; }

  @media (min-width: 64em) {
    .sectors__grid { grid-template-columns: 7fr 5fr; gap: var(--s-9); align-items: start; }
    .sector {
      grid-template-columns: 1fr;
      padding: var(--s-5) var(--s-5) var(--s-5) 0;
      cursor: default;
      position: relative;
      transition: padding var(--dur-base) var(--ease-out);
    }
    .sector__thumb { display: none; }
    .sector::before {
      content: "";
      position: absolute;
      left: 0;
      top: -1px;
      width: 100%;
      height: 2px;
      background: var(--navy-800);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform var(--dur-slow) var(--ease-out);
    }
    .sector.is-active::before { transform: scaleX(1); }
    .sector__title { font-size: 1.75rem; transition: color var(--dur-base) var(--ease-out); }
    .sector__text {
      max-width: 34rem;
      font-size: var(--fs-body);
    }
    .sector:not(.is-active) .sector__title { color: var(--anthracite-700); }
    .sectors__stage {
      display: grid;
      position: sticky;
      top: calc(var(--header-h) + var(--s-6));
      aspect-ratio: 4 / 5;
      overflow: hidden;
      border-radius: var(--radius-lg);
      background: var(--navy-100);
    }
    .sectors__stage img {
      grid-area: 1 / 1;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transform: scale(1.03);
      transition: opacity 500ms var(--ease-out), transform 900ms var(--ease-out);
    }
    .sectors__stage img.is-active { opacity: 1; transform: none; }
  }

  /* CTA-Band */
  .cta-band {
    background: var(--navy-800);
    color: var(--color-on-dark);
    padding-block: clamp(var(--s-7), 2rem + 4vw, var(--s-9));
    background-image:
      repeating-linear-gradient(90deg, rgb(255 255 255 / 0.06) 0 1px, transparent 1px 16px);
    background-size: 100% 10px;
    background-repeat: no-repeat;
    background-position: left bottom;
  }
  .cta-band__inner { display: grid; gap: var(--s-6); align-items: center; }
  .cta-band__title {
    color: var(--white);
    font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
    font-stretch: var(--stretch-display);
    letter-spacing: -0.01em;
  }
  .cta-band__text { margin-top: var(--s-3); max-width: 38rem; color: var(--color-on-dark-muted); }
  @media (max-width: 29.99em) { .cta-band .btn { width: 100%; white-space: normal; } }
  @media (min-width: 64em) {
    .cta-band__inner { grid-template-columns: 1fr auto; gap: var(--s-8); }
  }

  /* Über uns */
  .about__grid { display: grid; gap: var(--s-7); }
  .about__media {
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 5;
    max-height: 34rem;
    background: var(--navy-100);
  }
  .about__media img { width: 100%; height: 100%; object-fit: cover; }
  .about__body .section-head__title { margin-bottom: var(--s-6); }
  .prose { display: grid; gap: var(--s-4); max-width: 38rem; }
  .prose .lead { font-size: var(--fs-lead); color: var(--navy-900); line-height: 1.5; }
  .prose p:not(.lead) { color: var(--color-text-muted); }
  .facts {
    display: grid;
    gap: var(--s-4);
    margin-top: var(--s-7);
    padding-block: var(--s-5);
    border-block: 1px solid var(--color-line);
  }
  .facts dt {
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }
  .facts dd {
    margin-top: var(--s-1);
    font-weight: 700;
    font-stretch: 88%;
    font-size: 1.2rem;
    color: var(--navy-900);
  }
  @media (min-width: 40em) {
    .facts { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: var(--s-7); }
  }
  .person {
    display: flex;
    align-items: center;
    gap: var(--s-5);
    margin-top: var(--s-7);
    padding-top: var(--s-6);
    border-top: 1px solid var(--color-line-strong);
    max-width: 30rem;
  }
  .person__photo {
    width: 6.5rem;
    aspect-ratio: 4 / 5;
    height: auto;
    flex: none;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--navy-100);
    box-shadow: 0 0 0 1px rgb(15 30 45 / 0.08), 0 10px 24px -12px rgb(8 19 30 / 0.45);
  }
  .person figcaption { display: grid; gap: 0.2rem; min-width: 0; }
  .person__label {
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .person__name {
    font-size: 1.375rem;
    font-weight: 700;
    font-stretch: 110%;
    line-height: 1.2;
    color: var(--navy-900);
  }
  .person__role { color: var(--color-text-muted); }
  @media (min-width: 48em) { .person__photo { width: 8rem; } }
  @media (min-width: 64em) {
    .about__grid { grid-template-columns: 5fr 6fr; gap: var(--s-9); align-items: center; }
    .about__media { max-height: none; }
  }

  /* Kontakt */
  .contact__grid { display: grid; gap: var(--s-8); }
  .contact__grid > * { min-width: 0; }
  .contact__lead {
    margin-top: var(--s-5);
    max-width: 30rem;
    font-size: var(--fs-lead);
    color: var(--color-text-muted);
  }
  .contact-list {
    display: grid;
    gap: var(--s-5);
    margin-top: var(--s-7);
  }
  .contact-list li { display: flex; gap: var(--s-4); align-items: flex-start; }
  .contact-list .icon {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.7rem;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy-800);
    box-shadow: var(--shadow-1);
  }
  .contact-list__label {
    display: block;
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }
  .contact-list a, .contact-list span:not(.contact-list__label), .contact-list address {
    font-weight: 600;
    color: var(--navy-900);
  }
  .contact-list a { display: block; width: fit-content; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
  .contact-list a + a { margin-top: var(--s-1); }
  .steps {
    display: grid;
    gap: var(--s-4);
    margin-top: var(--s-7);
    padding-top: var(--s-6);
    border-top: 1px solid var(--color-line-strong);
  }
  .steps li { display: flex; gap: var(--s-4); align-items: baseline; }
  .steps__num {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
    border-radius: 50%;
    border: 1.5px solid var(--navy-800);
    font-size: var(--fs-label);
    font-weight: 700;
    color: var(--navy-800);
  }
  .steps strong { display: block; color: var(--navy-900); }
  .steps span:not(.steps__num) { color: var(--color-text-muted); font-size: var(--fs-small); }
  .contact__form-wrap {
    padding: clamp(var(--s-5), 1rem + 2.5vw, var(--s-7));
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
  }
  @media (max-width: 29.99em) {
    .contact__form-wrap { margin-inline: calc(-1 * var(--s-2)); }
    .form__footer .btn { width: 100%; white-space: normal; }
  }
  @media (min-width: 64em) {
    .contact__grid { grid-template-columns: 5fr 7fr; gap: var(--s-9); align-items: start; }
  }

  /* Footer */
  .site-footer {
    background: var(--navy-950);
    color: var(--color-on-dark-muted);
    padding-top: var(--s-9);
    font-size: var(--fs-small);
  }
  .site-footer__grid {
    display: grid;
    gap: var(--s-7);
    padding-bottom: var(--s-8);
  }
  .site-footer__brand p { margin-block: var(--s-4) var(--s-5); max-width: 22rem; }
  .site-footer__title {
    margin-bottom: var(--s-4);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
  }
  .site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--s-1); }
  .site-footer a {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: 36px;
    color: var(--color-on-dark);
    text-decoration: none;
  }
  .site-footer a.btn { color: var(--white); min-height: 44px; }
  .site-footer a.brand { color: var(--white); }
  @media (hover: hover) {
    .site-footer a:not(.btn):not(.brand):hover { color: var(--accent-bright); }
  }
  .site-footer__contact span { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--color-on-dark); min-height: 36px; }
  .site-footer__contact .icon { color: var(--accent-bright); }
  .site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s-4);
    padding-block: var(--s-5);
    border-top: 1px solid var(--color-line-dark);
  }
  .site-footer__bottom ul { display: flex; gap: var(--s-5); }
  @media (min-width: 40em) {
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (min-width: 64em) {
    .site-footer__grid { grid-template-columns: 4fr 2fr 2fr 3fr; gap: var(--s-8); }
  }

  /* Mobile Schnellkontakt-Leiste */
  .quickbar {
    position: fixed;
    inset: auto 0 0;
    z-index: var(--z-quickbar);
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 0.97);
    box-shadow: 0 -1px 0 var(--color-line), 0 -8px 24px -12px rgb(7 17 31 / 0.25);
    transform: translateY(110%);
    transition: transform var(--dur-base) var(--ease-out);
  }
  .quickbar.is-visible { transform: none; }
  .quickbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-height: 48px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
  }
  .quickbar__call { border: 1.5px solid var(--navy-800); color: var(--navy-900); }
  .quickbar__cta { background: var(--accent); color: var(--white); }
  @media (min-width: 64em) { .quickbar { display: none; } }
  @media (max-width: 63.99em) {
    .site-footer { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  }

  /* Rechtliche Unterseiten */
  .legal { padding-top: calc(var(--header-h) + var(--s-8)); padding-bottom: var(--section-space); }
  .legal .site-header { background: var(--white); color: var(--navy-900); box-shadow: 0 1px 0 var(--color-line); }
  .legal__content { max-width: 46rem; }
  .legal__content h1 { font-size: var(--fs-h2); font-stretch: var(--stretch-display); margin-bottom: var(--s-6); }
  .legal__content h2 { font-size: 1.35rem; margin-top: var(--s-7); margin-bottom: var(--s-3); }
  .legal__content p + p { margin-top: var(--s-3); }
  .legal__content ul { list-style: disc; padding-left: 1.25rem; margin-top: var(--s-3); }
  .legal__content li + li { margin-top: 0.25rem; }
  .legal__content ul + p { margin-top: var(--s-3); }
  .legal__note {
    display: flex;
    gap: var(--s-3);
    padding: var(--s-4);
    margin-bottom: var(--s-6);
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    border: 1.5px solid var(--accent);
    color: var(--anthracite-900);
  }
  .legal__note .icon { color: var(--accent); margin-top: 0.15em; }
  .placeholder-block {
    padding: var(--s-4);
    border: 1.5px dashed var(--color-line-strong);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
  }

  /* Konfigurator-Einstieg im Kontaktbereich der Startseite */
  .cfg-teaser {
    display: grid;
    gap: var(--s-5);
    padding: clamp(var(--s-5), 1rem + 2.5vw, var(--s-7));
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
  }
  .cfg-teaser__badge {
    justify-self: start;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .cfg-teaser__title {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
    font-stretch: var(--stretch-display);
    letter-spacing: -0.01em;
  }
  .cfg-teaser__text { color: var(--color-text-muted); }
  .cfg-teaser__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3) var(--s-4);
    padding-block: var(--s-5);
    border-block: 1px solid var(--color-line);
    counter-reset: t;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--navy-900);
  }
  @media (min-width: 40em) { .cfg-teaser__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .cfg-teaser__steps li { display: flex; align-items: center; gap: var(--s-2); counter-increment: t; }
  .cfg-teaser__steps li::before {
    content: counter(t);
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    flex: none;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
  }
  .cfg-teaser .btn { justify-self: start; }
  @media (max-width: 29.99em) { .cfg-teaser .btn { justify-self: stretch; white-space: normal; } }
  .cfg-teaser__note { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-label); color: var(--color-text-muted); }
  .cfg-teaser__note .icon { color: var(--accent); flex: none; }
}

/* ---------- Utilities & Bewegung ---------- */
@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  /* Reveal nur mit JS – ohne JS bleibt alles sichtbar */
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* Hero-Einstieg */
  .js .hero__content > * {
    animation: rise 800ms var(--ease-out) both;
  }
  .js .hero__content > :nth-child(2) { animation-delay: 80ms; }
  .js .hero__content > :nth-child(3) { animation-delay: 180ms; }
  .js .hero__content > :nth-child(4) { animation-delay: 260ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }

  @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;
    }
    .js .reveal { opacity: 1; transform: none; }
  }
}
