:root {
    --primary: #000000;
    --glass-bg: color-mix(in srgb, var(--primary), transparent 15%); /* Etwas undurchsichtiger für besseren Kontrast auf Weiß */
    --secondary: #d4af37;
    --white: #fff;
    --black: #121212;
    --text-color: #333;
    --card-bg-light: #fff;
    --card-bg-dark: var(--glass-bg);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    width: 100%;
    height: 100%;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Gemeinsame Stile */
a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4 {
    margin-top: 0;
}

.card {
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Leichter Schatten für helle Karten */
}

/* Login Page Styles */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: radial-gradient(circle at center, var(--white) 0%, #f0f0f0 100%);
}

.login-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-logo {
    max-width: 100%;
    height: auto;
    max-height: 80px; /* Begrenzung der Höhe */
}

.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--black);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: var(--black);
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary), transparent 80%);
}

/* Dashboard Styles */
.navbar {
    background: var(--white);
    padding: 1rem 5%;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.nav-logo {
    height: 40px; /* Logo-Größe im Header */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links li.active a, .nav-links a:hover {
    color: var(--secondary);
}

/* Hamburger-Menü Styles */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--black);
    height: 2px;
    width: 25px;
    border-radius: 2px;
    position: relative;
    transition: margin 0.3s 0.3s, transform 0.3s;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    margin-top: -8px;
}

.nav-toggle-label span::after {
    margin-top: 8px;
}

/* Responsives Nav-Verhalten */
@media screen and (max-width: 900px) {
    .nav-toggle-label {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid #eee;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1.5rem;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-toggle:checked ~ .nav-links {
        max-height: 400px; /* Passe diesen Wert an, falls dein Menü länger ist */
    }

    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::before {
        margin-top: 0;
        transform: rotate(45deg);
    }

    .nav-toggle:checked ~ .nav-toggle-label span::after {
        margin-top: 0;
        transform: rotate(-45deg);
    }
    
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    .nav-links .mobile-only a { border-bottom: none; }
    .nav-links .mobile-only .btn-outline { width: 80%; margin: 1rem auto; }
}

@media screen and (min-width: 901px) {
    .mobile-only { display: none; }
}

.dashboard-content {
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
}

/* Responsive Grid-Anpassungen */
@media screen and (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 260px 1fr;
    }
    
    .profile-sidebar {
        grid-column: 1 / -1; /* Nimmt die volle Breite auf der nächsten Zeile ein */
    }
}

@media screen and (max-width: 800px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dark-section {
    background-color: var(--glass-bg);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}

.dark-section h3 {
    color: var(--secondary);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.side-nav li {
    padding: 12px 0;
}

.side-nav a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    display: block;
}

.side-nav a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.course-card {
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--white);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}

.course-img {
    height: 180px;
    background-color: #eee; /* Platzhalter */
    background-size: cover;
    background-position: center;
}

/* Beispiel-Bilderplatzhalter */
.course-img.crypto { background-image: linear-gradient(135deg, #2c3e50, #000); }
.course-img.etf { background-image: linear-gradient(135deg, #d4af37, #b08d1a); }

.course-info {
    padding: 1.5rem;
}

.course-meta {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
    font-weight: 600;
}

.btn-primary {
    background: var(--secondary);
    color: var(--black);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--secondary), black 10%);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--black);
}

.profile-avatar {
    width: 90px;
    height: 90px;
    background: var(--secondary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-weight: bold;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.profile-sidebar h3 {
    text-align: center;
    color: var(--white);
}

.email-sub {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.badge {
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.8rem;
    margin: 0 auto 1.5rem;
    width: auto;
}

.profile-sidebar {
    text-align: center;
}

.membership-info small {
    color: rgba(255,255,255,0.5);
    display: block;
    margin-bottom: 0.25rem;
}

.membership-info p {
    font-weight: 600;
    color: var(--secondary);
    margin: 0;
}

/* Profil-Spezifische Anpassungen */
.profile-container {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.gold-text { color: var(--secondary); margin-bottom: 0.5rem; }

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

/* Responsivität für das Profil-Grid */
@media screen and (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.section-title .icon { font-size: 1.2rem; padding-bottom:2rem; }

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

/* Styling der Inputs innerhalb der dunklen Karten */
.dark-section .input-group label {
    color: var(--secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dark-section input {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--white);
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    margin-top: 5px;
}

.dark-section input:focus {
    border-color: var(--secondary);
    outline: none;
    background: rgba(255,255,255,0.05);
}

.small-btn {
    width: auto;
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.btn-secondary-dark {
    background: #333;
    color: #888;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: not-allowed;
    font-weight: 600;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.forgot-link {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.forgot-link:hover { color: var(--secondary); }

/* Footer Styling */
.footer {
    margin-top: 5rem;
    padding: 2rem 5%;
    background: var(--white);
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

@media screen and (max-width: 600px) {
    .form-row { flex-direction: column; gap: 1.2rem; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
}

.course-img-wrapper {
    width: 100%;
    height: 180px; /* Feste Höhe für ein einheitliches Grid */
    overflow: hidden; /* Schneidet alles ab, was übersteht */
    background-color: #000; /* Falls das Bild lädt oder fehlt */
}

.course-img {
    width: 100%;
    height: 100%;
    /* Das ist der wichtigste Teil: */
    background-size: cover;      /* Füllt die Fläche komplett aus */
    background-position: center; /* Zentriert das Bild (wichtig für Gesichter/Logos) */
    background-repeat: no-repeat;
    transition: transform 0.5s ease; /* Schöner Zoom-Effekt beim Hover */
}

/* Optional: Zoom-Effekt wenn man über die Karte fährt */
.course-card:hover .course-img {
    transform: scale(1.1);
}

/* Nur falls du unbedingt bei contain bleiben willst: */
.course-img {
    background-size: contain;
    background-color: #1a1a1a; /* Gleiche Farbe wie deine Karten-Sektion */
    background-position: center;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.col-6 {
    flex: 1 1 calc(50% - 15px);
    min-width: 200px; /* Responsive Breakpoint für kleine Schirme */
}

.col-12 {
    flex: 1 1 100%;
}

.profile-form label {
    display: block;
    color: var(--secondary);
    font-size: 0.75rem;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Deaktiviere das Standard-Styling der Button-Action falls gewünscht */
.btn-primary:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* --- Masterclass Kurs-Kacheln Design --- */

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subtitle {
    color: #888;
}

/* Die Kachel selbst */
.course-card.masterclass-style {
    background: #1a1a1a; /* Sehr dunkles Grau/Schwarz */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0; /* Damit das Bild oben abschließt */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.course-card.masterclass-style:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

/* Das Bild oben */
.course-card.masterclass-style .course-img-wrapper {
    height: 200px;
    position: relative;
    background: #000;
}

.course-card.masterclass-style .course-img {
    opacity: 0.7; /* Leicht abgedunkelt wie im Bild */
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-number {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    z-index: 2;
    text-transform: uppercase;
}

/* Text-Bereich */
.course-card.masterclass-style .course-info {
    padding: 1.5rem;
    color: #fff;
}

.course-card.masterclass-style h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.course-card.masterclass-style p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    min-height: 3em; /* Sorgt für einheitliche Höhe */
}

/* Fortschritt & Meta */
.course-progress-info {
    margin-bottom: 1.5rem;
}

.progress-percent {
    display: block;
    color: var(--secondary);
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.meta-bottom {
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Der gelbe Button */
.btn-start-now {
    background: var(--secondary);
    color: #000;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-start-now:hover {
    background: #fff;
    border:2px solid var(--secondary);
    transform: scale(1.02);
}

.play-icon {
    font-size: 0.7rem;
}






/* Video Preview Styling */
.course-img {
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.course-preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.course-card:hover .course-preview-video {
    opacity: 1;
}

/* Beschreibungs-Logik */
.description-container {
    max-height: 60px; /* Fixe Höhe für ca. 3 Zeilen */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    position: relative;
}

.description-container.expanded {
    max-height: 500px; /* Groß genug für den gesamten Text */
}

.description-text {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toggle-description {
    background: none;
    border: none;
    color: var(--gold-text-color, #d4af37); /* Deine Gold-Klasse nutzen */
    padding: 0;
    margin: 5px 0 15px 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    display: block;
}

/* Container für die Text-Kürzung */
.description-container {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Exakt 3 Zeilen */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5; /* Konsistente Zeilenhöhe */
    max-height: 4.5em; /* Fallback: 3 Zeilen x 1.5 Zeilenhöhe */
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

/* Wenn ausgeklappt: Alle Limits aufheben */
.description-container.expanded {
    display: block; /* Clamp deaktivieren */
    -webkit-line-clamp: unset;
    max-height: 1000px; /* Genug Platz für langen Text */
}

.description-text {
    margin: 0;
    font-size: 0.9rem;
}

/* Button-Styling bleibt gleich */
.toggle-description {
    background: none;
    border: none;
    color: #d4af37;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-bottom: 15px;
    display: inline-block;
}