/* ============================================================
   BSBox – Public CSS (Marketing-LP, Login, Inquiry, Setup)
   Theme-Variables für Dark + Light. Brand: warmes Gold (Logo-Flamme).
   ============================================================ */

:root,
:root[data-theme="dark"] {
    --brand:        #d9a64a;
    --brand-strong: #e8b658;
    --brand-glow:   rgba(217, 166, 74, .25);

    --petrol:       #1d3a4f;
    --petrol-2:     #2d7c87;
    --petrol-deep:  #122738;

    --bg:        #0d1820;
    --bg-soft:   #122230;
    --surface:   #16283a;
    --surface-2: #1d3349;
    --surface-3: #234058;

    --line:    #234058;
    --line-2:  #335572;

    --text:    #e9eef3;
    --muted:   #9fb1c2;
    --dim:     #708497;

    --shadow-card: 0 24px 60px rgba(0, 0, 0, .35);

    color-scheme: dark;
}

:root[data-theme="light"] {
    --brand:        #c8923a;
    --brand-strong: #b8842f;
    --brand-glow:   rgba(200, 146, 58, .22);

    --petrol:       #1d3a4f;
    --petrol-2:     #2d7c87;
    --petrol-deep:  #163148;

    --bg:        #f5f1e8;
    --bg-soft:   #fbf8f1;
    --surface:   #ffffff;
    --surface-2: #f7f3ea;
    --surface-3: #efe9da;

    --line:    #e6dec9;
    --line-2:  #cdc1a3;

    --text:    #15212c;
    --muted:   #5a6b7a;
    --dim:     #8898a8;

    --shadow-card: 0 18px 40px rgba(29, 58, 79, .12);

    color-scheme: light;
}

:root {
    --radius:    10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    transition: background-color .25s ease, color .25s ease;
}

[data-theme="dark"] body {
    background:
      radial-gradient(1200px 600px at 80% -10%, rgba(217,166,74,.08), transparent 60%),
      radial-gradient(900px 500px at -10% 100%, rgba(45,124,135,.10), transparent 60%),
      var(--bg);
}
[data-theme="light"] body {
    background:
      radial-gradient(1200px 600px at 80% -10%, rgba(217,166,74,.10), transparent 60%),
      radial-gradient(900px 500px at -10% 100%, rgba(45,124,135,.07), transparent 60%),
      var(--bg);
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }

img { max-width: 100%; height: auto; display: block; }

button { font: inherit; cursor: pointer; }

/* ─── Topbar ─────────────────────────────────────────────────── */

.topbar {
    position: sticky; top: 0; z-index: 30;
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border-bottom: 1px solid var(--line);
}
.topbar .wrap {
    max-width: 1200px; margin: 0 auto;
    padding: .8rem 1.5rem;
    display: flex; align-items: center; gap: 1.6rem;
}
.brand {
    display: flex; align-items: center; gap: .6rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700; font-size: 1.2rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text);
}
.brand img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.brand .accent { color: var(--text); }
.brand:hover .accent { color: var(--brand); }

.topbar nav { display: flex; gap: 1.4rem; flex: 1; }
.topbar nav a { color: var(--muted); font-size: .92rem; }
.topbar nav a:hover { color: var(--text); }
.topbar .actions { display: flex; gap: .55rem; align-items: center; }

/* ─── Theme-Toggle ───────────────────────────────────────────── */

.theme-toggle {
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--muted);
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.theme-toggle:hover {
    color: var(--brand);
    border-color: var(--brand);
}
.theme-toggle svg { width: 18px; height: 18px; }

/* ─── Buttons ────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem;
    padding: .68rem 1.05rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 600; font-size: .9rem;
    letter-spacing: .02em;
    transition: all .15s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--brand); color: #1a0e07; border-color: var(--brand);
    box-shadow: 0 6px 20px var(--brand-glow);
}
.btn-primary:hover { background: var(--brand-strong); color: #1a0e07; transform: translateY(-1px); }
.btn-ghost {
    background: transparent; color: var(--text); border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn-lg { padding: .9rem 1.4rem; font-size: 1rem; }

/* ─── Hero ───────────────────────────────────────────────────── */

.hero {
    max-width: 1200px; margin: 0 auto;
    padding: 5rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: 3rem;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex; gap: .5rem; align-items: center;
    color: var(--brand);
    font-size: .78rem; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase;
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
    padding: .35rem .7rem;
    border-radius: 100px;
    margin-bottom: 1.4rem;
}
.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 1.1rem;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead {
    font-size: 1.1rem; color: var(--muted);
    max-width: 540px;
    margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-meta {
    margin-top: 2.4rem;
    display: flex; gap: 2rem; flex-wrap: wrap;
    color: var(--dim); font-size: .82rem;
}
.hero-meta b { color: var(--text); font-weight: 600; }

/* Login-Karte rechts */
.login-card {
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.login-card::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 45%, transparent), transparent 40%);
    opacity: .35;
    pointer-events: none;
    z-index: 0;
}
.login-card > * { position: relative; z-index: 1; }
.login-card h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: .35rem;
    color: var(--text);
}
.login-card .sub {
    font-size: .85rem; color: var(--muted);
    margin-bottom: 1.4rem;
}

.field { margin-bottom: 1rem; }
.field label {
    display: block; font-size: .72rem; font-weight: 600;
    letter-spacing: .15em; text-transform: uppercase;
    color: var(--muted); margin-bottom: .4rem;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--line-2);
    color: var(--text);
    padding: .72rem .9rem;
    font-family: inherit; font-size: .92rem;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-check { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); }

.login-card .helper {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line-2);
    color: var(--dim);
    font-size: .82rem;
    text-align: center;
}

/* ─── Features-Grid ──────────────────────────────────────────── */

.section {
    max-width: 1200px; margin: 0 auto;
    padding: 4rem 1.5rem;
}
.section-eyebrow {
    color: var(--brand); font-size: .78rem; font-weight: 600;
    letter-spacing: .25em; text-transform: uppercase;
    margin-bottom: .7rem;
}
.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 700; letter-spacing: -.005em;
    color: var(--text); margin-bottom: 1rem;
}
.section-lead {
    color: var(--muted); font-size: 1.02rem; max-width: 720px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 2.5rem;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
    background: var(--surface-2);
}
.feature-icon {
    width: 44px; height: 44px;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    color: var(--brand);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem; letter-spacing: .04em;
    color: var(--text); margin-bottom: .45rem;
}
.feature-card p {
    font-size: .9rem; color: var(--muted); line-height: 1.55;
}

/* ─── Highlight-Strip (Numbers) ──────────────────────────────── */

.numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.number-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    text-align: center;
}
.number-card .n {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.4rem; font-weight: 700;
    color: var(--brand);
    line-height: 1;
}
.number-card .l {
    margin-top: .35rem;
    font-size: .78rem; color: var(--muted);
    letter-spacing: .12em; text-transform: uppercase;
}

/* ─── Inquiry-CTA ────────────────────────────────────────────── */

.cta-band {
    margin: 4rem auto 0;
    max-width: 1200px;
    padding: 2.6rem 1.5rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 13%, transparent), color-mix(in srgb, var(--brand) 3%, transparent));
    border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
    border-radius: var(--radius-lg);
    display: grid; grid-template-columns: 1.2fr .8fr;
    gap: 2rem; align-items: center;
}
.cta-band h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--text); margin-bottom: .5rem;
}
.cta-band p { color: var(--muted); font-size: .98rem; }
.cta-band .actions { display: flex; gap: .8rem; justify-content: flex-end; }

/* ─── Footer ─────────────────────────────────────────────────── */

footer.public {
    margin-top: 4rem;
    border-top: 1px solid var(--line);
    color: var(--dim);
    font-size: .82rem;
}
footer.public .wrap {
    max-width: 1200px; margin: 0 auto;
    padding: 1.6rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
footer.public a { color: var(--muted); margin-left: 1rem; }
footer.public a:hover { color: var(--brand); }

/* ─── Flash-Messages ─────────────────────────────────────────── */

.flash-stack { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.flash {
    padding: .8rem 1rem; border-radius: var(--radius-sm);
    font-size: .88rem; border: 1px solid var(--line-2);
    background: var(--surface);
}
.flash-error   { border-color: #c0392b; background: rgba(192,57,43,.12); color: #cb5546; }
[data-theme="dark"] .flash-error { color: #fbb6ad; }
.flash-success { border-color: #27ae60; background: rgba(39,174,96,.12); color: #1f7a44; }
[data-theme="dark"] .flash-success { color: #b8efce; }
.flash-info    { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }

/* ─── Login-Page (Standalone) ────────────────────────────────── */

.auth-shell {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 1.5rem;
}
.auth-shell .login-card { max-width: 420px; width: 100%; }

/* ─── Inquiry-Page ───────────────────────────────────────────── */

.inquiry-shell {
    max-width: 720px; margin: 3rem auto;
    padding: 2.4rem;
    background: var(--surface); border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
}
.inquiry-shell h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem; color: var(--text); margin-bottom: .3rem;
}
.inquiry-shell .sub { color: var(--muted); margin-bottom: 1.6rem; font-size: .96rem; }

/* ─── Legal-Text (Imprint + Privacy) ─────────────────────────── */

.legal-text { line-height: 1.7; }
.legal-text h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    color: var(--text);
    margin: 2rem 0 .6rem;
    letter-spacing: .02em;
}
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { margin-bottom: 1rem; color: var(--text); }
.legal-text ul { margin: 0 0 1rem 1.4rem; }
.legal-text li { margin-bottom: .25rem; color: var(--muted); }
.legal-text a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.legal-text strong { color: var(--text); }

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 880px) {
    .hero { grid-template-columns: 1fr; padding-top: 3rem; }
    .login-card { order: -1; }
    .cta-band { grid-template-columns: 1fr; }
    .cta-band .actions { justify-content: flex-start; }
    .topbar nav { display: none; }
    .field-row { grid-template-columns: 1fr; }
}
