/* ===================================================
   KI-Präsentationsreihe – Gemeinsames Stylesheet
   =================================================== */

/* --- CSS-Variablen --- */
:root {
    --bg-primary:    #0f172a;
    --bg-secondary:  #1e293b;
    --bg-card:       #1e293b;
    --accent:        #06b6d4;
    --accent-hover:  #0891b2;
    --text-primary:  #f1f5f9;
    --text-secondary:#94a3b8;
    --text-muted:    #64748b;
    --border:        #334155;
    --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(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

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

.site-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    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(--text-primary);
}

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

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

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

.header-sub {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    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(--text-secondary);
    background-color: transparent;
    border: 1px solid var(--border);
    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);
    border-color: var(--accent);
    background-color: rgba(6, 182, 212, 0.07);
    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(--accent);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

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

/* 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(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.overview-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.15);
}

.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(--accent);
}

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

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

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

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

/* 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(--accent);
}

.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(--text-secondary);
}

/* 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(--accent);
    line-height: 1.2;
}

.slide-content p {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    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(--bg-secondary);
    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;
    background: var(--accent);
    color: var(--bg-primary);
    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(--bg-secondary);
    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(--text-primary);
    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: rgba(234, 179, 8, 0.2);  color: #eab308; border: 1px solid #eab308; }
.badge-c  { background: rgba(249, 115, 22, 0.2); color: #f97316; border: 1px solid #f97316; }
.badge-d  { background: rgba(239, 68, 68, 0.2);  color: #ef4444; border: 1px solid #ef4444; }
.badge-dp { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid #f87171; }

/* 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(--bg-secondary);
    border: 1px solid var(--border);
    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(--accent);
}

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

.info-card .card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    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(--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(--text-muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    z-index: 100;
    transition: color var(--transition);
}

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

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

.shortcut-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    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(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    min-width: 320px;
}

.shortcut-box h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    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(--border);
    font-size: 0.9rem;
    gap: 2rem;
}

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

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

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

/* ===================================================
   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(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 1.5rem 1.25rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    width: 100%;
    margin-top: auto;
}

.site-footer a {
    color: var(--accent);
    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(--border);
}

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

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

.impressum-main address {
    font-style: normal;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    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(--accent);
}

/* KI-Hinweis-Box */
.ki-hinweis {
    background: rgba(6, 182, 212, 0.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(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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