/*
 * Gemeinsame Stile der öffentlichen Seiten: Startseite, Rechtsseiten,
 * Anmeldung/Registrierung, Fehlerseiten. Ohne Bootstrap und ohne externe
 * Schriften — vor der Anmeldung lädt keine Seite etwas von Dritten.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #533afd; --primary-deep: #4434d4; --primary-press: #2e2b8c; --primary-soft: #665efd;
    --primary-bg: #e6e3ff; --navy: #1c1e54; --ink: #0d253d; --ink-secondary: #273951; --ink-mute: #5b6b82;
    --canvas: #ffffff; --canvas-soft: #f6f9fc; --hairline: #e3e8ee;
}
html { scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
       backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 32px; height: 32px; background: var(--primary); border-radius: 8px;
             display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 18px; height: 18px; }
.logo-text { font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-mute); font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn { font: inherit; font-size: 15px; padding: 9px 20px; border-radius: 9999px; cursor: pointer;
       text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
       white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn-ghost { color: var(--ink-mute); padding: 8px 12px; }
.btn-ghost:hover { color: var(--ink); }
.btn-primary { background: var(--primary); color: #fff; border: none; }
.btn-primary:hover { background: var(--primary-deep); }
.btn-primary:active { background: var(--primary-press); }
.btn-secondary { background: var(--canvas); color: var(--primary); border: 1.5px solid var(--primary); }
.btn-secondary:hover { background: #f0edff; }
.btn-lg { font-size: 16px; padding: 12px 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 80px 0 0; }
.hero-mesh { position: absolute; inset: 0; background:
    radial-gradient(ellipse 900px 600px at 70% -10%, rgba(83,58,253,.18) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 15% 30%, rgba(245,166,35,.14) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 60%, rgba(234,34,97,.10) 0%, transparent 60%),
    radial-gradient(ellipse 800px 400px at 40% 80%, rgba(249,107,238,.10) 0%, transparent 60%),
    var(--canvas-soft); }
.hero-mesh::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--canvas) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 780px; margin: 0 auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-bg); color: var(--primary-deep);
        font-size: 12px; font-weight: 600; letter-spacing: .5px; padding: 5px 14px; border-radius: 9999px;
        margin-bottom: 28px; text-transform: uppercase; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: puls 2s infinite; }
@keyframes puls { 50% { opacity: .4; } }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 300; line-height: 1.06; letter-spacing: -1.4px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--primary), var(--primary-soft));
              -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 17px; line-height: 1.6; color: var(--ink-mute); max-width: 600px; margin: 0 auto 36px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--ink-mute); margin: 14px 0 60px; }
/* H1 aus Etikett und Claim: das Etikett behält seine Optik, der Claim die der H1. */
/* Block statt inline: sonst gibt die H1-Schriftgröße dem Etikett eine 56px hohe Zeile. */
.hero h1 .pill { display: flex; width: fit-content; margin: 0 auto 28px; line-height: normal; letter-spacing: .5px; }
.hero h1 .h1-claim { display: block; }

/* Häufige Fragen: <details> ohne JavaScript */
.faq { max-width: 820px; margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 12px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 8px 32px rgba(0,55,112,.08); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-size: 16px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
                      border-right: 1.75px solid var(--primary); border-bottom: 1.75px solid var(--primary); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
.faq details p { color: var(--ink-mute); font-size: 15px; line-height: 1.65; padding-bottom: 20px; }

/* Vorschau der App */
.mockup-wrap { position: relative; z-index: 2; padding: 0 24px; max-width: 1100px; margin: 0 auto; }
.mockup { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 12px 12px 0 0; overflow: hidden;
          box-shadow: 0 2px 8px rgba(0,55,112,.06), 0 24px 64px rgba(0,55,112,.12), 0 48px 96px rgba(0,55,112,.08); }
.mockup-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--canvas-soft); border-bottom: 1px solid var(--hairline); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.mockup-url { flex: 1; max-width: 260px; margin: 0 auto; background: var(--canvas); border: 1px solid var(--hairline);
              border-radius: 6px; padding: 4px 12px; font-size: 12px; color: var(--ink-mute); text-align: center; }
.mockup-body { display: grid; grid-template-columns: 220px 1fr; min-height: 380px; }
.mockup-side { background: var(--canvas-soft); border-right: 1px solid var(--hairline); padding: 20px 16px; }
.mockup-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--ink-mute); margin-bottom: 2px; }
.mockup-item i { width: 16px; height: 16px; border-radius: 4px; background: var(--primary-bg); flex-shrink: 0; }
.mockup-item.aktiv { background: var(--canvas); color: var(--ink); font-weight: 500; box-shadow: 0 1px 3px rgba(0,55,112,.06); }
.mockup-item.aktiv i { background: var(--primary); }
.mockup-main { padding: 24px; overflow: hidden; }
.mockup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mockup-title { font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.mockup-btn { background: var(--primary); color: #fff; padding: 6px 14px; border-radius: 9999px; font-size: 12px; font-weight: 500; }
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.kachel { background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: 8px; padding: 14px 16px; }
.kachel-label { font-size: 11px; color: var(--ink-mute); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.kachel-wert { font-size: 22px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kachel-wert.gruen { color: #16a34a; }
.kachel-info { font-size: 11px; color: #16a34a; margin-top: 2px; }
.tabelle { border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; }
.zeile { display: grid; grid-template-columns: 2fr 1fr 1fr 90px; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--hairline); font-size: 13px; align-items: center; }
.zeile:last-child { border-bottom: none; }
.zeile.kopf { background: var(--canvas-soft); font-size: 11px; font-weight: 600; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .5px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 500; }
.badge.bezahlt { background: #dcfce7; color: #15803d; }
.badge.faellig { background: #fef3c7; color: #b45309; }
.badge.offen { background: var(--primary-bg); color: var(--primary-deep); }

/* Zielgruppen */
.zielgruppen { padding: 48px 0; border-bottom: 1px solid var(--hairline); }
.zielgruppen-label { text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; }
.zielgruppen-liste { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.zielgruppen-liste span { font-size: 15px; font-weight: 600; color: var(--ink-mute); opacity: .6; }

/* Abschnitte */
.section { padding: 96px 0; }
.soft { background: var(--canvas-soft); }
.label { display: inline-flex; background: var(--primary-bg); color: var(--primary-deep); font-size: 11px; font-weight: 600;
         letter-spacing: 1px; padding: 4px 12px; border-radius: 9999px; text-transform: uppercase; margin-bottom: 20px; }
.headline { font-size: clamp(28px, 3.5vw, 40px); font-weight: 300; line-height: 1.1; letter-spacing: -.8px; margin-bottom: 16px; }
.sub { font-size: 16px; line-height: 1.6; color: var(--ink-mute); max-width: 560px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 56px; }
.feature { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 12px; padding: 32px; transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: 0 8px 32px rgba(0,55,112,.08); transform: translateY(-2px); }
.icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.icon svg { width: 22px; height: 22px; }
.icon.blau { background: #ede9fe; } .icon.gruen { background: #dcfce7; } .icon.orange { background: #fef3c7; } .icon.rot { background: #fee2e2; }
.feature h3 { font-size: 18px; font-weight: 500; letter-spacing: -.3px; margin-bottom: 10px; }
.feature p { font-size: 14px; line-height: 1.6; color: var(--ink-mute); }

.schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 56px; position: relative; }
.schritte::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px; background: var(--hairline); }
.schritt { text-align: center; padding: 0 24px; position: relative; }
.nummer { width: 56px; height: 56px; border-radius: 50%; background: var(--canvas); border: 1.5px solid var(--hairline);
          display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 500; color: var(--primary); margin: 0 auto 20px; }
.schritt:first-child .nummer { background: var(--primary); color: #fff; border-color: var(--primary); }
.schritt h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.schritt p { font-size: 13px; color: var(--ink-mute); line-height: 1.6; }

.module { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 56px; }
.modul { display: flex; gap: 14px; padding: 16px 20px; border-radius: 10px; }
.modul:hover { background: var(--canvas); }
.haken { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.haken svg { width: 11px; height: 11px; }
.modul h3 { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.modul p { font-size: 13px; color: var(--ink-mute); line-height: 1.5; }
.uebersicht { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 12px; padding: 28px; box-shadow: 0 8px 32px rgba(0,55,112,.08); }
.uebersicht h3 { font-size: 14px; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.posten { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: 13px; }
.posten:last-child { border-bottom: none; font-weight: 600; }
.posten span:nth-child(2) { margin-left: auto; font-variant-numeric: tabular-nums; }

.zahlen { background: var(--navy); padding: 80px 0; }
.zahlen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px; text-align: center; }
.zahl { font-size: clamp(34px, 4vw, 48px); font-weight: 300; color: #fff; letter-spacing: -1.2px; display: block; margin-bottom: 6px; }
.zahl span { color: #a9a4ff; }
.zahlen p { font-size: 14px; color: rgba(255,255,255,.65); }

.preise { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 56px; align-items: start; }
.preis { border: 1px solid var(--hairline); border-radius: 12px; padding: 32px; }
.preis.empfohlen { background: var(--navy); border-color: var(--navy); color: #fff; }
.empfehlung { display: inline-block; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 10px;
              border-radius: 9999px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.tarif { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-mute); margin-bottom: 8px; }
.betrag { font-size: 42px; font-weight: 300; letter-spacing: -1px; line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.betrag sup { font-size: 20px; letter-spacing: 0; }
.zeitraum { font-size: 13px; color: var(--ink-mute); margin-bottom: 24px; }
.preis-text { font-size: 14px; line-height: 1.5; color: var(--ink-mute); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--hairline); }
.preis.empfohlen .tarif, .preis.empfohlen .zeitraum { color: rgba(255,255,255,.6); }
.preis.empfohlen .preis-text { color: rgba(255,255,255,.72); border-color: rgba(255,255,255,.14); }
.punkte { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.punkte li { display: flex; gap: 10px; font-size: 14px; }
.punkte li::before { content: ''; width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; background: center/contain no-repeat
    url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7.5' fill='%23dcfce7' stroke='%2316a34a' stroke-width='.5'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%2316a34a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.preis.empfohlen .punkte li { color: rgba(255,255,255,.9); }
.preis.empfohlen .punkte li::before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7.5' fill='rgba(185,185,249,0.2)' stroke='%23b9b9f9' stroke-width='.5'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%23b9b9f9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.preis .btn { width: 100%; }
.preis-hinweis { text-align: center; margin-top: 28px; color: var(--ink-mute); font-size: 14px; line-height: 1.6; }

.cta { background: var(--navy); padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 800px 400px at 50% 50%, rgba(83,58,253,.25) 0%, transparent 70%); }
.cta .container { position: relative; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 300; color: #fff; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.15; }
.cta p { font-size: 16px; color: rgba(255,255,255,.65); margin: 0 auto 36px; max-width: 500px; }
.btn-hell { background: #fff; color: var(--navy); font-weight: 500; }
.btn-hell:hover { background: rgba(255,255,255,.9); }
.btn-rand { color: rgba(255,255,255,.8); border: 1.5px solid rgba(255,255,255,.3); }
.btn-rand:hover { color: #fff; border-color: rgba(255,255,255,.55); }

.footer { border-top: 1px solid var(--hairline); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 260px 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-marke p { font-size: 13px; color: var(--ink-mute); line-height: 1.6; margin-top: 12px; }
.footer h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { text-decoration: none; font-size: 13px; color: var(--ink-mute); }
.footer ul a:hover { color: var(--ink); }
.footer-unten { padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 12px; color: var(--ink-mute); }

@media (max-width: 1024px) {
    .module { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding-top: 56px; }
    .hero h1 { font-size: 32px; letter-spacing: -.8px; }
    .schritte::before { display: none; }
    .schritte { gap: 32px; }
    .mockup-body { grid-template-columns: 1fr; }
    .mockup-side { display: none; }
    .kacheln { grid-template-columns: 1fr 1fr; }
    .zeile { grid-template-columns: 2fr 1fr 90px; }
    .zeile > :nth-child(3) { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .section { padding: 64px 0; }
    .zielgruppen-liste { gap: 24px; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .nav-actions .btn-ghost { display: none; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .kacheln { grid-template-columns: 1fr; }
}

/* ─── Unterseiten (Impressum, Datenschutz, AGB, API-Doku) ─── */
.unterseite { position: relative; overflow: hidden; padding: 56px 0 88px; }
.unterseite-mesh { bottom: auto; height: 420px; }
.unterseite > .container { position: relative; z-index: 2; }

.text, .doku { max-width: 760px; }
.doku { max-width: 900px; }
.text h1, .doku h1, .text .h2, .doku .h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 300; letter-spacing: -.8px; line-height: 1.15; margin-bottom: 12px; }
.text h2, .doku h2 { font-size: 20px; font-weight: 600; letter-spacing: -.3px; margin: 40px 0 10px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.text h1 + h2, .text .meta + h2 { border-top: none; padding-top: 0; }
.text h3, .doku h3 { font-size: 16px; font-weight: 600; margin: 28px 0 8px; }
.text p, .text li, .doku p, .doku li, .doku td, .doku th { font-size: 15px; line-height: 1.7; color: var(--ink-secondary); }
.text p, .doku p { margin-bottom: 12px; }
.text ul, .text ol, .doku ul, .doku ol { padding-left: 22px; margin-bottom: 12px; }
.text a, .doku a { color: var(--primary); }
.meta { font-size: 13px; color: var(--ink-mute) !important; margin-bottom: 24px; }
.doku code, .text code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; background: var(--canvas-soft);
                         border: 1px solid var(--hairline); border-radius: 4px; padding: 1px 5px; }
.doku pre { background: var(--navy); color: #e2e8f0; padding: 14px 16px; border-radius: 10px; font-size: 13px; overflow-x: auto; margin: 8px 0 16px; }
.doku pre code { background: none; border: 0; padding: 0; color: inherit; }
.doku h2 { border-top-color: var(--hairline) !important; }
.doku nav a { color: var(--primary); }

.table-responsive { overflow-x: auto; margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; border: 1px solid var(--hairline); border-radius: 8px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.table th { background: var(--canvas-soft); font-weight: 600; color: var(--ink); }
.table-sm th, .table-sm td { padding: 6px 10px; }

/* Hilfsklassen, wie sie die Rechtsseiten und Formulare verwenden */
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; }
.me-3 { margin-right: 16px; } .p-0 { padding: 0 !important; } .p-3 { padding: 16px; } .pt-3 { padding-top: 16px; } .pb-2 { padding-bottom: 8px; } .ps-3 { padding-left: 16px; }
.small { font-size: 13px; } .text-muted { color: var(--ink-mute) !important; } .text-center { text-align: center; } .text-end { text-align: right; }
.d-block { display: block; } .d-inline { display: inline; } .d-flex { display: flex; } .align-items-center { align-items: center; } .gap-2 { gap: 8px; }
.w-100 { width: 100%; } .fw-semibold { font-weight: 600; } .border { border: 1px solid var(--hairline); } .rounded { border-radius: 10px; }

/* ─── Anmeldung, Registrierung, Tarifwahl ─── */
.zugang { min-height: 100vh; position: relative; overflow-x: hidden; background: var(--canvas-soft); }
.zugang .hero-mesh { position: fixed; }
.zugang .hero-mesh::after { display: none; }
.zugang-rahmen { position: relative; z-index: 2; max-width: 460px; margin: 0 auto; padding: 40px 16px 48px; }
.zugang-rahmen.breit { max-width: 620px; }
.zugang-logo { justify-content: center; margin-bottom: 28px; }
.zugang-karte { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 16px; padding: 32px;
                box-shadow: 0 2px 8px rgba(0,55,112,.05), 0 24px 64px rgba(0,55,112,.10); }
.zugang-karte h1 { font-size: 26px; font-weight: 400; letter-spacing: -.6px; line-height: 1.2; margin-bottom: 6px; }
.zugang-karte .untertitel { font-size: 14px; color: var(--ink-mute); margin-bottom: 24px; }
.zugang-karte p { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.zugang-karte a, .zugang-unten a { color: var(--primary); }
.zugang-unten { text-align: center; font-size: 14px; color: var(--ink-mute); margin-top: 20px; }
.zugang-rechtliches { text-align: center; font-size: 13px; margin-top: 16px; }
.zugang-rechtliches a { color: var(--ink-mute); margin: 0 8px; text-decoration: none; }
.zugang-rechtliches a:hover { color: var(--ink); }

.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-control { display: block; width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--canvas);
                border: 1px solid #cdd6e1; border-radius: 10px; padding: 10px 14px; transition: border-color .15s, box-shadow .15s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(83,58,253,.18); }
.form-control[readonly] { background: var(--canvas-soft); color: var(--ink-mute); }
.form-control.is-invalid { border-color: #dc2626; }
.invalid-feedback { font-size: 13px; color: #b91c1c; margin-top: 4px; }
.form-text { font-size: 13px; color: var(--ink-mute); margin-top: 6px; line-height: 1.5; }
.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check-input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); cursor: pointer; }
.form-check-label { font-size: 14px; line-height: 1.5; cursor: pointer; }

.btn-warning { background: var(--primary); color: #fff; border: none; font-size: 15px; padding: 11px 20px; }
.btn-warning:hover { background: var(--primary-deep); }
.btn-warning:active { background: var(--primary-press); }
.btn-link { background: none; border: none; color: var(--ink-mute); text-decoration: underline; padding: 8px; }
.btn-link:hover { color: var(--ink); }
.btn-sm { font-size: 13px; padding: 4px 10px; }

.alert { border-radius: 10px; padding: 12px 16px; font-size: 14px; line-height: 1.5; margin-bottom: 16px; border: 1px solid transparent; }
.alert ul { margin: 0; }
.alert-success { background: #ecfdf3; border-color: #bbf7d0; color: #166534; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
[hidden] { display: none !important; }

/* Anmeldung: „oder" zwischen Passwort und Passkey, Ausweg mit Wiederherstellungscode */
.trenner { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--ink-mute); font-size: 13px; }
.trenner::before, .trenner::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }
.ausweg { margin-top: 20px; border-top: 1px solid var(--hairline); padding-top: 14px; }
.ausweg summary { cursor: pointer; font-size: 14px; color: var(--ink-mute); }
.ausweg[open] summary { margin-bottom: 14px; }
.code-feld { font-size: 22px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }

.spinner-border { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent;
                  border-radius: 50%; animation: drehen .75s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* Tarifauswahl als Karten (Registrierung und Erstkauf) */
.tarifwahl { display: grid; gap: 10px; }
.tarifkarte { position: relative; display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--hairline);
              border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.tarifkarte:hover { border-color: #b9b3ff; }
.tarifkarte:has(input:checked) { border-color: var(--primary); background: #f7f5ff; box-shadow: 0 0 0 3px rgba(83,58,253,.12); }
.tarifkarte input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--primary); }
.tarifkarte-text { flex: 1; min-width: 0; }
.tarifkarte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tarifkarte-name { font-weight: 600; font-size: 15px; }
.tarifkarte-preis { font-size: 18px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tarifkarte-preis small { font-size: 12px; color: var(--ink-mute); font-weight: 400; }
.tarifkarte-beschreibung { display: block; font-size: 13px; color: var(--ink-mute); line-height: 1.5; margin-top: 2px; }
.tarifkarte-empfohlen { display: inline-block; background: var(--primary); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .5px;
                        text-transform: uppercase; padding: 2px 8px; border-radius: 9999px; margin-left: 6px; vertical-align: 2px; }
.zugang-karte .tarifhinweis { font-size: 12px; color: var(--ink-mute); margin-top: 8px; line-height: 1.5; }

/* ─── Fehlerseiten ─── */
.fehler-rahmen { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; padding: 72px 16px; text-align: center; }
.fehler-code { font-size: clamp(64px, 12vw, 112px); font-weight: 200; letter-spacing: -4px; line-height: 1;
               background: linear-gradient(135deg, var(--primary), var(--primary-soft)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fehler-rahmen h1 { font-size: 26px; font-weight: 400; letter-spacing: -.5px; margin: 16px 0 10px; }
.fehler-rahmen p { font-size: 16px; line-height: 1.6; color: var(--ink-mute); margin-bottom: 28px; }

@media (max-width: 480px) {
    .zugang-karte { padding: 24px 20px; }
    .tarifkarte-kopf { flex-direction: column; gap: 2px; }
}

/* ─── Ratgeber ─── */
.brotkrumen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-mute); margin-bottom: 20px; }
.brotkrumen a { color: var(--ink-mute); text-decoration: none; }
.brotkrumen a:hover { color: var(--primary); }
.brotkrumen [aria-current] { color: var(--ink-secondary); }
.ratgeber .table td.num, .ratgeber .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inhaltsverzeichnis { background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: 12px; padding: 16px 20px; margin: 24px 0 8px; }
.inhaltsverzeichnis strong { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-mute); }
.inhaltsverzeichnis ol { margin: 8px 0 0; }
.inhaltsverzeichnis li { font-size: 14px !important; line-height: 1.8 !important; }
.beispiel { border: 1px solid var(--hairline); border-left: 4px solid var(--primary); border-radius: 12px; background: var(--canvas);
            padding: 18px 20px 6px; margin: 16px 0 24px; box-shadow: 0 8px 32px rgba(0,55,112,.06); }
.beispiel .table { margin-bottom: 8px; }
.beispiel-quelle { font-size: 13px !important; color: var(--ink-mute) !important; }
.ratgeber-faq { margin-top: 12px; }
.ratgeber-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 40px 0 16px;
                padding: 20px 22px; border-radius: 12px; background: #f7f5ff; border: 1px solid #ddd8ff; }
.ratgeber-cta p { margin: 0 !important; flex: 1 1 320px; }
.text .btn-primary, .text .btn-primary:hover { color: #fff; text-decoration: none; }
.ratgeber-hinweis { font-size: 13px !important; color: var(--ink-mute) !important; line-height: 1.6 !important; }
.ratgeber-hinweis-breit { max-width: 760px; margin-top: 32px; }
.ratgeber-quellen { margin-top: 32px; }
.ratgeber-quellen h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-mute); margin: 20px 0 8px; }
.ratgeber-quellen ul { list-style: none; padding-left: 0 !important; }
.ratgeber-quellen li { padding: 5px 0; font-size: 14px !important; line-height: 1.5 !important; }
.ratgeber-quellen a { overflow-wrap: anywhere; }
.ratgeber-quellen .extern { color: var(--ink-mute); font-size: 12px; }
.ratgeber-quellen .fundstelle { display: block; font-size: 13px !important; color: var(--ink-mute) !important; }
.ratgeber-weitere { list-style: none; padding-left: 0 !important; }
.ratgeber-weitere li { padding: 4px 0; }
.ratgeber-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 32px; }
.ratgeber-karte { display: flex; flex-direction: column; gap: 8px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: 12px;
                  padding: 24px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.ratgeber-karte:hover { box-shadow: 0 8px 32px rgba(0,55,112,.08); transform: translateY(-2px); }
.ratgeber .table tr.hervorgehoben td { background: var(--primary-bg); font-weight: 600; }
.ratgeber-gruppe { margin-top: 48px; }
.ratgeber-gruppe-titel { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-mute);
                         padding-bottom: 12px; border-bottom: 1px solid var(--hairline); margin: 0; }
.ratgeber-gruppe .ratgeber-liste { margin-top: 20px; }
.ratgeber-karte h2, .ratgeber-karte h3 { font-size: 18px; font-weight: 500; letter-spacing: -.3px; line-height: 1.3; margin: 0; }
.ratgeber-karte p { font-size: 14px; line-height: 1.6; color: var(--ink-mute); margin: 0; flex: 1; }
.ratgeber-karte-recht { font-size: 12px; font-weight: 600; letter-spacing: .2px; color: var(--primary-deep); }
.ratgeber-karte-mehr { font-size: 14px; color: var(--primary); font-weight: 500; }
@media (max-width: 480px) {
    .ratgeber-cta .btn { width: 100%; }
    .ratgeber-liste { grid-template-columns: 1fr; }
}
