:root {
    --bg-color: #0d0d0d;
    --card-color: #1a1a1a;
    --accent-color-1: #00cc99;
    --accent-color-2: #00ffff;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --card-link-color: #fff;
    --card-link-hover: #f107a3;
    --border-color: #2a2a2a;
    --section-color: #e0e0e0;
    --accent-color: #cc33ff;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --card-color: #f5f5f5;
    --text-color: #0d0d0d;
    --text-secondary: #666666;
    --card-link-color: #111;
    --card-link-hover: #7b2ff7;
    --border-color: #e0e0e0;
    --section-color: #bdbdbd;
    --accent-color: #7b2ff7;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--card-color);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Sticky Navigation beim Scrollen */
.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    transition: all 0.3s ease;
}

.nav-links a,
.nav-links a:focus,
.nav-links a:hover,
.nav-links a.active,
[data-theme="light"] .nav-links a,
[data-theme="light"] .nav-links a:focus,
[data-theme="light"] .nav-links a:hover {
  font-weight: 600 !important;
}

.nav-links a {
    color: #fff;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    text-shadow: none;
    transition: all 0.3s ease;
    margin-left: 3rem;
    text-decoration: none;
}

.nav-links a:focus, .nav-links a:hover {
    background: linear-gradient(90deg, #7b2ff7, #f107a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 8px #f107a355;
    text-decoration: none;
}

/* Navigation active/hover/focus: Gradient-Text oder Pink */
.nav-links a.active {
  color: #fff;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  text-shadow: none;
  transition: all 0.3s ease;
}
.nav-links a.active:focus, .nav-links a.active:hover {
  background: linear-gradient(90deg, #7b2ff7, #f107a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 8px #f107a355;
}

[data-theme="light"] .nav-links a {
  color: #111;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  text-shadow: none;
  text-decoration: none;
}
[data-theme="light"] .nav-links a:focus, [data-theme="light"] .nav-links a:hover {
  color: #111;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  text-shadow: none;
  text-decoration: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    background: linear-gradient(to bottom, var(--bg-color) 45%, transparent 90%);
}

.hero-content {
    max-width: 1000px;
}

.floating-text {
    animation: gentle-float 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
}

.cta-button {
    background: linear-gradient(135deg, #7b2ff7, #f107a3);
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    color: #111;
    font-weight: 600;
    cursor: pointer;
    transition: 
        background 0.3s ease-in-out,
        color 0.3s ease-in-out,
        transform 0.3s cubic-bezier(.4,1.4,.6,1),
        letter-spacing 0.3s cubic-bezier(.4,1.4,.6,1);
    margin-top: 3rem;
    box-shadow: 0 0 0 0 rgba(177,50,255,0.18), 0 0 0 0 rgba(241,7,163,0.12);
    animation: cta-glow 3.5s ease-in-out infinite;
    text-decoration: none;
}

@keyframes cta-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(177,50,255,0.18), 0 0 0 0 rgba(241,7,163,0.12);
  }
  40% {
    box-shadow: 0 0 24px 8px rgba(177,50,255,0.28), 0 0 32px 12px rgba(241,7,163,0.18);
  }
  60% {
    box-shadow: 0 0 24px 8px rgba(177,50,255,0.28), 0 0 32px 12px rgba(241,7,163,0.18);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(177,50,255,0.18), 0 0 0 0 rgba(241,7,163,0.12);
  }
}

.cta-button:hover, .cta-button:focus {
    background: linear-gradient(160deg, #7b2ff7, #f107a3);
    color: #fff;
    transform: scale(1.05);
    letter-spacing: 0.04em;
    box-shadow: 0 0 32px 12px rgba(177,50,255,0.22), 0 0 40px 16px rgba(241,7,163,0.18);
}

[data-theme="light"] .cta-button {
    color: #fff;
    text-decoration: none;
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Video Button */
.video-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 30px;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.video-button:hover, .video-button:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.video-icon {
    font-size: 1.2rem;
}

/* Responsive Design für Hero Buttons */
@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */

/* Mobile Navigation (unter 768px) */
@media (max-width: 767px) {
    .navbar {
        padding: 0.5rem 0;
        height: 60px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--card-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        margin: 1rem 0;
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        padding: 1rem 2rem;
        width: 80%;
        text-align: center;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(123, 47, 247, 0.1);
        transform: translateY(-2px);
    }
    
    .dropdown {
        width: 80%;
        margin: 0.5rem 0;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu li {
        margin: 0.5rem 0;
    }
    
    .dropdown-menu a {
        padding: 0.8rem 1rem;
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        background: rgba(123, 47, 247, 0.05);
        border-radius: 8px;
    }
    
    .theme-switch-wrapper {
        margin-left: 1rem;
    }
    
    .theme-switch-label {
        font-size: clamp(0.7rem, 2vw, 0.9rem);
    }
}

/* Mobile Hero Section */
@media (max-width: 767px) {
    .hero {
        padding: 1rem;
        padding-top: 80px; /* Abstand für fixierte Navigation */
    }
    
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    .floating-text {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        line-height: 1.5;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-top: 1.5rem;
    }
    
    .hero-video-button {
        padding: 0.9rem 2rem;
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-top: 1.5rem;
    }
}

/* Mobile Learning Path */
@media (max-width: 767px) {
    .learning-path {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }
    
    .path-card {
        width: 100%;
        min-height: auto;
        margin: 1.5rem 0;
        padding: 1.5rem;
        transform: none !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .path-card.cta-intro-card {
        width: 100%;
        min-height: auto;
        transform: none !important;
    }
    
    .path-card.cta-intro-card:hover {
        transform: scale(1.02) !important;
    }
    
    .connector {
        display: none;
    }
    
    .cta-intro-card h3 {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
    }
    
    .cta-intro-card p {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }
    
    .cta-intro-card .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }
}

/* Mobile Quiz System */
@media (max-width: 767px) {
    .quiz-container {
        padding: 1rem;
        margin-top: 80px;
    }
    
    .quiz-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .quiz-question {
        font-size: clamp(1rem, 4vw, 1.2rem);
        line-height: 1.4;
    }
    
    .quiz-options {
        gap: 0.8rem;
    }
    
    .quiz-option {
        padding: 1rem;
        font-size: clamp(0.9rem, 3vw, 1rem);
        min-height: 60px;
    }
    
    .quiz-button {
        padding: 1rem 2rem;
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin: 1rem 0;
    }
}

/* Mobile Learning Summary */
@media (max-width: 767px) {
    .learning-summary-container {
        padding: 1rem;
        margin-top: 80px;
    }
    
    .summary-header h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .summary-header p {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
        padding: 0 1rem;
    }
    
    .user-name-section,
    .progress-overview,
    .chapters-section,
    .certificate-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .chapters-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .chapter-card {
        padding: 1.5rem;
    }
    
    .chapter-title {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
    
    .input-fields {
        gap: 1rem;
    }
    
    .score-input,
    .difficulty-select,
    .comment-input {
        padding: 0.8rem;
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
    
    .complete-btn {
        padding: 1rem 1.5rem;
        font-size: clamp(1rem, 3vw, 1.1rem);
    }
    
    .download-btn {
        padding: 1.2rem 2rem;
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    }
}

/* Mobile Glossary */
@media (max-width: 767px) {
    .glossary-container {
        padding: 1rem;
        margin-top: 80px;
    }
    
    .glossary-item {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .glossary-term {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
    }
    
    .glossary-definition {
        font-size: clamp(0.9rem, 3vw, 1rem);
        line-height: 1.5;
    }
}

/* Mobile About Page */
@media (max-width: 767px) {
    .about-container {
        padding: 1rem;
        margin-top: 80px;
    }
    
    .about-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .about-section h2 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }
    
    .about-section p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        line-height: 1.6;
    }
}

/* Touch-friendly Buttons */
@media (max-width: 767px) {
    button, .cta-button, .card-link, a[href] {
        min-height: 44px;
        min-width: 44px;
    }
    
    input, select, textarea {
        min-height: 44px;
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
    
    .dropdown-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .nav-links {
        height: 70vh;
        top: 60px;
    }
    
    .hero {
        padding-top: 70px;
    }
    
    .quiz-container,
    .learning-summary-container,
    .glossary-container,
    .about-container {
        margin-top: 70px;
    }
}

/* Tablet Responsive (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .navbar {
        padding: 0.8rem 0;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }
    
    .floating-text {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    
    .path-card {
        width: 90%;
        margin: 1.5rem auto;
        transform: none !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .connector {
        display: none;
    }
    
    .chapters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Große Mobile Geräte (375px - 767px) */
@media (min-width: 375px) and (max-width: 767px) {
    .hero h1 {
        font-size: clamp(2.2rem, 7vw, 2.8rem);
    }
    
    .floating-text {
        font-size: clamp(1rem, 3.5vw, 1.1rem);
    }
    
    .path-card {
        margin: 1.2rem 0;
        padding: 1.2rem;
    }
    
    .cta-button,
    .hero-video-button {
        padding: 0.8rem 1.8rem;
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }
}

/* Sehr kleine Mobile Geräte (unter 375px) */
@media (max-width: 374px) {
    .hero {
        padding: 0.8rem;
        padding-top: 70px;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
        margin-bottom: 1rem;
    }
    
    .floating-text {
        font-size: clamp(0.9rem, 4vw, 1rem);
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .cta-button,
    .hero-video-button {
        padding: 0.7rem 1.5rem;
        font-size: clamp(0.8rem, 4vw, 0.9rem);
        margin-top: 1rem;
    }
    
    .nav-container {
        padding: 0 0.8rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .path-card {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .chapters-grid {
        gap: 1rem;
    }
    
    .chapter-card {
        padding: 1rem;
    }
}

/* Verbesserte Touch-Interaktionen */
@media (max-width: 767px) {
    /* Verhindere Zoom bei Fokus auf Input-Feldern */
    input[type="text"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
    }
    
    /* Größere Touch-Targets für Buttons */
    .cta-button,
    .hero-video-button,
    .quiz-button,
    .complete-btn,
    .download-btn {
        min-height: 48px;
        min-width: 48px;
        touch-action: manipulation;
    }
    
    /* Verbesserte Scroll-Performance */
    .nav-links,
    .dropdown-menu {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Verhindere horizontales Scrollen */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Optimierte Animationen für mobile Geräte */
    .path-card,
    .chapter-card,
    .quiz-card {
        will-change: transform;
        transform: translateZ(0);
    }
}

/* Video Button im Hero-Bereich */
.hero-video-button {
    background: linear-gradient(135deg, #7b2ff7, #f107a3);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(123, 47, 247, 0.3);
    margin-top: 2rem;
}

.hero-video-button:hover, .hero-video-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 47, 247, 0.4);
    background: linear-gradient(135deg, #8b3ff7, #f117b3);
}

.hero-video-button .video-icon {
    font-size: 1.2rem;
}

/* CTA Intro Card als Path-Card (rechts) */
.path-card.cta-intro-card {
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.1), rgba(241, 7, 163, 0.1));
    border: 2px solid rgba(123, 47, 247, 0.3);
    text-align: center;
    width: 380px;
    min-height: 200px;
    transform: translateX(60px) translateY(40px) rotate(0deg);
}

.path-card.cta-intro-card.visible {
    transform: translateX(60px) translateY(40px) rotate(0deg);
}

.path-card.cta-intro-card:hover {
    transform: scale(1.03) translateX(60px) translateY(32px) rotate(0deg);
}

/* Spezielle Styles für die Lernübersicht-Kachel */
.path-card.cta-intro-card#learning-summary-card {
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.1), rgba(241, 7, 163, 0.1));
    border: 2px solid rgba(123, 47, 247, 0.3);
}

.path-card.cta-intro-card#learning-summary-card .cta-button {
    background: linear-gradient(135deg, #7b2ff7, #f107a3);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.path-card.cta-intro-card#learning-summary-card .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 47, 247, 0.4);
    background: linear-gradient(135deg, #8b3ff7, #f117b3);
}

.cta-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.05), rgba(241, 7, 163, 0.05));
    pointer-events: none;
}

.cta-intro-content {
    position: relative;
    z-index: 1;
}

.cta-intro-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #7b2ff7, #f107a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.cta-intro-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.cta-intro-card .cta-button {
    margin-top: 0;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(123, 47, 247, 0.3);
}

.cta-intro-card .cta-button:hover, .cta-intro-card .cta-button:focus {
    box-shadow: 0 8px 25px rgba(123, 47, 247, 0.4);
}

/* Chapters Grid */
.chapters-grid {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.chapter-card {
    background-color: var(--card-color);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.chapter-card:hover {
    transform: translateY(-5px);
}

.chapter-card h3 {
    margin-bottom: 1rem;
}

.card-link {
    color: var(--card-link-color, #fff) !important;
    font-weight: 600;
    display: inline-block;
    margin-top: 1.5rem;
    text-decoration: none;
    transition: color 0.2s;
    vertical-align: middle;
}

.card-link:hover {
    color: var(--card-link-hover, #f107a3) !important;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--card-color);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* Neuer Theme-Schalter */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.theme-switch {
    display: inline-block;
    height: 22px;
    position: relative;
    width: 40px;
}
.theme-switch input {
    display: none;
}
.slider {
    background-color: #333;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}
.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 14px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 14px;
}
input:checked + .slider {
    background: linear-gradient(135deg, #7b2ff7, #f107a3);
}
input:checked + .slider:before {
    transform: translateX(18px);
}
.slider.round {
    border-radius: 22px;
}
.slider.round:before {
    border-radius: 50%;
}
.theme-switch-label {
    font-size: 0.8rem;
    font-weight: 500;
}
[data-theme="light"] .theme-switch-label {
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chapter-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Image Placeholder */
.image-placeholder,
.image-placeholder.highlight-border-dashed {
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: none !important;
}
.chapter-img {
  margin-top: 3.5rem !important;
  margin-bottom: 3.5rem !important;
  border: none !important;
  box-shadow: 0 8px 48px 0 #f107a3cc, 0 0 32px 0 #7b2ff7cc;
}
@media (max-width: 700px) {
  .chapter-img {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
}

/* Chapter Content Styles */
.chapter-content {
    padding-top: 80px;
    min-height: 100vh;
    background: #000000;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: #000000;
}

.chapter-section {
    margin-bottom: 3rem;
}

.chapter-section h2 {
    margin-bottom: 1.5rem;
}

.chapter-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.chapter-section ul {
    list-style-type: none;
    padding-left: 1rem;
}

.chapter-section ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.chapter-section ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    background: linear-gradient(90deg, #f107a3, #7b2ff7) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

.quiz-section {
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.quiz-placeholder {
  padding: 2.5rem 2rem;
  max-width: 700px;
  margin: 2.5rem auto;
  box-sizing: border-box;
  word-break: break-word;
  border: 2px solid #f107a3;
  border-radius: 14px;
  background: var(--card-color);
  box-shadow: 0 0 16px 0 #f107a355;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quiz-container {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.flashcard {
  width: 100%;
  min-height: 220px;
  max-width: 100%;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  word-break: break-word;
  background: #18181b;
  border-radius: 12px;
  box-shadow: 0 2px 12px #0004;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quiz-question {
  margin-bottom: 2cm;
  font-size: 1.35rem;
  color: #fff;
  word-break: break-word;
  text-align: left;
  font-weight: 600;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 480px;
  margin: 2.5cm auto 1.5rem auto;
}
.quiz-option {
  padding: 1.1rem 1rem;
  background: #23232a;
  border: 2px solid #3a3a3a;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  word-break: break-word;
  text-align: left;
  font-size: 1.08rem;
  box-shadow: 0 1px 4px #0002;
}
.quiz-option.selected,
.quiz-option.correct {
  color: #fff;
}
.quiz-explanation {
  margin-top: 2rem;
  color: #f107a3;
  font-size: 1.13rem;
  background: #18181b;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 8px #f107a322;
  text-align: left;
}
.progress-bar {
  margin-bottom: 2.2rem;
}
.progress-text {
  margin-bottom: 1.2rem;
  font-size: 1.08rem;
}
.quiz-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
  justify-content: center;
}
@media (max-width: 700px) {
  .quiz-placeholder {
    padding: 1.2rem 0.5rem;
    max-width: 99vw;
    border-radius: 8px;
  }
  .quiz-container {
    max-width: 99vw;
    padding: 0;
  }
  .flashcard {
    padding: 1.2rem 0.5rem;
    min-height: 160px;
    border-radius: 7px;
  }
  .quiz-options {
    max-width: 99vw;
  }
  .quiz-explanation {
    font-size: 1rem;
    padding: 0.7rem 0.5rem;
  }
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
}

.nav-button {
    background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-2));
    color: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.nav-button:hover {
    transform: translateY(-3px);
}

/* Quiz Styles */
.quiz-container {
    max-width: 800px;
    margin: 2rem auto;
    perspective: 1000px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7b2ff7, #f107a3);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-bottom: 1rem;
    color: #888;
}

.flashcard {
    width: 100%;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flashcard-back {
    transform: rotateY(180deg);
    background: #1a1a1a;
}

.quiz-question {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.quiz-option {
    padding: 1rem;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-option:hover {
    background: #3a3a3a;
    border-image: linear-gradient(90deg, #7b2ff7, #f107a3) 1;
}

.quiz-option.selected,
.quiz-option.correct {
    background: linear-gradient(90deg, #7b2ff7, #f107a3);
    border-color: #f107a3;
    color: #1a1a1a;
}

.quiz-option.incorrect {
    background: #ff4444;
    border-color: #ff4444;
    color: white;
}

.quiz-explanation {
    margin-top: 1.5rem;
    color: #888;
    font-size: 1.1rem;
}

.quiz-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.quiz-button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(90deg, #7b2ff7, #f107a3);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quiz-button:hover {
    background: linear-gradient(90deg, #a259f7, #f76ecb);
    box-shadow: 0 0 12px #f107a3, 0 2px 16px #7b2ff744;
    color: #fff;
    transform: scale(1.04);
}

.quiz-button:disabled {
    background: #2a2a2a;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.quiz-complete {
    text-align: center;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 12px;
    margin-top: 2rem;
}

.quiz-complete h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: transparent;
    background: linear-gradient(135deg, #7b2ff7, #f107a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-complete p {
    color: #888;
    margin-bottom: 1.5rem;
}

.completion-badge {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Gradient-Text für violett/blau zu rosa/lila */
.gradient-text {
  color: #fff;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
}

.wave-text {
  display: inline-block;
  cursor: pointer;
}

.wave-letter {
  display: inline-block;
  animation: float-wave 4s ease-in-out infinite alternate;
  will-change: transform;
}

.wave-letter:nth-child(1)  { animation-delay: 0s; }
.wave-letter:nth-child(2)  { animation-delay: 0.08s; }
.wave-letter:nth-child(3)  { animation-delay: 0.16s; }
.wave-letter:nth-child(4)  { animation-delay: 0.24s; }
.wave-letter:nth-child(5)  { animation-delay: 0.32s; }
.wave-letter:nth-child(6)  { animation-delay: 0.40s; }
.wave-letter:nth-child(7)  { animation-delay: 0.48s; }
.wave-letter:nth-child(8)  { animation-delay: 0.56s; }
.wave-letter:nth-child(9)  { animation-delay: 0.64s; }
.wave-letter:nth-child(10) { animation-delay: 0.72s; }
.wave-letter:nth-child(11) { animation-delay: 0.80s; }
.wave-letter:nth-child(12) { animation-delay: 0.88s; }
.wave-letter:nth-child(13) { animation-delay: 0.96s; }
.wave-letter:nth-child(14) { animation-delay: 1.04s; }
.wave-letter:nth-child(15) { animation-delay: 1.12s; }
.wave-letter:nth-child(16) { animation-delay: 1.20s; }
.wave-letter:nth-child(17) { animation-delay: 1.28s; }
.wave-letter:nth-child(18) { animation-delay: 1.36s; }
.wave-letter:nth-child(19) { animation-delay: 1.44s; }
.wave-letter:nth-child(20) { animation-delay: 1.52s; }
.wave-letter:nth-child(21) { animation-delay: 1.60s; }
.wave-letter:nth-child(22) { animation-delay: 1.68s; }
.wave-letter:nth-child(23) { animation-delay: 1.76s; }
.wave-letter:nth-child(24) { animation-delay: 1.84s; }
.wave-letter:nth-child(25) { animation-delay: 1.92s; }

@keyframes float-wave {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(-8px); }
  50%  { transform: translateY(0); }
  80%  { transform: translateY(8px); }
  100% { transform: translateY(0); }
}

.wave-text:hover .wave-letter {
  animation-name: float-wave-strong;
  filter: drop-shadow(0 2px 8px #f107a3aa);
}
@keyframes float-wave-strong {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(-14px); }
  50%  { transform: translateY(0); }
  80%  { transform: translateY(14px); }
  100% { transform: translateY(0); }
}

.learning-path {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.start-node {
  text-align: center;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}
.path-card {
  position: relative;
  width: 340px;
  min-height: 180px;
  background: var(--card-color);
  border-radius: 18px;
  margin: 2.5rem 0;
  box-shadow: 0 4px 24px #000a;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  z-index: 1;
  padding: 2rem;
  box-sizing: border-box;
}
.path-card.left {
  left: 0;
  margin-right: auto;
  transform: translateX(-60px) translateY(40px) rotate(-2deg);
}
.path-card.right {
  right: 0;
  margin-left: auto;
  transform: translateX(60px) translateY(40px) rotate(2deg);
}
.path-card.visible {
  opacity: 1;
  transform: translateX(0) translateY(0) rotate(0);
  transition: all 0.7s cubic-bezier(.4,1.4,.6,1);
}
.path-card:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: 0 8px 32px #f107a3aa, 0 2px 16px #7b2ff7aa;
  z-index: 2;
}
.connector {
  display: block;
  margin: 0 auto;
  z-index: 0;
}
@media (max-width: 900px) {
  .learning-path { max-width: 98vw; }
  .path-card { width: 90vw; min-width: 0; }
  .path-card.cta-intro-card { width: 90vw; min-width: 0; }
}
@media (max-width: 700px) {
  .path-card, .path-card.left, .path-card.right, .path-card.cta-intro-card {
    width: 98vw;
    left: 0; right: 0;
    margin: 2rem auto;
    transform: none;
  }
  .connector { display: none; }
}

.gradient-button {
  background: linear-gradient(90deg, #7b2ff7, #f107a3);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 1rem 2rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
  box-shadow: 0 0 0 0 #f107a3;
}
.gradient-button:hover, .gradient-button:focus {
  filter: brightness(1.08);
  box-shadow: 0 0 12px #f107a3, 0 2px 16px #7b2ff744;
  color: #fff;
  transform: scale(1.04);
}

.highlight-border {
  border: 2px solid #f107a3 !important;
  border-radius: 10px;
}
.highlight-border-dashed {
  border: 2px solid #f107a3 !important;
  border-radius: 10px;
}

/* Buttons, Quiz-Optionen, Inputs: Focus/Active/Selected */
.gradient-button:focus, .gradient-button:active,
.nav-button:focus, .nav-button:active,
.quiz-button:focus, .quiz-button:active {
  outline: none;
  box-shadow: 0 0 16px #f107a3, 0 2px 16px #7b2ff744;
  filter: brightness(1.12);
  transition: all 0.3s ease;
}
.quiz-option:focus, .quiz-option:active {
  outline: none;
  box-shadow: 0 0 12px #f107a3, 0 2px 16px #7b2ff744;
  border-color: #f107a3;
  transition: all 0.3s ease;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #f107a3;
  box-shadow: 0 0 8px #f107a3;
  transition: all 0.3s ease;
}

/* Quiz Placeholder & Frames */
.quiz-placeholder, .quiz-section, .image-placeholder {
  background: var(--card-color);
  border: 2px solid #f107a3;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 0 0 0 #f107a3;
  transition: box-shadow 0.3s;
}
.quiz-placeholder:hover, .quiz-section:hover, .image-placeholder:hover {
  box-shadow: 0 0 12px #f107a3, 0 2px 16px #7b2ff744;
}

/* Remove old green borders/colors */
.progress-fill {
    background: linear-gradient(90deg, #7b2ff7, #f107a3);
}
.quiz-option.selected,
.quiz-option.correct {
    background: linear-gradient(90deg, #7b2ff7, #f107a3);
    border-color: #f107a3;
    color: #1a1a1a;
}
.quiz-option:hover {
    border-image: linear-gradient(90deg, #7b2ff7, #f107a3) 1;
}
.quiz-button {
    background: linear-gradient(90deg, #7b2ff7, #f107a3);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}
.quiz-button:hover {
    background: linear-gradient(90deg, #a259f7, #f76ecb);
    box-shadow: 0 0 12px #f107a3, 0 2px 16px #7b2ff744;
    color: #fff;
    transform: scale(1.04);
}

.confetti-container {
  pointer-events: none;
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  z-index: 10;
  overflow: visible;
}
.confetti {
  position: absolute;
  top: -24px;
  border-radius: 3px;
  animation: confetti-fall 2.8s cubic-bezier(.6,0,.7,1) forwards;
  will-change: transform, opacity;
}
@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(340px) rotate(360deg) scale(0.85);
    opacity: 0;
  }
}
.quiz-complete {
  position: relative;
  overflow: visible;
}

.quiz-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2.2rem;
  letter-spacing: 0.01em;
}

.quiz-section h2,
.chapter-section h2.quiz-center {
  text-align: center;
  margin-top: 2cm;
}

[data-theme='light'] .quiz-question,
[data-theme='light'] .quiz-option,
[data-theme='light'] .quiz-explanation,
[data-theme='light'] .quiz-title,
[data-theme='light'] .progress-text {
  color: #18181b;
}
[data-theme='light'] .quiz-option.selected,
[data-theme='light'] .quiz-option.correct {
  color: #fff;
}
[data-theme='light'] .quiz-complete h3 {
  color: transparent;
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme='light'] .quiz-explanation {
  background: #fff;
}
[data-theme='light'] .flashcard,
[data-theme='light'] .flashcard-back,
[data-theme='light'] .quiz-complete {
  background: #fff;
}
[data-theme='light'] .quiz-option {
  background: #f3f3f7;
  border-color: #e0e0e0;
}
[data-theme='light'] .quiz-option.selected,
[data-theme='light'] .quiz-option.correct {
  background: linear-gradient(90deg, #7b2ff7, #f107a3);
  border-color: #f107a3;
  color: #fff;
}
[data-theme='light'] .quiz-option.incorrect {
  background: #ff4444;
  border-color: #ff4444;
  color: #fff;
}
[data-theme='light'] .quiz-button {
  color: #fff;
}

/* Dropdown-Menü für Kapitel */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-toggle::after {
  content: "▾";
  font-size: 0.8em;
  transition: transform 0.2s ease;
}

.dropdown.open .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 250px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--card-color);
  border: 1px solid var(--text-secondary);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: var(--bg-color);
}

/* Scrollbar für das Dropdown-Menü */
.dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--text-color);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .dropdown-menu {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 50vh;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* --- Crypto Ticker Banner --- */
.crypto-ticker {
  width: 100%;
  margin: 0 auto;
  margin-top: 80px;
  margin-bottom: 32px;
  height: 60px;
  background: linear-gradient(to right, #cc33ff, #9933ff);
  color: #f0f0f0;
  font-family: 'Inter', 'Orbitron', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 12px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 4px 24px 0 rgba(153,51,255,0.10);
  position: relative;
  z-index: 10;
  padding: 0 32px;
}
.crypto-ticker__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 32s linear infinite;
}
.crypto-ticker__track span {
  display: inline-flex;
  align-items: center;
  padding-right: 64px;
  letter-spacing: 0.01em;
}
.crypto-ticker:hover .crypto-ticker__track {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
@media (max-width: 700px) {
  .crypto-ticker {
    height: 48px;
    font-size: 1rem;
    padding: 0 12px;
    margin-top: 64px;
  }
  .crypto-ticker__track {
    animation-duration: 48s;
  }
  .crypto-ticker__track span {
    padding-right: 32px;
  }
}

.ticker-icon {
  vertical-align: middle;
  margin-right: 0.5em;
  margin-left: 0.1em;
  width: 1.6em;
  height: 1.6em;
  stroke: url(#ticker-gradient);
  display: inline-block;
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 2px #fff8);
  stroke-width: 2.8;
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .image-placeholder,
  .highlight-border-dashed {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  img {
    filter: none !important;
    box-shadow: none !important;
    background: none !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 1em auto !important;
  }
  .gradient-text {
    background: none !important;
    color: #000 !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
  }
}

/* Animierte Kapitelbilder */
.chapter-img {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  border-radius: 22px;
  box-shadow: 0 4px 32px 0 #7b2ff7aa, 0 0 0 0 #f107a355;
  transition: 
    opacity 0.9s cubic-bezier(.4,1.4,.6,1),
    transform 0.9s cubic-bezier(.4,1.4,.6,1),
    box-shadow 0.5s cubic-bezier(.4,1.4,.6,1);
  background: rgba(255,255,255,0.01);
  outline: none;
  position: relative;
}
.chapter-img.faded-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 8px 48px 0 #f107a3cc, 0 0 32px 0 #7b2ff7cc;
}
.chapter-img:hover, .chapter-img:focus {
  animation: float-img 3.5s ease-in-out infinite alternate;
  box-shadow: 0 12px 64px 0 #f107a3cc, 0 0 48px 0 #7b2ff7cc, 0 0 0 6px #f107a355;
  outline: none;
}
@keyframes float-img {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-18px) scale(1.025); }
  100% { transform: translateY(0) scale(1); }
}

/* Für dunklen Hintergrund harmonisch */
.chapter-img {
  background: linear-gradient(135deg, #18181b 80%, #7b2ff7 100%);
  filter: drop-shadow(0 0 16px #f107a355) drop-shadow(0 0 8px #7b2ff7aa);
}
[data-theme='light'] .chapter-img {
  background: linear-gradient(135deg, #fff 80%, #f107a3 100%);
  filter: drop-shadow(0 0 12px #f107a355) drop-shadow(0 0 6px #7b2ff7aa);
}

.chapter-intro {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.7;
}

[data-theme='light'] .chapter-intro {
    color: #555;
}

.quote {
  opacity: 0;
  transform: translate(-60vw, 80px) scale(0.98) rotate(-6deg);
  transition: none;
}
.quote-animate {
  animation: quote-flyin-curve 2.2s cubic-bezier(.77,0,.18,1) 0.1s both;
}
@keyframes quote-flyin-curve {
  0% {
    opacity: 0;
    transform: translate(-60vw, 80px) scale(0.98) rotate(-6deg);
  }
  20% {
    opacity: 0.7;
    transform: translate(-30vw, 40px) scale(1.01) rotate(-2deg);
  }
  45% {
    opacity: 1;
    transform: translate(8vw, -18px) scale(1.03) rotate(2deg);
  }
  70% {
    opacity: 1;
    transform: translate(-2vw, 8px) scale(1.01) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

/* Completion Notification */
.completion-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(123, 47, 247, 0.3);
  z-index: 10000;
  animation: slideInRight 0.5s ease-out;
  max-width: 350px;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.notification-icon {
  font-size: 1.5rem;
}

.notification-text {
  flex: 1;
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .completion-notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* --- Galaxy Background --- */
#galaxy-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c0812;
    overflow: hidden;
    z-index: -10;
    max-width: 100vw;
    max-height: 100vh;
}

#star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    border-radius: 50%;
    animation: twinkle linear infinite;
    z-index: -2;
}

.star::before,
.star::after {
    content: '';
    position: absolute;
    border-radius: 2px;
}
.star::before { /* Horizontal */
    width: 400%;
    height: 30%;
    top: 35%;
    left: -150%;
}
.star::after { /* Vertical */
    width: 30%;
    height: 400%;
    top: -150%;
    left: 35%;
}

/* TYPE 1: White Star - Small */
.star.type-1 {
    background: #ffffff;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.5), /* Ring */
        0 0 4px 1px #fff,
        0 0 8px 3px rgba(255, 255, 255, 0.7);
    min-width: 1px;
    min-height: 1px;
    max-width: 3px;
    max-height: 3px;
}
.star.type-1::before {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
}
.star.type-1::after {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
}

/* TYPE 2: Pink Star - Medium */
.star.type-2 {
    background: #fce7f3;
    box-shadow: 
        0 0 0 1px rgba(236, 72, 153, 0.5), /* Ring */
        0 0 4px 1px #fff,
        0 0 8px 3px rgba(236, 72, 153, 0.7);
    min-width: 2px;
    min-height: 2px;
    max-width: 4px;
    max-height: 4px;
}
.star.type-2::before {
    background: linear-gradient(to right, transparent, rgba(236, 72, 153, 0.5), transparent);
}
.star.type-2::after {
    background: linear-gradient(to bottom, transparent, rgba(236, 72, 153, 0.5), transparent);
}

/* TYPE 3: White Star - Large */
.star.type-3 {
    background: #ffffff;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.5), /* Ring */
        0 0 4px 1px #fff,
        0 0 8px 3px rgba(255, 255, 255, 0.7);
    min-width: 3px;
    min-height: 3px;
    max-width: 5px;
    max-height: 5px;
}
.star.type-3::before {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
}
.star.type-3::after {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
}

/* TYPE 4: Pink Star - Extra Large */
.star.type-4 {
    background: #fdf2f8;
    box-shadow: 
        0 0 0 1px rgba(219, 39, 119, 0.5), /* Ring */
        0 0 4px 1px #fff,
        0 0 8px 3px rgba(219, 39, 119, 0.7);
    min-width: 4px;
    min-height: 4px;
    max-width: 6px;
    max-height: 6px;
}
.star.type-4::before {
    background: linear-gradient(to right, transparent, rgba(219, 39, 119, 0.5), transparent);
}
.star.type-4::after {
    background: linear-gradient(to bottom, transparent, rgba(219, 39, 119, 0.5), transparent);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.7; transform: scale(0.9); filter: brightness(0.9); }
    50% { opacity: 1; transform: scale(1); filter: brightness(1.1); }
}

/* Nebula clouds - more complex and layered */
.nebula {
    position: absolute;
    inset: 0;
    background: 
        /* Soft Pink core */
        radial-gradient(ellipse at 40% 50%, hsla(330, 60%, 70%, 0.25) 0%, hsla(330, 60%, 70%, 0) 40%),
        /* Blueish haze */
        radial-gradient(ellipse at 60% 55%, hsla(240, 70%, 60%, 0.25) 0%, hsla(240, 70%, 60%, 0) 50%),
        /* Soft Pink highlights */
        radial-gradient(ellipse at 25% 40%, hsla(340, 70%, 75%, 0.15) 0%, hsla(340, 70%, 75%, 0) 45%),
        /* General purple glow */
        radial-gradient(ellipse at 70% 30%, hsla(280, 60%, 30%, 0.3) 0%, hsla(280, 60%, 30%, 0) 60%);
    z-index: -8;
    animation: move-nebula-1 120s linear infinite alternate;
}

.nebula::before, .nebula::after {
    position: absolute;
    inset: 0;
    z-index: -7;
}

.nebula::before {
    background:
        radial-gradient(ellipse at 55% 45%, hsla(320, 70%, 70%, 0.15) 0%, hsla(320, 70%, 70%, 0) 50%),
        radial-gradient(ellipse at 30% 60%, hsla(200, 80%, 50%, 0.2) 0%, hsla(200, 80%, 50%, 0) 50%);
    animation: move-nebula-2 150s linear infinite alternate;
}

.nebula::after {
    background: 
        radial-gradient(ellipse at 45% 55%, hsla(340, 70%, 75%, 0.1) 0%, hsla(340, 70%, 75%, 0) 40%);
    animation: move-nebula-3 180s linear infinite alternate;
}




[data-theme="light"] #galaxy-bg {
    background: linear-gradient(180deg, #eaf0fa 0%, #f7f7ff 100%) !important;
    filter: none !important;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

@keyframes move-deep-stars {
    from { background-position: 0 0; }
    to { background-position: -5000px 2500px; }
}

@keyframes move-nebula-1 {
    from { transform: rotate(0deg) scale(1.5); }
    to { transform: rotate(180deg) scale(2.0); }
}
@keyframes move-nebula-2 {
    from { transform: rotate(0deg) scale(1.2); }
    to { transform: rotate(-180deg) scale(1.6); }
}
@keyframes move-nebula-3 {
    from { transform: translateX(0) scale(1.0); }
    to { transform: translateX(200px) scale(1.4); }
}

/* --- Floating Planets --- */
.planets {
    position: absolute;
    inset: 0;
    z-index: -6;
    pointer-events: none;
    overflow: hidden;
}

.planet {
    position: absolute;
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(123, 47, 247, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Planet 1 - Purple with horizontal stripes */
.planet-1 {
    width: 60px;
    height: 60px;
    background: 
        linear-gradient(0deg, 
            #8B5CF6 0%, #A78BFA 20%, 
            #C4B5FD 40%, #A78BFA 60%, 
            #8B5CF6 80%, #7C3AED 100%);
    top: 15%;
    z-index: -5;
    animation: float-planet-1 45s linear infinite;
}

/* Planet 2 - Jupiter-like orange and brown */
.planet-2 {
    width: 80px;
    height: 80px;
    background: 
        linear-gradient(0deg, 
            #F97316 0%, #FB923C 15%, 
            #FED7AA 30%, #FB923C 45%, 
            #F97316 60%, #EA580C 75%, 
            #FED7AA 90%, #F97316 100%);
    top: 35%;
    z-index: -7;
    animation: float-planet-2 60s linear infinite;
}

/* Planet 3 - Yellow to orange gradient */
.planet-3 {
    width: 50px;
    height: 50px;
    background: 
        radial-gradient(circle at 30% 30%, 
            #FCD34D 0%, #F59E0B 50%, 
            #D97706 100%);
    top: 55%;
    z-index: -4;
    animation: float-planet-3 35s linear infinite;
}

/* Planet 4 - Red and yellow stripes */
.planet-4 {
    width: 70px;
    height: 70px;
    background: 
        linear-gradient(0deg, 
            #EF4444 0%, #FCA5A5 20%, 
            #FCD34D 40%, #FCA5A5 60%, 
            #EF4444 80%, #DC2626 100%);
    top: 75%;
    z-index: -6;
    animation: float-planet-4 50s linear infinite;
}

/* Planet 5 - Light blue with ring */
.planet-5 {
    width: 65px;
    height: 65px;
    background: 
        radial-gradient(circle at 40% 40%, 
            #93C5FD 0%, #60A5FA 50%, 
            #3B82F6 100%);
    top: 25%;
    z-index: -3;
    animation: float-planet-5 55s linear infinite;
}

.planet-5::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 20px;
    background: 
        linear-gradient(90deg, 
            #3B82F6 0%, #60A5FA 25%, 
            #93C5FD 50%, #60A5FA 75%, 
            #3B82F6 100%);
    border-radius: 50%;
    z-index: -1;
    box-shadow: 
        0 0 15px rgba(59, 130, 246, 0.6),
        0 0 30px rgba(59, 130, 246, 0.4),
        0 0 45px rgba(59, 130, 246, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    filter: blur(0.5px);
}

/* Planet 6 - Teal with green ring */
.planet-6 {
    width: 55px;
    height: 55px;
    background: 
        radial-gradient(circle at 35% 35%, 
            #5EEAD4 0%, #14B8A6 50%, 
            #0D9488 100%);
    top: 65%;
    z-index: -8;
    animation: float-planet-6 40s linear infinite;
}

.planet-6::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(15deg);
    width: 85px;
    height: 15px;
    background: linear-gradient(90deg, #86EFAC, #4ADE80);
    border-radius: 50%;
    z-index: -1;
}

/* Planet floating animations */
@keyframes float-planet-1 {
    from { transform: translateX(-100px); }
    to { transform: translateX(calc(100vw + 100px)); }
}

@keyframes float-planet-2 {
    from { transform: translateX(calc(100vw + 120px)); }
    to { transform: translateX(-120px); }
}

@keyframes float-planet-3 {
    from { transform: translateX(calc(50vw - 40px)); }
    to { transform: translateX(calc(100vw + 80px)); }
}

@keyframes float-planet-4 {
    from { transform: translateX(calc(100vw + 110px)); }
    to { transform: translateX(-110px); }
}

@keyframes float-planet-5 {
    from { transform: translateX(calc(25vw - 47px)); }
    to { transform: translateX(calc(100vw + 95px)); }
}

@keyframes float-planet-6 {
    from { transform: translateX(calc(75vw - 42px)); }
    to { transform: translateX(calc(100vw + 85px)); }
}



/* --- Stylized Galaxy --- */
.stylized-galaxy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    width: 400px;
    height: 300px;
    z-index: -7;
    pointer-events: none;
}

/* Galaxy Core - Bright center with glow */
.galaxy-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 60px;
    background: 
        radial-gradient(ellipse 40px 30px at 50% 50%,
            rgba(255, 255, 255, 1) 0%,
            rgba(173, 216, 230, 0.95) 20%,
            rgba(100, 150, 255, 0.8) 40%,
            rgba(123, 47, 247, 0.6) 60%,
            transparent 80%);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(173, 216, 230, 0.6),
        0 0 60px rgba(100, 150, 255, 0.4);
    animation: core-pulse 4s ease-in-out infinite;
}

/* Spiral Arm 1 - Main spiral */
.galaxy-spiral-1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 200px;
    background: 
        conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            rgba(173, 216, 230, 0.9) 30deg,
            rgba(100, 150, 255, 0.8) 60deg,
            rgba(123, 47, 247, 0.7) 90deg,
            rgba(241, 7, 163, 0.6) 120deg,
            rgba(255, 182, 193, 0.5) 150deg,
            transparent 180deg,
            rgba(173, 216, 230, 0.7) 210deg,
            rgba(100, 150, 255, 0.6) 240deg,
            rgba(123, 47, 247, 0.5) 270deg,
            rgba(241, 7, 163, 0.4) 300deg,
            transparent 330deg,
            rgba(173, 216, 230, 0.8) 360deg);
    border-radius: 50%;
    animation: spiral-rotate 30s linear infinite;
    filter: blur(0.5px);
}

/* Spiral Arm 2 - Secondary spiral */
.galaxy-spiral-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 150px;
    background: 
        conic-gradient(from 45deg at 50% 50%,
            transparent 0deg,
            rgba(100, 150, 255, 0.8) 45deg,
            rgba(123, 47, 247, 0.7) 90deg,
            rgba(241, 7, 163, 0.6) 135deg,
            rgba(255, 182, 193, 0.5) 180deg,
            transparent 225deg,
            rgba(100, 150, 255, 0.6) 270deg,
            rgba(123, 47, 247, 0.5) 315deg,
            transparent 360deg);
    border-radius: 50%;
    animation: spiral-rotate 25s linear infinite reverse;
    filter: blur(0.8px);
}

/* Spiral Arm 3 - Outer spiral */
.galaxy-spiral-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 250px;
    background: 
        conic-gradient(from 90deg at 50% 50%,
            transparent 0deg,
            rgba(123, 47, 247, 0.6) 60deg,
            rgba(241, 7, 163, 0.5) 120deg,
            rgba(255, 182, 193, 0.4) 180deg,
            transparent 240deg,
            rgba(123, 47, 247, 0.4) 300deg,
            transparent 360deg);
    border-radius: 50%;
    animation: spiral-rotate 35s linear infinite;
    filter: blur(1px);
}

/* Galaxy Dust - Small particles around the galaxy */
.galaxy-dust {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.9) 50%, transparent 50%),
        radial-gradient(1px 1px at 35% 25%, rgba(173, 216, 230, 0.8) 50%, transparent 50%),
        radial-gradient(1px 1px at 50% 20%, rgba(100, 150, 255, 0.7) 50%, transparent 50%),
        radial-gradient(1px 1px at 65% 35%, rgba(123, 47, 247, 0.8) 50%, transparent 50%),
        radial-gradient(1px 1px at 80% 30%, rgba(241, 7, 163, 0.7) 50%, transparent 50%),
        radial-gradient(1px 1px at 25% 70%, rgba(255, 255, 255, 0.8) 50%, transparent 50%),
        radial-gradient(1px 1px at 40% 75%, rgba(173, 216, 230, 0.7) 50%, transparent 50%),
        radial-gradient(1px 1px at 55% 80%, rgba(100, 150, 255, 0.6) 50%, transparent 50%),
        radial-gradient(1px 1px at 70% 65%, rgba(123, 47, 247, 0.7) 50%, transparent 50%),
        radial-gradient(1px 1px at 85% 70%, rgba(241, 7, 163, 0.6) 50%, transparent 50%),
        radial-gradient(1px 1px at 15% 50%, rgba(255, 182, 193, 0.8) 50%, transparent 50%),
        radial-gradient(1px 1px at 30% 45%, rgba(173, 216, 230, 0.7) 50%, transparent 50%),
        radial-gradient(1px 1px at 45% 55%, rgba(100, 150, 255, 0.6) 50%, transparent 50%),
        radial-gradient(1px 1px at 60% 40%, rgba(123, 47, 247, 0.7) 50%, transparent 50%),
        radial-gradient(1px 1px at 75% 60%, rgba(241, 7, 163, 0.6) 50%, transparent 50%),
        radial-gradient(1px 1px at 90% 45%, rgba(255, 182, 193, 0.7) 50%, transparent 50%);
    animation: dust-float 20s ease-in-out infinite;
}

/* Galaxy Particles - Larger glowing particles */
.galaxy-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 25% 35%, rgba(255, 255, 255, 0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 45% 15%, rgba(173, 216, 230, 0.8) 50%, transparent 50%),
        radial-gradient(2px 2px at 65% 25%, rgba(100, 150, 255, 0.7) 50%, transparent 50%),
        radial-gradient(2px 2px at 85% 35%, rgba(123, 47, 247, 0.8) 50%, transparent 50%),
        radial-gradient(2px 2px at 15% 65%, rgba(241, 7, 163, 0.7) 50%, transparent 50%),
        radial-gradient(2px 2px at 35% 75%, rgba(255, 182, 193, 0.8) 50%, transparent 50%),
        radial-gradient(2px 2px at 55% 85%, rgba(173, 216, 230, 0.7) 50%, transparent 50%),
        radial-gradient(2px 2px at 75% 75%, rgba(100, 150, 255, 0.6) 50%, transparent 50%),
        radial-gradient(2px 2px at 95% 65%, rgba(123, 47, 247, 0.7) 50%, transparent 50%);
    animation: particles-glow 8s ease-in-out infinite;
}

/* Galaxy Nebula - Background nebula structures */
.galaxy-nebula {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse 150px 100px at 30% 40%, 
            rgba(123, 47, 247, 0.1) 0%, 
            rgba(241, 7, 163, 0.05) 50%, 
            transparent 80%),
        radial-gradient(ellipse 120px 80px at 70% 60%, 
            rgba(100, 150, 255, 0.08) 0%, 
            rgba(173, 216, 230, 0.04) 60%, 
            transparent 90%),
        radial-gradient(ellipse 100px 60px at 20% 80%, 
            rgba(255, 182, 193, 0.06) 0%, 
            rgba(241, 7, 163, 0.03) 70%, 
            transparent 85%);
    animation: nebula-drift 40s ease-in-out infinite;
    filter: blur(3px);
}

/* Animations */
@keyframes core-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes spiral-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes dust-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    25% { 
        transform: translateY(-5px) rotate(1deg);
        opacity: 1;
    }
    50% { 
        transform: translateY(3px) rotate(-1deg);
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-2px) rotate(0.5deg);
        opacity: 1;
    }
}

@keyframes particles-glow {
    0%, 100% { 
        opacity: 0.7;
        filter: brightness(1);
    }
    50% { 
        opacity: 1;
        filter: brightness(1.3);
    }
}

@keyframes nebula-drift {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translate(-10px, -5px) rotate(1deg);
        opacity: 0.4;
    }
    50% { 
        transform: translate(5px, -10px) rotate(-1deg);
        opacity: 0.3;
    }
    75% { 
        transform: translate(-5px, 5px) rotate(0.5deg);
        opacity: 0.4;
    }
}



/* --- Shooting Stars --- */
.shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -5; /* In front of most things, but behind planets */
}

.shooting-star {
    position: absolute;
    height: 3px;
    background: linear-gradient(-45deg, rgba(200, 180, 255, 0.8), rgba(0, 0, 0, 0));
    filter: drop-shadow(0 0 8px rgba(220, 200, 255, 0.8));
    /* Animation properties are now set by JS */
}

@keyframes shooting-star-fly-left {
    0% {
        transform: rotate(var(--angle, 0deg)) translateX(0);
        opacity: 1;
    }
    100% {
        transform: rotate(var(--angle, 0deg)) translateX(150vw);
        opacity: 0;
    }
}

@keyframes shooting-star-fly-right {
    0% {
        transform: rotate(var(--angle, 0deg)) translateX(0);
        opacity: 1;
    }
    100% {
        transform: rotate(var(--angle, 0deg)) translateX(-150vw);
        opacity: 0;
    }
}

/* Light Theme Anpassungen für alle Elemente */
[data-theme="light"] .chapter-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .chapter-card:hover {
    background: var(--section-color);
    border-color: var(--accent-color);
}

[data-theme="light"] .card-link {
    color: var(--card-link-color);
}

[data-theme="light"] .card-link:hover {
    color: var(--card-link-hover);
}

[data-theme="light"] .path-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .path-card:hover {
    background: var(--section-color);
    border-color: var(--accent-color);
}

[data-theme="light"] .chapter-content {
    background: #ffffff;
    color: var(--text-color);
}

[data-theme="light"] .container {
    background: #ffffff;
    color: var(--text-color);
}

[data-theme="light"] .chapter-section {
    background: var(--bg-color);
    color: var(--text-color);
}

[data-theme="light"] .chapter-section h2 {
    color: var(--text-color);
}

[data-theme="light"] .chapter-section p {
    color: var(--text-color);
}

[data-theme="light"] .chapter-section ul {
    color: var(--text-color);
}

[data-theme="light"] .chapter-section ul li {
    color: var(--text-color);
}

[data-theme="light"] .chapter-section ul li:before {
    color: var(--accent-color);
}

[data-theme="light"] .quiz-section {
    background: var(--bg-color);
    color: var(--text-color);
}

[data-theme="light"] .quiz-placeholder {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .quiz-container {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .flashcard {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .quiz-question {
    color: var(--text-color);
}

[data-theme="light"] .quiz-options {
    background: var(--card-color);
    color: var(--text-color);
}

[data-theme="light"] .quiz-option {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .quiz-option:hover {
    background: var(--section-color);
    border-color: var(--accent-color);
}

[data-theme="light"] .quiz-option.selected {
    background: var(--accent-color);
    color: #fff;
}

[data-theme="light"] .quiz-option.correct {
    background: #00cc99;
    color: #fff;
}

[data-theme="light"] .quiz-option.incorrect {
    background: #ff6b6b;
    color: #fff;
}

[data-theme="light"] .quiz-explanation {
    background: var(--card-color);
    color: var(--text-color);
}

[data-theme="light"] .quiz-buttons {
    background: var(--card-color);
    color: var(--text-color);
}

[data-theme="light"] .quiz-button {
    background: var(--accent-color);
    color: #fff;
}

[data-theme="light"] .quiz-button:hover {
    background: var(--card-link-hover);
    color: #fff;
}

[data-theme="light"] .quiz-button:disabled {
    background: var(--text-secondary);
    color: var(--bg-color);
}

[data-theme="light"] .quiz-complete {
    background: var(--card-color);
    color: var(--text-color);
}

[data-theme="light"] .quiz-complete h3 {
    color: var(--text-color);
}

[data-theme="light"] .quiz-complete p {
    color: var(--text-color);
}

[data-theme="light"] .completion-badge {
    color: var(--accent-color);
}

[data-theme="light"] .progress-bar {
    background: var(--border-color);
}

[data-theme="light"] .progress-fill {
    background: linear-gradient(90deg, var(--accent-color), var(--card-link-hover));
}

[data-theme="light"] .progress-text {
    color: var(--text-color);
}

[data-theme="light"] .navigation-buttons {
    background: var(--bg-color);
    color: var(--text-color);
}

[data-theme="light"] .nav-button {
    background: var(--accent-color);
    color: #fff;
}

[data-theme="light"] .nav-button:hover {
    background: var(--card-link-hover);
    color: #fff;
}

[data-theme="light"] .gradient-button {
    background: linear-gradient(135deg, var(--accent-color), var(--card-link-hover));
    color: #fff;
}

[data-theme="light"] .gradient-button:hover {
    background: linear-gradient(135deg, var(--card-link-hover), var(--accent-color));
    color: #fff;
}

[data-theme="light"] .highlight-border {
    border-color: var(--accent-color);
}

[data-theme="light"] .highlight-border-dashed {
    border-color: var(--accent-color);
}

[data-theme="light"] .dropdown-menu {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .dropdown-menu a {
    color: var(--text-color);
}

[data-theme="light"] .dropdown-menu a:hover {
    background: var(--section-color);
    color: var(--bg-color);
}

[data-theme="light"] .crypto-ticker {
    background: var(--card-color);
    color: var(--text-color);
}

[data-theme="light"] .crypto-ticker__track {
    color: var(--text-color);
}

[data-theme="light"] .crypto-ticker__track span {
    color: var(--text-color);
}

[data-theme="light"] .chapter-img {
    border: 1px solid var(--border-color);
}

[data-theme="light"] .chapter-intro {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .quote {
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.1), rgba(241, 7, 163, 0.1));
    color: var(--accent-color);
    border-left: 4px solid var(--card-link-hover);
}

[data-theme="light"] .completion-notification {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .notification-content {
    color: var(--text-color);
}

[data-theme="light"] .notification-text {
    color: var(--text-color);
}

[data-theme="light"] .notification-close {
    color: var(--text-color);
}

[data-theme="light"] .notification-close:hover {
    color: var(--accent-color);
}

[data-theme="light"] #galaxy-bg {
    background: linear-gradient(180deg, #eaf0fa 0%, #f7f7ff 100%) !important;
    filter: none !important;
}

[data-theme="light"] .star {
    background: #b0b0b0;
    box-shadow: 0 0 0 1px #b0b0b0, 0 0 4px 1px #fff, 0 0 8px 3px #b0b0b0;
}

[data-theme="light"] .star.type-1 {
    background: #b3d1f7;
    box-shadow: 0 0 0 1px #b3d1f7, 0 0 4px 1px #fff, 0 0 8px 3px #b3d1f7;
}

[data-theme="light"] .star.type-2 {
    background: #eecff7;
    box-shadow: 0 0 0 1px #eecff7, 0 0 4px 1px #fff, 0 0 8px 3px #eecff7;
}

[data-theme="light"] .star.type-3 {
    background: #fff3c1;
    box-shadow: 0 0 0 1px #fff3c1, 0 0 4px 1px #fff, 0 0 8px 3px #fff3c1;
}

[data-theme="light"] .star.type-4 {
    background: #e3d1f7;
    box-shadow: 0 0 0 1px #e3d1f7, 0 0 4px 1px #fff, 0 0 8px 3px #e3d1f7;
}

[data-theme="light"] .nebula {
    opacity: 0.25;
    filter: saturate(0.7) brightness(1.2);
}

[data-theme="light"] .planet {
    filter: brightness(0.85) saturate(0.7);
    box-shadow: 0 0 32px 8px #b3d1f7cc;
}

[data-theme="light"] .shooting-star {
    background: linear-gradient(-45deg, #b3d1f7cc, rgba(0,0,0,0));
    filter: drop-shadow(0 0 8px #b3d1f7cc);
}

/* Light Theme für Footer */
[data-theme="light"] footer {
    background: var(--card-color);
    color: var(--text-color);
}

[data-theme="light"] .footer-content {
    color: var(--text-color);
}

[data-theme="light"] .footer-section h4 {
    color: var(--text-color);
}

[data-theme="light"] .footer-section a {
    color: var(--text-color);
}

[data-theme="light"] .footer-section a:hover {
    color: var(--accent-color);
}

[data-theme="light"] .footer-bottom {
    color: var(--text-secondary);
}

/* Light Theme für Summary/Übersicht */
[data-theme="light"] .summary-container {
    background: var(--bg-color);
    color: var(--text-color);
}

[data-theme="light"] .summary-header {
    color: var(--text-color);
}

[data-theme="light"] .summary-header h1 {
    color: var(--text-color);
}

[data-theme="light"] .chapter-result {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .chapter-title {
    color: var(--text-color);
}

[data-theme="light"] .chapter-score {
    color: var(--text-secondary);
}

[data-theme="light"] .progress-bar-mini {
    background: var(--border-color);
}

[data-theme="light"] .summary-stats {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .stat-number {
    color: var(--text-color);
}

[data-theme="light"] .stat-label {
    color: var(--text-secondary);
}

[data-theme="light"] .certificate-section {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .certificate-section h2 {
    color: var(--text-color);
}

[data-theme="light"] .name-input {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .certificate-form {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .certificate-form label {
    color: var(--text-color);
}

[data-theme="light"] .certificate-form input {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .certificate-preview {
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.1), rgba(241, 7, 163, 0.1));
    border: 1px solid var(--accent-color);
    color: var(--text-color);
}

[data-theme="light"] .certificate-preview h3 {
    color: var(--accent-color);
}

/* Performance Summary Styles */
.performance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.performance-item {
    text-align: center;
    padding: 1rem;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.performance-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.performance-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.performance-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

[data-theme="light"] .performance-summary {
    color: var(--text-color);
}

[data-theme="light"] .performance-item {
    color: var(--text-color);
}

[data-theme="light"] .performance-number {
    color: var(--text-color);
}

[data-theme="light"] .performance-label {
    color: var(--text-secondary);
}

[data-theme="light"] .gradient-text {
  color: #111 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
} 

/* Dunkle Scrollbar im Dark Mode */
html[data-theme="dark"]::-webkit-scrollbar, body[data-theme="dark"]::-webkit-scrollbar {
    width: 14px;
    background: #181818;
}
html[data-theme="dark"]::-webkit-scrollbar-thumb, body[data-theme="dark"]::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 8px;
    border: 3px solid #181818;
}
html[data-theme="dark"]::-webkit-scrollbar-thumb:hover, body[data-theme="dark"]::-webkit-scrollbar-thumb:hover {
    background: #444;
}
html[data-theme="dark"]::-webkit-scrollbar-track, body[data-theme="dark"]::-webkit-scrollbar-track {
    background: #181818;
}
html[data-theme="dark"], body[data-theme="dark"] {
    scrollbar-color: #333 #181818; /* Für Firefox */
    scrollbar-width: thin;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.loading-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00ffff, #7b2ff7, #f107a3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: title-glow 2s ease-in-out infinite alternate;
}

.loading-subtitle {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(123, 47, 247, 0.2);
    border-top: 4px solid #7b2ff7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem auto;
}

.loading-progress {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #7b2ff7, #f107a3);
    border-radius: 3px;
    width: 0%;
    animation: progress-fill 3s ease-in-out infinite;
}

.loading-steps {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.loading-step {
    background: rgba(123, 47, 247, 0.1);
    border: 1px solid rgba(123, 47, 247, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #cccccc;
    opacity: 0.7;
    animation: step-pulse 2s ease-in-out infinite;
}

.loading-step.active {
    opacity: 1;
    background: rgba(123, 47, 247, 0.2);
    border-color: #7b2ff7;
    animation: step-active 1s ease-in-out infinite;
}

/* Animations */
@keyframes title-glow {
    0% {
        filter: drop-shadow(0 0 10px rgba(123, 47, 247, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(241, 7, 163, 0.8));
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes progress-fill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes step-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes step-active {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(123, 47, 247, 0.3);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(123, 47, 247, 0.6);
    }
}

/* Light theme adjustments */
[data-theme="light"] .loading-screen {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
}

[data-theme="light"] .loading-content {
    color: #333333;
}

[data-theme="light"] .loading-subtitle {
    color: #666666;
}

[data-theme="light"] .loading-step {
    background: rgba(123, 47, 247, 0.05);
    border-color: rgba(123, 47, 247, 0.2);
    color: #555555;
}

[data-theme="light"] .loading-step.active {
    background: rgba(123, 47, 247, 0.1);
    border-color: #7b2ff7;
    color: #333333;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .loading-title {
        font-size: 2rem;
    }
    
    .loading-subtitle {
        font-size: 1.1rem;
    }
    
    .loading-progress {
        width: 250px;
    }
    
    .loading-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .loading-step {
        font-size: 0.8rem;
    }
}

/* Elegant Page Loading Screen */
.page-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

.page-loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.page-loading-content {
    text-align: center;
    color: white;
    max-width: 300px;
    padding: 1rem;
}

.page-loading-logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00ffff, #7b2ff7, #f107a3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logo-pulse 1.5s ease-in-out infinite;
}

.page-loading-text {
    display: none;
}

.page-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(123, 47, 247, 0.2);
    border-top: 3px solid #7b2ff7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.page-loading-dots {
    display: none;
}

.page-loading-dot {
    width: 8px;
    height: 8px;
    background: #7b2ff7;
    border-radius: 50%;
    animation: dot-bounce 1.4s ease-in-out infinite both;
}

.page-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.page-loading-dot:nth-child(2) { animation-delay: -0.16s; }
.page-loading-dot:nth-child(3) { animation-delay: 0s; }

/* Animations */
@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(123, 47, 247, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(241, 7, 163, 0.5));
    }
}

@keyframes text-fade {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes dot-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Light theme adjustments */
[data-theme="light"] .page-loading-screen {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
}

[data-theme="light"] .page-loading-content {
    color: #333333;
}

[data-theme="light"] .page-loading-text {
    color: #666666;
}

[data-theme="light"] .page-loading-dot {
    background: #7b2ff7;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-loading-logo {
        font-size: 2rem;
    }
    
    .page-loading-text {
        font-size: 1rem;
    }
    
    .page-loading-spinner {
        width: 50px;
        height: 50px;
    }
}

/* Video Overlay Modal Styles */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.video-overlay.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.video-modal-card {
    background: var(--card-bg, #ffffff);
    border-radius: 24px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color, #e0e0e0);
    animation: modalSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    backdrop-filter: blur(20px);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-40px) scale(0.92);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    background: linear-gradient(135deg, var(--primary-color, #7b2ff7), var(--secondary-color, #f107a3));
    position: relative;
    overflow: hidden;
}

.video-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.video-modal-title {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.video-icon {
    font-size: 1.6rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.video-modal-title h3 {
    margin: 0;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.video-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.video-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16/9;
    border-radius: 0;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
    pointer-events: none;
    animation: videoShimmer 4s ease-in-out infinite;
}

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



.video-modal-footer {
    padding: 24px 28px;
    text-align: center;
    background: var(--card-bg, #ffffff);
    position: relative;
}

.video-modal-footer p {
    margin: 0 0 18px 0;
    color: var(--text-color, #333333);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Video Description Styles */
.video-description {
    margin-bottom: 20px;
    padding: 16px;
    background: transparent;
    border-radius: 12px;
    border: none;
}

.ai-video-info {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    opacity: 0.7;
}

.ai-icon {
    font-size: 1.1rem;
    opacity: 0.6;
}

/* Theme-spezifische Anpassungen für bessere Lesbarkeit */
[data-theme="light"] .ai-video-info {
    color: #666666;
    opacity: 0.8;
}

[data-theme="dark"] .ai-video-info {
    color: #a0a0a0;
    opacity: 0.7;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .video-description {
        margin-bottom: 16px;
        padding: 12px;
    }
    
    .ai-video-info {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .ai-icon {
        font-size: 1rem;
    }
}

.video-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.video-skip-btn, .video-watch-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.video-skip-btn {
    background: transparent;
    color: var(--text-secondary, #666666);
    border: 2px solid var(--border-color, #e0e0e0);
}

.video-skip-btn:hover {
    background: var(--border-color, #e0e0e0);
    color: var(--text-color, #333333);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-watch-btn {
    background: linear-gradient(135deg, var(--primary-color, #7b2ff7), var(--secondary-color, #f107a3));
    color: white;
    box-shadow: 0 4px 15px rgba(123, 47, 247, 0.3);
}

.video-watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 47, 247, 0.4);
}

.video-watch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.video-watch-btn:hover::before {
    left: 100%;
}

/* Responsive Design für Video Modal */
@media (max-width: 768px) {
    .video-modal-card {
        width: 95%;
        margin: 20px;
    }
    
    .video-modal-header {
        padding: 15px 20px;
    }
    
    .video-modal-title h3 {
        font-size: 1.1rem;
    }
    
    .video-modal-footer {
        padding: 15px 20px;
    }
    
    .video-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .video-skip-btn, .video-watch-btn {
        width: 100%;
    }
}

/* Light Theme Anpassungen */
[data-theme="light"] .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .video-modal-card {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

/* Kapitel-Fortschrittsindikatoren */
.progress-indicator {
    margin-left: 8px;
    font-size: 14px;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Quiz Reset Button */
.quiz-reset-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: inline-block;
}

.quiz-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.quiz-reset-btn:active {
    transform: translateY(0);
}