/* Thomas Klir – Quantum Security · Onepager
   Farben aus der Vorlage abgeleitet (Navy, Electric Blue, Cyan-Glow, Weiß). */

:root {
  --bg-900: #00122a;
  --bg-800: #00152e;
  --bg-700: #031e40;
  --bg-600: #002954;
  --bg-500: #00346e;
  --blue: #028aff;
  --blue-600: #05529a;
  --cyan: #6fd3ff;
  --ice: #d9f3ff;
  --text: #ffffff;
  --muted: #a9c4e4;
  --line: rgba(111, 211, 255, .18);
  --radius: 18px;
  --wrap: 1140px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-800);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 18, 42, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.06rem; letter-spacing: .01em; text-decoration: none;
}
.brand svg { width: 28px; height: 28px; color: var(--cyan); filter: drop-shadow(0 0 6px rgba(2, 138, 255, .9)); }

#menu { display: flex; align-items: center; gap: 30px; }
#menu a {
  font-size: .94rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .2s;
}
#menu a:hover { color: #fff; }
#menu .nav-cta {
  color: #fff; padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(111, 211, 255, .5);
  box-shadow: 0 0 14px rgba(2, 138, 255, .35) inset;
}
#menu .nav-cta:hover { background: rgba(2, 138, 255, .25); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 11px 9px;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ice); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, #2aa0ff, #0270e0);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(160, 225, 255, .5) inset, 0 8px 30px rgba(2, 138, 255, .5);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(200, 240, 255, .8) inset, 0 10px 40px rgba(2, 138, 255, .75); }
.btn-ghost { border: 1px solid rgba(111, 211, 255, .45); color: var(--ice); }
.btn-ghost:hover { background: rgba(2, 138, 255, .16); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 56px 0 96px;
  background:
    radial-gradient(90% 55% at 50% 112%, rgba(2, 138, 255, .75) 0%, rgba(2, 100, 210, .32) 38%, transparent 72%),
    radial-gradient(60% 60% at 72% 40%, rgba(5, 82, 154, .45), transparent 70%),
    linear-gradient(180deg, var(--bg-900) 0%, var(--bg-700) 62%, var(--bg-500) 100%);
}

/* gepunktete Wellen wie in der Vorlage */
.dots {
  position: absolute; z-index: -1; width: 46%; height: 78%; top: 6%;
  background-image: radial-gradient(circle, rgba(63, 182, 255, .7) 1.1px, transparent 1.7px);
  background-size: 13px 13px;
  opacity: .5;
}
.dots-l {
  left: -6%;
  -webkit-mask-image: radial-gradient(ellipse 62% 34% at 12% 30%, #000 0%, transparent 100%), radial-gradient(ellipse 70% 26% at 30% 82%, #000 0%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 34% at 12% 30%, #000 0%, transparent 100%), radial-gradient(ellipse 70% 26% at 30% 82%, #000 0%, transparent 100%);
}
.dots-r {
  right: -6%;
  -webkit-mask-image: radial-gradient(ellipse 60% 30% at 88% 22%, #000 0%, transparent 100%), radial-gradient(ellipse 66% 30% at 76% 76%, #000 0%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 30% at 88% 22%, #000 0%, transparent 100%), radial-gradient(ellipse 66% 30% at 76% 76%, #000 0%, transparent 100%);
}

.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
}

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 5.6vw, 4.5rem); line-height: 1.04; font-weight: 800; letter-spacing: -.02em;
  text-shadow: 0 0 34px rgba(2, 138, 255, .55);
}
.rule {
  display: block; width: 120px; height: 5px; margin: 28px 0 24px; border-radius: 3px;
  background: #fff; box-shadow: 0 0 18px rgba(111, 211, 255, .9);
}
.claim {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1.2; font-weight: 700; letter-spacing: -.01em;
}
.lead { margin-top: 22px; max-width: 34em; font-size: 1.12rem; color: var(--muted); }
.hero .actions { margin-top: 34px; }

.hero-art { justify-self: center; width: min(100%, 520px); }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art figcaption { margin-top: 4px; text-align: center; line-height: 1.35; }
.hero-art figcaption strong { display: block; font-size: 1.25rem; font-weight: 700; }
.hero-art figcaption span + span::before { content: "·"; margin: 0 .6em; }
.hero-art figcaption span { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }

/* SVG-Grafik */
.glow { filter: drop-shadow(0 0 3px rgba(111, 211, 255, .9)) drop-shadow(0 0 12px rgba(2, 138, 255, .8)); }
.trace { fill: none; stroke: #9bdcff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pulse {
  fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 7 93; stroke-dashoffset: 0;
  animation: run 4.5s linear infinite;
}
.pulse-b { animation-delay: -2.2s; }
.node { fill: #f1fbff; }
.ring { fill: none; stroke: #4db5ff; stroke-width: 1.6; opacity: .7; transform-origin: 280px 258px; animation: spin 60s linear infinite; }
.ring-2 { opacity: .4; animation-duration: 90s; animation-direction: reverse; }
.atom ellipse { fill: none; stroke: #b9e8ff; stroke-width: 2.4; }
.nucleus { fill: #fff; animation: beat 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.shield { fill: none; stroke: #e8f8ff; stroke-width: 5; stroke-linejoin: round; }
.lock path, .lock rect { fill: none; stroke: #e8f8ff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.lock rect { fill: rgba(2, 40, 90, .6); }
.lock .keyhole { fill: #e8f8ff; stroke: none; }
.portrait-glow { fill: none; stroke: #2aa0ff; stroke-width: 10; filter: blur(9px); }

@keyframes run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* ---------- Sektionen ---------- */
.section { padding: 104px 0; background: var(--bg-800); border-top: 1px solid var(--line); }
.section-alt {
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(5, 82, 154, .28), transparent 70%),
    var(--bg-700);
}

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head h2, .about h2, .contact h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3.4vw, 2.65rem); line-height: 1.14; font-weight: 800; letter-spacing: -.015em;
}
.section-head p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }

/* Karten */
.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(8, 70, 140, .38), rgba(3, 30, 64, .5));
  border: 1px solid var(--line);
}
.card h3 { margin-top: 22px; font-size: 1.22rem; font-weight: 700; line-height: 1.25; }
.card p { margin-top: 10px; color: var(--muted); font-size: .98rem; }

.icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: rgba(2, 138, 255, .16);
  border: 1px solid rgba(111, 211, 255, .4);
  box-shadow: 0 0 22px rgba(2, 138, 255, .35);
}
.icon svg {
  width: 28px; height: 28px; fill: none; stroke: var(--ice); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Zeitleiste */
.timeline { margin-top: 64px; }
.timeline ol {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  position: relative; padding-top: 34px;
}
.timeline ol::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 70%, rgba(2, 138, 255, .15));
  box-shadow: 0 0 12px rgba(2, 138, 255, .9);
}
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: -34px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(2, 138, 255, .35), 0 0 16px rgba(111, 211, 255, 1);
}
.year { display: block; font-size: 1.65rem; font-weight: 800; letter-spacing: -.01em; }
.timeline li p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.source { margin-top: 30px; font-size: .82rem; color: #7f9cc0; }
.source a { color: inherit; text-underline-offset: 3px; }
.source a:hover { color: var(--ice); }

/* Vorgehen */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps li {
  position: relative; padding: 28px 24px 30px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(3, 30, 64, .2), rgba(8, 70, 140, .3));
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -23px; width: 22px; height: 2px;
  background: var(--cyan); box-shadow: 0 0 10px var(--blue);
}
.num {
  display: block; font-size: 2.7rem; line-height: 1; font-weight: 800; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px var(--cyan);
  filter: drop-shadow(0 0 10px rgba(2, 138, 255, .8));
}
.steps h3 { margin-top: 20px; font-size: 1.17rem; font-weight: 700; line-height: 1.25; }
.steps p { margin-top: 10px; color: var(--muted); font-size: .96rem; }

/* Über mich */
.about { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: center; }
.about-photo { position: relative; justify-self: center; }
.about-photo::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed rgba(111, 211, 255, .45);
}
.about-photo img {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover;
  border: 5px solid #f4fbff;
  box-shadow: 0 0 0 1px rgba(2, 138, 255, .6), 0 0 46px rgba(2, 138, 255, .7);
}
.role { margin-top: 8px; color: var(--cyan); font-weight: 600; }
blockquote {
  margin: 26px 0; padding-left: 22px; border-left: 3px solid var(--cyan);
  font-size: clamp(1.2rem, 2.1vw, 1.5rem); line-height: 1.35; font-weight: 600;
}
.about-copy > p:not(.eyebrow):not(.role) { color: var(--muted); max-width: 44em; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.facts li {
  padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ice);
  background: rgba(2, 138, 255, .14); border: 1px solid rgba(111, 211, 255, .4);
}

/* sichtbar markierte Platzhalter im Entwurf */
.ph {
  padding: 2px 8px; border-radius: 7px;
  border: 1px dashed rgba(111, 211, 255, .6);
  background: rgba(111, 211, 255, .07);
  color: var(--cyan); font-weight: 500;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Kontakt */
.contact {
  text-align: center;
  background:
    radial-gradient(80% 90% at 50% 120%, rgba(2, 138, 255, .7) 0%, rgba(2, 100, 210, .25) 45%, transparent 75%),
    var(--bg-800);
}
.contact-inner { max-width: 720px; }
.contact p:not(.eyebrow) { margin-top: 18px; color: var(--ice); font-size: 1.1rem; }
.contact .actions { justify-content: center; margin-top: 34px; }

/* Footer */
.footer { background: var(--bg-900); border-top: 1px solid var(--line); padding: 26px 0; font-size: .88rem; color: #7f9cc0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* Rechtliche Seiten (Impressum, Datenschutz) */
.legal-page { display: flex; flex-direction: column; min-height: 100vh; }
.legal-page .footer { margin-top: auto; }
.back { font-size: .94rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.back:hover { color: #fff; }
.legal {
  padding: 72px 0 96px;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(5, 82, 154, .3), transparent 70%),
    var(--bg-800);
}
.legal-wrap { max-width: 760px; }
.legal h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; font-weight: 800; letter-spacing: -.015em;
}
.legal .intro { margin-top: 20px; font-size: 1.08rem; color: var(--ice); }
.legal h2 {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 1.15rem; font-weight: 700; color: #fff;
}
.legal p, .legal li { color: var(--muted); }
.legal h2 + p, .legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.3em; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--cyan); text-underline-offset: 3px; }
.legal .stand { margin-top: 44px; font-size: .88rem; color: #7f9cc0; }
.footer a[aria-current="page"] { color: var(--ice); }

/* Einblenden beim Scrollen (nur mit JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(3n+2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3n+3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 28px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { order: -1; width: min(100%, 380px); }
  .hero-copy { text-align: center; }
  .rule { margin-inline: auto; }
  .lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .dots { width: 70%; }
  .cards-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:not(:last-child)::after { display: none; }
  .timeline ol { grid-template-columns: repeat(2, 1fr); row-gap: 54px; }
  .timeline ol::before { display: none; }
  .timeline li::before { top: -30px; }
  .about { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .about blockquote { text-align: left; }
  .facts { justify-content: center; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .nav-toggle { display: block; }
  #menu {
    position: absolute; left: 0; right: 0; top: 68px;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px;
    background: var(--bg-900); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 10, 26, .6);
  }
  #menu.open { display: flex; }
  #menu a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  #menu .nav-cta { margin-top: 16px; text-align: center; border-bottom: 1px solid rgba(111, 211, 255, .5); }
  .cards-3, .steps { grid-template-columns: 1fr; }
  .timeline ol { grid-template-columns: 1fr; row-gap: 26px; padding: 0 0 0 30px; }
  .timeline ol::before { display: block; left: 7px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
  .timeline li::before { left: -30px; top: 8px; }
  .actions .btn { flex: 1 1 100%; }
  .hero-art figcaption span { display: block; }
  .hero-art figcaption span + span::before { content: none; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { display: none; }
  .ring, .nucleus { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
