.frame-ruler-before {
    border: 0 !important;
}

@media (min-width: 1330px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl {
        max-width: 1440px;
    }
}

@media all and (max-width: 990px) {
    div.mobile-only {
        display: block !important;
    }
}

.accordion .accordion-item {
    border: none;
    border-radius: 0.25rem !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08), 0 1px 10px rgba(0, 0, 0, .05);
    margin-bottom: 0.4rem;
}

.accordion .accordion-button {
    border-radius: 0.25rem !important;
    background-color: #ffffff;
}

.accordion .accordion-button:not(.collapsed) {
    background-color: #eaeaea;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08);
    color: inherit;
}

.accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(241, 209, 0, .3);
}

div.card-body strong {
    font-weight: 700;
}

div.card-body h5 {
    font-weight: 400;
    font-size: 1.25rem;
}

.carousel {
    overflow: visible !important;
}

.frame-type-carousel .frame-container,
.frame-type-carousel .frame-container-default {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.frame-type-carousel .frame-group-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.sticky-top {
    background: #fff !important;
}

div.accordion h4, div.accordion .h4 {
    font-size: 1.5rem !important;
}

div.accordion a {
    color: #343a40 !important;
}

div.footer-cards h3 {
    text-align: center !important;
}

div.footer h3 {
    text-align: center !important;
    font-size: 1.75rem;
    padding-bottom: 3rem !important;
}

div.footer h3 ::after, div.footer h3 ::before {
    box-sizing: border-box;
}

div.footer div.copyright p {
    font-size: .9rem;
}

div.footer div.copyright a {
    color: #121416;
}

div.khdd-yellow {
    border-bottom: #ffc107 .75rem solid;
    padding-bottom: 0 !important;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-trapez-credit {
    order: -1;
    padding: 8px 16px;
    text-align: center;
}

.footer-svg-image {
    width: 100%;
    display: block;
    margin: 0 auto;
    padding: 0;
    vertical-align: bottom;
    line-height: 0;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .footer-trapez-credit {
        order: -1;
        position: static;
        padding: 8px 16px;
        text-align: center;
    }

    .footer-svg-image {
        width: 33vw;
        max-width: 33%;
    }
}


div.before-content div.frame-container {
   /* height:30vh; */
   color: #343a40;
   padding-right: 0 !important;
   padding-left: 0 !important;
}

div.before-content div.frame-backgroundimage-container {
    height: 30vh;
}
div.before-content div.frame-container h2 {
    font-weight: 500;
    font-size: 1.8rem;
 }

 div.before-content div.frame-container h3 {
    font-weight: 200;
    font-size: 1.4rem;
 }

 div.gallery div.row figure.image {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
}

div.gallery figure {
    padding: 0.5rem;
}

div.gallery div.row figure.image img {
    cursor: zoom-in !important;
}


div.praesentation figure.image img  {
    width: 400px !important;
}

div.praesentation div.conatiner div.frame-container {
    padding-bottom: 1rem !important;
}

nav.breadcrumb-section {
    background-color: #eaeaea !important;
    margin-bottom: 1.5rem;
}

/* Previously in file local-homepage.css - after page template changes does not make any more sense */

/* Style the navbar */
#headernav {
    background-color: #FFFFFF;
}

body {
    hyphens: auto;
}

.section {
    overflow: unset !important;
}

.carousel-multi-item .carousel-inner {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.cardslider .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ── Carousel Controls – allgemein ─────────────────────────────── */
.cardslider {
    position: relative;
}

.cardslider .controls-top {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cardslider .leftcontrol,
.cardslider .rightcontrol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    font-size: 1.1rem;
    background: #fff;
    color: #343a40;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,.10);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cardslider .leftcontrol:hover,
.cardslider .leftcontrol:focus,
.cardslider .rightcontrol:hover,
.cardslider .rightcontrol:focus {
    background: #F1D100;
    color: #343a40;
    border-color: #F1D100;
    outline: 2px solid #F1D100;
    outline-offset: 2px;
}

.cardslider .leftcontrol:active,
.cardslider .rightcontrol:active {
    background: #d4b800;
    border-color: #d4b800;
    color: #343a40;
}

/* ── Desktop ≥ 1350px: Controls außen neben dem Slider ─────────── */
@media only screen and (min-width: 1350px) {
    .cardslider .controls-top {
        position: static;
        margin-bottom: 1rem;
    }

    .cardslider .leftcontrol {
        position: absolute;
        top: 45%;
        right: calc(100% + 0.75rem);
        transform: translateY(-50%);
    }

    .cardslider .rightcontrol {
        position: absolute;
        top: 45%;
        left: calc(100% + 0.75rem);
        transform: translateY(-50%);
    }
}

/* ── Mobil: Controls als breite Touch-Leiste ────────────────────── */
@media (max-width: 767px) {
    .cardslider .controls-top {
        justify-content: space-between;
        padding: 0 0.25rem;
        margin-top: 0.5rem;
    }

    .cardslider .leftcontrol,
    .cardslider .rightcontrol {
        flex: 1;
        min-height: 3rem;
        border-radius: 0.375rem;
        font-size: 1.25rem;
    }
}

@media all and (min-width: 1024px) {
    .docotlib-button {
        position: fixed;
        height: 90px;
        top: 30%;
        right: 0;
        z-index: 222222;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
        background-color: #0596DE;
        border-top-left-radius: 0.125rem;
        border-bottom-left-radius: 0.125rem;
        box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);
        transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    }
}

@media all and (max-width: 1023px) {
    .docotlib-button {
        width: 100%;
        background-color: #0596DE;
        border-top-left-radius: 0.125rem;
        border-bottom-left-radius: 0.125rem;
        box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);
        transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    }
}

footer.khdd-yellow {
    background-image: none !important;
}

h2.card-header {
    text-align: center;

}
h2.card-header span {
    font-weight: 500!important;
    text-align: center;
    font-size: 1.75rem !important;
}

nav.navbar,
ul.main-nav {
    box-shadow: none !important;
    font-weight: 400!important;
    font-size: 1.5rem!important;
    color: #6c757d;
    border-radius: .25rem;
    background: #fff!important;
}

.card-header {
    border-bottom: 0;
    background-color: #fff !important;
}

/*div.frame-default {
    padding: 0 !important;
}*/
div.geburtkarten div.card-body {
    padding-bottom: 0;
}

h3.element-header span {
    font-size: 1.75rem !important;
    text-align: center !important;
}
div.geburtkarten div.card-body p {
    font-size: .9rem;
    font-weight: 400;
    color: #747373 !important;
}

div.geburtkarten div.card-footer a.btn {
    padding: .7rem 1.6rem;
    font-size: .7rem;
}

div.geburtkarten div.card-group-element-item {
    padding-right: 0.8rem !important;
    padding-bottom: 2rem !important;
}
div.geburtkarten {
    position: relative;
    margin-top: -4rem !important;
    z-index: 3 !important;
}
div.telefonkarten div.card-body p:before {
    font-family: "Font Awesome 5 Free";
    content: "\f095";
    color: #fb3 !important;
    font-weight: 900;
    margin-right: 20px;
}

div.mailkarten div.card-body p:before {
    font-family: "Font Awesome 5 Free";
    content: "\f0e0";
    color: #fb3 !important;
    font-weight: 900;
    margin-right: 20px;
}

div.anschriftkarte div.card-body p:before {
    font-family: "Font Awesome 5 Free";
    content: "\f279";
    color: #fb3 !important;
    font-weight: 900;
    margin-right: 20px;
}

div.parken div.row {
    display: block !important;
}

div.parken img {
    width: 730px;
}

div.card-panel-light {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12) !important;

}


div.card-panel-light div.card-body {
    padding-top: 0.75rem;
    text-align: center;
}

div.card-panel-light div.card-body a {
    color: #080808!important;

}

div.downloads {
    text-align: center;
    margin-top: 2.5rem;
}

div.downloads h3 {
    padding-bottom: 2rem;
}

div.downloads h4 {
    font-weight: 700!important;
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

div.downloads a {
    color: #121416 !important;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

div.wichtigerhinweis a {
    color: #080808!important;

}

div.footer div.copyright p {
    font-size: .9rem;
    margin-bottom: 30px;
}

div.footer div.copyright a {
    color: #121416;
}

div.khdd-yellow {
    border-bottom: #ffc107 .75rem solid;
    padding-bottom: 0 !important;
}

div.trapez {
    display: none;
}

li.nav-item {
    list-style: none;
}

.dropdown-toggle::after {
    display: none;
}

#headernav_b .navbar {
    padding: 0.5rem 1rem 0 1rem;
}

#headernav_b {
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);
}

/* ============================================================
   QUICKNAV (mobile Toolbar)
   ============================================================ */

.quicknav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 1rem;
    background: #fff;
}

.quicknav-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.quicknav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Icon-Buttons */
.quicknav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.4rem;
    color: #343a40;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
    padding: 0;
}

.quicknav-btn:hover,
.quicknav-btn:focus {
    opacity: 0.6;
    color: #343a40;
}

/* Notfall-Button – einheitlich mit Desktop */
.quicknav-emergency {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    height: 3rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff !important;
    background-color: #c0392b;
    border-radius: 0;
    letter-spacing: 0.02em;
    border: none;
}

.quicknav-emergency:hover,
.quicknav-emergency:focus {
    background-color: #a93226;
    color: #fff !important;
}

/* ── Animiertes Hamburger-Icon ──────────────────────────────── */
.hamburger-btn {
    position: relative;
}

.hamburger-icon {
    display: block;
    width: 1.5rem;
    height: 1.25rem;
    position: relative;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #343a40;
    border-radius: 1px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.2s ease,
                top 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.hamburger-icon span:nth-child(1) { top: 0; width: 100%; }
.hamburger-icon span:nth-child(2) { top: 50%; transform: translateY(-50%); width: 75%; }
.hamburger-icon span:nth-child(3) { bottom: 0; top: auto; width: 50%; }

/* Offen → X */
.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 100%;
}
.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}
.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
    width: 100%;
}

/* ============================================================
   BTN-OUTLINE-GREY – heller Grau-Button mit Outline
   ============================================================ */
.btn.btn-outline-grey {
    background-color: #fff;
    color: #343a40;
    border: 2px solid #aaaaaa;
    border-radius: 4px !important;
    font-weight: 400;
    box-shadow: none;
}

.btn.btn-outline-grey:hover,
.btn.btn-outline-grey:focus {
    background-color: #f5f5f5;
    color: #343a40;
    border-color: #888;
    box-shadow: none;
}

/* ============================================================
   BORDER-RADIUS – systemweit einheitlich auf 0
   Bootstrap-Defaults überschreiben
   ============================================================ */
:root {
    --bs-border-radius:    0;
    --bs-border-radius-sm: 0;
    --bs-border-radius-lg: 0;
    --bs-border-radius-xl: 0;
    --bs-border-radius-pill: 50rem; /* Pill bleibt erhalten */
    --bs-body-font-weight: 300;
}

/* Explizit für alle häufig genutzten Elemente */
.btn,
.card,
.dropdown-menu,
.accordion-item,
.accordion-button,
.accordion-button:not(.collapsed),
.modal-content,
.alert,
.badge {
    border-radius: 0 !important;
}

.form-control:not(select),
.form-select,
.input-group-text,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea {
    border-radius: 4px !important;
    border: 1.5px solid #c8c8c8 !important;
}

input[type="search"].mega-global-search-input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.75rem 0.75rem;
    font-size: 0.875rem;
    color: #000000;
    background: #f2f2f2;
    outline: none !important;
    outline-offset: 0 !important;
    min-width: 0;
    box-shadow: none !important;
}

input[type="search"].mega-global-search-input:focus,
input[type="search"].mega-global-search-input:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

html.high-contrast input[type="search"].mega-global-search-input,
html.high-contrast input[type="search"].mega-global-search-input:focus,
html.high-contrast input[type="search"].mega-global-search-input:focus-visible {
    border: 1px solid #000 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* select.form-control: als echtes Select erkennbar, mit Pfeil */
select.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #343a40;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 14px 10px;
    border: 1.5px solid #c8c8c8 !important;
    border-radius: 4px !important;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    cursor: pointer;
}

select.form-control:focus {
    border-color: #aaa !important;
    outline: none;
    box-shadow: none !important;
}

@media (min-width: 992px) {
    /* SubMenu-Zeile: nur Schrift kleiner */
    #navbarText .nav-link,
    #navbarText .btn {
        font-size: 1.25rem;
    }

    #navbarText .fa-2x {
        font-size: 1.25rem;
    }

    /* Kein Box-Shadow auf Social-Icon-Buttons */
    #navbarText .btn-light-grey,
    #navbarText .btn-light-grey:hover,
    #navbarText .btn-light-grey:focus,
    #navbarText .btn-light-grey:active {
        box-shadow: none !important;
    }

    /* Desktop Notfall-Button: roter Hintergrund, weiße Schrift */
    #navbarText #emergency {
        margin-left: 0.75rem;
        font-size: 1.25rem !important;
        font-weight: 700;
        background-color: #c0392b !important;
        color: #fff !important;
        border-radius: 0 !important;
        padding: 0.5rem !important;
        letter-spacing: normal;
        box-shadow: none !important;
        line-height: 1;
    }

    #navbarText #emergency:hover,
    #navbarText #emergency:focus {
        background-color: #a93226 !important;
        color: #fff !important;
        opacity: 1;
    }
}


/* ============================================================
   MEGA MENU – Bootstrap 5, volle Seitenbreite
   ============================================================ */

/* Desktop: Dropdown aus dem Container ausbrechen, relativ zu #headernav_b positionieren */
@media (min-width: 992px) {
    #headernav_b {
        position: static;
    }

    #headernav_b .container-xl {
        position: relative;
    }

    #headernav_b nav.navbar,
    #headernav_b .nav-item.mega-dropdown {
        position: static;
    }

    /* Volle Breite – überschreibt Popper-Inline-Styles */
    .nav-item.mega-dropdown .dropdown-menu.mega-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        transform: none !important;
        margin-top: 0 !important;
        border-radius: 0;
        border: none;
        border-top: 3px solid #F1D100;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
    }

    /* Nur per Klick öffnen – Bootstrap Dropdown übernimmt das Toggle,
       nie mehr als ein Menü gleichzeitig sichtbar */

    /* Sanfte Animation beim Öffnen */
    .nav-item.mega-dropdown > .dropdown-menu.mega-menu.show {
        animation: megaFadeIn 0.18s ease;
    }

    @keyframes megaFadeIn {
        from { opacity: 0; transform: translateY(-5px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Ebene-1: nav-item trägt den gelben Unterstrich */
    #skdd-main-nav .nav-item {
        position: relative;
        border-bottom: 3px solid transparent;
        transition: border-color 0.15s;
    }

    .nav-link.quicknav-item {
        border-radius: 0;
        border-bottom: none !important;
        background: transparent !important;
    }

    /* Hover & Focus auf nav-item */
    #skdd-main-nav .nav-item:hover,
    #skdd-main-nav .nav-item:focus-within {
        border-bottom-color: #F1D100;
    }

    /* Aktive Seite */
    #skdd-main-nav .nav-item.active {
        border-bottom-color: #F1D100;
    }

    /* Offenes Dropdown */
    #skdd-main-nav .nav-item.mega-dropdown:has(.dropdown-toggle[aria-expanded="true"]) {
        border-bottom-color: #F1D100;
    }
}

/* Spalten-Layout: echte DOM-Container (per JS befüllt) statt column-count.
   Collapse-Events verschieben so keine Items zwischen Spalten. */

/* Desktop: 3 Spalten */
@media (min-width: 992px) {
    .mega-cols-wrapper {
        display: flex;
        align-items: flex-start;
        gap: 0;
    }

    .mega-col-column {
        flex: 1 1 0;
        min-width: 0;
        border-right: 1px solid #f0f0f0;
    }

    .mega-col-column:last-child {
        border-right: none;
    }

    .mega-col {
        display: block;
        padding: 0 1.25rem 1rem 1.25rem;
    }
}

/* Tablet / kleines Desktop: 2 Spalten */
@media (min-width: 576px) and (max-width: 991px) {
    .mega-cols-wrapper {
        display: flex;
        align-items: flex-start;
        gap: 0;
    }

    .mega-col-column {
        flex: 1 1 0;
        min-width: 0;
        border-right: 1px solid #f0f0f0;
    }

    .mega-col-column:last-child {
        border-right: none;
    }

    .mega-col {
        display: block;
        padding: 0.5rem 1rem;
    }
}

/* Mobil: 1 Spalte, Items direkt gestapelt */
@media (max-width: 575px) {
    .mega-cols-wrapper {
        display: block;
    }

    .mega-col {
        display: block;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* Searchbar oben andocken, Abstand nach unten verlagert */
.dropdown-menu.mega-menu {
    padding-top: 0 !important;
    padding-bottom: 1.75rem !important;
}

/* ─── Mega-Menu Suchleiste (Breadcrumb-Stil) ──────────────────── */
.mega-menu-searchbar {
    background: #eaeaea;
}

.mega-menu-searchbar .container-xl {
    position: relative;
    display: flex;
    align-items: center;
}

.mega-global-search-input::placeholder {
    color: #9da3a8;
    font-style: italic;
}

/* Ergebnis-Panel: container-xl-breit, relativ zum container-xl positioniert */
.mega-global-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #000;
    border-top: none;
    border-radius: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    z-index: 1050;
    max-height: 55vh;
    overflow-y: auto;
    padding: 0;
}

.mega-global-search-results.active {
    display: block;
}

.mega-search-result-list {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
}

.mega-search-result-item + .mega-search-result-item {
    border-top: 1px solid #f0f0f0;
}

.mega-search-result-link {
    display: block;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}

.mega-search-result-link:hover,
.mega-search-result-link:focus {
    background: #f8f9fa;
    text-decoration: underline;
}

.mega-search-result-path {
    display: block;
    font-size: 0.72rem;
    color: #adb5bd;
    margin-bottom: 0.1rem;
    letter-spacing: 0.01em;
}

.mega-search-result-title {
    font-size: 0.9rem;
}

.mega-search-result-title mark {
    background: #fff3cd;
    padding: 0;
    color: inherit;
}

.mega-search-empty {
    padding: 0.75rem 1.5rem;
    color: #adb5bd;
    font-style: italic;
    font-size: 0.875rem;
    margin: 0;
}

/* Ebene-2-Header (Kategorie mit Unterseiten) */
.mega-col-header {
    font-size: 1rem;
    font-weight: 700 !important;
    color: #343a40 !important;
    text-decoration: none;
    display: block;
    padding-bottom: 0.6rem;
    margin-bottom: 0.2rem;
    border-bottom: 2px solid #dee2e6;
    line-height: 1.35;
}

.mega-col-header:hover,
.mega-col-header:focus {
    color: #343a40 !important;
    border-bottom-color: #F1D100;
    text-decoration: none;
}

.mega-col-header.active {
    color: #343a40 !important;
    text-decoration: none;
}

/* Ebene-2-Link (Direktlink ohne Unterseiten) */
.mega-col-link {
    font-size: 1rem;
    font-weight: 700;
    color: #343a40 !important;
    text-decoration: none;
    display: block;
    padding-bottom: 0.6rem;
    margin-bottom: 0;
    border-bottom: 2px solid #dee2e6;
    border-radius: 0;
}

.mega-col-link:hover,
.mega-col-link:focus {
    color: #343a40 !important;
    border-bottom-color: #F1D100;
    text-decoration: none;
}

.mega-col-link.active {
    color: #343a40 !important;
    text-decoration: none;
}

/* Ebene-3-Liste */
.mega-sub-list {
    margin: 0.6rem 0 0 0;
    padding: 0;
}

.mega-sub-list .dropdown-item {
    font-size: 1.05rem;
    color: #6c757d;
    padding-left: 0 !important;
    padding-right: 0;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
    white-space: normal;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.45;
}

.mega-sub-list .dropdown-item:hover,
.mega-sub-list .dropdown-item:focus {
    background: transparent;
    color: #343a40;
    border-radius: 0;
}

.mega-sub-list .dropdown-item.active {
    background: transparent;
    color: #343a40;
    border-radius: 0;
    font-weight: 600;
}

.mega-sub-list li:last-child .dropdown-item {
    border-bottom: none;
}

/* Ebene 3 mit Unterebene: Link + Toggle nebeneinander */
li.mega-level3-hassub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

li.mega-level3-hassub > .dropdown-item {
    flex: 1;
}

/* Ebene 4: eingeklappt, Accordion per BS5 Collapse */
.mega-level-4 {
    width: 100%;
    border-left: 2px solid #F1D100;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.mega-level-4 .dropdown-item {
    font-size: 0.95rem;
    color: #888;
    padding-top: 0.15rem !important;
    padding-bottom: 0.15rem !important;
}

.mega-level-4 .dropdown-item:hover,
.mega-level-4 .dropdown-item:focus {
    color: #343a40;
    background: transparent;
    border-radius: 0;
}

.mega-level-4 .dropdown-item.active {
    background: transparent;
    color: #343a40;
    border-radius: 0;
    font-weight: 600;
}

/* acc-menu: Plus/Minus-Toggle-Button */
.acc-menu {
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='%238c959e'%3e%3cpath d='M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 0.88rem;
    background-position: center;
    transition: opacity 0.2s ease, transform 0.25s ease-in-out;
    opacity: 0.65;
    cursor: pointer;
}

.acc-menu:hover {
    opacity: 1;
}

.acc-menu[aria-expanded="true"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='%238c959e'%3e%3cpath d='M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/%3e%3c/svg%3e");
    opacity: 1;
}

/* ============================================================
   MEGAMENÜ – Mobile / Tablet (< 992 px)
   ============================================================ */
@media (max-width: 991px) {

    /* Gesamter aufgeklappter Nav-Bereich */
    #skdd-main-nav {
        background: #fff;
        border-top: 2px solid #F1D100;
        padding-bottom: 0.5rem;
    }

    /* ── Ebene 1: Nav-Items ─────────────────────────────── */
    #skdd-main-nav .nav-item {
        border-bottom: 1px solid #e9ecef;
    }

    #skdd-main-nav .nav-link.quicknav-item {
        padding: 0.875rem 1.25rem !important;
        font-size: 1rem;
        font-weight: 600;
        color: #343a40;
        min-height: 3rem;
    }

    #skdd-main-nav .nav-link.quicknav-item:hover,
    #skdd-main-nav .nav-link.quicknav-item:focus {
        background: transparent;
        color: #343a40;
    }

    #skdd-main-nav .nav-item.active > .nav-link.quicknav-item,
    #skdd-main-nav .nav-item.active > .nav-link.quicknav-item.active {
        color: #343a40;
        font-weight: 700;
        background: transparent;
    }

    /* ── Mega-Dropdown inline (kein Float/Popper auf Mobile) */
    .nav-item.mega-dropdown .dropdown-menu.mega-menu {
        position: static !important;
        transform: none !important;
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        border: none !important;
        border-top: 1px solid #e9ecef !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #f8f9fa;
        padding: 0.5rem 0 0.75rem 0 !important;
    }

    /* Aktives nav-item darf keinen eigenen Rahmen erzeugen */
    #skdd-main-nav .nav-item.active {
        border-left: none;
        border-right: none;
        border-top: none;
    }

    /* ── Ebene 2 auf Mobile ─────────────────────────────── */
    .mega-col {
        padding: 0.5rem 1rem 0.25rem 1rem;
    }

    .mega-col-header,
    .mega-col-link {
        font-size: 0.9375rem;
        padding-bottom: 0.35rem;
        border-bottom: 1px solid #dee2e6;
    }

    /* ── Ebene 3 auf Mobile ─────────────────────────────── */
    .mega-sub-list .dropdown-item {
        padding-left: 0.25rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        min-height: 2.75rem;
        font-size: 1.0rem;
    }

    /* Ebene 4 linker Rand auch auf Mobile dezenter */
    .mega-level-4 {
        border-left-color: #dee2e6;
    }

    /* ── SubMenu (mobile-only) – gleiche Optik wie main-nav ── */
    .mobile-only {
        background: #fff;
        border-top: none;
        padding: 0;
    }

    .mobile-only .navbar-nav {
        flex-direction: column;
    }

    .mobile-only .nav-item {
        border-bottom: 1px solid #e9ecef;
    }

    .mobile-only .nav-link {
        padding: 0.875rem 1.25rem !important;
        color: #343a40;
        font-size: 1rem;
        font-weight: 600;
        min-height: 3rem;
        background: transparent;
    }

    .mobile-only .nav-link:hover,
    .mobile-only .nav-link:focus {
        background: transparent;
        color: #343a40;
        opacity: 0.7;
    }

    .mobile-only .nav-item.active .nav-link {
        color: #343a40;
        font-weight: 700;
        background: transparent;
    }
}

.contentcontainer[data-container-identifier="container_2_columns"] .gallery-item img {
    padding-bottom: 1rem;
}

.carousel-item-type-call_to_action .carousel-box {
  color: #fff;
  background-color: #868686c4;
  padding: 2rem;
}

.badge {
  box-shadow: none;
}

.badge.badge-100 {
    font-size: 100%;
}

/* SKDD Listing Card */
.card {
    border: none;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .10), 0 1px 8px 0 rgba(0, 0, 0, .07);
}

/* Normal color */
.card.skdd-card
{
  border-bottom: rgb(239, 217, 64) 6px solid
}

div.petrol .card.skdd-card
{
  border-bottom: #116F7A 6px solid
}

div.petrol .card.skdd-card.image-inside {
    border-bottom: none !important;
}

/* Class image-inside have to be set in case of image */
.card.skdd-card.image-inside
{
  border-bottom:none !important;
}

.card.skdd-card.image-inside .skdd-border {
  border-bottom: rgb(239, 217, 64) 6px solid;
}

div.petrol .card.skdd-card.image-inside .skdd-border {
    border-bottom: #116F7A 6px solid !important;
}

div.section div.petrol {
    border: 0 !important
}


.card.skdd-card .card-header {
  background-color: #FFFFFF;
  border: none;
  color: #212529;
  padding: 0.6rem 1.5rem !important;

}



.card.skdd-card .badge
{
  background-color: #616161;
  color: #FFFFFF;
}

.skdd-card .card-footer {
    background-color: #fff !important;
    border-top: none !important;
    display: flex;
    justify-content: flex-end;
    padding: 0 1.5em 0.5em;
}

.skdd-card .card-tile-anchor {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 1.2rem;
    color: inherit;
    text-decoration: none;
    min-height: 44px;
    opacity: 0.65;
    transition: opacity 0.15s ease;
}

.skdd-card .card-tile-anchor i {
    transition: transform 0.2s ease;
}

.skdd-card .card-tile-anchor:hover,
.skdd-card .card-tile-anchor:focus {
    color: inherit;
    opacity: 1;
}

.skdd-card .card-tile-anchor:hover i,
.skdd-card .card-tile-anchor:focus i {
    transform: translateX(4px);
}

/* petrol color */
.petrol.card.skdd-card.petrol
{
  border-bottom: #116F7A .4rem solid
}

.card.skdd-card.petrol.image-inside .skdd-border {
  border-bottom: #116F7A .4rem solid;
}

.card.skdd-card.petrol .card-header {
  background-color: #FFFFFF;
  border: none;
  color: #212529;
}

.card.skdd-card.petrol .badge
{
  background-color: #116F7A;
  color: #FFFFFF;
}


/*
.skdd-card .skdd-border  {
    border-bottom: 5px solid rgb(239, 217, 64);
}

.skdd-card .card-body,
.skdd-card .card-footer{
    background-color: #FFFFFF;
    border: 0;
}

.skdd-card .card-title {
    margin-bottom: 0.35rem
}
 */

.skdd-contacts-bcard .card {
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12) !important;
    border-bottom: none !important;
    /* Gleiche Höhe aller Cards in einer Row */
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Card-Body wächst, sodass Footer immer unten bleibt */
.skdd-contacts-bcard .card-body {
    flex: 1 1 auto;
}

.card-body.vcard-skdd-border {
    min-height: 180px;
}

/* Füllt die von TYPO3 gelieferte Spaltenbreite vollständig aus */
.skdd-contacts-bcard {
    width: 100%;
    box-sizing: border-box;
}

/* Bildbereich: feste Höhe, egal welches Seitenverhältnis */
.skdd-contacts-bcard .view {
    height: 220px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* Platzhalter-Hintergrund (geblurrtes Foto-ähnliches SVG) wenn kein Foto vorhanden */
.skdd-contacts-bcard .view::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background-image: url('../../Images/vcard_placeholder_bg.svg');
    background-size: cover;
    background-position: center;
}

/* Platzhalter-Silhouette scharf, zentriert darüber */
.skdd-contacts-bcard .view::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    z-index: 1;
    width: 125px;
    height: 155px;
    background-image: url('../../Images/vcard_placeholder_person.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* thumbnail-image-centered füllt den festen Bildbereich */
.skdd-contacts-bcard .thumbnail-image-centered {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Bild füllt den Container — contain für Hochformatbilder, damit diese vollständig sichtbar sind */
.skdd-contacts-bcard .view img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain;
    object-position: center center;
    position: relative;
    z-index: 2;
}


.-main {
    -webkit-box-shadow: 0px -22px 17px -14px rgba(0,0,0,0.2);
    box-shadow: 0px -22px 17px -14px rgba(0,0,0,0.2);
}

footer.khdd-yellow, ul.main-nav > li > a.active, ul.main-nav > li > a:focus, ul.main-nav > li > a:hover {
    border-bottom: #efd940 .5rem solid;
}

footer.khdd-yellow, ul.main-nav > li > a {
    border-bottom: transparent .5rem solid;
}

.header {
    background: linear-gradient(180deg, rgba(2,0,36,0) 72%, rgba(0,0,0,0.2553221972382703) 100%);
}

.main-slide {
    z-index: auto !important;
}

.header-shadow {
    background: linear-gradient(180deg, rgba(2,0,36,0) 72%, rgba(0,0,0,0.2553221972382703) 100%);
}

.carousel .carousel-control-next-icon, .carousel .carousel-control-prev-icon {
    width: auto !important;
    height: auto !important;
}
/*
.frame-container {
    width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 2.5rem !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}
*/
.frame-header  {
    margin-bottom: 2rem;
}
.frame-inner > :last-child {
    margin-bottom: 0rem !important;
}
/*
.frame-inner > :last-child:not(.frame-header) {
    padding-bottom: 2.5rem;
}

.frame-container .frame-container,
.header .frame-container {
    width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0rem !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}


.frame-container .frame-container > .frame-inner > :last-child:not(.frame-header) {
    padding-bottom: 0rem;
}

.frame-container .frame-container > .frame-header > :last-child {
    margin-bottom: 3rem;
}

.frame-header > :last-child {
    margin-bottom: 3rem;
}

.frame-inner > .frame-header:only-child > :last-child {
    margin-bottom: 0 !important;
}

.frame.frame-indent {
    padding-top: 0;
    padding-bottom: 0;
}
*/

div.business-card p i {
    color: #fb3;
    font-weight: 900;
    margin-right: 20px;
}

div.business-card p.job-title {
    min-height: 3rem;
}

div.business-card p.phone,
div.business-card p.email {
    margin: 0;
}

div.business-card div.card-body {
    padding-bottom: 0 !important;
}




#main_logo {
    position: relative;
    z-index: 10;
}


@media only screen and (min-width: 0px) and (max-width: 1329px) {
    .pull-top-xl {
        margin-top: 0px;
    }
}

@media only screen and (min-width: 1330px) {
    .pull-top-xl {
        margin-top: -50px;
    }

}


ul.main-nav {
    background: transparent !important;
}

@media (max-width: 991px) {

    .navbar .mega-dropdown .dropdown-menu.mega-menu {
        max-height: 80vh;
        overflow-y: auto;
    }

}


a {
    text-decoration: underline;
}

div.footer a,
li.nav-item a,
div.card-header a,
div.card-footer a,
div.card-panel a,
div.cc-compliance a {
    text-decoration: none;
}

div.dp--cookie-check input {
    opacity: 1 !important;
    position: relative !important;
}

div.mobile-only {
    display: none;
}

div.form-check input[type=checkbox]:checked, div.form-check input[type=checkbox]:not(:checked) {
    position: absolute !important;
    pointer-events: all !important;
    opacity: 1 !important;
}

@media (min-width: 1470px) and (max-width: 1799px) {
    .carousel-box {
        margin-left: -10rem !important;
    }
}

@media (min-width: 1800px) and (max-width: 2000px) {
    .carousel-box {
        margin-left: -15rem !important;
    }
}

@media (min-width: 2001px)  {
    .carousel-box {
        margin-left: -20rem !important;
    }
}

input[type="file"] {
    height: calc(1.5em + 0.66rem) !important;
}

.form-control:focus, input[type="file"]:focus {
    border-color: #F1D100;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 0.2rem #F1D10040;
}

.thumbnail-image-centered::before {
    content: "";
    position: absolute;
    height: 300px;
    z-index: 1;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    -webkit-filter: blur(15px);
    -moz-filter: blur(15px);
    -o-filter: blur(15px);
    -ms-filter: blur(15px);
    filter: blur(15px);
}

.thumbnail-image-centered > img  {
    left: 0;
    right: 0;
    overflow: hidden;
    z-index: 2;
  }

.thumbnail-image-centered {
      display: flex;
    flex-direction: column;
    justify-content: center;  /* Centering y-axis */
    align-items :center; /* Centering x-axis */
  }

.thumbnail-image-centered .full-height {
      height: 100%
  }

 .vcard-skdd-border {
    border-top: 5px solid #F1D100;
    background-color: #FFFFFF;
    z-index: 1;
  }

div.petrol .vcard-skdd-border {
    border-top: 5px solid #116F7A !important;
    background-color: #FFFFFF;
    z-index: 1;
  }

div.petrol .card.skdd-card .badge {
    background-color: #116F7A;
    color: #FFFFFF;
}

/* Mega-Dropdown hover – handled in mega menu section above */

legend {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: inherit;
    color: inherit;
    white-space: normal;
}

.dp--overlay {
    height: 100%;
    overflow-y: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem;
    text-align: center;

}

.powered-by {
    display: none !important;
}

#matomo-opt-out [type=checkbox]:checked, [type=checkbox]:not(:checked) {
    position: relative !important;
    pointer-events: none !important;
    opacity: 1 !important;
}

.news-skdd-border-bottom {
    border-bottom: 0.4rem solid #F1D100 !important;
}

/* card-menu: skdd-card look */
.card-menu-item .card.skdd-card .card-header {
    padding: 0.6rem 1.5rem !important;
}

.card-menu-item .card.skdd-card .card-body {
    flex: 1 1 auto;
}

.card-menu-item .card.skdd-card .card-footer {
    background-color: #fff !important;
    border-top: none !important;
    display: flex;
    justify-content: flex-end;
    padding: 0 1.5em 0.5em;
}



/* ============================================================
   KE_SEARCH – Pagination im btn-outline-grey Stil
   ============================================================ */
.kesearch_pagebrowser .pagination .page-link {
    color: #343a40;
    background-color: #fff;
    border: 2px solid #aaaaaa;
    border-radius: 0 !important;
    font-weight: 400;
    box-shadow: none;
    margin: 0 2px;
}

.kesearch_pagebrowser .pagination .page-link:hover,
.kesearch_pagebrowser .pagination .page-link:focus {
    color: #343a40;
    background-color: #f5f5f5;
    border-color: #888;
    box-shadow: none;
}

.kesearch_pagebrowser .pagination .page-item.active .page-link {
    color: #fff;
    background-color: #343a40;
    border-color: #343a40;
    box-shadow: none;
}

.kesearch_pagebrowser .pagination .page-item.disabled .page-link {
    color: #aaaaaa;
    background-color: #fff;
    border-color: #dddddd;
}

.white-text {
    color: #ffffff !important;
}