/* ==========================================================================
   Optisura custom overrides (loaded after optisura.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Email addresses: show exactly as written (lowercase), not theme-capitalized
   -------------------------------------------------------------------------- */
a[href^="mailto:"] {
    text-transform: none;
}

/* --------------------------------------------------------------------------
   Footer "Anfrage starten" button: center it within its column on all sizes
   -------------------------------------------------------------------------- */
.newsletter-one__form,
.main-footer__newsletter__form {
    text-align: center;
}

/* --------------------------------------------------------------------------
   Contact page: add breathing room between the page header and the
   contact-one section (the theme's contact-one__bg abuts it too tightly)
   -------------------------------------------------------------------------- */
.contact-one--page {
    padding-top: 60px;
}
@media (max-width: 767px) {
    .contact-one--page {
        padding-top: 40px;
    }
}

/* --------------------------------------------------------------------------
   "Wer sind Sie? / Welche Leistung? / ..." cards (features-two): cards with
   longer text (e.g. "Kostenlose Beratung") pushed their STARTEN button lower
   than the others. Make each card a vertical flex column and pin the button
   to the bottom so all buttons + icons line up on the same row regardless
   of how much text is above them.
   -------------------------------------------------------------------------- */
.features-two__card__content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.features-two__card__text {
    flex-grow: 1;
}
.features-two__card .optisura-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Footer Kontakt column: second row was a plain clickable heading
   ("Vergleich und Beratung starten") that looked broken/wrapped badly.
   It's now a real button — give it proper spacing above/below.
   -------------------------------------------------------------------------- */
.footer-widget__blog__content--cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-widget__blog__btn {
    align-self: flex-start;
}





/* --------------------------------------------------------------------------
   Form consent + honeypot (spam trap)
   -------------------------------------------------------------------------- */
.optisura-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.optisura-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--optisura-text, #636363);
    text-align: left;
    cursor: pointer;
}
.optisura-consent input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--optisura-base, #006654);
}
.optisura-consent a {
    color: var(--optisura-base, #006654);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Iconify (Solar Duotone) base sizing
   -------------------------------------------------------------------------- */
iconify-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

/* --------------------------------------------------------------------------
   Krankenkasse premium calculator
   -------------------------------------------------------------------------- */
.km-compare__benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 34px;
    margin: 0 0 38px;
}
.km-compare__benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--optisura-black3, #1a1a1a);
}
.km-compare__benefits iconify-icon { font-size: 26px; color: var(--optisura-base, #006654); }

.km-calc__card {
    max-width: 1040px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
    padding: 40px;
}
@media (max-width: 575px) { .km-calc__card { padding: 24px; } }
.km-calc__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--optisura-black3, #333333);
}
.km-calc__label iconify-icon { font-size: 19px; color: var(--optisura-base, #006654); }
.km-calc__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.km-calc__hint { margin: 0; font-size: 14px; font-weight: 500; color: var(--optisura-text, #636363); }

.km-calc__results { margin-top: 34px; }
.km-calc__banner {
    display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px;
    background: var(--optisura-base, #006654); color: #ffffff; border-radius: 14px; padding: 24px 28px;
}
.km-calc__banner__main, .km-calc__banner__save { display: flex; align-items: center; gap: 16px; flex: 1 1 280px; }
.km-calc__banner__save { justify-content: flex-end; border-left: 1px solid rgba(255, 255, 255, 0.18); padding-left: 16px; }
@media (max-width: 575px) { .km-calc__banner__save { justify-content: flex-start; border-left: 0; padding-left: 0; } }
.km-calc__banner__icon iconify-icon { font-size: 44px; color: var(--optisura-primary, #f5c835); }
.km-calc__banner strong { color: var(--optisura-primary, #f5c835); }
.km-calc__banner__big { font-size: 24px; font-weight: 700; line-height: 1.25; }
.km-calc__banner__small { font-size: 14px; opacity: 0.92; margin-top: 2px; }
.km-calc__table-wrap { overflow-x: auto; margin-top: 22px; }
.km-calc__table { width: 100%; border-collapse: collapse; min-width: 460px; }
.km-calc__table th, .km-calc__table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid #eef0f0; font-size: 15px; }
.km-calc__table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--optisura-text, #636363); background: var(--optisura-white3, #ecf5f4); }
.km-calc__table tbody tr:first-child td { font-weight: 700; background: rgba(0, 102, 84, 0.04); }
.km-calc__table td:last-child, .km-calc__table th:last-child { text-align: right; }
.km-calc__best { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; background: var(--optisura-primary, #f5c835); color: #131111; vertical-align: middle; }
.km-calc__sample { display: flex; align-items: flex-start; gap: 7px; margin-top: 16px; font-size: 13px; color: var(--optisura-text, #636363); }
.km-calc__sample iconify-icon { font-size: 18px; color: var(--optisura-base, #006654); flex-shrink: 0; }

.km-calc__lead { margin-top: 30px; background: var(--optisura-white3, #ecf5f4); border-radius: 14px; padding: 30px; }
@media (max-width: 575px) { .km-calc__lead { padding: 22px; } }
.km-calc__lead h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 22px; }
.km-calc__lead h3 iconify-icon { font-size: 28px; color: var(--optisura-base, #006654); }
.km-calc__lead__sub { margin: 0 0 22px; font-size: 15px; color: var(--optisura-text, #636363); }
.km-calc__lead .form-one__group { grid-gap: 18px; }
.km-calc__lead .form-one input:not([type="checkbox"]) { background: #ffffff; }
.km-calc__lead .optisura-consent { margin: 0; }
.km-calc__msg { margin-top: 6px; font-weight: 600; }
.km-calc__msg.is-error { color: #c0392b; }
.km-calc__msg.is-success { color: var(--optisura-base, #006654); }

/* vergleich 2-column hero: "So funktioniert's" steps + trust badges */
.km-compare__hero { margin-bottom: 0; }
.km-compare__intro { padding-right: 14px; }
@media (max-width: 991px) { .km-compare__intro { padding-right: 0; } }
.km-steps { margin: 34px 0 28px; display: flex; flex-direction: column; gap: 22px; }
.km-steps li { display: flex; align-items: flex-start; gap: 16px; }
.km-steps__num {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
    background: var(--optisura-primary, #f5c835); color: #131111;
    font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
    margin-top: 4px;
}
.km-steps__icon { flex-shrink: 0; line-height: 1; margin-top: 2px; }
.km-steps__icon iconify-icon { font-size: 36px; color: var(--optisura-base, #006654); }
.km-steps__title { margin: 0 0 3px; font-size: 18px; font-weight: 700; }
.km-steps__text { margin: 0; font-size: 15px; color: var(--optisura-text, #636363); }
.km-trust { display: flex; flex-wrap: wrap; gap: 12px 22px; padding-top: 22px; border-top: 1px solid var(--optisura-border-color, #e6e6e6); }
.km-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--optisura-black3, #1a1a1a); }
.km-trust iconify-icon { font-size: 20px; color: var(--optisura-base, #006654); }

/* "prefer personal" contact band (replaces the duplicate contact form) */
.km-contact-band { padding-bottom: 120px; }
@media (max-width: 767px) { .km-contact-band { padding-bottom: 80px; } }
.km-contact-band__inner {
    display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
    background: var(--optisura-base, #006654); color: #ffffff;
    border-radius: 18px; padding: 42px 46px;
    background-image: linear-gradient(120deg, var(--optisura-base, #006654), #00543f);
}
@media (max-width: 767px) { .km-contact-band__inner { padding: 30px 26px; } }
.km-contact-band__icon { flex-shrink: 0; line-height: 1; }
.km-contact-band__icon iconify-icon { font-size: 62px; color: var(--optisura-primary, #f5c835); }
.km-contact-band__body { flex: 1 1 320px; }
.km-contact-band__title { margin: 0 0 8px; font-size: 26px; color: #ffffff; }
.km-contact-band__text { margin: 0; font-size: 15px; opacity: 0.92; }
.km-contact-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.km-contact-band__mail { display: inline-flex; align-items: center; gap: 8px; color: #ffffff; font-weight: 600; }
.km-contact-band__mail iconify-icon { font-size: 22px; color: var(--optisura-primary, #f5c835); }
.km-contact-band__mail:hover { color: var(--optisura-primary, #f5c835); }

/* --------------------------------------------------------------------------
   "Unsere Schwerpunkte" cards — static responsive grid (reliable; replaces
   the carousel that did not slide in this build)
   -------------------------------------------------------------------------- */
.services-two__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 991px) { .services-two__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .services-two__grid { grid-template-columns: 1fr; } }
.services-two__grid .item { width: 100%; }
.services-two .custom-nav { display: none; }
/* content-only cards: hide the carousel's placeholder image side for a clean look */
.services-two__grid .service-card-two {
    grid-template-columns: 1fr;
    height: 100%;
    border: 1px solid var(--optisura-border-color, #dddddd);
    border-radius: 12px;
}
.services-two__grid .service-card-two__bg,
.services-two__grid .service-card-two__shape { display: none; }
/* the icon-box margin was sized for the tall image cards; tighten for content-only cards */
.services-two__grid .service-card-two__icon-box { margin-bottom: 28px; }
/* The theme shifts .services-two__container off the right edge for the carousel
   "peek" (width:auto; max-width:inherit; margin-left:calc(...)). For the static
   grid that causes horizontal overflow and clips the 3rd column + arrows.
   Restore a normal centered container that aligns with the section title above. */
@media (min-width: 768px) {
    .services-two__container {
        width: 100%;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (min-width: 992px) { .services-two__container { max-width: 960px; } }
@media (min-width: 1200px) { .services-two__container { max-width: 1200px; } }
/* bring the "go" arrow fully inside the card (theme had it half-clipped at right:-25px) */
.services-two__grid .service-card-two__btn { right: 30px; bottom: 30px; }
/* reserve space on the right so the description text clears the arrow (no overlap) */
.services-two__grid .service-card-two__content { padding-right: 84px; }

/* --------------------------------------------------------------------------
   Hero slider: the theme right-shifts the container at >=1800px
   (margin-right: 69px), leaving the content off-center on wide screens.
   Keep it centered at every width.
   -------------------------------------------------------------------------- */
@media (min-width: 1800px) {
    .hero-slider .container { margin-right: auto; }
}

/* --------------------------------------------------------------------------
   Language switcher (compact dropdown — shows only the active language)
   -------------------------------------------------------------------------- */
.lang-switch {
    position: relative;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.lang-switch__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.lang-switch__toggle:hover {
    color: var(--optisura-primary, #f5c835);
}

.lang-switch__caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.85;
    transition: transform 0.25s ease;
}

.lang-switch.is-open .lang-switch__caret {
    transform: rotate(180deg);
}

.lang-switch__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 9999;
    min-width: 168px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.lang-switch.is-open .lang-switch__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switch__menu::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 14px;
    width: 10px;
    height: 10px;
    background: #ffffff;
    transform: rotate(45deg);
}

.lang-switch__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--optisura-black3, #333333);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switch__item:hover {
    background: var(--optisura-white3, #ecf5f4);
    color: var(--optisura-base, #006654);
}

.lang-switch__item.is-active {
    background: var(--optisura-base, #006654);
    color: #ffffff;
}

.lang-switch__code {
    min-width: 22px;
    font-weight: 700;
}

.lang-switch__name {
    font-weight: 500;
}

/* Context: subpage topbar (light background, gray toggle text) */
.topbar .lang-switch {
    color: var(--optisura-text, #636363);
}

/* The topbar and main header both use z-index:999; the header comes later in
   the DOM and would paint over the topbar's open dropdown. Lift the topbar. */
.topbar {
    z-index: 1000;
}

.topbar__right .lang-switch {
    margin-right: 8px;
}

/* Context: home header over hero (light toggle text) */
.main-header--two .lang-switch {
    color: #ffffff;
}

/* Home header turns solid white when sticky -> dark toggle text */
.sticky-header--cloned.main-header--two .lang-switch {
    color: var(--optisura-black3, #333333);
}

/* Context: mobile slide-in menu — show inline list (vertical space is fine) */
.mobile-nav__content .lang-switch {
    display: block;
    margin-top: 25px;
    color: #ffffff;
}

.mobile-nav__content .lang-switch__toggle {
    display: none;
}

.mobile-nav__content .lang-switch__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-nav__content .lang-switch__menu::before {
    display: none;
}

.mobile-nav__content .lang-switch__item {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.mobile-nav__content .lang-switch__item .lang-switch__name {
    display: none;
}

.mobile-nav__content .lang-switch__item.is-active {
    background: var(--optisura-base, #006654);
    border-color: var(--optisura-base, #006654);
}

/* The desktop topbar is hidden under 992px; the home-header switcher is
   replaced by the one inside the mobile menu on small screens. */
@media (max-width: 991px) {
    .main-header__right .lang-switch {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Footer columns: the theme's large fixed padding-left (70px) on the link
   columns was sized for a wider two-list layout. With a single list (or on
   narrower grid columns) it pushes text into the neighbouring column and/or
   leaves too little breathing room. Reset it and add a proper column gap.
   -------------------------------------------------------------------------- */
.main-footer__top .row.gutter-y-40 {
    column-gap: 0;
}
.footer-widget--links-1,
.footer-widget--links-2 {
    padding-left: 0;
}
.footer-widget__links-box {
    gap: 24px;
}
.footer-widget__links-box .footer-widget__links--1 {
    flex: 1 1 auto;
    min-width: 0;
}
.footer-widget--about,
.footer-widget--links,
.footer-widget--blog {
    padding-right: 20px;
}
@media (max-width: 1199px) {
    .footer-widget--about,
    .footer-widget--links,
    .footer-widget--blog {
        padding-right: 10px;
    }
}
@media (max-width: 767px) {
    .footer-widget--about,
    .footer-widget--links,
    .footer-widget--blog {
        padding-right: 0;
    }
}

/* --------------------------------------------------------------------------
   "Vergleichen / Analysieren / Sparen" cards on about.php: these reuse the
   theme's .service-card markup but skip the .service-card__bg__main element
   the theme uses to fill a colored background on hover. Without it, the
   theme's global ":hover { color:#fff }" rule still fires and the text turns
   white on a white card -> invisible. Give this specific instance its own
   themed, high-contrast hover treatment instead.
   -------------------------------------------------------------------------- */
.optisura-steps .service-card {
    height: 100%;
    background-color: #ffffff;
    border: 1px solid var(--optisura-border-color, #e6e6e6);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.optisura-steps .service-card__content {
    position: relative;
    z-index: 1;
}
.optisura-steps .service-card__title,
.optisura-steps .service-card__text,
.optisura-steps .service-card__icon {
    transition: color 0.35s ease;
}
.optisura-steps .service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--optisura-base, #006654);
}
.optisura-steps .service-card:hover {
    background-color: var(--optisura-base, #006654);
    border-color: var(--optisura-base, #006654);
    box-shadow: 0 18px 40px rgba(0, 102, 84, 0.28);
    transform: translateY(-6px);
}
.optisura-steps .service-card:hover .service-card__title,
.optisura-steps .service-card:hover .service-card__title a,
.optisura-steps .service-card:hover .service-card__text {
    color: #ffffff !important;
}
.optisura-steps .service-card:hover .service-card__icon {
    color: var(--optisura-primary, #f5c835);
}

/* --------------------------------------------------------------------------
   WhatsApp shortcut button in header-one (inner pages, light navbar).
   Small round icon button next to the "Kostenlos vergleichen" CTA.
   -------------------------------------------------------------------------- */
.main-header__call--one {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 14px;
    border-radius: 50%;
    background-color: #25D366;
    color: #ffffff !important;
    font-size: 22px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.main-header__call--one:hover {
    background-color: var(--optisura-base, #006654);
    transform: translateY(-2px);
}
@media (max-width: 575px) {
    .main-header__call--one { width: 38px; height: 38px; font-size: 19px; margin-left: 8px; }
}




