/* =========================================================
   Kretsch Gebäudetechnik GmbH — Website
   Design: clean & modern, Blau dominant + Akzent-Rot.
   Theme: Hell/Dunkel umschaltbar ([data-theme]).
   Type: Outfit (Display) + Barlow (Body) + Barlow Condensed (Labels).
   Shape-Lock: Buttons = pill, Karten/Inputs = 16px.
   Alle Schriften & Icons lokal (DSGVO – keine Dritt-Server).
   ========================================================= */

/* ---------- Theme Tokens ---------- */
:root {
  /* fixe Markenfarben */
  --navy:      #0a1f44;   /* tiefes Markennavy (Hero/Footer/Karriere) */
  --navy-2:    #122a5e;
  --blue:      #1a56db;   /* Button-Blau (Akzent) */
  --blue-700:  #1545b0;   /* Hover */
  --red:       #c8102e;   /* Marken-Rot (Akzent) */
  --red-700:   #a50d25;

  /* helle (Default) Themewerte */
  --bg:        #ffffff;
  --surface:   #f6f8fc;
  --surface-2: #eef3fe;
  --ink:       #0a1f44;   /* Überschriften */
  --text:      #1f2a44;
  --muted:     #5b6678;
  --line:      #e4e9f2;
  --blue-ink:  #1a56db;   /* Akzent-Text/Icons auf Flächen */
  --blue-300:  #93b4f5;   /* Hover-Border */
  --nav-bg:    rgba(255,255,255,.82);
  --grid-line: rgba(10,31,68,.06);   /* technisches Gitter (hell) */
  --cur: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><path d='M4 3 L4 21 L9 16 L12.5 23 L15.5 21.6 L12 15 L19 15 Z' fill='%231a56db' stroke='%23ffffff' stroke-width='0.8' stroke-linejoin='round'/></svg>") 4 3;  /* animierter Mauszeiger (JS) */

  --radius:    16px;
  --radius-sm: 12px;
  --maxw:      1240px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
  --font-body:    "Barlow", system-ui, sans-serif;
  --font-cond:    "Barlow Condensed", system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(10,31,68,.04), 0 4px 16px rgba(10,31,68,.04);
  --shadow-md: 0 8px 30px rgba(10,31,68,.08);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg:        #0d1829;
  --surface:   #111e35;
  --surface-2: #16243f;
  --ink:       #ffffff;
  --text:      #c8d6ea;
  --muted:     #9aafce;   /* heller → WCAG-AA auf dunklem Grund */
  --line:      #2b4066;   /* kräftigere feine Linien */
  --blue-ink:  #8ab0ff;   /* leuchtender Akzent (Text/Icons/Links) */
  --blue-300:  #4f73b5;
  --nav-bg:    rgba(13,24,41,.85);
  --grid-line: rgba(122,162,255,.08);
  --cg-line:   rgba(138,176,255,.34);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
  --shadow-md: 0 10px 34px rgba(0,0,0,.45);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s var(--ease), color .3s var(--ease);
}
img, video { display: block; max-width: 100%; }
/* Browser rücken <ul>/<ol> um 40px ein. Bei allen gestylten Listen (ohne Aufzählungspunkte)
   soll der Inhalt bündig mit dem restlichen Layout stehen – nur Fließtext-Listen
   in .prose behalten ihre Einrückung. */
ul[class], ol[class], .job__detail ul { padding-left: 0; }
a { color: inherit; text-decoration: none; }
/* Cross-Browser-Reset für native Buttons (Safari/Firefox rendern sonst System-Chrome statt unserer .btn-Styles) */
button { font: inherit; color: inherit; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
/* Tastatur-Fokus (Barrierefreiheit / WCAG 2.4.7) */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.btn:focus-visible, .theme-toggle:focus-visible, .nav__toggle:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
::selection { background: var(--blue); color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tint { background: var(--surface); }

/* technisches Gitter (Handwerk/Blueprint) – dezent */
.grid-overlay { position: relative; }
.grid-overlay::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
}
.grid-overlay--light { --grid-line: rgba(255,255,255,.07); }
.grid-overlay > * { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--font-cond);
  font-size: 14px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red);
  display: inline-flex; align-items: center; gap: 11px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); display: inline-block; } /* roter Akzent */
.section-head { max-width: 60ch; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.section-head p { color: var(--muted); margin-top: 18px; font-size: 1.08rem; }

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; min-height: 46px;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn i { font-size: 1.15em; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 20px rgba(26,86,219,.28); }
.btn--primary:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(26,86,219,.34); }
.btn--primary:active { transform: scale(.98); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-700); transform: translateY(-1px); }
.btn--red:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-300); background: var(--surface-2); transform: translateY(-1px); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.btn--sm { padding: 11px 20px; font-size: .92rem; min-height: 42px; }

/* ---------- Header / Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 40px; width: auto; display: block; border-radius: 8px; }
[data-theme="dark"] .brand__logo { background: #fff; padding: 5px 9px; height: 46px; box-shadow: var(--shadow-sm); }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__links a { color: var(--text); font-weight: 500; font-size: .98rem; position: relative; transition: color .2s; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue-ink); transition: width .25s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn):hover::after { width: 100%; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 999px; flex: none;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; font-size: 1.25rem;
  transition: background .2s, border-color .2s, transform .15s;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--blue-300); transform: translateY(-1px); }
.theme-toggle .ph-moon { display: inline; }
.theme-toggle .ph-sun { display: none; }
[data-theme="dark"] .theme-toggle .ph-moon { display: none; }
[data-theme="dark"] .theme-toggle .ph-sun { display: inline; }
.nav__toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.7rem; cursor: pointer; width: 44px; height: 44px; }

/* ---------- Hero ---------- */
/* Höhe abzüglich der 72px-Navi → Inhalt sitzt optisch mittig und passt auf eine Bildschirmseite */
.hero { position: relative; min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px); display: flex; align-items: center; overflow: hidden; background: var(--navy); border-bottom: 3px solid var(--red); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(8,20,46,.92) 0%, rgba(8,20,46,.72) 38%, rgba(8,20,46,.30) 64%, rgba(8,20,46,.14) 100%),
    linear-gradient(0deg, rgba(8,20,46,.55), rgba(8,20,46,0) 40%);
}
.hero__inner { position: relative; z-index: 2; padding-block: 84px 44px; max-width: 780px; }
/* ---------- Live-Öffnungsstatus (klein im Header, unter/neben dem Logo) ---------- */
/* Handy: Status unter dem Logo (kein Platz daneben) · ab Tablet: rechts neben dem Logo */
.nav__brandwrap { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex-shrink: 0; }
@media (min-width: 861px) {
  .nav__brandwrap { flex-direction: row; align-items: center; gap: 14px; }
  .openstate { padding-left: 14px; border-left: 1px solid var(--line); }
}
.openstate {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 600; letter-spacing: .01em; color: var(--muted);   /* 05.11.2026 Pflegelauf: 12 px statt 11,5 px (kleinstes Schriftmass) */
  white-space: nowrap; line-height: 1;
}
.openstate[hidden] { display: none; }
.openstate__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #9aa7bd; }
.openstate.is-open { color: #15803d; }
.openstate.is-open .openstate__dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.openstate.is-closed { color: #b91c1c; }
.openstate.is-closed .openstate__dot { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.16); }
[data-theme="dark"] .openstate.is-open { color: #4ade80; }
[data-theme="dark"] .openstate.is-closed { color: #f87171; }
@media (max-width: 560px) { .openstate { font-size: .66rem; gap: 5px; } .openstate__dot { width: 6px; height: 6px; } }

.hero__brandline { display: inline-flex; align-items: center; gap: 13px; font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1.05rem, 2.2vw, 1.5rem); color: #fff; margin-bottom: 18px; }
/* kleines Firmenlogo statt rotem Strich vor dem Firmennamen (auf weißer Mini-Platte, sichtbar auf Navy) */
.hero__mark { height: 1.7em; width: auto; background: #fff; padding: 3px 7px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.28); flex: none; }
/* Firmenname in Marken-Blau mit dünnem roten Strich darunter (Strich nur unter dem Text, nicht unter dem Logo) */
/* Firmenname in Marken-Blau, dazu ein hauchdünner weißer Rahmen (hebt ihn vom Hintergrund ab) */
.hero__brandname { color: var(--blue); padding-bottom: 5px; border-bottom: 2px solid var(--red); -webkit-text-stroke: .2px rgba(255,255,255,.55); text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 600; letter-spacing: .05em;
  color: #dbe6ff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); padding: 8px 16px; border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); margin-bottom: 26px;
}
.hero__badge i { color: #ff5c6e; } /* roter Akzent im Badge */
.hero h1 {
  color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.05;
}
.hero h1 em { font-style: normal; color: #9ec0ff; }
.hero__sub { color: #c7d2e6; font-size: clamp(1.05rem, 2vw, 1.3rem); margin-top: 24px; max-width: 54ch; }
/* rote Eco-Box auf navyblauem Grund (Signatur-Detail) */
.hero__eco { display: inline-flex; align-items: center; gap: 11px; margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--red); background: rgba(200,16,46,.16); color: #ffd5da; font-size: .98rem; font-weight: 500; border-radius: 0 10px 10px 0; }
.hero__eco i { color: #ff5c6e; font-size: 1.15rem; flex: none; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
/* Kurzform des Kontakt-Buttons – nur auf schmalen Handys sichtbar */
.cta-short { display: none; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.6); font-size: 1.5rem; animation: bob 2.4s var(--ease) infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- Trust / Kennzahlen ---------- */
/* Kennzahlen-Sektion kompakter, damit man schneller bei den Leistungen ist (Bereiche bleiben sichtbar) */
#kennzahlen { padding-block: clamp(36px, 4.5vw, 64px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 14px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__icon { color: var(--red); font-size: 1.6rem; display: block; margin-bottom: 12px; }
.stat__num { font-family: var(--font-cond); font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 700; color: var(--ink); letter-spacing: 0; line-height: 1.05; }
.stat__label { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ---------- Leistungen (Karten, keine Bilder) ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px; }
.service {
  position: relative; overflow: hidden; padding: 40px 36px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.service::before { /* dezente zweifarbige Akzentlinie (Blau→Rot) */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 62%, var(--red) 62%, var(--red) 100%);
}
.service__tag {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .9rem;
  color: var(--blue-ink); background: var(--surface-2); padding: 8px 16px; border-radius: 999px; margin-bottom: 20px;
}
.service h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service__lead { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.service__list { list-style: none; margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.service__list li { display: flex; gap: 11px; align-items: flex-start; font-size: .98rem; }
.service__list i { color: var(--blue-ink); font-size: 1.15rem; margin-top: 2px; flex: none; }
.service__more { margin-top: 22px; }
.detail-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 48px; }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.about__text p { color: var(--text); margin-top: 18px; font-size: 1.08rem; }
.about__text p:first-of-type { margin-top: 28px; }
.about__quote { margin-top: 32px; padding: 24px 28px; border-left: 3px solid var(--red); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-display); font-size: 1.32rem; font-weight: 500; line-height: 1.35; color: var(--ink); letter-spacing: -0.01em; }
.about__quote cite { display: block; margin-top: 14px; font-family: var(--font-cond); font-style: normal; font-size: .92rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.about__quote--lead { margin-top: 8px; font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.3; }
/* „Mehr lesen" im Über-uns-Text: nur auf dem Handy ein Aufklapper,
   auf größeren Bildschirmen steht der Absatz einfach da. */
.about__more > summary { display: none; }
.about__more > p { margin-top: 18px; font-size: 1.08rem; color: var(--text); }
@media (max-width: 720px) {
  .about__more > summary {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
    margin-top: 18px; padding: 14px 22px; min-height: 52px;
    border: 1px solid var(--blue-300); border-radius: 999px; background: var(--surface-2);
    font-weight: 700; font-size: 1.02rem; color: var(--blue-ink);
  }
  .about__more > summary::-webkit-details-marker { display: none; }
  .about__more > summary::after {
    content: ""; width: 8px; height: 8px; margin-top: -3px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .25s var(--ease);
  }
  .about__more[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
}

.values { display: grid; gap: 14px; }
.value { display: flex; gap: 18px; align-items: flex-start; padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.value__icon { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--blue-ink); font-size: 1.4rem; }
.value h4 { font-size: 1.08rem; }
.value p { color: var(--muted); font-size: .96rem; margin-top: 3px; }

/* ---------- Zertifizierungen & Partner (Über uns) ---------- */
/* Volle Breite, direkt unter dem Über-uns-Block, KEINE Trennlinie. */
.certs { margin-top: clamp(36px, 5vw, 56px); }
.certs__label {
  font-family: var(--font-cond); font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
/* Immer EINE Reihe (kein Umbruch) — Karten strecken sich gleichmäßig über die
   volle Breite von links nach rechts. Auf Tablet/Handy nur kleiner, nie gestapelt. */
.certs__row { display: flex; flex-wrap: nowrap; gap: clamp(8px, 1.4vw, 18px); align-items: stretch; }
.cert {
  display: flex; align-items: center; justify-content: center;
  height: clamp(48px, 8vw, 90px);            /* skaliert flüssig Desktop→Handy */
  padding: clamp(6px, 1.2vw, 14px) clamp(8px, 1.6vw, 22px);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
/* nur die Über-uns-Reihe: Karten strecken sich gleichmäßig über die volle Breite */
.certs__row .cert { flex: 1 1 0; min-width: 0; }
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
/* Logo behält Seitenverhältnis, füllt Höhe UND Breite der Karte bestmöglich aus */
.cert img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
[data-theme="dark"] .cert { border-color: rgba(255,255,255,.08); }

/* ---------- Zielgruppen ---------- */
.audience { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.acard { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; position: relative; overflow: hidden; }
.acard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); } /* roter Akzent beim Hover */
.acard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.acard:hover::before { transform: scaleY(1); }
.acard__icon { color: var(--blue-ink); font-size: 1.8rem; margin-bottom: 16px; }
.acard h4 { font-size: 1.2rem; }
.acard p { color: var(--muted); margin-top: 10px; font-size: .98rem; }

/* ---------- Karriere-Teaser ---------- */
.career { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue-700) 130%); color: #fff; border-radius: clamp(20px, 3vw, 32px); padding: clamp(40px, 6vw, 80px); }
.career::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(200,16,46,.28), transparent 70%); pointer-events: none; } /* roter Glow */
.career__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.career h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.career__lead { color: #c7d6f5; margin-top: 18px; font-size: 1.12rem; max-width: 44ch; }
.career__cta { margin-top: 34px; }
.perks { list-style: none; display: grid; gap: 14px; }
.perks li { display: flex; gap: 14px; align-items: center; padding: 16px 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); font-weight: 500; }
.perks i { color: #ff8a96; font-size: 1.35rem; flex: none; } /* roter Akzent */

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: stretch; }
.contact__list { list-style: none; display: grid; gap: 8px; margin-top: 32px; }
.contact__item { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: border-color .2s, transform .2s var(--ease); }
.contact__item:hover { border-color: var(--blue-300); transform: translateX(4px); }
/* Ganze Karte ist die Schaltfläche: der enthaltene Link wird über die komplette Kachel
   aufgespannt („stretched link") – ohne JS, weiterhin ein echter Link (Tastatur/Screenreader).
   Auf Touch bleibt das normale Tap-Verhalten: beim Scrollen löst nichts aus. */
.contact__item { position: relative; -webkit-tap-highlight-color: rgba(26,86,219,.08); }
.contact__item a.val::after,
.contact__item .contact__route::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
}
.contact__item:focus-within { border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.contact__item:active { transform: translateX(4px) scale(.995); }
/* nur das Haupt-Symbol der Kachel bekommt die Plakette – nicht Icons in Links darin */
.contact__item > i { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--blue-ink); font-size: 1.35rem; }
.contact__item .lbl { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact__item .val { font-weight: 600; color: var(--ink); font-size: 1.08rem; }
a.val:hover { color: var(--blue-ink); }
.contact__route { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .9rem; font-weight: 600; color: var(--blue-ink); }
.contact__route i { font-size: 1.1em; }
.contact__route:hover { text-decoration: underline; text-underline-offset: 2px; }
.contact__map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; box-shadow: var(--shadow-md); background: var(--surface-2); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
[data-theme="dark"] .contact__map iframe { filter: invert(.9) hue-rotate(180deg) brightness(.95) contrast(.95); }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; text-align: center; padding: 32px; overflow: hidden; }
/* unscharfe, stilisierte Karte (lokal, kein Dritt-Abruf) */
.map-consent::before { /* echtes, unscharfes Standort-Kartenbild (lokal gespeichert) */
  content: ""; position: absolute; inset: -24px; z-index: 0;
  background: #e9eef6 url("assets/map-standort.jpg") center/cover no-repeat;
  filter: blur(3px) saturate(1.04); transform: scale(1.06);
}
.map-consent::after { /* Lese-Scrim */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(246,248,252,.34), rgba(246,248,252,.72));
}
[data-theme="dark"] .map-consent::before { filter: blur(3px) invert(.92) hue-rotate(180deg) brightness(.95); }
[data-theme="dark"] .map-consent::after { background: linear-gradient(180deg, rgba(13,24,41,.5), rgba(13,24,41,.82)); }
.map-consent > * { position: relative; z-index: 1; }
.map-consent > i { font-size: 2.6rem; color: var(--blue-ink); filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.map-consent p { color: var(--text); font-size: .95rem; max-width: 34ch; }
.map-credit { position: absolute; right: 8px; bottom: 6px; z-index: 1; font-size: .68rem; color: var(--muted); background: rgba(255,255,255,.6); padding: 1px 6px; border-radius: 5px; }
[data-theme="dark"] .map-credit { background: rgba(13,24,41,.6); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b8c4dc; padding-block: 64px 32px; border-top: 3px solid var(--red); } /* roter Marken-Strich */
.footer a { color: #b8c4dc; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__logo { height: 44px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; margin-bottom: 16px; }
.footer__brand p { margin-top: 4px; font-size: .96rem; line-height: 1.7; }
/* Zertifizierungen im Footer — verkleinerte Variante der .cert-Plates aus "Über uns" */
.footer__certs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.footer__certs .cert { height: 40px; padding: 5px 12px; box-shadow: none; }
.footer__certs .cert img { max-width: 84px; }
.footer h5 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: 11px; font-size: .96rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 48px; padding-top: 24px; font-size: .86rem; color: #a3b4d0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
/* Agentur-Credit / Backlink – dezent unten rechts, ganz unten */
/* Agentur-Credit: dezent rechts, direkt ÜBER der Trennlinie des Footers */
.footer__credit { margin-top: 34px; margin-bottom: -6px; text-align: right; font-size: .76rem; color: #8698b6; }
.footer__credit a { color: #b8c4dc; text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.footer__credit a:hover { color: #fff; }

/* Leuchtende interaktive Akzente im Dark Mode */
[data-theme="dark"] .btn--primary { box-shadow: 0 6px 22px rgba(40,110,255,.45); }
[data-theme="dark"] .btn--primary:hover { box-shadow: 0 0 0 1px rgba(138,176,255,.7), 0 10px 30px rgba(40,110,255,.6); }
[data-theme="dark"] .btn--red { box-shadow: none; }
[data-theme="dark"] .btn--red:hover { box-shadow: none; }
[data-theme="dark"] .value:hover, [data-theme="dark"] .acard:hover, [data-theme="dark"] .job:hover, [data-theme="dark"] .service:hover, [data-theme="dark"] .contact__item:hover { box-shadow: var(--shadow-md), 0 0 0 1px rgba(138,176,255,.22); }
[data-theme="dark"] .theme-toggle:hover { box-shadow: 0 0 0 1px rgba(138,176,255,.4); }

/* ---------- Karriere-Seite ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%, var(--blue-700) 140%); color: #fff; padding-block: 130px 70px; }
.page-hero .eyebrow { color: #ff8a96; }
.page-hero .eyebrow::before { background: #ff8a96; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); }
.page-hero p { color: #c7d6f5; margin-top: 20px; max-width: 56ch; font-size: 1.15rem; }
.jobs { display: grid; gap: 18px; }
.job {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.job__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.tag { font-size: .8rem; font-weight: 600; padding: 5px 13px; border-radius: 999px; background: var(--surface-2); color: var(--blue-ink); display: inline-flex; align-items: center; gap: 6px; }
.tag--muted { background: var(--surface); color: var(--muted); }
.tag--red { background: rgba(200,16,46,.10); color: var(--red); }
[data-theme="dark"] .tag--red { color: #ff7080; }
.job h3 { font-size: 1.35rem; }
.job p { color: var(--muted); margin-top: 8px; font-size: .98rem; max-width: 60ch; }
.job__cta { flex: none; }
.job__icon {
  flex: none; width: 92px; height: 92px; border-radius: 20px; position: relative;
  display: grid; place-items: center; font-size: 2.7rem; color: var(--blue-ink);
  background: linear-gradient(150deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.job__icon .badge {
  position: absolute; right: -9px; bottom: -9px; width: 38px; height: 38px; border-radius: 11px;
  background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.15rem; box-shadow: var(--shadow-sm);
}
@media (max-width: 960px) { .job__icon { width: 72px; height: 72px; font-size: 2.1rem; } }
/* ---------- Job: „Mehr zur Stelle"-Aufklapper ---------- */
.job__more { margin-top: 16px; }
.job__more summary {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-weight: 600; font-size: .95rem; color: var(--blue-ink);
  padding: 10px 0; min-height: 44px; list-style: none; -webkit-tap-highlight-color: transparent;
}
.job__more summary::-webkit-details-marker { display: none; }
.job__more summary::after {
  content: ""; width: 8px; height: 8px; flex: none; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.job__more[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.job__more summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.job__more summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.job__detail { padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.job__detail h4 {
  font-family: var(--font-cond); font-size: .84rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-top: 20px; margin-bottom: 10px;
}
.job__detail ul { list-style: none; display: grid; gap: 9px; }
.job__detail li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: .96rem; line-height: 1.5; }
.job__detail li::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-top: .5em; border-radius: 50%;
  background: var(--blue-ink);
}
@media (prefers-reduced-motion: reduce) { .job__more summary::after { transition: none; } }

.apply-note { margin-top: 44px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.apply-note i { font-size: 2.2rem; color: var(--red); }
.apply-note p { color: var(--text); }
.apply-note p a { color: var(--blue-ink); font-weight: 600; }

/* ---------- Inhaltsseiten (Impressum/Datenschutz) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin-top: 26px; }
.prose p { margin-top: 14px; color: var(--text); }
.prose ul { margin-top: 14px; padding-left: 20px; }
.prose li { margin-top: 6px; color: var(--text); }
.prose a { color: var(--blue-ink); }

/* ---------- Cookie-Consent ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 300; width: min(760px, calc(100% - 28px));
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 22px 24px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.cookie[hidden] { display: none; }
.cookie__icon { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--blue-ink); font-size: 1.5rem; }
.cookie__text { flex: 1; min-width: 240px; font-size: .94rem; color: var(--text); line-height: 1.5; }
.cookie__text strong { color: var(--ink); }
.cookie__text a { color: var(--blue-ink); font-weight: 600; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Animierter Mauszeiger (blau↔rot, dünner weißer Rand; nur Maus-Geräte) ---------- */
/* Farbe wird per JS über die Variable --cur animiert; Fallback-Pfeil ist in :root definiert */
@media (pointer: fine) {
  html, body { cursor: var(--cur), auto; }
  a, button, .btn, label, select, summary, [role="button"], .theme-toggle, .nav__toggle, .job, .acard, .value, .contact__item, .map-consent { cursor: var(--cur), pointer; }
  input, textarea { cursor: text; }
}

/* ---------- Hamburger-Shimmer (weißer Sweep, „Blinker") ---------- */
.nav__toggle { position: relative; overflow: hidden; }
.nav__toggle::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(115deg, transparent 44%, rgba(255,255,255,.42) 50%, transparent 56%);
  transform: translateX(-130%);
  animation: navSweep 5s ease-in-out infinite;
}
@keyframes navSweep { 0%,86%{ transform: translateX(-130%); } 95%{ transform: translateX(130%); } 100%{ transform: translateX(130%); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Mikro-Animationen (Seitenaufbau / Wechsel) ---------- */
@keyframes bodyFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body { animation: bodyFade .5s ease both; }
.page.active { animation: pageEnter .45s var(--ease) both; }   /* greift in der Einzeldatei-Vorschau beim Navigationswechsel */

/* ---------- Willkommens-/Ladescreen ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: linear-gradient(135deg, #0a1f44 0%, #122a5e 58%, #1545b0 150%);
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
#preloader.pl-hide { opacity: 0; visibility: hidden; pointer-events: none; }
#preloader::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 28%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 44%, #000 28%, transparent 72%);
}
.pl-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; padding: 24px; }
.pl-house { position: relative; width: 320px; max-width: 78vw; margin-top: 22px; background: #fff; border-radius: 16px; box-shadow: 0 16px 46px rgba(0,0,0,.35); padding: 22px 26px; box-sizing: border-box; }
.pl-logo { width: 100%; height: auto; display: block; }
#preloader.run .pl-logo { animation: plLogoIn 1.15s var(--ease) both; }
@keyframes plLogoIn { 0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: scale(.99); } 60% { opacity: 1; } 100% { opacity: 1; clip-path: inset(0 0 0 0); transform: scale(1); } }
/* Logo-Marke: blaue Gebäudesäulen + K, roter Dachstrich, Grundlinie (statisch sichtbar) */
.lm-bar, .lm-k { fill: #1a56db; }
.lm-roof { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.lm-base { fill: var(--red); }
/* Anfangszustand NUR im Preloader (statische Heading-Marke bleibt sichtbar) */
#preloader .lm-bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
#preloader .lm-k { transform-box: fill-box; transform-origin: 64% 60%; opacity: 0; transform: scale(.5); }
#preloader .lm-roof { stroke-dasharray: 172; stroke-dashoffset: 172; }
#preloader .lm-base { transform-box: fill-box; transform-origin: left; transform: scaleX(0); }
/* kleine Logo-Marke (Haus+K, ohne Schriftzug) – z.B. neben Überschriften */
.logo-mark { display: inline-block; height: 1.4rem; width: auto; padding: 2px 5px; background: #fff; border-radius: 4px; box-sizing: content-box; vertical-align: middle; margin-left: .45em; box-shadow: 0 1px 4px rgba(8,15,40,.14); }
.lm-wrap { white-space: nowrap; }
.logo-mark--right { margin-left: auto; }
.about__quote cite.about__cite { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
/* Animationen laufen nur wenn .run gesetzt ist (wiederholbar bei Sprachwechsel) */
#preloader.run .pl-inner { animation: plRise .7s var(--ease) both; }
#preloader.run .lm-bar { animation: plBar .7s cubic-bezier(.4,0,.2,1) forwards; animation-delay: var(--d); }
#preloader.run .lm-roof { animation: plRoof .8s ease-out .45s forwards; }
#preloader.run .lm-k { animation: plK .55s cubic-bezier(.34,1.45,.5,1) .85s forwards; }
#preloader.run .lm-base { animation: plBase .5s ease-out .3s forwards; }
#preloader.run .pl-bar span { animation: plLoad 2.2s var(--ease) forwards; }
@keyframes plBar { to { transform: scaleY(1); } }
@keyframes plRoof { to { stroke-dashoffset: 0; } }
@keyframes plK { to { opacity: 1; transform: scale(1); } }
@keyframes plBase { to { transform: scaleX(1); } }
.pl-welcome { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); margin-top: 0; line-height: 1; }
.pl-welcome::after { content: ""; display: block; width: 40px; height: 3px; background: var(--red); border-radius: 2px; margin: 14px auto 0; }
.pl-sub { color: #c7d6f5; margin-top: 16px; font-size: 1.02rem; }
.pl-bar { margin-top: 30px; width: 210px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; position: relative; }
.pl-bar span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); border-radius: 999px; background: linear-gradient(90deg, #1a56db 0%, #5b8cff 68%, #ff5c6e 100%); box-shadow: 0 0 12px rgba(40,110,255,.6); }
@keyframes plLoad { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes plRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.pl-skip #preloader { display: none !important; }

@media (prefers-reduced-motion: reduce) { #preloader { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- Sprach-Flagge (DE/EN) ---------- */
.lang-flag { width: 44px; height: 44px; border-radius: 999px; flex: none; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; overflow: hidden; transition: background .2s, border-color .2s, transform .15s; }
.lang-flag:hover { background: var(--surface-2); border-color: var(--blue-300); transform: translateY(-1px); }
.lang-flag svg { width: 24px; height: 24px; border-radius: 4px; display: block; }
.lang-flag .flag-en { display: none; }
html.lang-en .lang-flag .flag-de { display: none; }
html.lang-en .lang-flag .flag-en { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .stat { border-left: 0; padding: 0; }
  .services, .about, .contact, .career__grid { grid-template-columns: 1fr; }
  /* Karriere-Vorteile mobil als 2×2-Block, zentriert unter dem Button */
  .perks { grid-template-columns: 1fr 1fr; gap: 12px; }
  /* Footer mobil: Logo/Adresse volle Breite, darunter Navigation UND Rechtliches nebeneinander */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer__brand { grid-column: 1 / -1; }
  /* .audience bleibt bewusst 2-spaltig (2×2-Block) – auch auf Tablet & Handy */
  /* „Über uns"-Werte-Kacheln (Qualität/Authentizität/…) mobil immer 2×2 */
  .values { grid-template-columns: 1fr 1fr; }
  .nav__menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 24px 24px;
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .3s var(--ease);
    align-items: stretch;
  }
  .nav__menu.is-open { transform: none; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__links li { width: 100%; }
  .nav__links a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 14px; justify-content: center; }
  .nav__toggle { display: grid; place-items: center; }
  .job { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  /* Kennzahlen bleiben mobil 2×2 (nicht untereinander) */
  .stats { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .stat__num { font-size: 1.35rem; }
  .stat__label { font-size: .84rem; }
  .service__list { grid-template-columns: 1fr; }
  /* 2×2-Kacheln auf dem Handy: engeres Padding/Abstand, damit sie sauber nebeneinander passen */
  .audience { gap: 12px; }
  .acard { padding: 20px 16px; }
  .acard h4 { font-size: 1.05rem; }
  /* 2×2-Vorteile: Symbol oben, Text darunter – Text linksbündig (bessere Lesbarkeit) */
  .perks li { flex-direction: column; align-items: flex-start; text-align: left; gap: 8px; padding: 14px 12px; font-size: .88rem; line-height: 1.35; }
  /* Karriere-Block etwas schmaler gepolstert, damit er optisch mittig sitzt */
  .career { padding: 30px 18px; }
  /* Kontakt-Kacheln volle Breite wie die Karte darunter (kein Versatz nach rechts) */
  .contact__list { width: 100%; }
  .contact__item { padding: 16px 16px; gap: 14px; }
  .contact__item:hover { transform: none; }
  .contact__item:active { transform: scale(.995); }
  /* 2×2-Werte-Kacheln auf dem Handy: Icon oben, Text darunter (sonst zu schmal) */
  .values { gap: 10px; }
  .value { flex-direction: column; gap: 10px; padding: 16px 14px; }
  /* Hinweis im Fuß und Copyright: eine Reihe, gemeinsam unter der weißen Linie */
  .footer__end { display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
                 border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 20px; }
  .footer__end .footer__credit { order: 2; margin: 0; text-align: right; flex: none; }
  .footer__end .footer__bottom { order: 1; border-top: 0; margin: 0; padding: 0; flex-direction: column; gap: 4px; min-width: 0; font-size: .74rem; line-height: 1.5; }
  .footer__end .footer__credit { font-size: .72rem; line-height: 1.5; }
  .cookie { padding: 18px; }
  /* .cert-Höhe/Padding steuert jetzt clamp() global (immer eine Reihe, nie gestapelt) */
  .footer__certs .cert { height: 34px; }
  .footer__certs .cert img { max-width: 68px; }
  /* Credit bleibt auch mobil rechts (unter der Spalte „Rechtliches") */
}

/* ---------- Mobile-Performance (flüssigeres Scrollen auf dem Handy) ---------- */
@media (max-width: 768px) {
  /* Dauer-Blur (backdrop-filter) ist auf Handys ein Haupt-Ruckel-Verursacher beim Scrollen
     -> Nav bekommt einen soliden, opaken Hintergrund statt Live-Blur. */
  .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); border-bottom: 1px solid var(--line); }
}

/* ---------- Handy-Hero-Feinschliff (Lesbarkeit + Buttons nebeneinander) ---------- */
@media (max-width: 560px) {
  /* Kräftigerer Lese-Scrim, damit Firmenname/Text sicher vor dem Poster lesbar sind */
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(8,20,46,.88) 0%, rgba(8,20,46,.66) 42%, rgba(8,20,46,.58) 100%);
  }
  /* Firmenname bleibt Marken-Blau (wie Desktop); weißer Rahmen + Schatten sorgen für Kontrast */
  .hero__brandname { text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 2px 16px rgba(0,0,0,.65); }
  /* Kontakt- und Karriere-Knopf nebeneinander (blau links, rot rechts) – als normale Buttons,
     nicht auf volle Breite gestreckt; Kontakt-Button nutzt die Kurzform „Kontakt". */
  .hero__cta { flex-wrap: nowrap; gap: 12px; margin-top: 20px; }
  .hero__cta .btn { flex: 0 1 auto; justify-content: center; white-space: nowrap; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  /* Hero insgesamt etwas höher/kompakter */
  .hero__inner { padding-block: 64px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   STARTSEITE — CLEAN. Blueprint-Gitter dezent integriert.
   Hellmodus = Standard, Dunkel = Option (Theme-Toggle).
   Ruhig & aufgeraeumt, nicht ueberladen.
   ========================================================= */

/* Statisches Blueprint-Gitter hinter den transparenten Sektionen (wie davor, NICHT bewegt) */
body.home { --bp: rgba(10,31,68,.07); background: transparent; }
[data-theme="dark"] body.home { --bp: rgba(138,176,255,.10); }
/* Basisfarbe hinter dem Gitter — als eigene Regel (nicht :has()-abhängig), damit Browser ohne :has()-Support (ältere Firefox/Safari) nicht auf Weiß zurückfallen */
html { background: var(--bg); }

#bggrid {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: var(--bg);
}
#bggrid::before {   /* eine ruhige, STATISCHE Gitter-Ebene */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--bp) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(125% 90% at 50% 6%, #000 45%, transparent 82%);
  mask-image: radial-gradient(125% 90% at 50% 6%, #000 45%, transparent 82%);
}

/* Hero-Eintritt: ruhig gestaffelt (Hintergrund = Video + Lese-Scrim, siehe Basis-Hero) */
.hero__inner > * { opacity: 0; transform: translateY(16px); animation: heroUp .8s var(--ease) forwards; }
.hero__inner > *:nth-child(1) { animation-delay: .12s; }
.hero__inner > *:nth-child(2) { animation-delay: .22s; }
.hero__inner > *:nth-child(3) { animation-delay: .32s; }
.hero__inner > *:nth-child(4) { animation-delay: .42s; }
.hero__inner > *:nth-child(5) { animation-delay: .52s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

.stat__num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hero__inner > * { opacity: 1; transform: none; animation: none; }
  .hero__video { display: none; }   /* kein Auto-Video bei reduzierter Bewegung → Poster bleibt */
}

/* =========================================================
   KI-WASSERZEICHEN — Transparenz-Pflicht fuer generierte Medien
   Bei JEDEM KI-generierten Bild/Video unten rechts ein dezenter
   Hinweis. Theme-aware, sehr geringe Deckkraft + Blend-Mode →
   verliert sich fast im Bild, nur bei genauem Hinsehen erkennbar.
   Nutzung:
     <figure class="ai-media">
       <img src="assets/xyz.webp" alt="…" loading="lazy">
       <figcaption>KI-generiertes Bild</figcaption>
     </figure>
   (Video: <video> statt <img>; figcaption „KI-generiertes Video".
    Symbol/Icon: figcaption „KI-generiertes Symbol".)
   ========================================================= */
.ai-media { position: relative; display: inline-block; line-height: 0; border-radius: inherit; overflow: hidden; }
.ai-media > img, .ai-media > video { display: block; width: 100%; height: auto; border-radius: inherit; }
.ai-media > figcaption {
  position: absolute; right: 9px; bottom: 7px; z-index: 2;
  margin: 0; padding: 0; pointer-events: none; -webkit-user-select: none; user-select: none;
  font-family: var(--font-body); font-size: clamp(9px, 1.1vw, 11px);
  font-weight: 500; letter-spacing: .015em; line-height: 1; white-space: nowrap;
  color: rgba(118,126,143,.40);     /* hell: sehr helles Grau – kaum sichtbar */
  mix-blend-mode: multiply;          /* schmilzt in helle Bildbereiche */
}
[data-theme="dark"] .ai-media > figcaption {
  color: rgba(150,170,205,.34);     /* dunkel: gedaempftes Blau-Grau */
  mix-blend-mode: screen;            /* schmilzt in dunkle Bildbereiche */
}
@media (prefers-reduced-transparency: reduce) {  /* a11y: Hinweis garantiert lesbar halten */
  .ai-media > figcaption { mix-blend-mode: normal; color: rgba(90,98,115,.6); }
}

/* =========================================================
   Hero-Video (Cutaway-Haus, MP4/WebM) + KI-Wasserzeichen.
   Poster als Hintergrund → sauberer Fallback bei reduced-motion.
   ========================================================= */
.hero { background: #0a1f44 url("assets/hero-poster.jpg") center 40% / cover no-repeat; }
.hero__aiwm {            /* dezenter KI-Hinweis auf dem Hero-Video, unten rechts */
  position: absolute; right: 13px; bottom: 12px; z-index: 2;
  font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: .02em;
  color: rgba(255,255,255,.30);     /* sehr hell → verliert sich fast im Bild */
  pointer-events: none; user-select: none;
}

/* ── M3 · Mobile-CTA-Höhe (Webdesign & Animation Checkliste §5b) ──────────────
   Handy: Haupt-CTAs > 52px (Tap-Sicherheit) und < 64px (sonst Banner-Blindness).
   .btn--sm sind sekundäre "mehr erfahren"-Links und bleiben bewusst klein —
   auf 56px aufgeblasen würden genau sie wie Werbebanner wirken. Sie bekommen
   nur die 44px-Tap-Target-Mindestgröße (Checkliste §5 Regel 20; vorher 42px). */
@media(max-width:720px){
  .btn:not(.btn--sm){min-height:56px;justify-content:center}
  .btn--sm{min-height:44px}
}

/* =========================================================
   GALERIE — versetzte Reihen (Desktop 4/3, Handy 2/3)
   Flex-Layout: jede Kachel bekommt eine Zielbreite; durch
   wechselnde Breiten entstehen automatisch versetzte Reihen.
   ========================================================= */
.gallery { display: flex; flex-wrap: wrap; gap: 14px; }
.gcell {
  position: relative; flex: 1 1 auto; overflow: hidden;
  border-radius: var(--radius); background: var(--surface-2);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.gcell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcell::after {   /* dezentes Aufhellen beim Zeigen */
  content: ""; position: absolute; inset: 0; background: rgba(26,86,219,0);
  transition: background .25s var(--ease);
}
.gcell:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gcell:hover::after { background: rgba(26,86,219,.10); }
.gcell:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Desktop: Reihen mit 4 bzw. 3 Bildern im Wechsel */
@media (min-width: 961px) {
  .gcell { height: 260px; }
  .gcell:nth-child(14n+1), .gcell:nth-child(14n+2),
  .gcell:nth-child(14n+3), .gcell:nth-child(14n+4) { flex-basis: calc(25% - 11px); }   /* 4er-Reihe */
  .gcell:nth-child(14n+5), .gcell:nth-child(14n+6), .gcell:nth-child(14n+7) { flex-basis: calc(33.333% - 10px); height: 320px; } /* 3er-Reihe */
  .gcell:nth-child(14n+8), .gcell:nth-child(14n+9),
  .gcell:nth-child(14n+10), .gcell:nth-child(14n+11) { flex-basis: calc(25% - 11px); }
  .gcell:nth-child(14n+12), .gcell:nth-child(14n+13), .gcell:nth-child(14n+14) { flex-basis: calc(33.333% - 10px); height: 320px; }
}
/* Tablet: 3er-Reihen */
@media (min-width: 561px) and (max-width: 960px) {
  .gcell { height: 220px; flex-basis: calc(33.333% - 10px); }
}
/* Handy: durchgehend 2 Bilder nebeneinander */
@media (max-width: 560px) {
  .gallery { gap: 10px; }
  .gcell { flex-basis: calc(50% - 5px); height: 160px; }
}

/* ---------- Vollbild-Ansicht ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  background: rgba(6,14,32,.94); padding: 24px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: min(1200px, 92vw); max-height: 82vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #cfdaf0; font-size: .92rem; padding: 0 24px; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center; cursor: pointer;
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10); color: #fff; font-size: 1.4rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s, transform .15s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); transform: scale(1.05); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
@media (max-width: 560px) {
  .lightbox { padding: 12px; }
  .lightbox__close, .lightbox__nav { width: 44px; height: 44px; font-size: 1.2rem; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__cap { font-size: .82rem; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gcell, .lightbox__close, .lightbox__nav { transition: none; }
}

/* CTA unter einem Abschnitts-Text (z. B. „Zur Galerie") – mit Luft zum Text darüber */

/* Zielgruppen-Kästen: Desktop ausführlich, Handy nur Stichpunkt */
.acard__short { display: none; }
@media (max-width: 700px) { .acard__short { display: block; } .acard__long { display: none; } }
.audience__cta { display: flex; justify-content: center; margin-top: 38px; }
@media (max-width: 700px) {
  .hide-mobile { display: none; }
  .audience__cta { margin-top: 28px; }
  .audience__cta .btn { font-size: 1.02rem; padding: 16px 26px; }
}

/* ====== HANDY: DAS GITTER WIRD NICHT FESTGENAGELT (05.08.2026) ==============
   Gleiche Ursache wie bei den anderen Seiten, gemessen an einer echten
   Bildschirmaufnahme: Ein Handy scrollt den Inhalt auf einer vom Hauptthread
   entkoppelten Ebene weiter — deshalb läuft der Schwung nach dem Wischen so
   weich. Eine `position:fixed`-Fläche darf da nicht mitwandern; sie muss bei
   jedem Bild an ihren Platz zurückgerechnet werden, und diese Korrektur kommt
   einen Takt zu spät. Sichtbar wird das als Springen des Hintergrunds.

   `#bggrid` liegt deshalb am Handy oben am Dokument und scrollt mit dem ersten
   Bildschirm weg. Darunter trägt der Grundton, den `html` und `body` ohnehin
   führen (`var(--bg)`) — der Übergang ist unsichtbar, weil `#bggrid` genau
   dieselbe Farbe hat.

   `100lvh` statt `100%`: Beim Wischen fährt die Adressleiste ein und aus, der
   sichtbare Bereich wird dabei rund 60 px höher. `lvh` ist die größte Fassung
   und ändert sich beim Scrollen nicht — die Fläche steht still.

   Der `body `-Präfix ist kein Zierrat: Er hebt die Spezifität an, damit die
   Regel unabhängig von der Reihenfolge gewinnt. Zusammenfüge-Optimierer sortieren
   Dateien um; bei gleicher Spezifität gewänne sonst wieder die alte Regel.
   =========================================================================== */
@media (max-width: 720px), (pointer: coarse) {
  body #bggrid { position: absolute; top: 0; left: 0; right: 0; height: 100lvh; }
}

/* Instagram-Knopf (24.08.2026): Marketing ist Hauptkanal, Website nur Außenauftritt —
   darum das echte IG-Pink statt Site-Tokens. Radius 50%: die Site-Knöpfe sind
   999px-Pillen, der runde Knopf reiht sich ein. align-self:center, weil .hero__cta
   kein align-items setzt und die Text-Knöpfe daneben etwas höher sind; flex:none,
   damit ihn die nowrap-Handyzeile (max-560px) nicht quetscht. */
.ig-knopf{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;min-width:44px;min-height:44px;border-radius:50%;background:radial-gradient(circle at 30% 107%,#fdf497 0%,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285AEB 90%);box-shadow:0 4px 14px rgba(214,36,159,.35);transition:transform .2s ease;align-self:center;flex:none}
.ig-knopf:hover{transform:translateY(-2px) scale(1.05)}
@media (prefers-reduced-motion:reduce){.ig-knopf{transition:none}.ig-knopf:hover{transform:none}}
/* Handy: die Hero-Zeile ist ab 560px bewusst nowrap und wird am Viewport geclippt —
   mit dem dritten Element ragte der IG-Knopf ab 360px unsichtbar aus dem Bild
   (gemessen 24.08.2026: rechtsRand 374 bei Viewport 360). Darum darf die Zeile
   NUR mit IG-Knopf wieder umbrechen; er rückt dann sichtbar in die zweite Zeile.
   Ohne :has-Unterstützung bleibt schlicht der alte nowrap-Stand. */
@media (max-width:560px){
  .hero__cta:has(.ig-knopf){flex-wrap:wrap}
}

/* ═══ INSTAGRAM-PILLE — gemeinsamer Bau-Vertrag (24.08.2026) ══════════════════
   Steht bewusst NACH den .ig-knopf-Basisregeln oben: die setzen width:48px,
   den IG-Verlauf als Fläche und das pinke Leuchten — genau das wird hier
   gezielt überschrieben (doppelte Klasse hebt die Spezifität).

   Warum so: der Verlauf bleibt auf der Glyph-Kachel, damit Instagram erkennbar
   bleibt. Alles andere kommt aus Kretsch-Tokens — Glasfläche und -rahmen wie
   .btn--light (die Glas-Variante der Site auf dunklem Hero-Navy), Radius 999px
   wie jeder .btn, Schrift var(--font-body)/600 wie die Knopf-Beschriftung,
   Fokusring var(--blue-ink) wie .btn:focus-visible. Kein Schatten: der rote
   Karriere-Knopf daneben trägt auch keinen, und das alte pinke Leuchten würde
   die Pille aus der Reihe heben.
   ─────────────────────────────────────────────────────────────────────────── */
.ig-knopf.ig-knopf--pille{
  position:relative;                  /* trägt die ::after-Hover-Fläche */
  width:auto;min-width:0;             /* hebt width:48px der Basisregel auf */
  height:48px;min-height:48px;        /* Tap-Ziel ≥44px, Höhe der Hero-Knöpfe */
  /* 25.08.2026, angeglichen an den früheren Stand (Instagram bis an den linken Rand
     ohne weissen Rahmen, rechts rund, dann der Name):
     KEIN Innenabstand mehr — die Farbkappe fuellt das linke Ende ganz aus,
     den Abstand traegt der Name. `overflow:hidden` schneidet die Kappe auf
     die Rundung des Knopfes zu. */
  padding:0;
  gap:0;
  overflow:hidden;
  justify-content:flex-start;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.4);
  border-radius:999px;
  box-shadow:none;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);  /* wie .btn--light */
  text-decoration:none;
  transition:transform .2s ease;      /* nur transform — Farbwechsel läuft über ::after/opacity */
}

/* Hover-Tönung als eigene Ebene: nur opacity animiert, kein Paint-Wechsel am Knopf selbst. */
.ig-knopf--pille::after{
  content:"";position:absolute;inset:0;
  border-radius:inherit;
  background:rgba(255,255,255,.12);
  opacity:0;transition:opacity .2s ease;pointer-events:none;
}
.ig-knopf.ig-knopf--pille:hover{transform:translateY(-2px)}
.ig-knopf--pille:hover::after{opacity:1}
.ig-knopf.ig-knopf--pille:focus-visible{outline:2px solid var(--blue-ink);outline-offset:3px}

/* ── DIE KAPPE ──────────────────────────────────────────────────────────────
   Der EINZIGE Ort, an dem Instagram seine eigenen Farben behaelt — aber nicht
   mehr als aufgeklebtes rundes Plaettchen mit Luft ringsum, sondern als Kappe,
   die das linke Ende des Knopfes ganz ausfuellt. Links braucht sie KEINEN
   eigenen Radius: das `overflow:hidden` der Pille schneidet sie auf deren
   Rundung zu. Rechts traegt sie ihren eigenen — die Site ist rund.
   `z-index` ist Pflicht: die Hover-Toenung `::after` steht als letztes Kind in
   der Baumreihenfolge und laege sonst darueber. */
.ig-knopf--pille .ig-glyph{
  position:relative;z-index:1;
  display:flex;align-items:center;justify-content:center;
  width:58px;height:100%;flex:none;
  border-radius:0 999px 999px 0;
  background:radial-gradient(circle at 30% 107%,#fdf497 0%,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285AEB 90%);
}
.ig-knopf--pille .ig-glyph svg{display:block;width:22px;height:22px}

/* Der Name gehört der Website, nicht Instagram. */
/* Schrift = LOGOSCHRIFT, nicht Fließtext (24.08.2026): Die Wortmarke in
   assets/logo.png ist eine fette, leicht schmal laufende Versal-Grotesk mit
   weiter Sperrung ("KRETSCH" gross, darunter "GEBÄUDETECHNIK GMBH"). Genau
   diese Wortmarke setzt die Site zwei Zeilen weiter oben als TEXT — die
   .hero__brandline direkt über den Knöpfen läuft in var(--font-cond) =
   Barlow Condensed 700, uppercase, gesperrt. Also erbt der Handle dieselbe
   Schrift statt var(--font-body) (Barlow = Fließtext).
   Kein text-transform:uppercase: die dritte Logozeile ("Elektro Heizung Gas
   Sanitär Solar Öl") ist gemischt gesetzt, und der Handle ist ein Eigenname —
   @KRETSCH_GEBAEUDETECHNIK wäre schlicht falsch geschrieben.
   Groesse: Barlow Condensed baut schmaler und optisch kleiner als Barlow,
   darum .95rem -> 1.02rem und Sperrung .01em -> .04em (zitiert die Sperrung
   der Wortmarke). Die Pille wird dadurch sogar etwas schmaler als vorher und
   steht ruhig neben Kontakt- und Karriere-Knopf. */
.ig-knopf--pille .ig-name{
  font-family:var(--font-cond);
  font-weight:700;
  font-size:1.02rem;
  line-height:1;
  letter-spacing:.04em;
  color:#fff;
  white-space:nowrap;
  min-width:0;overflow:hidden;text-overflow:ellipsis;  /* Notbremse bei sehr langen Handles */
  position:relative;z-index:1;        /* ueber der ::after-Toenung, s. Kappe */
  /* Der Innenabstand sitzt am NAMEN, nicht am Knopf — der Knopf selbst hat
     keinen mehr, sonst kaeme die Kappe nicht an den Rand. */
  padding:0 1.3rem 0 .85rem;
}

/* Zeilenverhalten im Hero: die Pille ist nicht mehr 48px breit, darum flex:0 0 auto. */
.hero__cta .ig-knopf.ig-knopf--pille{flex:0 0 auto;align-self:center}

/* ── Handy: die Pille bekommt ihre eigene Zeile ─────────────────────────────
   560px ist der Punkt, an dem .hero__cta auf nowrap steht (Zeile ~700) — genau
   dort ragte der dritte Knopf früher aus dem Bild. Jetzt bricht die Zeile
   wieder um und die Pille steht als volle Zeile unter Kontakt + Karriere.
   Ohne :has-Unterstützung greift diese Regel trotzdem, sie braucht kein :has. */
/* ── Handy: gestapelt, aber in GLEICHER Breite ──────────────────────────────
   25.08.2026, aus der Messung bei K17: Untereinander faellt jeder
   Breitenunterschied sofort auf. `width` statt `max-width` bindet alle drei
   Knoepfe an denselben Wert, unabhaengig davon, wie breit ihre Beschriftung
   rechnet — eine Absicherung ueber `min-width` kippt, sobald eine Schrift
   anders baut (bei K17 war die Anzeigeschrift 8,6 px breiter als gerechnet).
   Die Kappe bleibt links am Rand, der Handle rueckt in die Mitte des Rests. */
@media (max-width:560px){
  .hero__cta{flex-wrap:wrap;justify-content:center}
  .hero__cta .btn,
  .hero__cta .ig-knopf.ig-knopf--pille{
    flex:0 0 auto;
    width:min(20rem,92%);
    max-width:none;
    margin-inline:auto;
  }
  /* Auf dem Handy wachsen die .btn durch ihren groesseren Innenabstand auf
     56 px — die Pille blieb bei 48 und stand als flacherer Klotz darunter
     (gemessen bei 375 px). Gleiche Breite ohne gleiche Hoehe sieht man sofort. */
  .hero__cta .ig-knopf.ig-knopf--pille{height:56px;min-height:56px}
  .ig-knopf--pille .ig-name{flex:1 1 auto;text-align:center;padding-inline:.6rem;font-size:.97rem}
  /* 12.11.2026 Mobil-Pruefer (MB4): ohne dritten Knopf (Kretsch) stehen die zwei Hero-Knoepfe
     nebeneinander statt gestapelt. Vorher gemessen bei 375: top 624 / 692 (zwei Zeilen). */
  .hero__cta:not(:has(.ig-knopf)){flex-wrap:nowrap;gap:.6rem}
  .hero__cta:not(:has(.ig-knopf)) .btn{flex:1 1 0;width:auto;min-width:0;margin-inline:0;padding-inline:.9rem}
}

@media (prefers-reduced-motion:reduce){
  .ig-knopf.ig-knopf--pille{transition:none}
  .ig-knopf.ig-knopf--pille:hover{transform:none}
  .ig-knopf--pille::after{transition:none}
}

/* Handy: Hero-Überschrift nur „Vier Fachbereiche. Ein Versprechen.“ (Mobil-Prüfer MB3, 12.11.2026) */
@media (max-width: 600px) { .hero h1 .h1-lang { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; } }
