/* =========================================================================
   AKA Engineering · main.css
   Design-System „Modern & Clean“ (STANDARDS.md): Space Grotesk / Work Sans,
   Ink #17181C auf Off-white #F7F5F1, Radius 6px, Hairlines statt Schatten.
   Akzent: Logo-Blau. Signatur-Effekt: die „Lichtkante“ – eine blau
   hinterleuchtete Kante wie beim beleuchteten Firmenschild im Logo – plus ein
   einmaliger Lichtstreif über die Haupt-Buttons beim Hover.
   ========================================================================= */

:root {
  --bg: #F7F5F1;
  --surface: #FCFBF8;
  --tint: #EFECE6;
  --ink: #17181C;
  --ink-2: #2B2D33;
  --muted: #53555C;          /* 7,0:1 auf --bg */
  --line: rgba(23, 24, 28, .14);
  --line-strong: rgba(23, 24, 28, .28);
  --accent: #1E50C8;         /* Logo-Blau, 6,3:1 auf --bg, 6,9:1 mit Weiß */
  --accent-hi: #3D6FE6;
  --accent-deep: #143894;
  --accent-soft: #E4EAF8;
  --glow: rgba(61, 111, 230, .55);
  --wa: #167A43;             /* WhatsApp-Grün, abgedunkelt für 5,4:1 mit Weiß */
  --radius: 6px;
  --container: 1600px;
  --gutter: clamp(1rem, 4.5vw, 3.5rem);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .4s;
  --fs-scale: 1;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, sans-serif;
  --section: clamp(3.5rem, 7vw, 6.5rem);
}

/* ---- Barrierefreiheits-Modi ---- */
html[data-contrast="high"] {
  --muted: #17181C;
  --line: rgba(23, 24, 28, .5);
  --line-strong: #17181C;
  --accent: #143894;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --tint: #F1F1F1;
}
html[data-contrast="high"] a:not(.btn) { text-decoration: underline; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Basis ---- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--fs-scale)); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.62;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .6em; text-wrap: balance; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 360px) { h1, h2, h3 { overflow-wrap: break-word; } }
h1 { font-size: clamp(2.25rem, 1.35rem + 3.9vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); font-weight: 500; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p, li, dd { overflow-wrap: break-word; }
.lead { font-size: clamp(1.07rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 68ch; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: #fff; }

.eyebrow { font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--accent); margin: 0 0 1rem; letter-spacing: .01em; }
.eyebrow--light { color: #BFD0FA; }
.h-section { margin-bottom: 1.5rem; }
.textlink { font-family: var(--font-head); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; min-height: 44px; }
.textlink::after { content: "→"; transition: transform var(--t) var(--ease); }
.textlink:hover::after { transform: translateX(4px); }
.todo-inline { background: #FFF1C9; color: #5A4500; padding: 0 .3em; border-radius: 3px; }

/* ---- Buttons ---- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.3rem; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: box-shadow var(--t) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), transform .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 54px; padding-inline: 1.6rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #2F63DE 0%, var(--accent) 55%, #1A47B4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(20, 56, 148, .3);
}
/* Lichtstreif: läuft beim Hover einmal über den Button */
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn--primary:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 26px -10px var(--glow), 0 0 0 1px rgba(61, 111, 230, .35); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn--primary:hover::after { transform: translateX(120%); transition: transform .75s var(--ease); }
}
.btn--ghost { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); background: rgba(23, 24, 28, .03); }
.btn--light { color: var(--accent-deep); background: #fff; }
.btn--light:hover { color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.btn--wa { color: #fff; background: var(--wa); }
.btn--wa:hover { color: #fff; background: #11663A; }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.btn--outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 245, 241, .97); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand__mark { width: 78px; height: auto; flex: none; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.brand__name small { display: block; font-weight: 500; font-size: .74rem; color: var(--muted); letter-spacing: 0; margin-top: .15rem; }
.brand:hover { color: var(--ink); }
.nav { display: none; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 500; padding: .5rem .1rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 2px; background: var(--accent); box-shadow: 0 0 8px var(--glow);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.nav a:not(.btn):hover::after, .nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-call, .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none;
  border-radius: var(--radius); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer;
}
.header-call { background: var(--accent); border-color: var(--accent); color: #fff; }
.header-call svg, .nav-toggle svg { width: 22px; height: 22px; }
.nav[data-open="true"] {
  display: flex; flex-direction: column; gap: .25rem; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem var(--gutter) 1.25rem;
}
.nav[data-open="true"] a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.nav[data-open="true"] a:not(.btn)::after { display: none; }
.nav[data-open="true"] a:not(.btn)[aria-current="page"] { color: var(--accent); }
.nav[data-open="true"] .nav__call { margin-top: .9rem; }
/* Mobil nur das AKA-Zeichen, der Name steht im aria-label des Links */
@media (max-width: 767px) {
  .brand__name { display: none; }
  .brand__mark { width: 96px; }
  .site-header__inner { gap: .6rem; }
}
@media (max-width: 360px) {
  .brand__mark { width: 84px; }
  .header-call, .nav-toggle { width: 44px; height: 44px; }
}
@media (min-width: 1100px) {
  .nav { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.75rem); }
  .header-call, .nav-toggle { display: none; }
}

.crumbs { border-bottom: 1px solid var(--line); font-size: .9rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: .7rem 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); }

/* ---- Hero ---- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero__grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4rem); }
.hero h1 .hl { color: var(--accent); }
@media (min-width: 600px) { .hero h1 .hl { display: block; } }
.hero__lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); color: var(--ink-2); max-width: 54ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__media { position: relative; margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius); }
/* Lichtkante: blau hinterleuchtete Kante wie am Firmenschild */
.hero__media::before {
  content: ""; position: absolute; z-index: 1; left: -1px; top: 14%; bottom: 14%; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, transparent, var(--accent-hi) 20%, var(--accent-hi) 80%, transparent);
  box-shadow: 0 0 22px 3px var(--glow);
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .hero__media img { aspect-ratio: 4 / 4.3; }
  .hero__copy { padding-right: clamp(0rem, 2vw, 2rem); }
}
@media (max-width: 480px) {
  .hero__cta .btn { width: 100%; }
}

/* ---- Fakten-Leiste ---- */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts__row li { padding: 1.25rem 1rem 1.25rem 0; display: flex; flex-direction: column; gap: .25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 440px) { .facts__row li:nth-child(2n) { padding-left: 1rem; border-left: 1px solid var(--line); } }
@media (max-width: 439px) { .facts__row { grid-template-columns: minmax(0, 1fr); } .facts__row li { padding: 1rem 0; } }
.facts__row li:last-child { grid-column: 1 / -1; border-bottom: 0; border-left: 0; padding-left: 0; }
.facts__row strong { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); letter-spacing: -.01em; }
.facts__row span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
@media (min-width: 1000px) {
  .facts__row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .facts__row li, .facts__row li:nth-child(2n), .facts__row li:last-child { grid-column: auto; border-bottom: 0; padding: 1.6rem 1.25rem; border-left: 1px solid var(--line); }
  .facts__row li:first-child { border-left: 0; padding-left: 0; }
}

/* ---- Sektionen ---- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem) var(--section); }
.section--line { border-top: 1px solid var(--line); }
.section--tint { background: var(--tint); }
.section-head { margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; max-width: 68ch; }
@media (min-width: 900px) {
  .section-head--wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: end; }
  .section-head--wide h2, .section-head--wide p { margin-bottom: 0; }
}
.split { display: grid; gap: clamp(2rem, 4vw, 4.5rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split--region { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
}
.more { margin: 1.5rem 0 0; }

.pagehead { padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.pagehead h1 { margin-bottom: .4em; font-size: clamp(2.1rem, 1.35rem + 2.8vw, 3.5rem); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: normal; }
.pagehead .lead { margin-bottom: 0; }
@media (min-width: 1000px) {
  .pagehead__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: end; }
  .pagehead__grid h1 { margin-bottom: 0; }
}

/* ---- Leistungs-Kacheln (Startseite) ---- */
.svc-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.svc {
  position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  color: var(--ink); text-decoration: none; transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.svc::after { content: "→"; position: absolute; right: 1.1rem; top: 1.1rem; color: var(--muted); transition: transform var(--t) var(--ease), color var(--t) var(--ease); }
.svc:hover { color: var(--ink); border-color: var(--accent); }
.svc:hover::after { color: var(--accent); transform: translateX(4px); }
.svc__t { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.2; padding-right: 1.6rem; }
.svc__d { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.svc--feature { padding: 0; overflow: hidden; }
.svc--feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.svc--feature .svc__body { display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem 1.25rem 1.4rem; }
.svc--feature .svc__t { font-size: clamp(1.25rem, 1.1rem + .4vw, 1.45rem); hyphens: auto; -webkit-hyphens: auto; }
.svc--feature::after { top: auto; bottom: 1.35rem; }
.svc--accent { background: var(--accent-soft); border-color: rgba(30, 80, 200, .28); }
.svc--accent .svc__d { color: var(--ink-2); }
@media (min-width: 600px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc--feature { grid-column: span 2; } }
@media (min-width: 900px) { .svc--feature { grid-column: span 1; } }
@media (min-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svc--feature { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .svc--feature img { aspect-ratio: auto; height: 100%; min-height: 230px; border-bottom: 0; border-right: 1px solid var(--line); }
  .svc--feature .svc__body { justify-content: flex-end; padding-bottom: 3.2rem; }
}

/* ---- Team (Startseite) ---- */
.split--team .lead { margin-bottom: 1rem; }
.people { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.people li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); align-items: start; color: var(--muted); }
.people strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.15rem; margin-bottom: .2rem; }
.people__n {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: .9; letter-spacing: -.04em;
  color: var(--accent); text-shadow: 0 0 22px rgba(61, 111, 230, .28);
}
@media (max-width: 400px) { .people li { grid-template-columns: 4rem minmax(0, 1fr); gap: .9rem; } }

/* ---- Zuschuss-Panel ---- */
.grant {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(90, 140, 255, .35), transparent 55%),
    linear-gradient(160deg, #1D4CC0 0%, #143894 60%, #0F2B74 100%);
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem);
}
.grant::before { /* Lichtkante oben */
  content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #9DBAFF, transparent); box-shadow: 0 0 18px 2px rgba(157, 186, 255, .7);
}
.grant h2 { color: #fff; }
.grant p { color: #DCE5FB; font-size: 1.07rem; max-width: 60ch; }
.grant__steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: .75rem; align-content: center; }
.grant__steps li {
  counter-increment: s; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; align-items: center;
  padding: 1rem 1.1rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); font-weight: 500;
}
.grant__steps li::before {
  content: counter(s); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; background: #fff; color: var(--accent-deep);
}
@media (min-width: 900px) { .grant { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ---- Vorher/Nachher-Slider ---- */
.ba-pair, .ba-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 768px) { .ba-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ba-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ba-item { margin: 0; }
.ba-item figcaption, .ref figcaption { margin-top: .75rem; font-family: var(--font-head); font-weight: 500; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ba { --pos: 50%; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; background: var(--tint); touch-action: pan-y; user-select: none; }
.ba img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { position: absolute; inset: 0; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba::before, .ba::after {
  position: absolute; top: .75rem; z-index: 2; font: 500 .8rem/1 var(--font-head); color: #fff; background: rgba(23, 24, 28, .72);
  padding: .4rem .55rem; border-radius: 4px; pointer-events: none;
}
.ba::before { content: "Vorher"; left: .75rem; }
.ba::after { content: "Nachher"; right: .75rem; background: rgba(20, 56, 148, .85); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; z-index: 2; background: #fff; box-shadow: 0 0 12px 2px var(--glow); pointer-events: none; }
.ba__handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--accent); font: 700 1rem/1 var(--font-head); letter-spacing: .1em; box-shadow: 0 2px 10px rgba(23, 24, 28, .25);
}
.ba__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.ba__range:focus-visible + .ba__handle::after { outline: 3px solid var(--accent-hi); outline-offset: 2px; }
.tag { display: inline-block; font: 500 .78rem/1 var(--font-head); padding: .35rem .5rem; border-radius: 4px; background: var(--accent-soft); color: var(--accent-deep); }

/* ---- Partner (Startseite) ---- */
.partner__cols { display: grid; gap: 1rem; }
.partner__card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.partner__card:first-child { background: var(--accent-soft); border-color: rgba(30, 80, 200, .28); }
.partner__card p { color: var(--muted); margin-bottom: .5rem; }
.partner__card:first-child p { color: var(--ink-2); }
@media (min-width: 900px) { .partner__cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); } .partner__card:first-child { padding: 2rem; } .partner__card:first-child h3 { font-size: 1.6rem; font-weight: 700; } }

/* ---- Einzugsgebiet + Karte ---- */
.cities { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.cities li { font-family: var(--font-head); font-weight: 500; padding: .5rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.cities .cities__more { border-style: dashed; color: var(--muted); background: transparent; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px, var(--tint);
  min-height: 340px; display: grid; }
.map-wrap--wide { min-height: 420px; }
.map, .map-consent { grid-area: 1 / 1; }
.map { min-height: 340px; width: 100%; }
.map-wrap--wide .map { min-height: 420px; }
.map-consent { display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 2rem 1.25rem; }
.map-consent p { max-width: 42ch; color: var(--ink-2); margin: 0; background: var(--bg); padding: .75rem 1rem; border-radius: var(--radius); }
.map-consent .btn { background: var(--bg); }
.map-route { position: absolute; right: .75rem; bottom: .75rem; z-index: 500; background: var(--bg); padding: .55rem .8rem; border-radius: var(--radius); border: 1px solid var(--line-strong); font-family: var(--font-head); font-weight: 500; text-decoration: none; }

/* ---- CTA-Band ---- */
.cta-band { position: relative; background: var(--ink); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-hi) 25%, var(--accent-hi) 75%, transparent); box-shadow: 0 0 20px 2px var(--glow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9CBD1; max-width: 56ch; margin: 0; font-size: 1.08rem; }
.cta-band__inner { display: grid; gap: 2rem; align-items: center; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 1000px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }
@media (max-width: 520px) { .cta-band__actions .btn { width: 100%; } }

/* ---- Leistungsseite ---- */
.svc-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.svc-index { min-width: 0; }
.svc-index ol { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
.svc-index a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; padding: .4rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.svc-index a:hover, .svc-index a.is-active { border-color: var(--accent); color: var(--accent); }
@media (min-width: 1000px) {
  .svc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; align-items: start; }
  .svc-index { position: sticky; top: 96px; }
  .svc-index ol { flex-direction: column; overflow: visible; gap: 0; border-left: 1px solid var(--line); }
  .svc-index a { border: 0; border-radius: 0; padding: .45rem 1rem; margin-left: -1px; border-left: 2px solid transparent; min-height: 40px; }
  .svc-index a.is-active { border-left-color: var(--accent); }
}
.svc-list { display: grid; gap: .75rem; }
.svc-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color var(--t) var(--ease); }
.svc-item[open] { border-color: var(--line-strong); }
.svc-item summary { list-style: none; cursor: pointer; padding: 1.25rem 3.5rem 1.25rem 1.35rem; position: relative; display: grid; gap: .3rem; }
.svc-item summary::-webkit-details-marker { display: none; }
.svc-item summary::after {
  content: ""; position: absolute; right: 1.35rem; top: 1.55rem; width: 12px; height: 12px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform var(--t) var(--ease);
}
.svc-item[open] summary::after { transform: rotate(-135deg); top: 1.8rem; }
.svc-item summary h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin: 0; }
.svc-item__short { color: var(--muted); font-size: .98rem; }
.svc-item summary:hover h2 { color: var(--accent); }
.svc-item__body { display: grid; gap: 1.5rem; padding: 0 1.35rem 1.5rem; }
.svc-item__body img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.svc-item__text p { max-width: 70ch; }
@media (min-width: 800px) { .svc-item__body { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } }
.factbox { margin: 1.25rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.factbox div { display: grid; gap: .15rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.factbox dt { font-family: var(--font-head); font-weight: 700; font-size: .92rem; }
.factbox dd { margin: 0; color: var(--ink-2); }
@media (min-width: 560px) { .factbox div { grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; } }
.note-row { display: grid; gap: 1.5rem; align-items: center; }
.note-row p { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-family: var(--font-head); font-weight: 500; margin: 0; max-width: 60ch; letter-spacing: -.01em; }
@media (min-width: 900px) { .note-row { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }

/* ---- Über uns ---- */
.story { display: grid; gap: clamp(2rem, 4vw, 4rem); }
.story__text p { max-width: 68ch; color: var(--ink-2); }
.story__media { margin: 0; }
.story__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) { .story { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } .story__media img { aspect-ratio: 4 / 5; } }
.team { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; }
.member h3 { margin-bottom: .2rem; font-weight: 700; }
.member__role { color: var(--accent); font-family: var(--font-head); font-weight: 500; margin-bottom: .6rem; }
.member p:last-child { color: var(--muted); }
.values { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.value { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.value p { color: var(--ink-2); margin: 0; max-width: 60ch; }
@media (min-width: 900px) {
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 0; }
  .value { padding: 1.75rem 2rem 0 0; border-bottom: 0; }
  .value + .value { padding-left: 2rem; border-left: 1px solid var(--line); }
}
.partner-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.partner-list li { display: grid; gap: .25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.partner-list strong { font-family: var(--font-head); font-size: 1.15rem; }
.partner-list span { color: var(--ink-2); }
.partner-list .textlink { min-height: 36px; }

/* ---- Galerie ---- */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.chip {
  min-height: 44px; padding: .45rem 1rem; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font: 500 .98rem/1 var(--font-head); cursor: pointer; transition: all var(--t) var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px var(--glow); }
.filter-status { min-height: 1.5em; color: var(--muted); font-size: .92rem; margin-bottom: 1.5rem; }
.ba-grid { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.ref-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ref { margin: 0; }
.ref img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
[data-cat].is-hidden { display: none; }
.empty-note { color: var(--muted); padding: 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---- FAQ ---- */
.faq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3.5rem; align-items: start; } .faq-aside { position: sticky; top: 96px; } }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 3rem 1.25rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1.05rem; font: 500 1.8rem/1 var(--font-head); color: var(--accent); transition: transform var(--t) var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq__q { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); font-weight: 500; margin: 0; letter-spacing: -.01em; }
.faq summary:hover .faq__q { color: var(--accent); }
.faq__a { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 72ch; }
.faq-aside { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: .75rem; }
.faq-aside h2 { font-size: 1.5rem; margin: 0; }
.faq-aside p { color: var(--ink-2); margin: 0 0 .5rem; }

/* ---- Kontakt ---- */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.channels { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .6rem; }
.channel {
  display: grid; gap: .15rem; padding: 1rem 1.2rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.channel:hover { color: var(--ink); border-color: var(--accent); box-shadow: 0 8px 22px -14px var(--glow); }
.channel__k { font-size: .88rem; color: var(--muted); }
.channel:hover .channel__v { color: var(--accent); }
.channel--wa:hover .channel__v { color: var(--wa); }
.channel__v { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); overflow-wrap: anywhere; }
.infobox { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.infobox h2 { font-size: 1.1rem; margin-bottom: .35rem; }
.infobox p { margin: 0; color: var(--ink-2); }
.form { padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 96px; }
.form h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-bottom: .4rem; }
.form-note { color: var(--muted); font-size: .93rem; }
.two-col { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field label { font-weight: 500; }
.req { color: #B3261E; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid rgba(23, 24, 28, .4); border-radius: var(--radius);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 80, 200, .25); }
.field ::placeholder { color: #6A6C73; }
.err { display: none; color: #B3261E; font-size: .9rem; }
.field.invalid .err, .consent.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .75rem; margin: .25rem 0 1.25rem; font-size: .95rem; }
.consent input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--accent); }
.consent .err { grid-column: 2; }
.form-status { display: none; margin: 0 0 1rem; padding: .85rem 1rem; border-radius: var(--radius); font-weight: 500; }
.form-status.ok { display: block; background: #E3F2E8; color: #0F5132; }
.form-status.bad { display: block; background: #FBE7E6; color: #8C1D18; }
.form-status.pending { display: block; background: var(--accent-soft); color: var(--accent-deep); }
.form .btn[type="submit"] { margin-top: .25rem; }

/* ---- Rechtstexte ---- */
.section--legal { padding-top: clamp(2rem, 4vw, 3rem); }
.legal { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .legal { grid-template-columns: 260px minmax(0, 1fr); gap: 4rem; align-items: start; } .toc { position: sticky; top: 96px; } }
.toc { font-size: .93rem; }
.toc__h { font-family: var(--font-head); font-weight: 700; margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.toc a { color: var(--ink-2); }
.prose { max-width: 78ch; }
.prose h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }

/* ---- 404 ---- */
.notfound { padding-block: clamp(4rem, 12vw, 9rem); }
.notfound .lead { margin-bottom: 1.75rem; }

/* ---- Footer ---- */
.site-footer { background: #111215; color: #C9CBD1; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .96rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #BFD0FA; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 2.5rem; }
.footer-about { grid-column: 1 / -1; }
.footer-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; margin-bottom: .75rem; }
.footer-brand img { width: 78px; height: auto; }
.footer-brand b { font-family: var(--font-head); font-size: 1.1rem; color: #fff; }
.footer-about p { max-width: 36ch; margin: 0; }
.footer-h { font-size: .95rem; color: #fff; margin-bottom: .75rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.site-footer li a, .site-footer address a { display: inline-block; padding: .35rem 0; }
.site-footer address { line-height: 1.7; overflow-wrap: anywhere; }
.site-footer .todo-inline { background: rgba(255, 241, 201, .15); color: #F5DE9A; }
.linklike { background: none; border: 0; padding: .35rem 0; color: #fff; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; text-align: left; }
.linklike:disabled { color: #9EA1A8; text-decoration: none; cursor: default; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.25rem 5.75rem; font-size: .88rem; color: #9EA1A8; }
.footer-bottom a { color: #C9CBD1; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); } .footer-about { grid-column: auto; } }

/* ---- WhatsApp-Button (unten links) & Barrierefreiheits-Menü (unten rechts) ---- */
.wa-float {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 45; display: inline-flex; align-items: center; gap: .5rem;
  min-height: 52px; padding: .6rem 1rem .6rem .75rem; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 500; box-shadow: 0 8px 22px -10px rgba(10, 60, 30, .7);
}
.wa-float:hover { color: #fff; background: #11663A; }
.wa-float svg { width: 28px; height: 28px; color: #fff; }
.wa-float svg path:first-child { fill: #25D366; }
@media (max-width: 520px) { .wa-float__label { display: none; } .wa-float { padding: .6rem; width: 52px; justify-content: center; } }
.a11y { position: fixed; right: 1rem; bottom: 1rem; z-index: 46; }
.a11y__toggle { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .6); }
.a11y__toggle svg { width: 26px; height: 26px; }
.a11y__panel { position: absolute; right: 0; bottom: 64px; width: min(310px, calc(100vw - 2rem)); background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.1rem; box-shadow: 0 18px 40px -18px rgba(23, 24, 28, .45); }
.a11y__panel h2 { font-size: 1.05rem; margin-bottom: .75rem; }
.a11y__row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.a11y__btns { display: flex; gap: .35rem; }
.a11y__level { min-width: 54px; text-align: center; align-self: center; font-weight: 700; }
.a11y__panel button:not(.a11y__toggle) { min-height: 44px; min-width: 44px; padding: .35rem .6rem; border: 1px solid var(--line-strong); background: var(--bg); border-radius: var(--radius); font: 500 .92rem var(--font-head); color: var(--ink); cursor: pointer; }
.a11y__switch[aria-pressed="true"] { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }
.a11y__reset { width: 100%; margin-top: .6rem; }

/* ---- Leaflet-Feinschliff ---- */
.leaflet-container { font-family: var(--font-body); }
.leaflet-control-attribution { font-size: 11px; }

/* ---- Dezente Scroll-Reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

@media print {
  .site-header, .wa-float, .a11y, .cta-band, .map-wrap { display: none !important; }
  body { background: #fff; }
}


/* =========================================================================
   Effekte & Animationen
   Nur transform/opacity/filter (GPU). Bei prefers-reduced-motion bzw.
   „Bewegung reduzieren“ im Barrierefreiheits-Menü komplett aus (Regeln oben
   mit !important); JS-Effekte laufen nur mit html.motion-ok.
   ========================================================================= */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
:root { interpolate-size: allow-keywords; }

/* ---- Scroll-Fortschritt als Lichtkante unter dem Header ---- */
.site-header { transition: box-shadow .3s var(--ease-out); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(23, 24, 28, .5); }
/* Wert kommt aus main.js (stabile Layout-Höhe statt Scroll-Timeline, damit die
   ein-/ausfahrende Adressleiste mobil den Balken nicht springen lässt). */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-hi)); box-shadow: 0 0 10px var(--glow);
  transform-origin: left; transform: scaleX(0); will-change: transform;
}

/* ---- Hero: Auftritt beim Laden ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .9s var(--ease-out) both; }
  .hero__copy > :nth-child(1) { animation-delay: .05s; }
  .hero__copy > :nth-child(2) { animation-delay: .12s; }
  .hero__copy > :nth-child(3) { animation-delay: .22s; }
  .hero__copy > :nth-child(4) { animation-delay: .32s; }
  .hero h1 .hl { animation: glow-in 1.8s var(--ease-out) .45s both; }
  .hero__media picture { animation: settle 1.3s var(--ease-out) both; }
  .hero__media::before { animation: neon-on 1.1s linear .7s both; }
  .hero__trace { animation: trace 2.4s var(--ease-in-out) .5s both; }
  .facts__row li { animation: rise .8s var(--ease-out) both; }
  .facts__row li:nth-child(1) { animation-delay: 0.40s; }
  .facts__row li:nth-child(2) { animation-delay: 0.47s; }
  .facts__row li:nth-child(3) { animation-delay: 0.54s; }
  .facts__row li:nth-child(4) { animation-delay: 0.61s; }
  .facts__row li:nth-child(5) { animation-delay: 0.68s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes glow-in { 0% { text-shadow: 0 0 0 transparent; } 45% { text-shadow: 0 0 30px rgba(61, 111, 230, .6); } 100% { text-shadow: 0 0 0 transparent; } }
@keyframes settle { from { transform: scale(1.06); clip-path: inset(0 0 14% 0 round 6px); } to { transform: none; clip-path: inset(0 0 0 0 round 6px); } }
/* Neonröhre springt an: kurzes Flackern, dann ruhiges Leuchten */
@keyframes neon-on {
  0% { opacity: 0; transform: scaleY(.2); } 10% { opacity: 1; } 16% { opacity: .15; } 24% { opacity: .9; }
  30% { opacity: .3; transform: scaleY(1); } 42% { opacity: 1; } 100% { opacity: 1; transform: scaleY(1); }
}

/* ---- Hero-Bild: Lichtlauf um den Rahmen + 3D-Neigung zur Maus ---- */
.hero__media { perspective: 1200px; }
.hero__media picture { display: block; border-radius: var(--radius); overflow: hidden; will-change: transform; }
.hero__trace {
  position: absolute; inset: -2px; z-index: 2; border-radius: 8px; padding: 2px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--angle), transparent 0deg 250deg, #8FB2FF 330deg, #fff 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 6px rgba(111, 155, 255, .9));
}
@keyframes trace { 0% { --angle: 0deg; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { --angle: 360deg; opacity: 0; } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero__media.is-tilting .hero__trace { animation: trace 1.8s var(--ease-in-out) both; }
}
.hero__shine {
  position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .28), transparent 60%);
  mix-blend-mode: soft-light; transition: opacity .4s var(--ease-out);
}
.hero__media.is-tilting .hero__shine { opacity: 1; }
.hero__halo {
  position: absolute; inset: 10% -5% -6% 12%; z-index: -1; border-radius: 30%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(61, 111, 230, .3), transparent); filter: blur(34px);
}

/* ---- Leistungs-Kacheln: Spotlight folgt der Maus, Kachel hebt sich ---- */
.svc { transition: border-color .3s var(--ease-out), transform .45s var(--ease-out), box-shadow .45s var(--ease-out); isolation: isolate; }
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), rgba(61, 111, 230, .14), transparent 65%);
  transition: opacity .35s var(--ease-out);
}
.svc--feature img { transition: transform .9s var(--ease-out); }
.ref { overflow: hidden; border-radius: var(--radius); }
.ref img, .partner__card, .cities li, .channel { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(20, 56, 148, .55), 0 0 0 1px rgba(61, 111, 230, .25); }
  .svc:hover::before { opacity: 1; }
  .svc--feature:hover img { transform: scale(1.045); }
  .partner__card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -26px rgba(20, 56, 148, .5); }
  .cities li:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 20px -12px var(--glow); }
  .ref:hover img { transform: scale(1.04); }
  .channel:hover { transform: translateX(4px); }
}

/* ---- Team-Zahlen zählen hoch ---- */
.people__n { font-variant-numeric: tabular-nums; transition: text-shadow 2.4s var(--ease-out); }
.people__n.is-counting { text-shadow: 0 0 30px rgba(61, 111, 230, .7); }

/* ---- Zuschuss-Panel: Lichtstreif fährt einmal über das Panel ---- */
.grant::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%);
  transform: translateX(-100%);
}
html.motion-ok .grant.is-in::after { transform: translateX(100%); transition: transform 1.8s var(--ease-in-out) .2s; }
html.motion-ok .grant::before { transform: scaleX(0); transition: transform 1.2s var(--ease-out) .1s; }
html.motion-ok .grant.is-in::before { transform: scaleX(1); }
html.motion-ok .grant__steps li { opacity: 0; transform: translateX(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), background-color .3s; transition-delay: calc(.35s + var(--i, 0) * 90ms); }
html.motion-ok .grant.is-in .grant__steps li { opacity: 1; transform: none; }
.grant__steps li:hover { background: rgba(255, 255, 255, .07); }

/* ---- CTA-Band: Lichtkante „schaltet sich ein“ ---- */
html.motion-ok .cta-band::before { transform: scaleX(0); }
html.motion-ok .cta-band.is-on::before { animation: neon-on-x 1.3s linear both; }
@keyframes neon-on-x { 0% { opacity: 0; transform: scaleX(.05); } 12% { opacity: 1; } 18% { opacity: .2; } 26% { opacity: 1; transform: scaleX(.6); } 34% { opacity: .4; } 50% { opacity: 1; transform: scaleX(1); } 100% { opacity: 1; transform: scaleX(1); } }

/* ---- Vorher/Nachher: Griff reagiert auf Hover/Ziehen ---- */
.ba__handle::after { transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.ba:hover .ba__handle::after, .ba.is-dragging .ba__handle::after { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 6px rgba(255, 255, 255, .35), 0 0 22px var(--glow); }

/* ---- Akkordeons öffnen weich (progressiv, wo unterstützt) ---- */
.svc-item::details-content, .faq::details-content {
  block-size: 0; overflow: hidden; opacity: 0;
  transition: block-size .45s var(--ease-out), opacity .35s var(--ease-out), content-visibility .45s allow-discrete;
}
.svc-item[open]::details-content, .faq[open]::details-content { block-size: auto; opacity: 1; }

/* ---- Galerie-Filter: View Transitions ---- */
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.23, 1, .32, 1); }

/* ---- Karte blendet weich ein ---- */
.map:not([hidden]) { animation: fade-in .6s var(--ease-out) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

html[data-motion="reduce"] .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }

/* ---- Interaktives Haus: Schnittzeichnung im Bauplan-Stil ---- */
.house { display: grid; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
@media (min-width: 1000px) { .house { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.house__stage { position: relative; }
.house__svg { display: block; width: 100%; height: auto; color: var(--ink); overflow: visible; }
.hz { cursor: pointer; transition: opacity .35s var(--ease-out), filter .35s var(--ease-out); }
.hz__fill { fill: var(--surface); transition: fill .35s var(--ease-out); }
.hz__line { stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: stroke .35s var(--ease-out); }
.hz__line:not(.hz__fill) { fill: none; }
.hz__fine { stroke-width: 1.2; stroke: #6B6D74; }
.hz__solid { fill: var(--ink); stroke: none; transition: fill .35s var(--ease-out); }
.hz__glass { fill: var(--accent-soft); }
.hz__panel { fill: var(--surface); }
.hz__pattern { color: rgba(23, 24, 28, .25); transition: color .35s var(--ease-out); }
.hz__hit { fill: transparent; stroke: none; }
.hz__outline { stroke-width: 2.5; }
.house__ground { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.house.has-active .hz:not(.is-active) { opacity: .42; }
.hz.is-active { filter: drop-shadow(0 0 7px rgba(61, 111, 230, .6)); }
.hz.is-active .hz__fill, .hz.is-active .hz__panel { fill: #DCE6FB; }
.hz.is-active .hz__line { stroke: var(--accent); }
.hz.is-active .hz__fine { stroke: var(--accent-hi); }
.hz.is-active .hz__solid { fill: var(--accent); }
.hz.is-active .hz__pattern { color: rgba(30, 80, 200, .45); }
.hz.is-active .hz__outline { stroke-width: 3.5; }

.house__panel { display: grid; gap: 1.25rem; }
.house__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.house__list button {
  min-height: 44px; padding: .45rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: 500 .95rem/1.2 var(--font-head); cursor: pointer;
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.house__list button:hover { border-color: var(--accent); color: var(--accent); }
.house__list button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px var(--glow); }
.house__detail { position: relative; padding: 1.4rem 1.5rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-height: 11.5rem; }
.house__detail::before { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-hi), transparent); box-shadow: 0 0 12px var(--glow); }
.house__item h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: .45rem; }
.house__item p { color: var(--ink-2); margin-bottom: .6rem; }
.house__item[hidden] { display: none; }
html.motion-ok .house__item:not([hidden]) { animation: rise .45s var(--ease-out) both; }
.house__hint { color: var(--muted); font-size: .92rem; margin: 0; }
/* Mobil/Tablet: Gewerke als wischbare Zeile, damit die Beschreibung direkt darunter sichtbar bleibt */
@media (max-width: 999px) {
  .house__list { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding: .15rem .1rem .6rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .house__list::-webkit-scrollbar { display: none; }
  .house__list li { flex: none; scroll-snap-align: center; }
  .house__list button { white-space: nowrap; }
  .house__detail { min-height: 0; }
}


/* ---- Ablauf mit Bauplan-Linie ---- */
.process { display: grid; gap: clamp(2rem, 4vw, 4rem); }
.process__head .lead { margin-bottom: 1.5rem; }
@media (min-width: 1000px) {
  .process { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .process__head { position: sticky; top: 110px; }
}
.process__steps { --p: 0; list-style: none; margin: 0; padding: 0 0 0 3.25rem; position: relative; counter-reset: st; }
.process__steps::before, .process__steps::after { content: ""; position: absolute; left: 1.05rem; top: .6rem; bottom: .6rem; width: 2px; }
.process__steps::before { background: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 12px); }
.process__steps::after {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent)); box-shadow: 0 0 12px var(--glow);
  transform-origin: top; transform: scaleY(var(--p));
}
.process__step { position: relative; counter-increment: st; padding: 0 0 clamp(1.75rem, 3.5vw, 2.75rem); }
.process__step:last-child { padding-bottom: 0; }
.process__step::before {
  content: counter(st); position: absolute; left: -3.25rem; top: 0; z-index: 1; width: 2.15rem; height: 2.15rem; border-radius: 50%;
  display: grid; place-items: center; font: 700 .95rem/1 var(--font-head); color: var(--muted);
  background: var(--bg); border: 2px solid var(--line-strong);
  transition: color .4s var(--ease-out), background-color .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.process__step h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); font-weight: 700; margin: .1rem 0 .4rem; transition: color .4s var(--ease-out); }
.process__step p { color: var(--ink-2); margin: 0; max-width: 60ch; }
.process__step.is-lit::before { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(61, 111, 230, .15), 0 0 18px var(--glow); }
html:not(.motion-ok) .process__steps { --p: 1; }
html:not(.motion-ok) .process__step::before { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ---- Zuschuss-Check ---- */
.zcheck { margin-top: 1rem; padding: clamp(1.4rem, 3.5vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 100px; }
.zcheck__head { display: grid; gap: .3rem 3rem; margin-bottom: 1.25rem; }
.zcheck__head h3 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); font-weight: 700; margin: 0; }
.zcheck__head p { color: var(--ink-2); margin: 0; max-width: 64ch; }
@media (min-width: 1000px) { .zcheck__head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; } }
.zcheck__progress, .wizard__progress { height: 4px; border-radius: 4px; background: var(--tint); overflow: hidden; }
.zcheck__bar, .wizard__bar { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent-hi)); transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease-out); box-shadow: 0 0 8px var(--glow); }
.zcheck__count, .wizard__count { margin: .5rem 0 1rem; color: var(--muted); font-size: .9rem; min-height: 1.4em; }
.zcheck__step, .wizard__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.zcheck__step legend, .wizard__step legend { font: 700 clamp(1.15rem, 1.05rem + .45vw, 1.4rem)/1.25 var(--font-head); margin-bottom: 1rem; padding: 0; }
.zcheck__options { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 1rem; }
@media (min-width: 640px) { .zcheck__options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .zcheck__options { grid-template-columns: repeat(4, minmax(0, 1fr)); } .zcheck__options--multi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zcheck__options > button, .zcheck__options label, .wizard__tiles label {
  display: flex; align-items: center; gap: .7rem; min-height: 56px; padding: .8rem 1rem; text-align: left;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--ink);
  font: 500 1rem/1.3 var(--font-head); cursor: pointer;
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .15s var(--ease-out);
}
.zcheck__options > button:hover, .zcheck__options label:hover, .wizard__tiles label:hover { border-color: var(--accent); }
.zcheck__options > button:active, .wizard__tiles label:active { transform: scale(.98); }
.zcheck__options input, .wizard__tiles input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); margin: 0; }
.zcheck__options label:has(input:checked), .wizard__tiles label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.zcheck__options label:has(input:focus-visible), .wizard__tiles label:has(input:focus-visible), .wizard__pills label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
html.motion-ok .zcheck__step:not([hidden]), html.motion-ok .zcheck__result:not([hidden]), html.motion-ok .wizard.is-js .wizard__step.is-current { animation: step-in .45s var(--ease-out) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.zcheck__result { outline: none; }
.zcheck__verdict { font: 700 clamp(1.3rem, 1.1rem + .8vw, 1.75rem)/1.2 var(--font-head); color: var(--accent-deep); margin-bottom: .5rem; }
.zcheck__result p { max-width: 68ch; }
.zcheck__note { padding: .8rem 1rem; border-radius: var(--radius); background: #FFF6DC; color: #4A3A00; }
.zcheck__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 1.25rem 0 .75rem; }
.zcheck__fine { font-size: .88rem; color: var(--muted); margin: 0; }
.linkbtn { background: none; border: 0; padding: .5rem 0; min-height: 44px; font: 500 1rem var(--font-head); color: var(--accent); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---- Anfrage-Assistent ---- */
.wizard__tiles { display: grid; gap: .55rem; grid-template-columns: minmax(0, 1fr); margin-bottom: .5rem; }
@media (min-width: 560px) { .wizard__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wizard__pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.wizard__pills label { position: relative; cursor: pointer; }
.wizard__pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wizard__pills span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .95rem; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--bg); font: 500 .95rem/1.2 var(--font-head);
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.wizard__pills label:hover span { border-color: var(--accent); }
.wizard__pills input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.field__label { font-weight: 500; }
.wizard__tip { padding: .85rem 1rem; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-deep); margin: 0 0 1rem; }
.wizard__nav { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .5rem; }
.wizard__nav [data-wz-next], .wizard__nav [type="submit"] { margin-left: auto; }
.wizard.is-js .wizard__step { display: none; }
.wizard.is-js .wizard__step.is-current { display: block; }
.wizard .err[data-wz-err].show { display: block; margin-top: .25rem; }
.wizard__done { outline: none; padding: 1.25rem; border-radius: var(--radius); background: #E3F2E8; }
.wizard__done-t { font: 700 1.4rem/1.2 var(--font-head); color: #0F5132; margin-bottom: .4rem; }
.wizard.is-sent .wizard__step, .wizard.is-sent .wizard__nav, .wizard.is-sent .wizard__progress, .wizard.is-sent .wizard__count, .wizard.is-sent > .form-note { display: none !important; }
@media (max-width: 520px) { .wizard__nav .btn { flex: 1 1 auto; } .wizard__nav [data-wz-next], .wizard__nav [type="submit"] { margin-left: 0; } }

/* ---- Ingenieurbüro: Gruppe auf der Leistungsseite + Block auf der Startseite ---- */
.svc-group { margin: clamp(1.5rem, 4vw, 3rem) 0 .5rem; padding-top: clamp(1.25rem, 3vw, 2rem); border-top: 2px solid var(--ink); scroll-margin-top: 96px; }
.svc-group h2 { margin-bottom: .5rem; }
.svc-group p { color: var(--ink-2); max-width: 72ch; margin: 0; }
.svc-item summary h3 { font-size: clamp(1.2rem, 1.05rem + .55vw, 1.5rem); font-weight: 700; margin: 0; }
.svc-item summary:hover h3 { color: var(--accent); }
.svc-item__body--text { grid-template-columns: minmax(0, 1fr) !important; }
.svc-index__group { font: 700 .8rem/1 var(--font-head); color: var(--muted); padding: .9rem 1rem .35rem; white-space: nowrap; text-align: left; }
@media (max-width: 999px) { .svc-index__group { padding: 0 .35rem 0 .6rem; align-self: center; } }
.ing { margin-top: 1rem; display: grid; gap: 1.25rem 3rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ing h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 700; margin-bottom: .5rem; }
.ing p { color: var(--ink-2); margin: 0; max-width: 60ch; }
.ing__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 1.5rem; grid-template-columns: minmax(0, 1fr); align-content: center; }
.ing__list a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 48px; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 500 1rem/1.3 var(--font-head); transition: color .25s var(--ease-out); }
.ing__list a::after { content: "→"; color: var(--muted); transition: transform .35s var(--ease-out), color .25s var(--ease-out); }
.ing__list a:hover { color: var(--accent); }
.ing__list a:hover::after { color: var(--accent); transform: translateX(4px); }
@media (min-width: 640px) { .ing__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ing { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }

/* ---- Fotos in <picture> (Stock bis eigene Fotos da sind) ---- */
.svc--feature picture, .svc-item__body picture, .story__media picture { display: block; }
.svc--feature picture { overflow: hidden; }
@media (min-width: 1100px) {
  .svc--feature picture { height: 100%; min-height: 230px; border-right: 1px solid var(--line); }
  .svc--feature picture img { height: 100%; border-right: 0; }
}

/* Teamkarten ohne Porträt (Fotos folgen): ruhige Karte mit Oberkante */
.member { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.member:has(img) { padding-top: 0; border-top: 0; }

/* ---- Öffnungszeiten (Kontakt + Footer) ---- */
.hours { margin: .25rem 0 .6rem; display: grid; gap: 0; max-width: 26rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hours .hours__closed dd { color: var(--muted); }
.hours__note { color: var(--muted) !important; font-size: .93rem; }
.footer-hours { margin: 0; line-height: 1.7; }
.footer-hours .nw { white-space: nowrap; }
.footer-hours b { color: #fff; font-family: var(--font-head); font-weight: 500; }

/* Footer auf schmalen Handys: etwas kleiner und enger, damit Adresse/Zeiten nicht umbrechen */
@media (max-width: 520px) {
  .site-footer { font-size: .9rem; }
  .footer-grid { gap: 2rem 1.1rem; }
  .site-footer address { overflow-wrap: normal; }
}
@media (max-width: 359px) { .site-footer { font-size: .84rem; } .footer-grid { gap: 2rem .9rem; } }
