/* quibrix design system — selbst gehostet, keine externen Ressourcen (NF-13/CSP) */
:root {
    --bg: #0a192f;
    --bg-raise: #0d1e38;
    --panel: #101f37;
    --panel-2: #152640;
    --text: #edf2fb;
    --muted: #8fa3bf;
    --brand: #2e5bff;
    --brand-2: #8a2be2;
    --cyan: #00c6ff;
    --accent: #2e5bff;
    --accent-2: #7c9aff;
    --ok: #34d399;
    --danger: #f87171;
    --border: #22344f;
    --border-soft: rgba(124, 154, 255, 0.16);
    --gradient: linear-gradient(135deg, #2e5bff 0%, #8a2be2 100%);
    --gradient-soft: linear-gradient(135deg, rgba(46,91,255,0.16), rgba(138,43,226,0.16));
    --glow: 0 0 40px rgba(46, 91, 255, 0.35);
    --radius: 14px;
    --shadow: 0 10px 30px rgba(2, 8, 20, 0.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(60rem 40rem at 85% -10%, rgba(138, 43, 226, 0.14), transparent 60%),
        radial-gradient(50rem 35rem at -10% 5%, rgba(46, 91, 255, 0.14), transparent 55%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Topbar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 1.4rem;
    background: rgba(10, 25, 47, 0.78);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; color: var(--text); font-size: 1.12rem; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(46, 91, 255, 0.5)); }
.ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 0.25rem; }
.topnav { display: flex; gap: 1.1rem; align-items: center; }
.topnav a { display: inline-flex; align-items: center; color: var(--muted); font-size: 0.92rem; padding: 0.3rem 0.1rem; transition: color 0.15s; }
.topnav a:hover { color: var(--text); text-decoration: none; }
.brand-dot { color: var(--brand); }
.brand-caption { color: var(--muted); font-weight: 400; margin-left: 0.3rem; }
.logout-form { margin: 0; }
.link-button { background: none; border: none; color: var(--accent-2); cursor: pointer; font: inherit; padding: 0; }

/* ---------- Buttons ---------- */
button.primary, a.primary {
    background: var(--gradient); color: #fff; border: none; border-radius: 10px;
    padding: 0.6rem 1.15rem; font: inherit; font-weight: 650; cursor: pointer; display: inline-block;
    box-shadow: 0 4px 18px rgba(46, 91, 255, 0.35);
    transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}
button.primary:hover, a.primary:hover { filter: brightness(1.12); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(46, 91, 255, 0.45); }
a.secondary, button.secondary {
    background: transparent; color: var(--text); border: 1px solid var(--border);
    border-radius: 10px; padding: 0.55rem 1.1rem; font: inherit; cursor: pointer; display: inline-block;
    transition: border-color 0.15s, background 0.15s;
}
a.secondary:hover, button.secondary:hover { border-color: var(--accent-2); background: rgba(46, 91, 255, 0.08); text-decoration: none; }

/* ---------- Marketing ---------- */
.shell { max-width: 1060px; margin: 0 auto; padding: 0 1.4rem; }
.eyebrow {
    color: transparent; background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0;
}
.hero {
    display: flex; gap: 3rem; align-items: center; justify-content: space-between;
    padding: 4.5rem 0 3.5rem; flex-wrap: wrap;
}
.hero-copy { flex: 1 1 26rem; max-width: 34rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0.7rem 0 0.9rem; font-weight: 800; }
.hero h1 .grad { color: transparent; background: var(--gradient); -webkit-background-clip: text; background-clip: text; }
.hero .lede { color: var(--muted); font-size: 1.12rem; margin: 0 0 1.6rem; }
.hero-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.hero-mark { position: relative; flex: 0 0 auto; }
.hero-mark img { width: 190px; height: 190px; filter: drop-shadow(0 0 42px rgba(46, 91, 255, 0.55)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-mark img { animation: none; } }

.section-title { font-size: 1.5rem; font-weight: 750; margin: 0 0 0.4rem; }
.section-sub { color: var(--muted); margin: 0 0 1.8rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; padding-bottom: 3.5rem; }
.feature {
    background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius);
    padding: 1.3rem 1.3rem 1.1rem; transition: border-color 0.15s, transform 0.15s;
}
.feature:hover { border-color: rgba(124, 154, 255, 0.45); transform: translateY(-3px); }
.feature .fico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 11px; background: var(--gradient-soft);
    border: 1px solid var(--border-soft); margin-bottom: 0.8rem;
}
.feature .fico svg { width: 20px; height: 20px; }
.feature h3 { margin: 0 0 0.3rem; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1rem; padding-bottom: 3.5rem; }
.plan {
    position: relative; display: flex; flex-direction: column; gap: 0.2rem;
    background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius);
    padding: 1.4rem 1.4rem 1.2rem; transition: border-color 0.15s, transform 0.15s;
}
.plan:hover { border-color: rgba(124, 154, 255, 0.45); transform: translateY(-3px); }
.plan h3 { margin: 0; font-size: 1.02rem; }
.plan .price { font-size: 1.7rem; font-weight: 800; margin: 0.35rem 0 0.6rem; }
.plan .price small { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.plan ul { color: var(--muted); padding-left: 1.05rem; font-size: 0.88rem; margin: 0; display: grid; gap: 0.3rem; }
.plan.hot {
    border: 1px solid transparent;
    background:
        linear-gradient(var(--panel), var(--panel)) padding-box,
        var(--gradient) border-box;
    box-shadow: var(--glow);
}
.plan.hot::before {
    content: "Beliebt"; position: absolute; top: -0.7rem; right: 1rem;
    background: var(--gradient); color: #fff; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px;
}
.cta-band {
    background: var(--gradient-soft); border: 1px solid var(--border-soft); border-radius: var(--radius);
    padding: 2rem 2.2rem; margin-bottom: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 0.3rem; font-size: 1.3rem; }
.cta-band p { margin: 0; color: var(--muted); }

/* ---------- Console / Workspace ---------- */
.workspace { max-width: 1000px; margin: 2rem auto; padding: 0 1.4rem; }
.panel {
    background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius);
    padding: 1.3rem 1.5rem; margin-bottom: 1.4rem; box-shadow: var(--shadow);
}
.panel h2 { margin-top: 0; }
.panel h3 { margin-bottom: 0.4rem; color: var(--muted); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; }
.cards { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.card {
    display: flex; flex-direction: column; gap: 0.15rem;
    background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 11px;
    padding: 0.75rem 1rem; color: var(--text); min-width: 12rem;
    transition: border-color 0.15s, transform 0.15s;
}
a.card:hover { border-color: var(--accent-2); text-decoration: none; transform: translateY(-2px); }
.card.static { color: var(--text); }
.card span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Forms & Tabellen ---------- */
.form { display: flex; flex-direction: column; gap: 0.55rem; max-width: 26rem; }
.form.inline { flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; margin-top: 0.8rem; }
.form label { color: var(--muted); font-size: 0.85rem; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea {
    background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px;
    color: var(--text); padding: 0.55rem 0.75rem; font: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.22); }
.notice { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.5); border-radius: 9px; padding: 0.55rem 0.85rem; }
.form-error { background: rgba(248, 113, 113, 0.1); border: 1px solid var(--danger); border-radius: 9px; padding: 0.55rem 0.85rem; color: #fecaca; }
.empty { color: var(--muted); }
.empty-illu { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 1.6rem 0; color: var(--muted); text-align: center; }
.empty-illu svg { width: 56px; height: 56px; opacity: 0.7; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: 0.8rem; }
.secret { word-break: break-all; background: var(--panel-2); padding: 0.6rem; border-radius: 9px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--border-soft); }
.table th { color: var(--muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.table tr:hover td { background: rgba(46, 91, 255, 0.05); }
main table:not(.table) { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
main table:not(.table) th, main table:not(.table) td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border-soft); }
main table:not(.table) th { color: var(--muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.actions { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
.actions form { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
button:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }

/* ---------- Auth ---------- */
.auth { display: grid; place-items: center; min-height: 100vh; }
.auth-card {
    background: var(--panel); border: 1px solid var(--border-soft); border-radius: 18px;
    padding: 2.2rem; width: min(26rem, 92vw); box-shadow: var(--shadow); text-align: center;
}
.auth-card .brand-mark { width: 56px; height: 56px; filter: drop-shadow(0 0 18px rgba(46, 91, 255, 0.55)); }
.auth-card h1 { margin: 0.4rem 0 0.2rem; font-size: 1.35rem; }
.auth-card .form { margin: 1.2rem auto 0; text-align: left; }
.auth-card .form .primary { margin-top: 0.6rem; width: 100%; }
.lede { color: var(--muted); }
.problem { text-align: center; padding: 3rem 1rem; }

/* ---------- Footer & Consent ---------- */
.page-footer {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    max-width: 1060px; margin: 0 auto; padding: 1.4rem 1.4rem 2.2rem; color: var(--muted); font-size: 0.88rem;
    border-top: 1px solid var(--border-soft);
}
.page-footer nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.page-footer a { color: var(--muted); }
.page-footer a:hover { color: var(--text); }
.consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(13, 30, 56, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-soft); padding: 0.9rem 1.4rem;
    display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
    box-shadow: 0 -8px 30px rgba(2, 8, 20, 0.5);
}
.consent p { margin: 0; max-width: 46rem; font-size: 0.88rem; color: var(--muted); }
.consent-actions { display: flex; gap: 0.6rem; margin: 0; }

/* ---------- Legal ---------- */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.05rem; margin-top: 1.4rem; }
code { background: var(--panel-2); padding: 0.12rem 0.38rem; border-radius: 5px; font-size: 0.85em; }
/* CSP-Konformität: Klassen statt Inline-Styles */
.btn-nav { padding: 0.35rem 0.9rem; font-size: 0.88rem; }
.page-head { padding: 3rem 0 3.5rem; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-top: 0.5rem; }
.mb-2 { margin-bottom: 2rem !important; }
.footer-center { justify-content: center; max-width: none; }
.footer-center nav { justify-content: center; }

.logo-row { margin: 0; }

a.feature { color: inherit; }
a.feature:hover { text-decoration: none; }

/* Feature-Overlay (Startseite): Kachelklick erklaert das Feature im Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(4, 10, 25, 0.72); display: flex; align-items: center; justify-content: center; padding: 1.2rem; z-index: 90; }
.modal-backdrop[hidden] { display: none; }
.modal-card { position: relative; background: var(--panel); border: 1px solid var(--border-soft); border-radius: 18px; max-width: 34rem; width: 100%; padding: 1.8rem 2rem 1.6rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 0.7rem; right: 0.8rem; background: none; border: 0; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0.3rem 0.55rem; border-radius: 8px; }
.modal-close:hover { color: var(--text); background: rgba(46, 91, 255, 0.08); }
.modal-ico svg { width: 44px; height: 44px; }
.modal-card h2 { margin: 0.6rem 0 0.4rem; font-size: 1.35rem; }
.modal-card .lede { margin: 0 0 0.4rem; }
.modal-card ul { margin: 0.8rem 0; padding-left: 1.2rem; }
.modal-card ul li { margin: 0.35rem 0; }
.modal-card .actions { display: flex; gap: 0.8rem; margin-top: 1.2rem; flex-wrap: wrap; }

