:root {
    --oe-red: #C41212;
    --oe-red-dark: #8f0f0f;
    --oe-dark: #060a12;
    --oe-dark-2: #101827;
    --oe-text: #111827;
    --oe-muted: #6b7280;
    --oe-line: #e5e7eb;
    --oe-bg: #f4f5f7;
    --oe-sidebar-width: 292px;
}

* {
    box-sizing: border-box;
}

body.oe-app-body {
    margin: 0;
    background: var(--oe-bg);
    color: var(--oe-text);
    font-family: Calibri, Arial, sans-serif;
}

.oe-app-layout {
    min-height: 100vh;
}

.oe-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--oe-sidebar-width);
    background:
        radial-gradient(circle at 18% 4%, rgba(196,18,18,.28), transparent 28%),
        linear-gradient(180deg, #0b101a 0%, #050910 100%);
    color: #fff;
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: 18px 0 45px rgba(17,24,39,.16);
    z-index: 1000;
}

.oe-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 22px;
}

.oe-brand-mark {
    width: 14px;
    height: 36px;
    border-radius: 999px;
    background: var(--oe-red);
    box-shadow: 0 10px 22px rgba(196,18,18,.38);
    flex: 0 0 auto;
}

.oe-sidebar-brand strong {
    display: block;
    font-size: 17px;
    line-height: 1.15;
}

.oe-sidebar-brand small {
    display: block;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    margin-top: 3px;
    line-height: 1.25;
}

.oe-sidebar-nav {
    display: grid;
    gap: 8px;
}

.oe-sidebar-nav a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 13px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.oe-sidebar-nav a:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
    transform: translateX(2px);
}

.oe-sidebar-nav a[aria-current="page"] {
    background: var(--oe-red);
    color: #fff;
    box-shadow: 0 14px 30px rgba(196,18,18,.26);
}

.oe-sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: grid;
    gap: 12px;
}

.oe-sidebar-user,
.oe-top-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.oe-sidebar-user strong,
.oe-top-user strong {
    display: block;
    font-size: 14px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oe-sidebar-user small,
.oe-top-user small {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,.56);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oe-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--oe-red);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(196,18,18,.28);
    flex: 0 0 auto;
}

.oe-sidebar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
}

.oe-sidebar-logout:hover {
    background: rgba(196,18,18,.9);
}

.oe-app-main {
    margin-left: var(--oe-sidebar-width);
    min-height: 100vh;
    padding: 24px 34px 46px;
}

.oe-top-userbar {
    width: min(1220px, 100%);
    margin: 0 auto 16px;
    display: flex;
    justify-content: flex-end;
    position: sticky;
    top: 16px;
    z-index: 800;
    pointer-events: none;
}

.oe-top-userbar-inner {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(229,231,235,.95);
    box-shadow: 0 12px 34px rgba(17,24,39,.10);
    backdrop-filter: blur(14px);
    border-radius: 999px;
    padding: 8px 10px 8px 8px;
}

.oe-top-user small {
    color: var(--oe-muted);
}

.oe-top-userbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.oe-top-userbar a:hover {
    background: var(--oe-red);
}

.oe-mobile-header {
    display: none;
}

.oe-public-body {
    margin: 0;
    background: var(--oe-bg);
    font-family: Calibri, Arial, sans-serif;
}

.oe-public-main {
    min-height: 100vh;
}

/* Login und alte Standard-Views nicht zerreißen */
.card {
    background: #fff;
    border: 1px solid var(--oe-line);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(17,24,39,.08);
    padding: 22px;
}

.btn,
button,
input[type="submit"] {
    font-family: inherit;
}

@media (max-width: 960px) {
    .oe-sidebar {
        display: none;
    }

    .oe-app-main {
        margin-left: 0;
        padding: 12px 10px 34px;
    }

    .oe-mobile-header {
        display: block;
        position: sticky;
        top: 0;
        z-index: 1000;
        background:
            radial-gradient(circle at 10% 0%, rgba(196,18,18,.24), transparent 26%),
            linear-gradient(180deg, #0b101a 0%, #050910 100%);
        color: #fff;
        padding: 12px 10px;
        box-shadow: 0 14px 34px rgba(17,24,39,.18);
    }

    .oe-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #fff;
        text-decoration: none;
    }

    .oe-mobile-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        margin-top: 12px;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .oe-mobile-nav::-webkit-scrollbar {
        display: none;
    }

    .oe-mobile-nav a {
        flex: 0 0 auto;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        background: rgba(255,255,255,.08);
        color: #fff;
        text-decoration: none;
        font-weight: 800;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .oe-mobile-nav a[aria-current="page"] {
        background: var(--oe-red);
    }

    .oe-top-userbar {
        top: 84px;
        width: 100%;
        margin-bottom: 12px;
    }

    .oe-top-userbar-inner {
        width: 100%;
        justify-content: space-between;
        border-radius: 18px;
    }

    .oe-top-user strong,
    .oe-top-user small {
        max-width: 170px;
    }
}

@media (max-width: 430px) {
    .oe-top-user small {
        display: none;
    }

    .oe-top-userbar a {
        padding-left: 11px;
        padding-right: 11px;
    }
}

/* Fix 2.26: weniger verlorener Platz, klare Kontoansicht, Hell/Dunkel */
:root[data-theme="dark"] {
    --oe-bg: #0b1018;
    --oe-text: #f9fafb;
    --oe-muted: #a8b1c1;
    --oe-line: rgba(255,255,255,.10);
}

:root[data-theme="dark"] body.oe-app-body,
:root[data-theme="dark"] .oe-public-body {
    background: #0b1018;
    color: #f9fafb;
}

:root[data-theme="dark"] .oe-card,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .oe-tabs,
:root[data-theme="dark"] .oe-top-userbar-inner {
    background: #121a26;
    border-color: rgba(255,255,255,.10);
    color: #f9fafb;
}

:root[data-theme="dark"] .oe-card h1,
:root[data-theme="dark"] .oe-card h2,
:root[data-theme="dark"] .oe-card h3,
:root[data-theme="dark"] .oe-value,
:root[data-theme="dark"] .oe-list-title,
:root[data-theme="dark"] .oe-top-user strong {
    color: #f9fafb;
}

:root[data-theme="dark"] .oe-muted,
:root[data-theme="dark"] .oe-list-meta,
:root[data-theme="dark"] .oe-top-user small {
    color: #a8b1c1;
}

:root[data-theme="dark"] .oe-tabs a,
:root[data-theme="dark"] .oe-empty,
:root[data-theme="dark"] .oe-action-tile,
:root[data-theme="dark"] .oe-permission {
    background: #0f1722;
    border-color: rgba(255,255,255,.10);
    color: #f9fafb;
}

@media (min-width: 961px) {
    .oe-app-main {
        padding: 18px 22px 42px !important;
    }

    .oe-shell {
        width: min(1360px, 100%) !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .oe-top-userbar {
        width: min(1360px, 100%) !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        top: 14px;
    }

    .oe-hero {
        margin-top: 0;
    }

    .oe-shell-tight .oe-hero {
        padding-top: 26px;
        padding-bottom: 26px;
    }
}

.oe-hero-compact {
    min-height: auto;
}

.oe-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    font-weight: 900;
    cursor: pointer;
}

.oe-theme-toggle:hover {
    background: #C41212;
    color: #fff;
    border-color: #C41212;
}

:root[data-theme="dark"] .oe-theme-toggle {
    background: #0f1722;
    color: #f9fafb;
    border-color: rgba(255,255,255,.14);
}

.oe-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.oe-action-tile {
    display: grid;
    gap: 7px;
    min-height: 116px;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(17,24,39,.06);
}

.oe-action-tile:hover {
    border-color: rgba(196,18,18,.42);
    transform: translateY(-1px);
}

.oe-action-tile strong {
    font-size: 17px;
}

.oe-action-tile span {
    color: #6b7280;
    line-height: 1.45;
}

.oe-hint {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    line-height: 1.55;
}

:root[data-theme="dark"] .oe-hint {
    background: #0f1722;
    border-color: rgba(255,255,255,.10);
    color: #cbd5e1;
}

.oe-permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.oe-permission {
    padding: 15px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.oe-permission strong {
    display: block;
    color: #111827;
    font-size: 16px;
}

.oe-permission span {
    display: block;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.45;
}

:root[data-theme="dark"] .oe-permission strong {
    color: #f9fafb;
}

:root[data-theme="dark"] .oe-permission span,
:root[data-theme="dark"] .oe-action-tile span {
    color: #a8b1c1;
}

@media (max-width: 900px) {
    .oe-action-grid,
    .oe-permission-grid {
        grid-template-columns: 1fr;
    }

    .oe-top-userbar-inner {
        gap: 8px;
    }

    .oe-theme-toggle {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Fix 2.27: keine doppelte Navigation im Content */
.oe-hero + .oe-grid,
.oe-hero + section,
.oe-hero + .oe-card {
    margin-top: 20px;
}

.oe-actionbar-account {
    margin-top: 18px;
}

@media (min-width: 961px) {
    .oe-hero {
        margin-bottom: 20px !important;
    }

    .oe-shell > .oe-grid:first-of-type {
        margin-top: 0;
    }
}

/* Falls irgendwo noch alte lokale Tabs vorkommen, nicht als zweite Hauptnavigation aufblasen */
.oe-tabs[data-secondary="true"] {
    margin-top: 10px;
}

/* Fix 2.28: echtes OE-Ornament statt Platzhalter-Balken */
.oe-brand-mark {
    width: 46px !important;
    height: 46px !important;
    border-radius: 0 !important;
    background: url('/assets/brand/oeschgers-edv-ornament-official-transparent.png') center / contain no-repeat !important;
    box-shadow: none !important;
}

.oe-sidebar-brand {
    align-items: center;
}

.oe-mobile-brand .oe-brand-mark {
    width: 34px !important;
    height: 34px !important;
}

@media (min-width: 961px) {
    .oe-sidebar-brand strong {
        font-size: 18px;
    }

    .oe-sidebar-brand small {
        font-size: 12px;
    }
}

/* Paket 2.31: öffentliche Startseite */
.oe-public-landing {
    min-height: 100vh;
    background: var(--oe-bg);
    color: var(--oe-text);
}

.oe-public-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 24px;
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(229,231,235,.86);
    backdrop-filter: blur(14px);
}

:root[data-theme="dark"] .oe-public-header {
    background: rgba(11,16,24,.88);
    border-bottom-color: rgba(255,255,255,.10);
}

.oe-public-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--oe-text);
    text-decoration: none;
}

.oe-public-brand strong {
    display: block;
    font-size: 18px;
}

.oe-public-brand small {
    display: block;
    color: var(--oe-muted);
    font-size: 12px;
    margin-top: 2px;
}

.oe-public-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.oe-public-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.oe-public-login:hover {
    background: var(--oe-red);
    color: #fff;
}

.oe-public-shell {
    width: min(1380px, calc(100% - 36px));
    margin: 0 auto;
    padding: 34px 0 54px;
}

.oe-public-hero {
    margin-bottom: 22px;
}

.oe-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.oe-news-card {
    border: 1px solid var(--oe-line);
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17,24,39,.05);
}

:root[data-theme="dark"] .oe-news-card {
    background: #0f1722;
    border-color: rgba(255,255,255,.10);
}

.oe-news-card h3 {
    margin: 14px 0 8px;
}

.oe-news-card p {
    color: var(--oe-muted);
    line-height: 1.55;
}

.oe-news-card small {
    color: var(--oe-muted);
    font-weight: 800;
}

.oe-public-footer-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

@media (max-width: 820px) {
    .oe-public-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 12px;
    }

    .oe-public-actions {
        width: 100%;
        justify-content: space-between;
    }

    .oe-public-shell {
        width: calc(100% - 20px);
        padding-top: 18px;
    }

    .oe-news-grid {
        grid-template-columns: 1fr;
    }

    .oe-public-footer-card {
        display: grid;
    }
}

/* Fix 2.32: lebendige öffentliche Landingpage mit OE-CI */
.oe-public-landing-v2 {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(196,18,18,.16), transparent 30%),
        radial-gradient(circle at 90% 8%, rgba(17,24,39,.10), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f6f7fb 52%, #fff 100%);
    color: #111827;
}

:root[data-theme="dark"] .oe-public-landing-v2 {
    background:
        radial-gradient(circle at 10% 0%, rgba(196,18,18,.22), transparent 32%),
        radial-gradient(circle at 85% 10%, rgba(255,255,255,.07), transparent 28%),
        linear-gradient(180deg, #080c14 0%, #101827 52%, #080c14 100%);
    color: #f9fafb;
}

.oe-public-top {
    position: sticky;
    top: 0;
    z-index: 1100;
    width: min(1440px, calc(100% - 34px));
    margin: 0 auto;
    padding: 16px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    backdrop-filter: blur(14px);
}

.oe-public-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.oe-public-logo img {
    max-width: 260px;
    height: auto;
    display: block;
}

.oe-public-topnav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(229,231,235,.88);
    border-radius: 999px;
    padding: 7px;
    box-shadow: 0 12px 34px rgba(17,24,39,.08);
}

:root[data-theme="dark"] .oe-public-topnav {
    background: rgba(15,23,34,.76);
    border-color: rgba(255,255,255,.10);
}

.oe-public-topnav a {
    color: #111827;
    text-decoration: none;
    font-weight: 900;
    padding: 9px 13px;
    border-radius: 999px;
}

:root[data-theme="dark"] .oe-public-topnav a {
    color: #f9fafb;
}

.oe-public-topnav a:hover {
    background: rgba(196,18,18,.10);
    color: #C41212;
}

.oe-public-top-actions {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.oe-public-login-btn,
.oe-public-primary,
.oe-public-secondary,
.oe-public-secondary-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 11px 18px;
    text-decoration: none;
    font-weight: 900;
    border: 1px solid transparent;
}

.oe-public-login-btn,
.oe-public-primary {
    background: #C41212;
    color: #fff;
    box-shadow: 0 14px 30px rgba(196,18,18,.26);
}

.oe-public-login-btn:hover,
.oe-public-primary:hover {
    background: #8f0f0f;
    color: #fff;
}

.oe-public-secondary {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.22);
    color: #fff;
}

.oe-public-secondary-dark {
    background: #111827;
    color: #fff;
}

.oe-public-page {
    width: min(1440px, calc(100% - 34px));
    margin: 0 auto;
    padding: 18px 0 62px;
}

.oe-public-hero-v2 {
    position: relative;
    overflow: hidden;
    min-height: 610px;
    border-radius: 34px;
    padding: clamp(28px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    gap: 42px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(8,12,20,.98) 0%, rgba(28,14,17,.96) 54%, rgba(196,18,18,.90) 140%);
    color: #fff;
    box-shadow: 0 26px 70px rgba(17,24,39,.24);
}

.oe-public-hero-v2::before {
    content: "";
    position: absolute;
    inset: auto -120px -180px auto;
    width: 440px;
    height: 440px;
    border: 48px solid rgba(255,255,255,.06);
    border-radius: 999px;
}

.oe-public-hero-copy {
    position: relative;
    z-index: 2;
}

.oe-public-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 900;
}

.oe-public-eyebrow img {
    width: 24px;
    height: 24px;
}

.oe-public-hero-v2 h1 {
    margin: 24px 0 18px;
    max-width: 760px;
    font-size: clamp(42px, 6vw, 82px);
    line-height: .95;
    letter-spacing: -0.05em;
}

.oe-public-hero-v2 p {
    max-width: 680px;
    color: rgba(255,255,255,.82);
    font-size: 18px;
    line-height: 1.65;
}

.oe-public-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.oe-public-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.oe-public-trust span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.86);
    font-weight: 900;
}

.oe-public-hero-visual {
    position: relative;
    z-index: 2;
    min-height: 430px;
}

.oe-visual-card {
    border-radius: 30px;
    background: rgba(255,255,255,.94);
    color: #111827;
    padding: 26px;
    box-shadow: 0 28px 70px rgba(0,0,0,.24);
    border: 1px solid rgba(255,255,255,.65);
}

.oe-visual-card-main {
    position: absolute;
    inset: 50px 18px auto 0;
    min-height: 300px;
}

.oe-visual-card-main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 22px;
}

.oe-visual-card-main h2 {
    margin: 0 0 8px;
    font-size: 34px;
}

.oe-visual-card-main p {
    color: #6b7280;
    margin: 0;
}

.oe-visual-floating {
    position: absolute;
    display: grid;
    gap: 4px;
    border-radius: 20px;
    padding: 16px 18px;
    background: #fff;
    color: #111827;
    box-shadow: 0 18px 42px rgba(0,0,0,.22);
}

.oe-visual-floating strong {
    font-size: 18px;
}

.oe-visual-floating span {
    color: #6b7280;
}

.oe-float-one {
    right: 0;
    top: 0;
}

.oe-float-two {
    left: 36px;
    bottom: 24px;
}

.oe-public-metrics,
.oe-public-news-grid,
.oe-help-row,
.oe-service-grid {
    display: grid;
    gap: 16px;
}

.oe-public-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 22px 0 54px;
}

.oe-public-metrics article,
.oe-public-news-card,
.oe-help-card,
.oe-service-card {
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(229,231,235,.88);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 40px rgba(17,24,39,.08);
}

:root[data-theme="dark"] .oe-public-metrics article,
:root[data-theme="dark"] .oe-public-news-card,
:root[data-theme="dark"] .oe-help-card,
:root[data-theme="dark"] .oe-service-card {
    background: rgba(18,26,38,.88);
    border-color: rgba(255,255,255,.10);
}

.oe-public-metrics strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.oe-public-metrics span,
.oe-public-section-head p,
.oe-public-news-card p,
.oe-help-card p,
.oe-service-card p {
    color: #6b7280;
    line-height: 1.6;
}

:root[data-theme="dark"] .oe-public-metrics span,
:root[data-theme="dark"] .oe-public-section-head p,
:root[data-theme="dark"] .oe-public-news-card p,
:root[data-theme="dark"] .oe-help-card p,
:root[data-theme="dark"] .oe-service-card p {
    color: #a8b1c1;
}

.oe-public-section {
    margin: 54px 0;
}

.oe-public-section-head {
    max-width: 760px;
    margin-bottom: 20px;
}

.oe-public-section-head span,
.oe-news-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(196,18,18,.10);
    color: #C41212;
    padding: 7px 11px;
    font-weight: 900;
}

.oe-public-section-head h2 {
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 16px 0 10px;
}

.oe-public-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oe-public-news-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.oe-public-news-card h3,
.oe-help-card h3,
.oe-service-card h3 {
    font-size: 23px;
    line-height: 1.12;
}

.oe-public-news-card > strong {
    color: #C41212;
}

.oe-public-split {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 28px;
    align-items: start;
}

.oe-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oe-service-card img {
    width: 42px;
    height: 42px;
}

.oe-help-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oe-play {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #C41212;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(196,18,18,.26);
}

.oe-help-card span {
    display: inline-flex;
    color: #C41212;
    font-weight: 900;
}

.oe-status-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-radius: 28px;
    padding: 26px;
    background: #111827;
    color: #fff;
    box-shadow: 0 22px 60px rgba(17,24,39,.22);
}

.oe-status-band p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.70);
}

.oe-status-dot {
    width: 13px;
    height: 13px;
    display: inline-block;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 8px rgba(34,197,94,.14);
    margin-right: 9px;
}

@media (max-width: 1080px) {
    .oe-public-top {
        grid-template-columns: 1fr;
    }

    .oe-public-topnav,
    .oe-public-top-actions {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .oe-public-hero-v2,
    .oe-public-split {
        grid-template-columns: 1fr;
    }

    .oe-public-hero-visual {
        min-height: 360px;
    }

    .oe-public-news-grid,
    .oe-help-row,
    .oe-public-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .oe-public-page,
    .oe-public-top {
        width: calc(100% - 20px);
    }

    .oe-public-logo img {
        max-width: 220px;
    }

    .oe-public-hero-v2 {
        min-height: auto;
        border-radius: 24px;
        padding: 24px;
    }

    .oe-public-hero-v2 h1 {
        font-size: 44px;
    }

    .oe-public-hero-visual {
        min-height: auto;
    }

    .oe-visual-card-main,
    .oe-visual-floating {
        position: static;
        margin-top: 14px;
    }

    .oe-service-grid {
        grid-template-columns: 1fr;
    }

    .oe-status-band {
        display: grid;
    }
}

/* Fix 2.33: schöner Login + Overlay */
.oe-login-open {
    overflow: hidden;
}

.oe-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 34px 18px;
    background:
        radial-gradient(circle at 16% 10%, rgba(196,18,18,.18), transparent 30%),
        radial-gradient(circle at 82% 14%, rgba(17,24,39,.12), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f5f6fa 100%);
}

:root[data-theme="dark"] .oe-login-page {
    background:
        radial-gradient(circle at 16% 10%, rgba(196,18,18,.24), transparent 30%),
        radial-gradient(circle at 82% 14%, rgba(255,255,255,.08), transparent 26%),
        linear-gradient(180deg, #080c14 0%, #101827 100%);
}

.oe-login-brand {
    position: fixed;
    top: 24px;
    left: 28px;
}

.oe-login-brand img {
    width: min(280px, 64vw);
    height: auto;
}

.oe-login-card {
    width: min(1040px, 100%);
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(17,24,39,.18);
    background:
        linear-gradient(135deg, rgba(8,12,20,.98) 0%, rgba(28,14,17,.96) 54%, rgba(196,18,18,.88) 140%);
}

.oe-login-copy {
    padding: clamp(32px, 5vw, 62px);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.oe-login-copy h1 {
    font-size: clamp(42px, 5vw, 70px);
    line-height: .98;
    margin: 24px 0 16px;
    letter-spacing: -.045em;
}

.oe-login-copy p {
    color: rgba(255,255,255,.78);
    font-size: 18px;
    line-height: 1.6;
}

.oe-login-form {
    background: rgba(255,255,255,.96);
    padding: clamp(26px, 4vw, 46px);
    display: grid;
    align-content: center;
    gap: 16px;
}

:root[data-theme="dark"] .oe-login-form {
    background: #121a26;
    color: #f9fafb;
}

.oe-login-form label {
    display: grid;
    gap: 7px;
    font-weight: 900;
    color: #111827;
}

:root[data-theme="dark"] .oe-login-form label {
    color: #f9fafb;
}

.oe-login-form label span {
    font-size: 14px;
}

.oe-login-form input {
    width: 100%;
    min-height: 50px;
    border-radius: 15px;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 12px 14px;
    font: inherit;
    outline: none;
}

:root[data-theme="dark"] .oe-login-form input {
    background: #0f1722;
    border-color: rgba(255,255,255,.14);
    color: #fff;
}

.oe-login-form input:focus {
    border-color: #C41212;
    box-shadow: 0 0 0 4px rgba(196,18,18,.12);
}

.oe-login-form button {
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: #C41212;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(196,18,18,.24);
}

.oe-login-form button:hover {
    background: #8f0f0f;
}

.oe-login-error {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 800;
    border: 1px solid #fca5a5;
}

.oe-login-foot {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.oe-login-foot a {
    color: #C41212;
    font-weight: 900;
    text-decoration: none;
}

.oe-login-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.oe-login-modal[aria-hidden="false"] {
    display: flex;
}

.oe-login-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6,10,18,.72);
    backdrop-filter: blur(12px);
}

.oe-login-modal-panel {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    border-radius: 30px;
    background: #fff;
    padding: 30px;
    box-shadow: 0 34px 100px rgba(0,0,0,.34);
    border: 1px solid rgba(255,255,255,.50);
}

:root[data-theme="dark"] .oe-login-modal-panel {
    background: #121a26;
    color: #f9fafb;
    border-color: rgba(255,255,255,.10);
}

.oe-login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 0;
    background: #111827;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.oe-login-modal-brand img {
    width: min(260px, 70vw);
    height: auto;
    margin-bottom: 18px;
}

.oe-login-modal-panel h2 {
    margin: 0 0 8px;
    font-size: 32px;
    letter-spacing: -.025em;
}

.oe-login-modal-panel p {
    margin: 0 0 20px;
    color: #6b7280;
    line-height: 1.55;
}

:root[data-theme="dark"] .oe-login-modal-panel p {
    color: #a8b1c1;
}

.oe-login-modal-panel .oe-login-form {
    padding: 0;
    background: transparent;
}

@media (max-width: 760px) {
    .oe-login-brand {
        position: static;
        justify-self: start;
        margin-bottom: 18px;
    }

    .oe-login-page {
        display: block;
    }

    .oe-login-card {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 26px;
    }

    .oe-login-copy {
        padding: 28px;
    }

    .oe-login-modal-panel {
        padding: 24px;
        border-radius: 24px;
    }
}

/* Fix 2.34: alte kaputte Login-Modalreste unschädlich machen */
.oe-login-modal:not(#oeLoginModal234) {
    display: none !important;
}

.oe-login-modal-brand img {
    max-width: 280px !important;
    width: 280px !important;
    height: auto !important;
}

/* Fix: Logout-Erfolgsmeldung auf öffentlicher Startseite */
.oe-public-logout-success {
    width: min(1440px, 100%);
    margin: 0 0 18px;
    border-radius: 20px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #86efac;
    box-shadow: 0 14px 34px rgba(22,101,52,.10);
}

.oe-public-logout-success strong {
    font-size: 18px;
}

.oe-public-logout-success span {
    color: #166534;
}

:root[data-theme="dark"] .oe-public-logout-success {
    background: rgba(22,101,52,.16);
    color: #bbf7d0;
    border-color: rgba(134,239,172,.34);
}

:root[data-theme="dark"] .oe-public-logout-success span {
    color: #bbf7d0;
}

@media (max-width: 720px) {
    .oe-public-logout-success {
        display: grid;
    }
}

/* Paket 2.36: öffentliche Inhalte intern pflegen */
.oe-public-admin .oe-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.oe-kicker {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(196,18,18,.10);
    color: #C41212;
    font-weight: 900;
}

.oe-alert-success {
    border-radius: 16px;
    padding: 13px 15px;
    margin: 0 0 18px;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #86efac;
    font-weight: 900;
}

.oe-table-wrap {
    overflow-x: auto;
}

.oe-table {
    width: 100%;
    border-collapse: collapse;
}

.oe-table th,
.oe-table td {
    text-align: left;
    vertical-align: top;
    padding: 13px 12px;
    border-bottom: 1px solid rgba(229,231,235,.9);
}

.oe-table small {
    display: block;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.45;
}

.oe-pill-green,
.oe-pill-gray {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    font-weight: 900;
    font-size: 13px;
}

.oe-pill-green {
    background: #ecfdf3;
    color: #166534;
}

.oe-pill-gray {
    background: #f3f4f6;
    color: #374151;
}

.oe-actions-cell {
    white-space: nowrap;
}

.oe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    padding: 9px 14px;
    border: 1px solid rgba(209,213,219,.95);
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
}

.oe-btn-primary {
    background: #C41212;
    color: #fff;
    border-color: #C41212;
    box-shadow: 0 12px 26px rgba(196,18,18,.22);
}

.oe-btn-small {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
}

.oe-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.oe-form-grid label {
    display: grid;
    gap: 7px;
    font-weight: 900;
}

.oe-form-grid input,
.oe-form-grid textarea,
.oe-form-grid select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
}

.oe-span-2 {
    grid-column: 1 / -1;
}

.oe-checkbox-line {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.oe-checkbox-line input {
    width: auto;
}

.oe-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.oe-video-link,
.oe-public-card-link {
    color: #C41212;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 820px) {
    .oe-public-admin .oe-section-head {
        display: grid;
    }

    .oe-form-grid {
        grid-template-columns: 1fr;
    }
}
