/* ==========================================================================
   TUTORIALS SECTION STYLES
   ========================================================================== */

.tutorials-container {
    padding: 40px;
    color: #fff;
    max-width: 1200px;
    margin: 0 auto;

    /* --- DIE LÖSUNG FÜR DAS SCROLL-PROBLEM --- */
    height: calc(100vh - 80px); /* 100% der Bildschirmhöhe minus deine Navigation oben */
    overflow-y: auto; /* Erlaubt vertikales Scrollen */
    box-sizing: border-box;
}

/* Den Scrollbalken im Container an das Design anpassen */
.tutorials-container::-webkit-scrollbar {
    width: 8px;
}
.tutorials-container::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 4px;
}
.tutorials-container::-webkit-scrollbar-track {
    background: #222;
}

/* --- BEREICH 1: GRID & CARDS --- */
.tut-grid {
    display: grid;
    /* Macht die Karten deutlich breiter (mindestens 400px statt 320px) */
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.tut-card {
    background-color: #222;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}



.tut-thumbnail {
    width: 100%;
    /* Höhe des Titelbildes massiv vergrößert (von 180px auf 240px) */
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid #333;
}

.tut-card-content {
    padding: 20px;
}

.tut-card-content h3 {
    margin: 0 0 10px 0;
    color: #00d4ff;
    /* Etwas größer für die neue Karten-Proportion */
    font-size: 1.5rem;
}

.tut-card-content p {
    margin: 0;
    color: #aaa;
    /* Etwas besser lesbar auf den großen Karten */
    font-size: 1.05rem;
    line-height: 1.5;
}

/* --- BEREICH 2: SINGLEPAGE --- */
.tut-single {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease;
}

.btn-back {
    background: transparent;
    color: #00d4ff;
    border: 1px solid #00d4ff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 30px;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #fff;
}

#single-title {
    font-size: 2rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 10px;
}

#single-desc {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Dynamischer 16:9 Video Container (Perfekt für YouTube/Vimeo iframes) */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Erzeugt exakt 16:9 Seitenverhältnis */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #000;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Downloads Section Styling */
.download-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
}

.download-section h3 {
    margin-top: 0;
    color: #00d4ff;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

/* Automatisches Icon vor jedem Download-Link */
.download-list li::before {
    content: "📄";
    margin-right: 10px;
    font-size: 1.2rem;
}

.download-list a {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.download-list a:hover {
    color: #00d4ff;
    text-decoration: underline;
}

/* Smoother Übergang, wenn man auf eine Card klickt */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
