/* Schriften lokal statt von Google (keine IP-Übertragung an Google). Quelle: Google Fonts, SIL Open Font License. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Ersatzschriften mit angeglichenen Maßen: Bis die Webschrift geladen ist, nimmt der Text
   denselben Platz ein, beim Wechsel verschiebt sich nichts (CLS). Werte aus den Fontdateien. */
@font-face {
  font-family: 'Instrument Serif Fallback';
  font-style: normal;
  src: local('Times New Roman'), local('TimesNewRomanPSMT');
  size-adjust: 84.7%;
  ascent-override: 116.9%;
  descent-override: 36.6%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Instrument Serif Fallback';
  font-style: italic;
  src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT');
  size-adjust: 89.9%;
  ascent-override: 110.1%;
  descent-override: 34.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Archivo Fallback';
  src: local('Arial'), local('ArialMT');
  size-adjust: 103%;
  ascent-override: 85.2%;
  descent-override: 20.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Mono Fallback';
  src: local('Courier New'), local('CourierNewPSMT');
  size-adjust: 100%;
  ascent-override: 102.5%;
  descent-override: 27.5%;
  line-gap-override: 0%;
}

/* STAR SD24 – Palette „Mitternacht & Perle“, Aufbau nach dem Vorbild stripe.com:
   schräge Sektionskanten, ruhig animierter Verlauf, schwebende Karten.
   Fast einfarbig: Blauschwarz trägt, Perle setzt die wenigen Akzente. */

:root {
  color-scheme: dark;
  /* Palette laut Markenblatt */
  --ground: #111827;      /* Grund */
  --pearl: #d8d3c6;       /* Akzent */
  --slate: #27303f;       /* Zweitfarbe */
  --light: #f5f4f0;       /* Hell */
  --grey: #8a90a0;        /* Grau */
  --pearl-ink: #5e5a50;   /* Akzent auf Hell */
  /* abgeleitet */
  --ground-deep: #0c121e;
  --ground-2: #161e2d;
  --text: #c3c6cf;        /* Fließtext zwischen Grau und Hell, 10:1 auf Grund */
  --line: rgba(216, 211, 198, .12);
  --ok: #7fd1ae;
  --warn: #e7c98a;
  --ph-bg: #e7c98a;
  --ph-fg: #2a2310;

  --display: "Instrument Serif", "Instrument Serif Fallback", "Times New Roman", serif;
  --body: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, monospace;

  --radius: 14px;
  --shadow: 0 30px 60px -12px rgba(0, 0, 0, .55), 0 18px 36px -18px rgba(0, 0, 0, .6);
  --skew: 6vw;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--ground); }
body {
  margin: 0;
  font: 400 17px/1.6 var(--body);
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--light); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: -.01em; }
h2 em, h1 em { font-style: italic; color: var(--pearl); }
h3 { font-family: var(--body); font-size: 1.08rem; font-weight: 600; line-height: 1.3; letter-spacing: .005em; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; }
.muted { color: var(--grey); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--light); color: var(--ground); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--pearl); outline-offset: 3px; border-radius: 4px; }
/* Sprungziel des Skip-Links: Fokus ja, Rahmen um den ganzen Inhalt nein */
main:focus { outline: none; }

/* Platzhalter: deutlich sichtbar, vor dem Livegang ersetzen */
.ph { background: var(--ph-bg); color: var(--ph-fg); padding: 0 .3em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.3em; border-radius: 999px; border: 0;
  background: var(--pearl); color: var(--ground); font: 600 .95rem var(--body);
  text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--light); }
.btn--ghost { background: rgba(245, 244, 240, .08); color: var(--light); box-shadow: inset 0 0 0 1px rgba(245, 244, 240, .2); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(245, 244, 240, .16); }
.btn--small { padding: .55em 1.05em; font-size: .88rem; }
.btn--full { width: 100%; justify-content: center; padding: 1em; }

/* Stripe-typischer Pfeil, der beim Hover nach rechts wächst */
.arrow { position: relative; width: 10px; height: 10px; display: inline-block; }
.arrow::before { content: ""; position: absolute; inset: 0; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg) scale(.7); transition: transform .2s var(--ease); }
.arrow::after { content: ""; position: absolute; left: -2px; top: 4px; width: 0; height: 2px; background: currentColor; transition: width .2s var(--ease); }
a:hover .arrow::before, button:hover .arrow::before { transform: translateX(3px) rotate(45deg) scale(.7); }
a:hover .arrow::after, button:hover .arrow::after { width: 10px; }

.link { color: var(--pearl); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }

/* ---------- Kontaktleiste & Navigation ---------- */
.topbar { background: var(--ground-deep); color: var(--grey); font-size: .8rem; border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar__links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--light); }
.topbar__live { display: inline-flex; align-items: center; gap: 8px; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.topbar__live i, .dot--live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(127, 209, 174, .6); animation: pulse 2.4s infinite; display: inline-block; }

.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.is-scrolled { background: rgba(17, 24, 39, .82); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--light); }
.brand__mark { width: 40px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.brand__text { display: grid; line-height: 1; gap: 5px; }
/* Wortmarke wie auf dem Markenblatt: weit gesperrte Versalien, SD24 kursiv in Serif */
.brand__name { font: 700 1.05rem var(--body); font-stretch: 125%; letter-spacing: .28em; }
.brand__name i { font: italic 400 1.15rem var(--display); letter-spacing: .02em; color: var(--pearl); }
.brand small { font: 500 .75rem var(--body); font-stretch: 125%; letter-spacing: .34em; text-transform: uppercase; color: var(--grey); }
.nav__menu { list-style: none; display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; }
.nav__menu a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .93rem; transition: color .2s; }
.nav__menu a:not(.btn):hover { color: var(--light); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--light); margin: 6px auto; transition: transform .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; margin-top: -76px; padding: 170px 0 calc(110px + var(--skew));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--skew)), 0 100%);
  overflow: hidden; isolation: isolate;
}
/* Foto als Grund, darüber ein ruhiger Verlauf: dunkel links für die Schrift, offen rechts für das Motiv */
.hero__photo, .contact__photo, .dark__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__photo { object-position: 62% 40%; animation: kenburns 30s ease-in-out infinite alternate; }
.hero__mesh { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(17, 24, 39, .96) 0%, rgba(17, 24, 39, .82) 34%, rgba(17, 24, 39, .2) 62%, rgba(17, 24, 39, .45) 100%),
  linear-gradient(0deg, var(--ground) 0%, transparent 30%); }
.hero .blob { opacity: .35; }
.contact__mesh { position: absolute; inset: 0; z-index: -1; background: var(--ground-deep); }
.contact__photo { opacity: .55; z-index: 0; }
.contact__mesh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 18, 30, .92) 0%, rgba(12, 18, 30, .55) 50%, rgba(12, 18, 30, .75) 100%); }
.hero__mesh::after { z-index: 1; content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(245, 244, 240, .05) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); }
.b1 { width: 55vw; height: 55vw; background: var(--slate); opacity: .9; top: -25%; left: -15%; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 38vw; height: 38vw; background: rgba(216, 211, 198, .2); top: 0; right: -8%; animation: drift2 30s ease-in-out infinite alternate; }
.b3 { width: 45vw; height: 45vw; background: #33405a; opacity: .7; bottom: -35%; left: 30%; animation: drift3 28s ease-in-out infinite alternate; }
.b4 { width: 26vw; height: 26vw; background: rgba(138, 144, 160, .25); top: 35%; left: 15%; animation: drift2 24s ease-in-out infinite alternate-reverse; }

.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font: 500 .72rem var(--body); font-stretch: 125%; letter-spacing: .3em; text-transform: uppercase; color: var(--pearl); margin-bottom: 22px; }
.eyebrow--dark { color: var(--pearl); }
.hero h1 { font-size: clamp(3.4rem, 8.4vw, 7rem); line-height: .92; letter-spacing: -.02em; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 38ch; margin-top: 26px; }
.lead--dark { max-width: 58ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.hero__visual { position: relative; height: 440px; }

.card {
  position: absolute; background: rgba(39, 48, 63, .72); border: 1px solid rgba(216, 211, 198, .14);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; color: var(--light);
  backdrop-filter: blur(14px) saturate(140%);
}
.card--status { width: min(290px, 80%); top: 0; right: 0; }
.card__head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.card__head .mono { margin-left: auto; }
.checks { list-style: none; margin: 0; padding: 0; font-size: .84rem; }
.checks li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--text); }
.checks b { font: 500 .72rem var(--mono); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ok { background: rgba(127, 209, 174, .12); color: var(--ok); }
.warn { background: rgba(231, 201, 138, .12); color: var(--warn); }
.spark { width: 100%; height: 40px; margin-top: 8px; }
.card--alert { width: 220px; right: 40px; bottom: 10px; display: grid; gap: 4px; }
.card--alert strong { font-weight: 600; }
.badge { justify-self: start; font: 500 .66rem var(--mono); text-transform: uppercase; letter-spacing: .1em; background: var(--pearl); color: var(--ground); padding: 3px 8px; border-radius: 6px; }
.card--cert { right: 10px; bottom: 0; display: flex; gap: 14px; align-items: center; }
.card--cert div { display: grid; font-size: .86rem; }
.seal { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--pearl); box-shadow: inset 0 0 0 4px var(--slate), inset 0 0 0 5px rgba(216, 211, 198, .4); color: var(--pearl); font: italic 400 1rem var(--display); }

.float { animation: float 7s ease-in-out infinite; }
.float--delay { animation-delay: -2.3s; }
.float--delay2 { animation-delay: -4.6s; }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -30px; position: relative; }
.stat { padding: 8px 24px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.stat b { font: 400 2.6rem/1.1 var(--display); color: var(--light); font-variant-numeric: tabular-nums; }
.stat > span { font-size: .86rem; color: var(--grey); }

/* ---------- Sektionen ---------- */
.section { padding: 120px 0; }
.section--tint { background: var(--ground-2); clip-path: polygon(0 var(--skew), 100% 0, 100% 100%, 0 100%); padding-top: calc(120px + var(--skew)); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head .lead { margin-top: 18px; }

/* Bento-Raster für die 7 Leistungen */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
/* Lichtkegel folgt der Maus (Position kommt aus script.js) */
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(216, 211, 198, .09), transparent 60%); }
.tile:hover { transform: translateY(-3px); border-color: rgba(216, 211, 198, .28); }
.tile:hover::after { opacity: 1; }
.tile p { font-size: .95rem; }
.tile__media { position: relative; margin: -28px -28px 0; aspect-ratio: 16 / 10; overflow: hidden; }
.tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ground-2) 0%, transparent 55%); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__media + .tile__icon { position: relative; margin-top: -30px; box-shadow: 0 8px 20px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(216, 211, 198, .2); }
.tile__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--slate); box-shadow: inset 0 0 0 1px rgba(216, 211, 198, .2); margin-bottom: 6px; }
.tile__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--pearl); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile--hero { grid-row: span 2; justify-content: flex-end; min-height: 560px; }
.tile--hero .tile__media, .tile--wide .tile__media { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; z-index: -2; }
.tile--hero .tile__media::after { background: linear-gradient(0deg, var(--ground-2) 8%, rgba(22, 30, 45, .75) 45%, rgba(22, 30, 45, .1) 80%); }
.tile--hero .tile__media + .tile__icon { margin-top: 0; }
.tile--hero h3 { font: 400 2.4rem/1.05 var(--display); }
.tile--hero p { font-size: 1.02rem; max-width: 34ch; }
.tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 500 .72rem var(--mono); padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(216, 211, 198, .25); color: var(--pearl); }
.tile--wide { grid-column: span 3; flex-direction: row; align-items: center; gap: 24px; min-height: 240px; }
.tile--wide .tile__media img { object-position: 70% center; }
.tile--wide .tile__media::after { background: linear-gradient(90deg, var(--ground-2) 25%, rgba(22, 30, 45, .7) 55%, rgba(22, 30, 45, .15) 100%); }
.tile--wide .tile__media + .tile__icon { margin-top: 0; }
.tile--wide > div:not(.tile__media) { max-width: 52ch; }
.tile--wide .tile__icon { margin: 0; flex: none; }
.tile--wide > div:not(.tile__media) { flex: 1; display: grid; gap: 6px; min-width: 0; }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid rgba(216, 211, 198, .2); display: grid; gap: 8px; align-content: start; }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--pearl); transition: width 1.2s var(--ease) .2s; }
.steps li.is-visible::before { width: 100%; }
.steps .mono { color: var(--pearl); }
.steps h3 { font: 400 1.7rem var(--display); }
.steps p { font-size: .95rem; }

/* Dunkle Sektion „Warum wir“ */
.dark { isolation: isolate; overflow: hidden; background: var(--ground-deep); padding: calc(120px + var(--skew)) 0; clip-path: polygon(0 0, 100% var(--skew), 100% 100%, 0 calc(100% - var(--skew))); position: relative; }
.dark__bg { position: absolute; inset: 0; z-index: -1; }
.dark__bg img { opacity: .5; z-index: 0; object-position: 70% center; }
.dark__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ground-deep) 0%, rgba(12, 18, 30, .55) 40%, rgba(12, 18, 30, .7) 70%, var(--ground-deep) 100%); }
.grad { font-style: italic; background: linear-gradient(90deg, var(--light), var(--pearl) 45%, var(--grey)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.why__item { background: rgba(12, 18, 30, .78); backdrop-filter: blur(10px); padding: 32px; display: grid; gap: 10px; align-content: start; transition: background .3s; }
.why__item:hover { background: rgba(22, 30, 45, .88); }
.why__item h3::before { content: "✦"; display: block; color: var(--pearl); font-size: .9rem; margin-bottom: 14px; }

/* Über uns */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.about > * { min-width: 0; }
.about--single { grid-template-columns: minmax(0, 760px); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 0; }
.facts dt { font: 500 .66rem var(--body); font-stretch: 125%; text-transform: uppercase; letter-spacing: .24em; color: var(--grey); }
.facts dd { margin: 6px 0 0; font-weight: 600; color: var(--light); }
.quote { margin: 0; background: var(--slate); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: grid; gap: 18px; }
.quote svg { width: 30px; height: 30px; color: var(--pearl); }
.quote blockquote { margin: 0; font: italic 400 1.5rem/1.35 var(--display); color: var(--light); }
.quote figcaption { font-size: .88rem; color: var(--grey); }

/* Kontakt */
.contact { position: relative; padding: calc(120px + var(--skew)) 0 120px; clip-path: polygon(0 var(--skew), 100% 0, 100% 100%, 0 100%); overflow: hidden; isolation: isolate; }
.contact__mesh { background: linear-gradient(200deg, #1a2333, var(--ground-deep)); }
.contact__mesh .blob { opacity: .5; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__grid > * { min-width: 0; }
.contact__list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; }
.contact__list li { display: grid; gap: 4px; color: var(--light); }
.contact__list li > span:first-child { font: 500 .66rem var(--body); font-stretch: 125%; text-transform: uppercase; letter-spacing: .24em; color: var(--grey); }
.contact__list a { text-decoration: none; font-weight: 600; }

/* Formular hell auf dunkel – wie eine Stripe-Checkout-Karte */
.form { background: var(--light); color: var(--pearl-ink); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--ground); }
.form input:not([type="checkbox"]), .form select, .form textarea {
  font: 400 1rem var(--body); color: var(--ground); padding: 11px 13px; width: 100%;
  border: 1px solid #8f8a7e; /* 3,1:1 auf der Karte, WCAG 1.4.11 */ border-radius: 8px; background: #fff; color-scheme: light;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ground); box-shadow: 0 0 0 4px rgba(17, 24, 39, .12); }
/* Auf der hellen Karte ist der Perlring zu blass (1,4:1): dunkler Ring, 15:1, WCAG 2.4.7 und 1.4.11 */
.form :focus-visible, .form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--ground); outline-offset: 2px; }
.form .req { color: #a3302a; }
.form__hint { font-size: .84rem; color: var(--pearl-ink); }
.form__err { font-size: .84rem; font-weight: 400; color: #a3302a; }
.form__err:empty { display: none; }
.form__field { display: grid; gap: 6px; }
.form__err--check { padding-left: 26px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--pearl-ink); }
.form .check input { margin-top: 4px; accent-color: var(--ground); }
.form .btn { background: var(--ground); color: var(--light); }
.form .btn:hover { background: var(--slate); }
.form__note { font-size: .9rem; min-height: 1.4em; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note.err { color: #a3302a; }
.form__note.ok { background: none; color: #1f6b4b; }
[aria-invalid="true"] { border-color: #c4473f !important; }

.footer { background: var(--ground-deep); color: var(--grey); font-size: .86rem; padding: 28px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer__ki { flex-basis: 100%; order: 3; font-size: .78rem; }

/* KI-Kennzeichnung: dezent, oben rechts auf jedem generierten Foto */
.ki-wrap { position: relative; }
.ki-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2; pointer-events: none;
  font: 600 .75rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--light); background: rgba(12, 18, 30, .62); padding: 4px 7px; border-radius: 999px;
}
.ki-badge--hero { top: auto; bottom: calc(var(--skew) + 16px); right: 16px; }
.footer a:hover { color: var(--light); }

/* ---------- Bewegung ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes kenburns { to { transform: scale(1.06) translateX(-1%); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(127, 209, 174, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 209, 174, 0); } }
@keyframes drift1 { to { transform: translate(18vw, 10vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-12vw, 14vh) scale(.92); } }
@keyframes drift3 { to { transform: translate(-10vw, -18vh) scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .hero__grid, .about, .contact__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 340px; max-width: 480px; width: 100%; margin-inline: auto; }
  .hero__photo { object-position: 64% center; }
  .hero__mesh { background: linear-gradient(180deg, rgba(17, 24, 39, .88) 0%, rgba(17, 24, 39, .7) 45%, rgba(17, 24, 39, .35) 75%, var(--ground) 100%); }
  .card--status { right: 0; }
  .card--alert { right: auto; left: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--hero { grid-row: auto; grid-column: span 2; }
  .tile--wide { grid-column: span 2; }
  .steps, .why { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 24px; margin-top: 0; padding-top: 24px; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 76px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--slate); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px;
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; visibility: hidden;
    /* visibility erst nach dem Ausblenden umschalten: geschlossen ist das Menü nicht mehr per Tab erreichbar */
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav__toggle { order: 2; }
  .nav__menu a:not(.btn) { display: block; padding: 14px 16px; }
  .nav__menu .btn { margin: 8px; justify-content: center; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar__live { display: none; }
  .hero { padding-top: 140px; }
  .hero__visual { height: 340px; }
  .bento, .steps, .why, .facts, .form__row { grid-template-columns: 1fr; }
  .tile--hero, .tile--wide { grid-column: auto; }
  .tile--wide { flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 380px; }
  .tile--wide .tile__media::after { background: linear-gradient(0deg, var(--ground-2) 30%, rgba(22, 30, 45, .2) 100%); }
  .tile--hero { min-height: 480px; }
  .section { padding: 80px 0; }
  .card--status { width: 78%; }
  .card--alert { width: 200px; }
  .card--cert { right: 0; }
  .stat { padding: 4px 16px; }
  .form { padding: 22px; }
}

/* ---------- Blog ---------- */
.page-head { padding: 72px 0 48px; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
.page-head .lead { margin-top: 20px; }
.wrap--text { width: min(760px, 100% - 32px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--grey); margin-bottom: 28px; }
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { color: var(--light); }
.crumbs [aria-current] { color: var(--grey); }
.section--flush { padding-top: 0; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground-2); overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.post-card:hover { transform: translateY(-3px); border-color: rgba(216, 211, 198, .28); }
.post-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.post-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { display: grid; gap: 10px; padding: 22px 22px 24px; flex: 1; align-content: start; }
.post-card__body h3 { font: 400 1.6rem/1.1 var(--display); }
.post-card__body p:not(.post-card__meta) { font-size: .95rem; }
.post-card__meta { color: var(--grey); }
.post-card .link { margin-top: 6px; }

.article__meta { color: var(--grey); margin-top: 22px; }
.article__hero { margin-block: 0 56px; }
.article__hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

.prose { font-size: 1.06rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.1; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose a { color: var(--pearl); text-underline-offset: 3px; }
.prose strong { color: var(--light); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--pearl); }
.prose .table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--light); font-weight: 600; background: var(--ground-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose blockquote { margin-inline: 0; padding: 16px 20px; border-radius: 10px; background: var(--ground-2); border: 1px solid var(--line); font-size: .96rem; }
.prose blockquote p { margin: 0; }

.cta-box { margin-block: 64px; padding: 36px; border-radius: var(--radius); background: linear-gradient(140deg, var(--slate), var(--ground-2)); border: 1px solid var(--line); display: grid; gap: 14px; }
.cta-box h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.related { padding-bottom: 120px; }
.related > h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin-bottom: 28px; }

@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .posts { grid-template-columns: 1fr; }
  .page-head { padding: 48px 0 32px; }
  .cta-box { padding: 26px; }
}
.posts__more { margin-top: 28px; }
.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; }
.legal { padding-bottom: 120px; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font: 400 clamp(1.25rem, 2.4vw, 1.6rem)/1.25 var(--display); color: var(--light); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font: 300 1.6rem/1 var(--body); color: var(--pearl); transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:focus-visible { outline: 2px solid var(--pearl); outline-offset: 4px; }
.faq__item p { color: var(--text); max-width: 68ch; padding: 0 0 26px; }
.faq__item .link { white-space: normal; margin-left: .25em; }
