/* Body als flexibler Container für die gesamte Seite */
body {
    font-family: 'Lexend', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.further-resources {
    margin-right: 15%;
    margin-left: 15%;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 15px;
    background-color: #e0e0e0;
    border-radius: 8px;
    position: relative;
}

.further-resources h3 {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.toggle-arrow {
    display: inline-block;
    margin-top: 5px;
    margin-left: 5px;
    width: 10px;
    height: 10px;
    border-left: 4px solid #666;
    border-bottom: 4px solid #666;
    transform: rotate(135deg);
    transform-origin: center;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.further-resources h3.active .toggle-arrow {
    transform: rotate(315deg);
    margin-top: 0px;
    margin-bottom: 5px;
}

.resource-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 20px;
    background-color: #e0e0e0;
    border-radius: 8px;
    padding: 0;
    display: none;
}

.resource-list li {
    margin-bottom: 5px;
    margin-left: 30px;
}

.resource-list li a {
    position: relative;
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}

.resource-list li a:hover {
    color: #003366;
}

.resource-list li a::after {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.9em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    max-width: 75vw; /* Maximal 70% der Bildschirmbreite */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-list li a:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Verstecke die Checkbox */
.toggle-checkbox {
    position: absolute; /* Entfernt die Checkbox aus dem Dokumentenfluss */
    opacity: 0;         /* Macht sie unsichtbar */
    pointer-events: none; /* Verhindert Interaktionen */
    width: 0;           /* Setzt die Breite auf 0 */
    height: 0;          /* Setzt die Höhe auf 0 */
    margin: 0;          /* Verhindert Einfluss auf umliegende Elemente */
    overflow: hidden;   /* Verhindert das Anzeigen von Inhalten */
    clip: rect(0, 0, 0, 0); /* Schneidet den Inhalt vollständig aus */
    clip-path: inset(100%); /* Alternative Methode für moderne Browser */
    white-space: nowrap; /* Verhindert mögliche Textumflüsse */
}



/* Standard: Liste ausgeklappt, wenn Checkbox aktiviert ist */
.toggle-checkbox:checked ~ .resource-list {
    display: block; /* Stelle sicher, dass die Liste sichtbar ist */
  left: 15%;
}

/* Standard: Liste versteckt, wenn Checkbox nicht aktiviert ist */
.toggle-checkbox:not(:checked) ~ .resource-list {
    display: none; /* Verstecke die Liste */
  left: 15%;
}

/* Drehe den Pfeil bei geänderter Checkbox */
.toggle-checkbox:checked + h3 .toggle-arrow {
    transform: rotate(315deg); /* Ändere die Richtung des Pfeils */
    margin-top: 0;
    margin-bottom: 5px;
  left: 15%;
}

.wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 20px;
}

h1 {
    text-align: left;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: 'Lexend', sans-serif;
}

h2 {
    margin-top: 20px;
    margin-bottom: 10px;
}

h3 {
    margin-top: 10px;
    margin-bottom: 5px;
}

h4 {
    margin-top: 5px;
    margin-bottom: 5px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: #333;
    color: #fff;
    height: 80px;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    position: relative; 
    height: 100%;
}

.intro-box {
    margin-right: 15%;
    margin-left: 15%;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 15px;
    background-color: #e0e0e0;
    border-radius: 8px;
    position: relative;
}

.intro-box h3 {
    cursor: default;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.intro-box p {
    margin-bottom: 10px;
    line-height: 1.6;
}




.menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.menu ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu ul li {
    display: inline-block;
    position: relative;
    margin: 0 10px;
    white-space: nowrap;
}

.menu ul li a {
    color: #fff;
    padding: 10px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.menu ul li a:hover {
    background-color: #555;
}

.menu ul li .dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #444;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    text-align: center;
    margin-top: 10px;
    padding: 10px 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.menu ul li:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.menu ul li .dropdown-content li {
    display: block;
    padding: 3px 0;
    height: auto;
    text-align: center;
}

.menu ul li .dropdown-content li a {
    padding: 7px;
    color: #fff;
    white-space: nowrap;
    display: inline-block;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    bottom: 0;
    left: 0;
}

.auth-form {
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.auth-form .form-group {
    margin-bottom: 15px;
}

.auth-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.auth-form input,
.auth-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.auth-form textarea {
    resize: none;
}

.auth-form input:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
}

.auth-form .submit-button {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #0066cc;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-form .submit-button:hover {
    background-color: #005bb5;
}

.auth-form p {
    margin-top: 15px;
    text-align: center;
}

.auth-form p a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.auth-form p a:hover {
    text-decoration: underline;
}


#suggestions {
    position: absolute;
    background: white;
    width: 61%;
    max-width: none;
    z-index: 1;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 54px;
    left: 15%;
}

#suggestions div {
    padding: 10px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
}

#suggestions div:hover {
    border-radius: 5px;
    background-color: #f0f0f0;
    width: 98%;
}

.content {
    padding: 15px 15%;
    margin-bottom: 0;
}

/* Ursprüngliches Styling für Hauptlisten */
.content ul, .content ol {
    background-color: #e0e0e0; /* Hintergrundfarbe */
    border-radius: 8px;
    padding: 15px;
    margin: 0;
    margin-bottom: 10px; /* Standard-Abstand nach unten */
    list-style-position: outside;
    padding-left: 20px;
}

/* Ursprüngliches Styling für Listenelemente */
.content li {
    position: relative;
    padding: 5px;
    padding-left: 5px;
    margin-left: 15px;
    margin-bottom: 5px; /* Abstand zwischen einzelnen Listenelementen */
    text-indent: 0;
    background-color: transparent;
    z-index: 1;
	margin-right: 0; /* oder kleiner Wert */
    padding-right: 0; /* ggf. reduzieren */
}

/* Anpassung: Weniger Abstand unten bei verschachtelten Listen */
.content ul ul, .content ul ol,
.content ol ul, .content ol ol {
    margin-bottom: 0px; /* Reduzierter Abstand bei verschachtelten Listen */
    padding-bottom: 0px;
}

.content li img {
    margin-left: 20px; /* Platz für das Bild */
    position: relative;
    z-index: 1000; /* Bild über den Hintergrund legen */
}


.related-article {
    height: 103px;
    background-color: #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.related-article:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.related-article h4 {
    margin: 0 0 10px 0;
}

.related-article p {
    margin: 0;
}

.related-article img {
    width: auto;
    height: 102px;
    float: left;
    margin-right: 10px;
    border-radius: 5px;
}

.text-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.2em * 4);
}

#load-more-btn {
    background-color: #555;
    color: #fff;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 5px;
    margin-bottom: 15px;
}

#load-more-btn:hover {
    background-color: #777;
}

.search-bar {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 30px 0 0 0;
    position: relative;
    z-index: 5;
}

.search-bar form {
    display: flex;
    width: 70%;
    margin: 0;
}

.search-bar input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.search-bar button {
    padding: 15px 20px;
    background-color: #555;
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s;
    width: 14%;
}

.search-bar button:hover {
    background-color: #777;
}

.article-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.article-content p {
    flex-grow: 1;
    margin: 0;
}

.article-image-text {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.article-image-text .intro-text {
    flex-grow: 1;
    margin: 0;
}

.full-text {
    margin-top: 20px;
    clear: both;
}

.article-image {
    flex-shrink: 0;
    float: right;
    margin: 5px 0 5px 15px;
    height: 275px;
    max-width: 400px;
}

p {
    text-align: justify;
    margin-top: 0;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}


/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .menu ul {
        flex-direction: column;
    }

    .content,
    .main-container,
    .further-resources,
    .wrapper {
        left: 50%;
        padding: 15px 15%;
        margin: 0;
    }
}


