:root {
    --bg: #0b0f17;
    --card: #101726;
    --muted: #aab3c5;
    --text: #e7edf7;
    --brand: #3b82f6;
    --ok: #22c55e;
    --good: #f59e0b;
    --error: #ef4444;
    --ghost: #64748b;
    --ring: rgba(59,130,246,.35);
    --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(1200px 800px at 20% 0%, #111a2b 0%, #0b0f17 40%, #0b0f17 100%);
    font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.container { max-width: 1120px; margin: 0 auto; padding: 40px 20px 72px; }

.hero { text-align: center; margin: 16px 0 28px; }
.badge { display: inline-block; font-size: 12px; color: #c7d2fe; background: rgba(99,102,241,.15); border: 1px solid rgba(99,102,241,.4); padding: 4px 10px; border-radius: 999px; letter-spacing: .3px; margin-bottom: 8px; }
h1 { font-size: 44px; margin: 8px 0 8px; }
.lead { color: var(--muted); max-width: 760px; margin: 0 auto; }

.card { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 24px; margin: 20px 0; backdrop-filter: blur(8px); }

.label { display: block; margin-bottom: 10px; color: var(--muted); }
.row { display: flex; gap: 10px; }

.input { flex: 1; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: rgba(12,18,30,.8); color: var(--text); outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }

.btn { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.02); color: var(--text); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: rgba(255,255,255,.3); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: white; }
.btn.outline { background: transparent; }

/* disabled state */
.btn[disabled], .btn.disabled {
    opacity: .6;
    pointer-events: none;
    filter: saturate(.7);
}

.hint { color: var(--muted); margin-top: 8px; font-size: 14px; }
.result { margin-top: 14px; }

.msg { padding: 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.msg.ok { border-color: rgba(34,197,94,.35); }
.msg.good { border-color: rgba(245,158,11,.35); }
.msg.error { border-color: rgba(239,68,68,.35); }
.msg.warn { border-color: rgba(245,158,11,.35); }
.msg.ghost { border-color: rgba(100,116,139,.35); color: var(--muted); }

.next { margin-top: 8px; color: var(--muted); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 8px; }
.info { padding: 18px; border-radius: var(--radius); background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.08); }
.info h2 { margin: 0 0 8px; font-size: 20px; }

.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.foot { text-align: center; margin-top: 28px; color: var(--muted); font-size: 12px; }
.legal-nav { margin-top: 8px; display: inline-flex; align-items: center; gap: 10px; }
.legal-nav a { color: var(--text); opacity: .85; text-decoration: none; border-bottom: 1px solid transparent; }
.legal-nav a:hover { opacity: 1; border-bottom-color: rgba(255,255,255,.25); }

/* 3s loader */
.loader {
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 12px 6px;
}
.loader-text { color: var(--muted); font-size: 14px; }

.spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.15);
    border-top-color: var(--brand);
    animation: spin 1s linear infinite;
}

.bar {
    width: 100%;
    max-width: 360px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
}

.bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    animation: progress 3s linear forwards;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

.btn.email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .2px;
    color: #fff;
    text-decoration: none;
    border: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 60%, #1d4ed8 100%);
    box-shadow:
            0 10px 24px rgba(59,130,246,.35),
            0 2px 6px rgba(0,0,0,.35);
    transition: transform .15s ease, box-shadow .15s ease, background-position .3s ease;
    background-size: 150% 150%;
    background-position: 0% 50%;
}

.btn.email:hover {
    transform: translateY(-1px);
    box-shadow:
            0 14px 30px rgba(59,130,246,.45),
            0 3px 8px rgba(0,0,0,.4);
    background-position: 100% 50%;
}

.btn.email:active {
    transform: translateY(0);
    box-shadow:
            0 8px 18px rgba(59,130,246,.35),
            0 2px 6px rgba(0,0,0,.35);
}

.btn.email:focus-visible {
    outline: none;
    box-shadow:
            0 0 0 4px var(--ring),
            0 14px 30px rgba(59,130,246,.45);
}

.btn.email .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-block;
    opacity: .95;
    transform: translateY(1px);
}

/* optional kleiner Button auf sehr schmalen Screens */
@media (max-width: 380px) {
    .btn.email { padding: 12px 14px; }
    .btn.email .icon { width: 16px; height: 16px; }
}