/* Design System */
:root {
    --background: #f5f4f0;
    --foreground: #1c1b16;
    --card: #ffffff;
    --card-foreground: #1c1b16;
    --primary: #8b2952;
    --primary-foreground: #ffffff;
    --primary-hover: #6d1f3e;
    --primary-active: #5a1732;
    --secondary: #f2f0ed;
    --secondary-foreground: #1c1b16;
    --muted: #f2f0ed;
    --muted-foreground: #767471;
    --accent: #8b2952;
    --accent-foreground: #ffffff;
    --border: #e8e6e1;
    --input: #e8e6e1;
    --radius: 12px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --footer-bg: #232C37;
    --container-max-width: 1200px;
    --container-padding: 1.5rem;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-family);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--primary-hover);
    }

/* Header */
header {
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1rem var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

    .header-logo img {
        height: 40px;
        width: auto;
    }

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

    .header-nav a {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--foreground);
        transition: color 0.3s ease;
    }

        .header-nav a:hover {
            color: var(--primary);
        }

.btn {
    padding: 0.625rem 1.5rem;
    border: 1px solid var(--border);
    background-color: var(--card);
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

    .btn:hover {
        background-color: var(--secondary);
        border-color: var(--border);
    }

    .btn:active {
        transform: scale(0.98);
    }

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

    .btn-primary:hover {
        background-color: var(--primary-hover);
        border-color: var(--primary-hover);
        box-shadow: 0 0 0 4px rgba(139, 41, 82, 0.35);
    }

    .btn-primary:active {
        background-color: var(--primary-active);
        border-color: var(--primary-active);
    }

/* Main Container */
main {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 3rem var(--container-padding);
    width: 100%;
    flex: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

    .hero h1 {
        font-size: 3rem;
        color: var(--primary);
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.125rem;
        color: var(--muted-foreground);
        max-width: 48rem;
        margin: 0 auto;
    }

/* Sections */
section {
    margin-bottom: 4rem;
}

    section h2 {
        font-size: 2rem;
        color: var(--foreground);
        margin-bottom: 2rem;
    }

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Card */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-uniform {
    min-height: 300px;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .card-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 0.5rem;
    }

.card-content h3 {
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.card > p {
    flex: 1;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

.card-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

    .card-footer button {
        flex: 1;
    }

/* ==================== TABS - OHNE SCROLLBALKEN ==================== */
.tabs {
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .tabs::-webkit-scrollbar {
        display: none;
    }

.tabs-list {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    min-width: min-content;
}

.tabs-trigger {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    white-space: nowrap;
    position: relative;
    bottom: -2px;
    flex-shrink: 0;
}

    .tabs-trigger:hover {
        color: var(--foreground);
        border-bottom-color: var(--primary);
        border-bottom-width: 3px;
    }

    .tabs-trigger.active {
        color: var(--primary);
        border-bottom-color: var(--primary);
        border-bottom-width: 3px;
        box-shadow: 0 4px 0 -3px var(--primary);
    }

.tabs-content {
    display: none;
}

    .tabs-content.active {
        display: block;
    }

/* Video Path Card */
.video-path-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

    .video-path-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border-color: var(--primary);
        background-color: rgba(139, 41, 82, 0.02);
    }

    .video-path-card:active {
        transform: scale(0.98);
    }

.video-path-icon {
    width: 64px;
    height: 64px;
    background-color: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

    .video-path-icon svg {
        width: 32px;
        height: 32px;
        color: var(--primary);
    }

    .video-path-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.video-path-content {
    flex: 1;
}

.video-path-title {
    font-weight: 600;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.video-path-meta {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.video-path-progress {
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.video-path-progress-bar {
    height: 100%;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.video-path-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background-color: rgba(139, 41, 82, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

    .back-button:hover {
        color: var(--primary-hover);
        transform: translateX(-4px);
    }

/* Video Player Area */
.video-player {
    aspect-ratio: 16 / 9;
    background-color: var(--secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border);
}

    .video-player:hover {
        background-color: #e8e6e1;
    }

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 12px solid var(--primary);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}

/* Progress Bar */
.progress {
    height: 8px;
    background-color: var(--secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

/* Video List */
.video-list {
    margin-top: 2rem;
}

    .video-list h3 {
        font-size: 1.125rem;
        color: var(--foreground);
        margin-bottom: 1rem;
    }

.video-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--card);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

    .video-item:hover {
        background-color: rgba(139, 41, 82, 0.02);
        border-color: var(--primary);
        box-shadow: 0 2px 8px rgba(139, 41, 82, 0.1);
    }

    .video-item.active {
        background-color: rgba(139, 41, 82, 0.08);
        border-color: var(--primary);
    }

.video-item-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

    .video-item-icon.uncompleted {
        border: 2px solid var(--muted-foreground);
        border-radius: 50%;
    }

    .video-item-icon.completed {
        color: var(--primary);
        font-weight: bold;
    }

.video-item-content {
    flex: 1;
}

.video-item-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.video-item-duration {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Button Group */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

    .button-group button {
        flex: 1;
        min-width: 200px;
    }

    .button-group .btn {
        background-color: var(--primary);
        color: var(--primary-foreground);
        border-color: var(--primary);
    }

        .button-group .btn:hover {
            background-color: var(--primary-hover);
            border-color: var(--primary-hover);
            box-shadow: 0 0 0 4px rgba(139, 41, 82, 0.35);
        }

        .button-group .btn:active {
            background-color: var(--primary-active);
            border-color: var(--primary-active);
        }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

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

/* Page Title Section */
.page-title-section {
    margin-bottom: 2rem;
}

    .page-title-section h1 {
        font-size: 2.25rem;
        color: var(--primary);
        margin-bottom: 0.5rem;
    }

    .page-title-section p {
        font-size: 1.125rem;
        color: var(--muted-foreground);
    }

/* ==================== FOOTER ==================== */
footer {
    background-color: var(--footer-bg);
    margin-top: auto;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ZEILE 1: Copyright zentriert */
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem var(--container-padding) 1rem;
    color: #ffffff;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

    .footer-content p {
        margin: 0;
    }

/* ZEILE 2: Links zentriert */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem var(--container-padding);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
}

    .footer-links a {
        font-size: 0.875rem;
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: var(--primary);
        }

video {
    width: 100%;
    height: auto;
}

/* ==================== VIDEO THUMBNAIL STYLES ==================== */
.video-thumbnail-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    border: 2px solid var(--primary);
}

    .video-thumbnail-icon.color-0 {
        background-color: var(--secondary);
        border-color: var(--primary);
        color: var(--primary);
    }

    .video-thumbnail-icon.color-1 {
        background-color: rgba(139, 41, 82, 0.08);
        border-color: var(--primary);
        color: var(--primary);
    }

    .video-thumbnail-icon.color-2 {
        background-color: var(--secondary);
        border-color: var(--primary);
        color: var(--primary);
    }

    .video-thumbnail-icon.color-3 {
        background-color: rgba(139, 41, 82, 0.12);
        border-color: var(--primary);
        color: var(--primary);
    }

    .video-thumbnail-icon.color-4 {
        background-color: var(--secondary);
        border-color: var(--primary);
        color: var(--primary);
    }

    .video-thumbnail-icon.color-5 {
        background-color: rgba(139, 41, 82, 0.08);
        border-color: var(--primary);
        color: var(--primary);
    }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .footer-container {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header-nav {
        width: 100%;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .button-group {
        flex-direction: column;
    }

        .button-group button {
            min-width: auto;
        }

    .tabs-list {
        overflow-x: auto;
    }

    .tabs-trigger {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    .page-title-section h1 {
        font-size: 1.875rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    main {
        padding: 1.5rem var(--container-padding);
    }

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

@media print {
    header, footer, .back-button, .button-group {
        display: none;
    }
}