/* # 1 Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f9ff;
    color: #18324a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* # 2 Basis */
a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* # 3 Topbar */
.topbar {
    background: linear-gradient(135deg, #18324a, #2d7fcb);
    color: #ffffff;
    padding: 14px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.topbar-left,
.topbar-right {
    font-size: 15px;
    font-weight: 700;
}

.topbar a:hover {
    text-decoration: underline;
}

/* # 4 Navbar */
.navbar-wrap {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 127, 203, 0.12);
    box-shadow: 0 6px 25px rgba(22, 74, 121, 0.08);
}

.navbar {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 6px 20px rgba(45, 127, 203, 0.12);
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f3d5a;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 13px;
    color: #4f7594;
    line-height: 1.3;
}

/* # 5 Nav Desktop */
.main-nav {
    margin-left: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item {
    position: relative;
}

/* # Default Nav */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 14px;
    color: #245070;
    font-size: 15px;
    font-weight: 700;
    transition: 0.25s ease;
    
    background: #ffffff; /* # weiß */
    border: 1px solid transparent;
}

/* # ACTIVE (bleibt wie es ist) */
.nav-item.active > .nav-link {
    background: linear-gradient(135deg, #2d7fcb, #2d7fcb);
    color: #ffffff;
    border: none;
}

/* # HOVER (nur Rahmen, kein Background) */
.nav-link:hover {
    background: #ffffff; /* # bleibt weiß */
    border: 1px solid #2d7fcb; /* # blauer Rahmen */
    color: #2d7fcb;
}


.caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    display: inline-block;
    margin-top: 2px;
}

/* # 6 Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 265px;
    background: #ffffff;
    border-radius: 18px;
    padding: 10px;
    list-style: none;
    box-shadow: 0 18px 50px rgba(19, 66, 112, 0.18);
    border: 1px solid rgba(45, 127, 203, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: 0.22s ease;
    z-index: 999;
}

.dropdown li a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #245070;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.dropdown li a:hover {
    background: #edf6ff;
    color: #2d7fcb;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

/* # 7 Mobile Button */
.mobile-menu-btn {
    display: none;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: #edf6ff;
    cursor: pointer;
    padding: 12px;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    margin: 5px 0;
    background: #2d7fcb;
    border-radius: 3px;
    transition: 0.2s ease;
}

/* # 8 Hero */
.hero {
    position: relative;
    min-height: 630px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 45%, rgba(255,255,255,0.52) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 30px;
    align-items: center;
    padding-top: 70px;
    padding-bottom: 70px;
}

.hero-badge {
    display: inline-block;
    background: rgba(77, 184, 219, 0.16);
    color: #227094;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-left h1 {
    font-size: 54px;
    line-height: 1.1;
    color: #1d334a;
    margin-bottom: 12px;
}

.hero-left h2 {
    font-size: 30px;
    font-weight: 400;
    color: #33aeca;
    margin-bottom: 20px;
}

.hero-left p {
    font-size: 16px;
    color: #4d6a84;
    max-width: 720px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-card {
    background: rgba(255,255,255,0.92);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(23, 68, 116, 0.14);
    border: 1px solid rgba(45,127,203,0.10);
}

.logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.logo-card img {
    max-height: 170px;
    width: auto;
    object-fit: contain;
}

.info-card h3 {
    font-size: 28px;
    color: #1f3d5a;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 18px;
    color: #3f627f;
}

.info-card hr {
    border: 0;
    border-top: 1px solid #d9e8f7;
    margin: 18px 0;
}

/* # 9 Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    transition: 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2d7fcb, #2d7fcb);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(45, 127, 203, 0.22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(45, 127, 203, 0.28);
}

.btn-outline {
    background: rgba(255,255,255,0.86);
    color: #2d7fcb;
    border: 1px solid rgba(45, 127, 203, 0.18);
}

.btn-outline:hover {
    background: #ffffff;
}

.btn-full {
    width: 100%;
    margin-top: 16px;
}

/* # 10 Sections */
.section {
    padding: 80px 0;
}

.section-white {
    background: #ffffff;
}

.section-soft {
    background: linear-gradient(180deg, #f5f9ff 0%, #edf6ff 100%);
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-kicker {
    display: inline-block;
    color: #2d7fcb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-head h2 {
    font-size: 38px;
    color: #1d334a;
    margin-bottom: 12px;
}

.section-head p {
    color: #5a7590;
    font-size: 16px;
}

/* # 11 Cards */
.content-card,
.modern-card,
.time-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 16px 35px rgba(35, 89, 140, 0.08);
    border: 1px solid rgba(45, 127, 203, 0.10);
}

.content-card p {
    font-size: 18px;
    color: #38536f;
    margin-bottom: 14px;
}

.content-card strong {
    color: #1e3b59;
}

.text-placeholder,
.content-text {
    min-height: 16px;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.modern-card h3 {
    font-size: 24px;
    color: #1d334a;
    margin-bottom: 10px;
}

.modern-card p {
    font-size: 18px;
    color: #5b7490;
    margin-bottom: 18px;
}

.card-link {
    color: #2d7fcb;
    font-weight: 700;
}

.info-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #edf6ff, #f7fbff);
    border: 1px solid rgba(45, 127, 203, 0.12);
    border-radius: 24px;
    padding: 30px;
}

.info-banner h3 {
    font-size: 28px;
    color: #1d334a;
    margin-bottom: 8px;
}

.info-banner p {
     font-size: 18px;
    color: #58738f;
}

/* # 12 Inner Hero */
.inner-hero {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.inner-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(29,51,74,0.62) 0%, rgba(45,127,203,0.36) 100%);
}

.inner-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
}

.inner-hero-content h1 {
    font-size: 46px;
    margin-bottom: 12px;
}

.inner-hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.92);
}

/* # 13 Sprechzeiten */
.time-card h3 {
    font-size: 28px;
    color: #1d334a;
    margin-bottom: 22px;
}

.time-list {
    display: grid;
    gap: 14px;
}

.time-list div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #e4effb;
    color: #33506d;
    font-size: 15px;
}

/* # 14 Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 30px;
}

.contact-info-list {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.contact-info-list div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: #f8fbff;
    border: 1px solid #e4effb;
    border-radius: 16px;
}

.map-placeholder {
    margin-top: 25px;
    min-height: 220px;
    border: 2px dashed #b7d1ea;
    border-radius: 20px;
    background: #f8fbff;
    padding: 25px;
    color: #5a7590;
}

.contact-form {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #234564;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: #f8fbff;
    border: 1px solid #d7e7f7;
    border-radius: 14px;
    padding: 14px 15px;
    font-size: 15px;
    color: #1f3d5a;
    outline: none;
    transition: 0.2s ease;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #4db8db;
    box-shadow: 0 0 0 4px rgba(77, 184, 219, 0.10);
}

.honeypot {
    display: none !important;
}

/* # 15 Footer */
.site-footer {
    background: #18324a;
    color: #d8e7f5;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-top: 60px;
    padding-bottom: 40px;
}

.footer-box h3 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 20px;
}

.footer-box p {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-box a {
    color: #d8e7f5;
}

.footer-box a:hover {
    color: #7fd4ea;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: 18px 0;
}

.footer-bottom p {
    font-size: 14px;
    color: #c2d9ed;
    text-align: center;
}

/* # 16 Utility */
.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* # 17 Mobile Nav Active */
.main-nav.is-open {
    display: block;
}

/* # 18 Responsive Large */
@media (max-width: 1199px) {
    .hero-left h1 {
        font-size: 46px;
    }

    .hero-left h2 {
        font-size: 26px;
    }

    .section-head h2 {
        font-size: 34px;
    }

    .inner-hero-content h1 {
        font-size: 40px;
    }

    .cards-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* # 19 Responsive Tablet */
@media (max-width: 991px) {
    .topbar {
        padding: 12px 0;
    }

    .topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .navbar {
        min-height: 84px;
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: inline-block;
    }

    .main-nav {
        width: 100%;
        display: none;
        margin-left: 0;
        padding-bottom: 18px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        padding-top: 10px;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 15px 16px;
        background: #f8fbff;
        border: 1px solid #e0edf9;
    }

    .nav-item.active > .nav-link,
    .nav-link:hover {
        background: linear-gradient(135deg, #4db8db, #2d7fcb);
        color: #ffffff;
    }

    .dropdown {
        position: static;
        min-width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 10px;
        padding: 10px;
        border-radius: 16px;
        box-shadow: none;
        background: #ffffff;
    }

    .has-dropdown.open > .dropdown {
        display: block;
    }

    .has-dropdown:hover > .dropdown,
    .has-dropdown:focus-within > .dropdown {
        transform: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 55%, rgba(255,255,255,0.70) 100%);
    }

    .hero-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-left h1 {
        font-size: 40px;
    }

    .hero-left h2 {
        font-size: 24px;
    }

    .hero-right {
        gap: 18px;
    }

    .cards-3 {
        grid-template-columns: 1fr;
    }

    .info-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .inner-hero {
        min-height: 260px;
    }

    .inner-hero-content {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* # 20 Responsive Mobile */
@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
        font-size: 14px;
    }

    .navbar {
        min-height: 78px;
        gap: 14px;
    }

    .brand {
        gap: 10px;
        max-width: calc(100% - 66px);
    }

    .brand img {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .brand-title {
        font-size: 16px;
    }

    .brand-subtitle {
        font-size: 12px;
    }

    .hero {
        background-position: center center;
    }

    .hero-content {
        padding-top: 36px;
        padding-bottom: 40px;
        gap: 20px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 14px;
    }

    .hero-left h1 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .hero-left h2 {
        font-size: 21px;
        margin-bottom: 16px;
    }

    .hero-left p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-card,
    .content-card,
    .modern-card,
    .time-card {
        padding: 22px;
        border-radius: 20px;
    }

    .logo-card {
        min-height: 180px;
    }

    .logo-card img {
        max-height: 130px;
    }

    .info-card h3,
    .time-card h3 {
        font-size: 24px;
    }

    .section {
        padding: 60px 0;
    }

    .section-head {
        margin-bottom: 28px;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .section-head p {
        font-size: 15px;
    }

    .inner-hero {
        min-height: 220px;
    }

    .inner-hero-content h1 {
        font-size: 30px;
    }

    .inner-hero-content p {
        font-size: 16px;
    }

    .time-list div {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 45px;
        padding-bottom: 28px;
    }

    .footer-box h3 {
        font-size: 18px;
    }

    .footer-bottom {
        padding: 16px 0;
    }
}

/* # 21 Small Mobile */
@media (max-width: 480px) {
    .topbar {
        padding: 10px 0;
    }

    .mobile-menu-btn {
        width: 48px;
        height: 48px;
        padding: 10px;
    }

    .brand-title {
        font-size: 15px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .hero-left h1 {
        font-size: 28px;
    }

    .hero-left h2 {
        font-size: 18px;
    }

    .hero-left p {
        font-size: 14px;
    }

    .hero-card,
    .content-card,
    .modern-card,
    .time-card {
        padding: 18px;
      
    }

    .section {
        padding: 50px 0;
    }

    .section-head h2 {
        font-size: 24px;
    }

    .info-card h3,
    .time-card h3,
    .info-banner h3 {
        font-size: 22px;
    }

    .nav-link {
        font-size: 14px;
    }

    .dropdown li a {
        font-size: 14px;
    }
}

.nav-link {
    padding: 16px 26px;
    min-width: 150px;
    text-align: center;
    justify-content: center;
}
.nav-link {
    padding: 10px 20px;
}

/* # Dropdown FIX */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    
    display: flex; /* # WICHTIG */
    flex-direction: column;

    min-width: 260px;
    width: max-content; /* # passt sich Inhalt an */
    max-width: 90vw;

    background: #ffffff;
    border-radius: 18px;
    padding: 12px;

    box-shadow: 0 18px 50px rgba(19, 66, 112, 0.18);
    border: 1px solid rgba(45, 127, 203, 0.10);

    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: 0.22s ease;

    z-index: 999;
}
.dropdown li {
    width: 100%;
}

.dropdown li a {
    display: block;
    width: 100%;
    white-space: nowrap; /* # verhindert umbrechen */
}

.form-group select {
    width: 100%;
    background: #f8fbff;
    border: 1px solid #d7e7f7;
    border-radius: 14px;
    padding: 14px 15px;
    font-size: 15px;
    color: #1f3d5a;
    outline: none;
    transition: 0.2s ease;
    appearance: none; /* # entfernt Standard Pfeil */
}

/* # Focus Effekt */
.form-group select:focus {
    border-color: #4db8db;
    box-shadow: 0 0 0 4px rgba(77, 184, 219, 0.10);
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between; /* # verteilt links/rechts */
    gap: 12px;

    padding: 10px 14px;
    background: #f8fbff;
    border: 1px solid #d7e7f7;
    border-radius: 14px;
    min-height: 56px;
}

/* Bild links */
.captcha-box img {
    max-height: 48px;
    border-radius: 10px;
    border: 1px solid #d7e7f7;
    background: #ffffff;
}

/* Button rechts */
.captcha-reload-btn {
    white-space: nowrap;
    height: 42px;
    padding: 0 14px;
}

#submitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.zk-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.zk-checkbox-group input[type="checkbox"] {
   
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.zk-checkbox-group label {
    font-size: 14px;
    line-height: 1.5;
    color: #2c3e50;
    cursor: pointer;
}
.time-card {
    width: 48%;
    min-width:300px;
}

/* Mobile */
@media (max-width: 768px) {
    .time-card {
        width: 100%;
    }
}