/* Grundstil modernisieren */
body {
    font-family: Montserrat, Helvetica, sans-serif;
    margin: 0;
    background-color: #f7f9fb;
    color: #333;
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    background-color: #e6f2ff;
    padding: 0 10px;
    font-size: 12px;
    line-height: 40px;
    height: 40px;
    position: fixed;
    z-index: 1000;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.top-bar a {
    text-decoration: none;
    color: #000;
    transition: color 0.2s ease;
}
.top-bar a:hover {
    color: #0078c2;
}

/* Navigation */
.mod_navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mod_navigation .level_1 {
    display: flex;
    background-color: #fff;
    position: fixed;
    top: 40px;
    z-index: 999;
    justify-content: center;
    width: 100%;
    height: 50px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.mod_navigation .level_1 > li > a,
.mod_navigation .level_1 > li > strong {
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #222;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.mod_navigation .level_1 > li > a:hover,
.mod_navigation .level_1 > li > strong:hover {
    background-color: #d1edfa;
    color: #00516D;
}

/* Submenu */
.mod_navigation .level_2 {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.mod_navigation .level_2 a,
.mod_navigation .level_2 strong {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 12px 20px;
    transition: background-color 0.2s ease;
}
.mod_navigation .level_2 a:hover,
.mod_navigation .level_2 strong:hover {
    background-color: #f0f9ff;
}
@media screen and (min-width: 769px) {
    .mod_navigation .level_1 > li:hover .level_2 {
        display: block;
    }
}

/* Content Bereich */
#main {
    padding-top: 100px;
}
.content-text {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 20px;
    color: #444;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.content-text h1 {
    font-size: 24px;
    color: #0078c2;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding-bottom: 8px;
}

/* Banner */
#banner figure {
    position: relative;
    height: 300px;
    overflow: hidden;
}
/* Einheitliche großen Bilder – nur wenn sie nicht verlinkt sind */
#banner img:not(a img),
#main img:not(a img) {
    /*width: 100%;*/
    max-width: 100%;
    /*height: 500px;*/
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    display: block;
}

/* Bilder in Links (z.B. Logos, Buttons) */
#main a img,
#banner a img {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0;
    display: inline-block;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .mod_navigation .level_1 {
        flex-direction: column;
        height: auto;
        position: static;
        box-shadow: none;
    }
    .mod_navigation .level_1 > li {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .mod_navigation .level_2 {
        position: static;
        box-shadow: none;
        border-radius: 0;
    }
}

/* Buttons allgemein */
button, .btn {
    background-color: #0078c2;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
button:hover, .btn:hover {
    background-color: #005f97;
}


/* Einheitliche Bilder im Content und Banner */
#banner img,
#main img {
    /*width: 100%;*/
    max-width: 100%;
    /*height: 500px;        /* feste maximale Höhe für große Screens */
    object-fit: cover;    /* beschneiden statt verzerren */
    object-position: center;
    border-radius: 6px;
    display: block;
}

/* Bannercontainer fixen */
#banner figure {
    position: relative;
    /*height: 500px; /* gleiche Höhe wie img */
    overflow: hidden;
}

/* Contentbereich mittig setzen */
#main {
    padding-top: 100px;
    padding-left: 15px;
    padding-right: 15px;
}

#main > * {
    max-width: 900px; /* auf Desktop begrenzen */
    margin: 0 auto;    /* zentrieren */
}

/* Karten- / Textboxen im Content */
.content-text {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 20px;
    color: #444;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Responsive Anpassung für kleinere Screens */
@media (max-width: 768px) {
    #banner img,
    #main img {
        height: auto; /* Höhe freigeben auf Tablets/Phones */
    }
    #banner figure {
        height: auto;
    }
}

iframe {
  margin-left: 0px !important;
  margin-top: 20px !important;
}
}