body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #fff;
    color: #000;
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-direction: column; /* Added for mobile view */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
}

.logo {
    width: 150px;
    height: auto;
    margin-right: 20px;
    margin-left: 20px;
}

.header-title {
    text-align: left;
}

.search-bar {
    margin: 20px 0;
    width: 100%;
    text-align: center;
}

.search-bar input[type="text"] {
    padding: 10px;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-bar button {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
}

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

main {
    padding: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: black;
    transition: box-shadow 0.3s ease;
}

.grid-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.grid-item h2 {
    color: darkblue;
    margin: 0 0 10px 0;
}

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

footer a {
    color: #007BFF;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* 
Anpassungen für die Inhaltsdokumente mit Sidebar
*/
.content-container {
    display: flex;
    margin: 20px;
}

.sidebar {
    width: 250px;
    background-color: #fff;
    border-right: 1px solid #ccc;
    padding: 20px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #007BFF;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

.content {
    flex-grow: 1;
    padding: 20px;
    background-color: #fff;
    border-left: 1px solid #ccc;
}
/* Ende Anpassungen Inhaltsdokument*/


/*
Anpassungen für das Kontaktforumlar
*/
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    max-width: 500px;
    width: 100%;
}

.contact-form label {
    align-self: flex-start;
    margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

.contact-form button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #007BFF;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 100%; /* Ensures the button is the same width as the textarea */
}

.contact-form button:hover {
    background-color: #0056b3;
}

/*Ende Anpassungen Kontaktformular*/

/* Media Queries für unterschiedliche Bildschirmgrößen */

/* Kleinere Bildschirme (Tablets im Hochformat, mobile Geräte im Querformat) */
@media (max-width: 768px) {
    .logo {
        width: 100px; /* Kleinere Größe für Tablets und mobile Geräte im Querformat */
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* Zwei Spalten Layout für Tablets */
    }

    .search-bar input[type="text"] {
        width: 150px; /* Kleinere Suchleiste für Tablets */
    }

    .search-bar button {
        padding: 8px 16px; /* Kleinere Buttons für Tablets */
    }
    .sidebar {
        width: 200px; /* Kleinere Sidebar für Tablets */
    }
}

/* Sehr kleine Bildschirme (mobile Geräte im Hochformat) */
@media (max-width: 480px) {

    .header {
        flex-direction: column; /* Vertikale Anordnung für mobile Geräte */
    }

    .header-link {
        flex-direction: column; /* Vertikale Anordnung für mobile Geräte */
    }

    main {
        padding: 20px;
        padding-bottom: 80px; /* Platz für den Footer schaffen */
    }
    .logo {
        width: 80px; /* Noch kleinere Größe für mobile Geräte im Hochformat */
    }

    .grid-container {
        grid-template-columns: 1fr; /* Einspalten-Layout für mobile Geräte */
    }

    .search-bar {
        order: 8; /* Position der Suchleiste ändern */
        flex-direction: column;
    }

    .search-bar input[type="text"] {
        width: 120px; /* Noch kleinere Suchleiste für mobile Geräte */
        padding: 8px;
    }

    .search-bar button {
        padding: 8px 16px; /* Kleinere Buttons für mobile Geräte */
    }

    .sidebar {
        width: 100%; /* Vollbild-Sidebar für mobile Geräte */
        border-right: none;
        border-bottom: 1px solid #ccc;
        padding: 10px;
    }

    .content-container {
        flex-direction: column;
    }

    .content {
        border-left: none;
        padding-bottom: 80px; /* Platz für den Footer schaffen */
    }

    .no-sidebar {
        flex-direction: column;
        margin: 20px 0;
    }

    h1 {
        font-size: 24px; /* Kleinere Schriftgröße für Überschriften auf mobilen Geräten */
    }

    p {
        font-size: 14px; /* Kleinere Schriftgröße für Text auf mobilen Geräten */
    }
}
