/* ==========================================
   IHK Präsentation - Disposition Management
   ========================================== */

:root {
    /* Farben */
    --primary: #714B67;
    --primary-light: #8B6B7F;
    --secondary: #00A09D;
    --accent: #F0BC3E;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    
    /* Fonts */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --slide-padding: 3rem;
}

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

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    color: var(--light);
    min-height: 100vh;
    overflow: hidden;
}

/* Timer Bar */
#timer-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.1);
    z-index: 1000;
}

#timer-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    width: 0%;
    transition: width 1s linear;
}

#timer-display {
    position: fixed;
    top: 10px;
    right: 120px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-code);
    z-index: 1001;
}

/* Navigation */
#slide-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0,0,0,0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    background: var(--secondary);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#slide-counter {
    font-size: 1rem;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.timer-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: var(--gray);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.timer-btn:hover {
    background: var(--secondary);
}

.timer-btn.active {
    background: var(--danger);
}

/* Slides Container */
#presentation {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--slide-padding);
    padding-top: 2rem;
    padding-bottom: 6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100px);
    transition: all 0.5s ease;
    overflow-y: auto;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.slide-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.slide-badge {
    background: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.slide-time {
    color: var(--accent);
    font-weight: 500;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gray-light);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.subtitle {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Content Boxes */
.content-box {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.highlight-box {
    border-left: 4px solid var(--secondary);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 0.5rem 0;
    vertical-align: top;
}

.info-table .label {
    color: var(--accent);
    font-weight: 600;
    width: 120px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.feature-desc {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Architecture Diagram */
.architecture-diagram {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.arch-layer {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.arch-layer.odoo-core {
    border: 2px solid var(--primary);
}

.arch-layer.custom-module {
    border: 2px solid var(--secondary);
    background: rgba(0,160,157,0.1);
}

.layer-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.modules-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.module {
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.module small {
    display: block;
    opacity: 0.8;
    font-size: 0.75rem;
}

.arch-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 0.75rem 0;
}

.module-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.module-list code {
    background: rgba(0,0,0,0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-family: var(--font-code);
    font-size: 0.85rem;
}

/* Code Blocks */
.code-block {
    background: #1e1e3f;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    font-family: var(--font-code);
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: #e0e0e0;
}

/* Syntax Highlighting */
.keyword { color: #c792ea; }
.string { color: #c3e88d; }
.comment { color: #546e7a; font-style: italic; }
.decorator { color: #ffcb6b; }
.function { color: #82aaff; }
.class { color: #ffcb6b; }
.number { color: #f78c6c; }
.builtin { color: #89ddff; }
.tag { color: #f07178; }
.attr { color: #ffcb6b; }
.selector { color: #c792ea; }
.property { color: #80cbc4; }
.value { color: #c3e88d; }
.important { color: #ff5370; }
.at-rule { color: #c792ea; }

.code-explanation {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.badge {
    background: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Kanban Preview */
.kanban-preview {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}

.kanban-column {
    min-width: 180px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 0.75rem;
}

.kanban-column.queue .kanban-header {
    background: var(--gray);
}

.kanban-column.vehicle.ok .kanban-header {
    background: var(--success);
}

.kanban-column.vehicle.warning .kanban-header {
    background: var(--warning);
    color: var(--dark);
}

.kanban-column.vehicle.overloaded .kanban-header {
    background: var(--danger);
}

.kanban-header {
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.kanban-header.danger {
    background: var(--danger) !important;
    animation: pulse-header 2s infinite;
}

@keyframes pulse-header {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,53,69,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(220,53,69,0); }
}

.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin-bottom: 0.25rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--success);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress.warning { background: var(--warning); }
.progress.danger { background: var(--danger); }

.kanban-card {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.kanban-card.assigned {
    background: rgba(0,160,157,0.2);
    border-left: 3px solid var(--secondary);
}

.kanban-card.danger-card {
    background: rgba(220,53,69,0.2);
    border-left: 3px solid var(--danger);
}

.kanban-column.animated {
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,53,69,0.4); }
    50% { box-shadow: 0 0 0 15px rgba(220,53,69,0); }
}

/* Demo Hint */
.demo-hint {
    background: linear-gradient(90deg, var(--primary), transparent);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Demo Action Visual */
.demo-action {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.action-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.2rem;
}

.drag-source, .drag-target {
    background: rgba(255,255,255,0.1);
    padding: 1rem 2rem;
    border-radius: 8px;
}

.drag-target {
    background: rgba(0,160,157,0.2);
    border: 2px dashed var(--secondary);
}

.drag-arrow {
    font-size: 2rem;
    color: var(--accent);
    animation: arrow-bounce 1s infinite;
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* Visual Effects List */
.visual-effects, .visual-effects-list {
    margin-bottom: 1.5rem;
}

.effect-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.effect-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.effect-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.effect-item.warning-effect {
    background: rgba(255,193,7,0.1);
    border-left: 3px solid var(--warning);
}

.effect-item.danger-effect {
    background: rgba(220,53,69,0.1);
    border-left: 3px solid var(--danger);
}

.ve-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ve-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.ve-icon.danger {
    background: var(--danger);
}

.danger-text {
    color: var(--danger);
}

/* API Flow */
.api-flow {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.flow-diagram.vertical {
    flex-direction: column;
}

.flow-step {
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.flow-step.highlight {
    background: var(--secondary);
}

.flow-arrow {
    color: var(--accent);
    font-weight: bold;
}

.flow-arrow-v {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Capacity Display */
.capacity-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.capacity-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.capacity-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.capacity-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.capacity-value small {
    font-size: 0.9rem;
    font-weight: 400;
}

.capacity-value.success { color: var(--success); }
.capacity-value.warning { color: var(--warning); }
.capacity-value.danger { color: var(--danger); }

/* Overload Demo */
.overload-demo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.overload-demo .kanban-column {
    min-width: 220px;
}

/* Design Rationale */
.design-rationale {
    background: linear-gradient(90deg, rgba(0,160,157,0.2), transparent);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    font-size: 0.9rem;
}

/* Truck-Trailer Demo */
.truck-trailer-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}

.vehicle-box {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    min-width: 150px;
}

.vehicle-box.truck {
    border: 2px solid var(--primary);
}

.vehicle-box.trailer {
    border: 2px solid var(--secondary);
}

.vehicle-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.vehicle-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.vehicle-cap {
    font-size: 0.85rem;
    color: var(--gray);
}

.coupling-action {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.couple-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.couple-btn:hover {
    transform: scale(1.05);
    background: var(--primary);
}

.result-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(0,160,157,0.1);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-icon {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.result-content {
    font-size: 1.1rem;
}

/* Workflow Status */
.workflow-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.status-step {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.status-step.active {
    background: var(--secondary);
    font-weight: 600;
}

.status-arrow {
    color: var(--gray);
}

/* Form Preview */
.form-preview {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.form-label {
    width: 100px;
    color: var(--gray);
    font-weight: 500;
}

.form-value {
    font-weight: 500;
}

.stops-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stop-item {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 0.9rem;
}

.stop-item.done {
    background: rgba(40,167,69,0.2);
    border-left: 3px solid var(--success);
}

.stop-item.active {
    background: rgba(255,193,7,0.2);
    border-left: 3px solid var(--warning);
}

/* Tech Table */
.tech-stack {
    margin-bottom: 1.5rem;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.tech-table th {
    background: var(--primary);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}

.tech-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.layer-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.layer-badge.frontend { background: #61dafb; color: #000; }
.layer-badge.styling { background: #cc6699; }
.layer-badge.js { background: #f7df1e; color: #000; }
.layer-badge.backend { background: #3776ab; }
.layer-badge.orm { background: var(--primary); }
.layer-badge.views { background: #e34c26; }

/* Dataflow */
.dataflow {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1rem;
}

.flow-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.flow-box {
    background: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.flow-connector {
    color: var(--accent);
    font-size: 1rem;
}

/* QA Section */
.qa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.qa-section {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.25rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.challenge-item {
    background: rgba(0,0,0,0.2);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.solution {
    color: var(--secondary);
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

.solution code {
    background: rgba(0,0,0,0.3);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-code);
}

/* Extensions */
.extensions {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.25rem;
}

.ext-cards {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.ext-card {
    background: rgba(0,0,0,0.2);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.ext-card:hover {
    transform: translateY(-3px);
    background: rgba(0,160,157,0.2);
}

.ext-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Conclusion Slide */
.center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.conclusion-box {
    background: linear-gradient(135deg, rgba(113,75,103,0.3), rgba(0,160,157,0.3));
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.conclusion-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.conclusion-text {
    font-size: 1.3rem;
    line-height: 1.6;
}

.conclusion-text .highlight {
    color: var(--secondary);
    font-weight: 600;
}

.lessons-learned {
    margin-bottom: 2rem;
}

.lesson-items {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lesson {
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.thank-you {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.thank-you h2 {
    font-size: 1.75rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.questions {
    font-size: 1.2rem;
    color: var(--accent);
}

/* Shortcuts Info */
#shortcuts-info {
    position: fixed;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--gray);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#shortcuts-info:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    :root {
        --slide-padding: 1.5rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.2rem; }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .capacity-display {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qa-grid {
        grid-template-columns: 1fr;
    }
    
    .effect-list {
        grid-template-columns: 1fr;
    }
    
    .truck-trailer-demo {
        flex-direction: column;
    }
    
    #shortcuts-info {
        display: none;
    }
}

/* Print styles for handout */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .slide {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        page-break-after: always;
        height: auto;
    }
    
    #timer-bar, #slide-nav, #shortcuts-info {
        display: none;
    }
}
