/*
 * ============================================================
 * TOPIC – STYLESHEET
 * ============================================================
 */


* {
    box-sizing: border-box;
}


html {
    min-height: 100%;
}


body {
    min-height: 100vh;

    margin: 0;

    padding: 40px 20px;

    background: #ffffff;

    color: #212529;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}


/*
 * ============================================================
 * CONTAINER
 * ============================================================
 */

.container {
    width: 100%;

    max-width: 900px;

    margin: 0 auto;
}


/*
 * ============================================================
 * KOPF
 * ============================================================
 */

.header {
    margin-bottom: 30px;
}


h1 {
    margin: 0 0 10px;

    font-size: 32px;

    font-weight: 600;

    line-height: 1.2;
}


.intro {
    margin: 0;

    color: #6c757d;

    font-size: 17px;

    line-height: 1.6;
}


/*
 * ============================================================
 * FILTER
 * ============================================================
 */

.filter {
    margin-bottom: 30px;

    padding: 20px;

    background: #f8f9fa;

    border: 1px solid #dee2e6;

    border-radius: 10px;
}


.filter-title {
    margin-bottom: 6px;

    font-weight: 600;
}


.filter-info {
    margin-bottom: 15px;

    color: #6c757d;

    font-size: 14px;

    line-height: 1.5;
}


.filter-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 15px;
}


.filter-actions a {
    display: inline-block;

    padding: 7px 11px;

    background: #ffffff;

    border: 1px solid #adb5bd;

    border-radius: 6px;

    color: #495057;

    font-size: 14px;

    text-decoration: none;
}


.filter-actions a:hover {
    background: #f1f3f5;

    border-color: #6c757d;
}


.topic-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.topic-button {
    display: inline-block;

    padding: 8px 12px;

    background: #ffffff;

    border: 1px solid #ced4da;

    border-radius: 6px;

    color: #495057;

    font-size: 14px;

    line-height: 1.3;

    text-decoration: none;
}


.topic-button:hover {
    background: #f1f3f5;

    border-color: #adb5bd;
}


.topic-button.active {
    background: #e7f1ff;

    border-color: #9ec5fe;

    color: #084298;

    font-weight: 600;
}


/*
 * ============================================================
 * TOPIC
 * ============================================================
 */

.topic {
    margin-bottom: 30px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #dee2e6;

    border-radius: 10px;

    box-shadow:
        0 2px 10px rgba(
            0,
            0,
            0,
            0.04
        );
}


.topic-title {
    margin: 0 0 15px;

    font-size: 22px;

    font-weight: 600;

    line-height: 1.3;
}


/*
 * ============================================================
 * ITEM-LISTE
 * ============================================================
 */

.item-list {
    margin: 0;

    padding: 0;

    list-style: none;

    border-top: 1px solid #f1f3f5;
}


.item-list li {
    margin: 0;

    padding: 0;

    border-bottom: 1px solid #f1f3f5;
}


.item-list a {
    display: block;

    padding: 12px 4px;

    color: #0d6efd;

    font-size: 18px;

    line-height: 1.5;

    text-decoration: none;
}


.item-list a:hover {
    text-decoration: underline;
}


/*
 * ============================================================
 * LEER
 * ============================================================
 */

.empty {
    padding: 25px;

    background: #f8f9fa;

    border: 1px solid #dee2e6;

    border-radius: 8px;

    color: #6c757d;

    line-height: 1.6;

    text-align: center;
}


/*
 * ============================================================
 * RESPONSIVE
 * ============================================================
 */

@media (max-width: 650px) {

    body {
        padding: 25px 15px;
    }


    h1 {
        font-size: 28px;
    }


    .filter,
    .topic {
        padding: 18px;
    }


    .item-list a {
        font-size: 17px;
    }

}
