/* ===================================================
   KI-Präsentationsreihe – Gemeinsames Stylesheet
   Farb-Tokens identisch zur Haupt-Site (css/yotech24.css)
   und zu akademie/static/css/style.css.
   =================================================== */

/* Einfacher Kopierschutz (wie css/yotech24.css): kein Bilder-Drag, kein
   Markieren von Fließtext. Kein Ersatz für echten Schutz. */
img, svg { -webkit-user-drag: none; user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; -o-user-drag: none; }
body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
/* Ausnahme: Befehle/Code in Folien bleiben markier- und kopierbar */
code, pre { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }

/* --- CSS-Variablen --- */
:root {
    --color-bg:      #ffffff;
    --color-surface: #f5f7fa;
    --line:          #e5edf2;

    --color-primary:   #102a43;
    --color-primary-2: #1b3a5b;

    --color-text:         #0f1e2e;
    --color-text-muted:   #475569;
    --color-text-on-dark: #f5f7fa;

    --accent-light:    #38bdf8;
    --accent-dark:     #1e40af;
    --accent-gradient: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-dark) 100%);
    --accent:          #2563eb;
    --accent-hover:    #1d4ed8;
    --color-on-accent: #ffffff;

    /* Status-Farben Bewertungs-Badges – bewusst unabhängig vom Akzent */
    --success:       #22c55e;
    --warning:       #f59e0b;
    --danger:        #ef4444;

    --font:          system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --transition:    0.4s ease;
    --radius:        0.75rem;
}

/* --- Reset & Basis --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: var(--font);
    background-color: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

/* ===================================================
   SITE-HEADER (yoTech24-Logo + Navigation)
   =================================================== */

.site-header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--color-text);
}

.home-link:hover { opacity: 0.85; }

.site-brand-logo {
    height: 22px;
    width: auto;
    display: block;
}

.header-sep {
    display: block;
    width: 1px;
    height: 18px;
    background-color: var(--line);
}

.header-sub {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.01em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background-color: transparent;
    border: 1px solid var(--line);
    border-radius: 9999px;
    padding: 0.3rem 0.8rem;
    text-decoration: none;
    transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.nav-pill:hover {
    color: var(--accent-hover);
    border-color: rgba(37, 99, 235, .4);
    background-color: rgba(37, 99, 235, .08);
    opacity: 1;
}

/* ===================================================
   ÜBERSICHTSSEITE (index.html)
   =================================================== */

.overview-page {
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
}

.overview-header {
    text-align: center;
    margin-bottom: 3rem;
}

.overview-header h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.overview-header p {
    margin-top: 0.5rem;
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* Karten-Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
}

.overview-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.75rem;
    background: var(--color-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 1px 2px rgba(15,30,46,.06), 0 8px 24px rgba(15,30,46,.06);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.overview-card:hover {
    border-color: rgba(37, 99, 235, .4);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, .18);
}

.overview-card .card-icon {
    font-size: 2rem;
    line-height: 1;
}

.overview-card .card-number {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
}

.overview-card h2 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

.overview-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ===================================================
   PRÄSENTATIONS-LAYOUT
   =================================================== */

/* Container aller Folien */
.presentation {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--color-bg);
}

/* Einzelne Folie */
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    gap: 1rem;
    padding: 3rem clamp(1.5rem, 6vw, 6rem);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateX(60px);
    transition: opacity var(--transition), transform var(--transition);
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.slide.exit {
    opacity: 0;
    transform: translateX(-60px);
}

/* Folien-Typen */
.slide-title {
    text-align: center;
    gap: 1rem;
}

.slide-title .pretitle {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.slide-title h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.slide-title .subtitle {
    font-size: clamp(1rem, 2vw, 1.375rem);
    color: var(--color-text-muted);
}

/* Inhaltsfolie */
.slide-content {
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 900px;
    width: 100%;
}

.slide-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.slide-content p {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 70ch;
}

/* Listen */
.slide-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.slide-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    line-height: 1.5;
}

.slide-list li::before {
    content: "›";
    color: var(--accent);
    font-size: 1.25em;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05em;
}

/* Zwei-Spalten-Layout */
.slide-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
}

/* Highlight-Box */
.highlight-box {
    background: var(--color-surface);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    line-height: 1.6;
}

/* Button "Nächstes Kapitel" */
.next-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background: var(--accent-gradient);
    color: var(--color-on-accent);
    font-weight: 700;
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    text-decoration: none;
    border-radius: 9999px;
    transition: background var(--transition), transform 0.2s;
}

.next-link:hover {
    background: var(--accent-hover);
    transform: translateX(3px);
}

/* Merksatz */
.merksatz {
    background: var(--color-surface);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.75rem;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-style: italic;
    color: var(--color-text);
    max-width: 70ch;
}

/* Bewertungs-Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.badge-b  { background: #fef3c7; color: #92660c; border: 1px solid #fde68a; }
.badge-c  { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.badge-d  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-dp { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* Anbieter-/Vergleichskarten */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 900px;
}

.info-card {
    background: var(--color-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.info-card .card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
}

.info-card .card-value {
    font-size: 1rem;
    font-weight: 600;
}

.info-card .card-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ===================================================
   CHROME: Fortschrittsbalken + Foliennummer
   =================================================== */

/* Fortschrittsbalken */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--accent);
    transition: width var(--transition);
    z-index: 100;
}

/* Foliennummer */
.slide-counter {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    z-index: 100;
    user-select: none;
}

/* Zurück-zur-Übersicht-Button */
.back-link {
    position: fixed;
    top: 1rem;
    left: 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    z-index: 100;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--accent-hover);
}

/* ===================================================
   KEYBOARD-SHORTCUT-OVERLAY
   =================================================== */

.shortcut-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.shortcut-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.shortcut-box {
    background: var(--color-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    min-width: 320px;
    box-shadow: 0 12px 40px rgba(15,30,46,.18);
}

.shortcut-box h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.shortcut-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
    gap: 2rem;
}

.shortcut-row:last-child {
    border-bottom: none;
}

.shortcut-row kbd {
    background: var(--color-surface);
    border: 1px solid var(--line);
    border-radius: 0.25rem;
    padding: 0.15rem 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--color-primary);
}

.shortcut-row span {
    color: var(--color-text-muted);
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .slide {
        padding: 3rem 1.5rem;
    }

    .slide-two-col {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   SITE-FOOTER
   =================================================== */

.site-footer {
    background-color: var(--color-primary);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.5rem 1.25rem;
    text-align: center;
    color: rgba(245,247,250,.68);
    font-size: 0.875rem;
    width: 100%;
    margin-top: auto;
}

.site-footer a {
    color: var(--accent-light);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ===================================================
   IMPRESSUM & DATENSCHUTZ (impressum.html)
   =================================================== */

.impressum-main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem 4rem;
    line-height: 1.7;
}

.impressum-main h1 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.impressum-main h2 {
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--line);
}

.impressum-main h3 {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--color-primary);
}

.impressum-main .impressum-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.impressum-main address {
    font-style: normal;
    background: var(--color-surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem;
    line-height: 1.8;
}

.impressum-main ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.impressum-main li {
    margin-bottom: 0.4rem;
}

.impressum-main a {
    color: var(--color-primary);
}

/* KI-Hinweis-Box */
.ki-hinweis {
    background: rgba(37, 99, 235, .08);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1.1rem;
    margin: 1.5rem 0;
}

.ki-hinweis h2 {
    font-size: 0.9rem;
    margin: 0 0 0.4rem;
    border: none;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ki-hinweis p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}
