/* Fahrschule Learning Guide - CSS */

/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.learning-guide-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
}

.learning-guide-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Stil - Astra Theme Style */
.learning-guide-container .header {
    background: linear-gradient(135deg, #DD3333 0%, #b52d2d 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(221, 51, 51, 0.2);
}

.learning-guide-container .header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.learning-guide-container .header p {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
}

/* Navigation */
.learning-guide-container .nav {
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid #DD3333;
}

.learning-guide-container .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.learning-guide-container .nav-links {
    display: flex;
    gap: 30px;
}

.learning-guide-container .nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.learning-guide-container .nav a:hover {
    background: #DD3333;
    color: white;
    transform: translateY(-2px);
}

.learning-guide-container .back-btn {
    background: #DD3333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.learning-guide-container .back-btn:hover {
    background: #b52d2d;
    transform: translateY(-2px);
}

/* Hauptinhalt */
.learning-guide-container .main-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 30px 0;
    overflow: hidden;
}

.learning-guide-container .content-section {
    padding: 40px;
}

.learning-guide-container .section-title {
    color: #DD3333;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #DD3333;
    padding-bottom: 10px;
}

.learning-guide-container .subsection-title {
    color: #333;
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    padding-left: 20px;
    border-left: 4px solid #DD3333;
}

/* Karten-Design */
.learning-guide-container .card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.learning-guide-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.learning-guide-container .card h3 {
    color: #DD3333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.learning-guide-container .card p {
    color: #555;
    line-height: 1.7;
}

/* Video Buttons */
.learning-guide-container .video-btn {
    background: linear-gradient(135deg, #DD3333 0%, #b52d2d 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px 5px;
}

.learning-guide-container .video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(221, 51, 51, 0.4);
}

/* Video Modal */
.learning-guide-container .video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.learning-guide-container .video-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.learning-guide-container .close-video {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.learning-guide-container .close-video:hover {
    color: #DD3333;
}

.learning-guide-container .video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin: 20px 0;
}

.learning-guide-container .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Scroll to Top Button */
.learning-guide-container .scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #DD3333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(221, 51, 51, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    display: none;
}

.learning-guide-container .scroll-to-top:hover {
    background: #b52d2d;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(221, 51, 51, 0.4);
}

/* Detaillierte Inhalte */
.learning-guide-container .detailed-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    border-left: 4px solid #DD3333;
}

.learning-guide-container .detailed-content h4 {
    color: #DD3333;
    margin: 15px 0 10px 0;
    font-size: 1.1rem;
}

.learning-guide-container .detailed-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.learning-guide-container .detailed-content li {
    margin: 8px 0;
    line-height: 1.5;
}

.learning-guide-container .detailed-content strong {
    color: #2c3e50;
}

/* Progress Bar */
.learning-guide-container .progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e9ecef;
    z-index: 1000;
}

.learning-guide-container .progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #DD3333 0%, #b52d2d 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* Zeitstempel Styling */
.learning-guide-container .time-stamp-item {
    background: #f8f9fa;
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 8px;
    border-left: 4px solid #DD3333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.learning-guide-container .time-stamp-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.learning-guide-container .time-stamp-item strong {
    color: #DD3333;
    font-size: 1.1rem;
}

/* Tipps Styling */
.learning-guide-container .tip-item {
    background: #f8f9fa;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    font-size: 0.95rem;
    line-height: 1.5;
}

.learning-guide-container .tip-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

/* Video Modal Content Styling */
.learning-guide-container #timeStampsSection, 
.learning-guide-container #additionalTipsSection {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.learning-guide-container #timeStampsSection h3, 
.learning-guide-container #additionalTipsSection h3 {
    color: #DD3333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .learning-guide-container .container {
        padding: 10px;
    }
    
    .learning-guide-container .header h1 {
        font-size: 2rem;
    }
    
    .learning-guide-container .content-section {
        padding: 20px;
    }
    
    .learning-guide-container .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .learning-guide-container .time-stamp-item, 
    .learning-guide-container .tip-item {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}