

/*
    ====================================
    NATIVE LOOK (only active with class="p11-mobile")
    ====================================

    Use when native appearance is needed
    ------------------------------------
    <!-- WASM Blazor Capacitor / MAUI Blazor -->
    <html lang="en" class="p11-mobile">

    Use when a native look is not needed
    ------------------------------------
    <!-- Blazor Server / Blazor Wpf -->
    <html lang="en">

 */

:root {
    /* DEFAULT CONFIGURATION */
    --p11-bottom-fix: 0px;
    --p11-padding-footer-fix: 0px;
    --p11-margin-footer-fix: 0px;
    --p11-height-footer-fix: 0px;
    --p11-padding-app-fix: 0px;
    --p11-margin-app-fix: 0px;
    --p11-safe-area-top: env(safe-area-inset-top, 0px);
    --p11-safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --p11-main-padding-bottom: 0px;
    --p11-swipe-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --p11-overlay-bg: #000000;
    --p11-overlay-max-opacity: 0.5;
}

/* 1. GLOBAL BASE - VIEWPORT FIXATION */
html.p11-mobile,
html.p11-mobile body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden !important; /* Prevents layout expansion */
    position: fixed;
    inset: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
    box-sizing: border-box;
}

    html.p11-mobile body {
        display: flex;
        flex-direction: column;
        -webkit-user-select: none;
        user-select: none;
        -webkit-font-smoothing: antialiased;
    }

/* 2. THE SWIPE CONTAINER (#app) */
.p11-mobile .modal.show,
.p11-mobile #app {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: transform var(--p11-swipe-transition);
    will-change: transform;
    overflow-y: hidden;
    /* Respect Safe Areas */
    /*padding-top: var(--p11-safe-area-top);
    padding-bottom: var(--p11-safe-area-bottom);*/
    padding-top: calc(var(--p11-safe-area-top) + var(--p11-padding-app-fix));
    padding-bottom: calc(var(--p11-safe-area-bottom) + var(--p11-padding-app-fix));
    box-sizing: border-box;
}

/* 6. FOOTER & NAVIGATION */
.p11-mobile footer,
.p11-mobile .footer,
.p11-mobile .fixed-bottom {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Combined fix for dynamic logic and Safe Areas */
    bottom: var(--p11-bottom-fix);
    /*padding-bottom: var(--p11-padding-footer-fix);
    margin-bottom: var(--p11-margin-footer-fix);*/
    min-height: calc(var(--p11-safe-area-bottom) + var(--p11-height-footer-fix));
}

/* 3. INTERACTION */
.p11-mobile input,
.p11-mobile textarea,
.p11-mobile [contenteditable="true"],
.p11-mobile .selectable {
    -webkit-user-select: text;
    user-select: text;
}

.p11-mobile button,
.p11-mobile .btn,
.p11-mobile [role="button"] {
    touch-action: manipulation;
    cursor: pointer;
}

/* 4. SCROLL AREAS */
.p11-mobile main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    padding-top: 0px;
    padding-bottom: var(--p11-main-padding-bottom);
}

.p11-mobile .scrollable,
.p11-mobile .overflow-auto,
.p11-mobile .overflow-y-auto {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

/* 5. SYSTEM & SAFE AREAS */
.p11-mobile .status-bar-safe-area {
    position: fixed;
    top: 0;
    height: var(--p11-safe-area-top);
    z-index: 10000;
    pointer-events: none;
}

/* 7. MODALS & OVERLAYS */
.p11-mobile .modal,
.p11-mobile .modal-backdrop {
    top: 0 !important;
    padding-top: 0 !important;
}

.p11-mobile #p11-swipe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--p11-overlay-bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease-out;
    z-index: -1;
    box-sizing: border-box;
}

/* BLAZOR ERROR UI */
.p11-mobile #blazor-error-ui {
    background: #fff3cd;
    color: #856404;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    z-index: 20000;
    padding: 0.75rem 1.25rem;
}

    .p11-mobile #blazor-error-ui.show {
        display: block !important;
    }

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



/*
   ====================================
   P11AccordionNative
   ====================================
 */

/* Haupt-Panel-Container */
.p11-accordion-nativ {
    border-color: var(--p11-accordion-border-color);
    border-radius: var(--p11-accordion-border-radius);
    box-shadow: var(--p11-accordion-shadow);
}

/* Header-Bereich */
.p11-accordion-nativ > summary {
    background-color: var(--p11-accordion-header-bg);
    color: var(--p11-accordion-header-color);
    padding: var(--p11-accordion-header-padding);
}

    /* Titel-Text */
    .p11-accordion-nativ > summary .fw-bold {
        font-weight: var(--p11-accordion-title-font-weight);
        font-size: var(--p11-accordion-title-size);
    }

/* Inhaltsbereich */
.p11-accordion-nativ > div {
    background-color: var(--p11-accordion-content-bg);
    color: var(--p11-accordion-content-color);
    padding: var(--p11-accordion-content-padding);
}

/* Das Icon im Header */
.native-accordion-icon {
    color: var(--p11-accordion-icon-color);
}


/* MINIMAL CUSTOM CSS: Hide the native disclosure marker of the summary element.
                This is essential as Bootstrap doesn't provide a class for this, and we want to use our own icon. */
details > summary::-webkit-details-marker {
    display: none;
}

details > summary::marker { /* Standard syntax for the native marker */
    display: none;
}

/* Rotate the custom Bootstrap Icon based on the native details 'open' attribute. */
details[open] .native-accordion-icon {
    transform: rotate(-180deg);
    transition: transform 0.2s ease-in-out; /* Smooth rotation */
}

details:not([open]) .native-accordion-icon {
    transform: rotate(0deg);
    transition: transform 0.2s ease-in-out; /* Smooth rotation */
}

/* Ensure the summary has a pointer cursor to indicate it's clickable */
summary {
    cursor: pointer;
}

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



/*
   ====================================
   P11DrawerNative
   ====================================
 */

/* P11DrawerNative.razor.css */

/* Base drawer styles */
.p11-drawer {
    position: fixed;
    background-color: var(--p11-drawer-bg);
    box-shadow: var(--p11-drawer-shadow);
    transition: transform var(--p11-drawer-transition-duration) ease-in-out;
    /*z-index: var(--p11-drawer-z-index);*/
    display: flex;
    flex-direction: column;
    pointer-events: none;
    visibility: hidden;
    touch-action: pan-y;
}

/* Open states */
.p11-drawer--open {
    transform: translateX(0) translateY(0) !important;
    pointer-events: auto;
    visibility: visible;
}

/* Positioning - Left */
.p11-drawer--left {
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--p11-drawer-width);
    transform: translateX(-100%);
}

    .p11-drawer--left.p11-drawer--open {
        transform: translateX(0);
    }

/* Positioning - Right */
.p11-drawer--right {
    top: 0;
    right: 0;
    left: auto;
    height: 100vh;
    width: var(--p11-drawer-width);
    transform: translateX(100%);
}

    .p11-drawer--right.p11-drawer--open {
        transform: translateX(0);
    }

/* Positioning - Top */
.p11-drawer--top {
    top: 0;
    left: 0;
    width: 100vw;
    height: var(--p11-drawer-height);
    transform: translateY(-100%);
}

    .p11-drawer--top.p11-drawer--open {
        transform: translateY(0);
    }

/* Positioning - Bottom */
.p11-drawer--bottom {
    bottom: 0;
    left: 0;
    top: auto;
    width: 100vw;
    height: var(--p11-drawer-height);
    transform: translateY(100%);
    touch-action: pan-x;
}

    .p11-drawer--bottom.p11-drawer--open {
        transform: translateY(0);
        touch-action: pan-x;
    }

/* Drawer content */
.p11-drawer-content {
    padding: var(--p11-drawer-padding);
    overflow-y: auto;
    flex-grow: 1;
}

/* Drawer title */
.p11-drawer-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: var(--p11-drawer-title-font-size);
    font-weight: var(--p11-drawer-title-font-weight);
}

/* Close button */
.p11-drawer-close-btn {
    position: absolute;
    top: var(--p11-drawer-close-top-offset);
    right: var(--p11-drawer-close-right-offset);
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--p11-drawer-close-color);
    cursor: pointer;
    padding: 0;
    opacity: 0.5;
    transition: opacity var(--p11-drawer-transition-duration) ease-in-out;
    z-index: 1;
}

    .p11-drawer-close-btn:hover {
        opacity: var(--p11-drawer-close-hover-opacity);
    }

/* Overlay styles */
.p11-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--p11-drawer-overlay-bg);
    opacity: 0;
    transition: opacity var(--p11-drawer-transition-duration) ease-in-out;
}

.p11-drawer--open + .p11-drawer-overlay {
    opacity: 1;
}

/* Development warning */
.p11-drawer-dev-warning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    z-index: 9999;
    border: 2px solid var(--bs-danger, #dc3545);
}

.p11-drawer--fullscreen {
    /* Setzt die Größe auf den gesamten Viewport */
    width: 100vw;
    height: 100vh;
    /* Positioniert den Drawer explizit am oberen linken Rand */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Deaktiviert die transform-Logik der Standard-Positionen */
    transform: none;
}


.p11-drawertest--fullscreen {
    padding: 0 5px !important;
}

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



/*
   ====================================
   P11Dropdown
   ====================================
 */

/* Overlay covers the whole screen but stays BELOW the dropdown */
.p11-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9990; /* Below the panels */
    background: transparent;
    cursor: default;
}

/* Ensure the container is the reference point for positioning */
.dropdown.p11-dropdown {
    position: relative;
}

/* Override Bootstrap default to allow custom positioning classes */
.dropdown-menu.p11-dropdown-menu {
    position: absolute;
    /* Display: block is needed because we control visibility via Bootstrap's .show class */
}

/* Positioning classes using the p11- prefix */
.p11-dropdown-topstart {
    bottom: 100%;
    top: auto;
    left: 0;
    right: auto;
    margin-bottom: 0.25rem;
}

.p11-dropdown-topcenter {
    bottom: 100%;
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin-bottom: 0.25rem;
}

.p11-dropdown-topend {
    bottom: 100%;
    top: auto;
    left: auto;
    right: 0;
    margin-bottom: 0.25rem;
}

.p11-dropdown-bottomstart {
    top: 100%;
    bottom: auto;
    left: 0;
    right: auto;
    margin-top: 0.25rem;
}

.p11-dropdown-bottomcenter {
    top: 100%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin-top: 0.25rem;
}

.p11-dropdown-bottomend {
    top: 100%;
    bottom: auto;
    left: auto;
    right: 0;
    margin-top: 0.25rem;
}

.p11-dropdown-bottom {
    top: 100%;
    bottom: auto;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
}

.p11-dropdown-left {
    top: 0;
    bottom: auto;
    right: 100%;
    left: auto;
    margin-right: 0.25rem;
}

.p11-dropdown-right {
    top: 0;
    bottom: auto;
    left: 100%;
    right: auto;
    margin-left: 0.25rem;
}

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



/*
   ====================================
   P11FloatingPanel
   ====================================
 */

/*
     * Central variables for the entire panel.
     * These are now defined in your ThemeStyle component and can be overridden.
     */
.p11-floating-panel {
    /* Using the variables */
    background-color: var(--p11-panel-bg);
    border: var(--p11-panel-border);
    box-shadow: var(--p11-panel-shadow);
    /* min-width: var(--p11-panel-min-width); */
    border-radius: var(--p11-panel-border-radius);
    /* Static properties that don't need to be adjusted */
    position: absolute;
    text-align: left;
    display: block;
    overflow: hidden;
    touch-action: none;
    -ms-touch-action: none;
    transition: z-index 0.1s ease-in-out;
}

/*
     * Header section.
     */
.p11-floating-panel-header {
    /* Using the variables */
    padding: var(--p11-panel-header-padding);
    background-color: var(--p11-panel-header-bg);
    color: var(--p11-panel-header-color);
    border-top-left-radius: var(--p11-panel-header-radius);
    border-top-right-radius: var(--p11-panel-header-radius);
    /* Static properties */
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none; /* Verhindert Textmarkierung beim Ziehen */
    -webkit-user-select: none;
}

    .p11-floating-panel-header:active {
        cursor: grabbing;
    }

/*
     * Title section
     */
.p11-floating-panel-title {
    /* Using the variables */
    font-weight: var(--p11-panel-title-weight);
    font-size: var(--p11-panel-title-size);
    /* Static properties */
    flex-grow: 1;
}

/*
     * Close button
     */
.p11-floating-panel-close {
    /* Using the variables */
    color: var(--p11-panel-close-color);
    margin-left: var(--p11-panel-close-margin-left);
    /* Static properties */
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-size: 16px;
    opacity: 0.8;
}

    .p11-floating-panel-close:hover {
        color: var(--p11-panel-close-hover-color);
        opacity: 1;
    }

/*
     * Content section
     */
.p11-floating-panel-content {
    /* Using the variables */
    background-color: var(--p11-panel-content-bg);
    color: var(--p11-panel-content-color);
    font-size: var(--p11-panel-content-size);
    padding: var(--p11-panel-content-padding);
    /* Static properties */
    text-align: left;
    /* max-width: 300px; */
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

.p11-floating-panel-resize-handle {
    background: transparent;
    transition: color 0.2s;
}

    .p11-floating-panel-resize-handle:hover svg {
        color: #666 !important; /* Wird dunkler beim Drüberfahren */
    }
/* ==================================== */



/*
   ====================================
   P11HoverEffect
   ====================================
 */

/* base: animate child (or wrapper) smoothly */
.p11-hover-wrapper > * {
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease, border-color 0.28s ease;
    will-change: transform, box-shadow, filter, border;
}

/* SCALE: either on :hover OR if the class p11-hover-active is present */
.p11-hover-wrapper.p11-effect-scale:hover > *,
.p11-hover-wrapper.p11-effect-scale.p11-hover-active > * {
    transform: scale(1.03);
}

/* SHADOW LIFT */
.p11-hover-wrapper.p11-effect-shadow-lift:hover > *,
.p11-hover-wrapper.p11-effect-shadow-lift.p11-hover-active > * {
    box-shadow: var(--bs-box-shadow-lg) !important;
}

/* SCALE + SHADOW */
.p11-hover-wrapper.p11-effect-scale-and-shadow:hover > *,
.p11-hover-wrapper.p11-effect-scale-and-shadow.p11-hover-active > * {
    transform: scale(1.03);
    box-shadow: var(--bs-box-shadow-lg) !important;
}

/* BORDER GLOW */
.p11-hover-wrapper.p11-effect-border-glow:hover > *,
.p11-hover-wrapper.p11-effect-border-glow.p11-hover-active > * {
    box-shadow: 0 0 0.5rem 0.2rem rgba(var(--bs-primary-rgb), 0.5) !important;
    border-color: var(--bs-primary) !important;
}

/* QUICK TILT - HIGH SPECIFICITY */
.p11-hover-wrapper.p11-effect-quick-tilt:hover > *,
.p11-hover-wrapper.p11-effect-quick-tilt.p11-hover-active > * {
    transform: perspective(500px) rotateY(5deg) !important;
}

/* QUICK TILT EXTRA SPECIFICITY FOR IMAGES */
.p11-hover-wrapper.p11-effect-quick-tilt:hover > img,
.p11-hover-wrapper.p11-effect-quick-tilt.p11-hover-active > img {
    transform: perspective(500px) rotateY(5deg) !important;
}

/* QUICK TILT EXTRA SPECIFICITY FOR BUTTONS */
.p11-hover-wrapper.p11-effect-quick-tilt:hover > button,
.p11-hover-wrapper.p11-effect-quick-tilt.p11-hover-active > button {
    transform: perspective(500px) rotateY(5deg) !important;
}

/* QUICK TILT LEFT */
.p11-hover-wrapper.p11-effect-quick-tilt-left:hover > *,
.p11-hover-wrapper.p11-effect-quick-tilt-left.p11-hover-active > * {
    transform: perspective(500px) rotateY(-5deg) !important;
}

/* QUICK TILT EXTRA SPECIFICITY FOR IMAGES */
.p11-hover-wrapper.p11-effect-quick-tilt-left:hover > img,
.p11-hover-wrapper.p11-effect-quick-tilt-left.p11-hover-active > img {
    transform: perspective(500px) rotateY(-5deg) !important;
}

/* QUICK TILT EXTRA SPECIFICITY FOR BUTTONS */
.p11-hover-wrapper.p11-effect-quick-tilt-left:hover > button,
.p11-hover-wrapper.p11-effect-quick-tilt-left.p11-hover-active > button {
    transform: perspective(500px) rotateY(-5deg) !important;
}

/* BRIGHTNESS PULSE */
.p11-hover-wrapper.p11-effect-brightness-pulse:hover > *,
.p11-hover-wrapper.p11-effect-brightness-pulse.p11-hover-active > * {
    filter: brightness(1.15);
}

/* BORDER FLASH */
.p11-hover-wrapper.p11-effect-border-flash:hover > *,
.p11-hover-wrapper.p11-effect-border-flash.p11-hover-active > * {
    border: 4px solid var(--bs-primary) !important;
}

/* PRESS DOWN */
.p11-hover-wrapper.p11-effect-press-down:hover > *,
.p11-hover-wrapper.p11-effect-press-down.p11-hover-active > * {
    transform: scale(0.96) translateY(2px);
    box-shadow: var(--bs-box-shadow-sm) inset !important;
}

/* BORDER BOTTOM GRADIENT SLIDE-IN */
.p11-hover-wrapper.p11-effect-border-bottom-gradient > * {
    background-image: linear-gradient(to right, var(--bs-primary) 100%, transparent 0);
    background-size: 0 3px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.p11-hover-wrapper.p11-effect-border-bottom-gradient:hover > *,
.p11-hover-wrapper.p11-effect-border-bottom-gradient.p11-hover-active > * {
    background-size: 100% 3px; /* füllt die ganze Breite */
}

/* FLIP CARD */
/* Basiscontainer für die Flip-Card */
.p11-hover-wrapper.p11-effect-flip > * {
    perspective: 1000px;
}

/* Inneres, das sich dreht */
.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Drehen bei Hover */
.p11-hover-wrapper.p11-effect-flip:hover .flip-inner,
.p11-hover-wrapper.p11-effect-flip.p11-hover-active .flip-inner {
    transform: rotateY(180deg);
}

/* Vorder- und Rückseite */
.p11-flip-front,
.p11-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

/* Rückseite wird auf 180° gespiegelt */
.p11-flip-back {
    transform: rotateY(180deg);
}

/* Rotate right */
.p11-hover-wrapper.p11-effect-rotate:hover > *,
.p11-hover-wrapper.p11-effect-rotate.p11-hover-active > * {
    transform: rotate(3deg);
}

/* Rotate left */
.p11-hover-wrapper.p11-effect-rotate-left:hover > *,
.p11-hover-wrapper.p11-effect-rotate-left.p11-hover-active > * {
    transform: rotate(-3deg);
}

/* Pulse */
.p11-hover-wrapper.p11-effect-pulse:hover > * {
    animation: p11-pulse 0.5s;
}

@keyframes p11-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/* Shake */
.p11-hover-wrapper.p11-effect-shake:hover > * {
    animation: p11-shake 0.4s;
}

@keyframes p11-shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

/* Swing */
.p11-hover-wrapper.p11-effect-swing:hover > * {
    animation: p11-swing 0.6s ease-in-out;
}

@keyframes p11-swing {
    20% {
        transform: rotate(6deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    60% {
        transform: rotate(2deg);
    }

    80% {
        transform: rotate(-2deg);
    }

    100% {
        transform: rotate(0);
    }
}

/* Skew right */
.p11-hover-wrapper.p11-effect-skew:hover > *,
.p11-hover-wrapper.p11-effect-skew.p11-hover-active > * {
    transform: skewX(5deg);
}

/* Skew left */
.p11-hover-wrapper.p11-effect-skew-left:hover > *,
.p11-hover-wrapper.p11-effect-skew-left.p11-hover-active > * {
    transform: skewX(-5deg);
}

/* Wrapper für Slide-In Effekt */
/* .p11-hover-wrapper.p11-effect-slide-in {
        position: relative;
        overflow: hidden;
    } */

/* Der zusätzliche Content (Overlay), standardmäßig versteckt */
/* .p11-hover-wrapper.p11-effect-slide-in .slide-in-content {
            position: absolute;
            bottom: -100%;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(var(--bs-dark-rgb), 0.8);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: bottom 0.4s ease;
            padding: 1rem;
            text-align: center;
        } */

/* Beim Hover sichtbar machen */
/* .p11-hover-wrapper.p11-effect-slide-in:hover .slide-in-content,
        .p11-hover-wrapper.p11-effect-slide-in.p11-hover-active .slide-in-content {
            bottom: 0;
        } */
/* Wrapper für Slide-In Effekte */
/* Wrapper für Slide-In Effekt */
.p11-hover-wrapper.p11-effect-slide-in {
    position: relative;
    overflow: hidden;
}

    /* Gemeinsame Styles für alle Slide-In Contents */
    .p11-hover-wrapper.p11-effect-slide-in .slide-in-content {
        position: absolute;
        width: 100%;
        height: 100%;
        background: rgba(var(--bs-dark-rgb), 0.8);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.4s ease;
        padding: 1rem;
        text-align: center;
    }

        /* Slide-In von UNTEN (wie bisher) */
        .p11-hover-wrapper.p11-effect-slide-in .slide-in-content.slide-from-bottom {
            bottom: -100%;
            left: 0;
        }

    .p11-hover-wrapper.p11-effect-slide-in:hover .slide-in-content.slide-from-bottom,
    .p11-hover-wrapper.p11-effect-slide-in.p11-hover-active .slide-in-content.slide-from-bottom {
        bottom: 0;
    }

    /* Slide-In von OBEN */
    .p11-hover-wrapper.p11-effect-slide-in .slide-in-content.slide-from-top {
        top: -100%;
        left: 0;
    }

    .p11-hover-wrapper.p11-effect-slide-in:hover .slide-in-content.slide-from-top,
    .p11-hover-wrapper.p11-effect-slide-in.p11-hover-active .slide-in-content.slide-from-top {
        top: 0;
    }

    /* Slide-In von RECHTS */
    .p11-hover-wrapper.p11-effect-slide-in .slide-in-content.slide-from-right {
        right: -100%;
        top: 0;
    }

    .p11-hover-wrapper.p11-effect-slide-in:hover .slide-in-content.slide-from-right,
    .p11-hover-wrapper.p11-effect-slide-in.p11-hover-active .slide-in-content.slide-from-right {
        right: 0;
    }

    /* Slide-In von LINKS */
    .p11-hover-wrapper.p11-effect-slide-in .slide-in-content.slide-from-left {
        left: -100%;
        top: 0;
    }

    .p11-hover-wrapper.p11-effect-slide-in:hover .slide-in-content.slide-from-left,
    .p11-hover-wrapper.p11-effect-slide-in.p11-hover-active .slide-in-content.slide-from-left {
        left: 0;
    }

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



/*
   ====================================
   P11MediaPlayerNative
   ====================================
 */

.p11-media-player-native-container {
    margin-bottom: 1rem;
    max-width: 800px; /* Optional: Limit max width of the container */
    margin-left: auto;
    margin-right: auto;
}

    .p11-media-player-native-container video,
    .p11-media-player-native-container audio {
        width: 100%; /* Make media element responsive within its container */
        display: block; /* Ensures no extra space below the element */
        border: 1px solid #ccc; /* Simple border */
        background-color: #000; /* Background for video before load / if no content */
    }

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



/*
   ====================================
   P11ModalNative
   ====================================
 */

/* Erhöht den Header nur, wenn er im Native-Kontext (iPhone/Android) gerendert wird */
/*.modal-header.p11-native-header {*/
    /* Fügt den Abstand zur Statusleiste oben hinzu */
    /*padding-top: calc(0.5rem + env(safe-area-inset-top, 0px)) !important;*/
    /* Optional: Falls der Header fixiert ist (p11-sticky-header) */
    /*top: 0;
    z-index: 1051;
}*/

/* Stellt sicher, dass bei Fullscreen-Modals auf Mobile nichts abgeschnitten wird */
/*.modal-fullscreen .modal-content {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}*/

/* Sticky Header Logik */
/*.p11-sticky-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: inherit;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}*/

/* Grundstruktur für die native Zentrierung */
/*.p11-native-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.75rem 1rem !important;
    border-bottom: none !important;
    min-height: 56px;
}

.p11-header-separator {
    border-bottom: 1px solid #dee2e6 !important;
}

.p11-header-left, .p11-header-right {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 60px;
}

.p11-header-right {
    justify-content: flex-end;
}

.p11-header-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.p11-modal-title-text {
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}*/

/* macOS: Ampel-Punkte */
/*.p11-btn-native-mac {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.1);
    display: inline-block;
}

.p11-mac-red {
    background-color: #ff5f56;
    border-color: #e0443e;
    cursor: pointer;
}

    .p11-mac-red:hover {
        background-color: #ff3b30;
    }

.p11-mac-green {
    background-color: #28c840;
    border-color: #24aa33;
    cursor: pointer;
}

    .p11-mac-green:hover {
        background-color: #22a835;
    }

.p11-mac-disabled {
    background-color: #e6e6e6;
    border-color: #d1d1d1;
    cursor: default;
}*/

/* Maximize Button Windows Style */
/*.p11-btn-maximize {
    background: none;
    border: none;
    padding: 0.5rem;
    margin-left: 5px;
    color: #6c757d;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s;
}

    .p11-btn-maximize:hover {
        color: #000;
    }*/

/* Mobile: Buttons (iOS Style) */
/*.p11-btn-native-mobile {
    background: none;
    border: none;
    color: #007aff;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    cursor: pointer;
    white-space: nowrap;
}

    .p11-btn-native-mobile i {
        margin-right: 4px;
        font-size: 1.4rem;
        line-height: 1;
    }*/

/* Windows Close Button Reset */
/*.p11-native-header .btn-close {
    margin: 0 0 0 10px;
    padding: 0.5rem;
}*/

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



/*
   ====================================
   P11PageNative
   ====================================
 */

/* Der äußere Rahmen bleibt stabil */
/*.p11-page-native-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: relative;
    background-color: transparent;
    touch-action: pan-y;
}

.p11-page-native-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;*/ /* Oder deine Variable */
/*}*/

/* Schatten-Effekt während des Swipes */
/*.p11-shadow-layer {*/
    /* Wir lassen den Schatten dezent an der linken Kante */
    /*box-shadow: -5px 0 15px rgba(0,0,0,0.1);*/
    /* Performance-Optimierung für die Bewegung */
    /*will-change: transform;
}*/

/* Page Body - sorgt dafür, dass der Header sticky bleibt wenn gewünscht */
/*.p11-page-native-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}*/

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



/*
   ====================================
   P11ModalNative / P11PageNative
   ====================================
 */

.p11-native-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.75rem 1rem !important;
    border-bottom: none !important;
    min-height: 56px;
    /* Safe Area Integration */
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px)) !important;
    background-color: #fff;
}

.p11-sticky-header {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.p11-header-separator {
    border-bottom: 1px solid #dee2e6 !important;
}

.p11-header-left, .p11-header-right {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 60px;
}

.p11-header-right {
    justify-content: flex-end;
}

.p11-header-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.p11-modal-title-text {
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Buttons & Icons */
.p11-btn-native-mobile {
    background: none;
    border: none;
    color: #007aff;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    cursor: pointer;
}

    .p11-btn-native-mobile i {
        font-size: 1.4rem;
        line-height: 1;
    }

/* macOS Ampel */
.p11-btn-native-mac {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.1);
    display: inline-block;
}

.p11-mac-red {
    background-color: #ff5f56;
    border-color: #e0443e;
    cursor: pointer;
}

.p11-mac-disabled {
    background-color: #e6e6e6;
    border-color: #d1d1d1;
    cursor: default;
}

/* ====================================
   P11PageNative STABILIZATION (Do not change for Swipe)
   ====================================
*/
.p11-page-native-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    position: relative;
    background-color: transparent;
    touch-action: none;
}

.p11-page-native-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    /* Schatten für den Layer-Effekt beim Swipe */
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    will-change: transform;
}

.p11-page-native-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
/* ==================================== */




/*
   ====================================
   P11SelectMultiple
   ====================================
 */

.p11-select-multiple {
    min-height: 8rem;
    resize: vertical;
    border: 1px solid var(--bs-border-color, #ced4da);
    border-radius: .375rem;
    padding: .5rem;
    background-color: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
}

    .p11-select-multiple:focus {
        border-color: var(--bs-primary);
        outline: none;
        box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb, 13, 110, 253), .25);
    }

.p11-select-multiple-wrapper {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

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



/*
   ====================================
   P11ShadowEffect
   ====================================
 */

/* P11ShadowEffect.css - FULL VERSION WITH 15 SHADOW VARIANTS AND LAYER SUPPORT */

/* ------------------------------------- */
/* 1. BASE & FALLBACK STYLES             */
/* ------------------------------------- */

.p11-shadow-wrapper {
    /* Sets the variable for color inheritance/customization. */
    --p11-shadow-color: rgba(0, 0, 0, 0.15);
}

    /* General styles for the child element (inherits variable, adds transition) */
    .p11-shadow-wrapper > * {
        transition: box-shadow 0.3s ease;
    }


/* ------------------------------------- */
/* 2. SHADOW GEOMETRY BY VARIANT & SIZE  */
/* ------------------------------------- */

/* --- Shared Shadow Mixins (using CSS variables for clean repetition) --- */
/* These variables must be redefined for each size block (small, medium, large) to allow for size-specific adjustments. */

/* === SUBTLE SHADOW === */
.p11-shadow-subtle.p11-size-small > * {
    box-shadow: 0 0.5px 1px 0 var(--p11-shadow-color);
}

.p11-shadow-subtle.p11-size-medium > * {
    box-shadow: 0 1px 3px 0 var(--p11-shadow-color), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.p11-shadow-subtle.p11-size-large > * {
    box-shadow: 0 2px 4px 0 var(--p11-shadow-color), 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

/* === MEDIUM SHADOW === */
.p11-shadow-medium.p11-size-small > * {
    box-shadow: 0 2px 4px -1px var(--p11-shadow-color), 0 1px 2px -2px rgba(0, 0, 0, 0.1);
}

.p11-shadow-medium.p11-size-medium > * {
    box-shadow: 0 4px 6px -1px var(--p11-shadow-color), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.p11-shadow-medium.p11-size-large > * {
    box-shadow: 0 8px 10px -3px var(--p11-shadow-color), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* === LIFTED SHADOW === */
.p11-shadow-lifted.p11-size-small > * {
    box-shadow: 0 4px 8px -1px var(--p11-shadow-color), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.p11-shadow-lifted.p11-size-medium > * {
    box-shadow: 0 10px 15px -3px var(--p11-shadow-color), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.p11-shadow-lifted.p11-size-large > * {
    box-shadow: 0 15px 25px -5px var(--p11-shadow-color), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* === INSET SHADOW === */
.p11-shadow-inset.p11-size-small > * {
    box-shadow: inset 0 1px 3px 0 var(--p11-shadow-color);
}

.p11-shadow-inset.p11-size-medium > * {
    box-shadow: inset 0 2px 4px 0 var(--p11-shadow-color);
}

.p11-shadow-inset.p11-size-large > * {
    box-shadow: inset 0 4px 8px 0 var(--p11-shadow-color);
}

/* === COLOR GLOW SHADOW === */
.p11-shadow-color-glow.p11-size-small > * {
    box-shadow: 0 0 10px 0 var(--p11-shadow-color) !important;
}

.p11-shadow-color-glow.p11-size-medium > * {
    box-shadow: 0 0 15px 0 var(--p11-shadow-color) !important;
}

.p11-shadow-color-glow.p11-size-large > * {
    box-shadow: 0 0 25px 0 var(--p11-shadow-color) !important;
}

/* ------------------------------------- */
/* NEW: POSITIONAL & MODERN VARIANTS     */
/* ------------------------------------- */

/* === TOP ONLY SHADOW === */
.p11-shadow-top-only.p11-size-medium > * {
    box-shadow: 0 -4px 6px -1px var(--p11-shadow-color); /* Only negative Y-offset */
}

/* === BOTTOM ONLY SHADOW (Softer, wider) === */
.p11-shadow-bottom-only.p11-size-medium > * {
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2); /* Use a standard dark, wide shadow */
}

/* === SHARP SHADOW (MD3-like, low blur) === */
.p11-shadow-sharp.p11-size-medium > * {
    box-shadow: 0 4px 0 0 var(--p11-shadow-color), 0 8px 0 0 rgba(0, 0, 0, 0.05); /* Two sharp layers */
}

/* === AMBIENT SHADOW (Wide, transparent, little offset) === */
.p11-shadow-ambient.p11-size-medium > * {
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.08); /* Minimal offset, high blur, low opacity */
}


/* ------------------------------------- */
/* NEW: COMPLEX & DYNAMIC VARIANTS       */
/* ------------------------------------- */

/* === Z-DEPTH SHADOW (Simulates high elevation/layering) === */
.p11-shadow-z-depth.p11-size-medium > * {
    box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

/* === DOUBLE LAYER SHADOW (Sharp contour + soft depth) === */
.p11-shadow-double-layer.p11-size-medium > * {
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), /* Sharp contour */
    0 6px 10px 0 rgba(0, 0, 0, 0.08); /* Soft depth */
}

/* === CONCAVE SHADOW (Stronger Inset) === */
.p11-shadow-concave.p11-size-medium > * {
    box-shadow: inset 0 5px 10px 0 rgba(0, 0, 0, 0.25);
}

/* === FOCUS RING SHADOW (Thin, colored outline) === */
.p11-shadow-focus-ring.p11-size-medium > * {
    box-shadow: 0 0 0 3px var(--p11-shadow-color); /* Uses spread radius as thickness */
}


/* ------------------------------------- */
/* NEW: ANIMATED & INTERACTIVE VARIANTS  */
/* ------------------------------------- */

/* === PULSE SHADOW (Requires @keyframes ) === */
.p11-shadow-pulse.p11-size-medium > * {
    /* Set base shadow */
    box-shadow: 0 4px 6px -1px var(--p11-shadow-color);
    animation: p11-pulse-shadow 2s infinite alternate;
}

@keyframes p11-pulse-shadow {
    from {
        box-shadow: 0 4px 6px -1px var(--p11-shadow-color), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    }

    to {
        box-shadow: 0 8px 10px -3px var(--p11-shadow-color), 0 4px 6px -4px rgba(0, 0, 0, 0.15);
    }
}

/* === SOFT HOVER (Only applied on interaction) === */
/* The base shadow is NONE, and the transition handles the change */
.p11-shadow-soft-hover > * {
    box-shadow: none;
}

    .p11-shadow-soft-hover:hover > *,
    .p11-shadow-soft-hover > *:hover,
    .p11-shadow-soft-hover > *:focus {
        box-shadow: 0 4px 8px -1px var(--p11-shadow-color);
    }

/* ------------------------------------- */
/* 3. CONTEXTUAL OVERRIDES (p11-shadow-layer) */
/* ------------------------------------- */

/* The p11-shadow-layer class is applied to the modal/popup wrapper div.
           This rule targets the child element of the modal (e.g., the modal-content div)
           if that child element has the p11-shadow-layer class.
           We only need to override the box-shadow for the specific element that carries the class. */

/* Generic Rule: Target the element that actually has the "p11-shadow-layer" class (your modal-content).
           We assume the modal-content is a child of the p11-shadow-wrapper. */
.p11-shadow-wrapper .p11-shadow-layer {
    /* This ensures the shadow is applied directly to the modal content.
               We use !important only if absolutely necessary to override internal modal styles. */
    box-shadow: var(--p11-final-shadow, none) !important;
    /* The modal-content itself must often define a high z-index,
               but we ensure the element carrying the shadow has the correct z-index */
}

/* Since we cannot dynamically set --p11-final-shadow in CSS,
           we must redeclare the required shadow for the p11-shadow-layer element based on the variant and size. */

/* Example using ColorGlow (reusing original logic, but targeting the 'p11-shadow-layer' element) */
.p11-shadow-wrapper.p11-shadow-color-glow.p11-size-small .p11-shadow-layer {
    box-shadow: 0 0 10px 0 var(--p11-shadow-color) !important;
}

.p11-shadow-wrapper.p11-shadow-color-glow.p11-size-medium .p11-shadow-layer {
    box-shadow: 0 0 15px 0 var(--p11-shadow-color) !important;
}

.p11-shadow-wrapper.p11-shadow-color-glow.p11-size-large .p11-shadow-layer {
    box-shadow: 0 0 25px 0 var(--p11-shadow-color) !important;
}

/* HINWEIS: This layered approach ensures that the shadow is applied to the inner element
           (like modal-content) instead of the wrapper div, which is necessary when the inner element
           already carries its own class for layering/styling. */

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



/*
   ====================================
   P11OverlayNative
   ====================================
 */

/* In deiner p11.css oder im <style> Block */
body.p11-no-scroll {
    overflow: hidden !important;
    position: fixed; /* Verhindert das "Elastic Bounce" auf iOS */
    width: 100%;
}

/* Sicherstellen, dass der Text direkt darunter klebt und Platz hat */
.p11-overlay-body .mt-4 {
    margin-top: 1rem !important;
    padding-bottom: 2rem; /* Puffer unten */
}

/* Core Wrapper */
.p11-overlay-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    outline: none;
}

/* Background Backdrop */
.p11-overlay-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9); /* Dunkler für Fokus auf Medien */
    backdrop-filter: blur(8px);
    cursor: pointer;
}

/* Container Structure */
.p11-overlay-container {
    position: relative;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    height: 100%;
    pointer-events: none;
}

    .p11-overlay-container > * {
        pointer-events: auto; /* Re-enable for header and body */
    }

/* Header Integration */
.p11-overlay-wrapper .p11-native-header {
    background-color: transparent !important;
    color: white;
    border-bottom: none !important;
}

/* Native Header Height & Safe Areas */
.p11-overlay-ios .p11-native-header,
.p11-overlay-android .p11-native-header {
    padding-top: calc(0.5rem + env(safe-area-inset-top, 0px)) !important;
}

/* Body & Scrolling (Fix for Landscape) */
.p11-overlay-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.p11-overlay-scroll-container {
    margin: auto; /* Zentriert Inhalt vertikal und horizontal */
    padding: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    /* Optimierung des Bild-Containers */
    .p11-overlay-scroll-container img {
        max-width: 100%;
        height: auto;
        /* Kalkulation: 100vh minus Header (ca. 60px) minus Textbereich (ca. 100px) */
        max-height: calc(100vh - 180px);
        object-fit: contain;
        border-radius: 4px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        display: block;
        margin: 0 auto;
    }

/* CONTRAST FIX: 
   Spezifische Farben für Navigation auf schwarzem Hintergrund 
*/

/* iOS & Android Buttons im Overlay weiss statt blau */
.p11-overlay-wrapper .p11-btn-native-mobile {
    color: #ffffff !important;
    opacity: 0.9;
    transition: opacity 0.2s;
}

    .p11-overlay-wrapper .p11-btn-native-mobile:active {
        opacity: 0.5;
    }

/* Titel-Text im Overlay weiss */
.p11-overlay-wrapper .p11-modal-title-text {
    color: #ffffff !important;
}

/* Web/Windows Close Button (X) auf Weiss invertieren */
.p11-overlay-wrapper .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    opacity: 0.8;
}

    .p11-overlay-wrapper .btn-close:hover {
        opacity: 1;
    }

/* macOS Ampel-Korrektur (optional: Rand verstärken) */
.p11-overlay-mac .p11-btn-native-mac {
    border: 1px solid rgba(255,255,255,0.2) !important;
}

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



/*
   ====================================
   P11Toast
   ====================================
 */

/* Custom Styles für P11 Toasts zur Vermeidung von Framework-Konflikten */
/* P11 Toast Mobile & Framework Safety 
   Ensures swipe works on iOS/Android without moving the background.
*/
.p11-toast {
    /* 1. Verhindert das Scrollen der Seite (Wichtig für alle mobilen Browser) */
    touch-action: none !important;
    /* 2. Verhindert Textmarkierung und das bläuliche Flackern auf iOS beim Tippen */
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    /* 3. Performance-Optimierung für flüssige Swipes */
    will-change: transform, opacity;
    /* 4. Sicherstellen, dass der Toast über allem liegt */
    position: relative;
    display: block !important;
}

/* Optional: Verhindert Gummiband-Effekt im Container auf iOS */
.toast-container {
    overscroll-behavior: none;
}

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




/*
   ====================================
   P11....
   ====================================
 */



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