/* Fix 2.36.9 – internes Mobile Layout nach Login */

.oe-mobile-app-head,
.oe-mobile-app-menu {
    display: none;
}

@media (max-width: 760px) {
    .oe-app-shell {
        display: block !important;
        min-height: 100vh;
        background:
            radial-gradient(circle at 8% 0%, rgba(196,18,18,.10), transparent 34%),
            linear-gradient(180deg, #f7f8fb 0%, #edf1f7 100%);
    }

    .oe-sidebar {
        display: none !important;
    }

    .oe-app-area {
        min-width: 0;
    }

    .oe-topbar {
        position: sticky;
        top: 0;
        z-index: 999;
        min-height: 0 !important;
        display: block !important;
        padding: 0 !important;
        background: rgba(247,248,251,.96) !important;
        border-bottom: 1px solid rgba(216,222,232,.90) !important;
        backdrop-filter: blur(14px);
        box-shadow: 0 10px 30px rgba(17,24,39,.08);
    }

    .oe-topbar-title,
    .oe-topbar > .oe-mobile-nav,
    .oe-topbar > .oe-topbar-actions {
        display: none !important;
    }

    .oe-mobile-app-head {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
    }

    .oe-mobile-app-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        color: #111827;
        text-decoration: none;
    }

    .oe-mobile-app-brand img {
        width: 42px;
        height: 42px;
        object-fit: contain;
        flex: 0 0 auto;
    }

    .oe-mobile-app-brand span {
        display: grid;
        min-width: 0;
        line-height: 1.05;
    }

    .oe-mobile-app-brand strong {
        font-size: 17px;
        font-weight: 950;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .oe-mobile-app-brand small {
        margin-top: 3px;
        color: #64748b;
        font-size: 12px;
        font-weight: 850;
        white-space: nowrap;
    }

    .oe-app-burger {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(209,213,219,.95);
        border-radius: 16px;
        background: #fff;
        color: #111827;
        box-shadow: 0 8px 22px rgba(17,24,39,.08);
        cursor: pointer;
    }

    .oe-app-burger span,
    .oe-app-burger span::before,
    .oe-app-burger span::after {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 999px;
        background: #111827;
        content: "";
        transition: transform .18s ease, opacity .18s ease;
    }

    .oe-app-burger span {
        position: relative;
    }

    .oe-app-burger span::before {
        position: absolute;
        top: -7px;
        left: 0;
    }

    .oe-app-burger span::after {
        position: absolute;
        top: 7px;
        left: 0;
    }

    .oe-topbar.is-open .oe-app-burger span {
        background: transparent;
    }

    .oe-topbar.is-open .oe-app-burger span::before {
        transform: translateY(7px) rotate(45deg);
    }

    .oe-topbar.is-open .oe-app-burger span::after {
        transform: translateY(-7px) rotate(-45deg);
    }

    .oe-mobile-app-menu {
        display: none;
        padding: 0 14px 14px;
    }

    .oe-topbar.is-open .oe-mobile-app-menu {
        display: grid;
        gap: 10px;
    }

    .oe-mobile-app-menu a,
    .oe-mobile-app-menu button {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 16px;
        padding: 12px 14px;
        background: #fff;
        border: 1px solid #e5e7eb;
        color: #111827;
        text-decoration: none;
        font: inherit;
        font-weight: 950;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(17,24,39,.04);
    }

    .oe-mobile-app-menu a.oe-mobile-primary {
        color: #fff;
        background: linear-gradient(135deg, #C41212, #8f0f0f);
        border-color: #C41212;
        box-shadow: 0 14px 30px rgba(196,18,18,.22);
    }

    .oe-mobile-app-menu a.oe-mobile-danger {
        color: #991b1b;
        background: #fee2e2;
        border-color: #fca5a5;
    }

    .oe-app-main {
        width: 100% !important;
        padding: 14px 14px 32px !important;
        overflow-x: hidden;
    }

    .oe-internal-hero {
        margin-top: 0 !important;
        border-radius: 28px !important;
        padding: 28px 22px !important;
        box-shadow: 0 18px 44px rgba(17,24,39,.16) !important;
    }

    .oe-internal-hero-content {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    .oe-internal-kicker {
        font-size: 14px !important;
    }

    .oe-internal-hero h1 {
        font-size: clamp(42px, 12vw, 58px) !important;
        line-height: 1.02 !important;
        letter-spacing: -.05em !important;
        margin: 16px 0 12px !important;
    }

    .oe-internal-hero p {
        font-size: 18px !important;
        line-height: 1.45 !important;
    }

    .oe-internal-hero-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        justify-content: stretch !important;
    }

    .oe-internal-btn {
        width: 100%;
        min-height: 50px;
        justify-content: center;
        text-align: center;
        font-size: 17px;
    }

    .oe-metric-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin: 14px 0 !important;
    }

    .oe-metric-card {
        min-height: 128px;
        border-radius: 26px !important;
        padding: 22px !important;
    }

    .oe-metric-card strong {
        font-size: 42px !important;
    }

    .oe-internal-section,
    .oe-system-card,
    .card,
    .oe-card {
        border-radius: 28px !important;
        padding: 24px 20px !important;
        margin-top: 14px !important;
    }

    .oe-internal-section h2,
    .card h2,
    .oe-card h2 {
        font-size: 30px !important;
        line-height: 1.1 !important;
        margin-top: 0 !important;
    }

    .oe-quick-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .oe-quick-card {
        min-height: auto !important;
        border-radius: 24px !important;
        padding: 20px !important;
    }

    .oe-quick-card strong {
        font-size: 20px !important;
    }

    .oe-quick-card span:not(.oe-quick-icon) {
        font-size: 16px !important;
        line-height: 1.45 !important;
    }

    .oe-internal-columns {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .oe-list-item {
        border-radius: 20px !important;
        padding: 16px !important;
    }

    .oe-list-item-head {
        display: grid !important;
        gap: 10px !important;
    }

    .oe-pill,
    .oe-status-pill {
        width: fit-content;
    }

    table {
        min-width: 760px;
    }

    .oe-check-table-wrap,
    .card,
    .oe-card,
    .oe-internal-section {
        overflow-x: auto;
    }

    .oe-filter-form {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 16px !important;
    }

    .oe-filter-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .oe-filter-actions .btn,
    .oe-filter-actions .oe-btn,
    .oe-filter-actions a,
    .oe-filter-actions button {
        width: 100%;
    }

    :root[data-theme="dark"] .oe-topbar {
        background: rgba(8,12,20,.96) !important;
        border-bottom-color: rgba(255,255,255,.10) !important;
    }

    :root[data-theme="dark"] .oe-mobile-app-brand,
    :root[data-theme="dark"] .oe-mobile-app-brand strong {
        color: #f9fafb;
    }

    :root[data-theme="dark"] .oe-app-burger,
    :root[data-theme="dark"] .oe-mobile-app-menu a,
    :root[data-theme="dark"] .oe-mobile-app-menu button {
        background: #121a26;
        color: #f9fafb;
        border-color: rgba(255,255,255,.12);
    }

    :root[data-theme="dark"] .oe-app-burger span,
    :root[data-theme="dark"] .oe-app-burger span::before,
    :root[data-theme="dark"] .oe-app-burger span::after {
        background: #f9fafb;
    }

    :root[data-theme="dark"] .oe-topbar.is-open .oe-app-burger span {
        background: transparent;
    }
}
