/* Page-specific styles for the 'Wissen' section */

.wissen-container {
    max-width: 1100px;
}

.article-container {
    max-width: 820px;
}

.breadcrumb {
    font-size: .95rem;
    color: #cbd5e1;
    margin: 1rem 0;
}

.breadcrumb a {
    color: #a5b4fc;
    text-decoration: none;
}

.article-h1 {
    font-size: 2.25rem;
    margin: .25rem 0 .25rem;
    color: #ffffff;
}

.meta {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.article-container section a {
    color: #a5b4fc;
    text-decoration: underline;
}

.article-container section a:hover {
    text-decoration: none;
}

.article-container section p {
    margin-bottom: 1rem;
}

.article-h2 {
    margin-top: 2rem;
    font-size: 1.4rem;
}

.wissen-h1 {
    font-size: 2.25rem;
    margin: 0.5rem 0 0.25rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wissen-subtitle {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.note {
    background: #1e293b;
    border: 1px solid rgba(99, 102, 241, .15);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

.toc {
    background: #1e293b;
    border: 1px solid rgba(99, 102, 241, .15);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0 1.5rem;
}

.toc a {
    color: #a5b4fc;
    text-decoration: none;
}

.toc ol {
    padding-left: 20px;
    /* Adjust this value as needed */
    margin-top: 0.75rem;
}

.toc li {
    margin-bottom: 0.5rem;
}

/* New styles for floating images within articles */
.img-float-left {
    float: left;
    max-width: 33%;
    height: auto;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    /* Optional: adds nice rounded corners */
}

.img-float-right {
    float: right;
    max-width: 33%;
    height: auto;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    /* Optional: adds nice rounded corners */
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    justify-content: center;
    /* Zentriert die Items in der Mitte */
}

@media (min-width: 640px) {
    .grid {
        justify-content: flex-start;
        /* Linksbündig auf größeren Bildschirmen */
    }

    .card {
        margin: 0;
        /* Auf größeren Bildschirmen kein Auto-Margin */
    }
}

.card {
    background: #1e293b;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    padding: 0;
    /* Changed from 1.25rem to 0 */
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    /* Added for layout */
    flex-direction: column;
    /* Added for layout */
    max-width: 350px;
    /* Maximale Breite für die Karte */
    margin: 0 auto;
    /* Zentriert die einzelne Karte */
}

.card-image-link {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.card:hover .card-image-link img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Ensures content area fills space */
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, .12);
}

.card-content h2 {
    font-size: 1.15rem;
    margin: .25rem 0 .5rem;
    color: #a5b4fc;
}

.card-content .meta {
    font-size: .9rem;
    margin-bottom: .75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
}

.card-content p {
    color: #cbd5e1;
    margin: 0 0 1rem;
    flex-grow: 1;
    /* Pushes the button to the bottom */
}

.card-content .btn {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff !important;
    text-decoration: none;
    padding: .6rem 1rem;
    border-radius: 10px;
    font-weight: 500;
}

.article-h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-left: 1.5rem;
}

.article-container section ul {
    list-style: disc;
    padding-left: 3rem;
}

/* Responsive table styling */
#apps-table {
    font-size: 0.9rem;
}

#apps-table td,
#apps-table th {
    font-size: 0.9rem;
}

/* Media elements in articles */
.article-media {
    margin: 1.25rem 0;
}

.responsive-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

.article-media figcaption {
    font-size: .95rem;
    color: #94a3b8;
    margin-top: .5rem;
}

/* Responsive font sizing for articles */
@media (max-width: 768px) {
    .article-h1 {
        font-size: 1.75rem;
    }

    .article-h2 {
        font-size: 1.2rem;
    }

    .article-h3 {
        font-size: 1.1rem;
    }

    .article-container section p {
        font-size: 0.95rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    .meta {
        font-size: 0.9rem;
    }

    #apps-table {
        font-size: 0.8rem;
    }

    #apps-table td,
    #apps-table th {
        font-size: 0.8rem;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .article-h1 {
        font-size: 1.5rem;
    }

    .article-h2 {
        font-size: 1.1rem;
    }

    .article-h3 {
        font-size: 1rem;
    }

    .article-container section p {
        font-size: 0.9rem;
    }

    .article-container section ul {
        padding-left: 1.5rem;
    }

    #apps-table {
        font-size: 0.75rem;
    }

    #apps-table td,
    #apps-table th {
        font-size: 0.75rem;
        padding: 6px;
    }

    #apps-table th {
        min-width: 70px;
    }
}