/* ==========================================================
   FAQ - SP PAGE BUILDER
   ========================================================== */


/* -----------------------------------------
   FAQ-KARTEN
   ----------------------------------------- */

.faq-accordion .sppb-panel {
    border: 0 !important;
    border-radius: 12px !important;
    background: #f5f7f2 !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;

    transition:
        background-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease !important;
}


/* Hover komplette Karte */

.faq-accordion .sppb-panel:hover {
    background: #eef4f7 !important;
    box-shadow: 0 6px 18px rgba(18, 55, 91, 0.10) !important;
    transform: translateY(-2px);
}


/* -----------------------------------------
   FRAGE
   ----------------------------------------- */

.faq-accordion .sppb-panel-heading {
    position: relative !important;

    display: flex !important;
    align-items: center !important;

    min-height: 95px !important;

    padding: 22px 70px 22px 24px !important;

    background: transparent !important;
    border: 0 !important;

    color: #181818 !important;

    cursor: pointer !important;

    transition:
        background-color .25s ease,
        color .25s ease !important;
}


/* Fragetext */

.faq-accordion .sppb-panel-title {
    color: #181818 !important;

    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}


/* -----------------------------------------
   AKTIVE FRAGE
   ----------------------------------------- */

.faq-accordion .sppb-panel-heading.active {
    background: #12375b !important;
    color: #ffffff !important;
}


.faq-accordion .sppb-panel-heading.active .sppb-panel-title {
    color: #ffffff !important;
}


/* -----------------------------------------
   PLUS / MINUS
   ----------------------------------------- */

.faq-accordion .sppb-toggle-direction {
    position: absolute !important;

    right: 20px !important;
    top: 50% !important;

    transform: translateY(-50%) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 38px !important;
    height: 38px !important;

    border: 1px solid rgba(18, 55, 91, .30) !important;
    border-radius: 50% !important;

    background: #ffffff !important;
    color: #12375b !important;

    transition:
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease !important;
}


/* Plus-Kreis beim Hover */

.faq-accordion .sppb-panel-heading:hover .sppb-toggle-direction {
    background: #12375b !important;
    border-color: #12375b !important;
    color: #ffffff !important;

    transform:
        translateY(-50%)
        scale(1.07) !important;
}


/* Plus/Minus bei geöffneter Frage */

.faq-accordion .sppb-panel-heading.active .sppb-toggle-direction {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #12375b !important;
}


/* -----------------------------------------
   ANTWORT
   ----------------------------------------- */

.faq-accordion .sppb-panel-collapse {
    border: 0 !important;
    background: #ffffff !important;
}


/* Antwortbereich */

.faq-accordion .sppb-panel-collapse .sppb-panel-body {
    padding: 22px 24px 25px 24px !important;

    background: #ffffff !important;

    color: #687078 !important;

    font-size: 15px !important;
    line-height: 1.7 !important;
}


/* Absatz innerhalb der Antwort */

.faq-accordion .sppb-panel-collapse .sppb-panel-body p {
    margin: 0 0 10px 0 !important;

    color: #687078 !important;

    font-size: 15px !important;
    line-height: 1.7 !important;
}


/* -----------------------------------------
   MOBILE
   ----------------------------------------- */

@media (max-width: 767px) {

    .faq-accordion .sppb-panel-heading {
        min-height: 80px !important;

        padding:
            18px 60px
            18px 18px !important;
    }


    .faq-accordion .sppb-panel-title {
        font-size: 17px !important;
        line-height: 1.35 !important;
    }


    .faq-accordion .sppb-toggle-direction {
        right: 15px !important;

        width: 36px !important;
        height: 36px !important;
    }


    .faq-accordion .sppb-panel-collapse .sppb-panel-body {
        padding:
            18px 18px
            22px 18px !important;
    }

}
/* ==========================================================
   MOBILE HEADER - FINALE VERSION
   Logo proportional + vertikal mittig + Hamburger rechts
   ========================================================== */

@media (max-width: 991px) {

    /* ------------------------------------------------------
       HEADER-HÖHE UND ABSTÄNDE
       ------------------------------------------------------ */

    #sp-header {
        height: auto !important;
        min-height: 0 !important;
    }

    #sp-header .container-fluid {
        height: auto !important;
        min-height: 0 !important;
    }

    #sp-header .container-inner {
        height: auto !important;
        min-height: 0 !important;
    }


    /* ------------------------------------------------------
       HEADER-ZEILE
       ------------------------------------------------------ */

    #sp-header .row.align-items-center {
        display: flex !important;
        flex-wrap: nowrap !important;

        align-items: center !important;
        justify-content: space-between !important;

        height: auto !important;
        min-height: 74px !important;

        margin: 0 !important;

        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }


    /* ------------------------------------------------------
       LOGO-BEREICH
       ------------------------------------------------------ */

    #sp-header #sp-logo {
        display: flex !important;

        flex: 1 1 auto !important;

        width: auto !important;
        min-width: 0 !important;

        height: auto !important;

        align-items: center !important;

        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }


    #sp-header #sp-logo .sp-column,
    #sp-header #sp-logo .logo,
    #sp-header #sp-logo .logo a {

        display: flex !important;

        align-items: center !important;

        width: 100% !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* ------------------------------------------------------
       LOGO
       IMMER PROPORTIONAL
       ------------------------------------------------------ */

    #sp-header #sp-logo img.logo-image {

        display: block !important;

        width: auto !important;
        height: auto !important;

        max-width: min(260px, calc(100vw - 100px)) !important;
        max-height: 58px !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: left center !important;
    }


    /* ------------------------------------------------------
       MENÜ-BEREICH
       ------------------------------------------------------ */

    #sp-header #sp-menu {

        display: flex !important;

        flex: 0 0 50px !important;

        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;

        height: auto !important;

        margin-left: 10px !important;
        padding: 0 !important;

        align-items: center !important;
        justify-content: center !important;

        position: relative !important;
    }


    /* ------------------------------------------------------
       HAMBURGER
       ------------------------------------------------------ */

    #sp-header #offcanvas-toggler {

        display: flex !important;

        visibility: visible !important;
        opacity: 1 !important;

        position: static !important;

        width: 44px !important;
        height: 44px !important;

        align-items: center !important;
        justify-content: center !important;

        margin: 0 !important;
        padding: 0 !important;

        line-height: 1 !important;

        transform: none !important;
    }


    /* "Menu"-Text entfernen */

    #sp-header #offcanvas-toggler::after {
        content: none !important;
        display: none !important;
    }


    /* Hamburger-Symbol */

    #sp-header #offcanvas-toggler .burger-icon {

        display: block !important;

        width: 25px !important;

        margin: 0 !important;
    }

}


/* ==========================================================
   DESKTOP
   ========================================================== */

@media (min-width: 992px) {

    #sp-header #sp-logo img.logo-image {

        width: auto !important;
        height: 70px !important;

        max-width: none !important;
    }

}
#sp-header.header-sticky{
   background: #b5c1f6;
}
/* ==========================================================
   Augenarztpraxis Passau
   Header: Logo links | Navigation mittig | Button rechts
   Helix Ultimate
   ========================================================== */
body .sppb-btn, body .btn {
    text-transform: none!important;
  }
@media (min-width: 992px) {

    /* ------------------------------------------------------
       1. Header als Bezugspunkt
       ------------------------------------------------------ */

    #sp-header .container-fluid {
        position: relative;
    }

    #sp-header .container-inner {
        position: relative;
    }

    #sp-header .row.align-items-center {
        position: relative;
        width: 100%;
    }


    /* ------------------------------------------------------
       2. Menü-Container im normalen Layout lassen
       WICHTIG: nicht position:absolute verwenden!
       Dadurch bleibt der Kontakt-Button rechts.
       ------------------------------------------------------ */

    #sp-menu {
        position: static !important;
        flex: 1 1 auto;
    }


    /* ------------------------------------------------------
       3. Nur die eigentliche Navigation zentrieren
       ------------------------------------------------------ */

    #sp-menu .sp-megamenu-wrapper {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
        z-index: 10;
    }


    /* ------------------------------------------------------
       4. Menü horizontal ausrichten
       ------------------------------------------------------ */

    #sp-menu .sp-megamenu-parent {
        float: none !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin: 0;
        width: max-content;
    }


    /* ------------------------------------------------------
       5. Kontaktbutton weiterhin rechts halten
       ------------------------------------------------------ */

    #sp-menu .header-menu {
        position: absolute !important;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        margin: 0 !important;
    }

}
/* Automatische Nummerierung im Hauptmenü ausblenden */
.spmenu-number {
    display: none !important;
   }
.sp-megamenu-parent>li:has(.spmenu-number) {
    top: 0px;
    position: relative;
}
/* ==========================================================
   Hauptmenü - Active & Hover
   ========================================================== */

@media (min-width: 992px) {

    /* Grundzustand */
    #sp-header .sp-megamenu-parent > li > a {
        padding: 10px 16px;
        border-radius: 9px;
        transition:
            background-color 0.25s ease,
            color 0.25s ease,
            transform 0.25s ease,
            box-shadow 0.25s ease;
    }


    /* ------------------------------------------------------
       AKTIVER MENÜPUNKT
       ------------------------------------------------------ */

    #sp-header .sp-megamenu-parent > li.active > a,
    #sp-header .sp-megamenu-parent > li.current-item > a {
        background-color: #12375b;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(18, 55, 91, 0.18);
    }


    /* ------------------------------------------------------
       HOVER
       ------------------------------------------------------ */

    #sp-header .sp-megamenu-parent > li:not(.active):not(.current-item) > a:hover {
        background-color: #eaf2f8;
        color: #12375b !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(18, 55, 91, 0.10);
    }


    /* ------------------------------------------------------
       Aktiver Menüpunkt beim Hover
       ------------------------------------------------------ */

    #sp-header .sp-megamenu-parent > li.active > a:hover,
    #sp-header .sp-megamenu-parent > li.current-item > a:hover {
        background-color: #194a78;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(18, 55, 91, 0.24);
    }

}
/* ==========================================================
   Kontaktieren Sie Uns Button
   Gleicher Stil wie aktiver Menüpunkt
   ========================================================== */

@media (min-width: 992px) {

    /* Button Grundzustand */
    #sp-header .header-menu a {
        background-color: #12375b !important;
        color: #ffffff !important;

        padding: 10px 16px !important;
        border-radius: 9px !important;

        border: none !important;
        text-decoration: none !important;

        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;

        box-shadow: 0 4px 12px rgba(18, 55, 91, 0.18);

        transition:
            background-color 0.25s ease,
            color 0.25s ease,
            transform 0.25s ease,
            box-shadow 0.25s ease;
    }


    /* Hover */
    #sp-header .header-menu a:hover {
        background-color: #194a78 !important;
        color: #ffffff !important;

        transform: translateY(-2px);

        box-shadow: 0 6px 16px rgba(18, 55, 91, 0.25);
    }


    /* Icon ebenfalls weiß */
    #sp-header .header-menu a i,
    #sp-header .header-menu a svg {
        color: #ffffff !important;
        fill: currentColor;
    }

}
/* ==========================================================
   GLOBALER BUTTON-STYLE
   Augenarztpraxis Passau
   ========================================================== */


/* ----------------------------------------------------------
   Alle normalen Buttons + SP Page Builder Buttons
   ---------------------------------------------------------- */

.sppb-btn,
.btn,
a.btn,
button.btn,
input[type="submit"],
input[type="button"],
#sp-header .header-menu a {

    /* Farbe */
    background: #12375b !important;
    background-color: #12375b !important;
    color: #ffffff !important;

    /* Größe und Form */
    padding: 10px 16px !important;
    border-radius: 9px !important;

    /* Rahmen entfernen */
    border: 1px solid #12375b !important;

    /* Schrift */
    text-decoration: none !important;

    /* Ausrichtung */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    /* Schatten */
    box-shadow: 0 4px 12px rgba(18, 55, 91, 0.18);

    /* Animation */
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* ----------------------------------------------------------
   HOVER
   ---------------------------------------------------------- */

.sppb-btn:hover,
.btn:hover,
a.btn:hover,
button.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
#sp-header .header-menu a:hover {

    background: #194a78 !important;
    background-color: #194a78 !important;
    border-color: #194a78 !important;
    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(18, 55, 91, 0.25);

    text-decoration: none !important;
}


/* ----------------------------------------------------------
   ACTIVE / Klick
   Kleiner Druck-Effekt beim Anklicken
   ---------------------------------------------------------- */

.sppb-btn:active,
.btn:active,
button.btn:active,
input[type="submit"]:active,
input[type="button"]:active,
#sp-header .header-menu a:active {

    transform: translateY(0);

    box-shadow: 0 2px 6px rgba(18, 55, 91, 0.20);
}


/* ----------------------------------------------------------
   Tastatur-Fokus
   Wichtig für Barrierefreiheit
   ---------------------------------------------------------- */

.sppb-btn:focus-visible,
.btn:focus-visible,
button.btn:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
#sp-header .header-menu a:focus-visible {

    outline: 3px solid rgba(18, 55, 91, 0.30) !important;
    outline-offset: 3px;
}


/* ----------------------------------------------------------
   Icons innerhalb der Buttons
   ---------------------------------------------------------- */

.sppb-btn i,
.sppb-btn svg,
.btn i,
.btn svg,
#sp-header .header-menu a i,
#sp-header .header-menu a svg {

    color: #ffffff !important;
    fill: currentColor;

    transition: transform 0.25s ease;
}


/* Icon beim Hover leicht bewegen */

.sppb-btn:hover i,
.btn:hover i,
#sp-header .header-menu a:hover i {

    transform: translateX(2px);
}


/* ----------------------------------------------------------
   SP PAGE BUILDER
   vorhandene Varianten überschreiben
   ---------------------------------------------------------- */

.sppb-btn-primary,
.sppb-btn-secondary,
.sppb-btn-success,
.sppb-btn-info,
.sppb-btn-warning,
.sppb-btn-danger,
.sppb-btn-dark,
.sppb-btn-custom {

    background: #12375b !important;
    background-color: #12375b !important;

    border-color: #12375b !important;

    color: #ffffff !important;
}


/* Hover der SP Page Builder Varianten */

.sppb-btn-primary:hover,
.sppb-btn-secondary:hover,
.sppb-btn-success:hover,
.sppb-btn-info:hover,
.sppb-btn-warning:hover,
.sppb-btn-danger:hover,
.sppb-btn-dark:hover,
.sppb-btn-custom:hover {

    background: #194a78 !important;
    background-color: #194a78 !important;

    border-color: #194a78 !important;

    color: #ffffff !important;
}


/* ----------------------------------------------------------
   SP Page Builder "Round" überschreiben

   In deinem Screenshot setzt .sppb-btn-round aktuell einen
   sehr starken Radius von 100px.
   ---------------------------------------------------------- */

.sppb-btn-round {
    border-radius: 9px !important;
}

/* Normalzustand */
#sp-page-builder .sppb-section {
    position: relative;
    z-index: 1;
}

/* Nur die Section eines aktuell geöffneten Team-Popups anheben */
#sp-page-builder .sppb-section:has(.sppb-dynamic-content-collection__item.active) {
    z-index: 10000 !important;
}

/* Popup */
#sp-page-builder .sppb-dynamic-content-collection__item.active {
    z-index: 10001 !important;
}

#sp-page-builder .sppb-dynamic-content-collection__item.active .articulo-team-popup {
    z-index: 10002 !important;
}
a.sppb-btn.team-popup-close {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #252f63 !important;
    border: none !important;
    border-radius: 50% !important;

    transform: none !important;
    box-shadow: none !important;
}

a.sppb-btn.team-popup-close > i {
    display: none !important;
}

a.sppb-btn.team-popup-close::after {
    content: "\00d7";

    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    position: relative;
    top: -1px;
}

a.sppb-btn.team-popup-close:hover {
    background: #111946 !important;
}
/* =====================================================
   TEAM KARTEN
   Bild
   Name        volle Breite
   Funktion    | Button
   ===================================================== */

.artolio-teams .sppb-dynamic-content-collection__item {
    display: grid !important;

    grid-template-columns: minmax(0, 1fr) 52px;
    grid-template-rows: auto auto 1fr;

    column-gap: 10px;

    position: relative;
    align-items: start;
}


/* Bild */
.artolio-teams .sppb-dynamic-content-collection__item
> .sppb-addon-wrapper:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
}


/* Name */
.artolio-teams .sppb-dynamic-content-collection__item
> .sppb-addon-wrapper:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;

    min-width: 0;
}


/* Berufsbezeichnung */
.artolio-teams .sppb-dynamic-content-collection__item
> .sppb-addon-wrapper:nth-child(3) {
    grid-column: 1;
    grid-row: 3;

    min-width: 0;
}


/* Button */
.artolio-teams .sppb-dynamic-content-collection__item
> .sppb-addon-wrapper:nth-child(4) {
    grid-column: 2;
    grid-row: 3;

    position: static !important;

    align-self: end;
    justify-self: end;

    margin: 0 !important;
    padding: 0 !important;
}


/* Alte absolute Button-Positionierung neutralisieren */
.artolio-teams .team-popup-button,
.artolio-teams .sppb-button-wrapper {
    position: static !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
}