/* ══════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════ */
:root {
    --bg: #070b13;
    --panel: #0c1422;
    --accent: #3ee8bb;
    --accent2: #d45af0;
    --gold: #f0c030;
    --danger: #f05a5a;
    --blue: #7878f0;
    --text: #dde2f4;
    --muted: #7a8da0;
    --border: rgba(62, 232, 187, 0.14);
    --sidebar-w: 400px;
    --pad: 52px 60px 36px;
    --fontsize: 15px;
}

/* ══════════════════════════════════════════════
   BASE / RESET
══════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,
body {
    height: 100%;
    overflow: hidden;
    background: var(--bg);
}
body {
    font-family: "Space Mono", monospace;
    font-size: var(--fontsize);
    color: var(--text);
    user-select: none;
}

/* Scan-lines */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 3px,
        rgba(0, 0, 0, 0.022) 3px,
        rgba(0, 0, 0, 0.022) 4px
    );
    pointer-events: none;
    z-index: 9000;
}

/* ══════════════════════════════════════════════
   APP WRAPPER  (Sidebar + Reveal nebeneinander)
══════════════════════════════════════════════ */
#wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: fixed;
    inset: 0;
}

/* ══════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════ */
#atom-sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition:
        width 0.7s cubic-bezier(0.77, 0, 0.175, 1),
        min-width 0.7s cubic-bezier(0.77, 0, 0.175, 1),
        border-right-width 0.7s ease;
}
#atom-sidebar.hidden {
    width: 0 !important;
    min-width: 0 !important;
    border-right-width: 0;
}
#atom-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 50%,
        rgba(62, 232, 187, 0.055) 0%,
        transparent 68%
    );
    pointer-events: none;
}
#atom-sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--accent) 30%,
        var(--accent2) 70%,
        transparent
    );
    opacity: 0.3;
    animation: sidebarPulse 4s ease-in-out infinite;
}
@keyframes sidebarPulse {
    0%,
    100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.5;
    }
}

#atom-era {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
}
#atom-label {
    position: absolute;
    bottom: 22px;
    left: 6px;
    right: 6px;
    text-align: center;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    opacity: 0.8;
    line-height: 1.6;
    transition: all 0.6s ease;
}
canvas#atomCanvas {
    display: block;
    background: var(--panel);
}

/* ══════════════════════════════════════════════
   REVEAL CONTAINER  (nimmt den Rest)
══════════════════════════════════════════════ */
#reveal-container {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

/* ══════════════════════════════════════════════
   REVEAL.JS CORE OVERRIDES
══════════════════════════════════════════════ */
.reveal {
    width: 100% !important;
    height: 100% !important;
    background: var(--bg) !important;
    font-family: "Space Mono", monospace !important;
    color: var(--text) !important;
}

/* Slides-Wrapper → links ausrichten */
.reveal .slides {
    text-align: left !important;
}

/* Jede Section = ganzer Viewport des Containers */
.reveal .slides > section {
    padding: var(--pad) !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Reveal Fortschrittsbalken */
.reveal .progress {
    background: rgba(255, 255, 255, 0.05) !important;
    height: 3px !important;
}
.reveal .progress span {
    background: linear-gradient(
        90deg,
        var(--accent),
        var(--accent2),
        var(--gold)
    ) !important;
}

/* Reveal Steuerungspfeile */
.reveal .controls {
    color: var(--accent) !important;
}
.reveal .controls button {
    color: var(--accent) !important;
}

/* Foliennummer */
.reveal .slide-number {
    background: transparent !important;
    color: var(--muted) !important;
    font-family: "Space Mono", monospace !important;
    font-size: 10px !important;
    letter-spacing: 2px !important;
    right: 14px !important;
    bottom: 14px !important;
}

/* ══════════════════════════════════════════════
   TYPOGRAFIE
══════════════════════════════════════════════ */
.reveal h1 {
    font-family: "Playfair Display", serif !important;
    font-size: clamp(2rem, 3.6vw, 4rem) !important;
    font-weight: 900 !important;
    line-height: 1.04 !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.5px !important;
    color: var(--text) !important;
    text-transform: none !important;
}
.reveal h2 {
    font-family: "Playfair Display", serif !important;
    font-size: clamp(1.3rem, 2.1vw, 2.2rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    margin-bottom: 16px !important;
    color: var(--text) !important;
    text-transform: none !important;
}
.reveal p {
    line-height: 1.9 !important;
    color: var(--muted) !important;
    max-width: 660px !important;
    margin-bottom: 12px !important;
    font-family: "Space Mono", monospace !important;
}
.reveal p b,
.reveal li b {
    font-size: var(--fontsize) !important;
    color: var(--text) !important;
    font-weight: 700 !important;
}

/* ══════════════════════════════════════════════
   UTILITY FARBEN
══════════════════════════════════════════════ */
.hl {
    color: var(--accent);
}
.hl2 {
    color: var(--accent2);
}
.hl3 {
    color: var(--gold);
}
.accent {
    color: var(--accent);
}
.pink {
    color: var(--accent2);
}
.gold {
    color: var(--gold);
}
.red {
    color: var(--danger);
}
.blue {
    color: var(--blue);
}

/* ══════════════════════════════════════════════
   INHALTS-BAUSTEINE
══════════════════════════════════════════════ */
.slide-tag {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    letter-spacing: 3px;
    padding: 4px 13px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
    width: fit-content;
}
.slide-gfs {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--muted);
    margin-bottom: 14px;
    text-transform: uppercase;
}

ul.bullet-list {
    list-style: none;
    margin: 4px 0 8px;
}
ul.bullet-list li {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.8;
    padding: 5px 0 5px 20px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
ul.bullet-list li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
ul.bullet-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 10px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 8px;
    align-items: start;
}

.info-box {
    background: rgba(62, 232, 187, 0.045);
    border: 1px solid rgba(62, 232, 187, 0.12);
    border-left: 3px solid var(--accent);
    padding: 14px 18px;
    border-radius: 2px;
    margin-bottom: 10px;
}
.info-box:last-child {
    margin-bottom: 0;
}
.info-box.pink {
    border-left-color: var(--accent2);
    background: rgba(212, 90, 240, 0.045);
    border-color: rgba(212, 90, 240, 0.12);
}
.info-box.gold {
    border-left-color: var(--gold);
    background: rgba(240, 192, 48, 0.045);
    border-color: rgba(240, 192, 48, 0.12);
}
.info-box .box-title {
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 700;
}
.info-box.pink .box-title {
    color: var(--accent2);
}
.info-box.gold .box-title {
    color: var(--gold);
}
.info-box p {
    font-size: 12.5px !important;
    margin: 0 !important;
    line-height: 1.78 !important;
    max-width: none !important;
}

.year-badge {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(62, 232, 187, 0.16);
    position: absolute;
    right: 60px;
    bottom: 44px;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    letter-spacing: -2px;
}

/* Intro */
.intro-decoration {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Playfair Display", serif;
    font-size: 20vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(62, 232, 187, 0.045);
    user-select: none;
    pointer-events: none;
    line-height: 1;
}
.subtitle-line {
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.subtitle-line::before,
.subtitle-line::after {
    content: "";
    flex: none;
    width: 26px;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
}
.gfs-meta {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.meta-item {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1px;
}
.meta-item span {
    display: block;
    color: var(--text);
    font-size: 12px;
    margin-top: 5px;
    letter-spacing: 0;
}

/* Inhaltsverzeichnis */
.toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}
.toc-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
}
.toc-num {
    font-size: 9px;
    color: var(--accent);
    opacity: 0.8;
    width: 18px;
    flex-shrink: 0;
    font-weight: 700;
}

/* Fragen-Fragezeichen */
.big-q {
    font-family: "Playfair Display", serif;
    font-size: 16vw;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.065;
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-58%);
    line-height: 1;
    user-select: none;
    pointer-events: none;
    animation: floatQ 7s ease-in-out infinite;
}
@keyframes floatQ {
    0%,
    100% {
        transform: translateY(-58%);
    }
    50% {
        transform: translateY(-62%);
    }
}

/* Quellen */
.source-list {
    list-style: none;
}
.source-list li {
    font-size: 11px;
    color: var(--muted);
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.7;
}
.source-list li::before {
    content: "[" attr(data-n) "]  ";
    color: var(--accent);
    font-weight: 700;
}

/* Orbital-Tags */
.orbital-hint {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 9px;
}
.orb-tag {
    font-size: 10px;
    padding: 4px 12px;
    border: 1px solid rgba(62, 232, 187, 0.25);
    color: var(--accent);
    letter-spacing: 1px;
    border-radius: 20px;
}

/* Zeitstrahl */
.timeline {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 48px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--accent2));
    opacity: 0.28;
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 7px 0;
}
.timeline-year {
    font-size: 9.5px;
    color: var(--accent);
    width: 44px;
    flex-shrink: 0;
    text-align: right;
    padding-top: 3px;
    font-weight: 700;
}
.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 8px var(--accent);
}
.timeline-text {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.6;
}
.timeline-text b {
    color: var(--text);
}

/* ══════════════════════════════════════════════
   REVEAL OVERVIEW-MODE STYLING
══════════════════════════════════════════════ */
.reveal.overview {
    background: rgba(7, 11, 19, 0.98) !important;
}
.reveal.overview .slides section {
    border: 1px solid rgba(62, 232, 187, 0.15) !important;
    border-radius: 4px !important;
    background: var(--panel) !important;
    opacity: 0.75 !important;
}
.reveal.overview .slides section:hover {
    border-color: var(--accent) !important;
    opacity: 1 !important;
    box-shadow: 0 0 20px rgba(62, 232, 187, 0.2) !important;
}
.reveal.overview .slides section.present {
    border-color: var(--accent) !important;
    box-shadow:
        0 0 0 2px var(--accent),
        0 0 20px rgba(62, 232, 187, 0.25) !important;
    opacity: 1 !important;
}

/* ══════════════════════════════════════════════
   SPEAKER NOTES
══════════════════════════════════════════════ */
.reveal aside.notes {
    display: none;
}
