/* Globale Einstellungen */
body, html {
    background-color: #12598f;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    height: 100%;
}

header {
    text-align: center;
    margin-top: 20px;
    padding-top: 80px;
}

img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

/* Menüleiste fixiert */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Home-Seite */
.home-page {
    background-image: url('landschaft.jpeg');
    background: center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 100px;
    min-height: 100vh;
}

.top-left-text, .bottom-right-text {
    position: absolute;
    font-family: 'Arial', sans-serif;
    z-index: 1050;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.top-left-text {
    top: 40%;
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for perfect centering */
    font-size: clamp(3rem, 8vw, 10rem);
    max-width: 50%;
    text-align: center; /* Center text inside the div */
}

.bottom-right-text {
    bottom: 10%;
    right: 5%;
    font-size: clamp(1rem, 2.5vw, 2rem);
    max-width: 55%;
    text-align: right;
}

/* Media Query for Smartphones (up to 576px width) */
@media (max-width: 576px) {
    .top-left-text {
        font-size: clamp(4rem, 10vw, 12rem); /* Larger font for small screens */
        max-width: 90%; /* Allow more room for text */
        text-align: center; /* Center the text */
        left: 50%; /* Center horizontally */
        transform: translate(-50%, -50%); /* Ensure perfect centering */
    }

    .bottom-right-text {
        font-size: clamp(1rem, 2.5vw, 2rem); /* Resize font */
        max-width: 90%; /* Allow more room for text */
        text-align: center; /* Optional: Center text on small screens */
    }
}



/* Suchfeld */
#searchContainer {
    position: relative;
}

#searchInput, button[type="submit"] {
    padding: 10px;
    border-radius: 4px;
}

button[type="submit"] {
    background-color: #104c84;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #082d54;
}

/* Layout-Abschnitte */
section, .sectiondownload {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-in-out;
}

.sectiondownload {
    max-width: 1000px;
    padding: 75px;
    background-color: rgba(255, 255, 255, 0.94);
}

/* FadeIn-Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tabellen-Stile */
table, th, td {
    width: 100%;
    border-collapse: collapse;
    padding: 10px;
    text-align: center;
    color: white;
    border: 1px solid white;
}

th {
    background-color: #104c84;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 10px 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap; /* Verhindert den Zeilenumbruch */
}

nav ul li {
    padding: 14px 16px;
}

nav ul li a {
    color: #333;
    font-size: clamp(14px, 4vw, 16px);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Dropdown-Menü */
nav ul li ul {
    display: none;
    position: absolute;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 160px;
}

nav ul li:hover > ul {
    display: block;
}

nav ul li ul li a {
    padding: 12px 16px;
    display: block;
}

nav ul li ul li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Hamburger-Menü */
.menu-icon {
    display: none;
    font-size: 2em;
    color: black;
    cursor: pointer;
    z-index: 1000;
}

.menu-icon::before {
    content: "\2630";
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        z-index: 999;
        padding: 0;
        max-height: 100vh;
        overflow-y: auto;
    }

    nav ul li {
        text-align: center;
        padding: 10px 0;
    }

    .navbar.open ul {
        display: flex;
    }

    body.navbar-open {
        overflow: hidden;
        padding-top: 60px;
    }

    body.navbar-open header,
    body.navbar-open section,
    body.navbar-open .top-left-text,
    body.navbar-open .bottom-right-text {
        transition: transform 0.3s ease;
        transform: translateY(60px);
    }

    body:not(.navbar-open) header,
    body:not(.navbar-open) section,
    body:not(.navbar-open) .top-left-text,
    body:not(.navbar-open) .bottom-right-text {
        transform: translateY(0);
    }
}

/* Weitere Medienanpassungen */
@media (max-width: 480px) {
    section {
        padding: 10px;
    }

    h1 { font-size: 1.5em; }
    h2 { font-size: 1.4em; }
    p { font-size: 0.9em; }

    table, th, td {
        font-size: 0.8em;
        padding: 5px;
    }

    .menu-icon {
        font-size: 1.6em;
    }
}

iframe {
    max-width: 100%;
    width: 560px;
    height: 315px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.download-buttons img {
    width: 100%;
    max-width: 300px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-buttons img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#topBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background-color: #12598f;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 24px;
    display: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#topBtn:hover {
    background-color: #104c84;
    transform: scale(1.3);
}

.bg-white {
    background-color: #ffffff !important;
}

.navbar-light .navbar-brand,
.navbar-light .nav-link {
    color: #000000;
}

.navbar-light .nav-link:hover,
.navbar-light .nav-link:focus {
    color: #0056b3;
}

.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000000' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(0, 0, 0, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Offcanvas Hintergrundfarbe */
.offcanvas {
    background-color: #f8f9fa; /* Heller Hintergrund */
}

/* Dropdown Styling */
.dropdown-menu {
    border-radius: 0.5rem;
}

/* Suchvorschläge Styling */
#suggestions {
    max-height: 200px;
    overflow-y: auto;
}
