html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Digitale Visitenkarte */
.digital-card-page {
    min-height: calc(100vh - 80px);
    padding: 7rem 1rem 4rem;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef4f6 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.digital-card-wrapper {
    width: 100%;
    max-width: 460px;
    background: white;
    border-radius: 28px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 24px 60px rgba(3, 35, 55, 0.14);
    border: 1px solid rgba(3, 35, 55, 0.06);
}

.digital-card-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
}

.digital-profile {
    margin-bottom: 2rem;
}

.digital-profile-image {
    width: 155px;
    height: 155px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    background: #f4f4f4;
    border: 5px solid #ffffff;
    box-shadow: 0 12px 30px rgba(3, 35, 55, 0.18);
    display: block;
    margin: 0 auto 1.2rem;
}

.digital-profile h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #052b46;
    margin: 0;
}

.digital-profile p {
    color: #168799;
    font-weight: 600;
    margin: 0.35rem 0 0;
}

.digital-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.digital-action {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    min-height: 58px;
    padding: 0 1rem;
    border-radius: 16px;
    background: #f4f8f9;
    color: #052b46;
    text-decoration: none;
    border: 1px solid rgba(22, 135, 153, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .digital-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(3, 35, 55, 0.12);
    }

    .digital-action span {
        font-size: 1.4rem;
        text-align: center;
    }

    .digital-action strong {
        text-align: center;
        font-size: 1rem;
        font-weight: 700;
        padding-right: 48px;
    }

.save-contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    border-radius: 16px;
    background: #052b46;
    color: white;
    text-decoration: none;
    font-weight: 800;
    margin-top: 1.2rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

    .save-contact-button:hover {
        transform: translateY(-2px);
        background: #168799;
    }

.back-to-team {
    display: inline-block;
    margin-top: 1.4rem;
    color: #168799;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 600px) {
    .digital-card-page {
        padding: 6rem 1rem 2rem;
    }

    .digital-card-wrapper {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .digital-profile-image {
        width: 135px;
        height: 135px;
    }

    .digital-profile h1 {
        font-size: 1.8rem;
    }

    .digital-action strong {
        font-size: 0.92rem;
    }
}

/* Rechtliches */
.legal-page {
    padding: 8rem 5% 4rem;
    background: #f8f9fa;
    min-height: 100vh;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

    .legal-container h1 {
        color: #3D417A;
        margin-bottom: 2rem;
    }

    .legal-container h2 {
        color: #3D417A;
        margin-top: 2rem;
    }

    .legal-container p {
        color: #555;
        line-height: 1.7;
    }

/* Detailseiten */
.insurance-detail-page {
    padding: 8rem 5% 4rem;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef4f6 100%);
    min-height: 100vh;
}

.insurance-hero {
    max-width: 1000px;
    margin: 0 auto 3rem;
    background: white;
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(3, 35, 55, 0.1);
}

.insurance-eyebrow {
    color: #168799;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.insurance-hero h1 {
    color: #052b46;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.insurance-hero p {
    color: #555;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 780px;
}

.insurance-content {
    max-width: 1000px;
    margin: 0 auto;
}

.insurance-section,
.insurance-cta {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 14px 35px rgba(3, 35, 55, 0.08);
}

    .insurance-section h2,
    .insurance-cta h2 {
        color: #052b46;
        margin-bottom: 1rem;
    }

    .insurance-section p,
    .insurance-cta p {
        color: #555;
        line-height: 1.7;
    }

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.insurance-card {
    background: white;
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 14px 35px rgba(3, 35, 55, 0.08);
    border: 1px solid rgba(22, 135, 153, 0.12);
}

    .insurance-card h3 {
        color: #3D417A;
        margin-bottom: 1rem;
    }

    .insurance-card p {
        color: #555;
        line-height: 1.6;
    }

.insurance-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem 1.5rem;
    padding-left: 0;
    list-style: none;
}

    .insurance-checklist li {
        background: #f4f8f9;
        border-radius: 14px;
        padding: 1rem;
        color: #052b46;
        font-weight: 600;
    }

        .insurance-checklist li::before {
            content: "✓";
            color: #168799;
            font-weight: 900;
            margin-right: 0.5rem;
        }

.insurance-primary-button {
    display: inline-flex;
    margin-top: 1.5rem;
    background: #052b46;
    color: white;
    padding: 0.95rem 1.4rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
}

    .insurance-primary-button:hover {
        background: #168799;
    }

@media (max-width: 900px) {
    .insurance-grid,
    .insurance-checklist {
        grid-template-columns: 1fr;
    }

    .insurance-hero h1 {
        font-size: 2.2rem;
    }

    .insurance-hero,
    .insurance-section,
    .insurance-cta {
        padding: 2rem;
    }
}

/* Übersichtsseiten */
.insurance-overview-page {
    padding: 8rem 5% 4rem;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef4f6 100%);
    min-height: 100vh;
}

.insurance-overview-hero {
    max-width: 1000px;
    margin: 0 auto 3rem;
    background: white;
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(3, 35, 55, 0.1);
}

    .insurance-overview-hero h1 {
        color: #052b46;
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .insurance-overview-hero p {
        color: #555;
        font-size: 1.15rem;
        line-height: 1.7;
        max-width: 780px;
    }

.insurance-overview-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.insurance-overview-card {
    display: block;
    background: white;
    border-radius: 22px;
    padding: 2rem;
    text-decoration: none;
    box-shadow: 0 14px 35px rgba(3, 35, 55, 0.08);
    border: 1px solid rgba(22, 135, 153, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .insurance-overview-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 45px rgba(3, 35, 55, 0.13);
    }

    .insurance-overview-card h2 {
        color: #3D417A;
        margin-bottom: 0.75rem;
    }

    .insurance-overview-card p {
        color: #555;
        line-height: 1.6;
        margin: 0;
    }

@media (max-width: 800px) {
    .insurance-overview-grid {
        grid-template-columns: 1fr;
    }

    .insurance-overview-hero h1 {
        font-size: 2.2rem;
    }

    .insurance-overview-hero {
        padding: 2rem;
    }
}

/* Mobile Navigation - native details/summary */
.desktop-nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mobile-nav {
    display: none;
    position: relative;
}

.mobile-nav-toggle {
    list-style: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .mobile-nav-toggle::-webkit-details-marker {
        display: none;
    }

    .mobile-nav-toggle::marker {
        display: none;
    }

.hamburger-line {
    width: 26px;
    height: 3px;
    background: #052b46;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.mobile-nav-menu {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    width: 240px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 18px 35px rgba(3, 35, 55, 0.16);
    padding: 0.75rem 0;
    z-index: 9999;
    overflow: hidden;
}

    .mobile-nav-menu a {
        display: block;
        padding: 1rem 1.25rem;
        color: #052b46;
        text-decoration: none;
        font-weight: 700;
        text-align: left;
    }

        .mobile-nav-menu a:hover {
            background: #f4f8f9;
            color: #168799;
        }

.mobile-nav[open] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav[open] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-nav[open] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .desktop-nav-menu {
        display: none !important;
    }

    .mobile-nav {
        display: block !important;
    }

    .navbar {
        position: relative;
    }
}

@media (min-width: 769px) {
    .desktop-nav-menu {
        display: flex !important;
    }

    .mobile-nav {
        display: none !important;
    }
}

/* Service-Karten */
.service-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
/* Hero-Bereich */
.hero-section {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient( 90deg, rgba(247, 249, 251, 0.76) 0%, rgba(238, 244, 246, 0.64) 38%, rgba(238, 244, 246, 0.46) 64%, rgba(255, 255, 255, 0.30) 100% ), url("/pictures/pic_maare.png");
    background-size: cover;
    background-position: center;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    background: rgba(255, 255, 255, 0.30);
    padding: 2rem;
    border-radius: 28px;
    backdrop-filter: blur(4px);
}

.hero-eyebrow {
    display: inline-flex;
    color: #168799;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 1.05;
    color: #052b46;
    margin: 0 0 1.5rem;
    letter-spacing: -0.04em;
}

.hero-description {
    font-size: 1.18rem;
    line-height: 1.75;
    color: #052b46;
    max-width: 720px;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: none;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-primary-button,
.hero-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.95rem 1.45rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-primary-button {
    background: #052b46;
    color: white;
    box-shadow: 0 14px 30px rgba(5, 43, 70, 0.22);
}

    .hero-primary-button:hover {
        background: #168799;
        transform: translateY(-2px);
    }

.hero-secondary-button {
    background: white;
    color: #052b46;
    border: 1px solid rgba(22, 135, 153, 0.16);
}

    .hero-secondary-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(3, 35, 55, 0.1);
    }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

    .hero-trust span {
        background: white;
        color: #052b46;
        border-radius: 999px;
        padding: 0.7rem 1rem;
        font-weight: 700;
        box-shadow: 0 10px 24px rgba(3, 35, 55, 0.06);
    }

.hero-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 28px 70px rgba(3, 35, 55, 0.14);
    border: 1px solid rgba(22, 135, 153, 0.12);
    backdrop-filter: blur(8px);
}

.hero-card-logo {
    width: 110px;
    height: 82px;
    border-radius: 22px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

    .hero-card-logo img {
        width: 72px;
        height: auto;
        object-fit: contain;
    }

.hero-card h2 {
    color: #052b46;
    font-size: 1.6rem;
    margin: 0 0 1.5rem;
}

.hero-service-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .hero-service-list a {
        display: grid;
        grid-template-columns: 48px 1fr;
        align-items: center;
        min-height: 64px;
        padding: 0.85rem 1rem;
        border-radius: 18px;
        background: #f7f9fb;
        color: #052b46;
        text-decoration: none;
        border: 1px solid rgba(22, 135, 153, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .hero-service-list a:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 26px rgba(3, 35, 55, 0.1);
        }

    .hero-service-list span {
        font-size: 1.5rem;
    }

    .hero-service-list p {
        margin: 0;
        font-weight: 800;
    }

@media (max-width: 900px) {
    .hero-section {
        min-height: auto !important;
        height: auto !important;
        padding: 6rem 1rem 3rem !important;
        display: flex !important;
        align-items: flex-start !important;
        background: linear-gradient( 180deg, rgba(247, 249, 251, 0.82) 0%, rgba(238, 244, 246, 0.68) 55%, rgba(255, 255, 255, 0.45) 100% ), url("/pictures/pic_maare.png") !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .hero-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    .hero-text {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.70) !important;
        padding: 1.5rem !important;
        border-radius: 24px !important;
    }

        .hero-text h1 {
            font-size: 2.35rem !important;
            line-height: 1.08 !important;
        }

    .hero-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-actions {
        justify-content: center !important;
    }

    .hero-primary-button,
    .hero-secondary-button {
        width: 100% !important;
        max-width: 330px !important;
    }

    .hero-trust {
        justify-content: center !important;
    }

        .hero-trust span {
            width: 100% !important;
            max-width: 330px !important;
            text-align: center !important;
        }

    .hero-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 auto !important;
        padding: 1.5rem !important;
    }
}

.contact-success,
.contact-error {
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.contact-success {
    background: #e8f7ef;
    color: #176b3a;
    border: 1px solid rgba(23, 107, 58, 0.18);
}

.contact-error {
    background: #fdecec;
    color: #9b1c1c;
    border: 1px solid rgba(155, 28, 28, 0.18);
}