body {
    font-family: 'Inter', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f5f5;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    color: #333;
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ccc;
    position: relative;
}

.logo {
    max-height: 40px;
    opacity: 0.5;
}

header h1 {
    margin: 0;
    padding: 0;
    z-index: 1;
}

footer {
    background-color: #fff;
    color: #333;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #ccc;
    border-bottom: none;
}

nav {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    height: calc(100vh - 160px);
}

.faq {
    flex: 2;
    max-height: 100%;
    overflow-y: auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.1);
    margin: 10px;
}

.blog {
    flex: 1;
    max-height: 100%;
    overflow-y: auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.1);
    margin: 10px;
}

.faq-item, .blog-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.faq-item .answer {
    display: none;
    font-size: 0.7em;
}

.plus {
    cursor: pointer;
    margin-right: 10px;
    font-weight: bold;
}

.faq-item .hidden {
    display: none;
}

.faq-item .question {
    cursor: pointer;
    font-weight: bold;
}

/* Webkit Scrollbar Styling */
.faq::-webkit-scrollbar, .blog::-webkit-scrollbar, #blog-popup::-webkit-scrollbar {
    width: 12px;
}

faq::-webkit-scrollbar-track, .blog::-webkit-scrollbar-track, #blog-popup::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

faq::-webkit-scrollbar-thumb, .blog::-webkit-scrollbar-thumb, #blog-popup::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 3px solid rgba(0, 0, 0, 0.1);
}

/* Popups */
#blog-popup, #legal-popup, #sources-popup, #contact-popup, #intention-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    width: 80%;
    max-width: 500px;
    height: auto;
    max-height: 80%;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.1);
    font-size: 0.7em;
}

.popup-content {
    position: relative;
    padding: 25px;
    box-sizing: border-box;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 30px;
}

.hidden {
    display: none;
}

/* Cookie-Warnung */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    transition: bottom 0.3s;
    z-index: 1000;
}

.cookie-consent.hidden {
    bottom: -100px;
}

.cookie-consent-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookie-consent-content p {
    margin: 0 0 10px 0;
}

.cookie-consent-content button {
    margin: 5px;
    padding: 10px 20px;
    background-color: #fff;
    color: #333;
    border: none;
    cursor: pointer;
}

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

.cookie-consent-content button:hover {
    background-color: #ddd;
}

/* Media Queries für Smartphones */
@media (max-width: 600px) {
  header {
        flex-direction: column;
        align-items: center;
    }

    header .logo {
        display: block;
        max-height: 30px;
        margin-bottom: 10px;
        opacity: 0.5;
    }

    header h1 {
        margin: 10px 0;
    }

 header nav ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    header nav ul li {
        margin: 0 5px;
    }

    header nav ul li a {
        color: #333;
        text-decoration: none;
    }

    main {
        padding: 10px;
    }

    .container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        height: auto;
    }

    .faq, .blog {
        max-height: 300px;
        overflow-y: visible;
        width: 100%;
        overflow-y: auto;
    }

    #blog-popup, #legal-popup, #sources-popup, #contact-popup, #intention-popup {
        width: 90%;
        height: 90%;
    }
}
