/* =========================================================================
   arztpraxiszoo – Ergänzungen zum übernommenen template.css
   Enthält nur, was für J6 + Standard-mod_menu + das neue JS nötig ist.
   ========================================================================= */

/* --- Sticky-Header: Positionierung (Look kommt aus template.css) ---------- */
#top {
    position: relative;
    width: 100%;
}
#top.scroll-to-fixed-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
}
.top-placeholder {
    width: 100%;
}

/* Oben weiß: das graue Streifen-Hintergrundbild (backgroud.jpg aus template.css)
   abschalten, damit der Kopfbereich sauber weiß ist. */
body {
    background: #fff none;
}
/* Kein horizontaler Scrollbalken: Vollbreite-Elemente (.ma-zwischenbild) nutzen
   100vw inkl. Scrollbar-Breite und ragen sonst minimal über den Viewport. */
html { overflow-x: hidden; }

/* --- Scroll-Reveal: ohne JS sichtbar, mit JS erst beim Reinscrollen ------- */
.item__module,
.item {
    opacity: 1;
    transform: none;
}
body.js-reveal .item__module:not(.visible-first),
body.js-reveal .item:not(.visible-first) {
    opacity: 0;
    transform: translateY(-30px);
}

/* --- Navigation: rote Leiste aus dem Standard-Joomla-Menü (mod_menu) ------ */
#top .moduletable ul.mod-menu,
#top nav ul.mod-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: stretch;
    background: #C20019;
}
#top .moduletable ul.mod-menu > li {
    position: relative;
}
#top .moduletable ul.mod-menu > li > a,
#top .moduletable ul.mod-menu > li > span {
    display: block;
    padding: 16px 20px;
    color: #fff;
    font-family: 'BenchNine', sans-serif;
    font-weight: 400;
    font-size: 21px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.2s ease;
}
#top .moduletable ul.mod-menu > li > a:hover,
#top .moduletable ul.mod-menu > li > a:focus,
#top .moduletable ul.mod-menu > li.current > a,
#top .moduletable ul.mod-menu > li.active > a {
    background: #9d0013;
    color: #fff;
}
/* Etwas Weißraum ÜBER dem Menü – rote Leiste startet nicht am oberen Rand.
   (STELLSCHRAUBE Menü-Abstand oben) – im angedockten Sticky-Zustand wieder 0. */
#top .moduletable ul.mod-menu { margin-top: 28px; }
#top.scroll-to-fixed-fixed .moduletable ul.mod-menu { margin-top: 0; }

/* Untermenüs (falls genutzt) */
#top .moduletable ul.mod-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #C20019;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1040;
}
#top .moduletable ul.mod-menu > li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#top .moduletable ul.mod-menu ul a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    font-family: 'BenchNine', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    text-decoration: none;
}
#top .moduletable ul.mod-menu ul a:hover {
    background: #9d0013;
}

/* Kompakt-Zustand: Menü etwas kleiner, wenn angedockt */
#top.scroll-to-fixed-fixed .moduletable ul.mod-menu > li > a {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* --- Back-to-top: .is-visible statt jQuery fadeIn/fadeOut ----------------- */
#back-top {
    display: none;
}
#back-top.is-visible {
    display: block;
}
/* kleiner: Icon + Text dezenter (Default in template.css ist 34px) */
#back-top a {
    font: 600 12px/1 'Open Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #C20019;
}
#back-top a > span:before {
    font: 18px/1 FontAwesome;
}

/* --- Responsive: Menü auf kleinen Screens stapeln ------------------------- */
@media (max-width: 767px) {
    #top .moduletable ul.mod-menu {
        flex-direction: column;
    }
    #top .moduletable ul.mod-menu > li > a {
        text-align: center;
    }
    /* Auf Mobil nicht andocken – verhindert Verdecken auf kleinen Screens */
    #top.scroll-to-fixed-fixed {
        position: relative;
    }
}

/* =========================================================================
   mod_articles – alternative Layouts (Sektionen der Startseite)
   Markenrot #C20019, Überschriften BenchNine, Text Open Sans.
   ========================================================================= */

/* --- 1. Banner-Slider ----------------------------------------------------- */
.ma-banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.ma-banner-slider .ma-slider-track {
    position: relative;
}
.ma-banner-slider .ma-slide {
    margin: 0;
    display: none;
}
.ma-banner-slider .ma-slide.is-active {
    display: block;
    animation: ma-slide-in 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ma-banner-slider .ma-slide img {
    display: block;
    width: 100%;
    height: auto;
}
/* Statischer Kopf-Banner auf Unterseiten: gleiche Form wie der Slider,
   aber ohne Animation und ohne Pfeile (eine einzige Slide). */
.ma-page-banner .ma-slide { display: block; animation: none; }

/* Neues Bild schiebt von rechts nach links ein (statt Fade) */
@keyframes ma-slide-in {
    from { transform: translateX(100%); opacity: 0.35; }
    to   { transform: translateX(0);    opacity: 1; }
}
/* rote runde Pfeil-Buttons, unten mittig wie im Original */
.ma-banner-slider .ma-slider-nav {
    position: absolute;
    bottom: 18px;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #C20019;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    /* Flex-Zentrierung => Chevron sitzt sauber mittig im Kreis */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s ease;
}
.ma-banner-slider .ma-slider-nav:hover {
    background: #9d0013;
}
.ma-banner-slider .ma-prev { left: calc(50% - 72px); }
.ma-banner-slider .ma-next { left: calc(50% + 18px); }

/* --- 2. Rundes Bild ------------------------------------------------------- */
.ma-rundbild {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}
.ma-rundbild .ma-rundbild-item {
    margin: 0;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #C20019;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.ma-rundbild .ma-rundbild-item img,
.ma-rundbild .ma-rundbild-item a {
    display: block;
    width: 100%;
    height: 100%;
}
.ma-rundbild .ma-rundbild-item img {
    object-fit: cover;
}

/* --- 3.–5. Text-Blöcke (Termin / Sprechzeiten / Urlaub) ------------------- */
.ma-textblock {
    margin: 0 0 1.5rem;
}
.ma-textblock .ma-textblock-title {
    font-family: 'BenchNine', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #C20019;
    font-size: 30px;
    line-height: 1.1;
    margin: 0 0 0.8rem;
}
.ma-textblock .ma-textblock-body {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #333;
}
.ma-textblock .ma-textblock-body a {
    color: #C20019;
    text-decoration: none;
}
.ma-textblock .ma-textblock-body a:hover {
    text-decoration: underline;
}
.ma-textblock .ma-textblock-body strong {
    color: #222;
}

/* --- Leistungen: zwei zentrierte Spalten (je Leistung 1 Artikel) -------- */
.ma-leistungen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.6rem 56px;
    align-items: start;          /* jede Zeile startet auf gleicher Höhe */
    margin-top: 45px;
}
.ma-leistungen .ma-leistung {
    margin: 0;
    text-align: center;
}
.ma-leistungen .ma-textblock-title {
    color: #C20019;
    font-size: 32px;
    margin-bottom: 0.6rem;
}
@media (max-width: 767px) {
    .ma-leistungen { grid-template-columns: 1fr; }
}

/* --- Sprechzeiten & Kontakt: 3-spaltiger Kontaktblock ------------------- */
.ma-kontakt { margin: 0 0 2.5rem; }
.ma-kontakt > .ma-textblock-title { color: #C20019; font-size: 42px; font-weight: 300; margin: 0 0 2.4rem; }
.ma-kontakt-cols { margin-bottom: 1rem; }
.ma-kontakt-col h3 {
    font-family: 'BenchNine', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #C20019;
    font-size: 24px;
    margin: 0 0 0.6rem;
}
.ma-kontakt-col p { font-family: 'Open Sans', sans-serif; font-size: 17px; line-height: 1.8; color: #333; }
.ma-kontakt-col a { color: #C20019; text-decoration: none; }
.ma-kontakt-col a:hover { text-decoration: underline; }
.ma-kontakt-col small { color: #777; font-size: 12px; }
/* Sprechzeiten + Terminvereinbarung nebeneinander, Urlaub darunter */
.ma-kontakt-zeiten { margin-top: 1.5rem; }
.ma-kontakt-urlaub { margin-top: 1rem; }

/* --- Praxis-Seite: Intro, Gebäudeband, Anmeldung ----------------------- */
.ma-center { text-align: center; }
/* Unterseiten mit Kopf-Banner: Abstand Banner -> Inhalt verkleinern
   (der einzelne Banner braucht weniger Höhe als der Startseiten-Slider). */
.has-page-banner #showcase { min-height: 150px; }
.has-page-banner #content { padding-top: 80px; }
/* Große, dünne Headlines wie auf den übrigen Seiten */
.ma-praxis-intro .ma-textblock-title,
.ma-team-heading,
.ma-anmeldung .ma-textblock-title {
    color: #C20019;
    font-size: 50px;
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 1.4rem;
}
.ma-team-heading { margin-top: 3.5rem; }
.ma-praxis-intro .ma-textblock-title .ma-sub { font-size: 0.62em; }
.ma-praxis-intro { max-width: 780px; margin: 0 auto 2.5rem; text-align: center; }
.ma-praxis-intro p { font-family: 'Open Sans', sans-serif; font-size: 17px; line-height: 1.8; color: #333; }
.ma-praxis-bild { margin: 2.5rem 0; }
.ma-praxis-bild img,
.ma-anmeldung-bild img { display: block; width: 100%; height: auto; }
.ma-anmeldung { max-width: 780px; margin: 5.5rem auto 1.8rem; text-align: center; }
.ma-anmeldung .ma-textblock-title { font-size: 54px; }
.ma-anmeldung p { font-family: 'Open Sans', sans-serif; font-size: 17px; line-height: 1.8; color: #333; }
.ma-anmeldung-bild { max-width: 880px; margin: 0 auto 4.5rem; }

/* --- Praxis-Team -------------------------------------------------------- */
.ma-team { margin: 0 0 2rem; }
.ma-team-card { text-align: center; }
.ma-team-photo {
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #C20019;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.ma-team-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ma-team-lead { max-width: 760px; margin: 0 auto 3.5rem; }
.ma-team-lead .ma-team-photo { width: 280px; height: 280px; }
.ma-team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 56px; }
.ma-team-member .ma-team-photo { width: 250px; height: 250px; }
.ma-team-name {
    font-family: 'BenchNine', sans-serif;
    font-weight: 400;
    color: #C20019;
    font-size: 28px;
    margin: 0.4rem 0 0.1rem;
}
.ma-team-funktion {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #555;
    margin-bottom: 1rem;
}
.ma-team-bio {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #333;
}
@media (max-width: 767px) {
    .ma-team-grid { grid-template-columns: 1fr; }
}

/* === Startseite: Willkommens-Intro – rundes Team-Bild rechts, rote Headline === */
.body__home .item-page .page-header h1 { display: none; }   /* überflüssiger „Start"-Titel */
.body__home .item-page .page-header h2 {
    color: #C20019;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 1.2rem;
}
.body__home .item-page figure.item-image {
    float: right;
    width: 400px;
    max-width: 40%;
    margin: 0 0 1.5rem 4rem;
    shape-outside: circle();          /* Text legt sich an den Kreis */
}
.body__home .item-page figure.item-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #C20019;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
@media (max-width: 767px) {
    .body__home .item-page figure.item-image {
        float: none;
        width: 280px;
        max-width: 80%;
        margin: 0 auto 1.5rem;
    }
}
/* Startseite: mehr Abstand zwischen Intro-Block und Sprechzeiten/Terminen.
   ::after räumt das rechts schwebende runde Bild ab, damit der Abstand greift. */
.body__home #content::after { content: ""; display: block; clear: both; }
.body__home #content { padding-bottom: 75px; }

/* === Footer: Impressum / Datenschutz inline neben dem Copyright === */
.footer-rot .text-white { padding: 0; }   /* © bündig mit dem Inhalt darüber */
.footer-rot .mod-menu {
    display: inline;
    list-style: none;
    margin: 0;
    padding: 0;
}
/* Bootstrap-.nav-Clearfix abschalten – die display:table-Pseudoelemente
   brechen sonst den Inline-Fluss (Liste rutscht in die nächste Zeile). */
.footer-rot .mod-menu::before,
.footer-rot .mod-menu::after { content: none; display: none; }
.footer-rot .mod-menu > li { display: inline; float: none; }
.footer-rot .mod-menu > li + li::before { content: "/"; display: inline; margin: 0 0.7rem; }
.footer-rot .mod-menu > li > a {
    display: inline;
    padding: 0;
    background: none;
    color: #fff;
    text-decoration: none;
}
/* Hover: kein Button-Hintergrund, nur Schrift ganz leicht abdunkeln */
.footer-rot .mod-menu > li > a:hover,
.footer-rot .mod-menu > li > a:focus {
    background: transparent;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
}

/* =========================================================================
   MOBIL / RESPONSIVE (Burger-Menü + gestapeltes Layout bis 991px)
   ========================================================================= */
#ma-nav-toggle { display: none; }

@media (max-width: 991px) {
    /* --- Burger-Button --- */
    #ma-nav-toggle {
        display: block;
        position: absolute;
        top: 16px;
        left: 14px;
        z-index: 50;
        width: 48px;
        height: 42px;
        padding: 10px 9px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 5px;
        cursor: pointer;
    }
    #ma-nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: #C20019;
        border-radius: 2px;
        transition: transform .25s ease, opacity .25s ease;
    }
    #ma-nav-toggle span + span { margin-top: 5px; }
    body.nav-open #ma-nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    body.nav-open #ma-nav-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open #ma-nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* --- Header: Schwung-Form weg, Logo zentriert, gestapelt --- */
    .main_header_figure { display: none; }
    #top .container,
    #top .row { display: block; width: 100%; margin: 0; }
    #top #logo {
        width: 100%;
        max-width: 100%;
        float: none;
        text-align: center;
        padding: 12px 64px;
    }
    #top #logo img { max-width: 100%; height: auto; }

    /* --- Rote Leiste -> aufklappbares Panel (Burger) --- */
    #top .moduletable { width: 100%; padding: 0; margin: 0; }
    #top .moduletable ul.mod-menu {
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        background: #fff;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    body.nav-open #top .moduletable ul.mod-menu { display: flex; }
    #top .moduletable ul.mod-menu > li { width: 100%; border-top: 1px solid #f0f0f0; }
    #top .moduletable ul.mod-menu > li > a {
        display: block;
        width: 100%;
        padding: 15px 24px;
        background: #fff;
        color: #C20019;
        font-size: 21px;
        text-align: left;
    }
    #top .moduletable ul.mod-menu > li.current > a,
    #top .moduletable ul.mod-menu > li.active > a,
    #top .moduletable ul.mod-menu > li > a:hover,
    #top .moduletable ul.mod-menu > li > a:focus {
        background: #C20019;
        color: #fff;
    }

    /* --- Showcase: absolute Positionierung auflösen, full-width gestapelt --- */
    #showcase,
    .has-page-banner #showcase { min-height: 0; }
    #showcase .container,
    #showcase .row { display: block; position: static; }
    #showcase .ma-banner-slider,
    .has-page-banner #showcase .ma-banner-slider {
        position: static;
        width: 100%;
        top: auto;
        right: auto;
        margin: 0;
        padding-bottom: 64px;
    }
    #showcase .ma-banner-slider .ma-slider-track { clip-path: none; filter: none; }
    /* Showcase-Rundbild ("Kudela unter Logo") auf Mobil ausblenden */
    #showcase .ma-rundbild { display: none; }

    /* --- Unterseiten: weniger Sonderabstand zum Banner --- */
    .has-page-banner #content { padding-top: 30px; }

    /* --- Große Headlines mobil etwas kleiner --- */
    .ma-praxis-intro .ma-textblock-title,
    .ma-team-heading,
    .ma-anmeldung .ma-textblock-title,
    .body__home .item-page .page-header h2 { font-size: 34px; }
    .ma-leistungen .ma-textblock-title { font-size: 26px; }
}

/* Sprechzeiten / Terminvereinbarung: rote, dünne Hauptüberschrift */
.ma-sprechzeiten .ma-textblock-title,
.ma-termin .ma-textblock-title {
    font-size: 42px;
    font-weight: 300;
}

/* Urlaubszeiten: größere rote Hauptüberschrift (= Beitragstitel) */
.ma-urlaub .ma-textblock-title {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 20px;
    padding-top: 30px;
}

/* Urlaubszeiten: etwas luftiger, eigene Jahres-/Quartals-Zwischenüberschriften */
.ma-urlaub .ma-textblock-body h2,
.ma-urlaub .ma-textblock-body h3,
.ma-urlaub .ma-textblock-body h4 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #C20019;
    margin: 1.2rem 0 0.4rem;
}

/* --- 6. Zwischenbild (volle Breite, Parallax, geschwungene Kanten) --------- */
.ma-zwischenbild {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}
.ma-zwischenbild .ma-zwischenbild-item {
    position: relative;
    margin: 0;
    height: 420px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax: Bild steht, Inhalt scrollt drüber */
}
/* weiße geschwungene Kanten oben + unten */
.ma-zwischenbild .ma-zwischenbild-item::before,
.ma-zwischenbild .ma-zwischenbild-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 2;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.ma-zwischenbild .ma-zwischenbild-item::before {
    top: -1px;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path d='M0,0 H1200 Q600,80 0,0 Z' fill='%23ffffff'/></svg>");
}
.ma-zwischenbild .ma-zwischenbild-item::after {
    bottom: -1px;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path d='M0,80 H1200 Q600,0 0,80 Z' fill='%23ffffff'/></svg>");
}
/* Mobil: kein fixed (iOS ignoriert es eh) + flacher */
@media (max-width: 767px) {
    .ma-zwischenbild .ma-zwischenbild-item {
        height: 240px;
        background-attachment: scroll;
    }
    .ma-zwischenbild .ma-zwischenbild-item::before,
    .ma-zwischenbild .ma-zwischenbild-item::after {
        height: 40px;
    }
}

/* --- 7. Grippeimpfung (Bild links, Text rechts) --------------------------- */
.ma-grippe {
    padding-top: 50px;    /* mehr Freiraum nach oben */
    padding-bottom: 70px; /* mehr Freiraum nach unten */
}
.ma-grippe .ma-grippe-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.ma-grippe .ma-grippe-item + .ma-grippe-item {
    margin-top: 2.5rem;
}
.ma-grippe .ma-grippe-media {
    margin: 0;
    flex: 1 1 280px;
    min-width: 260px;
}
.ma-grippe .ma-grippe-media img {
    display: block;
    width: 100%;
    height: auto;
}
.ma-grippe .ma-grippe-text {
    flex: 1 1 340px;
}
.ma-grippe .ma-textblock-title {
    font-family: 'BenchNine', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #C20019;
    font-size: 42px;
    line-height: 1.1;
    margin: 0 0 0.8rem;
}
.ma-grippe .ma-textblock-body {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #333;
}
.ma-grippe .ma-textblock-body p {
    margin: 0 0 1rem;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 767px) {
    .ma-banner-slider .ma-slider-nav { bottom: 10px; }
    /* Aktuelles-Block mobil stapeln: Bild oben (volle Breite), Text darunter */
    .ma-grippe .ma-grippe-item { gap: 20px; flex-direction: column; }
    .ma-grippe .ma-grippe-media { width: 100%; min-width: 0; flex: 1 1 auto; }
    .ma-textblock .ma-textblock-title,
    .ma-grippe .ma-textblock-title { font-size: 26px; }
}

/* =========================================================================
   Banner-Anordnung im Showcase: Slider rechts + rundes Bild vorne links.
   Fix verdrahtet – KEINE Bootstrap-Größen am Modul nötig.
   Schichtung: Slider < weiße Schwung-Form (#top .main_header_figure, z 1)
               < rundes Bild (z 2).  #showcase bekommt KEINEN z-index,
   damit der Slider hinter der weißen Form bleibt.
   ========================================================================= */
#showcase {
    position: relative;       /* Bezug für die absolute Positionierung der Kinder */
    min-height: 440px;        /* hält den Banner-Raum (Slider + rundes Bild sind absolut) */
}
#showcase .container { position: static; }
#showcase .row { position: static; }
/* Bootstrap-Spalten der Module neutralisieren */
#showcase .moduletable {
    width: auto !important;
    float: none !important;
    margin: 0;
    padding: 0;
}
#showcase .module_container { margin: 0; padding: 0; }

/* Slider: rechte ~62 %, Pfeile darunter, geschwungene Unterkante */
#showcase .ma-banner-slider {
    position: absolute;
    top: -105px;              /* Slider unter der Navi, etwas tiefer (STELLSCHRAUBE: weniger negativ = tiefer) */
    right: 0;
    width: 58%;               /* linke Kante schiebt sich unters runde Bild => Schatten verdeckt (STELLSCHRAUBE Slider-Breite) */
    margin: 0;
    overflow: visible;        /* Pfeile dürfen unter den Slider ragen */
    padding-bottom: 72px;     /* Platz für die Pfeile */
}
#showcase .ma-banner-slider .ma-slider-track {
    clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); /* unten schräg, steigt nach rechts */
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
}
#showcase .ma-banner-slider .ma-slider-nav {
    bottom: 22px;             /* Pfeile etwas höher (STELLSCHRAUBE Button-Höhe) */
}
#showcase .ma-banner-slider .ma-prev { left: calc(50% - 68px); }
#showcase .ma-banner-slider .ma-next { left: calc(50% + 10px); }

/* Rundes Bild: vorne (über der weißen Form), unten links, groß */
#showcase .ma-rundbild {
    position: absolute;
    left: calc((100% - 1200px) / 2 + 40px); /* an Container-Rand ausgerichtet */
    top: 60px;                /* sitzt auf der Schwung-Kante (STELLSCHRAUBE rundes Bild) */
    width: 340px;
    margin: 0;
    display: block;
    z-index: 2;               /* > .main_header_figure (z 1) => davor */
}
#showcase .ma-rundbild .ma-rundbild-item {
    width: 340px;
    max-width: 340px;
    margin: 0;
}

/* Zwischenbreite (992–1199px): rundes Bild fest links statt per Container-Calc */
@media (min-width: 992px) and (max-width: 1199px) {
    #showcase .ma-rundbild { left: 20px; }
}

/* Tablet/Mobil: gestapelt, Slider normal, rundes Bild zentriert darunter */
@media (max-width: 991px) {
    #showcase { min-height: 0; }
    #showcase .ma-banner-slider {
        position: static;
        top: auto;
        right: auto;
        width: 100%;
    }
    /* Showcase-Rundbild ("Kudela unter Logo") auf Mobil ausblenden */
    #showcase .ma-rundbild { display: none; }
}

/* Mobil: Startseiten-Module (Sprechzeiten/Termin/Urlaub/Aktuelles) nicht bis an den Rand.
   Bootstraps negativer .row-Rand wird neutralisiert, damit alle Bänder – auch
   Module ohne col-Klasse – einheitlich Seitenabstand bekommen. */
@media (max-width: 991px) {
    #maintop > .container,
    #mainbottom > .container,
    #mainbottom-2 > .container,
    #mainbottom-3 > .container,
    #bottom > .container { padding-left: 20px; padding-right: 20px; }
    #maintop .row, #mainbottom .row, #mainbottom-2 .row,
    #mainbottom-3 .row, #bottom .row { margin-left: 0; margin-right: 0; }
    #maintop .moduletable, #mainbottom .moduletable, #mainbottom-2 .moduletable,
    #mainbottom-3 .moduletable, #bottom .moduletable { padding-left: 0; padding-right: 0; }
}

/* Mobil: Footer nicht am Rand kleben + mehr Tap-Raum für die Links */
@media (max-width: 991px) {
    .footer-rot { padding: 16px 0; }
    .footer-rot .text-white { padding: 0 20px; line-height: 1.9; }
}
