/* Öffentliche Website (Startseite, Impressum, Datenschutz) – Design wie App und Admin-Portal.
   Keine externen Schriften/CDNs: alles wird von der eigenen Domain geladen (DSGVO). */
:root {
  --bg: #0e0f13;
  --surface: #181a20;
  --surface-2: #242730;
  --surface-3: #2e323c;
  --primary: #2f7bff;
  --primary-dim: #173a80;
  --text: #ecedef;
  --muted: #a3a7b1;
  --outline: rgba(255, 255, 255, 0.12);
  --success: #3fb950;
  --warning: #f9a825;
  --error: #e5484d;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 15, 19, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--outline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 720px) { .site-nav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid var(--outline);
  background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.12); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; filter: none; }
.btn small { font-weight: 400; opacity: .85; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(47, 123, 255, 0.28), transparent 65%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--primary); }
.hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-icon { justify-self: center; text-align: center; }
.hero-icon img {
  width: 260px; height: 260px; border-radius: 56px;
  box-shadow: 0 20px 60px rgba(47, 123, 255, 0.35), 0 0 0 1px var(--outline);
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--outline); color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .actions, .badges { justify-content: center; }
  .hero-icon { order: -1; }
  .hero-icon img { width: 180px; height: 180px; border-radius: 40px; }
}

/* ---------- Abschnitte ---------- */
section { padding: 56px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 8px; letter-spacing: -0.01em; }
section .intro { color: var(--muted); margin: 0 0 32px; max-width: 720px; }
.alt { background: var(--surface); border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius);
  padding: 22px;
}
.alt .card { background: var(--surface-2); }
.card .icon { font-size: 28px; line-height: 1; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Hervorgehobener Datenschutz-Block */
.highlight {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: linear-gradient(135deg, rgba(47, 123, 255, 0.16), rgba(63, 185, 80, 0.10));
  border: 1px solid rgba(47, 123, 255, 0.4); border-radius: var(--radius); padding: 28px;
}
.highlight .icon { font-size: 40px; }
.highlight h3 { margin: 0 0 8px; font-size: 22px; }
.highlight ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.highlight li { margin: 4px 0; }
.highlight li strong { color: var(--text); }
@media (max-width: 600px) { .highlight { grid-template-columns: 1fr; } }

/* Schritte */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { position: relative; padding: 22px 22px 22px 72px; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.alt details { background: var(--surface-2); }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details p { margin: 0 0 14px; color: var(--muted); }

/* Hinweis ab 18 */
.notice { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 14px;
  background: rgba(229, 72, 77, 0.12); border: 1px solid rgba(229, 72, 77, 0.45); }
.notice strong { font-size: 22px; color: var(--error); }

/* ---------- Rechtstexte ---------- */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: 34px; margin: 0 0 24px; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal h3 { font-size: 17px; margin: 24px 0 6px; }
.legal p, .legal li { color: #d4d6db; }
.legal address { font-style: normal; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--outline); }
.legal th { color: var(--muted); font-weight: 600; }
.legal .stand { color: var(--muted); font-size: 14px; }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--outline); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a, .site-footer button.linklike { color: var(--muted); text-decoration: none; }
.site-footer a:hover, .site-footer button.linklike:hover { color: var(--text); }
button.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* ---------- Cookie-/Einwilligungsbanner ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 760px; margin: 0 auto;
  background: var(--surface-2); border: 1px solid var(--outline); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); padding: 22px;
}
.consent h2 { font-size: 19px; margin: 0 0 8px; }
.consent p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.consent .options { display: grid; gap: 8px; margin: 12px 0 16px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--outline);
  border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.consent label small { display: block; color: var(--muted); }
.consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.consent .buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 520px) { .consent .buttons .btn { flex: 1 1 100%; } }
