/* ==========================================================================
   Markurt & Turowski – Prototyp
   Mobile first. Ein Motiv: die Dachschräge (45°-Abschrägung, rechts oben).
   Jeder Block (.c-*) entspricht später einem Gutenberg-Block-Pattern.
   ========================================================================== */

@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Farben (theme.json: palette) */
  --navy: #1c2e5c;
  --navy-2: #2a3f75;
  --navy-3: #3d5491;
  --navy-4: #6b80b8;
  --anthrazit: #22262d;
  --ink: #1d2027;
  --muted: #4a505b;
  --ground: #ffffff;
  --tone: #f1f3f6;
  --tone-2: #e2e7ef;
  --red: #d3141c;
  --red-dark: #a80f16;
  --on-dark: #ffffff;
  --on-dark-soft: #c8d1e6;

  /* Typografie (theme.json: typography) */
  --font-display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-display: clamp(2.5rem, 1.2rem + 5.6vw, 6.5rem);
  --step-h2: clamp(2rem, 1.2rem + 3.2vw, 3.75rem);
  --step-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-small: 0.9375rem;

  /* Raster */
  --gutter: clamp(16px, 3.2vw, 48px);
  --max: 1360px;
  --section: clamp(88px, 11vw, 200px);
  --cut: clamp(28px, 4.5vw, 72px);
  --cut-s: 10px;

  /* Bewegung */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 180ms;
  --t-mid: 420ms;

  --bar-h: 0px;
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: var(--bar-h);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* --- Typo -------------------------------------------------------------- */
.h-display, .h2, .h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.h-display { font-size: var(--step-display); line-height: .96; letter-spacing: -0.03em; }
.h2 { font-size: var(--step-h2); line-height: 1; }
.h3 { font-size: var(--step-h3); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.4rem); line-height: 1.45; max-width: 46ch; }
.small { font-size: var(--step-small); line-height: 1.5; }
.muted { color: var(--muted); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; }
.num { font-variant-numeric: tabular-nums; }

/* --- Layout ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.field-navy { background: var(--navy); color: var(--on-dark); }
.field-dark { background: var(--anthrazit); color: var(--on-dark); }
.field-tone { background: var(--tone); }
.field-navy .muted, .field-dark .muted { color: var(--on-dark-soft); }
.grid { display: grid; gap: clamp(24px, 3vw, 48px); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid > * { grid-column: 1 / -1; }

/* --- Motiv: Dachschräge ------------------------------------------------ */
.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut-l { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.gable { clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%); }
.bullet-cut { list-style: none; padding: 0; }
.bullet-cut li { position: relative; padding-left: 1.6em; }
.bullet-cut li + li { margin-top: .55em; }
.bullet-cut li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: .7em; height: .7em; background: var(--red);
  clip-path: polygon(0 0, 55% 0, 100% 45%, 100% 100%, 0 100%);
}
.field-navy .bullet-cut li::before, .field-dark .bullet-cut li::before { background: #fff; }

/* --- Buttons ----------------------------------------------------------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.4em; border: 0; background: var(--bg); color: var(--fg);
  font: 600 1.0625rem/1 var(--font-text); text-decoration: none; letter-spacing: .005em;
  clip-path: polygon(0 0, calc(100% - var(--cut-s)) 0, 100% var(--cut-s), 100% 100%, 0 100%);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { --bg: var(--red-dark); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--light { --bg: #fff; --fg: var(--navy); }
.btn--light:hover { --bg: var(--tone-2); }
.btn--navy { --bg: var(--navy); }
.btn--navy:hover { --bg: var(--navy-2); }
.btn--ghost { --bg: transparent; --fg: currentColor; padding-inline: 0; min-height: 44px; clip-path: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.btn--ghost:hover { --bg: transparent; color: var(--red); }
.field-navy .btn--ghost:hover, .field-dark .btn--ghost:hover { color: #fff; text-decoration-color: var(--red); }
.btn--block { width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.link-arrow { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; transition: gap var(--t-fast) var(--ease), color var(--t-fast); }
.link-arrow:hover { gap: .7em; color: var(--red); }
.field-navy .link-arrow:hover, .field-dark .link-arrow:hover { color: #fff; }

/* --- Header ------------------------------------------------------------ */
.c-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; }
.c-header__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.c-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.c-brand__name { font: 700 1.375rem/1 var(--font-display); letter-spacing: -0.01em; }
.c-brand__name b { color: var(--red); font-weight: 700; }
.c-brand__sub { font-size: .8125rem; margin-top: 4px; color: var(--on-dark-soft); letter-spacing: .01em; }
.c-nav { display: none; }
.c-header__phone { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: #fff; }
.c-header__phone svg { width: 24px; height: 24px; }
.c-header__phone span { display: none; }
.c-header__cta { display: none; }
.c-menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 4px 0 8px; background: none; border: 0; color: #fff; font-weight: 600; }
.c-menu-btn__bars { position: relative; width: 22px; height: 14px; }
.c-menu-btn__bars::before, .c-menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2.5px; background: currentColor; transition: transform var(--t-fast) var(--ease), top var(--t-fast); }
.c-menu-btn__bars::before { top: 2px; }
.c-menu-btn__bars::after { top: 10px; }
.c-menu-btn[aria-expanded="true"] .c-menu-btn__bars::before { top: 6px; transform: rotate(45deg); }
.c-menu-btn[aria-expanded="true"] .c-menu-btn__bars::after { top: 6px; transform: rotate(-45deg); }

.c-drawer { position: fixed; inset: 64px 0 0 0; z-index: 49; background: var(--navy); color: #fff; overflow-y: auto; padding: 24px var(--gutter) 120px; display: none; }
.c-drawer.is-open { display: block; animation: drawerIn var(--t-mid) var(--ease); }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-8px); } }
.c-drawer ul { list-style: none; padding: 0; margin: 0; }
.c-drawer a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; font: 700 2rem/1.05 var(--font-display); text-decoration: none; }
.c-drawer a small { font: 500 .9375rem var(--font-text); color: var(--on-dark-soft); }
.c-drawer__sub a { font-size: 1.375rem; padding: 10px 0; font-weight: 600; }
.c-drawer__sub { padding: 4px 0 12px 16px; }
.c-drawer__contact { margin-top: 32px; display: grid; gap: 12px; }
.tag-hiring { display: inline-block; background: var(--red); color: #fff; font: 600 .8125rem/1 var(--font-text); padding: 6px 8px; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); }

/* --- Sticky-Leiste mobil ---------------------------------------------- */
.c-callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: var(--anthrazit); padding-bottom: env(safe-area-inset-bottom); }
.c-callbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; color: #fff; text-decoration: none; font-weight: 600; font-size: .875rem; transition: background var(--t-fast); }
.c-callbar a:active { background: var(--navy-2); }
.c-callbar a svg { width: 22px; height: 22px; }
.c-callbar a.is-primary { background: var(--red); }
.c-callbar a.is-primary:active { background: var(--red-dark); }
:root { --bar-h: 64px; }

/* --- Hero: Ordnerstapel ----------------------------------------------- */
.stars { color: #ffc93c; letter-spacing: 1px; }


/* --- Haus-Navigator --------------------------------------------------- */
.c-nav-house__grid { display: grid; gap: 32px; }
.c-nav-house__title { font: 700 var(--step-h2)/1 var(--font-display); letter-spacing: -0.02em; color: var(--muted); }
.c-nav-house__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.c-nav-house__grid > * { min-width: 0; }
.c-nav-house__item {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; text-align: left; text-decoration: none;
  font: 700 1.625rem/1.1 var(--font-display); letter-spacing: -0.01em; color: var(--muted); transition: color var(--t-fast) var(--ease);
}
.c-nav-house__item:hover { color: var(--ink); }
.c-nav-house__item[aria-pressed="true"] { color: var(--ink); }
.c-nav-house__item[aria-pressed="true"]::before { content: ""; width: .55em; height: .55em; background: var(--red); clip-path: polygon(0 0, 55% 0, 100% 45%, 100% 100%, 0 100%); }
.c-nav-house__stage { position: relative; background: var(--tone); padding: 24px 12px 0; }
.c-nav-house__stage svg { width: 100%; height: auto; }
.c-nav-house__panel { display: grid; gap: 16px; }
.c-nav-house__panel[hidden] { display: none; }
.c-nav-house__fact { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
.c-nav-house__fact img { width: 112px; aspect-ratio: 1; object-fit: cover; }
.c-nav-house__fact .h3 { margin-bottom: 6px; }

/* Haus-SVG */
.house .z { cursor: pointer; }
.house .z-bg { fill: transparent; transition: fill var(--t-mid) var(--ease); }
.house .z:hover .z-bg { fill: rgba(211, 20, 28, .07); }
.house .z.is-active .z-bg { fill: rgba(211, 20, 28, .13); }
.house .z.is-active .z-obj { fill: var(--red); }
.house .z.is-active .z-line { stroke: var(--red); }
.house .fan { transform-box: view-box; transform-origin: 62px 393px; animation: wp-fan 3s linear infinite; }
@keyframes wp-fan { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .house .fan { animation: none; } }
.house .pipe-heat { stroke: var(--red); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.house .pipe-power { stroke: var(--navy); stroke-width: 3; fill: none; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .6; }
.house.is-flowing .pipe-heat { stroke-dasharray: 10 8; animation: flow 1.2s linear infinite; opacity: .9; }
.house.is-flowing .pipe-power { animation: flow 1s linear infinite; opacity: .9; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.house text { font: 600 13px var(--font-text); fill: var(--muted); }
@media (max-width: 699px) { .house text { display: none; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 4px 16px; font-size: var(--step-small); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 26px; height: 4px; background: var(--red); display: inline-block; }
.legend i.p { background: none; border-top: 3px dotted var(--navy); height: 0; }

/* --- Meister-Panel ---------------------------------------------------- */
.c-masters { padding-inline: 10px; }
.c-masters__panel { background: var(--navy); color: #fff; overflow: hidden; display: grid; gap: 40px; padding: 48px 20px 0; }
.c-masters__people { display: grid; gap: 40px; }
.c-masters__duo { display: grid; gap: 40px; }
/* Porträt mit klarer Kante: Dachschräge oben rechts, rote Unterkante */
.c-person { --cut: 18px; display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: start; }
.c-person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-bottom: 4px solid var(--red);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
@media (min-width: 700px) {
  .c-masters__duo { grid-template-columns: 1fr 1fr; gap: 32px; }
  .c-masters__duo .c-person { --cut: 32px; display: block; }
  .c-masters__duo .c-person img { width: min(100%, 220px); border-bottom-width: 5px; margin-bottom: 20px; }
}
.c-person .h3 { margin-bottom: 4px; }
.c-person__role { color: var(--on-dark-soft); font-size: var(--step-small); margin-bottom: 10px; }
.c-masters__photo { justify-self: center; width: 86vw; max-width: 620px; margin-bottom: -18%; }
.c-masters__photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

/* --- Förder-Teaser ---------------------------------------------------- */
.c-funding { display: grid; gap: 40px; }
.c-funding__stack { display: grid; gap: 6px; }
.c-funding__row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 20px; background: var(--tone); }
.c-funding__row b { font: 700 clamp(2.5rem, 1.6rem + 3vw, 4.5rem)/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; margin-bottom: 6px; }
@media (min-width: 560px) { .c-funding__row { grid-template-columns: 7.5rem 1fr; column-gap: 20px; align-items: baseline; } .c-funding__row b { grid-row: span 2; margin: 0; } }
@media (min-width: 1024px) { .c-funding__row { grid-template-columns: 10rem 1fr; } }
.c-funding__row--total { background: var(--navy); color: #fff; }
.c-funding__row--total .muted { color: var(--on-dark-soft); }
.c-funding__row--warn { background: var(--red); color: #fff; }
.c-funding__row span { font-weight: 600; }
.c-funding__row p { grid-column: -2; }
.c-funding__note { margin-top: 16px; }

/* --- Ablauf: Akkordeon getönter Panels --------------------------------- */
.c-steps__intro { display: grid; gap: 20px; margin-bottom: 48px; }
.c-steps__row { display: flex; flex-direction: column; }
.c-step { --c: var(--navy); --fg: #fff; background: var(--c); color: var(--fg); position: relative; overflow: hidden; }
.c-step:nth-child(2) { --c: var(--navy-2); }
.c-step:nth-child(3) { --c: var(--navy-3); }
.c-step:nth-child(4) { --c: var(--navy-4); --fg: #0f1730; }
.c-step:nth-child(5) { --c: #b9c5e2; --fg: #0f1730; }
.c-step:nth-child(6) { --c: var(--tone-2); --fg: var(--ink); }
.c-step__btn { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 64px; padding: 0 20px; cursor: pointer; font: 700 1.25rem/1.1 var(--font-display); letter-spacing: -0.01em; }
.c-step__btn:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.c-step__btn::after { content: ""; width: 14px; height: 14px; background: currentColor; clip-path: polygon(0 0, 55% 0, 100% 45%, 100% 100%, 0 100%); transition: transform var(--t-fast) var(--ease); }
.c-step.is-open .c-step__btn::after { transform: rotate(90deg); }
.c-step__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-mid) var(--ease); }
.c-step.is-open .c-step__body { grid-template-rows: 1fr; }
.c-step__inner { overflow: hidden; }
.c-step__content { padding: 0 20px 28px; display: grid; gap: 18px; }
.c-step__content p { max-width: 40ch; }
/* Bild läuft bis an den Kartenrand und blendet weich in die Kartenfarbe über */
.c-step__content img { display: block; width: calc(100% + 40px); max-width: none; margin: 0 -20px -28px; aspect-ratio: 16 / 10; object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%); }
.c-step__time { font-weight: 600; }
/* Richtungswechsel: neuer Inhalt fährt aus der Klickrichtung herein, alter schiebt sich hinaus */
.c-steps__row { --t-step: 700ms; }
.c-steps__row[data-dir="fwd"] .c-step.is-open .c-step__content { animation: step-in-r var(--t-step) var(--ease) both; }
.c-steps__row[data-dir="back"] .c-step.is-open .c-step__content { animation: step-in-l var(--t-step) var(--ease) both; }
.c-steps__row[data-dir="fwd"] .c-step.is-leaving .c-step__content { animation: step-out-l var(--t-step) var(--ease) both; }
.c-steps__row[data-dir="back"] .c-step.is-leaving .c-step__content { animation: step-out-r var(--t-step) var(--ease) both; }
.c-steps__row[data-dir] .c-step.is-open .c-step__content img { animation: step-img calc(var(--t-step) * 1.6) var(--ease) both; }
@keyframes step-in-r { from { opacity: 0; transform: translateX(80px); } }
@keyframes step-in-l { from { opacity: 0; transform: translateX(-80px); } }
@keyframes step-out-l { to { opacity: 0; transform: translateX(-80px); } }
@keyframes step-out-r { to { opacity: 0; transform: translateX(80px); } }
@keyframes step-img { from { transform: scale(1.08); } }

/* --- Kundenstimme ----------------------------------------------------- */
.c-quote { display: grid; gap: 28px; }
.c-quote__portrait { width: 72%; }
.c-quote__portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.c-quote__text { font: 500 clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem)/1.22 var(--font-display); letter-spacing: -0.01em; max-width: 30ch; }
.c-quote__by { margin-top: 20px; font-size: 1rem; }
.c-quote__by b { font-weight: 600; }
.c-quote__small { width: 44%; justify-self: end; }
.c-quote__small img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.c-voices { display: grid; gap: 28px; margin-top: 64px; }
.c-voice { padding-left: 28px; position: relative; }
.c-voice::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; background: var(--red); clip-path: polygon(0 0, 55% 0, 100% 45%, 100% 100%, 0 100%); }
.c-voice p { font: 600 1.25rem/1.25 var(--font-display); }
.c-voice footer { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }

/* --- Liste mit Bild-Bullets (Einzugsgebiet / Leistungen) --------------- */
.c-menu__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.c-menu__head span { font-size: 1rem; color: var(--muted); white-space: nowrap; }
.c-menu__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px 64px; }
.c-menu__item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.c-menu__item img, .c-menu__item .mark { width: 56px; height: 56px; object-fit: cover; }
.c-menu__item .mark { background: var(--navy); clip-path: polygon(0 0, 60% 0, 100% 40%, 100% 100%, 0 100%); }
.c-menu__item .mark--red { background: var(--red); }
.c-menu__item .mark--tone { background: var(--tone-2); }
.c-menu__line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.c-menu__line b { font-weight: 600; font-size: 1.125rem; }
.c-menu__line span { font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.c-menu__item p { margin-top: 4px; font-size: 1rem; color: var(--muted); max-width: 42ch; }
.c-menu__note { color: var(--red-dark); font-weight: 600; }

/* --- FAQ -------------------------------------------------------------- */
.c-faq { display: grid; gap: 32px; }
.c-faq__list { display: grid; gap: 6px; }
.c-faq details { background: var(--tone); transition: background var(--t-fast) var(--ease); }
.c-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background:
  linear-gradient(currentColor, currentColor) center / 16px 3px no-repeat,
  linear-gradient(currentColor, currentColor) center / 3px 16px no-repeat; transition: transform var(--t-fast) var(--ease); }
.c-faq details[open] { background: var(--navy); color: #fff; }
.c-faq details[open] summary::after { transform: rotate(45deg); }
.c-faq details:not([open]) summary:hover { background: var(--tone-2); }
.c-faq__a { padding: 0 20px 24px; max-width: 60ch; font-size: 1.0625rem; }
.c-faq__a a { color: #fff; }

/* --- Großes Bild + Abschluss (CTA / Karriere) ------------------------- */
.c-return { position: relative; overflow: hidden; display: grid; }
.c-return__text { display: grid; gap: 18px; align-content: center; padding-block: 72px 40px; }
.c-return__fact { font: 700 1.75rem/1 var(--font-display); }
.c-return__media { min-height: 55svh; position: relative; }
.c-return__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- Coupon-Formular -------------------------------------------------- */
.c-coupon { --notch: 28px; background: var(--red); color: #fff; display: grid; position: relative;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--perf), transparent 98%, #000) , radial-gradient(circle var(--notch) at 100% var(--perf), transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask: radial-gradient(circle var(--notch) at 0 var(--perf), transparent 98%, #000), radial-gradient(circle var(--notch) at 100% var(--perf), transparent 98%, #000);
  --perf: 44%;
}
.c-coupon__head { padding: 36px 24px 40px; display: grid; gap: 14px; align-content: space-between; }
.c-coupon__head .h2 { font-size: clamp(1.875rem, 1.2rem + 2.2vw, 2.875rem); }
.c-coupon__form { padding: 40px 24px 32px; display: grid; gap: 10px; border-top: 5px dotted var(--ground); }
.c-coupon label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.c-coupon input, .c-coupon select, .c-coupon textarea { width: 100%; min-height: 54px; border: 0; background: #e94a50; color: #fff; padding: 14px 16px; font-size: 1.0625rem; }
.c-coupon textarea { min-height: 96px; resize: vertical; }
.c-coupon select { appearance: none; }
.c-coupon select option { color: var(--ink); }
.c-coupon ::placeholder { color: #ffe3e4; opacity: 1; }
.c-coupon input:focus-visible, .c-coupon select:focus-visible, .c-coupon textarea:focus-visible { outline: 3px solid #fff; outline-offset: 0; }
.c-coupon .btn { --bg: var(--anthrazit); min-height: 58px; clip-path: none; }
.c-coupon .btn:hover { --bg: #000; }
.c-coupon__legal { font-size: .875rem; color: #ffe3e4; }
.c-coupon__legal a { color: #fff; }

/* --- Footer ----------------------------------------------------------- */
.c-footer { background: var(--anthrazit); color: #fff; padding-top: clamp(64px, 8vw, 120px); padding-bottom: 32px; }
.c-mark { display: grid; grid-template-columns: 1.15fr .9fr .95fr; gap: 4px; align-items: end; width: 100%; max-width: 760px; height: clamp(104px, 13svh, 180px); }
.c-mark span { display: flex; align-items: flex-end; justify-content: center; height: 100%; font: 700 clamp(4.5rem, 1.6rem + 8.5vw, 10rem)/.78 var(--font-display); color: var(--anthrazit); overflow: hidden; }
.c-mark span:nth-child(1) { background: #fff; }
.c-mark span:nth-child(2) { background: var(--red); height: 72%; }
.c-mark span:nth-child(3) { background: var(--navy-4); height: 88%; align-items: flex-start; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.c-mark span:nth-child(3) b { display: block; font-weight: 700; margin-top: .1em; }
.c-footer__name { margin-top: 20px; font: 700 clamp(1.5rem, 1rem + 2vw, 2.75rem)/1 var(--font-display); }
.c-footer__cols { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; font-size: var(--step-small); }
.c-footer__cols h3 { font: 600 1rem var(--font-text); color: var(--on-dark-soft); margin-bottom: 10px; }
.c-footer__cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.c-footer__cols a { text-decoration: none; }
.c-footer__cols a:hover { text-decoration: underline; }
.c-footer__contact { grid-column: 1 / -1; display: grid; gap: 6px; font-size: 1.0625rem; }
.c-footer__contact a { font-weight: 600; }
.c-footer__last { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; font-size: .875rem; color: var(--on-dark-soft); }

/* --- Seitenkopf Unterseiten ------------------------------------------- */
.c-pagehero { background: var(--navy); color: #fff; overflow: hidden; }
.c-pagehero__grid { display: grid; gap: 32px; padding-top: clamp(40px, 6vw, 96px); }
.c-pagehero__text { display: grid; gap: 22px; align-content: start; }
.c-pagehero__text .lead { color: var(--on-dark-soft); }
.c-pagehero__media { margin-inline: calc(var(--gutter) * -1); }
.c-pagehero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.c-pagehero__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--step-small); color: var(--on-dark-soft); }
.c-pagehero__facts b { color: #fff; font-weight: 600; }
.crumbs { font-size: var(--step-small); color: var(--on-dark-soft); }
.crumbs a { color: #fff; }

/* --- Zwei Spalten mit Liste ------------------------------------------- */
.c-split { display: grid; gap: 32px; }
.c-split__aside { display: grid; gap: 18px; align-content: start; }

/* --- Kacheln mit Objekt (Leistungsumfang) ----------------------------- */
.c-tiles { display: grid; gap: 32px; }
.c-tiles__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 8px; }
.c-tile__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--tone); }
.c-tile--wide { grid-column: 1 / -1; }
.c-tile--wide .c-tile__img { aspect-ratio: 8 / 5; }
.c-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.c-tile:hover .c-tile__img img { transform: scale(1.04); }
.c-tile b { display: block; margin-top: 12px; font-weight: 600; font-size: 1.0625rem; }
.c-tile span { display: block; font-size: var(--step-small); color: var(--muted); }

/* --- Mehrstufiger Check (Anfrage, Bewerbung, Förderung) --------------- */
.c-check { background: var(--tone); padding: 24px 16px; position: relative; }
.c-check--navy { background: var(--navy); color: #fff; }
.c-check__progress { height: 8px; background: var(--tone-2); margin-bottom: 24px; }
.c-check--navy .c-check__progress { background: var(--navy-2); }
.c-check__progress i { display: block; height: 100%; width: 0; background: var(--red); transition: width var(--t-mid) var(--ease); }
.c-check__meta { display: flex; justify-content: space-between; gap: 12px; font-size: var(--step-small); color: var(--muted); margin-bottom: 10px; }
.c-check--navy .c-check__meta { color: var(--on-dark-soft); }
.c-check__step { display: grid; gap: 20px; }
.c-check__step[hidden] { display: none; }
.c-check__step legend, .c-check__q { font: 700 clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem)/1.08 var(--font-display); letter-spacing: -0.01em; padding: 0; margin-bottom: 4px; }
.c-check fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 20px; }
.c-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.c-options--1 { grid-template-columns: 1fr; }
.c-option { position: relative; }
.c-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.c-option span { display: flex; flex-direction: column; justify-content: center; min-height: 76px; height: 100%; padding: 14px 16px; background: #fff; color: var(--ink); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.c-option span small { font-weight: 400; font-size: .875rem; color: var(--muted); margin-top: 4px; }
.c-option input:hover + span { background: var(--tone-2); }
.c-option input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.c-option input:checked + span { background: var(--red); color: #fff; }
.c-option input:checked + span small { color: #ffe3e4; }
.c-option input:active + span { transform: scale(.98); }
.c-check--navy .c-option span { background: var(--navy-2); color: #fff; }
.c-check--navy .c-option span small { color: var(--on-dark-soft); }
.c-check--navy .c-option input:hover + span { background: var(--navy-3); }
.c-check--navy .c-option input:checked + span { background: var(--red); }
.c-fields { display: grid; gap: 12px; }
.c-field { display: grid; gap: 6px; }
.c-field label { font-weight: 600; font-size: 1rem; }
.c-field input, .c-field select, .c-field textarea { min-height: 54px; padding: 12px 14px; border: 2px solid transparent; background: #fff; color: var(--ink); font-size: 1.0625rem; width: 100%; }
.c-field textarea { min-height: 110px; resize: vertical; }
.c-field input:focus-visible, .c-field textarea:focus-visible, .c-field select:focus-visible { outline: none; border-color: var(--red); }
.c-field__hint { font-size: .875rem; color: var(--muted); }
.c-check--navy .c-field__hint { color: var(--on-dark-soft); }
.c-check__nav { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-top: 8px; }
.c-check__back { background: none; border: 0; padding: 12px 0; font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.c-check__back[hidden] { display: none; }
.c-check__call { display: flex; gap: 10px; align-items: center; margin-top: 20px; font-size: var(--step-small); color: var(--muted); }
.c-check--navy .c-check__call { color: var(--on-dark-soft); }
.c-check__call a { font-weight: 600; color: var(--ink); }
.c-check--navy .c-check__call a { color: #fff; }
.c-check__alert { background: var(--red); color: #fff; padding: 18px; display: grid; gap: 10px; }
.c-check__alert[hidden] { display: none; }
.c-check__done { display: grid; gap: 18px; }
.c-check__done[hidden] { display: none; }
.c-check__error { color: var(--red-dark); font-weight: 600; font-size: .9375rem; }
.c-check--navy .c-check__error { color: #ffd2d4; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--red); flex: none; }

/* Förder-Ergebnis */
.c-result { display: grid; gap: 6px; }
.c-result__big { font: 700 clamp(3.5rem, 2rem + 6vw, 7rem)/.9 var(--font-display); letter-spacing: -0.03em; }
.c-result__rows { display: grid; gap: 4px; margin-top: 14px; }
.c-result__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; background: var(--navy-2); }
.c-result__rows div.is-off { opacity: .55; text-decoration: line-through; }
.c-result__rows div.is-total { background: var(--red); font-weight: 600; }

/* --- Vorher/Nachher --------------------------------------------------- */
.c-compare { position: relative; overflow: hidden; background: var(--tone); user-select: none; touch-action: pan-y; }
.c-compare__layer { display: block; width: 100%; }
.c-compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.c-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 4px; margin-left: -2px; background: var(--red); pointer-events: none; }
.c-compare__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); background: var(--red); clip-path: polygon(0 50%, 30% 20%, 30% 40%, 70% 40%, 70% 20%, 100% 50%, 70% 80%, 70% 60%, 30% 60%, 30% 80%); }
.c-compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.c-compare input[type="range"]:focus-visible ~ .c-compare__handle { outline: 3px solid var(--ink); }
.c-compare__labels { display: flex; justify-content: space-between; padding: 12px 0 0; font-weight: 600; }

/* --- Platzhalter-Hinweis (nur Prototyp) ------------------------------- */
.ph-note { display: inline-block; margin-top: 8px; font-size: .875rem; color: var(--muted); }
.field-navy .ph-note, .field-dark .ph-note { color: var(--on-dark-soft); }

/* --- Bewegung --------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .rv.is-in { opacity: 1; transform: none; }
}
.c-hero__media-zoom img { animation: drift 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .house.is-flowing .pipe-heat, .house.is-flowing .pipe-power { animation: none; }
}

/* ==========================================================================
   Tablet ≥ 700px
   ========================================================================== */
@media (min-width: 700px) {
  .c-options { grid-template-columns: repeat(3, 1fr); }
  .c-options--2 { grid-template-columns: 1fr 1fr; }
  .c-check { padding: 40px; }
  .c-menu__list { grid-template-columns: 1fr 1fr; }
  .c-voices { grid-template-columns: repeat(3, 1fr); }
  .c-footer__cols { grid-template-columns: repeat(4, 1fr); }
  .c-footer__contact { grid-column: auto; }
  .c-tiles__grid { grid-template-columns: repeat(3, 1fr); gap: 32px 10px; }
  .c-tile--wide { grid-column: span 2; }
  .c-pagehero__media { margin-inline: 0; }
  .c-coupon { grid-template-columns: 46% 54%; --perf: 50%;
    -webkit-mask: radial-gradient(circle var(--notch) at 46% 0, transparent 98%, #000), radial-gradient(circle var(--notch) at 46% 100%, transparent 98%, #000);
    mask: radial-gradient(circle var(--notch) at 46% 0, transparent 98%, #000), radial-gradient(circle var(--notch) at 46% 100%, transparent 98%, #000); }
  .c-coupon__head { padding: 48px; }
  .c-coupon__form { padding: 48px; border-top: 0; border-left: 5px dotted var(--ground); align-content: center; }
}

/* ==========================================================================
   Desktop ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --bar-h: 0px; }
  .c-callbar { display: none; }
  .c-header__in { min-height: 80px; gap: 28px; }
  .c-brand__name { font-size: 1.625rem; }
  .c-nav { display: block; }
  .c-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
  .c-nav a { text-decoration: none; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color var(--t-fast); display: inline-flex; align-items: center; gap: 8px; }
  .c-nav a:hover, .c-nav a[aria-current="page"] { border-color: var(--red); }
  .c-header__phone { width: auto; gap: 8px; font-weight: 600; text-decoration: none; }
  .c-header__phone svg { width: 20px; height: 20px; }
  .c-header__phone span { display: inline; }
  .c-header__cta { display: inline-flex; min-height: 48px; }
  .c-menu-btn { display: none; }

  .grid > .span-5 { grid-column: span 5; }
  .grid > .span-6 { grid-column: span 6; }
  .grid > .span-7 { grid-column: span 7; }


  .c-nav-house__grid { grid-template-columns: 5fr 7fr; gap: 56px; align-items: end; }
  .c-nav-house__list { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 0; }
  .c-nav-house__item { font-size: clamp(1.75rem, 1rem + 1.6vw, 2.75rem); padding: 4px 0; }
  .c-nav-house__title { margin-bottom: 8px; }
  .c-nav-house__side { display: grid; gap: 40px; align-content: end; }
  .c-nav-house__stage { padding: 40px 32px 0; }

  .c-masters { padding-inline: 20px; }
  .c-masters__panel { grid-template-columns: 1fr 1fr; padding: 72px 56px 0; min-height: 100svh; gap: 56px; }
  .c-masters__lead { display: grid; gap: 28px; align-content: start; }
  .c-masters__people { padding-top: 8px; }
  .c-masters__photo { grid-column: 1; grid-row: 2; width: 100%; max-width: none; margin-bottom: -10%; align-self: end; }
  .c-masters__people { grid-column: 2; grid-row: 1 / span 2; align-content: start; }

  .c-funding { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .c-funding__row { padding: 24px 28px; }

  .c-steps__intro { grid-template-columns: 5fr 1fr 6fr; }
  .c-steps__intro > :last-child { grid-column: 3; }
  .c-steps__row { flex-direction: row; height: 540px; }
  .c-step { flex: 0 0 76px; transition: flex-basis var(--t-step) var(--ease); }
  .c-step.is-open { flex: 1 1 auto; }
  .c-step__btn { position: absolute; inset: 0; width: 76px; align-items: flex-end; justify-content: flex-start; padding: 24px 0; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.375rem; }
  .c-step__btn::after { display: none; }
  .c-step.is-open .c-step__btn { width: 100%; writing-mode: horizontal-tb; transform: none; align-items: flex-start; padding: 32px; font-size: 2.5rem; pointer-events: none; }
  .c-step__body { display: block; height: 100%; }
  .c-step:not(.is-open):not(.is-leaving) .c-step__body { visibility: hidden; }
  .c-steps__row[data-dir="fwd"] .c-step.is-open .c-step__btn { animation: step-in-r var(--t-step) var(--ease) both; }
  .c-steps__row[data-dir="back"] .c-step.is-open .c-step__btn { animation: step-in-l var(--t-step) var(--ease) both; }
  .c-step__btn { z-index: 1; }
  .c-step__inner { height: 100%; }
  /* Feste Breite der offenen Karte (aus JS), damit nichts umbricht, während die Karte auf- oder zugeht */
  .c-step__content { position: absolute; top: 0; bottom: 0; left: 0; width: var(--open-w, 100%); padding: 104px 32px 32px; grid-template-columns: minmax(0, 42%); align-items: end; }
  .c-step__content > div { position: relative; align-self: end; display: grid; gap: 12px; }
  .c-step__content img { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; height: 100%; margin: 0; aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 48%), linear-gradient(to bottom, transparent, #000 32%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 48%), linear-gradient(to bottom, transparent, #000 32%); mask-composite: intersect; }

  .c-quote { grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
  .c-quote__portrait { grid-column: 2 / 6; width: 100%; grid-row: 1 / span 2; }
  .c-quote__portrait img { height: 70svh; aspect-ratio: auto; }
  .c-quote__body { grid-column: 7 / 13; padding-top: 120px; }
  .c-quote__small { grid-column: 10 / 12; width: 100%; margin-top: 96px; }

  .c-faq { grid-template-columns: 4fr 8fr; gap: 48px; align-items: start; }
  .c-faq__head { position: sticky; top: 120px; display: grid; gap: 20px; }
  .c-faq summary { font-size: 1.25rem; padding: 18px 28px; min-height: 72px; }
  .c-faq__a { padding: 0 28px 28px; }

  .c-return { grid-template-columns: 8fr 4fr; min-height: 90svh; }
  .c-return__media { min-height: 0; order: -1; }
  .c-return__text { padding: 80px 0 80px 48px; max-width: 420px; }

  .c-split { grid-template-columns: 5fr 7fr; gap: 72px; }
  .c-split--rev { grid-template-columns: 7fr 5fr; }

  .c-tiles { grid-template-columns: 3fr 9fr; gap: 48px; align-items: start; }
  .c-tiles__grid { grid-template-columns: repeat(3, 1fr); }

  .c-pagehero__grid { grid-template-columns: 6fr 6fr; gap: 64px; align-items: end; }
  .c-pagehero__text { padding-bottom: clamp(48px, 6vw, 96px); }
  .c-pagehero__media img { aspect-ratio: 5 / 4; }

  .c-check { padding: 56px; }
  .c-options--4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1440px) {
}

/* Sterne als Grafik statt Zeichen */
.stars { display: inline-flex; gap: 2px; vertical-align: -2px; }
.stars svg { width: 15px; height: 15px; fill: #ffc93c; }
.c-brand__sub--short { display: none; }
@media (max-width: 479px) { .c-brand__sub { display: none; } .c-brand__sub--short { display: block; } }

/* --- Karriere: Zusagen als große Zahlen -------------------------------- */
.c-perks { display: grid; gap: 40px; }
.c-perks__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 64px 48px; }
.c-perk b { display: block; font: 700 clamp(2.25rem, 1.4rem + 3vw, 4rem)/1 var(--font-display); letter-spacing: -0.02em; }
.c-perk span { display: block; margin-top: 8px; font-weight: 600; }
.c-perk p { margin-top: 4px; color: var(--muted); font-size: 1rem; max-width: 34ch; }
.field-navy .c-perk p { color: var(--on-dark-soft); }
.c-perk--accent b { color: var(--red); }
.field-navy .c-perk--accent b { color: #fff; }

/* --- Tagesablauf ------------------------------------------------------ */
.c-day { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.c-day li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 16px; padding: 18px 20px; background: var(--tone); }
.c-day li:nth-child(2) { background: var(--tone-2); }
.c-day li:nth-child(3) { background: #cfd8e6; }
.c-day li:nth-child(4) { background: var(--navy-4); color: #0f1730; }
.c-day time { font: 700 1.5rem/1 var(--font-display); }

/* --- Stellenliste ----------------------------------------------------- */
.c-jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.c-job a { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; padding: 22px 20px; background: var(--tone); text-decoration: none; transition: background var(--t-fast) var(--ease); }
.c-job a:hover { background: var(--tone-2); }
.c-job b { font: 700 clamp(1.375rem, 1.1rem + 1vw, 2rem)/1.1 var(--font-display); }
.c-job span { grid-column: 1; font-size: var(--step-small); color: var(--muted); }
.c-job i { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-weight: 600; color: var(--red-dark); white-space: nowrap; }

@media (min-width: 700px) {
  .c-perks__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .c-perks { grid-template-columns: 4fr 8fr; gap: 64px; }
  .c-perks__list { grid-template-columns: repeat(3, 1fr); }
  .c-day li { grid-template-columns: 7rem 1fr; padding: 24px 28px; }
}

.c-pagehero .muted, .c-footer .muted, .c-pagehero .ph-note, .c-footer .ph-note { color: var(--on-dark-soft); }
.c-pagehero__media figcaption { padding: 10px var(--gutter) 0; }
.c-check__nav + .c-check__meta { margin: 16px 0 0; }
@media (min-width: 700px) { .c-pagehero__media figcaption { padding-inline: 0; } }

/* ==========================================================================
   Hero im Flyer-Stil: Anthrazit-Fläche, Diagonale mit Blau/Rot, Foto, rotes Eck-Badge
   ========================================================================== */
.c-hero { --slant: 16%; --blue: #2c5bd6; position: relative; background: var(--anthrazit); color: #fff; overflow: hidden; display: grid; }
.c-hero__content { position: relative; z-index: 2; display: grid; gap: 22px; align-content: center; padding-block: 36px 44px; }
.c-hero__trades { font: 600 1.0625rem/1.4 var(--font-text); color: #fff; }
.c-hero__trades i { font-style: normal; color: var(--red); }
.c-hero__title { font: 700 clamp(1.9rem, 0.9rem + 3.2vw, 3.6rem)/1.02 var(--font-display); text-transform: uppercase; letter-spacing: -0.005em; }
.c-hero__title span { display: block; }
.c-hero__title .accent { color: #ff3b42; }
.c-hero__lead { color: var(--on-dark-soft); max-width: 44ch; }
.c-hero__lead strong { color: #fff; font-weight: 600; }
.c-hero__services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.c-hero__services a { display: flex; align-items: center; gap: 10px; min-height: 44px; line-height: 1.2; hyphens: manual; text-decoration: none; font-weight: 500; transition: color var(--t-fast); }
.c-hero__services a:hover { color: #ff6a70; }
.c-hero__services svg { flex: none; width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--red); color: #fff; transition: transform var(--t-fast) var(--ease); }
.c-hero__services a:hover svg { transform: scale(1.12); }
.c-hero__proof { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--step-small); color: var(--on-dark-soft); }
.c-hero__proof b { color: #fff; font-weight: 600; }

/* Bildseite: drei Ebenen mit gleicher Schräge ergeben die Blau/Rot-Streifen */
.c-hero__visual { position: relative; min-height: 340px; }
.c-hero__band, .c-hero__photo { position: absolute; inset: 0; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
/* Bänder nur als Streifen zuschneiden: hinter dem Foto liegt keine Farbfläche, die beim Scrollen durchblitzen kann */
.c-hero__band { clip-path: polygon(0 18%, 100% 0, 100% 14px, 0 calc(18% + 14px)); }
.c-hero__band--blue { background: var(--blue); top: 0; }
.c-hero__band--red { background: var(--red); top: 9px; }
.c-hero__photo { top: 20px; overflow: hidden; }
.c-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.c-hero__badge { position: absolute; right: 0; bottom: 0; z-index: 3; background: var(--red); color: #fff; padding: 18px var(--gutter) 18px 40px; font: 700 1.125rem/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .01em; clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%); }

@media (prefers-reduced-motion: no-preference) {
  .js .c-hero__content > * { opacity: 0; transform: translateY(18px); animation: heroIn 700ms var(--ease) forwards; animation-delay: calc(80ms + var(--i, 0) * 90ms); }
  .js .c-hero__band, .js .c-hero__photo { animation: slideIn 900ms var(--ease) both; }
  .js .c-hero__band--red { animation-delay: 80ms; } .js .c-hero__photo { animation-delay: 160ms; }
  .js .c-hero__badge { animation: badgeIn 700ms var(--ease) 600ms both; }
  .c-hero__photo img { animation: heroZoom 2.4s var(--ease) 160ms both; transform-origin: 60% 40%; }
}
@keyframes heroZoom { from { transform: scale(1.08); } }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(14%); opacity: 0; } }
@keyframes badgeIn { from { transform: translateX(100%); } }

@media (min-width: 700px) {
  .c-hero__visual { min-height: 440px; }
  .c-hero__badge { font-size: 1.375rem; padding: 22px 40px 22px 56px; }
}
@media (min-width: 1024px) {
  .c-hero { grid-template-columns: 1fr; min-height: min(700px, calc(100svh - 80px)); }
  .c-hero__content { width: 54%; padding-block: 64px 72px; padding-right: 32px; }
  .c-hero__content.wrap { margin-inline: 0; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .c-hero__visual { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; min-height: 0; }
  .c-hero__photo { clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); }
  .c-hero__band { clip-path: polygon(var(--slant) 0, calc(var(--slant) + 16px) 0, 16px 100%, 0 100%); }
  .c-hero__band--blue { top: 0; left: 0; } .c-hero__band--red { top: 0; left: 12px; } .c-hero__photo { top: 0; left: 26px; }
  .c-hero__badge { width: 62%; padding: 28px 48px 28px 72px; font-size: clamp(1.375rem, .8rem + 1vw, 1.875rem); clip-path: polygon(36px 0, 100% 0, 100% 100%, 0 100%); }
  .c-hero__services { gap: 4px 28px; }
}

/* Scrollbalken in Markenrot */
html { scrollbar-color: var(--red) var(--tone-2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--tone-2); }
::-webkit-scrollbar-thumb { background: var(--red); border: 2px solid var(--tone-2); }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark); }

/* Kleine Marken statt großer Kacheln in Listen */
.c-menu__item:has(> .mark) { grid-template-columns: 14px 1fr; gap: 14px; }
.c-menu__item .mark { width: 14px; height: 14px; margin-top: .4em; }

/* Nach-oben-Button, läuft beim Scrollen mit */
.c-totop { position: fixed; z-index: 55; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--navy); color: #fff;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), background var(--t-fast), visibility 0s linear var(--t-fast); }
.c-totop.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.c-totop:hover { background: var(--red); }
.c-totop svg { width: 20px; height: 20px; }

/* Einzugsgebiet und Erreichbarkeit */
.c-area { display: grid; gap: 88px 64px; }
.c-area__places, .c-area__contact { display: grid; gap: 22px; align-content: start; min-width: 0; }
.c-area__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font: 700 clamp(1.75rem, 1.2rem + 2vw, 3rem)/1.15 var(--font-display); letter-spacing: -0.01em; }
.c-area__list li:not(:last-child)::after { content: "/"; color: var(--red); padding-inline: .3em; font-weight: 600; }
.c-area__list .is-home { color: var(--red); }
.c-reach { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.c-reach li { display: grid; grid-template-columns: 24px 1fr; gap: 2px 14px; align-items: center; padding: 16px 18px; background: #fff; }
.c-reach__icon { grid-row: span 2; color: var(--red); display: flex; }
.c-reach__icon svg { width: 24px; height: 24px; }
.c-reach__label { font-size: var(--step-small); color: var(--muted); }
.c-reach__value { font-weight: 600; font-size: 1.125rem; text-decoration: none; overflow-wrap: anywhere; }
a.c-reach__value:hover { color: var(--red); }
.c-reach li.c-reach--alert { background: var(--red); color: #fff; }
.c-reach--alert .c-reach__icon, .c-reach--alert .c-reach__label { color: #fff; }
.c-reach--alert a.c-reach__value:hover { color: #fff; text-decoration: underline; }
@media (min-width: 700px) {
  .c-reach li { grid-template-columns: 24px 1fr auto; padding: 18px 22px; }
  .c-reach__icon { grid-row: auto; }
  .c-reach__label { font-size: 1rem; color: var(--ink); }
  .c-reach--alert .c-reach__label { color: #fff; }
}
@media (min-width: 1024px) { .c-area { grid-template-columns: 1fr 1fr; } }

.c-split > .c-check { align-self: start; }

.c-options--2 > .c-option:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Filterleiste (Referenzen) */
.c-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.c-filter button { min-height: 44px; padding: 0 18px; border: 0; background: var(--tone); color: var(--ink); font-weight: 600; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); transition: background var(--t-fast); }
.c-filter button:hover { background: var(--tone-2); }
.c-filter button[aria-pressed="true"] { background: var(--navy); color: #fff; }
[data-cat][hidden] { display: none !important; }

/* Rechtstexte */
.c-legal { max-width: 72ch; display: grid; gap: 14px; }
.c-legal h2 { font: 700 clamp(1.375rem, 1.1rem + .8vw, 1.75rem)/1.15 var(--font-display); margin-top: 48px; }
.c-legal h3 { font: 600 1.125rem/1.3 var(--font-text); margin-top: 10px; }
.c-legal ul, .c-legal ol { padding-left: 1.3em; display: grid; gap: 6px; margin: 0; }
.c-legal address { font-style: normal; }
.c-legal__note { background: var(--tone); padding: 16px 20px; font-size: var(--step-small); }

/* Referenzen nur in breiter Navigation */
.c-nav__wide { display: none; }
@media (min-width: 1240px) { .c-nav__wide { display: list-item; } }

.is-filtered .c-tile--wide { grid-column: auto; }
.is-filtered .c-tile--wide .c-tile__img { aspect-ratio: 4 / 5; }
/* Hauptnavigation bleibt einzeilig */
.c-nav a { white-space: nowrap; }
.c-brand__sub, .c-header__cta, .c-header__phone { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1499px) {
  .c-nav ul { gap: 20px; } .c-nav .tag-hiring { display: none; } .c-header__in { gap: 20px; }
  .c-header__phone { width: 48px; } .c-header__phone span { display: none; }
}

/* Versandstatus in Checks: ausgeblendete Buttons wirklich ausblenden */
.c-check__done [hidden] { display: none !important; }
