/* CypherGuard – gemeinsames Design-System für alle Seiten.
   Token-Namen bleiben die bisherigen (--bg, --panel, --blue …), damit seitenspezifische
   Styles weiter darauf aufbauen können. Schriften liegen lokal (keine Google-Server, DSGVO). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.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: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.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: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0b111d;
  --bg2: #0d1422;
  --panel: #121a2b;
  --panel2: #172237;
  --line: #1d2a44;
  --line2: #24365a;
  --ink: #eef4ff;
  --muted: #a7b6d2;
  --faint: #7f91af;
  --blue: #6ca6ff;
  --blue-d: #3f7fe4;
  --teal: #57d2be;
  --green: #85e3a5;
  --violet: #9d8cff;
  --gold: #ffcc85;
  --pink: #ff8c9f;
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
  --glass: linear-gradient(180deg, rgba(23, 34, 55, 0.72), rgba(13, 20, 34, 0.72));
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(108, 166, 255, 0.35); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; hyphens: none; -webkit-hyphens: none; }
p { margin: 0; }
code, kbd { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #08101e; font-weight: 700; padding: 10px 16px; border-radius: 10px; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--body); white-space: nowrap; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s, background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { flex: none; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.6s ease; pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn-primary { color: #06101f; background: linear-gradient(135deg, #8bbaff 0%, var(--blue) 45%, var(--blue-d) 100%); box-shadow: 0 10px 30px -12px rgba(108, 166, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -12px rgba(108, 166, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, 0.03); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--blue); color: #fff; background: rgba(108, 166, 255, 0.08); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
/* Sehr schmale Handys: lange Knopftexte dürfen umbrechen statt über den Rand zu ragen */
@media (max-width: 380px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid rgba(29, 42, 68, 0.7); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 17, 29, 0.78); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.site-header .nav { max-width: 1260px; margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); flex: none; }
.brand .mark { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 4px 14px rgba(108, 166, 255, 0.45)); }
.nav-links { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0; }
.nav-links > a, .nav-links .as-trigger { position: relative; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color 0.15s; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { color: var(--ink); }
.nav-links > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; border-radius: 2px; background: var(--blue); transition: right 0.2s ease; }
.nav-links > a:hover::after, .nav-links > a[aria-current="page"]::after { right: 0; }
.nav-links .m-only { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }
.nav-config { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-size: 14.5px; font-weight: 600; white-space: nowrap; padding: 6px 4px; }
.nav-config:hover { color: #8be6d6; }
.ver-pill { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--mono); color: var(--teal); background: rgba(87, 210, 190, 0.1); border: 1px solid rgba(87, 210, 190, 0.25); border-radius: 999px; padding: 5px 9px; letter-spacing: 0.03em; white-space: nowrap; }
.nav-links > a .ver-pill { padding: 4px 7px; font-size: 10.5px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.03); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .x { display: none; }
.site-header.menu-open .menu-toggle .bars { display: none; }
.site-header.menu-open .menu-toggle .x { display: block; }
/* Kopfleisten-Knöpfe sehen auf jeder Seite gleich aus, auch wenn eine Seite eigene .btn-Stile hat */
.nav-actions .btn { min-height: 38px; padding: 0 16px; font: 600 14px/1 var(--body); border-radius: 10px; }
.site-header .btn-primary { color: #06101f; background: linear-gradient(135deg, #8bbaff 0%, var(--blue) 45%, var(--blue-d) 100%); border-color: transparent; }
.nav-links > a.btn-primary { color: #06101f; padding: 0 20px; }

/* Sprachumschalter */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; background: var(--panel); border: 1px solid var(--line2); border-radius: 999px; padding: 3px; }
.lang-switch button, .lang-switch a { display: inline-block; font: 600 12px/1 var(--body); letter-spacing: 0.04em; color: var(--faint); background: transparent; border: 0; padding: 7px 11px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: background-color 0.18s, color 0.18s; }
.lang-switch button.active, .lang-switch a.active { background: var(--blue); color: #06101f; }
.lang-switch button:hover:not(.active), .lang-switch a:hover:not(.active) { color: var(--ink); }

/* Produkt-Menü */
.app-switcher { position: relative; }
.as-trigger { background: none; border: 0; padding: 6px 0; cursor: pointer; font-family: var(--body); }
.as-chev { transition: transform 0.18s ease; }
.app-switcher.open .as-chev { transform: rotate(180deg); }
.as-menu {
  position: absolute; top: calc(100% + 14px); left: -12px; width: 300px;
  background: rgba(23, 34, 55, 0.97); border: 1px solid var(--line2); border-radius: 16px;
  padding: 8px; display: grid; gap: 2px; box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.9);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s; z-index: 70;
}
.app-switcher.open .as-menu { opacity: 1; visibility: visible; transform: none; }
.as-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 11px; transition: background-color 0.14s; }
.as-item:hover, .as-item:focus-visible { background: rgba(255, 255, 255, 0.06); }
.as-item-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--ic); background: var(--ic-bg); border: 1px solid color-mix(in srgb, var(--ic) 35%, transparent); }
.as-item b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.as-item small { display: block; font-size: 12px; color: var(--faint); margin-top: 1px; }
.as-item.current { background: rgba(108, 166, 255, 0.08); }
.as-item.current b { color: var(--blue); }
.as-all { margin-top: 4px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 6px; }

@media (max-width: 1279px) {
  .nav-config .lbl { display: none; }
  .nav-links { gap: 20px; }
}
@media (max-width: 1079px) {
  .menu-toggle { display: inline-flex; }
  .site-header .nav { gap: 14px; }
  .nav-actions .btn, .nav-actions .nav-config { display: none; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    max-height: calc(100vh - 66px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.2s;
  }
  .site-header.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links > a { padding: 15px 4px; font-size: 16.5px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-links > a::after { display: none; }
  .nav-links .m-only { display: flex; }
  .nav-links .m-cta { margin-top: 16px; border-bottom: 0; justify-content: center; }
  .app-switcher { order: -1; }
  .as-trigger { width: 100%; justify-content: space-between; padding: 15px 4px; font-size: 16.5px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .as-menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; margin: 8px 0; background: rgba(255, 255, 255, 0.03); }
  .app-switcher.open .as-menu { display: grid; }
}
@media (max-width: 640px) { .site-header .nav { padding: 0 18px; } }
@media (max-width: 420px) {
  .site-header .nav { padding: 0 16px; }
  .brand { font-size: 17px; }
  .lang-switch button, .lang-switch a { padding: 7px 9px; }
}

/* ---------- Abschnitte ---------- */
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.eyebrow, .kick {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 12.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; opacity: 0.8; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 46px); margin-top: 16px; }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 17px; }
.grad { background: linear-gradient(120deg, var(--blue) 0%, var(--teal) 60%, #b9f3e8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Glass-Panel als Grundbaustein */
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); }

/* Einblenden beim Scrollen – nur mit JavaScript versteckt, ohne JS bleibt alles sichtbar */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Icon-Chip */
.ic-chip { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--c, var(--blue)); background: color-mix(in srgb, var(--c, var(--blue)) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--blue)) 30%, transparent); }
.ic-chip svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg2), #090e18); padding: 64px 0 34px; margin-top: 40px; }
.site-footer > .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.site-footer .foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { margin-bottom: 16px; }
.site-footer .fdesc { color: var(--faint); font-size: 14px; max-width: 300px; }
.site-footer h2 { font: 600 12.5px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer a { color: var(--muted); font-size: 14px; transition: color 0.15s; }
.site-footer a:hover { color: var(--blue); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 46px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: 13px; }
.foot-bottom a { font-size: 13px; }
.site-footer a.brand { color: var(--ink); font-size: 18px; }
.site-footer a.ver-pill { color: var(--teal); font-size: 11px; }
.site-footer a.ver-pill:hover { border-color: rgba(87, 210, 190, 0.55); }
@media (max-width: 900px) { .site-footer .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .site-footer > .wrap { padding: 0 18px; } }
@media (max-width: 560px) {
  .site-footer .foot { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .sec-head { margin-bottom: 40px; }
  .sec-head p { font-size: 16px; }
}

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