/* ==========================================================
   Landing Page Cyberversicherung – Stylesheet
   Keine externen Schriften oder Dienste (DSGVO-freundlich).
   ========================================================== */

:root {
  --navy-950: #070f24;
  --navy-900: #0b1733;
  --navy-800: #12224a;
  --ink: #0f1a2e;
  --text: #2a3650;
  --muted: #5b6780;
  --line: #dfe5ee;
  --bg-alt: #f4f7fb;
  --white: #ffffff;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-strong: #0f766e;
  --accent-soft: #e6faf6;
  --accent-ink: #04211e;
  --danger: #b42318;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-strong); }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p  { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 15, 36, .94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small {
  font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #aeb9cf; margin-bottom: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 0; border-radius: 10px; padding: 14px 24px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(45, 212, 191, .8); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--accent-strong); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.btn-small { padding: 9px 16px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 88px;
  color: #c9d3e6;
  background:
    radial-gradient(1100px 560px at 90% -10%, rgba(45, 212, 191, .16), transparent 60%),
    radial-gradient(900px 520px at -10% 110%, rgba(59, 130, 246, .18), transparent 60%),
    var(--navy-950);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 25% 40%, #000 25%, transparent 72%);
          mask-image: radial-gradient(ellipse at 25% 40%, #000 25%, transparent 72%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(45, 212, 191, .2);
}
.lead { font-size: 1.15rem; max-width: 36em; }

/* Veranstaltungs-Box im Kopfbereich */
.event {
  display: flex; align-items: center; gap: 20px;
  max-width: 36em; margin: 28px 0 0; padding: 18px 20px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
}
.event-date {
  flex: none; width: 84px; padding: 10px 0 12px; border-radius: 12px;
  text-align: center; line-height: 1;
  background: var(--accent); color: var(--accent-ink);
}
.event-date .d { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.event-date .m { display: block; margin-top: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.event-facts { flex: 1; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.event-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8e9ab3; }
.event-facts dd { margin: 2px 0 0; font-size: .98rem; font-weight: 600; color: var(--white); }
.topics-title { margin: 28px 0 0; font-weight: 700; color: var(--white); }
.topics-title + .checks { margin-top: 12px; }

.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #e6ecf7; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }

/* ---------- Formular ---------- */
.form-card {
  background: var(--white); color: var(--text);
  border-radius: 18px; padding: 32px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .65);
  scroll-margin-top: 92px;
}
.form-card h2 { font-size: 1.5rem; margin-bottom: .3em; }
.form-card > p { color: var(--muted); font-size: .98rem; margin-bottom: 22px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.req { color: var(--accent-strong); }
.optional { font-weight: 400; color: var(--muted); }
.consent + .consent { margin-top: -6px; }

.field input,
.field select {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #f8fafc;
  border: 1.5px solid #cfd8e3; border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6780' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus,
.field select:focus { outline: none; border-color: var(--accent-strong); background-color: var(--white); box-shadow: 0 0 0 4px rgba(45, 212, 191, .25); }
.field input:user-invalid,
.field select:user-invalid { border-color: var(--danger); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.5; color: var(--muted); margin: 6px 0 18px; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-strong); cursor: pointer; }
.privacy-note { font-size: .88rem; line-height: 1.5; color: var(--muted); margin: 6px 0 18px; }

/* Honeypot gegen Spam-Bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-bottom: 14px; padding: 12px 14px; border-radius: 10px;
  background: #fef3f2; border: 1px solid #fecdca; color: var(--danger); font-size: .95rem;
}
.fineprint { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Abschnitte ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 10px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(15, 26, 46, .35); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong);
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }

.coverage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cover { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 28px; }
.cover ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cover li { position: relative; padding-left: 26px; font-size: .98rem; }
.cover li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent-strong); border-bottom: 2.5px solid var(--accent-strong);
  transform: rotate(-45deg);
}
.note { margin: 28px 0 0; max-width: 760px; color: var(--muted); font-size: .95rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { position: relative; padding-top: 66px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-900); color: var(--accent); font-weight: 800; font-size: 1.15rem;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 64px; right: -16px; height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(45, 212, 191, 0));
}
.steps p { color: var(--muted); margin: 0; }
.steps-cta { margin: 44px 0 0; }

.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 18px 44px 18px 0; font-weight: 650; font-size: 1.05rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--accent-strong); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 4px; border-radius: 4px; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

.cta-band {
  padding: 64px 0; color: #c9d3e6;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(45, 212, 191, .16), transparent 60%),
    var(--navy-900);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .25em; }
.cta-band p { margin: 0; font-size: 1.08rem; }
.cta-band .tel { color: var(--accent); font-weight: 700; white-space: nowrap; text-decoration: none; }
.cta-band .tel:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #8e9ab3; font-size: .9rem; padding: 26px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: #c9d3e6; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Unterseiten (Impressum, Datenschutz, Danke) ---------- */
.page { padding: 64px 0 88px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.page h2 { font-size: 1.3rem; margin-top: 2em; }
.page h3 { font-size: 1.05rem; margin-top: 1.5em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .3em; }
.page a { overflow-wrap: anywhere; }
.notice {
  margin: 24px 0; padding: 14px 18px; border-radius: 8px;
  background: var(--accent-soft); border-left: 4px solid var(--accent-strong); color: var(--ink);
}

.todo {
  margin-bottom: 32px; padding: 14px 16px; border-radius: 10px;
  background: #fff7e6; border: 1px solid #f5c26b; color: #7a4b00; font-size: .95rem;
}
mark.ph { background: #fff1c2; color: #6b4500; padding: 0 4px; border-radius: 4px; }

.thanks { padding: 96px 0 112px; text-align: center; }
.thanks .wrap { max-width: 640px; }
.thanks .badge {
  width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong);
}
.thanks .badge svg { width: 38px; height: 38px; }
.thanks p { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .coverage { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { padding: 0 0 0 68px; min-height: 48px; }
  .steps li:not(:last-child)::after { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 60px; }
  .brand { font-size: 1.05rem; }
  .brand svg { width: 26px; height: 26px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 18px; border-radius: 16px; }
  .event { flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px; }
  .event-facts { width: 100%; gap: 12px 16px; }
  .cta-band .btn { width: 100%; }
  .page { padding: 40px 0 64px; }
  .thanks { padding: 64px 0 80px; }
}

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