/* Sprint 2.37 – gezielte interne UI, keine globalen Wildcard-Experimente */

:root {
    --oe-red: #C41212;
    --oe-red-dark: #8f0f0f;
    --oe-ink: #111827;
    --oe-muted: #64748b;
    --oe-line: #d8dee8;
    --oe-soft: #f8fafc;
    --oe-card: rgba(255,255,255,.96);
    --oe-shadow: 0 18px 52px rgba(17,24,39,.10);
}

.oe-topbar-title strong {
    font-size: 17px;
    color: var(--oe-ink);
}

.oe-topbar-title span {
    color: var(--oe-muted);
    font-size: 13px;
    font-weight: 850;
}

.oe-sprint-page {
    display: grid;
    gap: 22px;
}

.oe-page-head {
    border-radius: 30px;
    padding: clamp(26px, 3.5vw, 42px);
    background:
        radial-gradient(circle at 0% 0%, rgba(196,18,18,.12), transparent 30%),
        rgba(255,255,255,.96);
    border: 1px solid var(--oe-line);
    box-shadow: var(--oe-shadow);
}

.oe-page-head.dark {
    color: #fff;
    background:
        radial-gradient(circle at 10% 0%, rgba(196,18,18,.32), transparent 34%),
        linear-gradient(135deg, #0b111c 0%, #18111a 56%, #7f1010 135%);
    border-color: rgba(255,255,255,.12);
}

.oe-page-head h1 {
    margin: 14px 0 10px;
    font-size: clamp(38px, 4.5vw, 64px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.oe-page-head p {
    margin: 0;
    max-width: 850px;
    color: var(--oe-muted);
    font-size: 17px;
    line-height: 1.55;
}

.oe-page-head.dark p {
    color: rgba(255,255,255,.78);
}

.oe-kicker-soft {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(196,18,18,.10);
    color: var(--oe-red);
    font-weight: 950;
    font-size: 14px;
}

.oe-page-head.dark .oe-kicker-soft {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.oe-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.oe-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff;
    color: var(--oe-ink);
    border: 1px solid #d1d5db;
    text-decoration: none;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(17,24,39,.06);
}

.oe-action.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--oe-red), var(--oe-red-dark));
    border-color: var(--oe-red);
    box-shadow: 0 14px 30px rgba(196,18,18,.24);
}

.oe-action:hover {
    transform: translateY(-1px);
}

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

.oe-stat-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 8px;
    min-height: 150px;
    border-radius: 26px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--oe-line);
    box-shadow: 0 14px 40px rgba(17,24,39,.07);
    color: var(--oe-ink);
    text-decoration: none;
}

.oe-stat-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -40px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(196,18,18,.075);
}

.oe-stat-card span,
.oe-stat-card small {
    position: relative;
    z-index: 2;
}

.oe-stat-card span {
    color: var(--oe-muted);
    font-weight: 950;
}

.oe-stat-card strong {
    position: relative;
    z-index: 2;
    color: var(--oe-ink);
    font-size: 40px;
    line-height: 1;
    letter-spacing: -.035em;
}

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

.oe-section {
    border-radius: 30px;
    padding: clamp(22px, 3vw, 34px);
    background: #fff;
    border: 1px solid var(--oe-line);
    box-shadow: var(--oe-shadow);
}

.oe-section h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 2.5vw, 36px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.oe-section-intro {
    margin: 0 0 20px;
    color: var(--oe-muted);
    line-height: 1.55;
}

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

.oe-quick-final {
    min-height: 172px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border-radius: 24px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--oe-line);
    color: var(--oe-ink);
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(17,24,39,.06);
}

.oe-quick-final:hover {
    transform: translateY(-2px);
    border-color: rgba(196,18,18,.36);
}

.oe-quick-final-icon {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e30613, #8f0f0f);
    color: #fff;
    font-weight: 950;
    box-shadow: 0 13px 28px rgba(196,18,18,.22);
}

.oe-quick-final strong {
    font-size: 18px;
    line-height: 1.2;
}

.oe-quick-final span:last-child {
    color: var(--oe-muted);
    line-height: 1.45;
}

.oe-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.oe-clean-list-final {
    display: grid;
    gap: 12px;
}

.oe-item-final {
    display: grid;
    gap: 8px;
    border-radius: 20px;
    padding: 16px;
    background: var(--oe-soft);
    border: 1px solid #e5e7eb;
}

.oe-item-final-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.oe-item-final a {
    color: var(--oe-ink);
    font-weight: 950;
    text-decoration: none;
}

.oe-item-final a:hover {
    color: var(--oe-red);
}

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

.oe-chip-final {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    font-size: 13px;
    font-weight: 950;
}

.oe-chip-final.green {
    color: #166534;
    background: #ecfdf3;
    border-color: #86efac;
}

.oe-chip-final.red {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}

.oe-chip-final.blue {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.oe-filter-final {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px 190px auto;
    gap: 14px;
    align-items: end;
    margin: 22px 0;
    padding: 18px;
    border-radius: 24px;
    background: var(--oe-soft);
    border: 1px solid var(--oe-line);
}

.oe-filter-final label,
.oe-form-grid-final label {
    display: grid;
    gap: 7px;
    color: var(--oe-ink);
    font-weight: 950;
}

.oe-filter-final input,
.oe-filter-final select,
.oe-form-grid-final input,
.oe-form-grid-final select,
.oe-form-grid-final textarea {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    padding: 12px 14px;
    font: inherit;
}

.oe-form-grid-final {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.oe-form-grid-final label {
    grid-column: span 4;
}

.oe-form-grid-final label.wide,
.oe-form-grid-final .wide {
    grid-column: 1 / -1;
}

.oe-form-subtitle {
    grid-column: 1 / -1;
    margin: 28px 0 0;
    font-size: 26px;
    letter-spacing: -.025em;
}

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

.oe-table-final {
    width: 100%;
    min-width: 920px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.oe-table-final th,
.oe-table-final td {
    text-align: left;
    vertical-align: top;
    padding: 15px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.oe-table-final th {
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .045em;
    font-weight: 950;
}

.oe-table-final tr:last-child td {
    border-bottom: 0;
}

.oe-actions-final {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.oe-card-list-final {
    display: grid;
    gap: 14px;
}

.oe-person-final {
    display: block;
    border-radius: 24px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--oe-line);
    box-shadow: 0 12px 32px rgba(17,24,39,.06);
    color: var(--oe-ink);
    text-decoration: none;
}

.oe-person-final:hover {
    transform: translateY(-2px);
    border-color: rgba(196,18,18,.34);
}

.oe-person-title {
    margin: 8px 0;
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -.02em;
}

.oe-person-meta {
    color: var(--oe-muted);
    font-weight: 850;
    line-height: 1.55;
}

@media (max-width: 1200px) {
    .oe-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

    .oe-form-grid-final label {
        grid-column: span 6;
    }
}

@media (max-width: 760px) {
    .oe-sprint-page {
        gap: 14px;
    }

    .oe-page-head {
        border-radius: 28px;
        padding: 26px 22px;
    }

    .oe-page-head h1 {
        font-size: clamp(42px, 12vw, 58px);
    }

    .oe-head-actions,
    .oe-actions-final {
        display: grid;
        grid-template-columns: 1fr;
    }

    .oe-action {
        width: 100%;
    }

    .oe-stat-grid,
    .oe-quick-grid-final,
    .oe-filter-final,
    .oe-form-grid-final {
        grid-template-columns: 1fr;
    }

    .oe-form-grid-final label {
        grid-column: 1 / -1;
    }

    .oe-stat-card {
        min-height: 128px;
    }

    .oe-stat-card strong {
        font-size: 42px;
    }

    .oe-section {
        border-radius: 28px;
        padding: 24px 20px;
    }

    .oe-item-final-head {
        display: grid;
    }
}
