body {
    background-color: #c2e5e9;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    color: white;
    overflow-y: auto;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}



.telenummer {
    text-decoration: none;
    color: black;
    transition: 1s;
}
.telenummer:hover{
    transition: 1s;
    text-decoration: underline;
    
}


header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    margin: 0;
    font-size: 3em;
}

h2 {
    margin-top: 10px;
    font-weight: normal;
    font-size: 1.2em;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
}

.menu-link {
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.3s;
}

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    z-index: 1;
    border-radius: 4px;
    padding: 5px 0;
}

.dropdown-content a {
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #555;
}

.dropdown:focus-within .dropdown-content,
.dropdown:hover .dropdown-content {
    display: block;
}

/* Old .b-img rule replaced by below for consistency */

.b-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    object-position: top;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1em;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    overflow: hidden;
}

.main-box {
    display: flex;
    background-color: white;
    color: #003b4f;
    margin: 0;
    border: none;
    max-width: 1000px;
    width: 100%;
    flex-wrap: wrap;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    align-items: flex-start;
}

.sidebar {
    flex: 1 1 200px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 8px;
    border-right: none;
}

.content {
    flex: 2 1 400px;
    padding: 20px;
    line-height: 1.6;
    font-size: 1.1em;
    background-color: #f9f9f9;
}

.menu-link {
    background-color: #e0f3f5;
    color: #003b4f;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.2s, background-color 0.3s;
    font-weight: 500;
    box-shadow: inset 0 0 0 1px #229bb1;
}

.menu-link.active {
    background-color: #a6d2d7;
    font-weight: bold;
}

/* Notfall-Menülink: spezielle Hervorhebung */
.menu-link.notfall {
    background-color: #f6c6cb;
    color: #721c24;
    box-shadow: inset 0 0 0 1px #f1aeb5;
    transition: transform 0.2s, background-color 0.3s;
    font-weight: 500;
}

.menu-link.notfall:hover {
    background-color: #f1b0b7;
    transform: scale(1.05);
}

.menu-link.notfall.active {
    background-color: #d87b88;
    font-weight: bold;
}

.menu-link:hover {
    background-color: #c0e0e3;
    transform: scale(1.05);
}

.b-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    object-position: top;
}


.page-footer {
    width: 100%;
    background-color: white;
    color: #003b4f;
    border-top: 1px solid #cde5ea;
    padding: 20px;
    font-size: 0.9em;
    text-align: center;
    border-radius: 0 0 12px 12px;
    box-shadow: none;
}

.page-footer a {
    color: #003b4f;
    text-decoration: none;
    margin: 0 10px;
}

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

@media (max-width: 700px) {
    .container {
        margin: 20px auto;
        box-shadow: none;
    }
    .main-box {
        flex-direction: column;
        align-items: stretch;
    }
    .content {
        padding: 16px;
        font-size: 1em;
        max-height: unset;
        overflow: visible;
    }
    .sidebar {
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        align-items: center;
        padding: 10px 0;
    }
    .menu-link {
        width: 90%;
        max-width: 300px;
    }
}



