/*Schriften */
@font-face {
  font-family: 'SN Pro';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/sn-pro-v1-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'SN Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/sn-pro-v1-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'SN Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/sn-pro-v1-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'SN Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/sn-pro-v1-latin-800.woff2') format('woff2');
}

@font-face {
    font-family: "KBOutfit";
    src: url("/assets/fonts/outfit-v15-latin-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/*
@font-face {
  font-display: swap; 
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/inter-v20-latin-regular.woff2') format('woff2'); 
}
*/

:root {
      --blue: #003f80;
      --blue-dark: #002b58;
      --yellow: #ffd400;
      --yellow-dark: #e8c000;
      --ink: #24313d;
      --muted: #5d6873;
      --line: #dce3e9;
      --soft: #f3f7fa;
      --warm: #fff9dc;
      --white: #fff;
      --max: 1180px;
      --shadow: 0 18px 55px rgba(0, 48, 98, .12);
      --font-body: "KBOutfit", system-ui, -apple-system, "Segoe UI", sans-serif;
      --font-heading: 'SN Pro', 'Segoe UI', sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    /* Kein waagrechtes Verschieben der Seite: Einblend-Animationen (.reveal--left/
       --right, Raster mit translateX(±60px)) und dekorative Ringe ragen vor dem
       Einblenden über den Rand. clip statt hidden: erzeugt keinen Scrollcontainer,
       position: sticky (Kopfzeile) bleibt wirksam. */
    html, body { overflow-x: clip; }
    @supports not (overflow: clip) { body { overflow-x: hidden; } }
    body {
      margin: 0;
      color: var(--ink);
      background: var(--white);
      font-family: var(--font-body);
      font-size: 18px;
      line-height: 1.6;
    }
    img { display: block; max-width: 100%; }
    code, kbd, samp, pre {
      font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
      font-size: .9em;
      color: var(--blue-dark);
      background: var(--soft);
      padding: .15em .4em;
      border-radius: 4px;
    }
    pre code { padding: 0; background: none; border-radius: 0; }
    a { color: inherit; }
    a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

    /*
     * Scroll-Reveal-Animationen (siehe assets/js/site.js): Elemente mit der
     * Klasse .reveal starten unsichtbar/leicht verschoben und blenden sich
     * per IntersectionObserver ein, sobald sie beim Scrollen in den
     * sichtbaren Bereich kommen. Modifikatoren bestimmen die Richtung -
     * .reveal--right kommt von rechts, .reveal--left von links, ohne
     * Modifikator (Default) von unten. .is-visible wird von site.js
     * gesetzt, sobald das Element einmal sichtbar war, und bleibt danach
     * dauerhaft stehen (kein erneutes Ausblenden beim Zurückscrollen).
     * Ohne JavaScript (site.js lädt nicht) bleiben die Elemente über die
     * <noscript>-Regel unten trotzdem sichtbar.
     */
    .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
    .reveal--right { transform: translateX(60px); }
    .reveal--left { transform: translateX(-60px); }
    .reveal.is-visible { opacity: 1; transform: none; }
    /* .fuel-cell__grid und .service-grid/.review-grid (index.php) erhalten
       Richtung UND Reihenfolge (transition-delay) komplett inline aus PHP
       (style="transition-delay: …") statt über CSS-:nth-child-Regeln - für
       index.php steckt die Animation damit vollständig im PHP-Code. */
    /* .services-grid, .company-values, .blog-grid und .project-gallery
       sind dreispaltige Grids (siehe unten): Spalte 1 kommt von links,
       Spalte 2 von unten (Default, keine Regel nötig) und Spalte 3 von
       rechts - wiederholt sich bei mehreren Zeilen über :nth-child(3n±).
       :not(.is-visible) sorgt dafür, dass die Regel nach dem Einblenden
       nicht mehr greift und .reveal.is-visible (oben) unverändert
       transform:none setzt. Die transition-delay legt dabei zusätzlich die
       REIHENFOLGE fest, in der die drei Spalten je Zeile einblenden
       (1: Spalte 1, 2: Spalte 2, 3: Spalte 3) - unabhängig davon, ob der
       Browser die Karten beim Scrollen exakt gleichzeitig in den sichtbaren
       Bereich bringt, und gilt für jede Zeile gleich, nicht nur für die
       erste. */
    .services-grid .reveal:not(.is-visible):nth-child(3n+1),
    .company-values .reveal:not(.is-visible):nth-child(3n+1),
    .blog-grid .reveal:not(.is-visible):nth-child(3n+1),
    .project-gallery .reveal:not(.is-visible):nth-child(3n+1) { transform: translateX(-60px); }
    .services-grid .reveal:not(.is-visible):nth-child(3n),
    .company-values .reveal:not(.is-visible):nth-child(3n),
    .blog-grid .reveal:not(.is-visible):nth-child(3n),
    .project-gallery .reveal:not(.is-visible):nth-child(3n) { transform: translateX(60px); }
    .services-grid .reveal:nth-child(3n+2),
    .company-values .reveal:nth-child(3n+2),
    .blog-grid .reveal:nth-child(3n+2),
    .project-gallery .reveal:nth-child(3n+2) { transition-delay: .12s; }
    .services-grid .reveal:nth-child(3n),
    .company-values .reveal:nth-child(3n),
    .blog-grid .reveal:nth-child(3n),
    .project-gallery .reveal:nth-child(3n) { transition-delay: .24s; }
    /* .team-grid (unternehmen/team/index.php) ist ein vierspaltiges Grid:
       Spalte 1+2 kommen von links, Spalte 3+4 von rechts - wiederholt sich
       bei mehreren Zeilen über :nth-child(4n±). Reihenfolge (transition-delay)
       weicht dabei bewusst von der Spaltenreihenfolge ab: zuerst Spalte 2,
       dann Spalte 1, dann Spalte 3, dann Spalte 4. */
    .team-grid .reveal:not(.is-visible):nth-child(4n+1),
    .team-grid .reveal:not(.is-visible):nth-child(4n+2) { transform: translateX(-60px); }
    .team-grid .reveal:not(.is-visible):nth-child(4n+3),
    .team-grid .reveal:not(.is-visible):nth-child(4n) { transform: translateX(60px); }
    .team-grid .reveal:nth-child(4n+2) { transition-delay: 0s; }
    .team-grid .reveal:nth-child(4n+1) { transition-delay: .12s; }
    .team-grid .reveal:nth-child(4n+3) { transition-delay: .24s; }
    .team-grid .reveal:nth-child(4n) { transition-delay: .36s; }
    /* .jobs-list (unternehmen/stellenangebote/index.php) und .angebote-list
       (angebote/index.php) sind einspaltige Listen - Karten wechseln sich
       einfach ab: ungerade von links, gerade von rechts. */
    .jobs-list .reveal:not(.is-visible):nth-child(odd),
    .angebote-list .reveal:not(.is-visible):nth-child(odd) { transform: translateX(-60px); }
    .jobs-list .reveal:not(.is-visible):nth-child(even),
    .angebote-list .reveal:not(.is-visible):nth-child(even) { transform: translateX(60px); }

    h1, h2, h3 { margin: 0; color: var(--blue); line-height: 1.12; font-family: var(--font-heading); }
    h1 { max-width: 850px; font-size: clamp(2.5rem, 6vw, 4.8rem); letter-spacing: -.045em; }
    h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.03em; }
    h3 { font-size: 1.35rem; }
    p { margin: 0; }
    .container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
    .section { padding: clamp(70px, 9vw, 120px) 0; }
    .section--soft { background: var(--soft); }
    .section--warm { position: relative; background: var(--warm); }
    /* Dezentes Favicon-Wasserzeichen unten rechts in jeder .section--warm. */
    .section--warm::after {
      content: "";
      position: absolute;
      right: 20px;
      bottom: 20px;
      width: 100px;
      height: 100px;
      background: url("/media/icons/favicon.svg") no-repeat center / contain;
      pointer-events: none;
    }
    .eyebrow {
      margin-bottom: 14px;
      color: var(--blue);
      font-size: .82rem;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    .intro { max-width: 760px; margin-top: 22px; color: var(--muted); font-size: 1.15rem; }
    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 52px;
      padding: 13px 24px;
      border: 2px solid var(--blue);
      border-radius: 4px;
      background: var(--yellow);
      color: var(--blue);
      font-weight: 800;
      line-height: 1.3;
      text-decoration: none;
      transition: transform .2s ease, background-color .2s ease;
    }
    .button:hover { transform: translateY(-2px); background: var(--yellow-dark); }
    .button--outline { background: transparent; color: var(--blue); }
    .button--outline:hover { background: rgba(0, 63, 128, .08); }
    /* Modifier fuer .button auf dunklen/farbigen Hintergruenden (Hero,
       Split-Sections, Karriere-CTA usw.): der Standard-Rahmen ist blau und
       verschwindet dort optisch. Ersetzt die frueher verstreuten Inline-
       Styles style="border-color:#fff;" (ggf. plus color:#fff bei der
       Outline-Variante). */
    .button--on-dark { border-color: var(--white); }
    .button--on-dark.button--outline { color: var(--white); }
    .button--on-dark.button--outline:hover { background: rgba(255,255,255,.12); }
    .text-link { color: var(--blue); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }

    .topbar { background: var(--blue-dark); color: var(--white); font-size: .88rem; }
    .topbar__inner { display: flex; justify-content: flex-end; gap: 26px; padding: 7px 0; }
    .topbar a { text-decoration: none; }
    .header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
    .header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 30px; }
    .logo { width: 265px; height: auto; }
    .nav { display: flex; align-items: center; gap: 25px; }
    .nav a { color: var(--blue-dark); font-size: .95rem; font-weight: 700; text-decoration: none; }
    .nav a:hover { color: var(--blue); }
    .nav .button { padding: 10px 18px; }
    .nav__cta { display: contents; }

    /* "Unternehmen"-Dropdown: öffnet am Desktop per Hover (und per Tastatur
       über :focus-within), am Mobilgerät steht die Unterliste immer
       eingerückt darunter (Hover gibt es dort nicht). */
    .nav__dropdown { position: relative; display: flex; align-items: center; }
    /* Gleiche Zeilenhöhe wie die übrigen Menüpunkte (vorher line-height: 1 –
       „Unternehmen“ saß dadurch etwas tiefer als die Nachbarn). Nur der Pfeil
       bleibt kompakt. */
    .nav__dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; }
    .nav__dropdown-arrow { line-height: 1; font-size: .7em; transition: transform .15s ease; }
    .nav__dropdown-menu {
      display: none;
      position: absolute;
      /* Kein margin-top: Ein Zwischenraum per margin läge außerhalb der
         hoverbaren Fläche, die Maus würde den Hover beim Herunterfahren
         verlieren, bevor sie das Menü erreicht. Der optische Abstand kommt
         stattdessen über padding-top - der zählt noch zur Box und bleibt
         damit durchgehend hoverbar. */
      top: 100%;
      left: 0;
      z-index: 30;
      min-width: 220px;
      margin: 0;
      padding: 14px 0 8px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--white);
      box-shadow: var(--shadow);
      list-style: none;
    }
    .nav__dropdown-menu a { display: block; padding: 10px 18px; font-weight: 700; }
    .nav__dropdown-menu a:hover { background: var(--soft); }
    .nav__dropdown:hover .nav__dropdown-menu,
    .nav__dropdown:focus-within .nav__dropdown-menu { display: block; }
    .nav__dropdown:hover .nav__dropdown-arrow,
    .nav__dropdown:focus-within .nav__dropdown-arrow { transform: rotate(180deg); }

    .nav-toggle {
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 5px;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 2px solid var(--blue);
      border-radius: 4px;
      background: transparent;
      cursor: pointer;
    }
    .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--blue-dark); transition: transform .2s ease, opacity .2s ease; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #f3f8fc 0 65%, #fff5bd 65% 100%); }
    .hero::after {
      position: absolute; right: -10vw; bottom: -28vw; width: 55vw; height: 55vw;
      border: 6vw solid rgba(255, 212, 0, .45); border-radius: 50%; content: "";
    }
    .hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; min-height: 650px; gap: 80px; padding: 90px 0; }
    .hero__lead { max-width: 720px; margin-top: 26px; color: var(--muted); font-size: 1.25rem; }
    .hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
    .hero__panel { padding: 38px; border-top: 8px solid var(--yellow); background: var(--blue); color: var(--white); box-shadow: var(--shadow); }

    /* Hero mit Bild-Hintergrund (index.php): ersetzt den hellen Farbverlauf
       durch ein Foto samt abdunkelndem Verlauf, damit der Text lesbar bleibt -
       dasselbe Prinzip wie bei .company-hero/.service-hero. Die gelbe
       Dekokreis-Form aus .hero::after passt nicht zu einem Foto und wird
       deshalb für diese Variante ausgeblendet. */
    .hero--image { background: var(--blue-dark); }
    .hero--image::after { display: none; }
    .hero__image, .hero__shade { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
    .hero__image { display: block; }
    .hero__image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
    .hero__shade { background: linear-gradient(100deg, rgba(0,31,66,.92) 0%, rgba(0,43,88,.8) 45%, rgba(0,43,88,.35) 100%); }
    @media (max-width: 767px) {
      /* Bei der mobilen Bildvariante liegt die Person meist rechts im
         Ausschnitt - der Bildausschnitt darf hier etwas weiter links
         betont werden, damit sie nicht unter dem Text verschwindet. */
      .hero__image img { object-position: 30% center; }
    }
    /* Hero-Folien (includes/home-hero.php): Bildausschnitt je Folie und Gerät
       über --hero-pos / --hero-pos-m; ohne Angabe gelten die Werte oben. */
    .hero__image img { object-position: var(--hero-pos, center center); }
    @media (max-width: 767px) { .hero__image img { object-position: var(--hero-pos-m, 30% center); } }
    .hero__title { max-width: 850px; color: var(--white); font-size: clamp(2.5rem, 6vw, 4.8rem); letter-spacing: -.045em; }
    /* Slider ab zwei aktiven Folien: Folien liegen übereinander (gleiche
       Rasterzelle), die Höhe richtet sich nach der höchsten Folie. */
    .hero-slider { display: grid; }
    .hero-slider > .hero-slide { position: relative; grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
    .hero-slider > .hero-slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity .8s ease; }
    /* Unten Platz für die Bedienelemente; .facts ragt 42 px (mobil 30 px) in den Hero. */
    .hero-slider--steuerung .hero__inner { padding-bottom: 160px; }
    .hero-controls { position: relative; z-index: 2; grid-area: 1 / 1; align-self: end; padding-bottom: 70px; pointer-events: none; }
    .hero-controls__inner { display: flex; align-items: center; gap: 10px; }
    .hero-ctrl, .hero-dot { pointer-events: auto; cursor: pointer; }
    .hero-ctrl { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(0,31,66,.45); color: var(--white); font-size: 1.5rem; line-height: 1; transition: background .2s ease, border-color .2s ease; }
    .hero-ctrl:hover { border-color: var(--white); background: rgba(0,31,66,.8); }
    .hero-dots + .hero-ctrl + .hero-pause, [data-hero-next] + .hero-pause { margin-left: 6px; }
    .hero-pause svg { width: 14px; height: 14px; fill: currentColor; }
    .hero-pause[aria-pressed="true"] .hero-pause__pause, .hero-pause[aria-pressed="false"] .hero-pause__play { display: none; }
    .hero-dots { display: flex; align-items: center; gap: 2px; }
    .hero-dot { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 44px; padding: 0; border: 0; background: none; }
    .hero-dot::before { width: 12px; height: 12px; border: 2px solid var(--white); border-radius: 6px; content: ""; transition: width .3s ease, background .3s ease; }
    .hero-dot.is-active::before { width: 28px; border-color: var(--yellow); background: var(--yellow); }
    .hero-ctrl:focus-visible, .hero-dot:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
    @media (max-width: 767px) {
      .hero-slider--steuerung .hero__inner { padding-bottom: 130px; }
      .hero-controls { padding-bottom: 50px; }
    }
    /* „Bewegung reduzieren“: Folien werden weiterhin sanft überblendet (keine
       Bewegung); nur die Breitenänderung der Punkte entfällt. */
    @media (prefers-reduced-motion: reduce) {
      .hero-dot::before { transition: none; }
    }
    .hero--image .hero__inner { z-index: 1; }
    .hero--image .eyebrow { color: var(--yellow); }
    .hero--image h1 { color: var(--white); }
    .hero--image .hero__lead { color: rgba(255,255,255,.88); }
    .hero--image .button--outline { border-color: var(--white); color: var(--white); }
    .hero--image .button--outline:hover { background: rgba(255,255,255,.12); }
    .hero__panel h2 { color: var(--white); font-size: 1.75rem; }
    .hero__panel ul { margin: 22px 0 0; padding: 0; list-style: none; }
    .hero__panel li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
    .hero__panel li::before { color: var(--yellow); font-weight: 900; content: "✓"; }

    .facts { position: relative; z-index: 2; margin-top: -42px; }
    .facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); box-shadow: var(--shadow); }
    .fact { padding: 28px; border-right: 1px solid var(--line); }
    .fact:last-child { border-right: 0; }
    .fact strong { display: block; color: var(--blue); font-size: 1.15rem; }
    .fact span { color: var(--muted); font-size: .92rem; }

    .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 45px; }
    .section-heading__text { max-width: 760px; }
    .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .service-card { position: relative; overflow: hidden; min-height: 430px; padding: 0 32px 32px; border: 1px solid var(--line); background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
    .service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
    .service-card__media { display: grid; height: 190px; margin: 0 -32px 30px; place-items: center; overflow: hidden; background: var(--soft); }
    .service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
    .service-card:hover .service-card__media img { transform: scale(1.035); }
    .service-card p { margin: 15px 0 24px; color: var(--muted); }

    .split { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; gap: 0; }
    .split__visual {
      min-height: 520px;
      background:
        linear-gradient(rgba(0,43,88,.18), rgba(0,43,88,.18)),
        url("/media/unternehmen/schoenmetz-firmengebaeude.webp") center/cover;
    }
    .split__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 90px); background: var(--blue); color: var(--white); }
    .split__content h2, .split__content .eyebrow { color: var(--white); }
    .split__content p { max-width: 650px; margin-top: 22px; color: rgba(255,255,255,.84); }
    .split__content .button { align-self: flex-start; margin-top: 30px; }

    .steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; counter-reset: step; }
    .step { position: relative; padding: 28px 28px 28px 0; border-top: 3px solid var(--line); counter-increment: step; }
    .step::before { position: absolute; top: -22px; left: 0; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--blue); font-weight: 900; content: counter(step); }
    .step h3 { margin-top: 26px; }
    .step p { margin-top: 12px; color: var(--muted); font-size: .96rem; }

    .funding { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 70px; }
    .funding__aside { padding: 34px; border-left: 8px solid var(--yellow); background: var(--white); box-shadow: var(--shadow); }
    .funding__aside strong { display: block; color: var(--blue); font-size: 1.35rem; }
    .funding__aside p { margin-top: 10px; color: var(--muted); }
    .funding__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

    .trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
    .check-list { display: grid; gap: 15px; margin: 30px 0 0; padding: 0; list-style: none; }
    .check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
    .check-list li::before { color: var(--blue); font-weight: 900; content: "✓"; }
    .quote { padding: 42px; border-top: 8px solid var(--yellow); background: var(--soft); }
    .quote blockquote { margin: 0; color: var(--blue); font-size: 1.45rem; font-weight: 700; line-height: 1.45; }
    .quote p { margin-top: 18px; color: var(--muted); font-size: .9rem; }

    .review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 45px; }
    .review-card { padding: 30px 28px; border: 1px solid var(--line); border-top: 6px solid var(--yellow); border-radius: 6px; background: var(--white); box-shadow: var(--shadow); }
    .review-card__head { display: flex; align-items: center; gap: 14px; }
    .review-card__avatar { display: grid; flex: 0 0 auto; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 800; font-size: 1.05rem; }
    .review-card__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .review-card__who strong { overflow: hidden; color: var(--blue-dark); font-size: .98rem; text-overflow: ellipsis; white-space: nowrap; }
    .review-card__who span { color: var(--muted); font-size: .82rem; }
    .review-card__stars { margin: 16px 0 12px; letter-spacing: 2px; }
    .review-card__text {
      display: -webkit-box;
      overflow: hidden;
      margin: 0;
      color: var(--ink);
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
    }

    /* FAQ-Abschnitt der Startseite (page_slug '' in kb_faq, siehe
       includes/faq.php); gleiches Markup/gleiche Optik wie .service-page
       .faq-grid auf den Leistungsseiten, hier aber ungebunden nutzbar. */
    .faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; }
    .large-copy { color: var(--muted); font-size: 1.16rem; }
    .faq { border-top: 1px solid var(--line); }
    .faq details { border-bottom: 1px solid var(--line); }
    .faq summary { padding: 23px 42px 23px 0; color: var(--blue); font-weight: 800; cursor: pointer; }
    .faq details p { padding: 0 30px 23px 0; color: var(--muted); }

    .career { display: flex; align-items: center; justify-content: space-between; gap: 45px; padding: clamp(40px, 7vw, 75px); background: var(--blue); color: var(--white); }
    .career h2 { color: var(--white); }
    .career p { max-width: 650px; margin-top: 15px; color: rgba(255,255,255,.82); }
    .career .button { flex: 0 0 auto; }

    .footer { padding: 65px 0 28px; background: var(--blue-dark); color: var(--white); }
    .footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr .8fr; gap: 50px; }
    .footer .logo { width: 230px; filter: brightness(0) invert(1); }
    .footer h3 { margin-bottom: 15px; color: var(--white); font-size: 1rem; }
    .footer p, .footer a { color: rgba(255,255,255,.76); font-size: 1rem; text-decoration: none; }
    .footer a:hover { color: var(--yellow); }
    .footer__bottom { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.17); color: rgba(255,255,255,.6); font-size: .875rem; }

    @media (max-width: 980px) {
      .nav-toggle { display: flex; order: 2; }
      .header__inner { flex-wrap: wrap; }
      .nav {
        order: 3;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
        margin-top: 14px;
        padding: 10px 0 18px;
        border-top: 1px solid var(--line);
        /* Bei vielen Menüpunkten (z. B. mit News/Downloads) reicht die
           Bildschirmhöhe nicht immer für die Liste plus den Button -
           das Menü bekommt daher eine feste Obergrenze und scrollt bei
           Bedarf intern, statt den Button unten abzuschneiden. */
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
      .nav.nav--open { display: flex; }
      .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
      .nav a:last-child { border-bottom: 0; }
      /* Kein Hover am Touchscreen: Das "Unternehmen"-Untermenü steht am
         Mobilgerät einfach immer eingerückt darunter, statt sich per
         Mouseover zu öffnen. */
      .nav__dropdown-arrow { display: none; }
      .nav__dropdown-menu {
        display: block;
        position: static;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
      }
      .nav__dropdown-menu a { padding: 12px 4px 12px 22px; font-size: .9rem; color: var(--muted); }
      /* Der CTA-Button bleibt beim Scrollen innerhalb des Menüs sichtbar
         (eigener, blickdichter Streifen unten) statt hinter der Liste zu
         verschwinden. */
      .nav__cta {
        display: block;
        position: sticky;
        bottom: 0;
        margin-top: 10px;
        padding-top: 10px;
        background: var(--white);
      }
      .nav__cta .button { width: 100%; }
      body.nav-open { overflow: hidden; }
      .hero__inner, .funding, .trust-grid, .faq-grid { grid-template-columns: 1fr; }
      .hero__inner { min-height: auto; gap: 45px; }
      .facts__grid { grid-template-columns: repeat(2, 1fr); }
      .fact:nth-child(2) { border-right: 0; }
      .service-grid { grid-template-columns: repeat(2, 1fr); }
      .service-card:last-child { grid-column: auto; }
      .split { grid-template-columns: 1fr; }
      .split__visual { min-height: 420px; }
      .steps { grid-template-columns: repeat(2, 1fr); gap: 35px 0; }
      .review-grid { grid-template-columns: repeat(2, 1fr); }
      .footer__grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 640px) {
      body { font-size: 17px; }
      .container { width: min(calc(100% - 28px), var(--max)); }
      .topbar__inner { justify-content: center; gap: 14px; font-size: .78rem; }
      .topbar__inner span { display: none; }
      .header__inner { min-height: 72px; }
      .logo { width: 205px; }
      .hero__inner { padding: 65px 0 90px; }
      .hero__actions, .funding__actions { flex-direction: column; align-items: stretch; }
      .button { width: 100%; }
      .hero__panel { padding: 28px; }
      .facts { margin-top: -30px; }
      .facts__grid, .service-grid, .review-grid, .footer__grid { grid-template-columns: 1fr; }
      .fact { border-right: 0; border-bottom: 1px solid var(--line); }
      .fact:last-child { border-bottom: 0; }
      .section-heading { display: block; }
      .section-heading .text-link { display: inline-block; margin-top: 20px; }
      .service-card { min-height: auto; }
      .split__visual { min-height: 300px; }
      .career { align-items: stretch; flex-direction: column; }

      /* Schritte (#ablauf): jede Kachel behält ihre eigene Linie (border-top),
         aber der Punkt wandert von Zeile zu Zeile weiter nach rechts -
         0 %/33 %/66 %/100 % statt bei jeder Zeile am linken Rand. */
      .steps { grid-template-columns: 1fr; }
      .step { padding-right: 0; }
      .step:nth-child(1)::before { left: 0; }
      .step:nth-child(2)::before { left: calc(33.333% - 21px); }
      .step:nth-child(3)::before { left: calc(66.666% - 21px); }
      .step:nth-child(4)::before { left: calc(100% - 42px); }
    }

/* Leistungs-Unterseiten */
.service-page .button--small { min-height: 44px; padding: 9px 17px; }
.service-page .eyebrow--light { color: var(--yellow); }
.service-page .large-copy { color: var(--muted); font-size: 1.16rem; }
.service-page .service-hero { position: relative; display: flex; align-items: flex-end; min-height: 670px; overflow: hidden; background: var(--blue-dark); }
.service-page .service-hero__image,
.service-page .service-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.service-page .service-hero__image { object-fit: cover; }
.service-page .service-hero__shade { background: linear-gradient(90deg, rgba(0,32,67,.94) 0%, rgba(0,43,88,.78) 47%, rgba(0,43,88,.2) 100%); }
.service-page .service-hero__content { position: relative; z-index: 1; padding-block: 80px; color: var(--white); }
.service-page .service-hero h1 { color: var(--white); }
.service-page .service-hero .eyebrow { color: var(--yellow); }
.service-page .service-hero__lead { max-width: 720px; margin: 24px 0 32px; color: rgba(255,255,255,.88); font-size: 1.23rem; }
.service-page .breadcrumb { margin-bottom: 70px; color: rgba(255,255,255,.72); font-size: .87rem; }
.service-page .breadcrumb a { text-underline-offset: 3px; }
.service-page .intro-grid,
.service-page .faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; }
.service-page .service-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 55px; margin: 44px 0 0; padding: 0; list-style: none; }
.service-page .service-list li { position: relative; padding: 21px 10px 21px 42px; border-bottom: 1px solid var(--line); font-weight: 700; }
.service-page .service-list li::before { position: absolute; left: 0; color: var(--blue); font-size: 1.2rem; font-weight: 900; content: "✓"; }
.service-page .benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 45px; }
.service-page .benefit { padding: 34px; border-top: 7px solid var(--yellow); background: var(--soft); }
/* Projekte-Galerie (kb_leistungen_projekte_bilder(): bis zu 6 Bilder aus
   media/leistungen/<slug>/projekte/, falls vorhanden). */
.service-page .project-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 45px; }
.service-page .project-gallery__item { display: block; margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: 0 13px 35px rgba(0,43,88,.07); }
.service-page .project-gallery__item img { display: block; width: 100%; height: 260px; object-fit: cover; transition: transform .35s ease; }
.service-page .project-gallery__item:hover img { transform: scale(1.035); }
.service-page .benefit p { margin-top: 14px; color: var(--muted); }
.service-page .section--blue { background: var(--blue); color: var(--white); }
.service-page .section--blue h2,
.service-page .section--blue h3 { color: var(--white); }
.service-page .steps { gap: 1px; background: rgba(255,255,255,.16); }
.service-page .steps article { padding: 32px; background: var(--blue); }
.service-page .steps span { display: block; margin-bottom: 24px; color: var(--yellow); font-size: 1.7rem; font-weight: 900; }
.service-page .steps p { margin-top: 12px; color: rgba(255,255,255,.76); font-size: .95rem; }
.service-page .faq { border-top: 1px solid var(--line); }
.service-page details { border-bottom: 1px solid var(--line); }
.service-page summary { padding: 23px 42px 23px 0; color: var(--blue); font-weight: 800; cursor: pointer; }
.service-page details p { padding: 0 30px 23px 0; color: var(--muted); }
.service-page .contact { padding: 75px 0; background: var(--blue-dark); color: var(--white); }
.service-page .contact h2 { color: var(--white); }
.service-page .contact p:not(.eyebrow) { max-width: 650px; margin-top: 15px; color: rgba(255,255,255,.78); }
.service-page .contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 55px; }
.service-page .contact__actions { display: flex; flex: 0 0 auto; gap: 13px; }
.service-page .button--white { border-color: var(--white); background: transparent; color: var(--white); }
.service-page .button--white:hover { background: var(--white); color: var(--blue); }
.service-cta { display: flex; align-items: center; justify-content: space-between; gap: 45px; padding: clamp(38px,6vw,68px); background: var(--blue); color: var(--white); }
.service-cta .eyebrow { color: var(--yellow); }
.service-cta h2 { max-width: 760px; color: var(--white); }
.service-cta p:not(.eyebrow) { max-width: 680px; margin-top: 15px; color: rgba(255,255,255,.82); }
.service-cta__actions { display: flex; flex: 0 0 auto; gap: 12px; }
.service-cta .button--outline { border-color: var(--white); color: var(--white); }
.service-cta .button--outline:hover { background: var(--white); color: var(--blue); }

/* Footer: Erreichbarkeit und Teilen */
.footer__claim { margin-top: 18px; }
/* Schnellzugriff-Liste im Footer: eigene Zeile je Link mit spürbarem
   Abstand, statt <br>-getrennter Links ohne Zwischenraum (von Google
   PageSpeed als zu eng beieinander liegende Tippziele bemängelt). */
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 2px; }
.footer-links a { display: block; padding: 4px 0; }

.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer-social a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(255,255,255,.08); transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.footer-social a:hover { transform: translateY(-2px); border-color: var(--yellow); background: rgba(255,212,0,.16); }
.footer-social img { width: 22px; height: 22px; }
.contact-status { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; font-size: .9rem !important; line-height: 1.4; }
.contact-status span { flex: 0 0 auto; width: 9px; height: 9px; margin-top: .3em; border-radius: 50%; background: #a9b1b8; }
.contact-status--open span { background: #56d18b; box-shadow: 0 0 0 4px rgba(86,209,139,.14); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer__bottom a { color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 3px; }

/* Fixierter Schnellkontakt */
.quick-contact { position: fixed; right: 18px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.quick-contact__button { display: grid; width: 54px; height: 54px; place-items: center; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: var(--blue); box-shadow: 0 8px 25px rgba(0,31,64,.28); transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.quick-contact__button:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,31,64,.34); }
.quick-contact__button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.quick-contact__button img { width: 24px; height: 24px; }
.quick-contact__button--phone { background: var(--blue); }
.quick-contact__button--whatsapp { background: #168a42; }
.quick-contact__button--email { background: var(--blue-dark); }

/* Brennstoffzellen-Technologie auf der Startseite */
.fuel-cell { overflow: hidden; }
.fuel-cell__heading { max-width: 850px; margin: 0 auto; text-align: center; }
.fuel-cell__heading .intro { margin: 20px auto 0; }
.fuel-cell__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 55px; }
.fuel-cell__card { position: relative; padding: 42px 34px 36px; border: 1px solid var(--line); border-top: 6px solid var(--yellow); background: var(--white); box-shadow: 0 14px 38px rgba(0,43,88,.07); text-align: center; }
/* Gestaffelte Reveal-Animation der Karten: frueher per Inline-Style
   (style="transition-delay: …") gesetzt - das faellt weg, sobald der
   Abschnitt ueber admin.php?tab=startseite gespeichert wird (style-
   Attribute werden beim Speichern aus Sicherheitsgruenden entfernt, siehe
   includes/blog-html.php), daher hier als CSS-Regel nachgebildet. */
.fuel-cell__grid .fuel-cell__card:nth-child(2) { transition-delay: .12s; }
.fuel-cell__grid .fuel-cell__card:nth-child(3) { transition-delay: .24s; }
.fuel-cell__card img { display: block; width: 112px; height: 112px; margin: 0 auto 24px; object-fit: contain; }
.fuel-cell__card h3 { color: var(--blue); font-size: 1.28rem; }
.fuel-cell__card p { margin-top: 14px; color: var(--muted); font-size: .96rem; }
.fuel-cell__action { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-top: 28px; padding: 28px 34px; background: var(--soft); }
.fuel-cell__action p { margin: 0; }
.fuel-cell__action .button { flex: 0 0 auto; }

/* Kontaktseite und Anfrageformular */
.contact-hero { padding: clamp(75px,10vw,125px) 0; background: linear-gradient(125deg,var(--blue-dark),var(--blue)); color: var(--white); }
.contact-hero__inner { max-width: 900px; }
.contact-hero .eyebrow { color: var(--yellow); }
.contact-hero h1 { color: var(--white); }
.contact-hero p:last-child { max-width: 760px; margin-top: 22px; color: rgba(255,255,255,.82); font-size: 1.16rem; }
.contact-layout { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); align-items: start; gap: clamp(45px,8vw,105px); }
.contact-details { padding: 36px; border-top: 7px solid var(--yellow); background: var(--blue); color: var(--white); }
.contact-details .eyebrow { color: var(--yellow); }
.contact-details h2 { color: var(--white); font-size: 1.75rem; }
.contact-details address { margin-top: 25px; font-style: normal; }
.contact-details dl { margin: 25px 0 0; }
.contact-details dl div { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.2); }
.contact-details dt { color: rgba(255,255,255,.7); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-details dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.contact-details__hours { margin-top: 26px; color: rgba(255,255,255,.82); font-size: .91rem; }
.contact-form-wrap h2 { font-size: clamp(1.8rem,3.4vw,2.65rem); }
.contact-form-wrap__intro { margin-top: 15px; color: var(--muted); }
.contact-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 34px; }
.form-field { display: grid; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label,.contact-form > label { color: var(--blue-dark); font-weight: 700; }
.form-field input,.form-field select,.form-field textarea { width: 100%; padding: 13px 14px; border: 1px solid #b8c5cf; border-radius: 3px; background: var(--white); color: var(--ink); font: inherit; }
.form-field textarea { resize: vertical; }
.form-field input:focus,.form-field select:focus,.form-field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(0,63,128,.13); }
.form-field--hidden { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-consent { display: flex; align-items: flex-start; gap: 11px; color: var(--muted); font-size: .9rem; font-weight: 400 !important; }
.form-consent input { flex: 0 0 auto; width: 19px; height: 19px; margin-top: .25em; accent-color: var(--blue); }
.form-consent a { color: var(--blue); text-underline-offset: 3px; }
.form-message { margin-top: 28px; padding: 20px 22px; border-left: 5px solid; }
.form-message p,.form-message ul { margin: 8px 0 0; }
.form-message--success { border-color: #168a42; background: #edf8f1; }
.form-message--error { border-color: #ad2e2e; background: #fff1f1; }

/* Unternehmensseite */
.company-home-link { margin-top: 30px; }
.company-hero { position: relative; display: flex; align-items: center; min-height: min(720px,78vh); overflow: hidden; background: var(--blue-dark); }
.company-hero__image,.company-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.company-hero__image { object-fit: cover; object-position: center center; }
.company-hero__shade { background: linear-gradient(90deg,rgba(0,31,66,.95) 0%,rgba(0,43,88,.83) 32%,rgba(0,43,88,.25) 66%,rgba(0,43,88,0) 100%); }
.company-hero__content { position: relative; z-index: 1; padding-block: 90px; color: var(--white); }
.company-hero__content .eyebrow { color: var(--yellow); }
.company-hero__content h1 { max-width: 620px; color: var(--white); }
.company-hero__content > p:not(.eyebrow) { max-width: 590px; margin-top: 24px; color: rgba(255,255,255,.88); font-size: 1.22rem; }
.company-hero__content .button { margin-top: 32px; }
.company-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px,8vw,105px); }
.company-intro__copy p { color: var(--muted); font-size: 1.08rem; }
.company-intro__copy p + p { margin-top: 20px; }
.company-heading { max-width: 780px; }
.company-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 48px; }
.company-values article { padding: 36px 32px; border-top: 6px solid var(--yellow); background: var(--white); box-shadow: 0 13px 35px rgba(0,43,88,.07); }
.company-values span { display: block; margin-bottom: 25px; color: var(--blue); font-size: 1.55rem; font-weight: 900; }
.company-values p { margin-top: 14px; color: var(--muted); }
.company-customer__grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(50px,8vw,105px); }
.company-customer__statement { padding: clamp(38px,5vw,60px); border-left: 8px solid var(--yellow); background: var(--blue); color: var(--white); }
.company-customer__statement .eyebrow { color: var(--yellow); }
.company-customer__statement blockquote { margin: 0; color: var(--white); font-size: clamp(1.8rem,3.6vw,2.9rem); font-weight: 800; line-height: 1.16; }
.company-customer__grid > div:last-child > p { margin-top: 20px; color: var(--muted); }
.company-customer__grid .text-link { display: inline-block; margin-top: 28px; }
.company-career { background: var(--blue-dark); color: var(--white); }
.company-career__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(45px,8vw,100px); }
.company-career .eyebrow { color: var(--yellow); }
.company-career h2,.company-career h3 { color: var(--white); }
.company-career__grid > div > p:not(.eyebrow) { max-width: 620px; margin-top: 20px; color: rgba(255,255,255,.78); }
.company-career .button { margin-top: 28px; }
.company-jobs { padding: 35px; border-top: 7px solid var(--yellow); background: rgba(255,255,255,.08); }
.company-jobs ul { margin: 20px 0; padding: 0; list-style: none; }
.company-jobs li { position: relative; padding: 11px 0 11px 29px; border-bottom: 1px solid rgba(255,255,255,.16); }
.company-jobs li::before { position: absolute; left: 0; color: var(--yellow); font-weight: 900; content: "✓"; }
.company-jobs p { color: rgba(255,255,255,.68); font-size: .9rem; }
.company-training { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px,8vw,105px); }
.company-training > div:last-child p { color: var(--muted); font-size: 1.07rem; }
.company-training > div:last-child p + p { margin-top: 19px; }
.company-training .button { margin-top: 28px; }

/* Karriere, Ausbildung, Stellenangebote und 404 */
.career-hero { padding: clamp(85px,11vw,145px) 0; background: linear-gradient(125deg,var(--blue-dark),var(--blue)); color: var(--white); }
.career-hero__inner { max-width: 920px; }
.career-hero .breadcrumb { margin-bottom: 55px; color: rgba(255,255,255,.68); font-size: .88rem; }
.career-hero .eyebrow { color: var(--yellow); }
.career-hero h1 { color: var(--white); }
.career-hero__inner > p:not(.eyebrow,.breadcrumb) { max-width: 750px; margin-top: 22px; color: rgba(255,255,255,.82); font-size: 1.17rem; }
.career-hero .button--outline { border-color: var(--white); color: var(--white); }
.career-hero--team { padding: 0; }
.career-team-hero { display: grid; grid-template-columns: minmax(0,.78fr) minmax(520px,1.22fr); align-items: stretch; width: min(100%,1500px); }
.career-hero--team .career-hero__inner { display: flex; justify-content: center; flex-direction: column; padding: clamp(70px,8vw,120px) clamp(32px,6vw,85px) clamp(70px,8vw,120px) clamp(20px,4vw,60px); }
.career-team-hero__media { min-height: 640px; margin: 0; background: #f4f3ef; }
.career-team-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.career-intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px,8vw,100px); }
.career-intro > div:last-child p { color: var(--muted); font-size: 1.08rem; }
.career-intro > div:last-child p + p { margin-top: 20px; }
.career-benefits { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 45px; }
.career-benefits article { padding: 32px; border-top: 6px solid var(--yellow); background: var(--white); }
.career-benefits p { margin-top: 12px; color: var(--muted); }
.jobs-heading { max-width: 850px; }
.jobs-page #stellen { scroll-margin-top: 100px; }
.jobs-heading > p:last-child { margin-top: 18px; color: var(--muted); }
.jobs-list { display: grid; gap: 28px; margin-top: 50px; }
.job-card { padding: clamp(28px,5vw,48px); border: 1px solid var(--line); border-top: 7px solid var(--yellow); }
.job-card__head { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.job-card__head .button { flex: 0 0 auto; }
.job-card__columns { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.job-card__body { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.job-card h4 { margin: 0; color: var(--blue); font-size: 1rem; }
.job-card ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.jobs-footer { margin-top: 45px; padding: 42px; background: var(--soft); text-align: center; }
.jobs-footer p { margin-top: 12px; color: var(--muted); }
.jobs-footer .button { margin-top: 24px; }
.application-note { margin-top: 18px; color: rgba(255,255,255,.8); }
.application-hero { position: relative; display: flex; align-items: center; min-height: 620px; overflow: hidden; background: var(--blue-dark); }
.application-hero__image,.application-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.application-hero__image { object-fit: cover; object-position: center; }
.application-hero__shade { background: linear-gradient(90deg,rgba(0,31,66,.96) 0%,rgba(0,43,88,.86) 30%,rgba(0,43,88,.3) 58%,rgba(0,43,88,0) 78%); }
.application-hero__content { position: relative; z-index: 1; padding-block: 85px; color: var(--white); }
.application-hero .breadcrumb { margin-bottom: 30px; color: rgba(255,255,255,.68); font-size: .88rem; }
.application-hero .breadcrumb a { color: rgba(255,255,255,.85); text-underline-offset: 3px; }
.application-hero .eyebrow { color: var(--yellow); }
.application-hero h1 { max-width: 650px; color: var(--white); }
.application-hero__content > p:last-child { max-width: 610px; margin-top: 23px; color: rgba(255,255,255,.86); font-size: 1.15rem; }
.error-404 { display: grid; min-height: 650px; place-items: center; padding: 80px 0; background: var(--soft); text-align: center; }
.error-404__inner { max-width: 850px; }
.error-404__code { color: var(--yellow); font-size: clamp(6rem,18vw,13rem); font-weight: 900; line-height: .8; text-shadow: 8px 8px 0 var(--blue); }
.error-404 h1 { margin-inline: auto; }
.error-404__inner > p:not(.eyebrow,.error-404__code) { max-width: 680px; margin: 22px auto 0; color: var(--muted); }
.error-404 .hero__actions { justify-content: center; }

/* Impressum und Datenschutz */
.legal-hero { padding: clamp(75px,10vw,125px) 0; background: linear-gradient(125deg,var(--blue-dark),var(--blue)); color: var(--white); }
.legal-hero__inner { max-width: 920px; }
.legal-hero .eyebrow { color: var(--yellow); }
.legal-hero h1 { margin-top: 10px; color: var(--white); }
.legal-hero p:last-child { max-width: 760px; margin-top: 20px; color: rgba(255,255,255,.82); font-size: 1.15rem; }
.legal-layout { display: grid; grid-template-columns: minmax(210px,280px) minmax(0,780px); align-items: start; justify-content: space-between; gap: clamp(50px,8vw,110px); }
.legal-toc { position: sticky; top: 120px; display: grid; padding: 28px; border-top: 6px solid var(--yellow); background: var(--soft); }
.legal-toc .eyebrow { margin-bottom: 11px; }
.legal-toc a { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--blue); font-size: .94rem; font-weight: 700; }
.legal-toc a:last-child { border-bottom: 0; }
.legal-content section { padding: 0 0 50px; margin: 0 0 50px; border-bottom: 1px solid var(--line); scroll-margin-top: 125px; }
.legal-content section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.legal-content h2 { margin-bottom: 20px; color: var(--blue); font-size: clamp(1.45rem,3vw,2rem); }
.legal-content h2:not(:first-child) { margin-top: 42px; }
.legal-content h3 { margin: 28px 0 12px; color: var(--blue); font-size: 1.15rem; }
.legal-content p + p { margin-top: 18px; }
.legal-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-content code { padding: 2px 6px; border-radius: 3px; background: var(--soft); font-size: .88em; overflow-wrap: anywhere; }
.legal-data { margin: 25px 0; border-top: 1px solid var(--line); }
.legal-data div { display: grid; grid-template-columns: minmax(140px,.7fr) 1.3fr; gap: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-data dt { color: var(--muted); font-weight: 700; }
.legal-data dd { margin: 0; }

/* Wärmepumpen-Aktionspopup */
body.aktion-modal-open { overflow: hidden; }
.aktion-modal[hidden] { display: none; }
.aktion-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .22s ease; }
.aktion-modal--visible { opacity: 1; }
.aktion-modal__backdrop { position: absolute; inset: 0; background: rgba(0,25,52,.72); backdrop-filter: blur(3px); }
.aktion-modal__dialog { position: relative; z-index: 1; width: min(100%, 560px); max-height: calc(100vh - 48px); overflow: auto; border-radius: 8px; background: var(--white); box-shadow: 0 28px 80px rgba(0,20,42,.42); transform: translateY(18px) scale(.985); transition: transform .22s ease; }
.aktion-modal--visible .aktion-modal__dialog { transform: translateY(0) scale(1); }
.aktion-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(0,43,88,.88); color: var(--white); font: inherit; font-size: 29px; line-height: 1; cursor: pointer; }
.aktion-modal__close:hover { background: var(--blue-dark); }
.schoenmetz-aktion,.schoenmetz-aktion * { box-sizing: border-box; }
.schoenmetz-aktion { width: 100%; background: var(--white); color: #4a4948; text-align: left; overflow-wrap: break-word; }
.schoenmetz-aktion__bild { display: block; width: 100%; height: 230px; margin: 0; object-fit: cover; object-position: center 55%; }
.schoenmetz-aktion__inhalt { padding: 25px 30px 30px; }
.schoenmetz-aktion p { margin: 0; padding: 0; }
.schoenmetz-aktion__label { margin-bottom: 9px !important; color: var(--blue); font-size: .72rem; font-weight: 800; line-height: 1.5; letter-spacing: .09em; }
.schoenmetz-aktion h2.schoenmetz-aktion__titel { margin: 0 0 16px; padding: 0; color: var(--blue); font-size: 1.65rem; font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
.schoenmetz-aktion__betrag { margin-bottom: 14px !important; color: var(--blue); font-size: 2.75rem; font-weight: 800; line-height: 1.04; }
.schoenmetz-aktion__betrag span { display: block; margin-top: 5px; font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.schoenmetz-aktion__text { margin-bottom: 19px !important; color: #4a4948; font-size: .98rem; line-height: 1.55; }
.schoenmetz-aktion__button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 12px 18px; border: 2px solid var(--blue); border-radius: 4px; background: var(--yellow); color: var(--blue) !important; font-size: 1rem; font-weight: 800; line-height: 1.3; text-align: center; text-decoration: none !important; }
.schoenmetz-aktion__button:hover { background: var(--yellow-dark); }
.schoenmetz-aktion__button span { font-size: 1.25rem; line-height: 1; }
.schoenmetz-aktion__hinweis { margin-top: 10px !important; color: #62676d; font-size: .72rem; line-height: 1.4; }

@media (prefers-reduced-motion: reduce) {
  .aktion-modal,.aktion-modal__dialog,.team-card img { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Haustechnik */
.haustechnik-heading {
  max-width: 760px;
  margin-bottom: 45px;
}

.haustechnik-grid {
  display: grid;
  gap: 28px;
}

.technology-card {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 12px 35px rgba(0, 43, 88, .08);
}

.technology-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
}

.technology-card:nth-child(even) .technology-card__media {
  order: 2;
}

.technology-card__media {
  min-height: 340px;
  margin: 0;
  background: var(--white);
}

.technology-card__media img {
  width: 100%;
  height: 100%;
  padding: 28px;
  object-fit: contain;
}

.technology-card__content {
  padding: clamp(30px, 5vw, 55px);
}

.technology-card__content h3 {
  margin-bottom: 17px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.technology-card__content > p:not(.eyebrow) {
  color: var(--muted);
}

.technology-card__content ul {
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
}

.technology-card__content li {
  position: relative;
  margin-top: 10px;
  padding-left: 27px;
}

.technology-card__content li::before {
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
  content: "✓";
}

/* Team */
.team-hero .career-team-hero__media img { object-position: center; }
.team-heading { max-width: 760px; margin-bottom: 45px; }
.team-heading > p:last-child { max-width: 680px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 24px;
}
.team-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,43,88,.1);
}
.team-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .3s ease;
}
.team-card:hover img { transform: scale(1.025); }
.team-card h3 {
  margin: 0;
  padding: 18px 20px 20px;
  background: var(--blue);
  color: #fff;
  font-size: 1.15rem;
}
.team-card--join {
  display: flex;
  min-height: 100%;
  padding: 30px 26px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--blue);
  color: #fff;
}
.team-card--join .eyebrow { color: var(--yellow); }
.team-card--join h3 {
  padding: 0;
  color: #fff;
  font-size: 1.55rem;
}
.team-card--join p:not(.eyebrow) { margin-bottom: 24px; }

@media (max-width: 980px) {
  .service-page .service-hero { min-height: 610px; }
  .service-page .intro-grid,
  .service-page .faq-grid { grid-template-columns: 1fr; gap: 35px; }
  .service-page .benefit-grid { grid-template-columns: 1fr; }
  .service-page .project-gallery { grid-template-columns: 1fr; }
  .service-page .contact__inner { align-items: flex-start; flex-direction: column; }
  .service-cta { align-items: stretch; flex-direction: column; }
  .service-cta__actions { align-self: flex-start; }
  .legal-layout { grid-template-columns: 1fr; gap: 45px; }
  .legal-toc { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
  .legal-toc .eyebrow { grid-column: 1 / -1; }
  .fuel-cell__grid { grid-template-columns: 1fr; }
  .fuel-cell__action { align-items: flex-start; flex-direction: column; }
  .contact-layout { grid-template-columns: 1fr; }
  .company-intro,.company-customer__grid,.company-career__grid,.company-training { grid-template-columns: 1fr; }
  .company-values { grid-template-columns: 1fr; }
  .company-hero__shade { background: linear-gradient(90deg,rgba(0,31,66,.9),rgba(0,43,88,.6)); }
  .career-intro { grid-template-columns: 1fr; }
  .job-card__columns { grid-template-columns: 1fr; gap: 25px; }
  .career-team-hero { grid-template-columns: 1fr; width: min(calc(100% - 40px),var(--max)); }
  .career-hero--team .career-hero__inner { padding-right: 0; }
  .career-team-hero__media { min-height: auto; }
  .career-team-hero__media img { height: auto; object-fit: contain; }
  .application-hero__shade { background: linear-gradient(90deg,rgba(0,31,66,.94),rgba(0,43,88,.64) 65%,rgba(0,43,88,.2)); }
  .technology-card,
  .technology-card:nth-child(even) { grid-template-columns: 1fr; }
  .technology-card:nth-child(even) .technology-card__media { order: 0; }
  .technology-card__media { min-height: 300px; }
  .team-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .service-page .service-hero { min-height: 620px; }
  .service-page .service-hero__content { padding-block: 55px; }
  .service-page .breadcrumb { margin-bottom: 55px; }
  .service-page .service-hero__shade { background: linear-gradient(rgba(0,32,67,.79), rgba(0,32,67,.94)); }
  .service-page .service-list { grid-template-columns: 1fr; }
  .service-page .contact__actions { width: 100%; flex-direction: column; }
  .service-cta__actions { width: 100%; flex-direction: column; }
  .footer__bottom { align-items: flex-start; flex-direction: column; }
  .quick-contact { right: 12px; bottom: 14px; gap: 8px; }
  .quick-contact__button { width: 48px; height: 48px; }
  .aktion-modal { padding: 12px; }
  .aktion-modal__dialog { max-height: calc(100vh - 24px); }
  .schoenmetz-aktion__bild { height: 175px; }
  .schoenmetz-aktion__inhalt { padding: 21px 20px 24px; }
  .schoenmetz-aktion h2.schoenmetz-aktion__titel { font-size: 1.4rem; }
  .schoenmetz-aktion__betrag { font-size: 2.25rem; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-data div { grid-template-columns: 1fr; gap: 4px; }
  .fuel-cell__card { padding: 34px 24px 30px; }
  .fuel-cell__action { padding: 25px; }
  .fuel-cell__action .button { width: 100%; }
  .contact-form { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .contact-details { padding: 29px 24px; }
  .company-hero { min-height: 650px; align-items: flex-end; }
  .company-hero__image { object-position: 46% center; }
  .company-hero__shade { background: linear-gradient(0deg,rgba(0,31,66,.97) 0%,rgba(0,43,88,.75) 58%,rgba(0,43,88,.24) 100%); }
  .company-hero__content { padding-block: 55px; }
  .company-values article,.company-jobs { padding: 30px 24px; }
  .career-benefits { grid-template-columns: 1fr; }
  .job-card__head { align-items: flex-start; flex-direction: column; }
  .job-card__head .button { width: 100%; }
  .jobs-footer { padding: 32px 22px; }
  .career-team-hero { width: 100%; }
  .career-hero--team .career-hero__inner {
    width: 100%;
    margin-inline: auto;
    padding: 55px 24px;
  }
  .career-hero--team .breadcrumb { margin-bottom: 42px; }
  .career-hero--team h1 { font-size: clamp(2.25rem,11vw,3rem); }
  .career-hero--team .hero__actions { width: 100%; }
  .career-hero--team .hero__actions .button { width: 100%; }
  .application-hero { min-height: 650px; align-items: flex-end; }
  .application-hero__image { object-position: 65% center; }
  .application-hero__shade { background: linear-gradient(0deg,rgba(0,31,66,.98) 0%,rgba(0,43,88,.82) 62%,rgba(0,43,88,.18) 100%); }
  .application-hero__content { padding-block: 55px; }
  .haustechnik-heading { margin-bottom: 32px; }
  .technology-card__media { min-height: 230px; }
  .technology-card__media img { padding: 18px; }
  .technology-card__content { padding: 27px 22px 30px; }
  .team-heading { margin-bottom: 32px; }
  .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .team-card h3 { padding: 14px 15px 16px; font-size: 1rem; }
  .team-card--join { grid-column: 1 / -1; padding: 28px 22px; }
}

/* ==========================================================================
   Wartungsmodus-Hinweisstreifen (nur für angemeldete Administration sichtbar,
   siehe includes/header.php + ry_maintenance_banner() in includes/maintenance.php)
   ========================================================================== */
.maint-bar {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 15px;
  line-height: 1.5;
}
.maint-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 0;
}
.maint-bar__dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd400;
  box-shadow: 0 0 0 3px rgba(255, 212, 0, .25);
}
.maint-bar__inner > span:not(.maint-bar__dot):not(.maint-bar__links) {
  flex: 1 1 auto;
}
.maint-bar__links {
  flex: 0 0 auto;
  display: flex;
  gap: 14px;
}
.maint-bar a,
.maint-bar__links a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
}
.maint-bar a:hover,
.maint-bar__links a:hover {
  text-decoration: none;
}
@media (max-width: 640px) {
  .maint-bar__inner { padding: 10px 16px; }
}

/* =========================================================================
   Content-Seiten-Module: gemeinsame Bausteine für downloads.php,
   referenzen.php, blog.php, angebote/index.php, leistungen.php,
   sortiment.php, seite.php, karriere.php, includes/privacy-consent.php.
   Diese Seiten verwendeten früher zwei parallele, teils überschneidende
   Klassenschemata ("kb-" und "lb-") mit doppelten und stellenweise ganz
   ungestylten Klassen. Hier stattdessen EIN Satz an Modulen, nach Rubrik
   geordnet: Seiten-Header, Kicker/Breadcrumb, Hinweis-Badge, Buttons,
   Sections, Karten, Artikel-Inhalt, Formulare, Hinweis-/Leer-Zustände,
   CTA/Aktionen, Responsive.
   ========================================================================= */

:root {
  /* Kompatibilitäts-Alias: download.php nutzt diese (bisher nicht
     definierte) Variable in einem Inline-Style. */
  --color-surface: var(--soft);
}

/* --- Seiten-Header -------------------------------------------------------
   Hell (downloads.php, referenzen.php, blog.php, angebote/index.php) und
   dunkel (leistungen.php, seite.php, sortiment.php, karriere.php) - zwei
   Varianten, weil die Seiten inhaltlich unterschiedlich wirken sollen,
   aber jede davon nur EINMAL definiert. */
.page-hero { padding: clamp(70px,9vw,120px) 0 50px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero--compact { padding: clamp(50px,7vw,80px) 0 40px; }
.page-hero__sub { max-width: 65ch; margin-top: 18px; color: var(--muted); font-size: 1.15rem; }

/* Modifier: dezentes gelbes Ring-Element wie im Startseiten-Hero, damit der
   Hero nicht so leer wirkt (z. B. angebote/index.php). */
.page-hero--accent {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--soft) 0 65%, #fff5bd 65% 100%);
}
.page-hero--accent::after {
  position: absolute; right: -10vw; bottom: -28vw; width: 55vw; height: 55vw;
  border: 6vw solid rgba(255, 212, 0, .45); border-radius: 50%; content: "";
  pointer-events: none;
}
.page-hero--accent .page-hero__inner { position: relative; z-index: 1; }

/* Dunkler Header, wahlweise mit Bild (--image, per CSS-Variable ODER per
   <img class="content-hero__background">) oder einfarbig dunkel. */
.content-hero {
  position: relative;
  padding: 64px 0 56px;
  background: var(--blue-dark);
  color: var(--white);
}
.content-hero--image {
  overflow: hidden;
  background-image: var(--content-hero-image);
  background-size: cover;
  background-position: center;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
}
/* Dunkles Verlaufs-Overlay für Lesbarkeit - nur nötig, wenn das Bild per
   <img class="content-hero__background"> statt per CSS-Variable kommt,
   sonst ist der Verlauf schon in --content-hero-image "eingebrannt". */
.content-hero--image:has(> .content-hero__background)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(90deg, rgba(0,32,67,.94) 0%, rgba(0,43,88,.78) 47%, rgba(0,43,88,.35) 100%);
  pointer-events: none;
}
.content-hero__background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.content-hero__content { position: relative; z-index: 2; }
.content-hero h1 { color: var(--white); margin: 0 0 16px; }
.content-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* --- Kicker & Breadcrumb (in beiden Headern oben verwendet) -------------- */
.kicker { margin-bottom: 14px; color: var(--blue); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kicker--light { color: var(--yellow-dark); }
.content-hero .kicker { color: var(--yellow); }

.crumb { margin-bottom: 30px; color: var(--muted); font-size: .88rem; }
.crumb a { color: var(--blue); font-weight: 700; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { margin: 0 4px; }
.content-hero .crumb { color: rgba(255,255,255,.75); }
.content-hero .crumb a { color: rgba(255,255,255,.9); text-decoration: underline; }
.content-hero .crumb a:hover { text-decoration: none; }

/* --- Hinweis-Badge, z. B. "KI optimiert" ---------------------------------
   Auf dem dunklen Hero und auf Angebots-Karten (jeweils in einem
   position:relative-Container). */
.ai-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: var(--white);
  font-size: .72rem;
  letter-spacing: .04em;
}
.offer-card__media .ai-note { right: 12px; bottom: 12px; }

/* --- Buttons --------------------------------------------------------------
   .btn ist die Basis. Die --modifier-Varianten (.btn--primary/--ghost/--lg)
   und die -Varianten (.btn-primary/-subtle/-cream/-light/-outline) sind
   zwei historisch gewachsene, parallele Namensschemata (Bindestrich vs.
   Doppel-Bindestrich) - hier absichtlich nicht zusammengeführt, da beide
   auf vielen weiteren Seiten im Einsatz sind und ein Merge eine eigene,
   größere Umstellung wäre. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 20px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--yellow-dark); }
.btn--primary { background: var(--yellow); border-color: var(--blue); color: var(--blue); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--blue); }
.btn--ghost:hover { border-color: var(--blue); background: var(--soft); }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: var(--white); }

.btn-primary { background: var(--yellow); border-color: var(--blue); color: var(--blue); }
.btn-subtle { background: transparent; border-color: var(--line); color: var(--blue); }
.btn-subtle:hover { border-color: var(--blue); background: var(--soft); }
.btn-cream { background: var(--white); border-color: var(--white); color: var(--blue-dark); }
.btn-cream:hover { background: var(--warm); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--blue); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }

.btn-row, .download-pagination, .reference-pagination, .pagination { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 2px solid var(--line); border-radius: 4px; color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.pagination a:hover { border-color: var(--blue); }
.pagination a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* --- Sections -------------------------------------------------------------
   .content-section ist der Standard-Abschnittsrahmen der Content-Seiten;
   .section--alt/--navy sind die generischen CMS-Editor-Hintergrundvarianten
   (referenzen.php u. a.) - eigenständig, da mit anderem Grundabstand als
   .content-section. */
.content-section { padding: clamp(60px,8vw,100px) 0; }
.content-section--green { background: linear-gradient(125deg,var(--blue-dark),var(--blue)); color: var(--white); }
.content-section--green h2 { color: var(--white); }
.content-section--green p { color: rgba(255,255,255,.85); }
.content-section--white { background: var(--white); }
.content-section--warm { background: var(--warm); }
.content-section__intro { max-width: 760px; margin: 10px 0 0; color: var(--muted); font-size: 1.1rem; }

.section--alt { background: var(--soft); }
.section--navy { background: var(--blue-dark); color: var(--white); }
.section--navy h2,
.section--navy h3,
.section--navy p { color: var(--white); }
.section--navy .eyebrow { color: var(--yellow); }

.route-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

/* --- Karten -----------------------------------------------------------
   .card ist eine einfache Basiskarte (Formulare u. a.). Darunter drei
   eigenständige Karten-Module: Referenzen/Downloads, Blog, Angebots-
   /Leistungen-Karten. */
.card { padding: 22px 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.h-100 { height: 100%; }

.grid, .reference-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.mt-6 { margin-top: 34px; }

.reference-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.reference-card:hover { transform: translateY(-4px); box-shadow: 0 22px 60px rgba(0,48,98,.16); }
.reference-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 28px 26px 26px; }
.reference-card__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.reference-card__meta span { padding: 4px 10px; border-radius: 20px; background: var(--soft); }
.reference-card__customer { margin-bottom: 4px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.reference-card__title { margin: 0 0 10px; font-size: 1.3rem; }
.reference-card__title a { color: var(--blue-dark); text-decoration: none; }
.reference-card__title a:hover { color: var(--blue); }
.reference-card__excerpt { flex: 1 0 auto; color: var(--muted); }
.download-card__details { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: .92rem; }
.download-card__details li + li { margin-top: 4px; }
.reference-card__fact { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.reference-card__fact strong { color: var(--blue-dark); font-size: 1.05rem; }
.reference-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--blue); font-weight: 800; text-decoration: none; }
.reference-card__link:hover { text-decoration: underline; }

.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.blog-card { display: flex; flex-direction: column; padding: 26px 24px; border: 1px solid var(--line); border-top: 5px solid var(--yellow); border-radius: 8px; background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card__meta { margin-bottom: 8px; color: var(--blue); font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.blog-card h2, .blog-card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.blog-card h2 a, .blog-card h3 a { color: var(--blue-dark); text-decoration: none; }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--blue); }
.blog-card p { flex: 1 0 auto; color: var(--muted); }
.blog-card__date { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.blog-card__date strong { color: var(--blue-dark); }
.blog-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--blue); font-weight: 800; text-decoration: none; }
.blog-card__link:hover { text-decoration: underline; }

/* Karten-Grid für "Das könnte Sie auch interessieren" (leistungen.php,
   seite.php, kb_sortiment_render) - eigenständiges Angebots-Karten-Modul,
   analog zu .service-grid/.service-card auf der Startseite. */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.offer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease;
}
.offer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.offer-card__media { position: relative; display: block; height: 190px; overflow: hidden; background: var(--soft); }
.offer-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.offer-card:hover .offer-card__media img { transform: scale(1.035); }
.offer-card__icon {
  display: grid;
  place-items: center;
  height: 120px;
  color: var(--blue);
  background: var(--soft);
}
.offer-card__content { padding: 22px 24px 26px; }
.offer-card__content h3 { margin: 0 0 8px; font-size: 1.15rem; }
.offer-card__content p { margin: 0 0 16px; color: var(--muted); }
.offer-card__link { font-weight: 700; color: var(--blue); text-decoration: none; }
.offer-card__link:hover { text-decoration: underline; }

/* Checkliste (z. B. Highlights eines Sortiment-Artikels). */
.checklist { margin: 0 0 24px; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding: 12px 10px 12px 30px;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 900;
  content: "✓";
}

/* --- Artikel-Inhalt (Blog-Beiträge) --------------------------------------- */
.article-body { max-width: 74ch; margin-inline: auto; }
.article-body img { border-radius: 8px; margin: 0 0 28px; }
.article-body p { margin: 18px 0; color: var(--ink); }
.article-body h2 { margin: 44px 0 16px; font-size: 1.9rem; }
.article-body h3 { margin: 34px 0 14px; }
.article-body ul, .article-body ol { margin: 18px 0; padding-left: 24px; color: var(--ink); }
.article-body li + li { margin-top: 8px; }
.article-body blockquote { margin: 28px 0; padding: 18px 24px; border-left: 4px solid var(--yellow); background: var(--soft); font-style: italic; color: var(--blue-dark); }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.article-body th, .article-body td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; color: var(--muted); font-size: .92rem; font-weight: 700; }

/* --- Formulare -------------------------------------------------------------- */
.form { display: grid; gap: 18px; max-width: 32rem; }
.form label { display: grid; gap: 7px; color: var(--blue-dark); font-weight: 700; }
.form input { width: 100%; padding: 13px 14px; border: 1px solid #b8c5cf; border-radius: 3px; background: var(--white); color: var(--ink); font: inherit; }
.form input:focus { border-color: var(--blue); outline: 3px solid rgba(0,63,128,.13); }

/* Cookie-/Datenschutz-Einwilligungsformular (includes/privacy-consent.php). */
.consent-form { max-width: 640px; }
.consent-form__list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.consent-form__list li { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.consent-form__list label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent-form__list input[type="checkbox"] { margin-top: 4px; flex: 0 0 auto; }
.consent-form__hint { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; }
.consent-form__status { margin-top: 18px; color: var(--muted); font-size: .88rem; }

/* --- Hinweis- & Leer-Zustände ------------------------------------------- */
.notice { max-width: 60ch; text-align: center; margin-inline: auto; }
.notice h2 { margin-top: 14px; }
.notice p:not(.kicker) { margin-top: 16px; color: var(--muted); }
.notice .actions { justify-content: center; }

/* Leerer-Zustand-Hinweis (z. B. wenn ein Leistungen-/Sortiment-Grid noch
   keine Einträge hat). */
.empty-state { padding: 32px 28px; border: 1px dashed var(--line); border-radius: 8px; background: var(--soft); text-align: center; }

/* --- CTA & Aktionen -------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Einfacher CTA-Zweispalter (Text | Aktion) - z. B. leistungen.php,
   sortiment.php, karriere.php ("Sie haben Fragen?"/"Interesse?"). */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-row h2 { margin: 0 0 6px; }
.cta-row p { margin: 0; color: var(--muted); }

/* Job-Infospalten (karriere.php: "Ihre Aufgaben" / "Das bringen Sie mit"). */
.job-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.job-columns article strong { display: block; margin-bottom: 10px; font-size: 1.05rem; color: var(--blue-dark); }
.job-columns ul { margin: 0; padding-left: 20px; color: var(--ink); }
.job-columns li + li { margin-top: 6px; }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid--3, .reference-grid, .blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .route-teaser { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .grid--3, .reference-grid, .blog-grid { grid-template-columns: 1fr; }
  .page-hero { padding-bottom: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .job-columns { grid-template-columns: 1fr; }
  .content-hero { padding: 48px 0 40px; }
  .content-hero--image { min-height: 320px; padding-bottom: 40px; }
}
