/* ============================================================
   Veron Health – Investor-Deck (Vollbild-Slides)
   Eigenes, vom MudBlazor-Theme unabhängiges Styling im
   Veron-Design (Teal/Navy, System-Font, Design-Tokens).
   ============================================================ */

.deck-root {
    --d-ink: #0B1220;
    --d-navy: #0F1B2D;
    --d-teal: #0F766E;
    --d-teal-deep: #134E4A;
    --d-teal-light: #5EEAD4;
    --d-slate: #94A3B8;
    --d-line: rgba(255, 255, 255, 0.10);
    --d-card: rgba(255, 255, 255, 0.04);

    position: fixed;
    inset: 0;
    background: linear-gradient(155deg, #134E4A 0%, #103A44 28%, #0F2A3B 55%, #0F1B2D 100%);
    color: #fff;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ─── Loading / Leerzustand ─────────────────────────────── */
.deck-loading {
    margin: auto;
    text-align: center;
    color: var(--d-slate);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* ─── Top-Bar ───────────────────────────────────────────── */
.deck-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    flex: 0 0 auto;
    z-index: 5;
}
.deck-topbar-back {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}
.deck-topbar-back:hover { color: #fff; }
.deck-topbar-actions { display: flex; gap: 8px; }
.deck-iconbtn {
    width: 38px; height: 38px;
    border: 1px solid var(--d-line);
    background: var(--d-card);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s, border-color 0.15s;
}
.deck-iconbtn:hover { background: rgba(255, 255, 255, 0.10); border-color: var(--d-teal-light); }

/* ─── Bühne ─────────────────────────────────────────────── */
.deck-stage {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 72px;
    min-height: 0;
}

.deck-slide {
    width: 100%;
    max-width: 1100px;
    animation: deck-slide-in 0.4s cubic-bezier(.2, .7, .2, 1);
}
@keyframes deck-slide-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Klick-Zonen links/rechts (unsichtbar) */
.deck-nav-zone {
    position: absolute;
    top: 0; bottom: 0;
    width: 25%;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}
.deck-nav-zone--prev { left: 0; }
.deck-nav-zone--next { right: 0; }
.deck-nav-zone:disabled { cursor: default; }

/* Pfeil-Buttons */
.deck-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--d-line);
    background: var(--d-card);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: background 0.15s, opacity 0.15s;
}
.deck-arrow:hover { background: rgba(255, 255, 255, 0.12); }
.deck-arrow:disabled { opacity: 0.25; cursor: default; }
.deck-arrow--prev { left: 16px; }
.deck-arrow--next { right: 16px; }

/* ─── Cover / Closing ───────────────────────────────────── */
.deck-cover {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.deck-mark { width: 88px; height: 88px; filter: drop-shadow(0 8px 24px rgba(20, 184, 166, 0.25)); }
.deck-mark svg { width: 100%; height: 100%; }
.deck-cover-title {
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0;
}
.deck-cover-sub {
    font-size: clamp(18px, 2.2vw, 26px);
    color: rgba(255, 255, 255, 0.85);
    max-width: 760px;
    margin: 0;
    line-height: 1.45;
}
.deck-cover-meta {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--d-slate);
}

/* ─── Eyebrow ───────────────────────────────────────────── */
.deck-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--d-teal-light);
}

/* ─── Content-Slides ────────────────────────────────────── */
.deck-content { width: 100%; }
.deck-content-head { margin-bottom: 36px; }
.deck-content-title {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 8px 0 0;
}
.deck-content-sub {
    font-size: clamp(16px, 1.8vw, 22px);
    color: rgba(255, 255, 255, 0.78);
    margin: 16px 0 0;
    max-width: 820px;
    line-height: 1.5;
}

/* ─── KPI-Kacheln ───────────────────────────────────────── */
.deck-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}
.deck-metric {
    background: var(--d-card);
    border: 1px solid var(--d-line);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.deck-metric.is-accent {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.35), rgba(19, 78, 74, 0.25));
    border-color: rgba(94, 234, 212, 0.4);
}
.deck-metric-val {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.deck-metric-val.is-pos { color: var(--d-teal-light); }
.deck-metric-val.is-neg { color: #FCA5A5; }
.deck-metric-lbl {
    font-size: 0.85rem;
    color: var(--d-slate);
    font-weight: 500;
}
.deck-metric-hint { font-size: 0.78rem; color: rgba(148, 163, 184, 0.8); }

/* ─── Bullets ───────────────────────────────────────────── */
.deck-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
}
.deck-bullets li {
    position: relative;
    padding-left: 28px;
    font-size: clamp(16px, 1.7vw, 21px);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}
.deck-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--d-teal-light);
}

/* ─── Tabelle ───────────────────────────────────────────── */
.deck-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(14px, 1.4vw, 18px);
}
.deck-table th, .deck-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid var(--d-line);
}
.deck-table th:first-child, .deck-table td:first-child { text-align: left; }
.deck-table thead th {
    color: var(--d-slate);
    font-weight: 600;
    font-size: 0.85em;
}
.deck-table tbody tr.is-highlight {
    font-weight: 700;
}
.deck-table tbody tr.is-highlight td { color: var(--d-teal-light); }

/* ─── Prosa (Markdown-Freitext) ─────────────────────────── */
.deck-prose {
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 860px;
    white-space: pre-wrap;
}

/* ─── Fußleiste ─────────────────────────────────────────── */
.deck-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    z-index: 5;
}
.deck-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.deck-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, transform 0.15s;
}
.deck-dot:hover { background: rgba(255, 255, 255, 0.5); }
.deck-dot.is-active { background: var(--d-teal-light); transform: scale(1.3); }
.deck-counter { font-size: 0.85rem; color: var(--d-slate); font-variant-numeric: tabular-nums; }

/* ─── Übersicht (Speaker-Overview) ──────────────────────── */
.deck-overview {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, 0.92);
    backdrop-filter: blur(8px);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    overflow-y: auto;
}
.deck-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1100px;
    width: 100%;
}
.deck-overview-card {
    background: var(--d-card);
    border: 1px solid var(--d-line);
    border-radius: 14px;
    padding: 18px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.deck-overview-card:hover { border-color: var(--d-teal-light); background: rgba(255, 255, 255, 0.07); }
.deck-overview-card.is-active { border-color: var(--d-teal-light); }
.deck-overview-num { font-size: 0.75rem; color: var(--d-slate); }
.deck-overview-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--d-teal-light); }
.deck-overview-title { font-size: 1rem; font-weight: 600; }

/* ─── Mobile ────────────────────────────────────────────── */
@media (max-width: 640px) {
    .deck-stage { padding: 0 16px; }
    .deck-arrow { display: none; }
}

/* ─── Print: ein Slide pro A4-quer-Seite ────────────────── */
@media print {
    .deck-topbar, .deck-footer, .deck-arrow, .deck-nav-zone, .deck-overview { display: none !important; }
    @page { size: A4 landscape; margin: 0; }
    .deck-root {
        position: static;
        background: #0F1B2D !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .deck-stage { padding: 24mm; }
    .deck-slide { animation: none; max-width: none; }
}
