/* ==========================================================================
   castus-iT – Stylesheet
   CI-Farben: Grün #95C11F (primär), Blau #3F8BB7, Violett #9E65A7,
   Orange #F07E20, Hellgrau #A7A8AA, Dunkelgrau #53565A
   Schriften: Mosk (Titel/Logo), Noto Sans (Überschriften & Fließtext)
   ========================================================================== */

@font-face { font-family: "Mosk"; src: url("../fonts/mosk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Mosk"; src: url("../fonts/mosk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --green: #95c11f;
  --blue: #3f8bb7;
  --violet: #9e65a7;
  --orange: #f07e20;
  --grey-light: #a7a8aa;
  --grey-dark: #53565a;

  --bg: #f7f8f5;
  --bg-alt: #eff2ea;
  --surface: #ffffff;
  --surface-2: #f2f4ef;
  --text: #15171a;
  --text-muted: #53565a;
  --text-soft: #6b6e72;
  --border: #e1e5dc;
  --border-strong: #cfd5c7;

  /* Textfarben der Akzente – im Light-Mode abgedunkelt für ausreichenden Kontrast */
  --green-ink: #4a6607;
  --blue-ink: #2c6d93;
  --violet-ink: #7d4987;
  --orange-ink: #9c4a07;
  --focus: #3f5a06;
  --input-border: #767b72;

  --green-tint: rgba(149, 193, 31, .14);
  --blue-tint: rgba(63, 139, 183, .12);
  --violet-tint: rgba(158, 101, 167, .12);
  --orange-tint: rgba(240, 126, 32, .12);

  --on-green: #111807;
  --header-bg: rgba(247, 248, 245, .82);
  --shadow-sm: 0 1px 2px rgba(20, 24, 16, .06), 0 1px 3px rgba(20, 24, 16, .05);
  --shadow: 0 10px 30px -12px rgba(20, 30, 10, .18), 0 2px 6px rgba(20, 30, 10, .05);
  --shadow-lg: 0 30px 60px -25px rgba(20, 30, 10, .30);
  --grid-line: rgba(21, 23, 26, .06);
  --logo-color: #000;

  --font-display: "Mosk", "Noto Sans", system-ui, sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0d0f;
    --bg-alt: #101316;
    --surface: #14181b;
    --surface-2: #1a1f23;
    --text: #eef0eb;
    --text-muted: #a7a8aa;
    --text-soft: #8b8d90;
    --border: #232a2f;
    --border-strong: #313a40;
    --green-ink: #a9d236;
    --blue-ink: #6fb3dc;
    --violet-ink: #c795cf;
    --orange-ink: #f6a05a;
    --focus: #c6ec5a;
    --input-border: #7d868d;
    --green-tint: rgba(149, 193, 31, .14);
    --blue-tint: rgba(63, 139, 183, .18);
    --violet-tint: rgba(158, 101, 167, .18);
    --orange-tint: rgba(240, 126, 32, .16);
    --header-bg: rgba(11, 13, 15, .78);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -25px rgba(0, 0, 0, .8);
    --grid-line: rgba(255, 255, 255, .045);
    --logo-color: #fff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d0f;
  --bg-alt: #101316;
  --surface: #14181b;
  --surface-2: #1a1f23;
  --text: #eef0eb;
  --text-muted: #a7a8aa;
  --text-soft: #8b8d90;
  --border: #232a2f;
  --border-strong: #313a40;
  --green-ink: #a9d236;
  --blue-ink: #6fb3dc;
  --violet-ink: #c795cf;
  --orange-ink: #f6a05a;
  --focus: #c6ec5a;
  --input-border: #7d868d;
  --green-tint: rgba(149, 193, 31, .14);
  --blue-tint: rgba(63, 139, 183, .18);
  --violet-tint: rgba(158, 101, 167, .18);
  --orange-tint: rgba(240, 126, 32, .16);
  --header-bg: rgba(11, 13, 15, .78);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -25px rgba(0, 0, 0, .8);
  --grid-line: rgba(255, 255, 255, .045);
  --logo-color: #fff;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
/* Lange Wörter (z. B. „Primärversorgungszentrum“) dürfen umbrechen statt überzulaufen */
.grid > *, .split > *, .hero-grid > *, .case-layout > *, .case-hero > *, .footer-grid > *, .feature-list li > div, .service > div, .contact-list li > div, .goal > div { min-width: 0; }
@media (max-width: 640px) { body { hyphens: auto; -webkit-hyphens: auto; } }
:root[data-fontsize] body { hyphens: auto; -webkit-hyphens: auto; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--green); color: var(--on-green); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-family: var(--font-body); font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--green); color: var(--on-green); border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon-flip { transform: scaleX(-1); }
.inline-icon { display: inline-block; vertical-align: -.2em; }

/* ---------- Typo helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  margin: 0 0 1rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--blue { color: var(--blue-ink); }
.eyebrow--violet { color: var(--violet-ink); }
.eyebrow--orange { color: var(--orange-ink); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.hl { color: var(--green-ink); }
.brand-name { white-space: nowrap; }
.h-small { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.4em;
  border: 1px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; text-align: center; max-width: 100%;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--green); --btn-fg: var(--on-green); --btn-bd: var(--green); }
.btn--primary:hover { --btn-bg: #a4cf2d; box-shadow: 0 12px 28px -10px rgba(149, 193, 31, .6); }
.btn--ghost { --btn-bg: transparent; }
.btn--ghost:hover { --btn-bd: var(--green); }
.btn--sm { min-height: 40px; padding: .5em 1.1em; font-size: .92rem; }
.btn--lg { min-height: 54px; padding: .8em 1.6em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--green-ink); text-decoration: none; }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
a:hover > .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: block; flex-shrink: 0; color: var(--logo-color); text-decoration: none; }
.logo { width: 150px; height: auto; overflow: visible; }
.logo text { font-family: "Mosk", var(--font-body); }
.logo__name { font-weight: 700; font-size: 250px; fill: var(--logo-color); }
.logo__i { fill: var(--green); }
.logo__sub { font-weight: 500; font-size: 92px; fill: var(--green); }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--text); font-size: .95rem; font-weight: 500; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-list > li > a:hover { background: var(--surface-2); }
.nav-list > li > a[aria-current] { color: var(--green-ink); background: var(--green-tint); }
.sub-toggle { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-muted); cursor: pointer; }
.sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  width: 380px; padding: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) {
  :root:not(.nav-compact) .has-sub:hover:not(.is-dismissed) .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.sub-menu ul { margin: 0; padding: 0; list-style: none; }
.sub-menu li a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.sub-menu li a:hover { background: var(--surface-2); }
.sub-menu strong { display: block; font-size: .95rem; }
.sub-menu small { display: block; color: var(--text-muted); font-size: .82rem; line-height: 1.35; }
.sub-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; }
.sub-icon .icon { width: 20px; height: 20px; }
.sub-icon--green { background: var(--green-tint); color: var(--green-ink); }
.sub-icon--blue { background: var(--blue-tint); color: var(--blue-ink); }
.sub-icon--violet { background: var(--violet-tint); color: var(--violet-ink); }
.sub-icon--orange { background: var(--orange-tint); color: var(--orange-ink); }
.sub-all { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 12px 10px 6px; border-top: 1px solid var(--border); font-size: .9rem; font-weight: 600; text-decoration: none; }
.sub-all .icon { width: 18px; height: 18px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .nav-toggle, .a11y-toggle, .icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease);
}
.theme-toggle:hover, .nav-toggle:hover, .a11y-toggle:hover, .icon-btn:hover { border-color: var(--green); }
.a11y-toggle .icon, .icon-btn .icon { width: 22px; height: 22px; }
.theme-toggle > span { grid-area: 1 / 1; display: grid; transition: transform .4s var(--ease), opacity .3s; }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(.5); }
  :root:not([data-theme="light"]) .theme-toggle__moon { opacity: 1; transform: none; }
}
.nav-toggle { display: none; }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars span { height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile-footer { display: none; }

@media (max-width: 1180px) {
  .nav-list > li > a { padding: 8px 9px; font-size: .92rem; }
}
/* Kompakte Navigation (per JS abhängig von Breite UND Schriftgröße gesetzt) */
.nav-compact .nav-toggle { display: grid; }
.nav-compact .header-cta { display: none; }
.nav-compact .main-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  display: flex; flex-direction: column;
  padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav-compact .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s; }
.nav-compact .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
.nav-compact .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.nav-compact .nav-list > li > a { flex: 1; padding: 16px 4px; border-radius: 0; font-family: var(--font-display); font-size: 1.35rem; }
.nav-compact .nav-list > li > a:hover, .nav-compact .nav-list > li > a[aria-current] { background: none; }
.nav-compact .sub-toggle { width: 44px; height: 44px; margin: 0; }
.nav-compact .sub-toggle .icon { width: 22px; height: 22px; }
.nav-compact .sub-menu {
  position: static; width: 100%; padding: 0 0 12px; display: none;
  border: 0; box-shadow: none; background: none;
  opacity: 1; visibility: visible; transform: none;
}
.nav-compact .has-sub.is-open .sub-menu { display: block; transform: none; }
.nav-compact .sub-menu::before { display: none; }
.nav-compact .nav-mobile-footer { display: grid; gap: 14px; margin-top: auto; padding-top: 28px; }
.nav-compact .nav-mobile-contact { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); text-decoration: none; }
.nav-compact body.nav-open { overflow: hidden; }

/* Ohne JavaScript: Navigation bleibt sichtbar und umbrechend */
html:not(.js) [data-theme-toggle], html:not(.js) [data-a11y-open], html:not(.js) .nav-toggle { display: none; }
@media (max-width: 1080px) {
  html:not(.js) .site-header { position: static; height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .main-nav { order: 3; width: 100%; margin: 0; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
  html:not(.js) .header-actions { margin-left: auto; }
}

@media (max-width: 420px) {
  .logo { width: 128px; }
}
/* Sehr schmale Viewports / 400 % Zoom: Header muss in 320 px passen */
@media (max-width: 374px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .theme-toggle, .nav-toggle, .a11y-toggle { width: 40px; height: 40px; }
  .logo { width: 108px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; max-width: none; }
.section-head--split > div { max-width: 680px; }

/* Grid backdrop (Netzwerk-Motiv aus der Bildwelt) */
.bg-grid { position: relative; isolation: isolate; }
.bg-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 110px); }
.hero__glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; border-radius: 50%;
  filter: blur(90px); opacity: .45;
}
.hero__glow--a { top: -300px; right: -160px; background: radial-gradient(circle, rgba(149, 193, 31, .55), transparent 65%); }
.hero__glow--b { bottom: -380px; left: -260px; background: radial-gradient(circle, rgba(63, 139, 183, .35), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { margin-bottom: .4em; font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.hero h1 .hl { color: var(--green-ink); }
.hero .lead { margin-bottom: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 2rem 0 0; padding: 0; list-style: none; color: var(--text-muted); font-size: .92rem; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges .icon { width: 18px; height: 18px; color: var(--green-ink); }

/* Hero-Visual: Netzwerk mit Status-Karten */
.hero-visual { position: relative; aspect-ratio: 1 / .92; }
.hero-visual__net { position: absolute; inset: 0; width: 100%; height: 100%; }
.net-line { stroke: var(--border-strong); stroke-width: 1.2; }
.net-line--active { stroke: var(--green); stroke-width: 1.6; stroke-dasharray: 5 7; animation: dash 4.5s linear 1 forwards; }
.net-node { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.net-node--green { fill: var(--green); stroke: none; }
.net-node--blue { fill: var(--blue); stroke: none; }
.net-node--violet { fill: var(--violet); stroke: none; }
.net-node--orange { fill: var(--orange); stroke: none; }
.net-pulse { fill: none; stroke: var(--green); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) 2 forwards; }
@keyframes dash { to { stroke-dashoffset: -240; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

.status-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: .88rem; line-height: 1.3;
  animation: float 4.5s ease-in-out 1;
}
.status-card strong { display: block; font-size: .92rem; }
.status-card small { color: var(--text-muted); }
.status-card .sub-icon { width: 36px; height: 36px; }
.status-card--1 { top: 8%; left: 0; }
.status-card--2 { top: 42%; right: -2%; animation-delay: .2s; }
.status-card--3 { bottom: 6%; left: 10%; animation-delay: .4s; }
.status-dot { width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--border); background: var(--surface); }
.trust ul { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 14px; padding: 22px 20px; border-left: 1px solid var(--border); }
.trust li:first-child { border-left: 0; padding-left: 0; }
.trust .sub-icon { width: 44px; height: 44px; border-radius: 12px; }
.trust strong { display: block; font-size: 1rem; line-height: 1.25; }
.trust small { color: var(--text-muted); font-size: .85rem; }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card--flat { box-shadow: none; }
a.card { color: inherit; text-decoration: none; }
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--text-muted); }
.card > :last-child { margin-bottom: 0; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.card-icon { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; background: var(--green-tint); color: var(--green-ink); }
.card-icon .icon { width: 26px; height: 26px; }
.card-icon--blue { background: var(--blue-tint); color: var(--blue-ink); }
.card-icon--violet { background: var(--violet-tint); color: var(--violet-ink); }
.card-icon--orange { background: var(--orange-tint); color: var(--orange-ink); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Pillars */
.pillar { padding: clamp(26px, 3vw, 36px); overflow: hidden; }
.pillar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--accent, var(--green)); transform: scaleX(.18); transform-origin: left;
  transition: transform .5s var(--ease);
}
.pillar:hover::after { transform: scaleX(1); }
.pillar--blue { --accent: var(--blue); }
.pillar--violet { --accent: var(--violet); }
.pillar h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; }
.check-list { margin: 0 0 1.4em; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 6px 0 6px 30px; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2395c11f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Service tiles */
.service { flex-direction: row; gap: 18px; align-items: flex-start; }
.service .card-icon { margin: 0; width: 46px; height: 46px; border-radius: 12px; }
.service .card-icon .icon { width: 22px; height: 22px; }
.service h3 { font-size: 1.08rem; }
.service p { font-size: .96rem; margin-bottom: .6em; }
.service > div:last-child { display: flex; flex-direction: column; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
.feature-panel {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #171c20, #0d1013);
  color: #eef0eb;
  box-shadow: var(--shadow-lg);
}
.feature-panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(158, 101, 167, .35), transparent 50%), radial-gradient(circle at 0% 100%, rgba(149, 193, 31, .25), transparent 55%);
}
.feature-panel > * { position: relative; }
.feature-panel h3 { color: #fff; }
.feature-panel p { color: #b9bcbf; }
.goal { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.goal:first-of-type { border-top: 0; padding-top: 0; }
.goal .card-icon { margin: 0; width: 46px; height: 46px; background: rgba(149, 193, 31, .15); color: #b6dd4a; }
.goal:nth-of-type(2) .card-icon { background: rgba(63, 139, 183, .2); color: #7fbde2; }
.goal:nth-of-type(3) .card-icon { background: rgba(158, 101, 167, .22); color: #d3a3da; }
.goal h3 { margin: 0 0 4px; font-size: 1.05rem; }
.goal p { margin: 0; font-size: .95rem; }

/* ---------- References ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logo-wall a {
  display: block; aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #f2f2f2;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.logo-wall a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo-wall img { width: 100%; height: 100%; object-fit: cover; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--input-border); border-radius: 999px;
  background: var(--surface); color: var(--text);
  font: 500 .92rem var(--font-body); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.ref-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  color: inherit; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ref-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ref-card[hidden] { display: none; }
.ref-card__logo { aspect-ratio: 16 / 10; overflow: hidden; background: #f2f2f2; }
.ref-card__logo img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.ref-card:hover .ref-card__logo img { transform: scale(1.05); }
.ref-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.ref-card__body .eyebrow { margin-bottom: .6rem; font-size: .72rem; }
.ref-card__body h3 { font-size: 1.15rem; }
.ref-card__body p { color: var(--text-muted); font-size: .95rem; }
.ref-card__body .link-arrow { margin-top: auto; }

/* Quote */
.quote { position: relative; margin: 0; padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.quote-mark { width: 36px; height: 36px; margin-bottom: 14px; color: var(--green); fill: var(--green-tint); }
.quote blockquote { margin: 0 0 18px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.45; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--text-muted); font-size: .92rem; }
.quote--large blockquote { font-size: clamp(1.3rem, 2.4vw, 1.85rem); }

/* ---------- About / name ---------- */
.name-card {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.name-card__word { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1; letter-spacing: -.02em; }
.name-card__word span { color: var(--green); }
.name-card__phon { margin: 10px 0 24px; color: var(--text-muted); font-style: italic; }
.name-card__def { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.name-card__def li { padding: 8px 16px; border-radius: 999px; background: var(--green-tint); color: var(--green-ink); font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stat { padding-top: 16px; border-top: 1px solid var(--border); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; line-height: 1.1; color: var(--text); }
.stat span { color: var(--text-muted); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #95c11f 0%, #7fae12 100%);
  color: var(--on-green);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0, 0, 0, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000);
  mask-image: linear-gradient(90deg, transparent 20%, #000);
}
.cta-band > * { position: relative; }
.cta-band__text { max-width: 620px; }
.cta-band h2 { margin-bottom: .3em; color: #0f1406; }
.cta-band p { margin: 0; color: #25310b; font-size: 1.1rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--primary { --btn-bg: #111509; --btn-fg: #fff; --btn-bd: #111509; }
.cta-band .btn--primary:hover { --btn-bg: #000; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5); }
.cta-band .btn--ghost { --btn-fg: #111509; --btn-bd: rgba(17, 21, 9, .35); }
.cta-band .btn--ghost:hover { --btn-bd: #111509; }
.cta-band :focus-visible { outline-color: #111509; }

/* ---------- Page hero (Unterseiten) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
  mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; top: -320px; right: -200px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow, rgba(149, 193, 31, .35)), transparent 65%); filter: blur(60px); opacity: .6;
}
.page-hero--blue { --hero-glow: rgba(63, 139, 183, .45); }
.page-hero--violet { --hero-glow: rgba(158, 101, 167, .45); }
.page-hero--orange { --hero-glow: rgba(240, 126, 32, .35); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .btn-row { margin-top: 2rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .88rem; color: var(--text-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-ink); }
.back-link { display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--text-muted); font-size: .92rem; text-decoration: none; }
.back-link:hover { color: var(--green-ink); }
.back-link .icon { width: 16px; height: 16px; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 1.6em; color: var(--green-ink); font-size: 1.1rem; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding: 4px 0 4px 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 2px; background: var(--green); transform: rotate(45deg); }
.prose--legal { font-size: 1rem; }
.prose--legal h2 { font-size: 1.5rem; }
.prose--legal p { color: var(--text-muted); }
.prose--legal strong { color: var(--text); }

/* Detail-Features (Unterseiten) */
.feature-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature-list .card-icon { width: 42px; height: 42px; margin: 0; border-radius: 11px; }
.feature-list .card-icon .icon { width: 21px; height: 21px; }
.feature-list strong { display: block; margin-bottom: 2px; }
.feature-list span { color: var(--text-muted); font-size: .96rem; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.check-grid li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.check-grid .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--green-ink); }

.topic-card h3 { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; font-size: 1.1rem; }
.topic-card h3 .card-icon { width: 40px; height: 40px; margin: 0; border-radius: 10px; }
.topic-card h3 .card-icon .icon { width: 20px; height: 20px; }
.topic-card ul { margin: 0; padding: 0; list-style: none; }
.topic-card li { position: relative; padding: 7px 0 7px 22px; color: var(--text-muted); font-size: .96rem; border-top: 1px dashed var(--border); }
.topic-card li:first-child { border-top: 0; }
.topic-card li::before { content: "?"; content: "?" / ""; position: absolute; left: 0; top: 7px; color: var(--violet-ink); font-weight: 700; }

.app-tile { display: flex; flex-direction: column; gap: 6px; }
.app-tile h3 { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 0; }
.app-tile h3 .card-icon { width: 38px; height: 38px; margin: 0; border-radius: 10px; }
.app-tile h3 .card-icon .icon { width: 19px; height: 19px; }

.steps { counter-reset: step; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 64px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--on-green); font-weight: 700; }

.info-box { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--blue-tint); color: var(--text); }
.info-box .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--blue-ink); }
.info-box p { margin: 0; }
.info-box--green { background: var(--green-tint); }
.info-box--green .icon { color: var(--green-ink); }

.partner-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); color: #15171a; }
.partner-badge img { width: 220px; }
.partner-badge p { flex: 1; min-width: 220px; margin: 0; color: #53565a; }
.partner-badge a { color: #557409; }

/* Download card */
.download-card { display: flex; align-items: center; gap: 18px; }
.download-card .card-icon { margin: 0; }
.download-card h3 { margin: 0 0 2px; }
.download-card p { margin: 0; font-size: .95rem; }
.download-card .btn { margin-left: auto; }

/* Team */
.team-card { align-items: center; text-align: center; padding-top: 36px; }
.team-card__photo { width: min(168px, 100%); height: auto; aspect-ratio: 1; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; background: #f0f0f0; box-shadow: 0 0 0 6px var(--green-tint); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { margin-bottom: 14px; color: var(--green-ink); font-weight: 600; font-size: .95rem; }
.team-card .role { margin-bottom: 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
.team-grid > * { min-width: 0; }
.team-card__photo--placeholder { display: grid; place-items: center; background: linear-gradient(145deg, var(--surface-2), var(--bg-alt)); }
.team-card__photo--placeholder span { font-family: var(--font-display); font-weight: 700; font-size: 3rem; color: var(--green-ink); letter-spacing: .02em; }
@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .team-grid { grid-template-columns: 1fr; } }

.contact-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .card-icon { width: 42px; height: 42px; margin: 0; border-radius: 11px; }
.contact-list .card-icon .icon { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--text-muted); font-size: .85rem; }
.contact-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--green-ink); }

/* Case study */
.page-hero--case { padding-bottom: clamp(24px, 4vw, 48px); }
.case-hero { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: center; }
.case-logo { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); background: #f2f2f2; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tag-list li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-muted); font-size: .85rem; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.case-intro { font-size: 1.15rem; }
.case-block { margin-top: 2.2em; }
.case-block h2 { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; }
.case-block h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--green); transform: rotate(45deg); }
.case-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: .95rem; }
.facts dt { color: var(--text-muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.next-case {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 32px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color .3s, transform .3s var(--ease);
}
.next-case:hover { border-color: var(--green); transform: translateY(-2px); }
.next-case small { display: block; color: var(--text-muted); }
.next-case strong { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.next-case .icon { width: 28px; height: 28px; color: var(--green-ink); }

/* Mail-Karten (keine Formulare – Versand über das E-Mail-Programm der Besucher) */
.mail-card { align-items: flex-start; }
.mail-card .btn { margin-top: 4px; }
.mail-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.form-note { color: var(--text-muted); font-size: .88rem; margin: 12px 0 0; }

/* Consent-Embed (Bookings / Forms) */
.embed-consent {
  display: grid; place-items: center; gap: 16px; min-height: 360px; padding: 40px 24px; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface);
}
.embed-consent .card-icon { margin: 0 auto; }
.embed-consent p { max-width: 520px; margin: 0; color: var(--text-muted); font-size: .95rem; }
.embed-frame { width: 100%; min-height: 1200px; border: 0; border-radius: var(--radius-lg); background: #fff; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); padding: clamp(48px, 6vw, 72px) 0 28px; background: var(--bg-alt); border-top: 1px solid var(--border); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { width: 170px; margin-bottom: 20px; }
.footer-brand p { color: var(--text-muted); max-width: 34ch; }
.footer-since { font-size: .85rem; color: var(--text-soft) !important; }
.footer-title { margin-bottom: 16px; font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-ink); }
.footer-list, .footer-links { margin: 0; padding: 0; list-style: none; }
.footer-list li { display: flex; gap: 12px; padding: 5px 0; color: var(--text-muted); }
.footer-list .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--text-soft); }
.footer-list a, .footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-list a:hover, .footer-links a:hover { color: var(--green-ink); }
.footer-links li { padding: 5px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-soft); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer-bottom a { color: var(--text-soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--green-ink); }

/* 404 */
.not-found { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.not-found__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 18vw, 12rem); line-height: 1; letter-spacing: -.04em; }
.not-found__code span { color: var(--green); }
.not-found .btn-row { justify-content: center; }

/* ---------- Reveal ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .case-layout { grid-template-columns: 1fr; }
  .case-aside { position: static; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin: 8px auto 0; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .case-hero { grid-template-columns: 1fr; }
  .case-logo { max-width: 220px; order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid--2, .grid--3, .grid--4, .ref-grid { grid-template-columns: 1fr; }
  .trust ul { grid-template-columns: 1fr; }
  .trust li { border-left: 0 !important; padding-left: 0 !important; padding-block: 16px; }
  .trust li + li { border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .btn-row .btn, .cta-band__actions .btn { width: 100%; }
  .cta-band__actions { width: 100%; }
  .status-card { font-size: .8rem; padding: 9px 12px 9px 9px; gap: 9px; }
  .status-card .sub-icon { width: 30px; height: 30px; }
  .status-card .sub-icon .icon { width: 16px; height: 16px; }
  .status-card strong { font-size: .84rem; }
  .status-card--2 { right: 0; }
  .download-card { flex-wrap: wrap; }
  .download-card .btn { margin-left: 0; width: 100%; }
  .next-case { padding: 22px; }
  .next-case strong { font-size: 1.2rem; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ==========================================================================
   Barrierefreiheit – Einstellungen & Systempräferenzen
   ========================================================================== */

/* Schriftgröße (alle Maße in rem skalieren mit) */
:root[data-fontsize="115"] { font-size: 115%; }
:root[data-fontsize="130"] { font-size: 130%; }

/* Links unterstreichen */
:root[data-links="underline"] a:not(.btn):not(.brand) { text-decoration: underline !important; text-decoration-thickness: 2px !important; }

/* Hoher Kontrast – manuell oder per Systemeinstellung */
:root[data-contrast="more"] {
  --text-muted: var(--text);
  --text-soft: var(--text);
  --border: var(--input-border);
  --border-strong: var(--input-border);
  --grid-line: transparent;
}
:root[data-contrast="more"] .hero__glow, :root[data-contrast="more"] .page-hero::after, :root[data-contrast="more"] .feature-panel::before { display: none; }
:root[data-contrast="more"] .status-card { background: var(--surface); }
@media (prefers-contrast: more) {
  :root {
    --text-muted: var(--text);
    --text-soft: var(--text);
    --border: var(--input-border);
    --border-strong: var(--input-border);
    --grid-line: transparent;
  }
  .hero__glow, .page-hero::after, .feature-panel::before { display: none; }
}

/* Bewegung reduzieren – manuell (Systemeinstellung siehe oben) */
:root[data-motion="reduce"] { scroll-behavior: auto; }
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
}
:root[data-motion="reduce"] .reveal { opacity: 1 !important; transform: none !important; }
:root[data-motion="reduce"] .net-pulse { display: none; }

/* Dialog „Darstellung anpassen“ */
.a11y-dialog {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; overflow: auto;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.a11y-dialog::backdrop { background: rgba(5, 7, 9, .55); }
.a11y-panel { display: grid; gap: 22px; padding: clamp(20px, 4vw, 28px); }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-head h2 { margin: 0; font-size: 1.5rem; }
.a11y-intro { margin: -10px 0 0; color: var(--text-muted); font-size: .92rem; }
.a11y-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.a11y-group legend { margin-bottom: 10px; padding: 0; font-weight: 700; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--input-border); border-radius: 14px; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 8px; border-radius: 10px; font-weight: 500; font-size: .92rem; text-align: center; line-height: 1.2; }
.seg input:checked + span { background: var(--text); color: var(--bg); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg .icon { width: 18px; height: 18px; }
.switch-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.switch-row:last-child { border-bottom: 1px solid var(--border); }
.switch-row label { flex: 1; cursor: pointer; }
.switch-row label strong { display: block; }
.switch-row label small { display: block; color: var(--text-muted); font-size: .86rem; line-height: 1.4; }
.switch {
  position: relative; flex-shrink: 0; width: 52px; height: 30px; margin: 0;
  appearance: none; -webkit-appearance: none;
  border: 2px solid var(--input-border); border-radius: 999px; background: var(--surface-2);
  cursor: pointer; transition: background-color .2s, border-color .2s;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--input-border); transition: transform .2s var(--ease), background-color .2s; }
.switch:checked { background: var(--green-ink); border-color: var(--green-ink); }
.switch:checked::after { transform: translateX(22px); background: #fff; }
.switch:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.a11y-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-foot a { font-size: .92rem; }
.a11y-foot .btn-row { gap: 8px; }
.footer-a11y { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--text-muted); font: inherit; cursor: pointer; }
.footer-a11y:hover { color: var(--green-ink); }
.footer-a11y .icon { width: 18px; height: 18px; }

/* Windows-Kontrastmodus (forced colors) */
@media (forced-colors: active) {
  .logo__name, .logo__i, .logo__sub { fill: CanvasText; }
  .btn, .chip, .card, .ref-card, .quote, .cta-band, .feature-panel, .status-card, .embed-consent { border: 1px solid CanvasText; }
  .chip[aria-pressed="true"], .seg input:checked + span {
    forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight;
  }
  .switch { forced-color-adjust: none; background: Canvas; border-color: CanvasText; }
  .switch::after { background: CanvasText; }
  .switch:checked { background: Highlight; border-color: Highlight; }
  .switch:checked::after { background: HighlightText; }
  .nav-list > li > a[aria-current] { text-decoration: underline; }
  :focus-visible { outline-color: Highlight; }
  .hero__glow, .page-hero::after, .bg-grid::before, .page-hero::before { display: none; }
}

/* Druck */
@media print {
  .site-header, .site-footer, .cta-band, .hero-visual, .skip-link, .a11y-dialog, .filter-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
