/* Custom CSS for RevealJS Presentation */
/* Feuerwehr-Design mit professionellem Touch */

:root {
    --background-color: #FFFFFF;
    --primary-color: #C8102E; /* Feuerwehr-Rot */
    --accent-color: #D71920; /* Intensives Rot */
    --secondary-accent: #FFC300; /* Signal-Gelb */
    --text-color: #2B2B2B; /* Anthrazit */
    --secondary-color: #8B8B8B; /* Grau */
    --light-bg: #F5F5F5;
    --success-color: #4CAF50;
    --warning-color: #FBC02D; /* Dunkleres Gelb für besseren Kontrast */
    --danger-color: #C8102E; /* Feuerwehr-Rot */
    --bos-yellow: #FFFDE7; /* Helles Creme statt Gelb - besserer Kontrast */
    --bos-blue: #E3F2FD; /* Echtes Hellblau statt Rosa - besserer Kontrast */
    --dark-bg: #2B2B2B; /* Anthrazit für Kontrast */
}

/* Base Styles */
.reveal {
    font-family: 'Segoe UI', 'Arial', 'Helvetica', sans-serif;
    font-size: 28px;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Headings */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4 {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: none;
    margin-bottom: 0.5em;
}

.reveal h1 {
    font-size: 2.5em;
    margin-bottom: 0.3em;
}

.reveal h2 {
    font-size: 1.8em;
}

.reveal h3 {
    font-size: 1.4em;
    color: var(--accent-color);
}

.reveal h4 {
    font-size: 1.1em;
    font-weight: 500;
}

/* Slide Backgrounds */
.reveal .slides section {
    text-align: left;
    padding: 20px;
}

.reveal .slides section.center {
    text-align: center;
}

/* Title Slide - Feuerwehr-Style */
.reveal .title-slide {
    text-align: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    color: white !important;
}

.reveal .title-slide h1 {
    font-size: 2.2em;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.reveal .title-slide .subtitle {
    font-size: 1.2em;
    color: var(--secondary-accent) !important;
    margin-bottom: 1.5em;
    font-weight: 600;
}

.reveal .title-slide .author {
    font-size: 1em;
    color: white !important;
    margin-bottom: 0.3em;
}

.reveal .title-slide .date {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Lists */
.reveal ul,
.reveal ol {
    margin: 0.5em 0 0.5em 1.5em;
    line-height: 1.6;
}

.reveal ul li,
.reveal ol li {
    margin-bottom: 0.4em;
}

.reveal ul {
    list-style-type: none;
}

.reveal ul li::before {
    content: "▸";
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Feuerwehr-Alternative: Flammen-Symbol */
.reveal ul.fire-bullets li::before {
    content: "🔥";
    font-size: 0.9em;
}

/* Nested lists (sub-bullets) */
.reveal ul ul {
    list-style-type: none;
    margin-top: 0.3em;
}

.reveal ul ul li::before {
    content: "–";
    color: var(--accent-color);
    font-weight: normal;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Strong/Bold */
.reveal strong,
.reveal b {
    color: var(--text-color);
    font-weight: 600;
}

/* Links */
.reveal a {
    color: var(--accent-color);
    text-decoration: none;
}

.reveal a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Code */
.reveal code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background-color: var(--light-bg);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.reveal pre {
    width: 100%;
    margin: 1em 0;
    box-shadow: none;
}

.reveal pre code {
    padding: 1em;
    display: block;
    overflow: auto;
    max-height: 500px;
}

/* Blockquote */
.reveal blockquote {
    background: var(--light-bg);
    border-left: 5px solid var(--accent-color);
    margin: 1em 0;
    padding: 0.5em 1em;
    font-style: italic;
    box-shadow: none;
}

/* Tables */
.reveal table {
    margin: 1em auto;
    border-collapse: collapse;
    font-size: 0.85em;
}

.reveal table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 0.6em 1em;
    font-weight: 600;
}

.reveal table td {
    padding: 0.5em 1em;
    border-bottom: 1px solid var(--secondary-color);
}

.reveal table tr:nth-child(even) {
    background-color: var(--light-bg);
}

/* Custom Utility Classes */

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    align-items: start;
}

.two-column.center-items {
    align-items: center;
}

/* Three Column Layout */
.three-column {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5em;
}

/* Highlight Box - Feuerwehr-Style */
.highlight-box {
    background-color: var(--bos-blue);
    border-left: 5px solid var(--accent-color);
    padding: 1em;
    margin: 1em 0;
    border-radius: 4px;
}

.highlight-box.success {
    background-color: rgba(232, 245, 233, 0.7);
    border-left-color: var(--success-color);
}

.highlight-box.warning {
    background-color: rgba(255, 248, 225, 0.7);
    border-left-color: var(--warning-color);
    border-left-width: 5px;
}

.highlight-box.danger {
    background-color: rgba(255, 235, 238, 0.7);
    border-left-color: var(--danger-color);
    border-left-width: 5px;
}

/* Feuerwehr-Alarm Box */
.highlight-box.fire-alert {
    background: rgba(255, 235, 238, 0.7);
    border-left: 5px solid var(--primary-color);
    border-right: 5px solid var(--secondary-accent);
    font-weight: 500;
}

/* Center Content */
.center-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Text Align Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Font Size Utilities */
.small-text {
    font-size: 0.8em;
}

.smaller-text {
    font-size: 0.7em;
}

.large-text {
    font-size: 1.2em;
}

/* Margin Utilities */
.mt-1 {
    margin-top: 0.5em;
}

.mt-2 {
    margin-top: 1em;
}

.mt-3 {
    margin-top: 1.5em;
}

.mb-1 {
    margin-bottom: 0.5em;
}

.mb-2 {
    margin-bottom: 1em;
}

.mb-3 {
    margin-bottom: 1.5em;
}

/* Compact Slide Layout */
.reveal .compact-slide {
    font-size: 0.9em;
}

.reveal .compact-slide h2 {
    margin-bottom: 0.3em;
    font-size: 1.6em;
}

.reveal .compact-slide ul li {
    margin-bottom: 0.3em;
    line-height: 1.5;
}

.reveal .compact-slide .highlight-box {
    padding: 1em;
    margin: 1em 0;
}

.reveal .compact-slide p {
    margin: 0.4em 0;
}

/* Numbered Sections */
.numbered-list {
    counter-reset: section;
    list-style: none;
    padding-left: 0;
}

.numbered-list li {
    counter-increment: section;
    margin-bottom: 0.8em;
}

.numbered-list li::before {
    content: counter(section) ". ";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5em;
}

/* Priority Labels */
.priority {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    margin-right: 0.5em;
}

.priority-1 {
    background-color: var(--danger-color);
    color: white;
}

.priority-2 {
    background-color: var(--warning-color);
    color: white;
}

.priority-3 {
    background-color: var(--success-color);
    color: white;
}

/* Research Questions */
.research-question {
    background-color: var(--bos-blue);
    padding: 1em;
    margin: 1em 0;
    border-radius: 4px;
    border-left: 4px solid #1976D2;
}

.research-question strong {
    color: #1565C0;
}

/* Key Findings */
.key-finding {
    background-color: var(--bos-yellow);
    padding: 1em;
    margin: 1em 0;
    border-radius: 4px;
    border: 2px solid var(--warning-color);
    border-left: 5px solid var(--warning-color);
}

/* SVG Containers */
.svg-container {
    width: 100%;
    max-width: 100%;
    margin: 1em auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.svg-container svg {
    max-width: 100%;
    height: auto;
}

/* Chart Container */
.chart-container {
    width: 100%;
    max-width: 900px;
    margin: 1em auto;
}

/* Progress Bar Override - Feuerwehr-Style */
.reveal .progress {
    background: var(--secondary-color);
    height: 4px;
}

.reveal .progress span {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-accent) 100%);
}

/* Controls - Feuerwehr-Style */
.reveal .controls {
    color: var(--primary-color);
}

.reveal .controls button:hover {
    color: var(--secondary-accent);
}

/* Slide Number */
.reveal .slide-number {
    color: var(--primary-color);
    font-size: 0.8em;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 4px;
    bottom: 15px;
    left: 15px;
    right: auto;
    font-weight: 500;
}

/* Fragment Animations */
.reveal .slides section .fragment {
    opacity: 0.4;
}

.reveal .slides section .fragment.visible {
    opacity: 1;
}

/* Separator Slide - Feuerwehr-Style */
.separator-slide {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    color: white !important;
    padding: 60px 40px;
}

.separator-slide h2 {
    color: white !important;
    font-size: 2.2em;
    text-align: center;
    padding: 30px 0;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--secondary-accent);
    display: inline-block;
    padding-bottom: 15px;
}

/* Footer (optional) */
.reveal .slide-footer {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.6em;
    color: var(--secondary-color);
}

/* Special: BOS-specific highlights */
.bos-extension {
    background-color: var(--bos-yellow);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-weight: 600;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .reveal {
        font-size: 24px;
    }

    .two-column,
    .three-column {
        grid-template-columns: 1fr;
    }

    .reveal h1 {
        font-size: 2em;
    }

    .reveal h2 {
        font-size: 1.5em;
    }
}

/* Print Styles */
@media print {
    .reveal .controls,
    .reveal .progress,
    .reveal .slide-number {
        display: none !important;
    }

    .reveal .slides section {
        page-break-after: always;
    }

    /* Speaker Notes beim Drucken anzeigen */
    .reveal aside.notes {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        margin-top: 30px;
        padding: 15px 20px;
        background-color: #f8f9fa;
        border-left: 4px solid var(--primary-color);
        border-radius: 4px;
        font-size: 0.6em;
        color: #2B2B2B;
        page-break-inside: avoid;
    }

    .reveal aside.notes::before {
        content: "🎤 Speaker Notes:";
        display: block;
        font-weight: bold;
        color: var(--primary-color);
        margin-bottom: 8px;
        font-size: 1.1em;
    }
}

/* ========================================= */
/* FEUERWEHR-SPEZIFISCHE ELEMENTE */
/* ========================================= */

/* Feuerwehr Badge/Label */
.fire-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin: 0 0.3em;
    box-shadow: 0 2px 4px rgba(200, 16, 46, 0.3);
}

/* Feuerwehr Section Header */
.fire-section-header {
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    color: white;
    padding: 0.5em 1em;
    margin: 1em 0 0.5em 0;
    font-weight: 600;
    border-left: 5px solid var(--secondary-accent);
}

/* Einsatz-Box (wie ein Einsatzprotokoll) */
.einsatz-box {
    background-color: #FFF8E1;
    border: 3px solid var(--secondary-accent);
    border-top: 8px solid var(--primary-color);
    padding: 1em;
    margin: 1em 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.einsatz-box .einsatz-header {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

/* Alarm-Stripe (dekorative Element) */
.alarm-stripe {
    height: 8px;
    background: repeating-linear-gradient(
            45deg,
            var(--primary-color),
            var(--primary-color) 20px,
            var(--secondary-accent) 20px,
            var(--secondary-accent) 40px
    );
    margin: 1em 0;
}

/* Feuerwehr-Icon Container */
.fire-icon {
    font-size: 2em;
    color: var(--primary-color);
    display: inline-block;
    margin-right: 0.3em;
}

/* Status-Indicator (wie Einsatzstatus) */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5em;
}

.status-indicator.einsatz {
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    animation: pulse 1.5s infinite;
}

.status-indicator.bereit {
    background-color: var(--success-color);
}

.status-indicator.pause {
    background-color: var(--secondary-accent);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Feuerwehr-Zitat Box */
.fire-quote {
    background-color: var(--dark-bg);
    color: white;
    padding: 1.5em;
    margin: 1em 0;
    border-left: 5px solid var(--primary-color);
    border-right: 5px solid var(--secondary-accent);
    font-style: italic;
    position: relative;
}

.fire-quote::before {
    content: "🔥";
    font-size: 2em;
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0.3;
}

/* Emergency Button Style */
.emergency-button {
    background: var(--primary-color);
    color: white;
    padding: 0.8em 1.5em;
    border: 3px solid var(--secondary-accent);
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    display: inline-block;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(200, 16, 46, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.emergency-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(200, 16, 46, 0.4);
}
