/* Plus Jakarta Sans, lokal eingebunden (OFL, siehe fonts/OFL.txt) – keine Verbindung zu Google */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-800-italic.woff2") format("woff2");
}

/* Farben & Schrift laut Corporate Design (corporate-design/farben/fw24-farben.css) */
:root {
  --navy-900: #0A1A34;
  --navy-800: #0E2447;   /* CD Navy */
  --navy-700: #183462;
  --blue-500: #1E63D6;   /* CD Speed Blue */
  --blue-400: #4A86E8;
  --blue-100: #E4EDFB;
  --orange: #FF7A1A;     /* CD Boost Orange – nur Akzent, nie Text auf Weiß */
  --ink: #0E2447;
  --muted: #4A5D7A;      /* CD Slate */
  --line: #DBE3EE;       /* CD Line */
  --bg: #F5F8FC;         /* CD Light */
  --card: #ffffff;
  --ok: #1f8a5b;
  --err: #c0392b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 29, 56, .06), 0 8px 24px rgba(11, 29, 56, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6edf7;
    --muted: #9fb0c6;
    --line: #24395a;
    --bg: #0e1a2e;
    --card: #13233d;
    --blue-100: #17315c;
    --blue-500: #4A86E8;
    --blue-400: #7AA7F0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-500); }
a:hover { color: var(--blue-400); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.03em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header / Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(30, 99, 214, .38), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent);
  pointer-events: none;
}
.topbar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
}
.topbar .logo { width: 280px; height: auto; } /* Logo mit Claim, CD: mind. 200 px */
.topbar nav { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar nav a { color: #cfe0f5; text-decoration: none; font-size: .95rem; font-weight: 700; }
.topbar nav a:hover { color: #fff; }

.hero-body {
  position: relative;
  padding: 72px 0 96px;
  max-width: 720px;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #B9C8E2;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-style: italic; letter-spacing: -.045em; margin-bottom: 20px; }
.hero h1 span { color: var(--orange); } /* Orange auf Navy: gut lesbar laut CD */
.hero p.lead { font-size: 1.15rem; color: #cfe0f5; max-width: 600px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: .98rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #1E63D6; color: #fff; } /* fest: Kontrast 5,5:1 laut CD */
.btn-primary:hover { background: #1853b8; color: #fff; }
.btn-accent { background: var(--orange); color: var(--navy-800); }
.btn-accent:hover { background: #ff8f3f; color: var(--navy-800); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Sections */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-500);
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags span {
  font-size: .85rem; padding: 5px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
}

/* Notice for existing customers */
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.notice .icon { color: var(--orange); width: 28px; height: 28px; margin-top: 2px; }
.notice h2 { font-size: 1.35rem; }
.notice p:last-child { margin-bottom: 0; }

/* About */
.about { display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.facts { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.fact strong { display: block; font-size: 1.7rem; font-weight: 800; font-style: italic; letter-spacing: -.03em; color: var(--blue-500); line-height: 1.1; }
.fact span { color: var(--muted); font-size: .92rem; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #fff; }
.contact .section-head p { color: #b9cde6; }
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1.4fr; }
.contact-info a { color: #fff; }
.contact-info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-info li { display: flex; gap: 12px; align-items: flex-start; color: #cfe0f5; }
.contact-info svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--orange); }

form.card { color: var(--ink); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
label { font-weight: 700; font-size: .92rem; }
input, select, textarea {
  font: inherit; color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; width: 100%;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-400); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 20px; }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 14px; font-size: .95rem; min-height: 1.5em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* Footer */
footer {
  background: var(--navy-900); color: #8ea5c4; font-size: .9rem; padding: 28px 0;
  border-top: 5px solid transparent;
  border-image: linear-gradient(90deg, var(--orange) 0 22%, var(--blue-500) 22% 100%) 1; /* Farbstreifen wie im CD */
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: #cfe0f5; text-decoration: none; margin-left: 18px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: #fff; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal-hero .hero-body { padding: 8px 0 24px; }

@media (max-width: 820px) {
  .about, .contact-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .topbar nav { display: none; }
  .topbar .logo { width: 220px; }
  section { padding: 60px 0; }
  .hero-body { padding: 40px 0 64px; }
  .notice { grid-template-columns: 1fr; }
}

/* Einwilligungs-Banner (assets/consent.js) */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 16px;
  pointer-events: none;
}
.consent[hidden] { display: none; }
.consent-inner {
  pointer-events: auto;
  max-width: 1080px; margin: 0 auto;
  display: flex; gap: 20px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--navy-800); color: #dbe6f5;
  border: 1px solid rgba(255,255,255,.12);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 12px 40px rgba(10, 26, 52, .35);
}
.consent-copy { flex: 1 1 480px; }
.consent h2 { font-size: 1.1rem; color: #fff; margin: 0 0 6px; }
.consent p { margin: 0; font-size: .92rem; line-height: 1.55; }
.consent a { color: #fff; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* Beide Buttons gleich gewichtet – Ablehnen ist so leicht wie Akzeptieren */
.btn-consent { background: #1E63D6; color: #fff; min-width: 140px; justify-content: center; } /* fest: Kontrast 5,5:1 auch im Dark Mode */
.btn-consent:hover { background: #1853b8; color: #fff; }
.btn-consent:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
body.has-consent { padding-bottom: 180px; }

.link-btn {
  background: none; border: 0; padding: 0; margin-left: 18px;
  font: inherit; color: #cfe0f5; cursor: pointer;
}
.link-btn:hover { color: #fff; }

@media (max-width: 820px) {
  .consent { padding: 10px; }
  .consent-actions { width: 100%; }
  .btn-consent { flex: 1 1 0; min-width: 0; }
  body.has-consent { padding-bottom: 300px; }
}
