:root {
    /* Farben */
    --text-color: #ffffff;
    /* Beispiel: Dunkelgrau für Text */

    /* Farbwerte für Kategorien */
    --category-color-1: #BDD6EE;
    --category-color-2: #E2B6D9;
    --category-color-3: #FFE599;
    --category-color-4: #F7CAAC;
    --category-color-5: #92D050;
    --category-color-6: #DBDBDB;

    /* Schriftarten */
    --primary-font: 'Source Sans Pro', sans-serif;
    /* Beispiel: Hauptschriftart */
    --heading-font: 'Source Sans Pro', sans-serif;
    /* Beispiel: Schriftart für Überschriften */

}

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    font-family: var(--primary-font);
    color: var(--text-color);
    background: radial-gradient(circle at 30% 50%, #e73448, #84001b);
    line-height: 1.6;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.page-title {
    margin: 0 0 12px;
    text-align: center;
    font-size: 1.6rem;
    color: white;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
}

.filter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    color: white;
}

.logo a img {
    height: 50px;
}

.info-icon img {
    cursor: pointer;
    height: 50px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-buttons button {
    background-color: rgba(255, 255, 255, 0);
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

.filter-buttons button.active {
    background-color: white;
    color: black;
}

#filter-icon {
    margin-top: 15px;
    cursor: pointer;
    filter: invert(1) brightness(2);
    height: 40px;
}

main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
    /* Changed from center */
    width: 100%;
    overflow: hidden;
    /* Added */
}

.main-content {
    max-width: 70%;
    width: 100%;
    /* Added */
    display: flex;
    /* Added */
    flex-direction: column;
    /* Added */
}

.fragen-container {
    text-align: center;
    margin: auto;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: none;
}

#fragen-text {
    margin: 0px;
    font-size: 2em;
    color: white;
}

.nav-arrow img {
    height: 100px;
}

.nav-arrow {
    cursor: pointer;
    padding-bottom: 30px;
    ;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

footer {
    width: 100%;
    text-align: right;
    box-sizing: border-box;
}

footer a {
    color: white;
    font-size: 0.8em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    border-radius: 5px;
}

button:hover {
    opacity: 0.9;
}

#antwort-optionen-container ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 1.2em;
}

#antwort-optionen-container li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 15px;
}

.new-question-container {

    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#new-question-btn {
    background-color: rgba(255, 255, 255, 1);
    color: black;
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;

}

#new-question-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

#filter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.popup-content {
    background: #e6e6df;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: black;
    max-width: 700px;
}

.popup-content-info {
    max-width: 780px;
    max-height: 85vh;
    overflow-y: auto;
    text-align: left;
}

.popup-list {
    margin: 0 0 16px;
    padding-left: 20px;
}

.method-section {
    margin: 14px 0 18px;
    padding-top: 10px;
}

.section-divider {
    height: 1px;
    margin: 18px 0;
    background: rgba(0, 0, 0, 0.18);
}

.method-section-header {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.method-hint {
    font-style: italic;
}

.popup-link {
    font-weight: 700;
    text-decoration: underline;
}

.intro-emphasis {
    font-weight: 700;
}

#info-popup-content .intro-emphasis {
    font-size: 1.2rem;
    line-height: 1.35;
}

.info-trigger {
    cursor: pointer;
}

#filter-popup-content {
    background: #e6e6df;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: black;
}

#kategorien-filter-container button {
    display: block;
    margin: 10px auto;
    background-color: #f0f0f0;
    color: black;
    border: 1px solid #ccc;
}

.hidden {
    display: none !important;
}

.popup-button {
    width: 100%;
    background-color: #e73448;
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
}

#kategorie-text {
    width: auto;
    font-size: 1em;
    border-radius: 20px;
    margin-bottom: 20px;
    padding: 10px;
    color: black;
    text-align: center;
    font-weight: bold;

}

#kategorie-text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.wide-display {
    display: flex;

}

.small-display {
    display: none;
}


/* Responsive Design für mobile Geräte */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .page-title {
        font-size: 1.1rem;
    }

    #antwort-optionen-container ul {
        font-size: 1em;
    }

    #antwort-optionen-container li {
        margin-bottom: 5px;
        padding: 5px;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .filter-buttons {
        margin-top: 0px;
    }

    #fragen-text {
        font-size: 1.5em;
        hyphens: auto;
    }

    .nav-arrow {
        padding-bottom: 0;
    }

    .nav-arrow img {
        height: 40px;
    }

    .logo img {
        height: 40px;
    }

    .info-icon img {
        height: 40px;
    }

    .filter-buttons button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    footer {
        text-align: center;

    }

    .wide-display {
        display: none;
    }

    .small-display {
        display: flex;

    }

    .small-display .logo {
        justify-content: space-between;
        width: 100%;
        display: flex
    }
}