/* ==========================================================================
   IGRF mbH – igrf.com
   Design: IBM Plex Sans / Mono (lokal gehostet, DSGVO-konform)
   Farben abgeleitet aus dem IGRF-Logo (Navy) und CodeShuttle (Hellblau)
   ========================================================================== */

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

/* ---------- Tokens ---------- */
:root {
  --navy: #17335E;          /* Logo-Blau, Primärfarbe */
  --navy-deep: #0F2440;     /* dunkle Sektionen, Footer */
  --navy-deeper: #0A1A30;
  --sky: #7FD4FF;           /* Akzent auf dunklem Grund (CodeShuttle) */
  --accent: #1E7FBE;        /* Akzent/Links auf hellem Grund */
  --paper: #F4F7FB;         /* heller Sektionshintergrund */
  --white: #FFFFFF;
  --ink: #1B2A42;           /* Fließtext */
  --muted: #53647D;         /* Nebentext */
  --line: #DBE4F0;          /* Linien, Kartenränder */
  --ok: #1E8E5A;
  --err: #C43D3D;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(15, 36, 64, .10);
  --shadow-sm: 0 2px 10px rgba(15, 36, 64, .08);
  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Cascadia Mono', Consolas, monospace;
  --wrap: 1160px;
}

/* ---------- Reset / Basis ---------- */
[id] { scroll-margin-top: 96px; }
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
p, li, dd, dt, .lead, summary { overflow-wrap: break-word; hyphens: manual; }
.grid > *, .split > *, .hero-inner > *, .footer-grid > *, .facts > *, .card, .cta-band > * { min-width: 0; }
.flow-svg { display: block; width: 100%; height: auto; }
h1, h2, h3, h4, a, .label, .tag { overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 700; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6em 1em; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* Eyebrow – technisches Mono-Label, Signaturelement der Typografie */
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: .7em;
  margin: 0 0 .9em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); flex: none; }
.on-dark .eyebrow { color: var(--sky); }
.on-dark .eyebrow::before { background: var(--sky); }

.lead { font-size: 1.13rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; color: var(--navy); font-size: 1.12rem; letter-spacing: -.01em; }
.brand-text span { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.main-nav ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .55rem .8rem; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: .97rem;
}
.main-nav a:hover { background: var(--paper); text-decoration: none; color: var(--navy); }
.main-nav a[aria-current="page"] { color: var(--navy); background: var(--paper); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-cta { margin-left: .4rem; }
.nav-cta a { background: var(--navy); color: #fff !important; font-weight: 600; }
.nav-cta a:hover { background: var(--navy-deep); }
.main-nav .nav-cta a[aria-current="page"] { background: var(--sky); color: var(--navy) !important; box-shadow: none; }
.main-nav .nav-cta a[aria-current="page"]:hover { background: #9ADEFF; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--navy); }

@media (max-width: 940px) {
  .brand-text span { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: .8rem; gap: .15rem; }
  .main-nav a { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav-cta { margin: .4rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 62%, #1C3F73 100%);
  color: #E8F0FA;
  overflow: hidden;
}
.hero::before { /* Lichtakzente: Glow + diagonaler Strahl */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 440px at 78% 16%, rgba(127,212,255,.17), transparent 65%),
    radial-gradient(520px 400px at 4% 100%, rgba(30,127,190,.28), transparent 62%),
    linear-gradient(115deg, transparent 40%, rgba(127,212,255,.07) 50%, transparent 60%);
}
.hero::after { /* Platinen-Leiterbahnen als leises Hintergrundmuster */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(127,212,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,212,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: 4.5rem 0 4rem; }
.hero h1 { color: #fff; margin-bottom: .6em; }
.hero h1 .accent { color: var(--sky); }
.hero p { color: #C4D6EC; font-size: 1.12rem; max-width: 56ch; }
.hero .eyebrow { color: var(--sky); }
.hero .eyebrow::before { background: var(--sky); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.badge {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em;
  border: 1px solid rgba(127,212,255,.4); color: #BFE6FB;
  padding: .35rem .7rem; border-radius: 999px; white-space: nowrap;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero h1 .accent { text-shadow: 0 0 26px rgba(127,212,255,.45); }
.hero-visual { position: relative; animation: heroFloat 7s ease-in-out infinite alternate; }
.hero-visual::before {
  content: ""; position: absolute; inset: -8% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(127,212,255,.13), transparent 72%);
  filter: blur(2px);
}
@keyframes heroFloat { from { transform: translateY(0); } to { transform: translateY(-9px); } }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3rem 0 2.6rem; gap: 2.2rem; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
}

/* Chip-Pin-Kante (Zitat des IGRF-Logos) am unteren Hero-Rand */
.chip-edge { display: block; width: 100%; height: 26px; margin-top: -1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8rem 1.5rem; border-radius: 10px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  font-family: var(--sans);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--sky); color: var(--navy-deep); }
.btn-primary:hover { background: #A3E1FF; box-shadow: 0 6px 20px rgba(127,212,255,.35); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); box-shadow: var(--shadow-sm); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { background: var(--paper); }
.arrow::after { content: "→"; transition: transform .15s ease; }
.arrow:hover::after { transform: translateX(3px); }

/* ---------- Sektionen ---------- */
.section { padding: 4.5rem 0; }
.section.tint { background: #fff; }
.section.dark { background: var(--navy-deep); color: #D6E4F5; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .lead { color: #AFC6DF; }
.section.dark .card { color: var(--ink); }
.section.dark .card h3, .section.dark .card h2 { color: var(--navy); }
.section.dark .card p { color: var(--ink); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { .section { padding: 3rem 0; } }

/* ---------- Karten & Grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C3D3E8; }
.card h3 { margin-top: .2rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(140deg, var(--navy) 0%, #24528F 100%);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.card .icon svg { width: 27px; height: 27px; stroke: var(--sky); fill: none; stroke-width: 1.8; }
a.card-link { position: absolute; inset: 0; border-radius: var(--radius); }
.card .more { font-weight: 600; color: var(--accent); }

/* Zahlen / Fakten */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.fact { text-align: center; padding: 1.4rem .8rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.fact .num { font-size: 2.3rem; font-weight: 700; color: var(--navy); letter-spacing: -.02em; line-height: 1.15; overflow-wrap: break-word; }
.fact .num .accent { color: var(--accent); }
.fact .label { font-family: var(--mono); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }
.fact .num.num-sm { font-size: 1.45rem; letter-spacing: .01em; padding-top: .55rem; padding-bottom: .3rem; }
@media (max-width: 800px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* Split-Layout (Text + Bild) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center; }
.split.rev > .split-media { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split.rev > .split-media { order: 0; } }
.split-media img { border-radius: var(--radius); }
.framed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.split.media-wide { grid-template-columns: .8fr 1.2fr; }
.split.rev.media-wide { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 900px) { .split.media-wide, .split.rev.media-wide { grid-template-columns: 1fr; } }
button.framed.zoomable {
  display: block; width: 100%; padding: .9rem .9rem 1.9rem; cursor: zoom-in;
  font: inherit; text-align: inherit; position: relative;
  transition: box-shadow .2s ease, border-color .2s ease;
}
button.framed.zoomable:hover { box-shadow: var(--shadow); border-color: #C3D3E8; }
.zoom-hint {
  position: absolute; right: .8rem; bottom: .7rem;
  color: var(--muted); display: inline-flex;
}
button.framed.zoomable:hover .zoom-hint { color: var(--accent); }
.zoom-hint::before {
  content: ""; width: 17px; height: 17px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 26, 48, .82); backdrop-filter: blur(3px); padding: 4vh 3vw; cursor: zoom-out;
  animation: lbIn .18s ease;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: min(1100px, 94vw); max-height: 92vh; width: auto; height: auto;
  background: #fff; border-radius: var(--radius); padding: 1.2rem; box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.lightbox-close {
  position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.26); }

/* Checkliste */
.checks { list-style: none; padding: 0; margin: 1rem 0 0; }
.checks li { padding-left: 1.9em; position: relative; margin-bottom: .55em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .34em; width: 1.05em; height: 1.05em;
  border-radius: 50%; background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.1V12a10 10 0 1 1-5.9-9.1'/%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.on-dark .checks li::before, .section.dark .checks li::before { background: var(--sky); }

/* Tech-Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.chips li {
  font-family: var(--mono); font-size: .8rem;
  background: var(--paper); border: 1px solid var(--line); color: var(--navy);
  padding: .3rem .7rem; border-radius: 6px;
}
.section.dark .chips li, .dark .chips li { background: rgba(255,255,255,.06); border-color: rgba(127,212,255,.3); color: #CFE8FA; }

/* Produkt-Karten */
.product-card { display: flex; flex-direction: column; }
.product-card .tag {
  align-self: flex-start; font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); background: rgba(30,127,190,.09);
  padding: .28rem .65rem; border-radius: 6px; margin-bottom: 1rem;
}
.product-card .btn { margin-top: auto; align-self: flex-start; }
.product-logo { height: 46px; margin-bottom: 1rem; display: flex; align-items: center; }
.product-logo img { height: 100%; width: auto; }
.product-wordmark { font-size: 1.6rem; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.product-wordmark .accent { color: var(--accent); }

/* News */
.news-card { display: flex; flex-direction: column; }
.news-card time { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-bottom: .5rem; }
.news-card h3 { font-size: 1.12rem; }
.news-card p { color: var(--muted); font-size: .97rem; }

/* Referenz-Listen */
.ref-cols { columns: 3; column-gap: 2.5rem; }
.ref-cols li { break-inside: avoid; margin-bottom: .4em; }
@media (max-width: 900px) { .ref-cols { columns: 2; } }
@media (max-width: 560px) { .ref-cols { columns: 1; } }

/* Akkordeon */
details.acc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: .8rem; overflow: hidden; }
details.acc summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); line-height: 1; transition: transform .2s; }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .acc-body { padding: 0 1.2rem 1.2rem; }

/* CTA-Band */
.cta-band { background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%); border-radius: var(--radius); padding: 3rem 2.5rem; color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { color: #BCD2E8; margin: 0; max-width: 55ch; }
@media (max-width: 700px) { .cta-band { padding: 2rem 1.5rem; } }

/* ---------- Formular ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .93rem; color: var(--navy); display: block; margin-bottom: .35rem; }
label .req { color: var(--err); }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; padding: .8rem .95rem; font: inherit; font-size: max(16px, 1rem); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,127,190,.15); }
textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: .3em; width: 1.05em; height: 1.05em; accent-color: var(--navy); flex: none; }
.hp-field { position: absolute !important; left: -6000px !important; }
.form-note { font-size: .85rem; color: var(--muted); }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-weight: 500; display: none; }
.alert.ok { background: #E7F6EE; color: var(--ok); border: 1px solid #BBE4CE; }
.alert.err { background: #FBECEC; color: var(--err); border: 1px solid #F0C7C7; }
.alert.show { display: block; }

/* Kontakt-Infoboxen */
.contact-box { display: flex; gap: 1rem; align-items: flex-start; }
.contact-box .icon { width: 46px; height: 46px; flex: none; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.contact-box .icon svg { width: 22px; height: 22px; stroke: var(--navy); fill: none; stroke-width: 1.8; }
.contact-box h3 { font-size: 1.02rem; margin-bottom: .2em; }
.contact-box p { margin: 0; color: var(--muted); }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deeper); color: #A9BDD6; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.4rem 0 2.4rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9em; }
.site-footer a { color: #BFD4EC; }
.site-footer a:hover { color: var(--sky); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5em; }
.footer-brand img { height: 40px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { max-width: 40ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; font-size: .85rem; }
.footer-bottom .mono { font-family: var(--mono); letter-spacing: .04em; }
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Datenfluss-Animation (Hero) ---------- */
.flow-svg .pulse-up { animation: flowUp 3.2s linear infinite; }
.flow-svg .pulse-down { animation: flowDown 3.2s linear infinite; }
.flow-svg .pulse-delay { animation-delay: 1.6s; }
@keyframes flowDown { from { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } to { transform: translateY(252px); opacity: 0; } }
@keyframes flowUp { from { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } to { transform: translateY(-252px); opacity: 0; } }
.flow-svg .node { transition: filter .2s; }

/* Sonstiges */
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; font-family: var(--mono); }
.breadcrumb a { color: var(--muted); }
.page-head { background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 75%); color: #fff; padding: 3.4rem 0 2.8rem; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(127,212,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(127,212,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 100% at 80% 0%, #000 0%, transparent 70%); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: .35em; }
.page-head p { color: #C4D6EC; font-size: 1.1rem; max-width: 62ch; margin: 0; }
.page-head .eyebrow { color: var(--sky); } .page-head .eyebrow::before { background: var(--sky); }

/* ---------- Footer-Brand (modernisiert) ---------- */
.footer-logo { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.footer-logo img { width: 46px; height: 38px; filter: brightness(0) invert(1); opacity: .95; }
.footer-logo .fl-name { font-weight: 700; font-size: 1.25rem; color: #fff; line-height: 1.15; letter-spacing: .01em; }
.footer-logo .fl-sub { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; color: var(--sky); margin-top: .25rem; }

/* ---------- Nach-oben-Button ---------- */
.to-top {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .94);
  color: var(--navy); box-shadow: var(--shadow-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s, color .2s;
}
.to-top svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
@media print { .to-top { display: none; } }

/* ---------- Mobile Feinschliff (<= 640px) ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 24px; }

  /* Hero: Abstand zum Header, Zierstrich der Eyebrow ausblenden */
  .hero-inner { padding-top: 4rem; }
  .eyebrow::before { display: none; }

  /* Facts: Textwerte kleiner, damit sie sicher in die Bubble passen */
  .fact .num.num-sm { font-size: 1.15rem; letter-spacing: 0; }

  /* Footer: mehr Abstand zu den Displayrändern */
  .site-footer .wrap { padding: 0 32px; }

  /* Hero komplett zentriert */
  .hero-inner > .reveal:first-child, .hero-inner > div:first-child { text-align: center; }
  .hero .eyebrow { justify-content: center; letter-spacing: .14em; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-badges, .hero-actions { justify-content: center; }

  /* Nur Sektions-Einleitungen zentriert (Eyebrow + Titel + Lead),
     alle übrigen Überschriften und der Fliesstext bleiben links */
  .eyebrow { justify-content: center; }
  .eyebrow + h2, .eyebrow + h1 { text-align: center; }
  .eyebrow + h2 + .lead, .eyebrow + h1 + .lead { text-align: center; margin-left: auto; margin-right: auto; }
  .page-head h1, .page-head p { text-align: center; margin-left: auto; margin-right: auto; }
  .chips { justify-content: center; }
  .center-m { text-align: center; }
  .center-m-btn { display: table; margin-left: auto; margin-right: auto; }

  /* CTA-Band gestapelt und zentriert */
  .cta-band { flex-direction: column; text-align: center; padding: 2.2rem 1.4rem; }
  .cta-band p { margin: 0 auto; }

  /* Footer einspaltig und zentriert */
  .site-footer .wrap.footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; padding: 3.6rem 32px 2rem; }
  .footer-logo { justify-content: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* Karten & Grafiken: etwas kompakter */
  button.framed.zoomable { padding: .7rem .7rem 1.8rem; }
  .facts { gap: .7rem; }
  .fact { padding: 1.1rem .6rem; }

  /* Nach-oben-Button kompakter */
  .to-top { width: 42px; height: 42px; }
}
