/* Sprint 2.39 – Kundenakte gezielt glätten */
/* Aktiv nur, wenn JS auf /kunden/akte die Klasse .oe-route-kundenakte setzt. */

body.oe-route-kundenakte .oe-app-main {
    background:
        radial-gradient(circle at 0% 0%, rgba(196,18,18,.08), transparent 30%),
        linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
}

/* Hauptcontainer der Kundenakte */
body.oe-route-kundenakte .oe-app-main > * {
    max-width: 1480px;
}

/* Erste große Box / Kopfbereich */
body.oe-route-kundenakte .oe-app-main > section:first-child,
body.oe-route-kundenakte .oe-app-main > div:first-child > section:first-child,
body.oe-route-kundenakte .oe-app-main .oe-page-head,
body.oe-route-kundenakte .oe-app-main .card:first-child,
body.oe-route-kundenakte .oe-app-main .oe-card:first-child {
    border-radius: 34px !important;
    padding: clamp(26px, 3.5vw, 44px) !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(196,18,18,.25), transparent 34%),
        linear-gradient(135deg, #0b111c 0%, #18111a 58%, #7f1010 135%) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: 0 24px 70px rgba(17,24,39,.18) !important;
    overflow: hidden !important;
}

body.oe-route-kundenakte .oe-app-main > section:first-child h1,
body.oe-route-kundenakte .oe-app-main > div:first-child > section:first-child h1,
body.oe-route-kundenakte .oe-app-main .oe-page-head h1,
body.oe-route-kundenakte .oe-app-main .card:first-child h1,
body.oe-route-kundenakte .oe-app-main .oe-card:first-child h1 {
    color: #fff !important;
    font-size: clamp(42px, 4.8vw, 68px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.055em !important;
    margin: 10px 0 12px !important;
}

body.oe-route-kundenakte .oe-app-main > section:first-child p,
body.oe-route-kundenakte .oe-app-main > div:first-child > section:first-child p,
body.oe-route-kundenakte .oe-app-main .oe-page-head p,
body.oe-route-kundenakte .oe-app-main .card:first-child p,
body.oe-route-kundenakte .oe-app-main .oe-card:first-child p {
    color: rgba(255,255,255,.78) !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
}

/* Buttons im Kopfbereich */
body.oe-route-kundenakte .oe-app-main a.btn,
body.oe-route-kundenakte .oe-app-main button.btn,
body.oe-route-kundenakte .oe-app-main .btn,
body.oe-route-kundenakte .oe-app-main .oe-action,
body.oe-route-kundenakte .oe-app-main .oe-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    padding: 10px 16px !important;
    font-weight: 950 !important;
    text-decoration: none !important;
}

/* Normale Karten */
body.oe-route-kundenakte .oe-app-main section:not(:first-child),
body.oe-route-kundenakte .oe-app-main .card,
body.oe-route-kundenakte .oe-app-main .oe-card,
body.oe-route-kundenakte .oe-app-main .panel,
body.oe-route-kundenakte .oe-app-main .box {
    border-radius: 30px !important;
    border: 1px solid #d8dee8 !important;
    background: rgba(255,255,255,.97) !important;
    box-shadow: 0 18px 52px rgba(17,24,39,.10) !important;
}

/* Überschriften */
body.oe-route-kundenakte .oe-app-main h2 {
    font-size: clamp(28px, 2.6vw, 38px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
    margin-top: 0 !important;
    color: #111827 !important;
}

body.oe-route-kundenakte .oe-app-main h3 {
    font-size: 23px !important;
    line-height: 1.15 !important;
    letter-spacing: -.025em !important;
    color: #111827 !important;
}

/* Tabellen sauberer */
body.oe-route-kundenakte .oe-app-main table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    border-radius: 22px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
}

body.oe-route-kundenakte .oe-app-main th,
body.oe-route-kundenakte .oe-app-main td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #e5e7eb !important;
    vertical-align: top !important;
}

body.oe-route-kundenakte .oe-app-main th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: .045em !important;
    font-weight: 950 !important;
}

body.oe-route-kundenakte .oe-app-main tr:last-child td {
    border-bottom: 0 !important;
}

/* Listen / Einträge */
body.oe-route-kundenakte .oe-app-main li,
body.oe-route-kundenakte .oe-app-main .list-item,
body.oe-route-kundenakte .oe-app-main .oe-list-item {
    border-radius: 20px !important;
}

/* Status-Badges / Pills */
body.oe-route-kundenakte .oe-app-main .badge,
body.oe-route-kundenakte .oe-app-main .pill,
body.oe-route-kundenakte .oe-app-main .oe-pill,
body.oe-route-kundenakte .oe-app-main .oe-chip,
body.oe-route-kundenakte .oe-app-main .status {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    border-radius: 999px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

/* Formulare innerhalb Kundenakte */
body.oe-route-kundenakte .oe-app-main input:not([type="checkbox"]):not([type="radio"]),
body.oe-route-kundenakte .oe-app-main select,
body.oe-route-kundenakte .oe-app-main textarea {
    min-height: 46px;
    border-radius: 16px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 11px 13px !important;
    font: inherit !important;
}

/* Checkbox-Hotfix nicht überschreiben */
body.oe-route-kundenakte .oe-app-main input[type="checkbox"],
body.oe-route-kundenakte .oe-app-main input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    accent-color: #C41212 !important;
}

/* Mobile */
@media (max-width: 760px) {
    body.oe-route-kundenakte .oe-app-main {
        padding: 14px 14px 32px !important;
    }

    body.oe-route-kundenakte .oe-app-main > section:first-child,
    body.oe-route-kundenakte .oe-app-main > div:first-child > section:first-child,
    body.oe-route-kundenakte .oe-app-main .oe-page-head,
    body.oe-route-kundenakte .oe-app-main .card:first-child,
    body.oe-route-kundenakte .oe-app-main .oe-card:first-child {
        border-radius: 28px !important;
        padding: 26px 22px !important;
    }

    body.oe-route-kundenakte .oe-app-main > section:first-child h1,
    body.oe-route-kundenakte .oe-app-main > div:first-child > section:first-child h1,
    body.oe-route-kundenakte .oe-app-main .oe-page-head h1,
    body.oe-route-kundenakte .oe-app-main .card:first-child h1,
    body.oe-route-kundenakte .oe-app-main .oe-card:first-child h1 {
        font-size: clamp(42px, 12vw, 58px) !important;
    }

    body.oe-route-kundenakte .oe-app-main section:not(:first-child),
    body.oe-route-kundenakte .oe-app-main .card,
    body.oe-route-kundenakte .oe-app-main .oe-card,
    body.oe-route-kundenakte .oe-app-main .panel,
    body.oe-route-kundenakte .oe-app-main .box {
        border-radius: 28px !important;
        padding: 22px 18px !important;
    }

    body.oe-route-kundenakte .oe-app-main table {
        min-width: 760px;
    }

    body.oe-route-kundenakte .oe-app-main .table-wrap,
    body.oe-route-kundenakte .oe-app-main .oe-table-wrap,
    body.oe-route-kundenakte .oe-app-main section {
        overflow-x: auto;
    }
}
