/*
 * Buchpilot Schul-Portal — Marine-Brand-Stylesheet.
 *
 * Echte Brand-Fonts lokal eingebunden (DSGVO-konform, kein Google-CDN):
 *   - CCLetterbot Bold (Comicraft) für Headlines
 *   - Inter Variable für Body/UI
 *
 * Marken-Farbe: #0b5882 (Marine-Blau aus Logo).
 * Mobile-first responsive — Sidebar wird auf < 880px zur Top-Nav.
 */

@font-face {
    font-family: 'CCLetterbot';
    src: url('fonts/ccletterbot/5bb0d9a5f6a341ee11460fef6a2d3613.woff2') format('woff2'),
         url('fonts/ccletterbot/5bb0d9a5f6a341ee11460fef6a2d3613.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter/InterVariable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bp-primary:        #0b5882;
    --bp-primary-dark:   #083f5e;
    --bp-primary-light:  #1177ad;
    --bp-primary-bg:     #eff6ff;     /* sidebar active background */
    --bp-primary-surface:#f0f7ff;     /* tinted surface */
    --bp-bg:             #f8fafc;
    --bp-surface:        #ffffff;
    --bp-border:         #e2e8f0;
    --bp-border-soft:    #f1f5f9;
    --bp-text:           #0f172a;
    --bp-text-muted:     #64748b;
    --bp-text-subtle:    #94a3b8;

    /* Status-Farben — passend zum Stitch-Wireframe */
    --bp-status-green-bg:  #ecfdf5;  --bp-status-green:  #047857;
    --bp-status-amber-bg:  #fffbeb;  --bp-status-amber:  #b45309;
    --bp-status-red-bg:    #fef2f2;  --bp-status-red:    #b91c1c;
    --bp-status-marine-bg: #eff6ff;  --bp-status-marine: #0b5882;
    --bp-status-grey-bg:   #f1f5f9;  --bp-status-grey:   #475569;

    --bp-radius-sm:      0.5rem;     /* 8px */
    --bp-radius:         1rem;       /* 16px */
    --bp-radius-lg:      1.5rem;     /* 24px */
    --bp-radius-xl:      2rem;
    --bp-radius-full:    9999px;

    --bp-shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.04);
    --bp-shadow:     0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --bp-shadow-lg:  0 10px 25px -5px rgba(15, 23, 42, 0.10), 0 4px 6px -2px rgba(15, 23, 42, 0.04);

    --bp-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bp-font-display: 'CCLetterbot', 'Inter', system-ui, sans-serif;
}

/* Reset/Basis nur für Portal-Container */
.bp-portal { font-family: var(--bp-font-body); color: var(--bp-text); background: var(--bp-bg); min-height: 100vh; }
.bp-portal *, .bp-portal *::before, .bp-portal *::after { box-sizing: border-box; }
.bp-portal a { color: var(--bp-primary); text-decoration: none; }
.bp-portal a:hover { text-decoration: underline; }
.bp-portal h1, .bp-portal h2, .bp-portal h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
.bp-portal h1 { font-family: var(--bp-font-display); font-size: 30px; font-weight: 700; }
.bp-portal h2 { font-family: var(--bp-font-display); font-size: 18px; font-weight: 700; }
.bp-portal h3 { font-size: 15px; font-weight: 600; }
.bp-portal p  { margin: 0; line-height: 1.55; }

/* ---------- Layout: Sidebar + Main ---------- */
.bp-layout { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }

.bp-sidebar {
    background: var(--bp-surface);
    border-right: 1px solid var(--bp-border);
    padding: 16px; display: flex; flex-direction: column; gap: 8px;
    position: sticky; top: 0; height: 100vh;
    /* Sidebar selbst scrollt nicht — nur die Nav darin (siehe .bp-nav). */
    overflow: hidden;
}

.bp-brand {
    display: flex; align-items: center; padding: 8px 4px 24px;
    text-decoration: none; flex-shrink: 0;
}
.bp-brand:hover { text-decoration: none; }
.bp-brand-logo {
    width: 100%; max-width: 200px; height: auto; display: block;
}
/* Fallback fürs alte Mark-Pattern (no-access etc.) */
.bp-brand-mark {
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--bp-primary); color: #fff;
    border-radius: var(--bp-radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-right: 12px;
}
.bp-brand-mark svg { width: 22px; height: 22px; }
.bp-brand-text { display: flex; flex-direction: column; line-height: 1; }
.bp-brand-text .name { font-family: var(--bp-font-display); font-size: 22px; color: var(--bp-primary); font-weight: 700; letter-spacing: -0.01em; }
.bp-brand-text .sub  { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--bp-text-subtle); font-weight: 700; margin-top: 2px; }

.bp-nav {
    list-style: none; padding: 0; margin: 0;
    flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 2px;
    overflow-y: auto;
    scrollbar-width: none; -ms-overflow-style: none;
}
.bp-nav::-webkit-scrollbar { display: none; }
.bp-nav li a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--bp-radius-sm);
    color: var(--bp-text-muted); font-size: 14px; font-weight: 500;
    transition: background-color 120ms, color 120ms;
}
.bp-nav li a:hover { background: var(--bp-border-soft); color: var(--bp-text); text-decoration: none; }
.bp-nav li.active a { background: var(--bp-primary-bg); color: var(--bp-primary); font-weight: 600; }
.bp-nav .ico { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.85; }

.bp-sidebar-user {
    margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--bp-border-soft);
    flex-shrink: 0;
}
.bp-sidebar-user .card {
    display: flex; align-items: center; gap: 10px;
    padding: 8px; border-radius: var(--bp-radius); transition: background-color 120ms;
}
.bp-sidebar-user .card:hover { background: var(--bp-border-soft); }
.bp-sidebar-user .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--bp-primary), var(--bp-primary-light));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.bp-sidebar-user .meta { flex: 1; min-width: 0; }
.bp-sidebar-user .name { font-size: 13px; font-weight: 700; color: var(--bp-text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-sidebar-user .role { font-size: 11px; color: var(--bp-text-muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-sidebar-user .logout {
    color: var(--bp-text-subtle); width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center; border-radius: var(--bp-radius-sm);
    transition: color 120ms, background-color 120ms;
}
.bp-sidebar-user .logout:hover { color: var(--bp-status-red); background: var(--bp-status-red-bg); text-decoration: none; }

/* Main area */
.bp-main { padding: 0; min-width: 0; }

/* Top app bar */
.bp-topbar {
    display: flex; justify-content: space-between; align-items: center;
    height: 64px; padding: 0 32px; gap: 24px;
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--bp-border);
}
.bp-topbar .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--bp-text-muted); }
.bp-topbar .breadcrumb a { color: var(--bp-text-muted); }
.bp-topbar .breadcrumb .crumb-current { color: var(--bp-text); font-weight: 600; }
.bp-topbar .breadcrumb .crumb-sep { color: var(--bp-text-subtle); }

.bp-topbar-actions { display: flex; align-items: center; gap: 12px; }
.bp-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bp-border-soft); color: var(--bp-text-muted);
    padding: 6px 12px; border-radius: var(--bp-radius-full);
    font-size: 12px; font-weight: 500;
}
.bp-pill .ico { width: 14px; height: 14px; }

.bp-bell {
    position: relative; width: 36px; height: 36px;
    border-radius: var(--bp-radius-full); border: 0; cursor: pointer;
    background: transparent; color: var(--bp-text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: background-color 120ms, color 120ms;
}
.bp-bell:hover { background: var(--bp-border-soft); color: var(--bp-text); }
.bp-bell .badge {
    position: absolute; top: 4px; right: 4px;
    background: var(--bp-status-red); color: #fff;
    font-size: 10px; font-weight: 700; line-height: 1;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: var(--bp-radius-full); border: 2px solid #fff;
    display: flex; align-items: center; justify-content: center;
}

/* Content */
.bp-content { padding: 32px; max-width: 1280px; margin: 0 auto; }
.bp-content > * + * { margin-top: 28px; }

.bp-greeting h1 { margin-bottom: 4px; }
.bp-greeting p  { color: var(--bp-text-muted); font-size: 15px; }

/* ---------- KPI Cards ---------- */
.bp-kpi-row {
    display: grid; gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}
.bp-kpi {
    background: var(--bp-surface); border-radius: var(--bp-radius);
    border: 1px solid var(--bp-border); padding: 22px;
    transition: box-shadow 200ms;
}
.bp-kpi:hover { box-shadow: var(--bp-shadow-lg); }
.bp-kpi-icon {
    width: 36px; height: 36px; border-radius: var(--bp-radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.bp-kpi-icon svg { width: 18px; height: 18px; }
.bp-kpi-num { font-family: var(--bp-font-display); font-size: 36px; font-weight: 700; line-height: 1.05; color: var(--bp-text); }
.bp-kpi-label { font-size: 14px; color: var(--bp-text-muted); margin-top: 4px; font-weight: 500; }

.bp-kpi.kpi-default .bp-kpi-icon { background: var(--bp-border-soft); color: var(--bp-text-muted); }
.bp-kpi.kpi-success .bp-kpi-icon { background: var(--bp-status-green-bg); color: var(--bp-status-green); }
.bp-kpi.kpi-warning .bp-kpi-icon { background: var(--bp-status-amber-bg); color: var(--bp-status-amber); }
.bp-kpi.kpi-marine  .bp-kpi-icon { background: var(--bp-status-marine-bg); color: var(--bp-primary); }
.bp-kpi.kpi-marine  { border-left: 4px solid var(--bp-primary); }

/* Two-col split */
.bp-split { display: grid; grid-template-columns: 8fr 4fr; gap: 28px; }

.bp-card {
    background: var(--bp-surface); border-radius: var(--bp-radius);
    border: 1px solid var(--bp-border); overflow: hidden;
    box-shadow: var(--bp-shadow-sm);
}
.bp-card-header {
    padding: 20px 24px; border-bottom: 1px solid var(--bp-border-soft);
    display: flex; align-items: center; justify-content: space-between;
}
.bp-card-header h2 { font-size: 17px; }
.bp-card-header a {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 600; color: var(--bp-primary);
}
.bp-card-header a:hover { text-decoration: underline; }
.bp-card-body { padding: 0; }
.bp-card-footer { padding: 14px 24px; border-top: 1px solid var(--bp-border-soft); font-size: 13px; }

/* ---------- Tables ---------- */
.bp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bp-table thead { background: rgba(248, 250, 252, 0.6); }
.bp-table th {
    text-align: left; padding: 12px 24px; font-size: 12px;
    font-weight: 500; color: var(--bp-text-muted);
}
.bp-table td { padding: 14px 24px; border-top: 1px solid var(--bp-border-soft); vertical-align: middle; }
.bp-table tbody tr { transition: background-color 120ms; }
.bp-table tbody tr:hover td { background: var(--bp-border-soft); }
.bp-table .auftrag { font-weight: 700; color: var(--bp-text); }
.bp-table .auftrag-sub { font-size: 11px; color: var(--bp-text-muted); margin-top: 2px; display: block; }
.bp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.bp-table .center { text-align: center; }
.bp-table code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--bp-text-muted); }

/* Status badges — pill-shaped */
.bp-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: var(--bp-radius-full);
    font-size: 11px; font-weight: 600; white-space: nowrap;
}
.bp-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.bp-badge.green  { background: var(--bp-status-green-bg);  color: var(--bp-status-green); }
.bp-badge.amber  { background: var(--bp-status-amber-bg);  color: var(--bp-status-amber); }
.bp-badge.red    { background: var(--bp-status-red-bg);    color: var(--bp-status-red); }
.bp-badge.marine { background: var(--bp-status-marine-bg); color: var(--bp-status-marine); }
.bp-badge.grey   { background: var(--bp-status-grey-bg);   color: var(--bp-status-grey); }

/* ---------- Activity Timeline ---------- */
.bp-activity { list-style: none; padding: 0; margin: 0; }
.bp-activity li {
    padding: 16px 24px; border-top: 1px solid var(--bp-border-soft);
    display: flex; gap: 14px;
}
.bp-activity li:first-child { border-top: 0; }
.bp-activity .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--bp-primary); margin-top: 7px; flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--bp-primary-bg);
}
.bp-activity .meta { flex: 1; min-width: 0; font-size: 13px; }
.bp-activity .meta .title { color: var(--bp-text); }
.bp-activity .meta .title strong { font-weight: 600; }
.bp-activity .time { color: var(--bp-text-subtle); font-size: 12px; margin-top: 2px; }

/* ---------- Callouts ---------- */
.bp-callout {
    border-radius: var(--bp-radius); padding: 16px 20px;
    border-left: 4px solid var(--bp-status-amber);
    background: var(--bp-status-amber-bg);
    display: flex; gap: 16px; align-items: center; justify-content: space-between;
    font-size: 14px;
}
.bp-callout strong { color: var(--bp-text); }
.bp-callout.info    { border-left-color: var(--bp-primary); background: var(--bp-primary-surface); }
.bp-callout.success { border-left-color: var(--bp-status-green); background: var(--bp-status-green-bg); }
.bp-callout.danger  { border-left-color: var(--bp-status-red); background: var(--bp-status-red-bg); }
.bp-callout a       { font-weight: 600; white-space: nowrap; }

/* ---------- Bestell-Detail Header ---------- */
.bp-detail-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0eaf5 100%);
    border-radius: var(--bp-radius); padding: 28px;
    display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start;
}
.bp-detail-header .auftragsnummer {
    font-family: var(--bp-font-display); font-size: 28px; font-weight: 700;
    color: var(--bp-primary); line-height: 1;
}
.bp-detail-header .schule { color: var(--bp-text-muted); margin-top: 6px; font-size: 14px; }
.bp-detail-header .ministats { color: var(--bp-text-muted); font-size: 13px; margin-top: 14px; }
.bp-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }

.bp-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--bp-radius-sm);
    font-size: 13px; font-weight: 600;
    border: 1px solid var(--bp-border); background: #fff;
    color: var(--bp-text); cursor: pointer; transition: background-color 120ms, border-color 120ms;
}
.bp-btn:hover { background: var(--bp-border-soft); border-color: var(--bp-text-subtle); text-decoration: none; }
.bp-btn.primary { background: var(--bp-primary); color: #fff; border-color: var(--bp-primary); }
.bp-btn.primary:hover { background: var(--bp-primary-dark); border-color: var(--bp-primary-dark); color: #fff; }
.bp-btn .ico { width: 14px; height: 14px; }

/* ---------- Status-Pipeline (9-Stufen-Stepper) ---------- */
.bp-pipeline {
    display: flex; align-items: stretch;
    background: var(--bp-surface); border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius); padding: 16px; gap: 4px;
    overflow-x: auto;
}
.bp-pipeline-step {
    flex: 1; min-width: 86px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-align: center; position: relative;
}
.bp-pipeline-step .dot {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--bp-border); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
    z-index: 2;
}
.bp-pipeline-step .label {
    font-size: 10px; color: var(--bp-text-muted); font-weight: 600;
    line-height: 1.25; text-transform: uppercase; letter-spacing: 0.04em;
}
.bp-pipeline-step.done .dot { background: var(--bp-status-green); }
.bp-pipeline-step.done .label { color: var(--bp-status-green); }
.bp-pipeline-step.current .dot { background: var(--bp-primary); box-shadow: 0 0 0 4px var(--bp-primary-bg); }
.bp-pipeline-step.current .label { color: var(--bp-primary); }
.bp-pipeline-step.warning .dot { background: var(--bp-status-amber); }
.bp-pipeline-step.warning .label { color: var(--bp-status-amber); }
.bp-pipeline-step.error .dot { background: var(--bp-status-red); }
.bp-pipeline-step.error .label { color: var(--bp-status-red); }
.bp-pipeline-step + .bp-pipeline-step::before {
    content: ''; position: absolute; top: 12px; left: -50%; right: 50%;
    height: 2px; background: var(--bp-border); z-index: 1;
}
.bp-pipeline-step.done + .bp-pipeline-step::before,
.bp-pipeline-step.current + .bp-pipeline-step.current::before { background: var(--bp-status-green); }

/* ---------- Tabs ---------- */
.bp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--bp-border); }
.bp-tabs a {
    padding: 12px 20px; font-size: 14px; font-weight: 500;
    color: var(--bp-text-muted); border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.bp-tabs a:hover { color: var(--bp-text); text-decoration: none; }
.bp-tabs a.active { color: var(--bp-primary); border-bottom-color: var(--bp-primary); font-weight: 600; }

/* ---------- Filter chips ---------- */
.bp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-chip {
    display: inline-flex; align-items: center; padding: 6px 14px;
    border-radius: var(--bp-radius-full); font-size: 12px; font-weight: 500;
    background: var(--bp-surface); border: 1px solid var(--bp-border);
    color: var(--bp-text-muted); transition: background 120ms;
}
.bp-chip:hover { background: var(--bp-border-soft); text-decoration: none; }
.bp-chip.active { background: var(--bp-primary); color: #fff; border-color: var(--bp-primary); }
.bp-chip.active:hover { background: var(--bp-primary-dark); border-color: var(--bp-primary-dark); }

/* ---------- Empty / no-access ---------- */
.bp-empty {
    background: var(--bp-surface); border-radius: var(--bp-radius);
    border: 1px dashed var(--bp-border); padding: 40px 24px; text-align: center;
    color: var(--bp-text-muted);
}
.bp-no-access {
    max-width: 480px; margin: 80px auto; padding: 40px 32px;
    background: var(--bp-surface); border-radius: var(--bp-radius);
    border: 1px solid var(--bp-border); box-shadow: var(--bp-shadow);
    text-align: center;
}
.bp-no-access h1 { color: var(--bp-primary); margin-bottom: 12px; }

/* ---------- Footer ---------- */
.bp-portal-footer {
    margin-top: 56px; padding: 24px 32px;
    border-top: 1px solid var(--bp-border);
    text-align: center; font-size: 12px; color: var(--bp-text-muted);
    max-width: 1280px; margin-left: auto; margin-right: auto;
}
.bp-portal-footer a { color: var(--bp-text-muted); text-decoration: underline; }
.bp-portal-footer a:hover { color: var(--bp-primary); }

/* ============================================================
 * LANDING PAGE
 * ============================================================ */

.bp-landing { background: #fff; }
.bp-landing-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.bp-landing-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--bp-border);
}
.bp-landing-header .bp-landing-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 80px; gap: 24px;
}
.bp-landing-brand { display: flex; align-items: center; text-decoration: none; }
.bp-landing-brand img { height: 48px; width: auto; display: block; }
.bp-landing-brand:hover { text-decoration: none; }
/* Fallback styles für no-access etc. */
.bp-landing-brand .bp-brand-mark { width: 38px; height: 38px; margin-right: 10px; }
.bp-landing-brand .bp-brand-mark svg { width: 22px; height: 22px; }
.bp-landing-brand .brand-text { font-family: var(--bp-font-display); font-size: 24px; color: var(--bp-primary); font-weight: 700; }
.bp-landing-nav { display: flex; gap: 32px; }
.bp-landing-nav a { color: var(--bp-text-muted); font-size: 14px; font-weight: 500; }
.bp-landing-nav a:hover { color: var(--bp-primary); text-decoration: none; }
.bp-landing-login { padding: 10px 22px; border-radius: var(--bp-radius-full); }

/* Hero */
.bp-landing-hero { padding: 80px 0 120px; overflow: hidden; }
.bp-landing-hero .hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.bp-display {
    font-family: var(--bp-font-display); font-size: 64px; font-weight: 700;
    line-height: 1.05; letter-spacing: -0.025em; color: var(--bp-text); margin: 0 0 24px;
}
.bp-display .primary { color: var(--bp-primary); }
.bp-lead { font-size: 18px; color: var(--bp-text-muted); line-height: 1.55; max-width: 540px; margin-bottom: 36px; }
.bp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.bp-btn-lg { padding: 14px 28px; font-size: 15px; }

.hero-visual { position: relative; }
.hero-decoration {
    position: absolute; inset: -16px -16px 24px 24px; background: var(--bp-primary-bg);
    border-radius: 48px; transform: rotate(-3deg); z-index: -1;
}
.hero-card {
    background: var(--bp-surface); border-radius: 32px; padding: 36px;
    border: 8px solid #fff; box-shadow: var(--bp-shadow-lg);
}
.hero-stat { padding-bottom: 24px; border-bottom: 1px solid var(--bp-border); margin-bottom: 24px; }
.hero-stat-num { font-family: var(--bp-font-display); font-size: 64px; color: var(--bp-primary); font-weight: 700; line-height: 1; }
.hero-stat-label { font-size: 14px; color: var(--bp-text-muted); margin-top: 4px; }
.hero-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-checklist li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--bp-text); }
.hero-checklist svg { width: 20px; height: 20px; color: var(--bp-status-green); flex-shrink: 0; }

/* Trust Bar */
.bp-landing-trust { background: var(--bp-bg); border-block: 1px solid var(--bp-border); padding: 24px 0; }
.bp-landing-trust .trust-row {
    display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between;
    align-items: center; opacity: 0.8;
}
.bp-landing-trust .trust-row > div { display: flex; align-items: center; gap: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bp-text); }
.bp-landing-trust .trust-row svg { width: 22px; height: 22px; color: var(--bp-primary); }

/* Sections */
.bp-landing-section { padding: 100px 0; }

/* USP Grid */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.usp-card {
    background: var(--bp-bg); border: 1px solid var(--bp-border-soft);
    border-radius: 28px; padding: 36px; transition: border-color 200ms, transform 200ms;
}
.usp-card:hover { border-color: var(--bp-primary-bg); transform: translateY(-4px); }
.usp-icon {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 18px; background: var(--bp-primary);
    color: #fff; margin-bottom: 24px; transition: transform 200ms;
}
.usp-icon svg { width: 28px; height: 28px; }
.usp-card:hover .usp-icon { transform: scale(1.08); }
.usp-card h3 { font-family: var(--bp-font-display); font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.usp-card p { color: var(--bp-text-muted); line-height: 1.6; }

/* Process Section (Dark) */
.bp-landing-process {
    background: #0f172a; color: #fff; padding: 100px 0;
}
.bp-landing-process .process-head { text-align: center; margin-bottom: 64px; }
.bp-landing-process h2 {
    font-family: var(--bp-font-display); font-size: 42px; font-weight: 700;
    margin: 0 0 16px;
}
.bp-landing-process .process-head p { color: #94a3b8; font-size: 17px; max-width: 580px; margin: 0 auto; }
.process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    position: relative;
}
.process-grid::before {
    content: ''; position: absolute; top: 50%; left: 5%; right: 5%; height: 2px;
    background: rgba(255, 255, 255, 0.1); z-index: 0;
}
.process-step { position: relative; z-index: 1; }
.step-num {
    position: absolute; top: -32px; left: -8px; font-family: var(--bp-font-display);
    font-size: 100px; font-weight: 700; color: rgba(255, 255, 255, 0.04); line-height: 1;
}
.step-card {
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px; padding: 28px; backdrop-filter: blur(8px); height: 100%;
    position: relative;
}
.step-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.step-card p { color: #94a3b8; font-size: 13px; line-height: 1.55; }

/* Bereiche */
.bereiche-head { text-align: center; margin-bottom: 56px; }
.bereiche-head h2 { font-family: var(--bp-font-display); font-size: 42px; font-weight: 700; margin: 0 0 16px; }
.bereiche-head p { color: var(--bp-text-muted); font-size: 17px; }
.bereiche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.bereich {
    border-radius: 36px; padding: 48px; display: flex; flex-direction: column;
    justify-content: space-between; gap: 32px;
}
.bereich h3 { font-family: var(--bp-font-display); font-size: 28px; font-weight: 700; margin: 0 0 28px; }
.bereich ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.bereich li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; }
.bereich svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.bereich-primary { background: var(--bp-primary); color: #fff; }
.bereich-primary svg { color: #93c5fd; }
.bereich-secondary { background: var(--bp-bg); color: var(--bp-text); }
.bereich-secondary h3 { color: var(--bp-primary); }
.bereich-secondary svg { color: var(--bp-primary); }
.bp-btn-on-dark {
    background: #fff; color: var(--bp-primary); padding: 14px 32px;
    border-radius: 12px; font-weight: 700; font-size: 15px; align-self: flex-start;
    transition: background 200ms;
}
.bp-btn-on-dark:hover { background: #f1f5f9; text-decoration: none; }

/* Contact */
.bp-landing-contact { background: var(--bp-bg); padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; }
.contact-form-wrap h2 { font-family: var(--bp-font-display); font-size: 36px; font-weight: 700; margin: 0 0 32px; }
.bp-landing-form { display: flex; flex-direction: column; gap: 20px; }
.bp-landing-form .form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bp-landing-form label { display: flex; flex-direction: column; gap: 8px; }
.bp-landing-form span {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--bp-text-muted);
}
.bp-landing-form input, .bp-landing-form textarea {
    background: #fff; border: 1px solid var(--bp-border); border-radius: 12px;
    padding: 14px 16px; font-size: 15px; font-family: inherit; transition: border-color 150ms, box-shadow 150ms;
}
.bp-landing-form input:focus, .bp-landing-form textarea:focus {
    outline: 0; border-color: var(--bp-primary); box-shadow: 0 0 0 3px var(--bp-primary-bg);
}

.contact-aside { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
    background: #fff; border: 1px solid var(--bp-border-soft);
    border-radius: 28px; padding: 32px; box-shadow: var(--bp-shadow);
}
.avatar-large {
    width: 80px; height: 80px; border-radius: 18px;
    background: linear-gradient(135deg, var(--bp-primary), var(--bp-primary-light));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-family: var(--bp-font-display); font-size: 32px; font-weight: 700;
    margin-bottom: 20px;
}
.contact-card h4 { font-family: var(--bp-font-display); font-size: 20px; font-weight: 700; margin: 0; }
.contact-card .role { color: var(--bp-primary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin: 4px 0 24px; }
.contact-link { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--bp-text-muted); font-size: 14px; }
.contact-link:hover { color: var(--bp-primary); text-decoration: none; }
.contact-link svg { width: 18px; height: 18px; color: var(--bp-text-subtle); }

/* Footer */
.bp-landing-footer { background: var(--bp-primary); color: #fff; padding: 48px 0; margin-top: 0; }
.bp-landing-footer .footer-row {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.footer-brand { font-family: var(--bp-font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.bp-landing-footer p { color: rgba(255, 255, 255, 0.7); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-nav a { color: #fff; }

@media (max-width: 980px) {
    .bp-landing-hero .hero-grid,
    .bereiche-grid,
    .contact-grid,
    .usp-grid,
    .process-grid { grid-template-columns: 1fr; }
    .process-grid::before { display: none; }
    .step-num { font-size: 80px; }
    .bp-display { font-size: 44px; }
    .bp-landing-nav { display: none; }
    .bp-landing-section { padding: 60px 0; }
    .bp-landing-hero { padding: 48px 0 64px; }
}

/* ---------- Bridge-Wrap (wp-admin Page eingebettet ins Marine-Layout) ---------- */
.bp-bridge-wrap {
    background: var(--bp-surface); border-radius: var(--bp-radius);
    border: 1px solid var(--bp-border-soft); box-shadow: var(--bp-shadow);
    padding: 24px 28px; overflow-x: auto;
}
.bp-bridge-wrap .wrap { max-width: none; margin: 0; }
.bp-bridge-wrap .wrap > h1,
.bp-bridge-wrap .wrap > h2 {
    font-family: var(--bp-font-display); color: var(--bp-text);
    font-weight: 700; margin: 0 0 16px;
}
.bp-bridge-wrap .wrap > h1 { font-size: 26px; padding: 0; }
.bp-bridge-wrap .wrap > h2 { font-size: 18px; margin-top: 28px; }
.bp-bridge-wrap a { color: var(--bp-primary); }
.bp-bridge-wrap .wp-heading-inline { display: inline-block; margin-right: 12px; }
.bp-bridge-wrap .wp-header-end { display: none; }

/* Buttons komplett auf Marine-Brand umstylen — überschreibt wp-admin .button */
.bp-bridge-wrap .button,
.bp-bridge-wrap .button-secondary,
.bp-bridge-wrap input[type="submit"].button {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--bp-radius-sm); border: 1px solid var(--bp-border);
    background: #fff !important; color: var(--bp-text) !important;
    padding: 10px 18px; min-height: 42px; gap: 6px;
    font-family: var(--bp-font-body); font-size: 14px; font-weight: 600;
    line-height: 1; text-shadow: none; box-shadow: none;
    cursor: pointer; transition: all 120ms;
}
.bp-bridge-wrap .button:hover,
.bp-bridge-wrap .button-secondary:hover {
    background: var(--bp-bg) !important; border-color: var(--bp-primary); color: var(--bp-primary) !important;
    text-decoration: none;
}
.bp-bridge-wrap .button-primary,
.bp-bridge-wrap input[type="submit"].button-primary,
.bp-bridge-wrap button.button-primary {
    background: var(--bp-primary) !important; color: #fff !important; border-color: var(--bp-primary) !important;
    box-shadow: 0 1px 2px rgba(11,88,130,.2);
}
.bp-bridge-wrap .button-primary:hover,
.bp-bridge-wrap button.button-primary:hover {
    background: var(--bp-primary-dark) !important; border-color: var(--bp-primary-dark) !important; color: #fff !important;
}
.bp-bridge-wrap .button-large { padding: 14px 28px !important; font-size: 16px !important; min-height: 50px; }

/* "Neu anlegen"-Link (page-title-action) als Marine-Primary-Button */
.bp-bridge-wrap .page-title-action {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bp-primary) !important; color: #fff !important;
    border: 1px solid var(--bp-primary) !important;
    padding: 10px 20px !important; border-radius: var(--bp-radius-sm) !important;
    font-family: var(--bp-font-body); font-size: 14px; font-weight: 600;
    text-decoration: none !important; box-shadow: 0 1px 2px rgba(11,88,130,.2);
    line-height: 1; min-height: 42px; vertical-align: middle;
    transition: background-color 120ms;
}
.bp-bridge-wrap .page-title-action:hover {
    background: var(--bp-primary-dark) !important; border-color: var(--bp-primary-dark) !important; color: #fff !important;
}
/* Submit-Button-Bereich (Form Save) */
.bp-bridge-wrap p.submit { padding: 20px 0 0; margin: 28px 0 0; border-top: 1px solid var(--bp-border-soft); display: flex; gap: 12px; }
.bp-bridge-wrap p.submit input[type="submit"] { margin: 0; }

/* WP-Admin Notices in Marine */
.bp-bridge-wrap .notice {
    margin: 0 0 18px; padding: 12px 16px; background: #fff;
    border: 1px solid var(--bp-border); border-left-width: 4px;
    border-radius: var(--bp-radius-sm); box-shadow: var(--bp-shadow-sm);
}
.bp-bridge-wrap .notice p { margin: 0; }
.bp-bridge-wrap .notice-success, .bp-bridge-wrap .updated { border-left-color: var(--bp-status-green); background: var(--bp-status-green-bg); }
.bp-bridge-wrap .notice-error, .bp-bridge-wrap .error { border-left-color: var(--bp-status-red); background: var(--bp-status-red-bg); }
.bp-bridge-wrap .notice-warning { border-left-color: var(--bp-status-amber); background: var(--bp-status-amber-bg); }
.bp-bridge-wrap .notice-info { border-left-color: var(--bp-primary); background: var(--bp-primary-bg); }
.bp-bridge-wrap .notice-dismiss { display: none; }

/* form-table key/value layout */
.bp-bridge-wrap .form-table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.bp-bridge-wrap .form-table th {
    width: 220px; text-align: left; vertical-align: top;
    padding: 14px 16px 14px 0; font-weight: 600; color: var(--bp-text);
    border-bottom: 1px solid var(--bp-border-soft);
}
.bp-bridge-wrap .form-table td {
    padding: 14px 0; border-bottom: 1px solid var(--bp-border-soft);
    color: var(--bp-text);
}
.bp-bridge-wrap .form-table .description { color: var(--bp-text-muted); font-size: 13px; margin-top: 6px; }
.bp-bridge-wrap .regular-text { width: 100%; max-width: 420px; }
.bp-bridge-wrap .large-text   { width: 100%; max-width: 100%; }
.bp-bridge-wrap .small-text   { width: 90px; }

/* WP-Admin-Tabellen → Marine */
.bp-bridge-wrap table.widefat,
.bp-bridge-wrap .wp-list-table {
    width: 100%; border-collapse: collapse; background: #fff;
    border: 1px solid var(--bp-border-soft); border-radius: var(--bp-radius-sm);
    box-shadow: none; overflow: hidden;
}
.bp-bridge-wrap table.widefat th,
.bp-bridge-wrap table.widefat td,
.bp-bridge-wrap .wp-list-table th,
.bp-bridge-wrap .wp-list-table td {
    padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--bp-border-soft);
    font-size: 14px;
}
.bp-bridge-wrap table.widefat thead th {
    background: var(--bp-bg); color: var(--bp-text-muted);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    border-bottom: 1px solid var(--bp-border);
}
.bp-bridge-wrap table.widefat tbody tr:hover { background: var(--bp-bg); }
.bp-bridge-wrap table.widefat tbody tr:last-child td { border-bottom: 0; }

/* subsubsub Filter-Reiter */
.bp-bridge-wrap .subsubsub {
    list-style: none; margin: 0 0 18px; padding: 0;
    display: flex; gap: 4px; flex-wrap: wrap;
    border-bottom: 1px solid var(--bp-border-soft); padding-bottom: 0;
}
.bp-bridge-wrap .subsubsub li { margin: 0; }
.bp-bridge-wrap .subsubsub li a {
    display: inline-block; padding: 10px 16px; color: var(--bp-text-muted);
    font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.bp-bridge-wrap .subsubsub li a:hover { color: var(--bp-primary); text-decoration: none; }
.bp-bridge-wrap .subsubsub li a.current,
.bp-bridge-wrap .subsubsub li.current a {
    color: var(--bp-primary); border-bottom-color: var(--bp-primary);
}
.bp-bridge-wrap .subsubsub li::after { content: ''; }

/* tablenav (Pagination) */
.bp-bridge-wrap .tablenav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 12px; }
.bp-bridge-wrap .tablenav-pages a, .bp-bridge-wrap .tablenav-pages span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 8px;
    border: 1px solid var(--bp-border); border-radius: var(--bp-radius-sm);
    margin-left: 4px; font-size: 13px; color: var(--bp-text-muted);
}
.bp-bridge-wrap .tablenav-pages .current { background: var(--bp-primary); color: #fff; border-color: var(--bp-primary); }

/* Spaß-Status-Indikatoren in Listen (z.B. ● Aktiv) */
.bp-bridge-wrap [style*="color:#007a5b"] { color: var(--bp-status-green) !important; }
.bp-bridge-wrap [style*="color:#b32d2e"] { color: var(--bp-status-red) !important; }
.bp-bridge-wrap [style*="color:#646970"] { color: var(--bp-text-muted) !important; }
.bp-bridge-wrap input[type="text"], .bp-bridge-wrap input[type="email"],
.bp-bridge-wrap input[type="number"], .bp-bridge-wrap input[type="password"],
.bp-bridge-wrap input[type="url"], .bp-bridge-wrap input[type="search"],
.bp-bridge-wrap input[type="tel"], .bp-bridge-wrap select, .bp-bridge-wrap textarea {
    border: 1px solid var(--bp-border); border-radius: var(--bp-radius-sm);
    padding: 8px 12px; font-family: var(--bp-font-body); box-shadow: none;
    min-height: 40px;
}
.bp-bridge-wrap input:focus, .bp-bridge-wrap select:focus, .bp-bridge-wrap textarea:focus {
    border-color: var(--bp-primary); box-shadow: 0 0 0 3px var(--bp-primary-bg); outline: 0;
}
.bp-bridge-wrap .form-table th { color: var(--bp-text); font-weight: 600; padding: 12px 10px; }
.bp-bridge-wrap .form-table td { padding: 12px 10px; }
.bp-bridge-wrap table.widefat,
.bp-bridge-wrap .wp-list-table {
    border: 1px solid var(--bp-border-soft); border-radius: var(--bp-radius-sm);
    box-shadow: none;
}
.bp-bridge-wrap table.widefat th { background: var(--bp-bg); color: var(--bp-text); font-weight: 600; }
.bp-bridge-wrap .notice, .bp-bridge-wrap .updated, .bp-bridge-wrap .error {
    border-radius: var(--bp-radius-sm); border-left-width: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .bp-kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
    .bp-split { grid-template-columns: 1fr; }
    .bp-bridge-wrap { padding: 18px; }
}
@media (max-width: 980px) {
    .bp-layout { grid-template-columns: 220px 1fr; }
    .bp-sidebar { padding: 12px; }
    .bp-content { padding: 24px 20px; }
    .form-grid, .bp-form-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 880px) {
    .bp-layout { grid-template-columns: 1fr; }
    .bp-sidebar {
        position: relative; height: auto; flex-direction: row;
        align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 14px;
        overflow-x: auto; overflow-y: hidden;
    }
    .bp-brand { padding: 0; flex: 0 0 auto; }
    .bp-brand-logo { height: 32px; }
    .bp-nav {
        flex-direction: row; flex-wrap: nowrap; gap: 4px; flex: 1 1 auto;
        overflow-x: auto; min-width: 0;
    }
    .bp-nav li a {
        padding: 8px 10px; min-height: 44px; min-width: 44px;
        justify-content: center; gap: 6px;
    }
    .bp-nav li a span:not(.ico) { display: none; }
    .bp-nav li.active a { background: var(--bp-primary-bg); }
    .bp-sidebar-user { margin-top: 0; padding-top: 0; border-top: 0; margin-left: auto; flex: 0 0 auto; }
    .bp-sidebar-user .card { padding: 4px 8px; gap: 6px; }
    .bp-sidebar-user .meta { display: none; }
    .bp-content { padding: 18px 14px; }
    .bp-topbar { padding: 0 14px; flex-wrap: wrap; gap: 8px; height: auto; min-height: 56px; }
    .bp-table { font-size: 13px; }
    .bp-table th, .bp-table td { padding: 10px 12px; }

    /* Tabellen horizontal scrollbar machen statt umbrechen */
    .bp-card.has-table, .bp-table-wrap, .bp-bridge-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .bp-bridge-wrap table { min-width: 600px; }

    /* Touch-Targets */
    .bp-btn, .bp-pill, .bp-bridge-wrap .button { min-height: 44px; padding: 10px 16px; }

    /* Display-Headlines kleiner */
    .bp-portal h1 { font-size: 24px; }
    .bp-portal h2 { font-size: 16px; }
}
@media (max-width: 560px) {
    .bp-kpi-row { grid-template-columns: 1fr; }
    .bp-content { padding: 14px 10px; }
    .bp-bridge-wrap { padding: 14px 10px; border-radius: var(--bp-radius-sm); }
    .breadcrumb { font-size: 13px; }
    .bp-portal h1 { font-size: 22px; }
}
