/* ==========================================================================
   Internationaler Sortenerkennungsdienst – Relaunch
   Design-System: Trust & Authority · Navy + Markenblau · IBM Plex
   ========================================================================== */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/plex-sans-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/plex-mono-500.woff2") format("woff2"); }

:root {
  /* Farben */
  --ink: #0A1830;          /* Navy, Flächen dunkel */
  --ink-2: #102544;
  --ink-3: #1A3460;
  --brand: #2E90DA;        /* Logo-Blau – Flächen, Icons, auf Dunkel */
  --brand-600: #1673BE;
  --brand-700: #0B5E9E;    /* Text & Buttons auf Hell (≥ 6:1) */
  --brand-50: #EAF4FC;
  --brand-100: #D3E7F8;
  --cyan: #5CC8F5;         /* nur auf Dunkel */
  --mint: #2BB39A;
  --text: #0F1B2D;
  --text-2: #3E4C61;
  --muted: #5A6A80;        /* 5.4:1 auf Weiß */
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --line: #E1E7EF;
  --line-strong: #CBD5E1;
  --danger: #C62828;
  --ok: #1E7F5C;

  /* Typo */
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);

  /* Raster */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 24, 48, .06), 0 1px 1px rgba(10, 24, 48, .04);
  --shadow: 0 10px 30px -12px rgba(10, 24, 48, .18), 0 2px 6px rgba(10, 24, 48, .05);
  --shadow-lg: 0 30px 60px -20px rgba(10, 24, 48, .35), 0 8px 20px -8px rgba(10, 24, 48, .15);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 220ms;
  --header-h: 76px;
}

/* ---------- Basis ---------- */
*, *::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; font-family: var(--font); font-size: var(--fs-base); line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-700); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 600; color: var(--text); }
h1 { font-size: var(--fs-3xl); letter-spacing: -.025em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-100); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm); }
.skip:focus { top: 1rem; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.lead { font-size: var(--fs-lg); color: var(--text-2); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--brand-700); --_fg: #fff; --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.35rem;
  font: 600 var(--fs-sm)/1.2 var(--font); letter-spacing: .005em; text-decoration: none; color: var(--_fg); background: var(--_bg);
  border: 1px solid var(--_bd); border-radius: 999px; cursor: pointer; touch-action: manipulation;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { --_bg: var(--brand-600); color: var(--_fg); box-shadow: 0 8px 20px -8px rgba(11, 94, 158, .6); }
.btn:active { transform: scale(.98); }
.btn .icon { transition: transform var(--dur) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--ghost { --_bg: transparent; --_fg: var(--text); --_bd: var(--line-strong); }
.btn--ghost:hover { --_bg: var(--surface); --_fg: var(--brand-700); border-color: var(--brand-700); box-shadow: none; }
.btn--light { --_bg: #fff; --_fg: var(--ink); }
.btn--light:hover { --_bg: var(--brand-50); --_fg: var(--ink); }
.btn--outline-light { --_bg: transparent; --_fg: #fff; --_bd: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { --_bg: rgba(255, 255, 255, .08); --_fg: #fff; border-color: #fff; box-shadow: none; }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .78); font-size: var(--fs-xs); }
.topbar__in { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--cyan); }
.topbar__links { display: flex; gap: 1.5rem; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur), box-shadow var(--dur);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10, 24, 48, .5); }
.header__in { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { width: 196px; height: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: .55rem .85rem; border-radius: 999px; color: var(--text-2);
  font-weight: 500; font-size: var(--fs-sm); text-decoration: none; transition: color var(--dur), background var(--dur);
}
.nav a:hover { color: var(--brand-700); background: var(--brand-50); }
.nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 12px; color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }

.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10, 24, 48, .5); animation: fade 200ms var(--ease); }
.drawer__panel {
  position: absolute; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--surface); padding: 1.25rem;
  display: flex; flex-direction: column; gap: 1rem; animation: slide-in 260ms var(--ease); overflow-y: auto;
}
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__head img { width: 160px; }
.drawer nav ul { list-style: none; padding: 0; margin: 0; }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: .9rem .25rem; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; font-size: var(--fs-lg); }
.drawer nav a[aria-current="page"] { color: var(--brand-700); }
.drawer nav .sub a { font-size: var(--fs-base); padding-left: 1rem; color: var(--text-2); }
.drawer__contact { margin-top: auto; display: grid; gap: .5rem; font-size: var(--fs-sm); }
.drawer__contact a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 1020px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  .topbar__links { gap: 1rem; }
  .topbar__links .lbl { display: none; }
  .brand img { width: 168px; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(46, 144, 218, .35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(43, 179, 154, .14), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.hero__guilloche { position: absolute; z-index: -1; width: 1100px; right: -280px; top: 50%; translate: 0 -50%; opacity: .5; pointer-events: none; }
.hero__guilloche img { width: 100%; animation: spin 140s linear infinite; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7.5rem); }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 .accent { background: linear-gradient(90deg, #8FD8FF, var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .eyebrow { color: var(--cyan); }
.hero .lead { color: rgba(255, 255, 255, .78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.25rem; padding: 0; list-style: none; font-size: var(--fs-sm); color: rgba(255, 255, 255, .72); }
.hero__trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust .icon { color: var(--mint); }
@keyframes spin { to { rotate: 360deg; } }

/* App-Mockup */
.mock {
  position: relative; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); padding: 10px;
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
}
.mock__win { background: #fff; border-radius: 14px; overflow: hidden; color: var(--text); }
.mock__bar { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: #F8FAFC; }
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: #D5DCE5; }
.mock__url { flex: 1; font-family: var(--mono); font-size: 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .2rem .6rem; display: flex; align-items: center; gap: .4rem; }
.mock__url .icon { width: 12px; height: 12px; color: var(--ok); }
.mock__body { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; }
.mock__side { border-right: 1px solid var(--line); padding: .8rem; font-size: 12px; background: #FBFCFE; }
.mock__search { display: flex; align-items: center; gap: .4rem; border: 1px solid var(--line); border-radius: 6px; padding: .3rem .5rem; color: var(--muted); margin-bottom: .7rem; background: #fff; }
.mock__search .icon { width: 12px; height: 12px; }
.mock__side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.mock__side li { display: flex; justify-content: space-between; padding: .35rem .5rem; border-radius: 6px; color: var(--text-2); }
.mock__side li span:last-child { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.mock__side li.is-active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.mock__main { padding: 1rem; display: grid; gap: .8rem; align-content: start; }
.mock__title { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.mock__title strong { font-size: 14px; }
.mock__title span { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.note {
  position: relative; aspect-ratio: 2.05 / 1; border-radius: 8px; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 78% 50%, rgba(255, 255, 255, .25) 0 16%, transparent 17%),
    linear-gradient(120deg, #1D5C8F 0%, #2E90DA 45%, #2BB39A 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.note img { position: absolute; inset: -40% -10% auto auto; width: 75%; opacity: .45; mix-blend-mode: screen; }
.note__val { position: absolute; left: 8%; bottom: 10%; font: 700 clamp(28px, 4vw, 44px)/1 var(--font); letter-spacing: -.03em; }
.note__cc { position: absolute; left: 8%; top: 12%; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; opacity: .9; }
.note__thread { position: absolute; top: 0; bottom: 0; left: 52%; width: 4px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .85) 0 6px, rgba(255, 255, 255, .25) 6px 10px); }
.note__specimen { position: absolute; right: 6%; bottom: 10%; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; border: 1px solid rgba(255, 255, 255, .7); padding: 2px 6px; border-radius: 3px; }
.note__scan { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(143, 216, 255, .0) 40%, rgba(143, 216, 255, .55) 50%, transparent 60%); animation: scan 3.6s var(--ease) infinite; }
@keyframes scan { 0% { translate: -100% 0; } 60%, 100% { translate: 100% 0; } }
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; font-size: 12px; }
.feat-list li { display: flex; align-items: center; gap: .4rem; color: var(--text-2); }
.feat-list .icon { width: 14px; height: 14px; color: var(--ok); }
.mock__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: 11px; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); }
.tag--ok { background: #E3F5EE; color: var(--ok); }
.tag--warn { background: #FDF0E1; color: #9A4B00; }
.mock__float {
  position: absolute; left: -28px; bottom: 34px; display: flex; align-items: center; gap: .7rem; background: #fff; color: var(--text);
  border-radius: 12px; padding: .7rem .9rem; box-shadow: var(--shadow-lg); font-size: 12px; animation: float 6s ease-in-out infinite;
}
.mock__float .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #FDF0E1; color: #9A4B00; }
.mock__float strong { display: block; font-size: 13px; }
.mock__float span { color: var(--muted); }
@keyframes float { 50% { translate: 0 -8px; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__guilloche { width: 800px; right: -380px; top: 18%; }
  .mock__float { left: 12px; bottom: -22px; }
}
@media (max-width: 520px) {
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--white { background: var(--surface); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead, .section--dark p { color: rgba(255, 255, 255, .75); }
.section--dark .eyebrow { color: var(--cyan); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }

/* Stats */
.stats { position: relative; z-index: 2; margin-top: -3.25rem; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
}
.stat { padding: 1.6rem 1.75rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font: 600 clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem)/1 var(--font); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .55em; color: var(--brand-700); margin-left: .1em; }
.stat__lbl { margin-top: .5rem; font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 860px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Produkt-Karten */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.product {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.product__media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); }
.product__media img.g { position: absolute; width: 140%; left: -20%; top: -40%; opacity: .45; }
.product__badge { position: absolute; top: 1rem; left: 1rem; z-index: 1; }
.product__body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.product__body p { color: var(--text-2); }
.product__body .link-arrow { margin-top: auto; }
.product__body .link-arrow::after { content: ""; position: absolute; inset: 0; }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); font-weight: 600; padding: .35rem .75rem; border-radius: 999px; background: var(--mint); color: #062A23; }
.badge--light { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.badge .icon { width: 14px; height: 14px; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }

/* Mini-Visuals in Produktkarten */
.viz { position: absolute; inset: 0; display: grid; place-items: center; }
.viz .note { width: 58%; box-shadow: var(--shadow-lg); rotate: -4deg; }
.viz .note + .note { position: absolute; width: 50%; rotate: 6deg; translate: 22% 10%; opacity: .9; background: linear-gradient(120deg, #6B3FA0, #C04F7A 60%, #E9A23B); }
.globe { width: 46%; aspect-ratio: 1; border-radius: 50%; position: relative; background: radial-gradient(circle at 35% 30%, #8FD8FF, var(--brand) 45%, var(--ink-3) 100%); box-shadow: var(--shadow-lg), inset -18px -18px 40px rgba(0, 0, 0, .35); overflow: hidden; }
.globe svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: rgba(255, 255, 255, .45); fill: none; stroke-width: .6; }
.globe__pin { position: absolute; display: flex; align-items: center; gap: .35rem; background: #fff; color: var(--text); font-size: 11px; font-weight: 600; padding: .3rem .55rem; border-radius: 8px; box-shadow: var(--shadow); }
.globe__pin .icon { width: 13px; height: 13px; color: var(--brand-700); }

/* Feature-Grid */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split--center { align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.features { display: grid; gap: 1rem; }
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.35rem 1.5rem; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transition: border-color var(--dur), box-shadow var(--dur);
}
.feature:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.feature h3 { margin-bottom: .25rem; font-size: 1.0625rem; }
.feature p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.ico-box { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.ico-box .icon { width: 22px; height: 22px; }
.ico-box--dark { background: rgba(92, 200, 245, .12); color: var(--cyan); }
.callout { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--brand); background: var(--brand-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 600; color: var(--ink); }

/* Logo-Laufband */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 1rem; padding-right: 1rem; width: max-content; animation: marquee 50s linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { translate: -50% 0; } }
.logo-tile {
  flex: none; width: 190px; height: 96px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .5rem 1rem;
}
.logo-tile img { max-height: 70px; width: auto; filter: grayscale(1) contrast(1.05); opacity: .75; mix-blend-mode: multiply; transition: filter var(--dur), opacity var(--dur); }
.logo-tile:hover img { filter: none; opacity: 1; }
.marquee-ctrl { display: flex; justify-content: center; margin-top: 1.25rem; }
.icon-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .9rem; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; color: var(--text-2); font: 500 var(--fs-xs) var(--font); cursor: pointer; }
.icon-btn:hover { border-color: var(--brand-700); color: var(--brand-700); }

/* CTA-Doppel */
.cta-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.cta-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); isolation: isolate;
  background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: #fff; display: flex; flex-direction: column; gap: .5rem; min-height: 300px;
}
.cta-card--brand { background: linear-gradient(160deg, var(--brand-600), var(--brand-700) 60%, #084A7D); }
.cta-card img.g { position: absolute; z-index: -1; width: 520px; right: -200px; bottom: -220px; opacity: .35; }
.cta-card h3 { color: #fff; font-size: var(--fs-xl); }
.cta-card p { color: rgba(255, 255, 255, .8); max-width: 44ch; }
.cta-card .btn { margin-top: auto; align-self: flex-start; }
.cta-card .ico-box { background: rgba(255, 255, 255, .12); color: #fff; margin-bottom: .75rem; }
@media (max-width: 860px) { .cta-duo { grid-template-columns: 1fr; } }

/* ---------- Unterseiten-Kopf ---------- */
.page-head {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(700px 380px at 90% 0%, rgba(46, 144, 218, .35), transparent 65%), linear-gradient(180deg, var(--ink), var(--ink-2));
  padding-block: clamp(3rem, 7vw, 5rem) clamp(3.5rem, 8vw, 6rem);
}
.page-head img.g { position: absolute; z-index: -1; width: 760px; right: -220px; top: -260px; opacity: .4; animation: spin 160s linear infinite; }
.page-head h1 { color: #fff; font-size: var(--fs-2xl); margin-bottom: .75rem; }
.page-head .lead { color: rgba(255, 255, 255, .78); margin: 0; }
.page-head .eyebrow { color: var(--cyan); }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: var(--fs-xs); color: rgba(255, 255, 255, .6); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.subnav a { padding: .5rem 1rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; color: rgba(255, 255, 255, .85); text-decoration: none; border: 1px solid rgba(255, 255, 255, .22); transition: background var(--dur), color var(--dur); }
.subnav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.subnav a[aria-current="page"] { background: #fff; color: var(--ink); border-color: #fff; }

/* Inhalts-Layout mit Seitenleiste */
.content-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow-sm); }
.overlap { margin-top: -2.5rem; position: relative; z-index: 2; }
.with-aside { display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.aside nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; border-left: 1px solid var(--line); }
.aside nav a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); }
.aside nav a:hover { color: var(--brand-700); }
.aside nav a.is-active { color: var(--brand-700); border-left-color: var(--brand-700); font-weight: 600; }
.aside__title { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
@media (max-width: 900px) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; } }

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2.5rem; padding-top: .25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; margin-top: 1.75rem; }
.prose p, .prose li { color: var(--text-2); }
.prose ul li { margin-bottom: .35rem; }
.prose ul li::marker { color: var(--brand); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 0 0 1.5rem; }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; color: var(--text); }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; gap: 0; } .prose dd { margin-bottom: .6rem; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .7rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; color: var(--text-2); }
.checklist .tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #E3F5EE; color: var(--ok); margin-top: 1px; }
.checklist .tick .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.checklist--2 { grid-template-columns: 1fr 1fr; gap: .9rem 2rem; }
@media (max-width: 700px) { .checklist--2 { grid-template-columns: 1fr; } }

/* Karten-Grid allgemein */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--2 > :last-child:nth-child(odd) { grid-column: 1 / -1; } /* ungerade Anzahl: letzte Karte volle Breite */
.card { padding: 1.75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card h3 { margin-top: 1rem; }
.card p { color: var(--text-2); margin: 0; font-size: var(--fs-sm); }
.section--dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.section--dark .card p { color: rgba(255, 255, 255, .72); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards, .cards--2 { grid-template-columns: 1fr; } }

/* Referenzen-Grid */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.logo-grid .logo-tile { width: auto; height: 120px; }
@media (max-width: 900px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } .logo-grid .logo-tile { height: 100px; } }

/* Zitat / Band */
.quote-band { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; padding: 2rem; border-radius: var(--radius-lg); background: var(--brand-50); border: 1px solid var(--brand-100); }
.quote-band p { margin: 0; font-size: var(--fs-lg); color: var(--ink); }
@media (max-width: 600px) { .quote-band { grid-template-columns: 1fr; } }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.field .req { color: var(--danger); margin-left: .15rem; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: .75rem .95rem; font: 400 1rem/1.4 var(--font); color: var(--text); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 10px; transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #9AAAC0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-700); box-shadow: 0 0 0 4px rgba(46, 144, 218, .2); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--danger); }
.field__err { display: none; align-items: center; gap: .35rem; font-size: var(--fs-xs); color: var(--danger); font-weight: 500; }
.field[data-invalid] .field__err { display: flex; }
.field__err .icon { width: 14px; height: 14px; }
.form__note { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }
.form__status { display: none; align-items: flex-start; gap: .75rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: #E3F5EE; color: #0E5A3F; font-size: var(--fs-sm); }
.form__status.is-visible { display: flex; }
.form__status .icon { margin-top: 2px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; border: 0; padding: 0; margin: 0; }
.seg legend { margin-bottom: .5rem; font-size: var(--fs-sm); font-weight: 600; padding: 0; }
.seg label {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; padding: 1rem 1.1rem; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.seg label:hover { border-color: var(--brand-700); }
.seg input { appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 2px solid var(--line-strong); border-radius: 50%; grid-row: span 2; transition: border var(--dur); }
.seg input:checked { border: 6px solid var(--brand-700); }
.seg input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.seg label:has(input:checked) { border-color: var(--brand-700); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand-700); }
.seg strong { font-size: var(--fs-sm); }
.seg span { font-size: var(--fs-xs); color: var(--muted); }
.seg--chips { display: flex; flex-wrap: wrap; }
.seg--chips label { grid-template-columns: auto auto; align-items: center; padding: .6rem 1rem; border-radius: 999px; }
.seg--chips input { grid-row: auto; border-radius: 5px; }
.seg--chips input:checked { border: 0; background: var(--brand-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 560px) { .seg:not(.seg--chips) { grid-template-columns: 1fr; } }

/* Kontakt-Infos */
.contact-list { display: grid; gap: .9rem; list-style: none; padding: 0; margin: 0; }
.contact-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur); }
a.contact-item:hover { border-color: var(--brand-100); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--text); }
.contact-item small { display: block; color: var(--muted); font-size: var(--fs-xs); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.contact-item strong { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: var(--fs-sm); position: relative; overflow: hidden; }
.footer__cta { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__cta-in { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-block: 2.5rem; }
.footer__cta h2 { color: #fff; font-size: var(--fs-xl); margin: 0; }
.footer__cta p { margin: .35rem 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
.footer__logo { width: 196px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 1rem; }
.site-footer h3 { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); font-weight: 500; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__contact a, .footer__contact span { display: inline-flex; align-items: center; gap: .5rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-xs); color: rgba(255, 255, 255, .55); }
.footer__bottom ul { display: flex; gap: 1.25rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity 600ms var(--ease), translate 600ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { mask-image: none; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .marquee-ctrl { display: none; }
}

@media print {
  .topbar, .site-header, .site-footer, .hero__guilloche, .page-head img.g { display: none !important; }
  .page-head { background: none; color: #000; } .page-head h1 { color: #000; }
}

/* Buttons behalten ihre Farbe auch in Kontexten mit eigener Linkfarbe */
.site-footer a.btn, .site-footer a.btn:hover, .cta-card a.btn, .hero a.btn { color: var(--_fg); text-decoration: none; }

@media (max-width: 600px) {
  .mock__float { position: relative; left: auto; bottom: auto; margin: 10px 0 0; animation: none; width: fit-content; }
  .stat { padding: 1.25rem; }
}

/* Kontakt ohne Formular */
.contact-list--3 { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.contact-list--3 .contact-item { height: 100%; }
@media (max-width: 900px) { .contact-list--3 { grid-template-columns: 1fr; } }
.cta-card__actions { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-card__actions .btn { margin-top: 0; }
