/* ==========================================================================
   EVOLVE | PROACTIVE – Kapschak Krannig GmbH
   Stylesheet zu main.twig / navigation.twig / footer.twig
   Basis: Bootstrap 5 + Font Awesome 6

   Werte 1:1 aus der Vorlage übernommen:
   templates/cayenne-media-template-v5/css/template.css (Archivstand 09.06.2026)
   ========================================================================== */


/* --------------------------------------------------------------------------
   Schrift: Open Sans (Dateien aus /fonts der Vorlage übernehmen)
   -------------------------------------------------------------------------- */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/open-sans-v17-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/open-sans-v17-latin-italic.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/open-sans-v17-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/open-sans-v17-latin-800.woff2') format('woff2'); }


/* --------------------------------------------------------------------------
   Design-Tokens
   -------------------------------------------------------------------------- */
:root {
    --ep-primary:        #008dbf;
    --ep-primary-rgb:    0, 141, 191;
    --ep-primary-hover:  #00a0d9;   /* Menü-Hover und -Aktiv der Vorlage */
    --ep-cta:            #00b3f2;   /* Termin-Reiter                     */
    --ep-cta-hover:      #0dc0ff;
    --ep-text:           #575756;
    --ep-light:          #f2f2f2;
    --ep-muted:          #bfbfbf;
    --ep-white:          #ffffff;
    --ep-font:           'Open Sans', sans-serif;
    --ep-menu-height:    46px;

    /* Bootstrap auf die CI biegen */
    --bs-body-font-family:     var(--ep-font);
    --bs-body-color:           var(--ep-text);
    --bs-body-font-size:       17px;
    --bs-primary:              var(--ep-primary);
    --bs-primary-rgb:          var(--ep-primary-rgb);
    --bs-link-color:           var(--ep-text);
    --bs-link-color-rgb:       87, 87, 86;
    --bs-link-hover-color:     var(--ep-primary);
    --bs-link-hover-color-rgb: var(--ep-primary-rgb);
}


/* --------------------------------------------------------------------------
   Basis & Typografie
   -------------------------------------------------------------------------- */
html,
body {
    background: var(--ep-white);
    padding: 0;
    margin: 0;
}

body {
    font-family: var(--ep-font);
    font-size: 17px;
    color: var(--ep-text);
}

img,
video {
    max-width: 100%;
    height: auto;
}

p {
    font-family: var(--ep-font);
    font-size: 19px;
    font-weight: normal;
    margin: 0 0 5px;
}

a {
    color: var(--ep-text);
    font-weight: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
a:hover,
a:focus {
    color: var(--ep-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ep-font);
    font-weight: 800;
    font-style: normal;
    color: var(--ep-primary);
    margin-top: 0;
}
h1 { font-size: 32px; }
h2 { font-size: 28px; margin-top: 30px; }
h3 { font-size: 25px; margin-top: 30px; }
h4 { font-size: 22px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p.intro {
    font-weight: bold;
    font-style: italic;
    font-size: 19px;
}
p.subtitle {
    font-style: italic;
    font-weight: 300;
    margin-top: -10px;
}
h1 + p.subtitle { font-size: 21px; }
h2 + p.subtitle { font-size: 19px; }
h3 + p.subtitle { font-size: 17px; }

p.hinweis,
p.hinweis .fa {
    color: rgba(87, 87, 86, .5);
    font-size: 13px;
}

blockquote {
    position: relative;
    margin: 20px 0 0 40px;
}
blockquote::before {
    position: absolute;
    content: '„';
    font-family: Arial, Helvetica, sans-serif;
    font-size: 80px;
    font-weight: bold;
    top: -72px;
    left: -50px;
    color: rgba(var(--ep-primary-rgb), .3);
}
blockquote p:last-child {
    font-family: 'Open Sans', sans-serif !important;
    font-style: normal;
    font-size: 0.8em;
}
/* ------------------------------------------------------------------------------------------------------------------ */

hr {
    border: 0;
    border-top: 1px solid var(--ep-light);
    opacity: 1;
}

.btn,
button {
    font-size: 19px;
}

.btn-primary {
    --bs-btn-bg: var(--ep-primary);
    --bs-btn-border-color: var(--ep-primary);
    --bs-btn-hover-bg: var(--ep-primary-hover);
    --bs-btn-hover-border-color: var(--ep-primary-hover);
    --bs-btn-active-bg: var(--ep-primary-hover);
    --bs-btn-active-border-color: var(--ep-primary-hover);
    border-radius: 0;
}
.btn:focus,
.btn.focus {
    box-shadow: 0 0 0 .2rem rgba(var(--ep-primary-rgb), .3);
}


/* --------------------------------------------------------------------------
   Sektionen & Container (Vorlage: 85 % ab 1200px, 30px Innenabstand)
   -------------------------------------------------------------------------- */
#header,
#menu-1,
#slideshow,
#feature-1-1,
#content,
#feature-2-1,
#footer {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

#header .container,
#feature-1-1 .container,
#content .container,
#feature-2-1 .container,
#footer .container {
    padding: 30px;
}

#header .container .row,
#feature-1-1 .container .row,
#content .container .row,
#feature-2-1 .container .row,
#footer .container .row {
    padding: 15px 0;
}

#menu-1 .container {
    padding: 0 30px;
}
#menu-1 .container .row {
    padding: 0;
}

@media (min-width: 768px) {
    #menu-1 .container { padding: 0; }
}

/* Schatten unter Menüleiste und Kurs-Kacheln (gemeinsame Grundregel) */
#menu-1 .menu.imageShadow,
#items-container .item,
.ansprechpartner,
.leistungen-liste,
.leistungen-slideshow {
    position: relative;
    isolation: isolate; /* eigener Stacking-Context, damit z-index:-1 hinter dem Element bleibt */
}

#menu-1 .menu.imageShadow::after,
#items-container .item::after,
.ansprechpartner::after,
.leistungen-liste::after,
.leistungen-slideshow::after {
    content: "";
    position: absolute;
    left: 20px;          /* Einrückung links */
    right: 0;
    bottom: -10px;       /* Versatz nach unten */
    height: 14px;
    background: rgba(0, 0, 0, .35);
    filter: blur(5px);
    z-index: -1;
    pointer-events: none;
}


/* Bezugspunkt für den absolut gesetzten Termin-Reiter */
.container {
    position: relative;
}

@media (min-width: 1200px) {
    .container { max-width: 85%; }
}


/* --------------------------------------------------------------------------
   Header: Logo mittig, Rückruf-CTA rechts
   -------------------------------------------------------------------------- */
#header {
    background: var(--ep-white);
    padding: 0;
}

.logo {
    max-width: 400px;
    padding: 30px 0;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.logo svg,
.logo img {
    display: block;
    width: 100%;
    height: auto;
}

#header p,
#header i,
#header a {
    font-size: 16px;
}

.cta-header {
    text-align: right;
}
#header p.header-rufnummer {
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
}
#header p.header-rufnummer a {
    color: var(--ep-primary);
}
#header p.header-rufnummer a:hover {
    color: var(--ep-primary-hover);
}


/* --------------------------------------------------------------------------
   Menüleiste (#menu-1) – blau, linksbündig, Schatten, Termin-Reiter
   -------------------------------------------------------------------------- */
#menu-1 {
    position: relative;
    background: var(--ep-white);
    padding: 0;
    z-index: 999;
}

#menu-1 .menu {
    background: var(--ep-primary);
    width: 100%;
}

/* Schatten unter der Leiste (SVG aus der Vorlage) */
/*
.imageShadow {
    position: relative;
    z-index: 2;
    width: 100%;
    box-shadow: 0 0 3px 3px rgba(0, 0, 0, .07);
}
.imageShadow::after {
    position: absolute;
    content: '';
    background: url('../images/imageShadows/bottom-02.svg') no-repeat;
    background-size: 100% 20px;
    width: calc(100% - 20px);
    margin: 0 10px;
    height: 20px;
    bottom: -21px;
    opacity: .25;
    z-index: 1;
    pointer-events: none;
}
*/

/* ---- Ebene 1 (Desktop, ab 1200px) ---- */
#menu-1 ul.megamenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 1200px) {

    #menu-1 .menu {
        min-height: var(--ep-menu-height);
    }

    #menu-1 .offcanvas-body {
        padding: 0;
        /* Platz für den Termin-Reiter rechts */
        padding-right: 180px;
    }

    #menu-1 ul.megamenu.level0 {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    #menu-1 ul.megamenu.level0 > li {
        position: relative;
        transition: background .3s ease-in-out;
    }

    #menu-1 ul.megamenu.level0 > li > a,
    #menu-1 ul.megamenu.level0 > li > span {
        display: block;
        padding: 10px 15px;
        line-height: 26px;
        color: var(--ep-white);
        white-space: nowrap;
    }

    #menu-1 ul.megamenu.level0 > li > a .menu-title,
    #menu-1 ul.megamenu.level0 > li > span .menu-title {
        color: var(--ep-white);
        font-family: var(--ep-font);
        font-size: 19px;
        font-weight: normal;
        letter-spacing: .05em;
    }

    #menu-1 ul.megamenu.level0 > li:hover,
    #menu-1 ul.megamenu.level0 > li.active {
        background: var(--ep-primary-hover);
    }

    /* Pfeil bei Unterpunkten */
    #menu-1 ul.megamenu.level0 > li > a.haschild::after,
    #menu-1 ul.megamenu.level0 > li > span.haschild::after {
        content: "\f078";   /* fa-chevron-down */
        font: var(--fa-font-solid, normal 900 1em/1 "Font Awesome 6 Free");
        font-size: 10px;
        margin-left: 8px;
        vertical-align: middle;
    }

    /* ---- Ebene 2 (Dropdown) ---- */
    #menu-1 ul.megamenu.level0 > li > .childcontent {
        position: absolute;
        top: 100%;
        left: 0;
        display: block;
        min-width: 280px;
        background: var(--ep-white);
        box-shadow: 0 5px 5px rgba(0, 0, 0, .2);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease-in-out, visibility .3s ease-in-out;
        z-index: 1041;
    }
    #menu-1 ul.megamenu.level0 > li:hover > .childcontent,
    #menu-1 ul.megamenu.level0 > li:focus-within > .childcontent {
        opacity: 1;
        visibility: visible;
    }

    #menu-1 .childcontent ul.megamenu li {
        border-top: 2px solid rgba(255, 255, 255, .3);
        border-bottom: 1px solid rgba(var(--ep-primary-rgb), .25);
    }
    #menu-1 .childcontent ul.megamenu li:last-child {
        border-bottom: none;
    }
    #menu-1 .childcontent a {
        display: block;
        padding: 10px 15px;
    }
    #menu-1 .childcontent a .menu-title {
        color: var(--ep-primary);
        font-size: 19px;
        font-weight: normal;
    }
    #menu-1 .childcontent li:hover,
    #menu-1 .childcontent li.active {
        background: var(--ep-primary-hover);
    }
    #menu-1 .childcontent li:hover > a .menu-title,
    #menu-1 .childcontent li.active > a .menu-title {
        color: var(--ep-white);
    }

    /* Aufklapper nur mobil */
    #menu-1 .submenu-toggle {
        display: none;
    }
}

/* ---- Termin-Reiter oben rechts ---- */
.termin-anfragen {
    position: absolute;
    right: 6px;
    top: -20px;
    width: 162px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 3px 3px rgba(0, 0, 0, .1);
    z-index: 1042;
}
.termin-anfragen a {
    display: block;
    padding: 5px 10px 0;
    background: var(--ep-cta);
    color: var(--ep-white);
    transition: background .2s ease;
}
.termin-anfragen a:hover {
    background: var(--ep-cta-hover);
    color: var(--ep-white);
}
.termin-anfragen p {
    font-size: 15px;
    line-height: 1.35;
    color: var(--ep-white);
    margin: 0;
    padding-bottom: 5px;
}


/* --------------------------------------------------------------------------
   Mobil (< 1200px): Schaltfläche oben rechts + Offcanvas
   -------------------------------------------------------------------------- */
.menu-toggler {
    position: fixed;
    top: 0;
    right: 0;
    width: 72px;
    height: 72px;
    border: 0;
    background: var(--ep-text);
    color: var(--ep-white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 1045;
    transition: background .2s ease;
}
.menu-toggler:hover,
.menu-toggler:focus {
    background: var(--ep-primary);
}

@media (max-width: 1199.98px) {

    /* Blaue Leiste entfällt – wie in der Vorlage */
    #menu-1 .menu {
        background: transparent;
        box-shadow: none;
    }
    #menu-1 .menu::after {
        display: none;
    }

    #offcanvas {
        --bs-offcanvas-width: 340px;
        background: var(--ep-text);
        color: var(--ep-white);
    }

    #offcanvas .offcanvas-header {
        background: var(--ep-white);
        padding: 15px 20px;
    }
    #offcanvas .offcanvas-title {
        max-width: 220px;
    }
    #offcanvas .offcanvas-title svg,
    #offcanvas .offcanvas-title img {
        width: 100%;
        height: auto;
    }

    #offcanvas .offcanvas-body {
        padding: 0;
    }

    /* Rückruf-Hinweis oben im Offcanvas */
    #offcanvas .cta-header.mobile {
        text-align: left;
        padding: 30px 40px;
    }
    #offcanvas .cta-header.mobile,
    #offcanvas .cta-header.mobile p,
    #offcanvas .cta-header.mobile a {
        color: var(--ep-white);
    }
    #offcanvas .cta-header.mobile p {
        font-size: 16px;
    }
    #offcanvas .cta-header.mobile p.header-rufnummer {
        font-weight: bold;
        margin-top: 10px;
    }

    /* Menüpunkte */
    #offcanvas ul.megamenu {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    #offcanvas ul.megamenu li {
        position: relative;
        border-top: 1px solid rgba(255, 255, 255, .1);
        border-bottom: 1px solid rgba(0, 0, 0, .15);
    }
    #offcanvas ul.megamenu li > a,
    #offcanvas ul.megamenu li > span {
        display: block;
        padding: 12px 55px 12px 40px;
        color: var(--ep-white);
        font-weight: normal;
        letter-spacing: .3px;
    }
    #offcanvas ul.megamenu li > a .menu-title,
    #offcanvas ul.megamenu li > span .menu-title {
        color: var(--ep-white);
    }
    #offcanvas ul.megamenu li:hover,
    #offcanvas ul.megamenu li.active {
        background: rgba(var(--ep-primary-rgb), .6);
    }
    #offcanvas ul.megamenu .menu-desc {
        display: block;
        color: var(--ep-muted);
        font-size: .8em;
    }

    /* Aufklapper für Ebene 2 */
    #offcanvas .submenu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 50px;
        height: 47px;
        border: 0;
        background: transparent;
        color: var(--ep-white);
        font-size: 14px;
        transition: transform .2s ease;
    }
    #offcanvas .submenu-toggle[aria-expanded="true"] {
        transform: rotate(180deg);
    }

    #offcanvas .childcontent ul.megamenu li > a {
        padding-left: 60px;
        font-size: .95em;
    }
    #offcanvas .childcontent ul.megamenu li {
        background: rgba(0, 0, 0, .12);
    }
}


/* --------------------------------------------------------------------------
   Seitenkopf (Bild / Video / Text)
   -------------------------------------------------------------------------- */
#slideshow {
    background: var(--ep-text);
}

#slideshow .header {
    min-height: 500px;
    height: 60vh;
}

#slideshow .header-image picture,
#slideshow .header-image img,
#slideshow .header-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

#slideshow .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .25);
    z-index: 1;
}

#slideshow .overlay-wrapper {
    max-width: 900px;
    padding: 0 20px;
}

#slideshow h1,
#slideshow h2,
#slideshow h3,
#slideshow h4,
#slideshow h5,
#slideshow p {
    color: var(--ep-white);
}

#slideshow .header-image h1 {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 10px;
}

#slideshow h2.lead {
    font-size: 21px;
    font-weight: 400;
    margin-top: 0;
}

/* Kopf ohne Bild */
#slideshow .header-text {
    min-height: 0;
    height: auto;
    background: var(--ep-light);
    padding: 45px 0;
}
#slideshow .header-text h1 {
    color: var(--ep-primary);
}
#slideshow .header-text h2.lead {
    color: var(--ep-text);
}


/* --------------------------------------------------------------------------
   Inhaltsbereiche
   -------------------------------------------------------------------------- */
#feature-1-1 {
    background: var(--ep-white);
}
#feature-1-1 p,
#content p {
    color: var(--ep-text);
    min-height: 20px;
}

/* Listen mit Font-Awesome-Chevron (fa-chevron-right) statt Punkt */
#feature-1-1 ul,
#content ul {
    list-style: none;
    padding-left: 40px;
}
#feature-1-1 ul li,
#content ul li {
    position: relative;
    color: var(--ep-text);
    font-size: 19px;
    margin-bottom: 5px;
}
#feature-1-1 ul li::before,
#content ul li::before {
    content: "\f054";
    /* Schrift-Kurzform von Font Awesome 6 (Free oder Pro), Fallback auf Free Solid */
    font: var(--fa-font-solid, normal 900 1em/1 "Font Awesome 6 Free");
    -webkit-font-smoothing: antialiased;
    position: absolute;
    left: -28px;
    top: .4em;
    font-size: 15px;
    color: rgba(var(--ep-primary-rgb), .5);
}
#content {
    background: var(--ep-white);
}

/* FAQ */
#feature-2-1 {
    background: var(--ep-white);
    border-bottom: 1px solid var(--ep-light);
}
#feature-2-1 .accordion {
    --bs-accordion-border-radius: 0;
    --bs-accordion-inner-border-radius: 0;
    --bs-accordion-active-color: var(--ep-primary);
    --bs-accordion-active-bg: var(--ep-white);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(var(--ep-primary-rgb), .25);
}
#feature-2-1 .accordion-header {
    margin: 0;
}
#feature-2-1 .accordion-button {
    font-size: 19px;
    font-weight: bold;
    color: var(--ep-text);
}
#feature-2-1 .accordion-button:not(.collapsed) {
    color: var(--ep-primary);
}


/* --------------------------------------------------------------------------
   Footer – blaue Fläche, weiße Schrift 15px
   -------------------------------------------------------------------------- */
#footer {
    background: var(--ep-primary);
    color: var(--ep-white);
}

#footer p,
#footer td,
#footer a,
#footer a:visited,
#footer h5,
#footer i {
    color: var(--ep-white);
    font-size: 15px;
    text-decoration: none;
}
#footer a:hover {
    color: var(--ep-white);
    text-decoration: underline;
}

#footer strong {
    font-weight: bold;
}

#footer .anschrift,
#footer .kontakt {
    margin-bottom: 15px;
}
#footer .kontakt i {
    width: 20px;
}

/* Sprechzeiten */
#footer table.contact td {
    padding: 0 15px 2px 0;
    vertical-align: top;
    white-space: nowrap;
}

/* Social */
#footer .social-links {
    max-width: 115px;
    text-align: center;
}
#footer .social-links h5 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}
#footer .social-links i {
    font-size: 50px;
}
#footer .social-links a:hover {
    text-decoration: none;
    opacity: .8;
}

/* Footer-Navigation (ul.footer-menu aus footer-navigation.twig) –
   greift mit und ohne umschließendes #footer-menu */
#footer ul.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
#footer ul.footer-menu li {
    margin: 0 0 5px;
    line-height: 1.7;
}
#footer ul.footer-menu li::before {
    content: none;
}
#footer ul.footer-menu a {
    color: var(--ep-white);
    font-size: 17px;             /* etwas größer als der übrige Footer, wie in der Vorlage */
    white-space: nowrap;
}
#footer ul.footer-menu li.active a {
    text-decoration: underline;
}
@media (min-width: 1200px) {
    #footer-menu {
        margin-left: auto;
    }
    #footer-menu,
    #footer ul.footer-menu {
        text-align: right;
    }
}

/* Bottom-Bar */
#footer .bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, .25);
    margin-top: 15px;
}
#footer .copyright,
#footer .made-by {
    color: var(--ep-white);
    font-size: 15px;
    text-align: center;
}
#footer .made-by .fa-heart {
    font-size: 14px;
    margin: 0 3px;
}
#footer .made-by .version {
    display: block;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}
@media (min-width: 768px) {
    #footer .copyright { text-align: left; }
    #footer .made-by   { text-align: right; }
}

.hidden-xxs { display: inline-block; }
@media (max-width: 480px) {
    .hidden-xxs { display: none; }
}


/* --------------------------------------------------------------------------
   Nach-oben-Schaltfläche
   -------------------------------------------------------------------------- */
#toTop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ep-primary);
    color: var(--ep-white);
    font-size: 24px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, .3);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease-in-out, visibility .3s ease-in-out, background .3s ease-in-out;
    z-index: 999;
}
#toTop.visible {
    opacity: 1;
    visibility: visible;
}
#toTop:hover {
    background: var(--ep-primary-hover);
    color: var(--ep-white);
}


/* --------------------------------------------------------------------------
   Scroll-Fortschritt
   -------------------------------------------------------------------------- */
.scroll-progress {
    height: 3px;
    width: 0;
    background: var(--ep-cta);
    z-index: 1050;
}


/* --------------------------------------------------------------------------
   Kurse (Listenansicht #items-container)
   Schrift, Größen und Farben kommen aus „Basis & Typografie“,
   der Schatten aus der gemeinsamen Regel bei der Menüleiste.
   -------------------------------------------------------------------------- */
#items-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 30px;              /* Zeilenabstand inkl. Platz für den Schatten */
    margin-bottom: 40px;
}
@media (min-width: 768px)  { #items-container { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { #items-container { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

#items-container .item {
    background: var(--ep-white);
    border: 1px solid #e3e3e3;
    padding: 50px 30px 35px;
}

/* Schatten der Kachel etwas kleiner und heller als bei der Menüleiste */
#items-container .item::after,
.ansprechpartner::after,
.leistungen-liste::after,
.leistungen-slideshow::after {
    left: 15px;
    right: -5px;
    bottom: -9px;
    height: 12px;
    background: rgba(0, 0, 0, .28);
}

#items-container .page-header {
    margin-bottom: 12px;
}
#items-container h2 {
    margin: 0;                   /* global: margin-top 30px */
    line-height: 1.22;
    hyphens: auto;               /* braucht <html lang="de"> */
    overflow-wrap: break-word;   /* Notbremse für lange Wörter */
}

/* Links in der Kachel blau (global sind Links grau) */
#items-container h2 a,
#items-container .readmore {
    color: var(--ep-primary);
}
#items-container h2 a:hover,
#items-container .readmore:hover {
    text-decoration: underline;
}

/* „Weiterlesen“ in eigener Zeile, aber nur so breit wie der Text */
#items-container .readmore {
    display: table;
}


/* --------------------------------------------------------------------------
   Kurs-Einzelansicht: Ansprechpartner rechts (product.note)
   Rahmen + Schatten wie bei den Kurs-Kacheln, Icons per Font Awesome 6
   -------------------------------------------------------------------------- */
.ansprechpartner {
    background: var(--ep-white);
    border: 1px solid #e3e3e3;
    padding: 40px 15px 15px;
    margin-bottom: 40px;
}

.ansprechpartner p {
    font-size: 19px;
    margin: 0;
}

.ansprechpartner .mitarbeiter-name {
    margin-bottom: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: bold;
    font-style: italic;
    color: var(--ep-primary);
}

.ansprechpartner .mitarbeiter-rolle {
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
}

.ansprechpartner a {
    color: var(--ep-text);
}
.ansprechpartner a:hover {
    color: var(--ep-primary);
}

/* Icons vor Telefon und E-Mail */
.ansprechpartner .mitarbeiter-telefon::before,
.ansprechpartner .mitarbeiter-email::before {
    display: inline-block;
    width: 1.3em;
    color: var(--ep-primary);
    -webkit-font-smoothing: antialiased;
}
.ansprechpartner .mitarbeiter-telefon::before {
    content: "\f095";   /* fa-phone (solid) */
    font: var(--fa-font-solid, normal 900 1em/1 "Font Awesome 6 Free");
}
.ansprechpartner .mitarbeiter-email::before {
    content: "\f2b6";   /* fa-envelope-open (regular) */
    font: var(--fa-font-regular, normal 400 1em/1 "Font Awesome 6 Free");
}



.box {
    position: relative;
    background: #ffffff !important;
    border: 1px solid #e6e6e6;
    border-radius: 0px;
    -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
}
.box {
    padding: 15px;
    margin-bottom:25px;
}


/* --------------------------------------------------------------------------
   Leistungen – Übersicht: Liste links, Highlight-Slideshow rechts
   Schatten kommt aus der gemeinsamen Regel bei der Menüleiste.
   „#content …“ jeweils davor, weil #content p / #content ul li sonst gewinnen.
   -------------------------------------------------------------------------- */
.leistungen-uebersicht {
    margin-bottom: 40px;
}
.leistungen-uebersicht > h2 {
    margin: 0 0 20px;
}

/* ---- Liste ---- */
.leistungen-liste {
    background: rgba(var(--ep-primary-rgb), .55);
    border: 1px solid #e3e3e3;
    padding: 10px 0;
}
.leistungen-liste ul,
#content .leistungen-liste ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.leistungen-liste li,
#content .leistungen-liste li {
    margin: 0;
    color: var(--ep-white);
}
.leistungen-liste li::before,
#content .leistungen-liste li::before {
    content: none;            /* kein Chevron aus den Inhaltslisten */
}
.leistungen-liste a {
    display: block;
    padding: 8px 15px;
    color: var(--ep-white);
    font-size: 19px;
    line-height: 1.4;
    transition: background .2s ease;
}
.leistungen-liste a:hover,
.leistungen-liste a:focus {
    color: var(--ep-white);
    background: rgba(var(--ep-primary-rgb), .5);
}

/* ---- Slideshow ---- */
.leistungen-slideshow {
    border: 1px solid #e3e3e3;
    background: var(--ep-text);
}
.leistungen-slideshow .carousel-inner,
.leistungen-slideshow .carousel-item {
    height: 100%;
    min-height: 560px;
    overflow: hidden;
}

.leistungen-slideshow .slide-bild {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);      /* Startgröße des Zooms – auch für noch nicht aktive Slides */
}

/* Ken-Burns: langsamer Zoom, Ursprung wechselt je Slide.
   Startet schon beim Einblenden (carousel-item-next/-prev), nicht erst bei .active –
   sonst springt das Bild beim Klick auf die Pfeile kurz um. */
@keyframes leistungen-kenburns {
    from { transform: scale(1.15); }
    to   { transform: scale(1); }
}
.leistungen-slideshow .carousel-item.active .slide-bild,
.leistungen-slideshow .carousel-item-next .slide-bild,
.leistungen-slideshow .carousel-item-prev .slide-bild {
    animation: leistungen-kenburns 15s ease-out both;
}
.leistungen-slideshow .kenburns-0 { transform-origin: center left; }
.leistungen-slideshow .kenburns-1 { transform-origin: top right; }
.leistungen-slideshow .kenburns-2 { transform-origin: bottom left; }
.leistungen-slideshow .kenburns-3 { transform-origin: top center; }

@media (prefers-reduced-motion: reduce) {
    .leistungen-slideshow .slide-bild { animation: none !important; transform: none; }
}

/* Textbox unten auf dem Bild */
.leistungen-slideshow .slide-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    background: rgba(0, 0, 0, .4);
    color: var(--ep-white);
}
.leistungen-slideshow .slide-text h3,
#content .leistungen-slideshow .slide-text h3 {
    margin: 0 0 15px;
    color: var(--ep-white);
    font-size: 22px;
}
.leistungen-slideshow .slide-text p,
#content .leistungen-slideshow .slide-text p {
    color: var(--ep-white);
    margin-bottom: 15px;
}

.leistungen-slideshow .slide-button {
    display: inline-block;
    padding: 6px 12px;
    background: var(--ep-white);
    border: 1px solid #ddd;
    color: var(--ep-text);
    font-size: 14px;
    text-transform: uppercase;
}
.leistungen-slideshow .slide-button:hover,
.leistungen-slideshow .slide-button:focus {
    background: var(--ep-primary);
    border-color: var(--ep-primary);
    color: var(--ep-white);
}

/* Pfeile nur bei Hover/Fokus (wie in der Vorlage) */
.leistungen-slideshow .carousel-control-prev,
.leistungen-slideshow .carousel-control-next {
    width: 10%;
    opacity: 0;
    transition: opacity .3s ease;
}
.leistungen-slideshow:hover .carousel-control-prev,
.leistungen-slideshow:hover .carousel-control-next,
.leistungen-slideshow .carousel-control-prev:focus-visible,
.leistungen-slideshow .carousel-control-next:focus-visible {
    opacity: .8;
}


/* --------------------------------------------------------------------------
   Stellenangebote – Accordion (stellenangebote.twig)
   Kopfzeile schlicht grau, aufgeklappt ohne blauen Bootstrap-Hintergrund
   -------------------------------------------------------------------------- */
.stellen-accordion {
    --bs-accordion-border-color: #e3e3e3;
    --bs-accordion-border-radius: 0;
    --bs-accordion-inner-border-radius: 0;
    --bs-accordion-btn-color: var(--ep-text);
    --bs-accordion-active-color: var(--ep-primary);
    --bs-accordion-active-bg: var(--ep-white);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(var(--ep-primary-rgb), .25);
    --bs-accordion-btn-padding-x: 15px;
    --bs-accordion-btn-padding-y: 12px;
    --bs-accordion-body-padding-x: 15px;
    --bs-accordion-body-padding-y: 25px;
    margin-bottom: 40px;
}
.stellen-accordion .accordion-item + .accordion-item {
    margin-top: 4px;
    border-top: 1px solid #e3e3e3;   /* jede Stelle als eigener Kasten wie in der Vorlage */
}
.stellen-accordion .accordion-header {
    margin: 0;                       /* globales h2 margin-top aufheben */
}
.stellen-accordion .accordion-button {
    font-size: 16px;
    font-weight: normal;
}
.stellen-accordion .accordion-button:not(.collapsed) {
    border-bottom: 1px solid #e3e3e3;
    box-shadow: none;
}
.stellen-accordion .accordion-body > h3:first-child {
    margin-top: 0;
}


/* ------------------------------------------------------------------------------------------------------------------ */
.google-karte iframe {
    width: 100%;
    height: 400px;
    border: 0;
    margin-bottom:25px;
}
