/*

Theme Name: Kadence mySurgery

Theme URI: https://mysurgery.de

Description: Child Theme für mySurgery auf Basis des Kadence Themes

Author: mySurgery

Template: kadence

Version: 1.0.1

Text Domain: kadence-mysurgery

*/

/* =========================================================

   1. Lernziele – ausklappbarer Tabellenbereich

   ========================================================= */

.mysurgery-learning-details {

    margin: 0 0 2rem;

    border-bottom: 1px solid #d9dee5;

}

.mysurgery-learning-details summary {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 1rem 0 1.1rem;

    cursor: pointer;

    list-style: none;

    font-size: 1.15rem;

    font-weight: 700;

    /* Keine feste Farbe: Tutor Light/Dark berücksichtigt */

}

.mysurgery-learning-details summary::-webkit-details-marker {

    display: none;

}

.mysurgery-learning-details summary::after {

    content: "+";

    font-size: 1.7rem;

    line-height: 1;

    font-weight: 400;

}

.mysurgery-learning-details[open] summary::after {

    content: "−";

}

.mysurgery-learning-table {

    overflow-x: auto;

    padding: 0.5rem 0 1.5rem;

}

.mysurgery-learning-table table {

    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;

}

.mysurgery-learning-table th,

.mysurgery-learning-table td {

    padding: 0.9rem 1rem;

    text-align: left;

    vertical-align: top;

    border-bottom: 1px solid #e3e7ec;

}

.mysurgery-learning-table th {

    font-weight: 700;

    background: rgba(128, 128, 128, 0.09);

}

.mysurgery-learning-table th:first-child,

.mysurgery-learning-table td:first-child { width: 60%; }

.mysurgery-learning-table th:nth-child(2),

.mysurgery-learning-table td:nth-child(2) { width: 15%; }

.mysurgery-learning-table th:nth-child(3),

.mysurgery-learning-table td:nth-child(3) { width: 25%; }

/* Keine untere Trennlinie nach der letzten Tabellenzeile */

.mysurgery-learning-table tbody tr:last-child td {

    border-bottom: none;

}

/* =========================================================

   2. Typografie – Tutor LMS Learning Area

   Bewusst KEINE Farbe für Überschriften/Absätze erzwingen:

   Gutenberg-Farbwahl und Tutor-Dark-Mode bleiben erhalten.

   ========================================================= */

[data-tutor-theme] .wp-block-paragraph,

[data-tutor-theme] .wp-block-list,

[data-tutor-theme] .wp-block-list li {

    font-family: "Open Sans", sans-serif !important;

    line-height: 30px !important;

    font-weight: 400;

}

[data-tutor-theme] .wp-block-list li {

    margin-bottom: 0.35rem;

}

[data-tutor-theme] .wp-block-heading {

    font-family: "Raleway", sans-serif !important;

    font-weight: 600 !important;

}

/* Bildunterschriften – keine feste Textfarbe */

[data-tutor-theme] .wp-block-image figcaption,

[data-tutor-theme] .wp-element-caption {

    font-family: "Open Sans", sans-serif;

    font-size: 14px;

    line-height: 22px;

    font-weight: 400;

    color: inherit;

}

/* =========================================================

   3. Tutor LMS – Breite und Innenabstand

   ========================================================= */

[data-tutor-theme] .tutor-learning-area-container {

    width: 100%;

    max-width: 1250px !important;

    margin-inline: auto;

    box-sizing: border-box;

}

[data-tutor-theme] .tutor-lesson-wrapper {

    padding: 40px;

    box-sizing: border-box;

}

/* =========================================================

   4. Fullbleed-Komponenten in Tutor-Lessons

   Aktuelle Geometrie: 40px Wrapper + 16px Tutor-Abstand

   ========================================================= */

.mysurgery-fullbleed,

.wp-block-group.is-style-mysurgery-gradient-fullbleed,

.wp-block-group.is-style-mysurgery-gradient-fullbleed-bottom {

    width: calc(100% + 112px);

    max-width: none !important;

    margin-left: -56px;

    margin-right: -56px;

    padding-left: 56px;

    padding-right: 56px;

    box-sizing: border-box;

}

/* Oberer Verlauf */

.wp-block-group.is-style-mysurgery-gradient-fullbleed {

    padding-top: 50px;

    background-image: linear-gradient(to bottom, #e3e3e380 0%, #fff 100%);

    background-size: 100% 150px;

    background-repeat: no-repeat;

    background-position: top left;

    margin-top: 50px;

}

/* Unterer Verlauf */

.wp-block-group.is-style-mysurgery-gradient-fullbleed-bottom {

    padding-bottom: 50px;

    background-image: linear-gradient(to top, #e3e3e380 0%, #fff 100%);

    background-size: 100% 150px;

    background-repeat: no-repeat;

    background-position: bottom left;

    margin-bottom: 60px;

}

/* Im Editor ohne negative Außenabstände darstellen */

.editor-styles-wrapper .wp-block-group.is-style-mysurgery-gradient-fullbleed,

.editor-styles-wrapper .wp-block-group.is-style-mysurgery-gradient-fullbleed-bottom {

    width: 100% !important;

    max-width: 1250px !important;

    margin-left: auto !important;

    margin-right: auto !important;

    padding-left: 56px !important;

    padding-right: 56px !important;

    box-sizing: border-box;

}

/* =========================================================

   5. Seitenheader – Gutenberg-Gruppe + Kadence-Zeilenlayout

   ========================================================= */

.wp-block-group.is-style-mysurgery-fullwidth-header {

    width: 100%;

    max-width: 100%;

    margin: 0;

    box-sizing: border-box;

}

.mysurgery-header-row {

    width: 100% !important;

    max-width: 100% !important;

    margin: -52px 0 0 !important;

    padding: 0 !important;

}

.mysurgery-header-row > .kt-row-column-wrap {

    width: 100% !important;

    max-width: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

}

.mysurgery-header-row .kt-inside-inner-col {

    padding-left: 0 !important;

    padding-right: 0 !important;

}

/* =========================================================

   6. Responsive Anpassungen

   ========================================================= */

@media (max-width: 768px) {

    .mysurgery-learning-table table {

        min-width: 760px;

    }

    [data-tutor-theme] .tutor-learning-area-container {

        max-width: 100% !important;

    }

    [data-tutor-theme] .tutor-lesson-wrapper {

        padding: 20px;

    }

    .mysurgery-fullbleed,

    .wp-block-group.is-style-mysurgery-gradient-fullbleed,

    .wp-block-group.is-style-mysurgery-gradient-fullbleed-bottom {

        width: calc(100% + 72px);

        margin-left: -36px;

        margin-right: -36px;

        padding-left: 36px;

        padding-right: 36px;

    }

    .wp-block-group.is-style-mysurgery-gradient-fullbleed {

        padding-top: 32px;

        background-size: 100% 110px;

    }

    .wp-block-group.is-style-mysurgery-gradient-fullbleed-bottom {

        padding-bottom: 32px;

        background-size: 100% 110px;

    }

    .mysurgery-header-row {

        margin-top: 0 !important;

    }

}

/* =========================================================

   mySurgery – Blocksatz

   Ausnahme: Kadence-Infoboxen

   ========================================================= */

.wp-block-paragraph.is-style-mysurgery-justify:not(

    .kt-blocks-info-box-text

):not(

    .kt-blocks-info-box-text p

) {

    text-align: justify;

    hyphens: auto;

    -webkit-hyphens: auto;

}

/* Kadence-Infoboxen: Blocksatz aufheben */

.entry-content .kt-blocks-info-box-text,

.editor-styles-wrapper .kt-blocks-info-box-text {

    text-align: left;

    hyphens: none;

    -webkit-hyphens: none;

}

/* =========================================================

   mySurgery – Footer Fullbleed

   Hintergrundfarbe wird in Gutenberg festgelegt

   ========================================================= */

[data-tutor-theme]

.wp-block-group.is-style-mysurgery-footer-fullbleed {

    /* Gesamte Breite des Lektionscontainers */

    width: calc(100% + 112px) !important;

    max-width: none !important;

    margin-left: -56px !important;

    margin-right: -56px !important;

    /* Kein zusätzlicher Abstand zum vorherigen Block */

    margin-top: 0 !important;

    margin-bottom: 0 !important;

    /* Innenabstand für die Quellen */

    padding: 50px 56px !important;

    box-sizing: border-box;

}

/* Mobile Darstellung */

@media (max-width: 768px) {

    [data-tutor-theme]

    .wp-block-group.is-style-mysurgery-footer-fullbleed {

        width: calc(100% + 72px) !important;

        margin-left: -36px !important;

        margin-right: -36px !important;

        padding: 32px 36px !important;

    }

}

/* Abstand unmittelbar vor dem Footer entfernen */

[data-tutor-theme]

.wp-block-group.is-style-mysurgery-footer-fullbleed {

    --wp--style--block-gap: 0px;

}

[data-tutor-theme]

.wp-block-group.is-style-mysurgery-footer-fullbleed

.mysurgery-learning-details {

    margin-top: 0;

}

/* mySurgery – Footer bündig mit dem Lektionscontainer */

[data-tutor-theme]

.wp-block-group.is-style-mysurgery-footer-fullbleed {

    margin-top: -60px !important;

    margin-bottom: -56px !important;

}

@media (max-width: 768px) {

    [data-tutor-theme]

    .wp-block-group.is-style-mysurgery-footer-fullbleed {

        margin-top: -36px !important;

        margin-bottom: -20px !important;

    }

}

/* =========================================================

   mySurgery – Lektionsmetadaten im Footer

   ========================================================= */

.mysurgery-lesson-meta {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-top: 30px;

    font-size: 14px;

    line-height: 1.5;

    color: inherit;

}

@media (max-width: 600px) {

    .mysurgery-lesson-meta {

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;

    }

}

/* =========================================================

   mySurgery – Medienrahmen

   Für Fotos, CT-Serien und interaktive Abbildungen

   ========================================================= */

.mysurgery-media-frame {

    box-sizing: border-box;

    max-width: 100%;

    margin: 24px auto;

    padding: 10px;

    background-color: #f6f6f6;

    border: 1px solid #d8d8d8;

}

/* Bilder innerhalb des Rahmens */

.mysurgery-media-frame img {

    display: block;

    max-width: 100%;

    height: auto;

    margin-left: auto;

    margin-right: auto;

}

/* Bildunterschrift */

.mysurgery-media-frame figcaption,

.mysurgery-media-frame .mysurgery-media-caption {

    margin: 12px 0 4px;

    padding: 0 8px;

    color: #808080;

    font-size: 14px;

    line-height: 1.5;

    font-weight: 400;

    text-align: center!important;

}

/* Mobile Darstellung */

@media (max-width: 768px) {

    .mysurgery-media-frame {

        padding: 8px;

        margin: 20px auto;

    }

    .mysurgery-media-frame figcaption,

    .mysurgery-media-frame .mysurgery-media-caption {

        font-size: 14px;

    }

}

.mysurgery-text-columns,

.wp-block-group.is-style-mysurgery-text-columns {

    column-count: 2;

    column-gap: 48px;

    column-fill: balance;

}

@media (max-width: 768px) {

    .mysurgery-text-columns,

    .wp-block-group.is-style-mysurgery-text-columns {

        column-count: 1;

    }

}

/* mySurgery – Blocksatz im gesamten Lektionsinhalt */

body.single-lesson .entry-content p,

body.single-lesson .tutor-lesson-wrapper p {

    text-align: justify;

    hyphens: auto;

    -webkit-hyphens: auto;

    overflow-wrap: break-word;

}

/* Ausnahmen: Bildunterschriften, Metadaten und Infoboxen */

body.single-lesson figcaption,

body.single-lesson .mysurgery-media-caption,

body.single-lesson .mysurgery-lesson-meta p,

body.single-lesson .kt-blocks-info-box-text {

    text-align: initial;

    hyphens: none;

}

/* ==========================================

   mySurgery – Bildunterschriften zentrieren

   ========================================== */

body.single-lesson figcaption,

body.single-lesson .mysurgery-media-caption,

body.single-lesson .mysurgery-media-frame > p:last-child {

    text-align: center !important;

    hyphens: none;

    -webkit-hyphens: none;

}

/* =========================================================

   mySurgery – Standard-Trenner im Lektionsinhalt

   ========================================================= */

[data-tutor-theme] .tutor-lesson-wrapper hr.wp-block-separator {

    width: 100%;

    max-width: 100%;

    height: 1px;

    min-height: 0;

    margin: 48px auto 64px;

    padding: 0;

    border: 0;

    border-top: 1px solid #e3e7ec;

    background: none;

    opacity: 1;

}

/* mySurgery – Abstand vor H2-Überschriften */

/* Desktop und Tablet */

[data-tutor-theme] .tutor-lesson-wrapper h2.wp-block-heading {

    padding-top: 40px;

}

/* Smartphones */

@media (max-width: 768px) {

    [data-tutor-theme] .tutor-lesson-wrapper h2.wp-block-heading {

        padding-top: 24px;

    }

}

/* =========================================================

   mySurgery – Fullbleed-Bilder in Tutor-Lektionen

   ========================================================= */

/* Desktop */

[data-tutor-theme] .mysurgery-image-fullbleed {

    width: calc(100% + 112px) !important;

    max-width: none !important;

    margin: -60px -56px -49px !important;

    padding: 0 !important;

}

/* Kadence – innere Abstände entfernen */

[data-tutor-theme] .mysurgery-image-fullbleed .kt-row-column-wrap,

[data-tutor-theme] .mysurgery-image-fullbleed .wp-block-kadence-column,

[data-tutor-theme] .mysurgery-image-fullbleed .kt-inside-inner-col {

    margin: 0 !important;

    padding: 0 !important;

    gap: 0 !important;

    min-height: 0 !important;

}

/* Bild ohne Beschnitt und zusätzliche Abstände */

[data-tutor-theme] .mysurgery-image-fullbleed figure,

[data-tutor-theme] .mysurgery-image-fullbleed img {

    display: block;

    width: 100% !important;

    max-width: none !important;

    height: auto !important;

    margin: 0 !important;

    padding: 0 !important;

}

/* Smartphones – vorläufige Einstellungen */

@media (max-width: 768px) {

    [data-tutor-theme] .mysurgery-image-fullbleed {

        width: calc(100% + 80px) !important;

        margin-left: -40px !important;

        margin-right: -40px !important;

    }

}

/* =========================================================

   mySurgery – Gutenberg-Standardtabellen

   ========================================================= */

:root {

    --mysurgery-table-blue: #435C7F;

    --mysurgery-table-light: #EEF3F8;

    --mysurgery-table-border: #D6DFE9;

}

/* Tabellen im Lektionsinhalt */

[data-tutor-theme] .wp-block-table table {

    width: 100%;

    border-collapse: collapse;

    border-spacing: 0;

}

/* Tabellenkopf */

[data-tutor-theme] .wp-block-table thead th {

    background-color: var(--mysurgery-table-blue);

    color: #FFFFFF !important;

    font-weight: 700;

    text-align: left;

    padding: 12px 16px;

    border: 1px solid var(--mysurgery-table-blue);

}

/* Standardzellen */

[data-tutor-theme] .wp-block-table tbody td {

    padding: 12px 16px;

    border: 1px solid var(--mysurgery-table-border);

    vertical-align: top;

}

/* Ungerade Zeilen: Weiß */

[data-tutor-theme] .wp-block-table tbody tr:nth-child(odd) td {

    background-color: #FFFFFF;

    color: #303744;

}

/* Gerade Zeilen: Helles Blau */

[data-tutor-theme] .wp-block-table tbody tr:nth-child(even) td {

    background-color: var(--mysurgery-table-light);

    color: #303744;

}

/* Kein zusätzlicher Abstand zwischen Zellen */

[data-tutor-theme] .wp-block-table th,

[data-tutor-theme] .wp-block-table td {

    box-sizing: border-box;

}

/* mySurgery – sauberer Übergang zum Quellenfooter */

.wp-block-group.bottom_verlauf {

    display: flow-root;

    padding-bottom: clamp(2rem, 4vw, 4rem);

}

/* Footer bleibt im normalen Dokumentfluss */

.wp-block-group.is-style-mysurgery-footer-fullbleed {

    clear: both;

}

/* mySurgery – Automatisches Tutor-LMS-Lektionsbild ausblenden

   Das Beitragsbild bleibt für unseren Kadence-Header verfügbar. */

body.single-lesson .tutor-lesson-image-wrapper {

    display: none !important;

}

/* mySurgery – Bildunterschriften zentrieren */

.entry-content .kb-advanced-image-caption,

.entry-content .kb-image-caption,

.entry-content figure figcaption,

.entry-content .wp-element-caption {

    text-align: center !important;

}

/* ==========================================

   mySurgery – Lightbox-Hover-Hinweis

   ========================================== */

@media (hover: hover) and (pointer: fine) {

    body.single-lesson a.kt-lightbox:not(.Magic360) {

        position: relative !important;

        cursor: zoom-in;

    }

    body.single-lesson a.kt-lightbox:not(.Magic360)::after {

        content: "⊕  Zum Vergrößern anklicken" !important;

        position: absolute !important;

        right: 12px;

        bottom: 12px;

        padding: 7px 12px;

        background: rgba(24, 34, 50, 0.88);

        color: #ffffff !important;

        font: 500 12px/1.4 "Open Sans", sans-serif;

        border-radius: 6px;

        opacity: 0;

        transform: translateY(5px);

        transition: opacity .2s ease, transform .2s ease;

        pointer-events: none;

        z-index: 999;

    }

    body.single-lesson a.kt-lightbox:not(.Magic360):hover::after,

    body.single-lesson a.kt-lightbox:not(.Magic360):focus-visible::after {

        opacity: 1 !important;

        transform: translateY(0);

    }

}

/* ==========================================

   mySurgery – Tutor LMS OP-Videolektionen

   ========================================== */

.mysurgery-video-lesson .mysurgery-video-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    color: inherit;

}

.mysurgery-video-lesson .mysurgery-video-icon svg {

    display: block;

    width: 24px;

    height: 24px;

}

/* mySurgery – Symbol für OP-Videolektionen */

.mysurgery-video-lesson .mysurgery-video-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 24px;

    height: 24px;

    color: inherit;

}

.mysurgery-video-lesson .mysurgery-video-icon svg {

    display: block;

    width: 24px;

    height: 24px;

}

/* mySurgery: Textausrichtung in Kadence-Infoboxen

   nicht durch globale Blocksatzregel überschreiben */

.entry-content .kt-blocks-info-box-text {

    text-align: start;

}

/* Gutenberg-Ausrichtung ausdrücklich berücksichtigen */

.entry-content .kt-blocks-info-box-text.has-text-align-left {

    text-align: left;

}

.entry-content .kt-blocks-info-box-text.has-text-align-center {

    text-align: center;

}

.entry-content .kt-blocks-info-box-text.has-text-align-right {

    text-align: right;

}

/* =========================================================

   mySurgery – Kadence-Infoboxen

   Textausrichtung aus Gutenberg übernehmen

   ========================================================= */

body.single-lesson .entry-content p.kt-blocks-info-box-text,

body.single-lesson .tutor-lesson-wrapper p.kt-blocks-info-box-text {

    text-align: inherit;

    hyphens: none;

    -webkit-hyphens: none;

}

/* =========================================================

   mySurgery – Seitenheader für normale WordPress-Seiten

   Unabhängig vom Tutor-LMS-Lektionslayout

   ========================================================= */

/* Headergruppe über die volle Breite */

body.page:not(.single-lesson)

.entry-content .mysurgery-page-header {

    width: calc(100% + 4rem);

    max-width: none !important;

    margin: -2rem -2rem 0 !important;

    padding: 0 !important;

    box-sizing: border-box;

    overflow: hidden;

}

/* Kadence-Zeilenlayout innerhalb des Headers */

body.page .mysurgery-page-header .kt-row-column-wrap,

body.page .mysurgery-page-header .kt-inside-inner-col {

    padding: 0 !important;

    max-width: none !important;

}

/* Headerbilder über die gesamte Breite */

body.page .mysurgery-page-header img {

    display: block;

    width: 100%;

    height: auto;

}

/* Überschriften und Texte */

body.page .mysurgery-page-header .wp-block-heading,

body.page .mysurgery-page-header p {

    padding: 40px !important;

    box-sizing: border-box;

}

/* Optional: Klasse direkt auf einer Überschrift */

body.page .wp-block-heading.mysurgery-page-header {

    padding: 40px !important;

    box-sizing: border-box;

}

/* =========================================================

   Responsive

   ========================================================= */

@media (max-width: 768px) {

    body.page .entry-content .mysurgery-page-header {

        width: 100%;

        margin: 0 !important;

    }

    body.page .mysurgery-page-header .wp-block-heading,

    body.page .mysurgery-page-header p,

    body.page .wp-block-heading.mysurgery-page-header {

        padding: 20px !important;

    }

}

/* =========================================================
   mySurgery – Dynamischer Seitentitel (optionaler Header)
   ========================================================= */
.mysurgery-page-title {
    font-family: "Raleway", sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    color: #303030;
    padding: 20px 40px;
    margin: 0;
}
@media (max-width: 767px) {
    .mysurgery-page-title {
        font-size: 28px;
        padding: 20px 24px;
    }
}

/* ==========================================

   mySurgery – Themenwelt

   Full-Width-Sektionen

   ========================================== */

.ms-topic-section-white {

    background-color: #ffffff;

}

.ms-topic-section-gray {

    background-color: #f5f5f7;

}

/* Nur Gutenberg-Full-Width-Gruppen */

body.page .entry-content

.wp-block-group.alignfull.ms-topic-section-white,

body.page .entry-content

.wp-block-group.alignfull.ms-topic-section-gray {

    width: 100%;

}

/* Responsive Innenabstände für Inhaltsbereiche */

.ms-topic-section-content {

    max-width: 1440px;

    margin-left: auto;

    margin-right: auto;

    padding: 64px 40px;

    box-sizing: border-box;

}

@media (max-width: 767px) {

    .ms-topic-section-content {

        padding: 40px 24px;

    }

}

/* mySurgery Topic Navigator

   Hintergrund der Gutenberg-Gruppe übernehmen */

.msnav,

.msnav-viewport-row,

.msnav-viewport,

.msnav-track,

.msnav-tile,

.msnav-tabs-wrap,

.msnav-tabs {

    background-color: transparent !important;

    background-image: none !important;

}

/* Bild mit gerundeten unteren Ecken und dezentem Verlauf */
.ms-topic-image-bottom {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    margin-bottom: 0;
}
.ms-topic-image-bottom img {
    display: block;
    width: 100%;
    height: auto;
}
.ms-topic-image-bottom::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(255,255,255,.6), rgba(255,255,255,0));
    pointer-events: none;
}

/* =========================================================
   mySurgery – Interactive Info Cards
   Zwei synchron positionierte Kadence-Zeilenlayouts
   Klassen: ms-info-cards / ms-info-fronts / ms-info-backs
   Die mobilen Rasterzeilenhöhen werden vom JavaScript gesetzt.
   ========================================================= */

/* Gemeinsamer Rastercontainer – inklusive optionalem Gutenberg-Wrapper */
.ms-info-cards,
.ms-info-cards > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

/* Vorder- und Rückseiten in derselben Rasterfläche */
.ms-info-cards .ms-info-fronts,
.ms-info-cards .ms-info-backs {
    grid-area: 1 / 1;
    min-width: 0;
    margin-block: 0;
    align-self: stretch;
    min-height: 0;
}

/* JavaScript aktiviert die Sichtbarkeit einzelner Rückseiten. */
.ms-info-cards .ms-info-backs {
    visibility: hidden;
    pointer-events: none;
}

.ms-info-cards .ms-info-card-front.is-inactive,
.ms-info-cards .ms-info-front.is-inactive {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

.ms-info-cards .ms-info-card-back {
    opacity: 0;
}

.ms-info-cards .ms-info-card-back.is-active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

/* Desktop: Kadence-Spalten und Karten füllen die gemeinsame Höhe. */
.ms-info-cards .ms-info-fronts > .kt-row-column-wrap,
.ms-info-cards .ms-info-backs > .kt-row-column-wrap {
    height: 100%;
    align-items: stretch;
}

.ms-info-cards .ms-info-card-front,
.ms-info-cards .ms-info-front,
.ms-info-cards .ms-info-card-back {
    height: 100%;
    box-sizing: border-box;
    transition: opacity .2s ease;
}

/* Der Medienbereich ist der Positionsanker des Plus-Buttons. */
.ms-info-card-media {
    position: relative;
    margin-bottom: 0;
}

.ms-info-card-media .wp-block-image,
.ms-info-card-media .wp-block-kadence-image {
    margin-bottom: 0;
}

/* Gleich gestaltete Plus-/Schließen-Schaltflächen */
.ms-info-card-media .ms-info-card-open,
.ms-info-card-back .ms-info-card-close {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #465b7c;
    color: #ffffff;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    z-index: 3;
    transition: background-color .2s ease;
}

.ms-info-card-media .ms-info-card-open:hover,
.ms-info-card-back .ms-info-card-close:hover {
    background: #5a7196;
}

.ms-info-card-media .ms-info-card-open:focus-visible,
.ms-info-card-back .ms-info-card-close:focus-visible {
    outline: 3px solid #465b7c;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .ms-info-cards .ms-info-card-front,
    .ms-info-cards .ms-info-front,
    .ms-info-cards .ms-info-card-back {
        transition: none;
    }
}

/* Mobil: identische einspaltige Raster; JS legt gleiche Zeilenhöhen fest. */
@media (max-width: 767px) {
    .ms-info-cards .ms-info-fronts .kt-row-column-wrap,
    .ms-info-cards .ms-info-backs .kt-row-column-wrap {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
        align-content: start;
        align-items: stretch;
    }

    .ms-info-cards .ms-info-fronts .wp-block-kadence-column,
    .ms-info-cards .ms-info-backs .wp-block-kadence-column {
        height: 100%;
        min-height: 0;
        align-self: stretch;
        box-sizing: border-box;
    }

    /* Auf diesem Kadence-Innencontainer liegen Hintergrund und Rundungen. */
    .ms-info-cards .ms-info-fronts .kt-inside-inner-col,
    .ms-info-cards .ms-info-backs .kt-inside-inner-col {
        height: 100%;
        min-height: 0;
        box-sizing: border-box;
    }

    /* Entscheidende zuletzt getestete Regel für die Rückseitenfläche. */
    .ms-info-cards .ms-info-backs
    .ms-info-card-back > .kt-inside-inner-col {
        flex: 1 1 auto;
        min-height: 100%;
        height: 100%;
        box-sizing: border-box;
    }

    .ms-info-cards .ms-info-card-front,
    .ms-info-cards .ms-info-front {
        min-height: 0;
    }

    .ms-info-cards .ms-info-card-back {
        position: relative;
        min-height: 100%;
    }
}

/* mySurgery – Randbildende OP-Galerie in Themenkacheln */

.ms-op-gallery-card .ms-op {
    margin-top: 0;
    padding: 0;
}


/* ==========================================
   mySurgery – OP-Teaser auf Themenseiten
   ========================================== */

/* Beschreibung der Operationsschritte ausblenden */
.ms-op-gallery-card .ms-op-notes {
    display: none;
}

/* Unteren Abstand der Galerie entfernen */
.ms-op-gallery-card .ms-op {
    margin: 0;
    padding: 0;
}

/* mySurgery – CED Akkordeon */

.ms-accordion .kt-accordion-pane {
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* mySurgery Kartenkarussell – Plus- und Schließen-Icons kreisrund */

.mscc .mscc-card__more,
.mscc .mscc__modal-close {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    box-sizing: border-box;
}

/* =========================================================
   mySurgery – Sanfte Seitenübergänge
   Cross-Document View Transitions
   ========================================================= */

@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.12s;
    animation-timing-function: ease-in-out;
}

/* ========================================
   mySurgery – Account-Button im Header
   ======================================== */

/* Gemeinsame Gestaltung */
.main-navigation .ms-account-link > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 20px !important;
    border: 1px solid #465b7c;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .2s ease,
                color .2s ease,
                border-color .2s ease;
}

/* Nicht angemeldet: gefüllter Button */
.main-navigation .ms-account-logged-out > a {
    background: #465b7c;
    color: #ffffff !important;
}

.main-navigation .ms-account-logged-out > a:hover,
.main-navigation .ms-account-logged-out > a:focus-visible {
    background: #344862;
    border-color: #344862;
    color: #ffffff !important;
}

/* Angemeldet: Outline-Button */
.main-navigation .ms-account-logged-in > a {
    background: #ffffff;
    color: #465b7c !important;
}

.main-navigation .ms-account-logged-in > a:hover,
.main-navigation .ms-account-logged-in > a:focus-visible {
    background: #f5f5f7;
    color: #465b7c !important;
}

/* Sichtbarer Tastaturfokus */
.main-navigation .ms-account-link > a:focus-visible {
    outline: 2px solid #465b7c;
    outline-offset: 3px;
}

/* Mobile Navigation */
.mobile-navigation .ms-account-link > a {
    display: inline-flex;
    width: auto;
    margin: 8px 0;
    padding: 10px 20px !important;
    border: 1px solid #465b7c;
    border-radius: 8px;
    font-weight: 600;
}

.mobile-navigation .ms-account-logged-out > a {
    background: #465b7c;
    color: #ffffff !important;
}

.mobile-navigation .ms-account-logged-in > a {
    background: #ffffff;
    color: #465b7c !important;
}

@media (prefers-reduced-motion: reduce) {
    .main-navigation .ms-account-link > a {
        transition: none;
    }
}
/* mySurgery – Abstand des Account-Buttons zur Navigation */
@media (min-width: 1025px) {
    .main-navigation .ms-account-link {
        margin-left: 20px;
    }
}

/* mySurgery – Apple-inspirierte Scroll-Reveal-Animation */

/* Nur bei aktiviertem JavaScript zunächst ausblenden */
html.ms-reveal-ready .ms-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Sichtbar, sobald das Element im Viewport ist */
html.ms-reveal-ready .ms-reveal.ms-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Zweiter Button folgt leicht verzögert */
html.ms-reveal-ready .ms-reveal-delay {
    transition-delay: 150ms;
}

/* Barrierefreiheit: reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
    html.ms-reveal-ready .ms-reveal {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

/* mySurgery Mini-Dashboard 2.2
   Vollständiger Ersatz aller bisherigen .msdash-Styles.
   Der äußere Kadence-Row-Block stellt die weiße Kachel dar. */
.msdash-v2 {
  --msdash-blue: #465b7c;
  --msdash-muted: #737b88;
  --msdash-line: #e5e7eb;
  color: #303030;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.msdash-v2 *, .msdash-v2 *::before, .msdash-v2 *::after { box-sizing: border-box; }
.msdash-v2-header { margin-bottom: 46px; }
.msdash-v2-header h2 {
  color: #232d3b;
  font-size: clamp(25px, 2.8vw, 36px);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 10px;
}
.msdash-v2-header p { color: var(--msdash-blue); margin: 0; }

/* Gemeinsames Grid: zweite Zeile hält beide Buttons immer auf gleicher Höhe. */
.msdash-v2-grid {
  display: grid;
  grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
  grid-template-areas:
    'content-left content-right'
    'action-left action-right';
  column-gap: 32px;
  row-gap: 28px;
  align-items: start;
}
.msdash-v2-left { grid-area: content-left; min-width: 0; }
.msdash-v2-right { grid-area: content-right; min-width: 0; }
.msdash-v2-action-left { grid-area: action-left; min-width: 0; }
.msdash-v2-action-right { grid-area: action-right; min-width: 0; }
.msdash-v2 h3.msdash-section-title {
  color: var(--msdash-blue);
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.msdash-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.msdash-progress-percent { white-space: nowrap; text-align: right; }
.msdash-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: var(--msdash-line);
  overflow: hidden;
  margin-bottom: 34px;
}
.msdash-progress-fill { background: var(--msdash-blue); height: 100%; border-radius: inherit; }
.msdash-course-head { display: flex; align-items: center; gap: 22px; min-width: 0; }
.msdash-course-description { flex: 1 1 0%; min-width: 0; }
.msdash-v2 h4.msdash-course-title {
  color: #303030;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 8px;
}
.msdash-lesson { color: var(--msdash-muted); margin: 0 0 14px; }
.msdash-course-description p:not(.msdash-lesson) { margin: 12px 0 0; }
.msdash-course-image {
  flex: 0 0 250px;
  width: 250px;
  height: 250px;
  max-width: 48%;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.msdash-course-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Kadence Galerie im neuen Nutzerzustand */
.msdash-start-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-width: 0;
}
.msdash-start-copy, .msdash-start-gallery { min-width: 0; }
.msdash-start-copy h3.msdash-section-title { margin-bottom: 14px; }
.msdash-start-copy p { margin: 0; }
.msdash-start-gallery { width: 100%; max-width: 100%; overflow: hidden; }
.msdash-start-gallery .wp-block-kadence-advancedgallery,
.msdash-start-gallery .kb-gallery-wrap-id,
.msdash-start-gallery .kb-gallery-ul,
.msdash-start-gallery .splide { max-width: 100%; min-width: 0; }

/* Unterschiedliche Ausrichtung abhängig vom Lernstatus.
   Aktiv: H3 oben; Diagramm mittig auf Höhe des Kursbildes.
   Kein aktiver Kurs: H3 + Diagramm gemeinsam mittig zur Galerie.
   Die Aktionsbuttons liegen separat im gemeinsamen Grid unten. */
.msdash-v2-right {
  min-width: 0;
  align-self: stretch;
  height: auto;
  transform: none;
}
.msdash-v2-right > h3.msdash-section-title { margin: 0; }

@media (min-width: 1025px) {
  .msdash-v2--active .msdash-v2-right {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
  }
  .msdash-v2--active .msdash-v2-right-body {
    display: flex;
    align-items: center;
    padding-top: 42px;
    margin: 0;
    min-width: 0;
  }
  .msdash-v2--empty .msdash-v2-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 22px;
  }
  .msdash-v2--empty .msdash-v2-right-body {
    margin: 0;
    min-width: 0;
  }
}
.msdash-ring-row { display: flex; align-items: center; gap: 18px; min-width: 0; margin-top: 0; }
.msdash-ring {
  flex: 0 0 148px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: conic-gradient(var(--msdash-blue) var(--msdash-pct), var(--msdash-line) 0);
  display: grid;
  place-items: center;
}
.msdash-ring-inner {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: #fff;
}
.msdash-ring-inner strong { color: var(--msdash-blue); font-size: 27px; font-weight: 600; font-variant-numeric: tabular-nums; }
.msdash-ring-caption { display: flex; flex-direction: column; gap: 5px; color: var(--msdash-muted); line-height: 1.4; }
.msdash-ring-caption strong { color: #303030; font-size: 21px; font-weight: 600; white-space: nowrap; }

/* Einheitliche Buttons im gleichen CSS-Grid-Row */
.msdash-v2 .msdash-button, .msdash-v2 .msdash-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--msdash-blue);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.msdash-v2 .msdash-button-primary, .msdash-v2 .msdash-button-primary:visited { background: var(--msdash-blue); color: #fff; }
.msdash-v2 .msdash-button-primary:hover, .msdash-v2 .msdash-button-primary:focus-visible { background: #344862; color: #fff; border-color: #344862; }
.msdash-v2 .msdash-button-outline, .msdash-v2 .msdash-button-outline:visited { background: #fff; color: var(--msdash-blue); }
.msdash-v2 .msdash-button-outline:hover, .msdash-v2 .msdash-button-outline:focus-visible { background: #f5f5f7; color: var(--msdash-blue); }
.msdash-v2 .msdash-button:focus-visible { outline: 2px solid var(--msdash-blue); outline-offset: 3px; }

/* Tablet: Spalten stapeln, Aktionen unmittelbar unter dem jeweiligen Inhalt. */
@media (max-width: 1024px) {
  .msdash-v2-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'content-left' 'action-left' 'content-right' 'action-right';
    row-gap: 20px;
  }
  .msdash-v2-action-left { margin-bottom: 24px; }
  .msdash-v2-header { margin-bottom: 30px; }
  .msdash-v2-right {
    display: block;
    transform: none;
  }
  .msdash-v2-right-body,
  .msdash-v2--empty .msdash-v2-right-body {
    margin-top: 24px;
    padding-top: 0;
  }
  .msdash-course-image { flex-basis: 220px; width: 220px; height: 220px; }
  .msdash-start-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .msdash-v2-header { margin-bottom: 25px; }
  .msdash-course-head { flex-direction: column-reverse; align-items: stretch; gap: 18px; }
  .msdash-course-description { flex: auto; }
  .msdash-course-image { flex: none; width: min(250px, 100%); max-width: 100%; height: auto; aspect-ratio: 1; }
  .msdash-start-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .msdash-start-gallery { max-width: min(340px, 100%); }
  .msdash-ring-row { flex-wrap: wrap; gap: 16px; }
  .msdash-ring { flex-basis: 124px; width: 124px; height: 124px; }
  .msdash-ring-inner { width: 98px; height: 98px; }
  .msdash-ring-inner strong { font-size: 23px; }
  .msdash-ring-caption strong { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .msdash-v2 .msdash-button { transition: none; }
}



/* mySurgery – gestaffelte Scroll-Reveal-Animationen */

html.ms-reveal-ready .ms-reveal-delay-1 {
    transition-delay: 0ms;
}

html.ms-reveal-ready .ms-reveal-delay-2 {
    transition-delay: 120ms;
}

html.ms-reveal-ready .ms-reveal-delay-3 {
    transition-delay: 240ms;
}

html.ms-reveal-ready .ms-reveal-delay-4 {
    transition-delay: 360ms;
}

@media (prefers-reduced-motion: reduce) {
    html.ms-reveal-ready .ms-reveal-delay-1,
    html.ms-reveal-ready .ms-reveal-delay-2,
    html.ms-reveal-ready .ms-reveal-delay-3,
    html.ms-reveal-ready .ms-reveal-delay-4 {
        transition-delay: 0ms;
    }
}
/* mySurgery – Feature-Demo v0.3: ersetzt den bisherigen v0.2-CSS-Block */
.wp-block-video.ms-feature-demo,
.ms-feature-demo {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #fff;
}
.ms-feature-demo video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}
/* Standard: dunkles Blau auf hellem Video */
.ms-feature-demo .ms-feature-demo__replay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #465b7c;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .14);
  transition: opacity .25s ease, box-shadow .2s ease;
  opacity: 1;
}
.ms-feature-demo .ms-feature-demo__replay svg {
  width: 20px;
  height: 20px;
  display: block;
  flex: none;
}
.ms-feature-demo .ms-feature-demo__replay:hover {
  background: #465b7c;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .23);
}
.ms-feature-demo .ms-feature-demo__replay:focus-visible {
  outline: 3px solid #8fb5e4;
  outline-offset: 3px;
}
.ms-feature-demo .ms-feature-demo__replay[hidden] { display: none !important; }
/* Optional: auf dunklen Videos weisser Button mit blauem Icon */
.ms-feature-demo.ms-feature-demo--light .ms-feature-demo__replay,
.ms-feature-demo.ms-feature-demo--light .ms-feature-demo__replay:hover {
  background: #fff;
  color: #465b7c;
}
@media (prefers-reduced-motion: reduce) {
  .ms-feature-demo .ms-feature-demo__replay { transition: none; }
}
/* Feature Showcase – Replay-Button zentrieren */

.msfs .msfs__replay,
.msfs .msfs-replay,
.msfs .ms-feature-replay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.msfs .msfs__replay svg,
.msfs .msfs-replay svg,
.msfs .ms-feature-replay svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* mySurgery Feature Showcase – gleiche Kachelhöhen */

.msfs .msfs__track {
    align-items: stretch;
}

.msfs .msfs__slide {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.msfs .msfs__slide > .wp-block-kadence-rowlayout,
.msfs .msfs__slide > .wp-block-group {
    flex: 1 1 auto;
    height: 100%;
    box-sizing: border-box;
}


/* mySurgery – Registrierungsband: Trennlinien */

.ms-band-divider {
    position: relative;
    border-right: none !important;
}

.ms-band-divider::after {
    content: "";
    position: absolute;

    /* Mitte des 100px-Spaltenabstands */
    right: -50px;

    /* Vertikal zentriert */
    top: 50%;
    transform: translateY(-50%);

    /* Höhe der Kursfortschritts-Grafik */
    height: 150px;
    width: 1px;

    background: #C8D3E2;
    pointer-events: none;
}

/* Tablet und Smartphone */
@media (max-width: 1024px) {
    .ms-band-divider::after {
        display: none;
    }
}

/* Tutor LMS – lokal gehostete mySurgery-Typografie */
.tutor-lms,
.tutor-wrap,
.tutor-learning-page,
.tutor-dashboard {
    font-family: 'Open Sans', Arial, sans-serif;
}
/* mySurgery – Seitentitel im Tutor-LMS-Kursarchiv ausblenden */
body.post-type-archive-courses .entry-hero {
    display: none;
}

/* mySurgery – Mobile Navigation: Schrifthierarchie */
@media (max-width: 1024px) {

  /* Ebene 1: Fachbereiche */
  #mobile-drawer .mobile-navigation ul.menu > li > a,
  #mobile-drawer .mobile-navigation ul.menu > li > .drawer-nav-drop-wrap > a {
    font-weight: 700 !important;
  }

  /* Ebene 2: Viszeralchirurgie, Gefäßchirurgie usw. */
  #mobile-drawer .mobile-navigation ul.menu > li > ul.sub-menu > li > a,
  #mobile-drawer .mobile-navigation ul.menu > li > ul.sub-menu > li > .drawer-nav-drop-wrap > a {
    font-weight: 700 !important;
  }

  /* Ebene 3: Themenkomplexe */
  #mobile-drawer .mobile-navigation ul.menu > li > ul.sub-menu > li > ul.sub-menu > li > a,
  #mobile-drawer .mobile-navigation ul.menu > li > ul.sub-menu > li > ul.sub-menu > li > .drawer-nav-drop-wrap > a {
    font-weight: 600 !important;
  }

  /* Ebene 4: Einzelne Themenseiten */
  #mobile-drawer .mobile-navigation ul.menu > li > ul.sub-menu > li > ul.sub-menu > li > ul.sub-menu a {
    font-weight: 400 !important;
  }
}
/* mySurgery Feature Showcase – gleiche Kachelhöhen */

.msfs__track {
  align-items: stretch;
}

.msfs__slide {
  display: flex;
  flex-direction: column;
}

.msfs__slide > .wp-block-kadence-rowlayout {
  flex: 1;
}

/* mySurgery Feature Showcase – einheitliche Kachelhöhe */

.msfs__track {
    align-items: stretch;
}

.msfs__slide {
    display: flex;
    flex-direction: column;
}

.msfs__slide > .wp-block-kadence-rowlayout {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.msfs__slide > .wp-block-kadence-rowlayout
> .kt-row-column-wrap {
    flex: 1;
}

.msfs__slide > .wp-block-kadence-rowlayout
> .kt-row-column-wrap > .wp-block-kadence-column {
    display: flex;
    flex-direction: column;
}

.msfs__slide > .wp-block-kadence-rowlayout
> .kt-row-column-wrap > .wp-block-kadence-column
> .kt-inside-inner-col {
    flex: 1;
}

/* ==========================================
   mySurgery – Informationsmenü
   ========================================== */

/* Dropdown-Container */
.header-navigation .mysurgery-info-menu > .sub-menu {
    background: #ffffff !important;
    border: 1px solid #e1e3e7 !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 10px !important;
    min-width: 260px;
}

/* Menüeinträge */
.header-navigation .mysurgery-info-menu .sub-menu li {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

/* Menülinks */
.header-navigation .mysurgery-info-menu .sub-menu li > a {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px !important;
    font-weight: 400;
    line-height: 1.5;
    color: #303030 !important;
    background: transparent !important;
    padding: 10px 14px !important;
    border: none !important;
    border-left: 3px solid transparent !important;
    transition: background-color 0.15s ease,
                color 0.15s ease;
}

/* Hover und Tastaturfokus */
.header-navigation .mysurgery-info-menu .sub-menu li > a:hover,
.header-navigation .mysurgery-info-menu .sub-menu li > a:focus-visible {
    background: #e7ecf3 !important;
    color: #465b7c !important;
}

/* Aktuell aufgerufene Seite */
.header-navigation .mysurgery-info-menu .sub-menu li.current-menu-item > a {
    background: #e7ecf3 !important;
    color: #465b7c !important;
    border-left-color: #465b7c !important;
    font-weight: 600;
}
