﻿/* ============================================================
   CDL THEME v3.3 – Clean Glass Design
   Stable background • Optimized layering • Modern cards
   Inspired by Apple, Notion & Linear
   ============================================================ */

/* ------------------------------------------------------------
   IMPORTS & VARIABLES
------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary: #b88652; /* edleres, satteres Gold – passt zum 3D-Logo */
    --secondary: #d1a57a; /* weichere, warme Sekundärfarbe */
    --text: #1a1a1a;
    --muted: #666;
    --shadow-soft: 0 8px 32px rgba(0,0,0,0.04);
    --shadow-strong: 0 12px 36px rgba(0,0,0,0.08);
    --radius: 16px;
    --transition: all 0.25s ease-in-out;
}

/* ------------------------------------------------------------
   BASE / STRUCTURE
------------------------------------------------------------ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
    color: var(--text);
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

    /* Fixer Hintergrund-Layer */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 0;
        background: url("../images/bg/bg-dg.jpg") center/cover no-repeat;
        background-attachment: fixed;
        opacity: 1;
    }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    margin-top: 3rem;
    padding: 0 clamp(1rem, 4vw, 4rem);
}

/* ------------------------------------------------------------
   BUY ME A COFFEE
------------------------------------------------------------ */

/* =========================================================
   CDL Floating Buy Me a Coffee Button (Glassy Calm Look)
   ========================================================= */

.buymeacoffee-floating {
    position: fixed;
    bottom: 24px;
    right: 26px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35); /* halbtransparentes Weiß */
    backdrop-filter: blur(16px) saturate(180%);
    border: 2px solid var(--primary); /* dein Gold-Ton */
    color: var(--primary); /* Gold-Icon */
    font-size: 1.8rem;
    text-align: center;
    line-height: 58px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    z-index: 1000;
}

    .buymeacoffee-floating:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.6); /* etwas heller beim Hover */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        color: #fff;
        background-color: var(--primary);
    }


@media (max-width: 768px) {
    .buymeacoffee-floating {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.6rem;
        bottom: 18px;
        right: 18px;
    }
}

.buymeacoffee-tooltip {
    position: fixed;
    bottom: 95px;
    right: 26px;
    background: rgba(255,255,255,0.85);
    color: #5c3a1b;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(5px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
}

.buymeacoffee-floating:hover + .buymeacoffee-tooltip {
    opacity: 1;
    transform: translateY(0);
}


/* ------------------------------------------------------------
   HEADER / NAVBAR
------------------------------------------------------------ */
header.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.navbar-brand img {
    height: 42px;
}

.navbar-nav .nav-link {
    color: var(--text);
    font-weight: 600;
    padding: .6rem 1rem;
    border-radius: 10px;
    transition: var(--transition);
}

    .navbar-nav .nav-link:hover {
        background: rgba(170,108,57,0.08);
        color: var(--primary);
    }

    .navbar-nav .nav-link.active {
        background: rgba(170,108,57,0.12);
        color: var(--primary);
    }

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */
footer.footer {
    flex-shrink: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    padding: 1rem;
}

    footer.footer a {
        color: #444;
        text-decoration: none;
    }

        footer.footer a:hover {
            color: var(--primary);
            text-decoration: underline;
        }

/* ------------------------------------------------------------
   TYPOGRAPHY
------------------------------------------------------------ */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

p {
    font-weight: 500;
    color: #333;
}

/* ------------------------------------------------------------
   HERO / INTRO SECTIONS
------------------------------------------------------------ */
.hero,
.dg-hero {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

    .hero h1 span,
    .dg-hero h1 span {
        color: var(--primary);
    }

.hero-sub {
    color: var(--muted);
    font-size: 1.125rem;
    margin-top: .75rem;
}

/* ------------------------------------------------------------
   DG INDEX SECTION (Card Grid)
------------------------------------------------------------ */
.container.pb-5 {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-top: 2rem !important;
}

/* Cards */
.dg-card .card {
    position: relative;
    z-index: 3;
    background: rgba(255,255,255,0.95);
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    text-align: center;
}

.dg-card:hover .card {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.dg-card img {
    display: block;
    margin: 0 auto;
    max-width: 70%;
    height: auto;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}

.dg-card h5 {
    color: #222 !important;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Reveal always visible (optional smooth reveal JS) */
.reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}

/* ------------------------------------------------------------
   BUTTONS
------------------------------------------------------------ */
.btn-gold {
    background: var(--primary);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: .8rem 1.4rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

    .btn-gold:hover {
        background: var(--secondary);
        transform: translateY(-1px);
    }

.btn-outline-gold {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    padding: .75rem 1.3rem;
    transition: var(--transition);
}

    .btn-outline-gold:hover {
        background: var(--primary);
        color: #fff;
    }

/* ------------------------------------------------------------
   UTILITIES
------------------------------------------------------------ */
.text-gold {
    color: var(--primary) !important;
}

.rounded-xl {
    border-radius: 1.25rem;
}

.shadowhover:hover {
    box-shadow: var(--shadow-strong);
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 768px) {
    .hero, .dg-hero {
        padding: 2.5rem 1rem;
    }

    .dg-card .card-body {
        padding: 1.5rem 1rem;
    }

    .dg-hero h1 {
        font-size: 1.8rem;
    }
}


/* ============================================================
   DG SECTIONS & CONTENT LAYOUT
   Ergänzt für moderne Inhaltsseiten (z. B. Rhino Basics)
   ============================================================ */

.dg-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 4rem auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

    .dg-section h3 {
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .dg-section hr {
        border: 1px solid var(--primary);
        opacity: 0.5;
    }

/* ============================================================
   VIDEO-CARD / RHINO CONTENT BLOCKS
   ============================================================ */

.video-card {
    position: relative;
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    overflow: hidden;
}

.rhino-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    opacity: 0.9;
    z-index: 2;
}

.youtube-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    background: rgba(0,0,0,0.05);
    padding: 2rem;
    font-size: 0.95rem;
}

    .youtube-placeholder p {
        color: var(--muted);
        margin-bottom: 1rem;
    }

    .youtube-placeholder button {
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: .6rem 1.4rem;
        font-weight: 600;
        transition: var(--transition);
    }

        .youtube-placeholder button:hover {
            background: var(--secondary);
        }

/* ============================================================
   INFO BADGE / LABEL ICONS
   ============================================================ */

.info-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    transform: translate(-25%, -25%);
    z-index: 3;
}

    .info-badge img {
        width: 42px;
        height: auto;
    }

/* ============================================================
   DOWNLOAD AREA
   ============================================================ */

.download-area {
    text-align: center;
    margin-top: 2rem;
}

    .download-area .btn-outline-gold {
        min-width: 200px;
    }

/* ============================================================
   RESPONSIVE OPTIMIERUNG
   ============================================================ */

@media (max-width: 768px) {
    .dg-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .video-card {
        padding: 1rem;
    }

    .rhino-badge {
        width: 32px;
    }
}


/* ============================================================
   CDL v3.4 – Ergänzungen für 3D-Viewer + Interaktive DG-Sections
   (Erweitert vorhandene Struktur, keine Konflikte)
   ============================================================ */

/* 3D Viewer Container */
model-viewer {
    display: block;
    width: 100%;
    max-width: 420px;
    height: 420px;
    margin: 1rem auto 2rem auto;
    border-radius: 20px;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    model-viewer:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    }

    /* Fortschrittsbalken einfärben */
    model-viewer::part(default-progress-bar) {
        background-color: var(--primary);
        height: 4px;
    }

/* DG-Sections sanftere Übergänge */
.dg-section {
    scroll-margin-top: 80px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

    .dg-section:hover {
        background: rgba(255,255,255,0.9);
        box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    }

/* Downloadbereich modernisiert */
.download-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

    .download-area .btn-outline-gold {
        min-width: 180px;
    }

/* Responsive Anpassung */
@media (max-width: 768px) {
    model-viewer {
        height: 300px;
        max-width: 100%;
        margin: 1rem 0;
    }
}


/* ============================================================
   CDL DG Tabs v3.4
   Interaktive Sektionen mit Theorie / Video / 3D / Downloads
   ============================================================ */

.dg-tabs-container {
    margin-top: 2rem;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.dg-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

    .dg-tabs button {
        flex: 1;
        padding: 1rem;
        font-weight: 600;
        border: none;
        background: transparent;
        color: var(--text);
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }

        .dg-tabs button:hover {
            background: rgba(170,108,57,0.08);
            color: var(--primary);
        }

        .dg-tabs button.active {
            background: var(--primary);
            color: #fff;
        }

.dg-tab-content {
    padding: 2rem;
    display: block;
}

    .dg-tab-content.hidden {
        display: none;
    }

.cdl-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    color: #555;
}

.cdl-modelviewer {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.chapter-nav {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* ============================================================
   DG Kapitel-Navigation (modernisiert)
   ============================================================ */

.chapter-nav {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-top: -1rem;
    margin-bottom: 2rem;
    box-shadow: inset 0 1px rgba(255,255,255,0.4);
    z-index: 10;
}

    .chapter-nav .link-overview {
        font-weight: 600;
        color: var(--primary);
        text-decoration: none;
        transition: 0.2s;
    }

        .chapter-nav .link-overview:hover {
            text-decoration: underline;
            color: var(--secondary);
        }

.btn-chapter {
    font-weight: 600;
    padding: .55rem 1.1rem;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .chapter-nav .container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: .5rem;
    }

    .btn-chapter {
        width: 100%;
    }
}

/* ============================================================
   CDL Landing Page Styles v3.5 – Unified with DG Look
   ============================================================ */

/* -----------------------------
   HERO SECTION
----------------------------- */
.hero-cdl {
    position: relative;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: clamp(3rem, 6vw, 6rem) 2rem;
    margin: 3rem auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    overflow: hidden;
    z-index: 2;
}

.badge-cdl {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(120deg, #aa6c39, #c39874);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 60ch;
}

.hero-art img {
    width: 100%;
/*    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
*/}

.meta {
    color: var(--muted);
    font-size: 0.9rem;
}

    .meta span {
        margin: 0 4px;
    }

/* -----------------------------
   BUTTONS CTA
----------------------------- */
.btn-cta {
    background: var(--primary);
    color: #fff !important;
    font-weight: 600;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(170,108,57,0.3);
}

    .btn-cta:hover {
        background: var(--secondary);
        transform: translateY(-1px);
    }

.btn-outline-cta {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-weight: 600;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    transition: var(--transition);
}

    .btn-outline-cta:hover {
        background: var(--primary);
        color: #fff;
    }

/* -----------------------------
   FEATURE / BENEFIT CARDS
----------------------------- */
.benefit-card {
    display: flex;
    align-items: flex-start;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: var(--transition);
    height: 100%;
}

    .benefit-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.1);
    }

    .benefit-card .icon {
        font-size: 1.8rem;
        margin-right: 1rem;
        color: var(--primary);
    }

    .benefit-card h3 {
        font-weight: 700;
        margin-bottom: 0.4rem;
    }

/* -----------------------------
   SECTIONS / STEPS
----------------------------- */
.steps-cdl {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    padding: clamp(3rem, 6vw, 5rem) 2rem;
    margin: 4rem auto;
}

.section-title {
    font-weight: 700;
    text-align: center;
    color: var(--text);
    margin-bottom: 2.5rem;
}

.step {
    background: rgba(255,255,255,0.9);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
}

    .step:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    }

    .step .num {
        display: inline-block;
        background: var(--primary);
        color: #fff;
        font-weight: 700;
        font-size: 1.1rem;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        line-height: 32px;
        margin-bottom: 0.8rem;
    }

/* -----------------------------
   CTA SECTION
----------------------------- */
.cta-cdl {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    padding: clamp(3rem, 6vw, 5rem) 1rem;
    border-radius: 22px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    margin: 4rem auto;
    text-align: center;
}

.cta-card {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    text-align: left;
}

    .cta-card h3 {
        font-weight: 700;
        color: var(--text);
    }

    .cta-card p {
        color: var(--muted);
        margin-bottom: 0.3rem;
    }

/* -----------------------------
   RESPONSIVE OPTIMIERUNG
----------------------------- */
@media (max-width: 768px) {
    .hero-cdl {
        padding: 2.5rem 1.5rem;
        text-align: center;
    }

    .benefit-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

        .benefit-card .icon {
            margin: 0 0 0.5rem 0;
        }

    .cta-card {
        text-align: center;
    }

        .cta-card .btn {
            width: 100%;
            margin-top: 0.5rem;
        }
}


/* =========================================================
   CDL 3D-Lab Grid Fix v3.5
   ========================================================= */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 3D Lab Cards */
.lab-card {
    position: relative;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.25s ease-in-out;
    overflow: hidden;
}

    .lab-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    }

/* Card Thumbnail */
.lab-thumb {
    height: 180px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

    .lab-thumb img {
        width: auto;
        height: 90%;
        object-fit: contain;
    }

/* Card Body */
.lab-body {
    padding: 1rem 1.25rem 0.5rem;
    text-align: left;
}

.lab-title-item {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.lab-meta {
    color: #777;
    font-size: 0.9rem;
}

/* Card Actions */
.lab-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem 1rem 1.25rem;
}

/* Badges */
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    font-weight: 600;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    border: 1px solid rgba(0,0,0,0.08);
    background: #f8f8f8;
}

    .badge-soft.ar {
        color: #0a7a3a;
        background: #eaf7ee;
        border-color: #cdeed4;
    }

    .badge-soft.vr {
        color: #0b5ed7;
        background: #e8f1ff;
        border-color: #d1e1ff;
    }

    .badge-soft.view {
        color: #333;
    }

/* Chips */
.chip-premium, .chip-free {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.25rem 0.55rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.75rem;
}

.chip-premium {
    background: #c8a06f;
    color: #fff;
}

.chip-free {
    background: #e7f9eb;
    color: #0a7a3a;
}

/* QR Slot */
.qr-slot {
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.qr-btn {
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    border-radius: 0.4rem;
    padding: 0.3rem 0.6rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.qr-ico {
    width: 24px;
    height: 24px;
    opacity: 0.9;
}

/* Date Label */
.date-chip {
    position: absolute;
    bottom: 0.8rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: #666;
    background: #f8f8f8;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .lab-thumb {
        height: 150px;
    }
}


.btn-gold {
    background: linear-gradient(135deg, #b88652, #cda578);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: .8rem 1.4rem;
    box-shadow: 0 6px 16px rgba(184,134,82,0.35);
    transition: var(--transition);
}


/* =========================================================
   DG – Platonische Körper (CDL v3.5 Glassy)
   Author: Mader Studio
   ========================================================= */

/* ---------------------------------------------------------
   BASE STRUCTURE
--------------------------------------------------------- */
.dg-split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin: 3rem auto;
    max-width: 1400px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    transition: var(--transition);
    overflow: hidden;
}

    /* sanft wechselnde Hintergrundtöne für Abwechslung */
    .dg-split:nth-child(even) {
        background: rgba(255, 255, 255, 0.6);
    }

    .dg-split:nth-child(odd) {
        background: rgba(255, 255, 255, 0.75);
    }

.glassy-split:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* ---------------------------------------------------------
   INFO COLUMN
--------------------------------------------------------- */
.dg-split .info {
    flex: 1;
    padding: clamp(1.5rem, 3vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

    .dg-split .info h2 {
        color: var(--primary);
        font-weight: 700;
        letter-spacing: 0.5px;
        margin-bottom: .25rem;
    }

/* Datenbox: Flächen / Kanten / Ecken / Dualkörper */
.data-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: .9rem 1.2rem;
    font-size: .95rem;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
}

    .data-box div span {
        font-weight: 600;
        color: var(--primary);
    }

/* Textboxen für Zusatzinfos */
.highlight {
    background: rgba(170, 108, 57, 0.08);
    border-left: 4px solid var(--primary);
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .95rem;
    line-height: 1.6;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}

/* Element-Tags (Feuer, Wasser usw.) */
.tag {
    display: inline-block;
    align-self: flex-start;
    margin-top: .5rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    /* Farbvarianten */
    .tag.fire {
        background: linear-gradient(120deg, #e25822, #ffb347);
    }

    .tag.earth {
        background: linear-gradient(120deg, #7a5c2e, #d2b48c);
    }

    .tag.air {
        background: linear-gradient(120deg, #49a9e6, #8ed2f3);
    }

    .tag.aether {
        background: linear-gradient(120deg, #9b59b6, #c39bd3);
    }

    .tag.water {
        background: linear-gradient(120deg, #1976d2, #64b5f6);
    }

/* ---------------------------------------------------------
   VIEWER COLUMN
--------------------------------------------------------- */
.dg-split .viewer {
    flex: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(245,245,245,0.6));
    min-height: 60vh;
}

.dg-split model-viewer {
    width: 100%;
    height: 100%;
    background: transparent;
    --poster-color: transparent;
    --progress-bar-color: var(--primary);
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 992px) {
    .dg-split {
        flex-direction: column;
        margin: 2rem 1rem;
    }

        .dg-split .info {
            padding: 2rem 1.5rem;
        }

        .dg-split .viewer {
            min-height: 45vh;
        }
}

/* =========================================================
   CDL 3.5 – Glassy Grid Styles für DG Index
   ========================================================= */

.dg-glassy-grid {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    padding-inline: clamp(1rem,4vw,3rem);
}

.glass-card {
    display: block;
    border-radius: 20px;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all .3s ease;
    text-align: center;
}

    .glass-card .inner {
        padding: 2rem 1.5rem;
    }

    .glass-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.1);
        background: rgba(255,255,255,0.55);
    }

.text-gradient {
    background: linear-gradient(90deg, var(--primary) 0%, #c39874 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dg-index-spacing {
    height: 8rem;
}


/* =========================================================
   CDL 3.5 – DG Index Polishing & Glassy Layout Fix
   ========================================================= */

.dg-glassy-grid {
    background: rgba(255,255,255,0.28);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-radius: 28px;
    box-shadow: 0 10px 36px rgba(0,0,0,0.08);
    margin: 0 auto;
    max-width: 1600px;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.glass-card {
    display: block;
    border-radius: 22px;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all .3s ease;
    text-align: center;
    height: 100%;
}

    .glass-card .inner {
        padding: 2rem 1.5rem;
    }

    .glass-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.1);
        background: rgba(255,255,255,0.6);
    }

/* Abstand nach unten */
.dg-index-spacing {
    height: clamp(6rem, 10vh, 8rem);
}

/* Light grid shimmer background */
.dg-glassy-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 100%);
    background-size: 200% 200%;
    animation: gridShine 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridShine {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Bildgröße angleichen */
.glass-card img {
    max-width: 70%;
    height: auto;
/*    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.08));
*/}

/* Text-Gradient für Headline */
.text-gradient {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   CDL NAVBAR v3.6 – Modern Glassmorphism Navigation
   ============================================================ */

.glassy-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    background: rgba(255,255,255,0.65);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    /* sanfter Schatten beim Scrollen */
    .glassy-nav.scrolled {
        background: rgba(255,255,255,0.82);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        backdrop-filter: blur(22px);
    }

/* Brand */

/* ============================================================
   CDL NAVBAR v3.7 – Floating Glass Bar
   ============================================================ */

.cdl-navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    background: transparent;
}

/* Floating Container */
.navbar-floating {
    width: min(95%, 1200px);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    border-radius: 22px;
    padding: 0.4rem 1rem;
    transition: all 0.3s ease;
}

    /* Scroll Shrink */
    .navbar-floating.scrolled {
        background: rgba(255,255,255,0.82);
        box-shadow: 0 12px 32px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }

    /* Links */
    .navbar-floating .nav-link {
        color: var(--text);
        font-weight: 600;
        border-radius: 12px;
        padding: 0.6rem 1rem;
        position: relative;
        transition: var(--transition);
    }

        .navbar-floating .nav-link:hover {
            background: rgba(170,108,57,0.08);
            color: var(--primary);
        }

        .navbar-floating .nav-link.active {
            color: var(--primary);
        }

        /* Hover underline */
        .navbar-floating .nav-link::after {
            content: "";
            position: absolute;
            bottom: 4px;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width .25s ease, left .25s ease;
        }

        .navbar-floating .nav-link:hover::after {
            width: 60%;
            left: 20%;
        }

    /* Dropdown glassy style */
    .navbar-floating .dropdown-menu {
        background: rgba(255,255,255,0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255,255,255,0.4);
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        animation: fadeIn 0.2s ease;
    }

    .navbar-floating .dropdown-item {
        font-weight: 500;
        color: var(--text);
        padding: .55rem 1.2rem;
        border-radius: 8px;
    }

        .navbar-floating .dropdown-item:hover {
            background: rgba(170,108,57,0.08);
            color: var(--primary);
        }

/* ------------------------------------------------------------
   Hover Dropdown Smooth Open/Close
   ------------------------------------------------------------ */
@media (min-width: 992px) {
    .navbar-floating .dropdown {
        position: relative;
    }

    .navbar-floating .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }

    .navbar-floating .dropdown.showing .dropdown-menu,
    .navbar-floating .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}


/* Toggler */
.navbar-toggler {
    border: none;
}

    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }

/* FadeIn Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-floating {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
}


/* ============================================================
   CDL NAVBAR v3.8 – Signature Glass Edition
   ============================================================ */

.cdl-navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    padding: 1.25rem 0;
    background: transparent;
    animation: fadeInNav 0.8s ease forwards;
}

/* Floating Nav Container */
.navbar-floating {
    width: min(94%, 1200px);
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 24px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.08);
    padding: 0.4rem 1rem;
    transition: all 0.35s ease;
}

    /* Scroll effect */
    .navbar-floating.scrolled {
        background: rgba(255,255,255,0.8);
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
        transform: translateY(-2px);
    }

    /* Links */
    .navbar-floating .nav-link {
        color: var(--text);
        font-weight: 600;
        border-radius: 12px;
        padding: 0.6rem 1rem;
        position: relative;
        transition: var(--transition);
    }

        .navbar-floating .nav-link:hover {
            background: rgba(170,108,57,0.08);
            color: var(--primary);
        }

        .navbar-floating .nav-link.active {
            color: var(--primary);
        }

        /* Animated underline */
        .navbar-floating .nav-link::after {
            content: "";
            position: absolute;
            bottom: 4px;
            left: 50%;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            transition: width .25s ease, left .25s ease;
        }

        .navbar-floating .nav-link:hover::after {
            width: 60%;
            left: 20%;
        }

    /* Dropdown Glassy */
    .navbar-floating .dropdown-menu {
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255,255,255,0.4);
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        transform-origin: top center;
        transform: translateY(10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
    }

    .navbar-floating .dropdown.showing .dropdown-menu,
    .navbar-floating .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar-floating .dropdown-item {
        font-weight: 500;
        color: var(--text);
        padding: .55rem 1.2rem;
        border-radius: 8px;
    }

        .navbar-floating .dropdown-item:hover {
            background: rgba(170,108,57,0.08);
            color: var(--primary);
        }

    .navbar-floating .dropdown.showing::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 14px;
        background: radial-gradient(circle at center, rgba(184,134,82,0.25) 0%, rgba(184,134,82,0.12) 35%, transparent 80%);
        z-index: -1;
        filter: blur(12px);
        opacity: 0.9;
        transition: opacity 0.3s ease;
    }

/* Hover-Open Smooth Handling */
@media (min-width: 992px) {
    .navbar-floating .dropdown {
        position: relative;
    }
}

/* Login Glass Button */
.btn-login-glass {
    display: inline-block;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(16px);
    color: var(--primary);
    font-weight: 600;
    padding: 0.55rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(170,108,57,0.25);
    box-shadow: 0 4px 14px rgba(170,108,57,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.3), 0 6px 14px rgba(170,108,57,0.15);
}

    .btn-login-glass:hover {
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        color: #fff !important;
        box-shadow: 0 6px 20px rgba(170,108,57,0.3);
        transform: translateY(-1px);
    }

/* Animation */
@keyframes fadeInNav {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Fix */
@media (max-width: 991.98px) {
    .navbar-floating {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: blur(28px) saturate(180%) brightness(1.05);
    }
}


.glassy-hero {
    margin-top: 1.5rem;
    border-radius: 28px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 10px 36px rgba(0,0,0,0.08);
    transition: all .4s ease;
}

    .glassy-hero:hover {
        background: rgba(255,255,255,0.75);
        transform: translateY(-2px);
    }



/* ============================================================
   SESSION CARD STYLES (INLINE ADD-ON)
   ============================================================ */
/*.session-card {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all .3s ease;
    overflow: hidden;
    text-align: left;
}

    .session-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    }

    .session-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .session-card .body {
        padding: 1.4rem 1.5rem 2rem;
    }

    .session-card .meta {
        color: #777;
        font-size: 0.9rem;
    }

    .session-card {
        width: 100%;
        margin-top: .5rem;
        text-align: center;
    }
*/

/* ============================================================
   SESSION CARD STYLES (CDL v3.9 unified)
   ============================================================ */
.session-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: left;
}

    .session-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    }

    .session-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .session-card .body {
        padding: 1.4rem 1.5rem 2rem;
    }

    .session-card .meta {
        color: #777;
        font-size: 0.9rem;
    }

/* zentralisierte Darstellung bei flex-grid Layout */
.session-card {
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
}

    /* Zusatz für neue Badges auf der Live-Lernsessions-Seite */
    .session-card .badge {
        font-size: 0.75rem;
        border-radius: 0.5rem;
        padding: 0.35rem 0.55rem;
    }

/* Responsiver Abstand zwischen den Cards */
@media (max-width: 767.98px) {
    .session-card img {
        height: 160px;
    }

    .session-card .body {
        padding: 1.2rem 1rem 1.5rem;
    }
}


.benefit-card {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.6rem 1.8rem;
    transition: all .3s ease;
    height: 100%;
    text-align: left;
}

    .benefit-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    }

    .benefit-card .icon {
        font-size: 2rem;
        margin-bottom: .5rem;
    }

.cta-card {
    background: rgba(255,255,255,0.9);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* --- Hero darf NICHT über die nächste Section ragen --- */
.hero-cdl, .glassy-hero {
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

    /* Falls dein Hero dekorative :before/:after-Flächen hat: neutralisieren */
    .glassy-hero::before,
    .glassy-hero::after,
    .hero-cdl::before,
    .hero-cdl::after {
        content: none !important;
        display: none !important;
        height: 0 !important;
        pointer-events: none !important;
    }

/* Nächste Abschnitte sicher über dem Background stacken */
section.steps-cdl,
section.cta-cdl,
section.bg-light,
section[data-stack="above"] {
    position: relative;
    z-index: 2;
}

/* Abstände straffen – die große Lücke kommt meist aus kombiniertem py + mt */
.hero-cdl {
    padding-bottom: 1.25rem !important;
}

section.bg-light {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}

/* Sichtbarkeit (falls deine bg-light im Theme helle Schrift erzwingt) */
.bg-light {
    color: var(--text, #1a1a1a) !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23aa6c39' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/* ---------- Navbar-Toggler rechts fixieren ---------- */
.navbar-floating .navbar-toggler {
    order: 3; /* bleibt immer ganz rechts */
    border: none;
    outline: none;
    position: relative;
    top: 0;
    right: 0;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23b88652' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ---------- Dropdown Hover Delay (desktop only) ---------- */
@media (min-width: 992px) {
    .navbar-nav .dropdown {
        position: relative;
    }

    .navbar-nav .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s;
    }

    .navbar-nav .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* leichter Delay beim Verlassen, verhindert „Zuklapp-Flackern“ */
    .navbar-nav .dropdown-menu {
        pointer-events: none;
    }

    .navbar-nav .dropdown:hover > .dropdown-menu {
        pointer-events: auto;
    }
}


/* =========================================================
   SUBJECT CARD STYLE (used in Mathematics, Informatics etc.)
   ========================================================= */
.subject-card {
    background: rgba(255,255,255,0.9);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all .3s ease;
    text-align: left;
}

    .subject-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    }

    .subject-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .subject-card .body {
        padding: 1.4rem 1.5rem 2rem;
    }

        .subject-card .body h5 {
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .subject-card .body p {
            color: #555;
            font-size: 0.95rem;
            line-height: 1.4;
        }


    /* =========================================================
   SUBJECT CARD IMAGE FIX – AIIT & Math Index Harmonisierung
   ========================================================= */
    .subject-card img {
        width: 100%;
        height: 160px;
        object-fit: contain; /* Statt cover: Logos & Icons bleiben ganz sichtbar */
        background: rgba(255,255,255,0.6);
        padding: 1.2rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    /* Optional: für noch eleganteren Effekt mit leichtem Schatten */
    .subject-card img {
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
    }

        /* Für sehr breite Logos (wie HTL Lienz): dynamische Begrenzung */
        .subject-card img[src*="phtl_logo"],
        .subject-card img[src*="logo"] {
            object-fit: scale-down;
            background: rgba(255,255,255,0.7);
        }



/* =========================================================
   NAVBAR – DROPDOWN FIXES & MOBILE DESIGN (v3.9 final)
   ========================================================= */

/* Dropdown sichtbar machen, wenn Bootstrap es öffnet */
.navbar-floating .dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* ---------------------------------------------------------
   MOBILE (collapsed / <992px)
--------------------------------------------------------- */
@media (max-width: 991.98px) {

    /* Dropdown Layout */
    .navbar-floating .dropdown-menu {
        position: static; /* statt absolute Position */
        float: none;
        margin-top: 0.5rem;
        padding: 0.4rem 0.2rem;
        background: rgba(255, 255, 255, 0.95) !important; /* besserer Kontrast */
        backdrop-filter: blur(10px) saturate(120%);
        -webkit-backdrop-filter: blur(10px) saturate(120%);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 12px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    /* Dropdown Items */
    .navbar-floating .dropdown-item {
        color: #222;
        font-weight: 500;
        border-radius: 8px;
        padding: 0.65rem 1.25rem;
        transition: background 0.25s, color 0.25s;
    }

        .navbar-floating .dropdown-item:hover {
            background: rgba(184, 134, 82, 0.1);
            color: var(--primary);
        }

    /* Divider */
    .navbar-floating .dropdown-divider {
        border-color: rgba(0, 0, 0, 0.08);
    }

    /* Hauptlink ("Übersicht") hervorheben */
    .navbar-floating .dropdown-item.fw-semibold {
        background: rgba(184, 134, 82, 0.08);
        border-left: 3px solid var(--primary);
        font-weight: 600;
    }
}


.offer-card {
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .offer-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .offer-card img {
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    }

/* Ensure all main sections stay above fixed body background */
main section {
    position: relative;
    z-index: 2;
}


table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-weight: 600;
    color: var(--text);
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(184, 134, 82, 0.05);
}

.badge {
    font-weight: 600;
    font-size: 0.85rem;
}

/* =========================================================
   CDL TERMIN-BADGES
   ========================================================= */

/* --- Formate --- */
.badge-webinar {
    background: rgba(88, 143, 255, 0.15);
    color: #3366cc;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
}

.badge-gruppe {
    background: rgba(83, 200, 138, 0.15);
    color: #2e9d6e;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
}

.badge-einzel {
    background: rgba(255, 193, 7, 0.15);
    color: #aa6c39;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
}

/* --- Zielgruppen --- */
.badge-schueler {
    background: rgba(170, 108, 57, 0.08);
    color: #aa6c39;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
}

.badge-lehrer {
    background: rgba(60, 60, 60, 0.08);
    color: #333;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
}


/* =========================================================
   DG – Lernmodi Style
   ========================================================= */

.placeholder-box {
    border: 2px dashed rgba(170,108,57,0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    background: rgba(255,255,255,0.6);
}

.learning-steps .learning-step {
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-weight: 500;
}

.learning-steps .badge {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: .5rem;
}


/* CDL 3D-Lab – Polishing */
.lab-thumb model-viewer {
    height: 180px;
    background: rgba(255,255,255,0.9);
    border-radius: 0;
    box-shadow: none;
    transition: transform .3s ease;
}

    .lab-thumb model-viewer:hover {
        transform: scale(1.02);
    }


/* =========================================================
   CSL – Support Section Glassy Style
   ========================================================= */


.support-about, .support-donate {
    background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.5));
    position: relative;
}

.glass-box {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(18px) saturate(160%);
    border-radius: 24px;
    border: 1.5px solid rgba(170,108,57,0.25);
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    padding: 2rem 2.5rem;
    max-width: 800px;
}

    .glass-box h3 {
        color: var(--primary);
    }

.support-donate .btn-gold {
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(170,108,57,0.25);
    transition: all 0.3s ease;
}

    .support-donate .btn-gold:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(170,108,57,0.35);
    }

/* =========================================================
   CDL Support Page Styles
   ========================================================= */

/* =========================================================
   CDL Kontaktformular Stil
   ========================================================= */

.contact-input {
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(170,108,57,0.25);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

    .contact-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.25rem rgba(170,108,57,0.15);
        background: rgba(255, 255, 255, 0.95);
    }



.micro-hero h1 {
    color: #1a1a1a !important;
}

.support-about,
.support-impact,
.support-donate {
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
    position: relative;
}
.support-contact .glass-box {
    max-width: 900px;
}

.glass-box {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(18px) saturate(160%);
    border-radius: 24px;
    border: 1.5px solid rgba(170,108,57,0.25);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    padding: 2rem 2.5rem;
    max-width: 850px;
    transition: all .3s ease;
}

    .glass-box:hover {
        box-shadow: 0 14px 46px rgba(0,0,0,0.08);
        transform: translateY(-2px);
    }

    .glass-box h3, .glass-box h5 {
        color: var(--primary);
    }

.impact-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 22px;
}

    .impact-card .icon {
        font-size: 2.2rem;
        color: var(--primary);
        line-height: 1;
        filter: drop-shadow(0 2px 4px rgba(170,108,57,0.25));
    }

.support-donate .btn-gold {
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(170,108,57,0.25);
    transition: all 0.3s ease;
}

    .support-donate .btn-gold:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(170,108,57,0.35);
    }


.disabled-card {
    position: relative;
    filter: grayscale(0.6);
    opacity: 0.9;
    pointer-events: none;
}

.coming-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.4rem;
    color: #aa6c39;
    border-radius: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.disabled-card:hover .coming-overlay {
    opacity: 1;
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(170,108,57,0.4);
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    color: #aa6c39;
    backdrop-filter: blur(6px);
}
/* =========================================================
   CDL Newsletter Box Style
   ========================================================= */


.newsletter-box {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(170,108,57,0.25);
    border-radius: 1rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}


.newsletter-wrapper {
    background: transparent;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(170, 108, 57, 0.25);
    backdrop-filter: blur(8px);
}

.newsletter-input {
    border-radius: 50px;
    border: 1.5px solid rgba(170, 108, 57, 0.25);
    padding: 0.75rem 1.2rem;
    transition: all 0.3s ease;
}

    .newsletter-input:focus {
        border-color: #aa6c39;
        box-shadow: 0 0 0 0.2rem rgba(170, 108, 57, 0.15);
        outline: none;
    }


.form-check-input {
    border: 1px solid rgba(170, 108, 57, 0.4);
}

.text-gold {
    color: #aa6c39 !important;
}

@media (max-width: 768px) {
    .newsletter-card {
        padding: 2rem;
    }

    .newsletter-input {
        font-size: 1rem;
    }
}

/* === Fix: Hintergrund-Layer darf keine Scroll-Events blockieren === */
body::before {
    pointer-events: none !important;
}

main, header, footer, section, .glassy, .hero-cdl, .dg-section {
    position: relative;
    z-index: 2;
}

/* =========================================================
   CDL Mobile Spacing Fix (Hero & Main Margin)
   ========================================================= */
@media (max-width: 991.98px) {
    main {
        margin-top: 2rem !important; /* vorher 5rem */
    }

    .hero,
    .dg-hero,
    .hero-cdl,
    .glassy-hero {
        margin-top: 1.25rem !important; /* vorher ~3rem */
        padding-top: 2rem !important; /* etwas kompakter */
    }
}


/* ============================================================
   CDL DG – HiQu Grundlagen Polishing v1.0
   ============================================================ */

/* Aufgabenbox im harmonischen CDL-Stil */
.highlight {
    background: rgba(170,108,57,0.06);
    border-left: 4px solid var(--primary);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.04);
}

/* Responsive YouTube-Frame mit weichem Shadow */
.dg-section iframe {
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Reflexionsbox optisch klarer und weicher */
.reflection {
    background: rgba(255,255,255,0.85);
    border-left: 4px solid var(--primary);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    font-size: 0.95rem;
    line-height: 1.6;
}

    .reflection h6 {
        font-weight: 700;
        color: var(--primary);
    }

    .reflection ul {
        margin-bottom: 0;
        padding-left: 1.25rem;
    }

/* Harmonisierung für dg-section-Abstand */
.dg-section {
    padding: clamp(2.5rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
}

    /* Feinheit: gleichmäßige Abstande in Columns */
    .dg-section .row.g-4 > [class*="col-"] {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

/* Playlisttext unter Video zentriert */
.video-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

/* ============================================================
   CDL HiQu Übergang – Goldene Linie
   ============================================================ */
.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(184,134,82,0.4), transparent);
    margin: 2.5rem auto 3rem auto;
    max-width: 900px;
    border-radius: 2px;
}



/* ============================================================
   CDL DG Mode Switcher v4.2 – Clean, Responsive, Glassy Gold
   ============================================================ */

.dg-mode-switch {
    display: flex;
    justify-content: center;
    margin: 3rem auto;
    padding: 1rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    max-width: 850px;
}

.mode-switch-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    width: 100%;
}

.mode-btn {
    flex: 1 1 240px;
    border-radius: 40px;
    border: 2px solid rgba(184,134,82,0.35);
    background: rgba(255,255,255,0.65);
    color: #222;
    font-weight: 600;
    padding: 0.75rem 1.4rem;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.3);
}

    .mode-btn:hover {
        background: rgba(184,134,82,0.15);
        color: var(--primary);
        transform: translateY(-1px);
    }

    .mode-btn.active {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: #fff;
        box-shadow: 0 6px 18px rgba(184,134,82,0.25);
        border-color: rgba(184,134,82,0.4);
    }

/* ============================================================
   CDL DG Mode Switcher v4.3 – Mobile Compact Fix
   ============================================================ */
@media (max-width: 768px) {
    .dg-mode-switch {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
        max-width: 95%;
        box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    }

    .mode-btn {
        width: 100%;
        border-radius: 24px;
        padding: 0.55rem 1rem; /* vorher 0.75rem 1.4rem – jetzt kompakter */
        font-size: 0.95rem; /* Text proportional kleiner */
        line-height: 1.3;
        flex: none;
        max-width: none;
        box-shadow: inset 0 1px 2px rgba(255,255,255,0.2);
    }

        .mode-btn.active {
            box-shadow: 0 3px 10px rgba(184,134,82,0.25);
        }
}



/* ============================================================
   CDL DG Mode Intro – Harmonisiert mit Gold / Glass Look
   ============================================================ */
.dg-mode-intro {
    max-width: 900px;
    margin: 0 auto 2rem;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-radius: 20px;
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(170,108,57,0.15);
}

    .dg-mode-intro h6 {
        font-weight: 700;
        letter-spacing: 0.5px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: .75rem;
        color: var(--primary);
    }

.divider-line {
    display: inline-block;
    height: 2px;
    width: 32px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

.dg-mode-intro p {
    font-weight: 500;
    color: #444;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .dg-mode-intro {
        padding: 1rem 1.2rem;
    }

        .dg-mode-intro p {
            font-size: 0.95rem;
            line-height: 1.5;
        }
}
