/* ============================================================
   Lumen Media — statische Website
   Handgeschriebenes CSS, keine Frameworks. Light/Dark via Tokens.
   Fonts self-hosted (Variable, latin-subset).
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  color-scheme: light dark;

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Light (Standard) */
  --bg: #fbfbfc;
  --bg-elev: #ffffff;
  --surface: #f2f4f7;
  --surface-2: #eaecf0;
  --text: #101828;
  --text-muted: #475467;
  --text-faint: #667085;
  --border: rgba(16, 19, 38, 0.11);
  --border-strong: rgba(16, 19, 38, 0.22);
  --accent: #1570ef;
  --accent-hover: #175cd3;
  --accent-ink: #ffffff;
  --accent-soft: rgba(21, 112, 239, 0.10);
  --shadow: 0 1px 2px rgba(24,21,15,.04), 0 12px 32px -12px rgba(24,21,15,.14);
  --shadow-sm: 0 1px 2px rgba(24,21,15,.05), 0 4px 12px -6px rgba(24,21,15,.10);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f26;
    --bg-elev: #14172e;
    --surface: #171a33;
    --surface-2: #1e2240;
    --text: #f5f7fa;
    --text-muted: #a2acc2;
    --text-faint: #7c85a0;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.22);
    --accent: #5aa2ff;
    --accent-hover: #7bb5ff;
    --accent-ink: #0d0f26;
    --accent-soft: rgba(90, 162, 255, 0.15);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -14px rgba(0,0,0,.7);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 6px 16px -8px rgba(0,0,0,.6);
  }
}

/* Manueller Toggle überschreibt System */
:root[data-theme="light"] {
  --bg: #fbfbfc; --bg-elev: #ffffff; --surface: #f2f4f7; --surface-2: #eaecf0;
  --text: #101828; --text-muted: #475467; --text-faint: #667085;
  --border: rgba(16,19,38,.11); --border-strong: rgba(16,19,38,.22);
  --accent: #1570ef; --accent-hover: #175cd3; --accent-ink: #ffffff;
  --accent-soft: rgba(21,112,239,.10);
  --shadow: 0 1px 2px rgba(16,19,38,.04), 0 12px 32px -12px rgba(16,19,38,.14);
  --shadow-sm: 0 1px 2px rgba(16,19,38,.05), 0 4px 12px -6px rgba(16,19,38,.10);
}
:root[data-theme="dark"] {
  --bg: #0d0f26; --bg-elev: #14172e; --surface: #171a33; --surface-2: #1e2240;
  --text: #f5f7fa; --text-muted: #a2acc2; --text-faint: #7c85a0;
  --border: rgba(255,255,255,.10); --border-strong: rgba(255,255,255,.22);
  --accent: #5aa2ff; --accent-hover: #7bb5ff; --accent-ink: #0d0f26;
  --accent-soft: rgba(90,162,255,.15);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -14px rgba(0,0,0,.7);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 6px 16px -8px rgba(0,0,0,.6);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(4.5rem, 11vw, 9rem); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-hover); /* Kontrast: --accent nur 4,15 bis 4,42:1 auf hellen Flächen */
  margin-bottom: 1.1rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 600;
}
h2.section-title { font-size: clamp(1.9rem, 3.8vw, 2.8rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.55; color: var(--text-muted); max-width: 42ch; }
.prose { color: var(--text-muted); max-width: 62ch; }
.prose p + p { margin-top: 1.1rem; }
.text-accent { color: var(--accent); }
.emph { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }
/* Lange Button-Labels (z. B. "KI-Sichtbarkeits-Check kostenlos anfordern") dürfen am Handy nicht über den
   Viewport hinausragen: weiche das feste white-space:nowrap unter ca. 480px auf. */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
}

/* ---------- Grain (fixed, GPU-freundlich) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none; opacity: .028; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { .grain { mix-blend-mode: screen; opacity: .035; } }
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .035; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}
/* Nav-Zeile bündig mit den Inhaltsspalten (--maxw); Desktop-Navigation ab 1100 px (Kontakt läuft über den CTA-Button), darunter Burger-Menü mit aufklappbaren Gruppen. */
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.75rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.02em; flex: none; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; flex: none; }
.nav-links a.navlink { font-size: .96rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; transition: color .2s var(--ease); }
.nav-links a.navlink:hover { color: var(--text); }

/* ---------- Megamenü (Leistungen, Projekte) ----------
   Daten: data/menue.yaml. Der Button (aria-expanded) öffnet ein Panel in voller Breite unter der Leiste; Hover, Klick, Tastatur,
   Escape und "nur ein Menü offen" steuert main.js über die Klasse .open. Das Panel ist display:none, solange es zu ist
   (Bilder darin laden erst beim Öffnen) und blendet per allow-discrete weich ein und aus. */
.nav-dd { position: static; }
.nav-dd-btn { position: relative; display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .96rem; font-weight: 500; color: var(--text-muted); background: none; border: 0; padding: .4rem 0; cursor: pointer; white-space: nowrap; transition: color .2s var(--ease); }
.nav-dd-btn::after { content: ""; position: absolute; left: -.8rem; right: -.8rem; top: 100%; height: 22px; } /* Hover-Brücke zum Panel */
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn { color: var(--text); }
.nav-dd-chev { transition: transform .2s var(--ease); }
.nav-dd.open .nav-dd-chev { transform: rotate(180deg); }
.nav-dd-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.nav:has(.nav-dd.open) { background: var(--bg-elev); border-bottom-color: transparent; }

.nav-mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 101;
  max-height: calc(100vh - 68px); overflow-y: auto;
  background: var(--bg-elev); border-bottom: 1px solid var(--border-strong); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), display .22s allow-discrete;
}
.nav-dd.open .nav-mega { display: block; opacity: 1; transform: none; }
@starting-style { .nav-dd.open .nav-mega { opacity: 0; transform: translateY(-8px); } }
.nav-mega-in { padding-block: 1.5rem 1.8rem; }
.nav-mega-in--leistungen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 360px); gap: 1.4rem 2.4rem; }
.mega-cols { margin-left: -.7rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; align-content: start; }
.mega-h { margin: 0 0 .5rem; padding-inline: .7rem; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.mega-list, .mega-zeile, .mega-karten { list-style: none; margin: 0; padding: 0; }
.mega-item { display: flex; align-items: flex-start; gap: .85rem; padding: .6rem .7rem; border-radius: 12px; transition: background-color .2s var(--ease); }
.mega-item:hover { background: var(--surface); }
.mega-item-t { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.mega-item-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.mega-item-d { font-size: .86rem; line-height: 1.4; color: var(--text-muted); }
.mega-zeile { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; margin-top: 1rem; padding: .9rem .7rem 0; border-top: 1px solid var(--border); }
.mega-zeile a { display: inline-flex; align-items: center; gap: .6rem; padding: .25rem 0; font-size: .92rem; font-weight: 600; color: var(--text); }
.mega-zeile a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.mega-item:focus-visible, .mega-zeile a:focus-visible, .mega-alle:focus-visible, .mega-karte:focus-visible, .mega-feature:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.mega-feature:focus-visible { border-radius: 18px; outline-offset: 3px; }

/* Icon-Kachel: Farben je Ton, Kontrast Icon zu Kachel mindestens 5,4:1 (hell) und 6,4:1 (dunkel) */
.mi { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--mi-bg); color: var(--mi-fg); transition: transform .25s var(--ease); }
.mi .mi-svg { width: 21px; height: 21px; }
.mi--sm { width: 30px; height: 30px; border-radius: 9px; }
.mi--sm .mi-svg { width: 17px; height: 17px; }
.mega-item:hover .mi { transform: scale(1.07); }
.mi--blau { --mi-bg: #e1ecfd; --mi-fg: #1259c3; }
.mi--indigo { --mi-bg: #e8e9fd; --mi-fg: #4338ca; }
.mi--tuerkis { --mi-bg: #dcf3f6; --mi-fg: #0b6478; }
.mi--violett { --mi-bg: #efe6fb; --mi-fg: #6d28d9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mi--blau { --mi-bg: #1b3263; --mi-fg: #8cbdff; }
  :root:not([data-theme="light"]) .mi--indigo { --mi-bg: #26285c; --mi-fg: #a9acff; }
  :root:not([data-theme="light"]) .mi--tuerkis { --mi-bg: #123c4a; --mi-fg: #6fd3e6; }
  :root:not([data-theme="light"]) .mi--violett { --mi-bg: #35205f; --mi-fg: #c9a9ff; }
}
:root[data-theme="dark"] .mi--blau { --mi-bg: #1b3263; --mi-fg: #8cbdff; }
:root[data-theme="dark"] .mi--indigo { --mi-bg: #26285c; --mi-fg: #a9acff; }
:root[data-theme="dark"] .mi--tuerkis { --mi-bg: #123c4a; --mi-fg: #6fd3e6; }
:root[data-theme="dark"] .mi--violett { --mi-bg: #35205f; --mi-fg: #c9a9ff; }

/* Feature-Karte: Markenfarbe des ersten sichtbaren Projekts, weißer Text, Screenshot unten angeschnitten */
.mega-feature { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 1.3rem 1.3rem 0; border-radius: 18px; background: var(--kp-farbe); color: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.mega-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mega-feature-eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.mega-feature-titel { margin-top: .2rem; padding-right: 3rem; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.mega-feature-kz { margin: .55rem 0 1.1rem; font-size: .88rem; line-height: 1.4; }
.mega-feature-kz b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.mega-feature-pfeil { position: absolute; top: 1.1rem; right: 1.1rem; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--kp-farbe); transition: transform .3s var(--ease); }
.mega-feature-pfeil .mi-svg { width: 18px; height: 18px; }
.mega-feature:hover .mega-feature-pfeil { transform: translateX(3px); }
.mega-feature-bild { display: block; margin-top: auto; width: 100%; height: auto; border-radius: 10px 10px 0 0; box-shadow: 0 -4px 22px rgba(0,0,0,.28); transition: transform .4s var(--ease); }
.mega-feature:hover .mega-feature-bild { transform: translateY(-4px); }

/* Projekte: Karten mit Screenshot auf Markenfarbe */
.mega-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.mega-kopf .mega-h { margin: 0; padding: 0; }
.mega-alle { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; font-weight: 600; color: var(--accent); }
.mega-alle .mi-svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.mega-alle:hover { color: var(--accent-hover); }
.mega-alle:hover .mi-svg { transform: translateX(3px); }
.mega-karten { margin-inline: -.55rem; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1.1rem; }
.mega-karte { display: flex; flex-direction: column; height: 100%; padding: .55rem; border-radius: 16px; transition: background-color .2s var(--ease); }
.mega-karte:hover { background: var(--surface); }
.mega-karte-bild { display: block; aspect-ratio: 16 / 10; overflow: hidden; padding: 14px 14px 0; border-radius: 12px; background: var(--kp-farbe); }
.mega-karte-bild img { width: 100%; height: auto; border-radius: 7px 7px 0 0; box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .4s var(--ease); }
.mega-karte:hover .mega-karte-bild img { transform: translateY(-4px); }
.mega-karte-name { margin-top: .7rem; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--text); }
.mega-karte-titel { margin-top: .1rem; font-size: .88rem; line-height: 1.4; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) {
  .nav-mega, .nav-dd-chev, .mi, .mega-feature, .mega-feature-pfeil, .mega-feature-bild, .mega-karte-bild img, .mega-alle .mi-svg { transition: none; }
  .nav-mega { transform: none; }
  .mega-item:hover .mi, .mega-feature:hover, .mega-feature:hover .mega-feature-bild, .mega-karte:hover .mega-karte-bild img, .mega-feature:hover .mega-feature-pfeil, .mega-alle:hover .mi-svg { transform: none; }
}

.nav-right { display: flex; align-items: center; gap: 1.1rem; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); transform: rotate(-15deg); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun, .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  .theme-toggle .sun { display: none; } .theme-toggle .moon { display: block; }
}
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-cta { display: inline-flex; }
.burger { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1099px) {
  .nav-links { display: none; }
  .nav-right .nav-cta { display: none; }
  .burger {
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 10px; border: 1px solid var(--border); color: var(--text);
  }
  .mobile-menu {
    position: fixed; inset: 68px 0 auto 0; z-index: 99;
    max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    padding: 1.2rem var(--gutter) 1.8rem;
    display: none; flex-direction: column; gap: .2rem;
    box-shadow: var(--shadow);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: .85rem 0; font-size: 1.1rem; font-weight: 500; border-bottom: 1px solid var(--border); font-family: var(--font-display); }
  .mobile-menu .btn { margin-top: 1rem; justify-content: center; }
  /* aufklappbare Gruppen (details) mit denselben Einträgen wie das Megamenü, ohne Bilder */
  .mm-gruppe { border-bottom: 1px solid var(--border); }
  .mm-gruppe > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; cursor: pointer; list-style: none; }
  .mm-gruppe > summary::-webkit-details-marker { display: none; }
  .mm-gruppe > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
  .mm-chev { flex: none; transition: transform .2s var(--ease); }
  .mm-gruppe[open] .mm-chev { transform: rotate(180deg); }
  .mm-inhalt { display: flex; flex-direction: column; padding: 0 0 .9rem; }
  .mm-h { margin: .7rem 0 .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
  .mobile-menu a.mm-item { display: flex; align-items: center; gap: .8rem; padding: .45rem 0; border-bottom: 0; font-family: var(--font-sans); font-size: 1rem; font-weight: 500; }
  .mm-punkt { flex: none; width: 12px; height: 12px; margin-inline: 9px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--border-strong); }
  .mm-alle { color: var(--accent); font-weight: 600; }
  .mm-alle .mi-svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) { .mm-chev { transition: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 8vw, 6.5rem); overflow: hidden; }
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  right: -10vw; top: -12vw;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 68%);
  filter: blur(8px);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-avail {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 500; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: .4rem .85rem; margin-bottom: 1.6rem;
}
.hero-avail .live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2.1rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .cap {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  color: #fff; background: rgba(20,17,12,.55);
  backdrop-filter: blur(6px); padding: .35rem .7rem; border-radius: 999px;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16 / 11; max-height: 340px; order: -1; }
}

/* ---------- Metrics ---------- */
.metrics { border-block: 1px solid var(--border); }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.metric { padding: clamp(2rem, 4vw, 3.2rem) clamp(1rem, 3vw, 2.4rem); }
.metric + .metric { border-left: 1px solid var(--border); }
.metric .num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.metric .lbl { color: var(--text-muted); margin-top: .6rem; font-size: .98rem; }
@media (max-width: 720px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric + .metric { border-left: none; border-top: 1px solid var(--border); }
}

/* ---------- Section header ---------- */
/* Einheitlich für alle Sektionen: Überschrift breit und ausgeglichen umbrechen, Fließtext in lesbarer Zeilenlänge */
.sec-head { max-width: 58rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head .section-title { max-width: 22em; }
.sec-head p { margin-top: 1rem; color: var(--text-muted); font-size: 1.1rem; max-width: 62ch; }

/* ---------- Leistungen (Bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1.5rem, 2.6vw, 2.1rem);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column; min-height: 210px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin-top: 1.4rem; }
.card p { color: var(--text-muted); margin-top: .5rem; font-size: .98rem; }
.card.span-3 { grid-column: span 3; }
.card.span-2 { grid-column: span 2; }
.card.feature {
  grid-column: span 6; flex-direction: row; align-items: center; gap: 2rem;
  background: linear-gradient(120deg, var(--accent-soft), transparent 60%), var(--bg-elev);
  min-height: 0;
}
.card.feature .ico { margin: 0; width: 56px; height: 56px; }
.card.feature .ftxt { flex: 1; }
.card.feature h3 { margin-top: 0; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.span-3, .card.span-2 { grid-column: span 1; }
  .card.feature { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .card.feature { grid-column: span 1; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .card.span-3, .card.span-2 { grid-column: span 1; }
}

/* ---------- Ansatz (Statement + Prose) ---------- */
.ansatz-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.14; letter-spacing: -0.02em; text-wrap: balance; }
.statement .text-accent { font-weight: 600; }
.ansatz-side .prose { font-size: 1.05rem; }
.ansatz-side .sign { margin-top: 1.8rem; display: flex; align-items: center; gap: .8rem; }
.ansatz-side .sign .who { font-family: var(--font-display); font-weight: 600; }
.ansatz-side .sign .role { color: var(--text-faint); font-size: .9rem; }
@media (max-width: 820px) { .ansatz-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Showcase Band ---------- */
.band { background: var(--surface); border-block: 1px solid var(--border); }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.band h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.band .lead { margin-top: 1.1rem; max-width: 40ch; }
.principles { display: grid; gap: .1rem; }
.principle { padding: 1.2rem 0 1.2rem 1.4rem; border-top: 1px solid var(--border); position: relative; }
.principle:last-child { border-bottom: 1px solid var(--border); }
.principle::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.principle .pt { font-weight: 600; font-family: var(--font-display); font-size: 1.08rem; }
.principle .pd { color: var(--text-muted); font-size: .96rem; margin-top: .2rem; }
@media (max-width: 820px) { .band-grid { grid-template-columns: 1fr; } }

/* ---------- Tools ---------- */
.tools-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.tool {
  display: inline-flex; align-items: center; gap: .7rem;
  border: 1px solid var(--border); border-radius: 999px;
  padding: .6rem 1.1rem .6rem .7rem; background: var(--bg-elev);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.tool:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool .tbadge { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--accent); }
.tool .tname { font-weight: 600; font-size: .95rem; }
.tool .tdesc { color: var(--text-faint); font-size: .85rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field label { font-size: .9rem; font-weight: 600; }
.form-field label .req { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: .8rem .95rem; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-faint); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .88rem; color: var(--text-faint); margin-top: .3rem; }
.form-status { display: none; padding: .9rem 1.1rem; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 500; font-size: .95rem; margin-top: 1rem; }
.form-status.show { display: block; }
.contact-info { display: flex; flex-direction: column; gap: .2rem; }
.info-item { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--border); align-items: flex-start; }
.info-item:last-child { border-bottom: 1px solid var(--border); }
.info-item .ii-ico { color: var(--accent); flex: none; margin-top: 2px; }
.info-item .ii-k { font-size: .82rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; }
.info-item .ii-v { font-weight: 500; }
.info-item a.ii-v:hover { color: var(--accent); }
/* Einspaltig gestapelt hätte .form-row-Gap (1.1rem) sonst zusätzlich zum eigenen margin-bottom von .form-field
   gewirkt: Abstand zwischen zwei gestapelten Feldern derselben Zeile war dadurch doppelt so groß wie zwischen
   zwei Zeilen. Row-Gap hier auf 0, das margin-bottom der Felder übernimmt den Abstand einheitlich. */
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; gap: 0; } }
.contact-cta { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.8rem, 3vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
.contact-cta-lead { font-size: 1.12rem; color: var(--text); margin-bottom: 1.6rem; max-width: 42ch; }
.contact-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.1rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer .brand { font-size: 1.3rem; margin-bottom: 1rem; }
.footer .fdesc { color: var(--text-muted); max-width: 34ch; font-size: .98rem; }
.footer .footer-h { font-family: var(--font-sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 1.1rem; font-weight: 600; }
.footer-col a { display: block; padding: .35rem 0; color: var(--text-muted); font-size: .98rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--text-faint); font-size: .9rem; }
.footer-bottom .fb-links { display: flex; gap: 1.3rem; }
.footer-bottom .fb-links a, .footer-bottom .fb-links .footer-cc { color: var(--text-faint); font-size: .9rem; }
.footer-bottom .fb-links a:hover, .footer-bottom .fb-links .footer-cc:hover { color: var(--text); }
/* ---------- Footer-Leiste: Logo in Schleife links, Siegel rechts ---------- */
.footer-leiste { border-top: 1px solid var(--border); }
.footer-leiste-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-block: 1.5rem; }
.footer-logo { display: inline-flex; color: var(--text); border-radius: 4px; }
.footer-logo .lm-logo { display: block; max-width: 100%; height: auto; }
.footer-siegel { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }

/* ---------- Siegel (Inline-SVG aus partials/siegel-*.svg): Farbe über --accent-hover, Kontrast hell und dunkel geprüft ---------- */
.siegel { display: block; color: var(--accent-hover); height: auto; }
.siegel-rund { width: 88px; }
.siegel-pille { width: 236px; max-width: 100%; }
.siegel-link { display: block; border-radius: 999px; transition: transform .25s var(--ease); }
.siegel-link:hover { transform: translateY(-2px); }
.siegel-link:focus-visible { outline-offset: 4px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .siegel-link { transition: none; } .siegel-link:hover { transform: none; } }

/* Reihe auf /webdesign-burgenland/ (#betreuung) und Zeile auf Projektseiten */
.sg-reihe { list-style: none; margin: 2.4rem auto 0; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 1.2rem; }
.sg-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .9rem; min-width: 0; }
.sg-item p { margin: 0; color: var(--text-muted); font-size: .98rem; line-height: 1.5; max-width: 22ch; }
.sg-item p a, .sg-zeile p a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.sg-bild { display: flex; align-items: center; justify-content: center; height: 128px; width: 100%; }
.sg-bild .siegel-rund { width: 128px; }
.sg-bild .siegel-pille { width: 240px; }
.sg-zeile { display: flex; align-items: center; gap: 1.2rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.sg-zeile .sg-bild { width: 104px; height: 104px; flex: none; }
.sg-zeile .sg-bild .siegel-rund { width: 104px; }
.sg-zeile p { margin: 0; color: var(--text-muted); max-width: 52ch; }
@media (max-width: 820px) { .sg-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .sg-bild { height: 112px; } .sg-bild .siegel-rund { width: 112px; } .sg-bild .siegel-pille { width: 220px; } .sg-zeile { align-items: flex-start; } }
@media (max-width: 960px) { .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.75rem; } .footer-brandcol { grid-column: span 3; } }
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brandcol { grid-column: span 2; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } .footer-brandcol { grid-column: span 1; } }

/* ---------- Legal pages ---------- */
.legal { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.legal-head { max-width: 60ch; margin-bottom: 3rem; }
.legal-head .back { color: var(--accent); font-weight: 600; font-size: .92rem; display: inline-flex; gap: .4rem; margin-bottom: 1.5rem; }
.legal-body { max-width: 68ch; }
.legal-body h2 { font-size: 1.5rem; margin-top: 2.6rem; margin-bottom: .9rem; }
.legal-body h3 { font-size: 1.15rem; margin-top: 1.8rem; margin-bottom: .6rem; }
.legal-body p { color: var(--text-muted); margin-bottom: 1rem; }
.legal-body ul { color: var(--text-muted); margin: 0 0 1rem 1.2rem; }
.legal-body li { margin-bottom: .4rem; }
.legal-body a { color: var(--accent); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body .muted-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1.4rem; font-size: .95rem; }

/* ---------- Brand-Logo (Wortmarke: navy in Light, weiß in Dark) ---------- */
.brand-logo { display: inline-flex; align-items: center; }
/* Wortmarke ist sehr breit (430:17), Höhe daher bewusst klein halten */
.brand-logo img { height: 20px; width: auto; display: block; }
.footer .brand-logo img { height: 24px; }
.brand-logo .lm-logo { height: 20px; width: auto; display: block; color: #1570EF; overflow: visible; }
@media (max-width: 520px) { .brand-logo .lm-logo { height: 16px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo .lm-logo { color: #fff; } }
:root[data-theme="dark"] .brand-logo .lm-logo { color: #fff; }
@media (max-width: 520px) { .brand-logo img { height: 16px; } }
@media (prefers-color-scheme: dark) { .brand-logo img { filter: brightness(0) invert(1); } }
:root[data-theme="light"] .brand-logo img { filter: none; }
:root[data-theme="dark"] .brand-logo img { filter: brightness(0) invert(1); }

/* ---------- Hero-Foto ---------- */
.hero-visual { aspect-ratio: 5 / 6; }
.hero-visual img { object-position: 50% 26%; }
.hero-badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: .55rem;
  background: color-mix(in srgb, var(--bg-elev) 90%, transparent);
  backdrop-filter: blur(8px); border: 1px solid var(--border);
  padding: .5rem .85rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero-badge .hb-ava { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.hero-badge .hb-t { font-size: .84rem; font-weight: 600; line-height: 1.15; }
.hero-badge .hb-s { font-size: .74rem; color: var(--text-muted); }

/* ---------- Trust Logo-Wall ---------- */
.trust { border-top: 1px solid var(--border); }
.trust .wrap { padding-block: clamp(2.2rem, 4vw, 3.2rem); }
.trust-label { text-align: center; font-size: .82rem; color: var(--text-faint); letter-spacing: .04em; margin-bottom: 1.6rem; }
.logowall { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; justify-items: center; gap: clamp(1.8rem, 4vw, 2.8rem) clamp(1.4rem, 4vw, 3rem); max-width: 940px; margin-inline: auto; }
.logowall img {
  height: 32px; width: auto; max-width: 100%; object-fit: contain;
  filter: brightness(0); opacity: .5;
  transition: opacity .25s var(--ease), filter .25s var(--ease);
}
@media (max-width: 620px) { .logowall { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; } }
.logowall a:hover img { opacity: .72; }
@media (prefers-color-scheme: dark) { .logowall img { filter: brightness(0) invert(1); opacity: .55; } }
:root[data-theme="light"] .logowall img { filter: brightness(0); opacity: .48; }
:root[data-theme="dark"] .logowall img { filter: brightness(0) invert(1); opacity: .55; }

/* ---------- Zielgruppen-Split (Unternehmen / Agenturen) ---------- */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.aud {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex; flex-direction: column;
}
.aud.accent { background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--bg-elev); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.aud .aud-k { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.aud h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: .7rem; }
.aud .aud-lead { color: var(--text-muted); margin-bottom: 1.4rem; }
.aud ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .7rem; }
.aud li { position: relative; padding-left: 1.7rem; color: var(--text); font-size: .98rem; }
.aud li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px;
  background: var(--accent); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
}
.aud .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 780px) { .audience-grid { grid-template-columns: 1fr; } }

/* ---------- Über-mich mit Foto ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--border); box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-height: 380px; aspect-ratio: 3/2; } }

/* ---------- Linktree (/links) ---------- */
.tree { max-width: 480px; margin-inline: auto; text-align: center; }
.tree-ava { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.2rem; border: 3px solid var(--bg-elev); box-shadow: var(--shadow); object-position: 50% 20%; }
.tree h1 { font-size: 1.8rem; }
.tree .tree-sub { color: var(--text-muted); margin: .4rem 0 2rem; }
.tree-links { display: grid; gap: .8rem; }
.tree-link {
  display: flex; align-items: center; gap: .9rem; text-align: left;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .95rem 1.2rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tree-link:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.tree-link .tl-badge { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--accent); flex: none; }
.tree-link .tl-t { font-weight: 600; }
.tree-link .tl-s { font-size: .86rem; color: var(--text-faint); }
.tree-link .tl-arrow { margin-left: auto; color: var(--text-faint); }
.tree-socials { display: flex; justify-content: center; gap: .7rem; margin-top: 2rem; }
.tree-socials a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.tree-socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Reveal Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .tool, .socials a, .theme-toggle { transition: none !important; }
}

/* Kontaktformular: Honeypot unsichtbar, Fehlerzustand, Senden-Zustand */
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; justify-content: flex-start; }
.contact-form .contact-cta-lead { margin-bottom: 1.3rem; }
.form-status.error { background: color-mix(in srgb, #d92d20 12%, transparent); color: #d92d20; }
.contact-form button[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-note a { text-decoration: underline; }

/* Cookie-Banner (CookieConsent v3): ruhiges Band unten, Text links, zwei gleichwertige Entscheidungen rechts,
   Einstellungen als Textlink. Farben aus den Design-Tokens, funktioniert in Hell und Dunkel. */
#cc-main {
  --cc-font-family: var(--font-sans);
  --cc-bg: var(--bg-elev);
  --cc-primary-color: var(--text);
  --cc-secondary-color: var(--text-muted, var(--text-faint));
  --cc-btn-primary-bg: var(--accent);
  --cc-btn-primary-color: var(--accent-ink);
  --cc-btn-primary-border-color: var(--accent);
  --cc-btn-primary-hover-bg: var(--accent-hover);
  --cc-btn-primary-hover-color: var(--accent-ink);
  --cc-btn-primary-hover-border-color: var(--accent-hover);
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: var(--text);
  --cc-btn-secondary-border-color: var(--border-strong);
  --cc-btn-secondary-hover-bg: var(--surface-2);
  --cc-btn-secondary-hover-color: var(--text);
  --cc-btn-secondary-hover-border-color: var(--border-strong);
  --cc-separator-border-color: var(--border);
  --cc-toggle-on-bg: var(--accent);
  --cc-toggle-off-bg: var(--text-faint);
  --cc-toggle-readonly-bg: var(--accent);
  --cc-cookie-category-block-bg: var(--bg-elev);
  --cc-cookie-category-block-border: var(--border-strong);
  --cc-cookie-category-block-hover-bg: var(--surface-2);
  --cc-footer-bg: var(--bg-elev);
  --cc-footer-color: var(--text-faint);
  --cc-footer-border-color: var(--border);
  --cc-modal-border-radius: 14px;
  --cc-btn-border-radius: 10px;
  --cc-modal-margin: 1.25rem;
}
#cc-main .cm { border: 1px solid var(--border); box-shadow: 0 18px 48px rgba(16, 19, 38, .16); }
#cc-main .cm--cloud { max-width: 64rem; }
#cc-main .cm__title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; }
#cc-main .cm__desc { font-size: .9rem; line-height: 1.55; }
#cc-main .cm__btn { font-weight: 600; font-size: .9rem; min-height: 44px; }
/* Beide Entscheidungen gleichwertig und gleich gestaltet (Pflicht), Einstellungen als Textlink */
#cc-main .cm__btn[data-role="all"], #cc-main .cm__btn[data-role="necessary"] {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
#cc-main .cm__btn[data-role="all"]:hover, #cc-main .cm__btn[data-role="necessary"]:hover {
  background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink);
}
#cc-main .cm__btn[data-role="show"] {
  background: transparent; border-color: transparent; color: var(--text-muted, var(--text-faint));
  text-decoration: underline; text-underline-offset: 3px; font-weight: 500; min-height: 36px;
}
#cc-main .cm__btn[data-role="show"]:hover { color: var(--text); background: transparent; }
#cc-main .cm__footer { font-size: .82rem; }
#cc-main .pm { border: 1px solid var(--border); }
#cc-main .pm__title { font-family: var(--font-display); }
.footer-cc { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }

/* Arbeitsweise: Vergleichstabelle */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 1.05rem 1.3rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.compare tbody th { font-weight: 600; white-space: nowrap; }
.compare td { color: var(--text-faint); }
.compare .is-lm { color: var(--text); background: var(--accent-soft); }
.compare thead .is-lm { color: var(--accent); }
.compare-note { max-width: 62ch; margin-top: 1.6rem; font-size: 1.08rem; }

/* Unter ca. 720px: Tabelle als gestapelte Karten statt seitlich wischbarer Tabelle (Desktop-Tabelle bleibt unverändert) */
@media (max-width: 720px) {
  .compare-wrap { overflow-x: visible; border: none; background: none; }
  .compare { min-width: 0; display: block; border: none; }
  .compare thead { display: none; }
  .compare tbody { display: block; }
  .compare tr {
    display: block; margin-bottom: 1rem; padding: 1.1rem 1.2rem;
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  }
  .compare tbody tr:last-child { margin-bottom: 0; }
  .compare th[scope="row"] {
    display: block; padding: 0 0 .8rem; border-bottom: 1px solid var(--border);
    margin-bottom: .7rem; white-space: normal; font-family: var(--font-display);
  }
  .compare td {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .4rem 0; border-bottom: 0; color: var(--text);
  }
  .compare td::before { content: attr(data-label); font-weight: 600; color: var(--text-faint); flex: none; }
}

/* Mitarbeitergewinnung: vier Schritte. KI-Sichtbarkeit (#ablauf) hat nur 3 Schritte, eigene Spaltenzahl
   darunter, sonst bleibt die vierte Spalte leer und die Karten wirken schmäler als der Container. */
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.steps-grid .step-no { display: inline-block; font-family: var(--font-display); font-weight: 700; color: var(--accent); margin-bottom: .7rem; }
.steps-grid h3 { margin-bottom: .45rem; }
.steps-ref { margin-top: 1.6rem; max-width: 70ch; color: var(--text-faint); }
.steps-ref strong { color: var(--text); }
/* :where() halt die Spezifität auf dem Niveau von .steps-grid, damit die Breakpoints darunter weiter gewinnen */
:where(#ablauf) .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }
.nowrap { white-space: nowrap; }
@media (max-width: 560px) {
  h2.section-title { font-size: 1.75rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
}

/* ---------- Vier gleich große Kacheln (Quellen) ---------- */
/* minmax(0,1fr) statt 1fr: sonst zieht ein einzelnes langes Wort (z. B. "Mitarbeitergewinnung",
   das nicht umbrechen kann) die Spalte breiter als die anderen drei. */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.grid-4 .card { min-height: 0; }
.grid-4 .card h3 { hyphens: manual; overflow-wrap: break-word; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Pakete und Preise (3 Preiskarten) ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { position: relative; text-align: left; }
.price-card h3 { margin-top: .3rem; }
.price-plan { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.card p.price-value, .price-value { color: var(--text); font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -0.02em; margin-top: .6rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-value .price-unit { font-family: var(--font-sans); font-size: .82rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.card p.price-add, .price-add { font-size: .84rem; color: var(--text-faint); margin-top: .3rem; }
.price-desc { color: var(--text-muted); font-size: .98rem; margin-top: .9rem; }
.price-list { list-style: none; padding-left: 0; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.price-list li { display: flex; align-items: flex-start; gap: .6rem; color: var(--text-muted); font-size: .94rem; line-height: 1.4; }
.price-list li::before { content: "\2713"; color: var(--accent); font-weight: 700; flex: none; line-height: 1.4; }
.price-btn { margin-top: 1.5rem; align-self: flex-start; }
.price-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.price-badge {
  position: absolute; top: -13px; left: clamp(1.5rem, 2.6vw, 2.1rem);
  background: var(--accent); color: var(--accent-ink);
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  padding: .3rem .75rem; border-radius: 999px;
}
.price-note {
  margin-top: 2rem; padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--accent); background: var(--surface);
  border-radius: 0 14px 14px 0; color: var(--text-muted); font-size: .98rem;
}
.price-note strong { color: var(--text); font-weight: 600; }

/* ---------- Zitat-/Hinweiselement (Referenz o. Ä.) ---------- */
.quote-note {
  margin: 1.8rem 0 0; padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--accent); background: var(--bg-elev);
  border-radius: 0 14px 14px 0; color: var(--text); font-size: 1rem; font-style: italic;
}

/* ---------- Zwei gleich große Infokarten ---------- */
.info-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 700px) { .info-cards { grid-template-columns: 1fr; } }

/* ---------- FAQ als <details> ---------- */
.faq-list { display: grid; gap: .8rem; max-width: 76ch; }
.faq-item {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.15rem 1.4rem;
  font-weight: 600; font-family: var(--font-display); font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent);
  transition: transform .25s var(--ease); flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.4rem 1.3rem; color: var(--text-muted); max-width: 64ch; }

/* ---------- Beispiel-Tabelle (KI-Sichtbarkeits-Check) ---------- */
.example-note { max-width: 74ch; margin-top: 1.4rem; color: var(--text-muted); font-size: 1.02rem; }
.example-caption { font-size: .88rem; color: var(--text-faint); margin-bottom: .9rem; }

/* ---------- Unterseiten (Check, Mitarbeitergewinnung): Text-Hero ohne Bild ---------- */
.page-hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { margin-bottom: 1.2rem; max-width: 20ch; }
.page-hero .lead { max-width: 58ch; }
.page-back { color: var(--accent-hover); font-weight: 600; font-size: .92rem; display: inline-flex; gap: .4rem; margin-bottom: 1.4rem; }
.section-narrow { max-width: 68ch; }
