html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

nav {
    background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
                      url("bilder/hintergund1_menu.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

body {
    margin: 0;
    padding-top: 130px;
    font-family: Arial, sans-serif;
}

/* ===== NAVIGATION ===== */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 140px;
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu li {
    margin: 0;
    padding: 0;
}

.menu a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 18px;
    padding: 14px 16px;
    display: inline-block;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none !important;
    box-shadow: none !important;
}

.menu a:hover {
    background-color: rgba(0,0,0,0.55) !important;
    color: white !important;
}

.menu a.active {
    background-color: rgba(52,152,219,0.9) !important;
    color: white !important;
}

.user-info {
    color: white;
    font-weight: 600;
    padding: 10px 12px;
    display: inline-block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 8px 12px;
}
.gesperrt {
    color: #999 !important;
    cursor: not-allowed;
    text-decoration: none;
}
/* ===== INHALT ===== */
.inhalt {
    max-width: 1000px;
    margin: 60px auto 5px auto;
    padding: 0 20px;
    line-height: 1.6;
    text-align: justify;
    font-family: Arial, "Lucida Console", sans-serif;
    color: #2F4F4F;
}

.inhalt p {
    margin-bottom: 10px;
}

/* ===== INFO-BOXEN ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 20px;
}

.info-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-top: 5px solid #2f7fbf;
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
    color: #1f3b4d;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 15px;
}

.info-box li::before {
    content: "✔";
    color: green;
    position: absolute;
    left: 0;
}

/* ===== KONTAKTFORMULAR ===== */
.kontakt-form {
    max-width: 500px; 
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
    box-sizing: border-box;
}

.optional {
    font-weight: normal;
    color: #888;
    font-size: 13px;
}

.kontakt-form button {
    margin-top: 10px;
    padding: 12px;
    background: #2f7fbf;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}

/* ===== ALLGEMEIN ===== */
.table-wrap {
    overflow-x: auto;
}

input,
textarea,
select,
button {
    max-width: 100%;
    box-sizing: border-box;
}
label:has(+ input[required])::after {
    content: " *";
    color: red;
}
/* ===== TABLET ===== */
@media (max-width: 1100px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== SMARTPHONE ===== */
@media (max-width: 768px) {
    body {
        padding-top: 100px;
        font-size: 16px;
    }

    .nav-container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 15px;
        position: relative;
    }

    .menu-toggle {
        display: block;
        order: 1;
    }

    .logo {
        order: 2;
        margin-left: 0 !important;
    }

    .logo img {
        height: 50px;
        width: auto;
    }

    .menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.97);
        flex-direction: column;
        gap: 0 !important;
        margin: 0;
        padding: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 9999;
    }

    .menu.show {
        display: flex !important;
    }

    .menu li {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #d9d9d9;
    }

    .menu a,
    .user-info {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 16px 20px;
        font-size: 18px;
        text-align: left;
        color: #333 !important;
        background: white !important;
        border-radius: 0 !important;
    }

    .menu a:hover,
    .menu a.active {
        background: #f0f4f8 !important;
        color: #2f7fbf !important;
    }

    .inhalt {
        max-width: 100%;
        margin: 20px auto 10px auto;
        padding: 0 12px;
        text-align: left;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 12px;
    }

    .info-box {
        padding: 15px;
    }

    .info-box h3 {
        font-size: 18px;
    }

    .info-box li {
        font-size: 14px;
        line-height: 1.4;
    }

    .kontakt-form {
        max-width: 100%;
    }

    table {
        width: 100%;
        font-size: 14px;
    }

    th,
    td {
        padding: 8px;
    }
}