/* ═══════════════════════════════════════════════════════════════════════════
   Wave 87BW — Premium UX Layer
   Account + Admin Premium Upgrade + Dark/Light Mode Tokens
   Author: AoB-Trier · prägnant, premium, mobile-first, responsiv
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 0. GLOBAL CSS-TOKENS (light + dark) ─────────────────────────────── */
:root {
    --ux-bg:           #fafaf7;
    --ux-bg-elev:      #ffffff;
    --ux-surface:      #ffffff;
    --ux-surface-2:    #f4f1ec;
    --ux-border:       #e6e2d8;
    --ux-border-soft:  #efece5;
    --ux-text:         #1d1d1b;
    --ux-text-muted:   #6b6e72;
    --ux-text-faint:   #9a9a9a;
    --ux-brand:        #90a7ac;
    --ux-brand-2:      #b8a472;
    --ux-gold:         #dabe92;
    --ux-rose:         #d8a8a0;
    --ux-success:      #6aa666;
    --ux-warning:      #d9a23c;
    --ux-danger:       #c25450;
    --ux-shadow-1:     0 1px 2px rgba(20,20,20,.04), 0 2px 8px rgba(20,20,20,.05);
    --ux-shadow-2:     0 4px 14px rgba(20,20,20,.07), 0 12px 32px rgba(20,20,20,.07);
    --ux-shadow-3:     0 20px 50px rgba(20,20,20,.15);
    --ux-radius-sm:    8px;
    --ux-radius:       14px;
    --ux-radius-lg:    22px;
    --ux-ease:         cubic-bezier(.34,1.56,.64,1);
    --ux-glass-bg:     rgba(255,255,255,.7);
    --ux-glass-blur:   saturate(160%) blur(12px);
}

[data-theme="dark"] {
    --ux-bg:           #14171a;
    --ux-bg-elev:      #1c2024;
    --ux-surface:      #1c2024;
    --ux-surface-2:    #242a2f;
    --ux-border:       #2c3338;
    --ux-border-soft:  #232a2f;
    --ux-text:         #ecede9;
    --ux-text-muted:   #a4a8ac;
    --ux-text-faint:   #6e7378;
    --ux-brand:        #a8c0c6;
    --ux-brand-2:      #cbb88a;
    --ux-gold:         #dabe92;
    --ux-rose:         #e8b5ab;
    --ux-shadow-1:     0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.35);
    --ux-shadow-2:     0 4px 14px rgba(0,0,0,.45), 0 12px 32px rgba(0,0,0,.45);
    --ux-shadow-3:     0 20px 50px rgba(0,0,0,.55);
    --ux-glass-bg:     rgba(28,32,36,.72);
}

/* Wave 87BW.3: Dark-Mode OPT-IN ONLY — KEIN auto-prefers-color-scheme!
 * Default = Light. User-Click toggelt zu Dark. Sonst bleibt alles light. */

/* ─── 0a. DARK-MODE PUBLIC-SITE OVERRIDES (only on explicit click) ───── */
[data-theme="dark"] body {
    background: var(--ux-bg);
    color: var(--ux-text);
}
[data-theme="dark"] .site-header,
[data-theme="dark"] .site-footer,
[data-theme="dark"] section,
[data-theme="dark"] .newsletter {
    background: var(--ux-bg) !important;
    color: var(--ux-text);
}
[data-theme="dark"] .site-header.scrolled,
[data-theme="dark"] .site-header.is-scrolled {
    background: var(--ux-glass-bg) !important;
    backdrop-filter: var(--ux-glass-blur);
}
[data-theme="dark"] .product-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .banner-card,
[data-theme="dark"] .pbt-card,
[data-theme="dark"] .vn-card,
[data-theme="dark"] .er-card,
[data-theme="dark"] .vc-treatment-card {
    background: var(--ux-surface) !important;
    color: var(--ux-text);
    border-color: var(--ux-border) !important;
    box-shadow: var(--ux-shadow-1);
}
[data-theme="dark"] .btn,
[data-theme="dark"] .btn-dark,
[data-theme="dark"] .btn-premium {
    color: var(--ux-text);
}
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--ux-surface-2);
    color: var(--ux-text);
    border-color: var(--ux-border);
}
[data-theme="dark"] .mobile-bottom-nav {
    background: var(--ux-glass-bg) !important;
    backdrop-filter: var(--ux-glass-blur);
    border-top-color: var(--ux-border);
}
[data-theme="dark"] .mobile-bottom-nav a {
    color: var(--ux-text-muted);
}
[data-theme="dark"] hr,
[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom {
    border-color: var(--ux-border) !important;
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: var(--ux-text);
}
[data-theme="dark"] a { color: var(--ux-brand); }
[data-theme="dark"] .text-muted { color: var(--ux-text-muted) !important; }

/* ─── 1. THEME-TOGGLE BUTTON (fixed top-right, beside other widgets) ───── */
.aob-theme-toggle {
    position: fixed;
    top: max(18px, env(safe-area-inset-top, 0px));
    right: max(18px, env(safe-area-inset-right, 0px));
    z-index: 9990;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--ux-border);
    background: var(--ux-glass-bg);
    backdrop-filter: var(--ux-glass-blur);
    color: var(--ux-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    box-shadow: var(--ux-shadow-1);
    transition: transform .25s var(--ux-ease), box-shadow .25s ease, background .25s ease;
}
.aob-theme-toggle:hover {
    transform: scale(1.08) rotate(-12deg);
    box-shadow: var(--ux-shadow-2);
}
.aob-theme-toggle .ico-sun { display: none; }
.aob-theme-toggle .ico-moon { display: inline; }
[data-theme="dark"] .aob-theme-toggle .ico-sun  { display: inline; }
[data-theme="dark"] .aob-theme-toggle .ico-moon { display: none; }

/* Hidden on admin (admin has own toolbar) */
body.is-admin .aob-theme-toggle {
    top: 12px;
    right: 78px;
    width: 38px;
    height: 38px;
    font-size: 17px;
}
@media (max-width: 720px) {
    .aob-theme-toggle {
        top: max(72px, env(safe-area-inset-top, 0px));
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 17px;
    }
}

/* ─── 2. ACCOUNT-BEREICH PREMIUM UPGRADE ──────────────────────────────── */
.acc-bs-scope {
    background: var(--ux-bg);
    min-height: 100vh;
}

/* ─── 2.1 Sidebar — Premium Gradient Header + Soft Cards ─────────────── */
.acc-bs-scope .acc-sidebar {
    background: var(--ux-surface);
    border-right: 1px solid var(--ux-border);
    box-shadow: 0 0 0 1px var(--ux-border-soft);
}

.acc-bs-scope .acc-sidebar-head {
    padding: 22px 18px 18px;
    background:
        radial-gradient(120% 80% at 30% 0%, rgba(218,190,146,.18) 0%, transparent 70%),
        linear-gradient(135deg, var(--ux-brand) 0%, #6e8b91 60%, #5e7d83 100%);
    color: #fff;
    border-bottom: 1px solid var(--ux-border);
    position: relative;
    overflow: hidden;
}
.acc-bs-scope .acc-sidebar-head::after {
    content: '';
    position: absolute;
    inset: -50% -10% auto auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,.22) 0%, transparent 60%);
    pointer-events: none;
}
.acc-bs-scope .acc-sidebar-head .acc-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid rgba(255,255,255,.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    overflow: hidden;
    flex-shrink: 0;
}
.acc-bs-scope .acc-sidebar-head .acc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.acc-bs-scope .acc-sidebar-head .acc-name {
    font-weight: 600;
    letter-spacing: .01em;
    font-size: .98rem;
}
.acc-bs-scope .acc-sidebar-head .acc-email {
    color: rgba(255,255,255,.78);
    font-size: .76rem;
}

/* List-group items premium */
.acc-bs-scope .list-group-item {
    background: transparent;
    color: var(--ux-text);
    border: none !important;
    padding: 11px 18px !important;
    font-size: .9rem;
    border-radius: 0;
    transition: background .18s ease, color .18s ease, padding-left .25s var(--ux-ease);
    position: relative;
}
.acc-bs-scope .list-group-item:hover {
    background: var(--ux-surface-2);
    color: var(--ux-brand);
    padding-left: 24px !important;
}
.acc-bs-scope .list-group-item.active {
    background: linear-gradient(90deg, rgba(144,167,172,.16) 0%, transparent 80%);
    color: var(--ux-brand);
    font-weight: 600;
}
.acc-bs-scope .list-group-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--ux-brand);
    border-radius: 0 3px 3px 0;
}
.acc-bs-scope .list-group-item.text-danger:hover {
    background: rgba(194,84,80,.08);
    color: var(--ux-danger) !important;
}

/* ─── 2.2 Premium Admin Button im Account-Sidebar ─────────────────────── */
.acc-bs-scope .list-group-item[href="/admin"],
.acc-bs-scope .list-group-item[href$="/admin"] {
    margin: 12px 12px 6px !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #1d2226 0%, #2a3035 60%, #1d2226 100%) !important;
    color: var(--ux-gold) !important;
    border-radius: var(--ux-radius-sm) !important;
    font-weight: 600 !important;
    letter-spacing: .02em;
    box-shadow: 0 2px 8px rgba(218,190,146,.15), inset 0 1px 0 rgba(255,255,255,.06);
    border: 1px solid rgba(218,190,146,.3) !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.acc-bs-scope .list-group-item[href="/admin"]::after,
.acc-bs-scope .list-group-item[href$="/admin"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(218,190,146,.22) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform .7s ease;
}
.acc-bs-scope .list-group-item[href="/admin"]:hover,
.acc-bs-scope .list-group-item[href$="/admin"]:hover {
    background: linear-gradient(135deg, #2a3035 0%, #353b41 60%, #2a3035 100%) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(218,190,146,.28), inset 0 1px 0 rgba(255,255,255,.1);
    padding-left: 16px !important;
}
.acc-bs-scope .list-group-item[href="/admin"]:hover::after,
.acc-bs-scope .list-group-item[href$="/admin"]:hover::after {
    transform: translateX(100%);
}

/* ─── 2.3 Account-Main Content — Premium Cards ────────────────────────── */
.acc-bs-scope .acc-main {
    background: transparent;
}
.acc-bs-scope .acc-mobile-bar {
    background: var(--ux-glass-bg) !important;
    backdrop-filter: var(--ux-glass-blur);
    border: 1px solid var(--ux-border);
    box-shadow: var(--ux-shadow-1);
    padding: 10px 14px;
}
.acc-bs-scope .acc-quick-actions .profile-action {
    background: var(--ux-surface);
    border: 1px solid var(--ux-border);
    color: var(--ux-text);
    border-radius: var(--ux-radius-sm);
    padding: 8px 14px;
    font-size: .85rem;
    font-weight: 500;
    transition: transform .2s var(--ux-ease), box-shadow .2s ease, background .2s ease, border-color .2s ease;
    box-shadow: var(--ux-shadow-1);
}
.acc-bs-scope .acc-quick-actions .profile-action:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--ux-shadow-2);
    border-color: var(--ux-brand);
    color: var(--ux-brand);
}
.acc-bs-scope .acc-quick-actions .profile-action.active {
    background: linear-gradient(135deg, var(--ux-brand) 0%, #7e9499 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(144,167,172,.35);
}
.acc-bs-scope .acc-quick-actions .profile-action.danger:hover {
    border-color: var(--ux-danger);
    color: var(--ux-danger);
}

/* Cards inside account-main */
.acc-bs-scope .card,
.acc-bs-scope .acc-card,
.acc-bs-scope main > .acc-main > section,
.acc-bs-scope .acc-section {
    background: var(--ux-surface);
    border: 1px solid var(--ux-border);
    border-radius: var(--ux-radius);
    box-shadow: var(--ux-shadow-1);
    transition: box-shadow .25s ease, transform .25s var(--ux-ease);
}
.acc-bs-scope .card:hover {
    box-shadow: var(--ux-shadow-2);
}

/* Pretty section headers */
.acc-bs-scope h1, .acc-bs-scope h2, .acc-bs-scope h3 {
    color: var(--ux-text);
    letter-spacing: -.01em;
}
.acc-bs-scope h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 12px;
}
.acc-bs-scope h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--ux-brand), var(--ux-gold));
    border-radius: 2px;
}

/* Tables in account */
.acc-bs-scope table {
    background: var(--ux-surface);
    border-radius: var(--ux-radius);
    overflow: hidden;
    box-shadow: var(--ux-shadow-1);
    border-collapse: separate;
    border-spacing: 0;
}
.acc-bs-scope th {
    background: var(--ux-surface-2);
    color: var(--ux-text-muted);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ux-border);
}
.acc-bs-scope td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ux-border-soft);
    color: var(--ux-text);
}

/* Forms in account */
.acc-bs-scope .form-control,
.acc-bs-scope .form-select,
.acc-bs-scope input[type=text],
.acc-bs-scope input[type=email],
.acc-bs-scope input[type=tel],
.acc-bs-scope input[type=password],
.acc-bs-scope input[type=number],
.acc-bs-scope textarea,
.acc-bs-scope select {
    background: var(--ux-surface);
    border: 1px solid var(--ux-border);
    border-radius: var(--ux-radius-sm);
    padding: 10px 14px;
    color: var(--ux-text);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.acc-bs-scope .form-control:focus,
.acc-bs-scope input:focus,
.acc-bs-scope textarea:focus,
.acc-bs-scope select:focus {
    border-color: var(--ux-brand);
    box-shadow: 0 0 0 4px rgba(144,167,172,.18);
    outline: none;
}

/* Buttons in account */
.acc-bs-scope .btn-primary,
.acc-bs-scope .btn-dark {
    background: linear-gradient(135deg, var(--ux-brand) 0%, #7e9499 100%);
    border: none;
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--ux-radius-sm);
    font-weight: 500;
    letter-spacing: .01em;
    box-shadow: 0 2px 8px rgba(144,167,172,.3);
    transition: transform .2s var(--ux-ease), box-shadow .2s ease;
}
.acc-bs-scope .btn-primary:hover,
.acc-bs-scope .btn-dark:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(144,167,172,.4);
}

/* ─── 3. ADMIN-BEREICH PREMIUM UPGRADE ────────────────────────────────── */
body.is-admin {
    background: var(--ux-bg);
}
body.is-admin .dashboard {
    background: transparent;
}

/* Sidebar */
body.is-admin .dashboard .sidebar {
    background: var(--ux-surface) !important;
    border-right: 1px solid var(--ux-border);
    box-shadow: var(--ux-shadow-1);
}
body.is-admin .dashboard .sidebar a {
    padding: 9px 22px;
    border-radius: 0;
    color: var(--ux-text);
    font-size: .88rem;
    transition: background .18s ease, color .18s ease, padding-left .25s var(--ux-ease);
    position: relative;
    border: none;
}
body.is-admin .dashboard .sidebar a:hover {
    background: var(--ux-surface-2);
    color: var(--ux-brand);
    padding-left: 28px;
}
body.is-admin .dashboard .sidebar a.active {
    background: linear-gradient(90deg, rgba(144,167,172,.18) 0%, transparent 80%);
    color: var(--ux-brand);
    font-weight: 600;
}
body.is-admin .dashboard .sidebar a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--ux-brand);
    border-radius: 0 3px 3px 0;
}

/* Main content area */
body.is-admin .dashboard-main {
    background: transparent;
    padding-top: 1rem;
}
body.is-admin .dashboard-main h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--ux-text);
    letter-spacing: -.01em;
    padding-bottom: 14px;
    margin-bottom: 1.2rem;
    position: relative;
    border: none;
}
body.is-admin .dashboard-main h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--ux-brand), var(--ux-gold));
    border-radius: 2px;
}

/* Cards / panels in admin */
body.is-admin .card,
body.is-admin .panel,
body.is-admin .admin-card,
body.is-admin .dashboard-card,
body.is-admin .data-card,
body.is-admin .stat-card {
    background: var(--ux-surface);
    border: 1px solid var(--ux-border);
    border-radius: var(--ux-radius);
    box-shadow: var(--ux-shadow-1);
    transition: box-shadow .25s ease, transform .2s var(--ux-ease);
}
body.is-admin .card:hover,
body.is-admin .panel:hover,
body.is-admin .stat-card:hover {
    box-shadow: var(--ux-shadow-2);
    transform: translateY(-2px);
}

/* Tables admin */
body.is-admin table {
    background: var(--ux-surface);
    border-radius: var(--ux-radius);
    overflow: hidden;
    box-shadow: var(--ux-shadow-1);
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
body.is-admin th {
    background: var(--ux-surface-2);
    color: var(--ux-text-muted);
    font-weight: 600;
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ux-border);
    text-align: left;
}
body.is-admin td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--ux-border-soft);
    color: var(--ux-text);
}
body.is-admin tbody tr {
    transition: background .15s ease;
}
body.is-admin tbody tr:hover {
    background: var(--ux-surface-2);
}

/* Forms in admin */
body.is-admin .form-control,
body.is-admin input[type=text],
body.is-admin input[type=email],
body.is-admin input[type=tel],
body.is-admin input[type=password],
body.is-admin input[type=number],
body.is-admin input[type=search],
body.is-admin input[type=date],
body.is-admin input[type=time],
body.is-admin input[type=datetime-local],
body.is-admin textarea,
body.is-admin select {
    background: var(--ux-surface);
    border: 1px solid var(--ux-border);
    border-radius: var(--ux-radius-sm);
    padding: 10px 14px;
    color: var(--ux-text);
    font-size: .9rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
body.is-admin input:focus,
body.is-admin textarea:focus,
body.is-admin select:focus {
    border-color: var(--ux-brand);
    box-shadow: 0 0 0 4px rgba(144,167,172,.18);
    outline: none;
}
body.is-admin label {
    color: var(--ux-text-muted);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .02em;
    margin-bottom: 4px;
}

/* Buttons admin */
body.is-admin button,
body.is-admin .btn {
    border-radius: var(--ux-radius-sm);
    font-weight: 500;
    letter-spacing: .01em;
    transition: transform .2s var(--ux-ease), box-shadow .2s ease;
}
body.is-admin .btn-primary,
body.is-admin button[type=submit].primary,
body.is-admin .btn-dark {
    background: linear-gradient(135deg, var(--ux-brand) 0%, #7e9499 100%);
    border: none;
    color: #fff;
    padding: 9px 20px;
    box-shadow: 0 2px 8px rgba(144,167,172,.3);
}
body.is-admin .btn-primary:hover,
body.is-admin button[type=submit].primary:hover,
body.is-admin .btn-dark:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(144,167,172,.4);
}

/* Profile sidebar (right column) — premium */
body.is-admin .profile-sidebar {
    background: var(--ux-surface) !important;
    border-left: 1px solid var(--ux-border);
    box-shadow: -2px 0 16px rgba(0,0,0,.04);
}
body.is-admin .profile-header {
    background:
        radial-gradient(120% 80% at 30% 0%, rgba(218,190,146,.18) 0%, transparent 70%),
        linear-gradient(135deg, var(--ux-brand) 0%, #6e8b91 100%);
    color: #fff;
    border-radius: var(--ux-radius);
    padding: 20px 16px;
    margin: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
body.is-admin .profile-header .profile-avatar {
    margin: 0 auto 10px;
    border: 2px solid rgba(255,255,255,.4);
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
body.is-admin .profile-action {
    background: var(--ux-surface);
    border: 1px solid var(--ux-border);
    color: var(--ux-text);
    border-radius: var(--ux-radius-sm);
    padding: 9px 14px;
    margin: 4px 0;
    font-size: .86rem;
    transition: transform .2s var(--ux-ease), box-shadow .2s ease, border-color .2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
body.is-admin .profile-action:hover {
    transform: translateX(2px);
    box-shadow: var(--ux-shadow-1);
    border-color: var(--ux-brand);
    color: var(--ux-brand);
}
body.is-admin .profile-action.active {
    background: linear-gradient(135deg, var(--ux-brand) 0%, #7e9499 100%);
    color: #fff;
    border-color: transparent;
}
body.is-admin .profile-action.danger:hover {
    border-color: var(--ux-danger);
    color: var(--ux-danger);
}

/* Stat tiles / dashboard tiles */
body.is-admin .stat-tile,
body.is-admin .stat-card {
    background: var(--ux-surface);
    border: 1px solid var(--ux-border);
    border-radius: var(--ux-radius);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}
body.is-admin .stat-tile::before,
body.is-admin .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ux-brand), var(--ux-gold));
    border-radius: var(--ux-radius) var(--ux-radius) 0 0;
}

/* ─── 4. SKELETON LOADER ANIMATIONS (graceful empty/loading) ─────────── */
.aob-skel {
    background: linear-gradient(90deg, var(--ux-surface-2) 0%, var(--ux-border-soft) 50%, var(--ux-surface-2) 100%);
    background-size: 200% 100%;
    animation: aob-skel-shine 1.6s linear infinite;
    border-radius: 8px;
    color: transparent;
    user-select: none;
}
@keyframes aob-skel-shine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── 5. MICROINTERACTIONS — Subtle Premium Polish ────────────────────── */
.acc-bs-scope a:focus-visible,
body.is-admin a:focus-visible,
.acc-bs-scope button:focus-visible,
body.is-admin button:focus-visible {
    outline: 2px solid var(--ux-brand);
    outline-offset: 2px;
    border-radius: 4px;
}

.acc-bs-scope img,
body.is-admin .dashboard-main img {
    border-radius: 8px;
}

/* ─── 6. MOBILE RESPONSIVE — Premium even on small screens ────────────── */
@media (max-width: 768px) {
    .acc-bs-scope .acc-sidebar-head {
        padding: 16px 14px;
    }
    .acc-bs-scope .acc-sidebar-head .acc-avatar {
        width: 44px;
        height: 44px;
        font-size: .92rem;
    }
    .acc-bs-scope .list-group-item {
        padding: 12px 16px !important;
        font-size: .92rem;
    }
    .acc-bs-scope .acc-quick-actions {
        gap: 8px !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 4px;
    }
    .acc-bs-scope .acc-quick-actions .profile-action {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .acc-bs-scope h1 {
        font-size: 1.35rem;
    }
    body.is-admin .dashboard-main {
        padding: 1rem .85rem;
    }
    body.is-admin .dashboard-main h1 {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .acc-bs-scope *,
    body.is-admin * {
        transition: none !important;
        animation: none !important;
    }
}

/* ─── 7. ADVISOR-WIDGET — Sitewide premium polish ─────────────────────── */
.aob-advisor-fab {
    transition: transform .28s var(--ux-ease), box-shadow .28s ease !important;
}
.aob-advisor-fab:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 12px 28px rgba(144,167,172,.45) !important;
}
/* Hide advisor on admin pages */
body.is-admin .aob-advisor-fab,
body.is-admin .aob-advisor-overlay,
body.is-admin .aob-advisor-panel {
    display: none !important;
}

/* ─── 8. PRINT MODE ─────────────────────────────────────────────────── */
@media print {
    .aob-theme-toggle,
    .aob-advisor-fab,
    .aob-floating-cta,
    .aob-sticky-mobile-cta {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   PART II — DEEP CONTENT POLISH (Wave 87BW.2)
   Tab-Inhalte + Sidebar-Upgrade Phase 2
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── 9. SIDEBAR — Phase 2 Upgrade (Glas, Group-Headers, Search) ────── */
.acc-bs-scope .acc-sidebar {
    background: linear-gradient(180deg, var(--ux-surface) 0%, var(--ux-bg) 100%) !important;
    backdrop-filter: var(--ux-glass-blur);
    padding-bottom: 24px;
}
.acc-bs-scope .acc-sidebar .list-group-flush {
    padding: 8px 0;
}
.acc-bs-scope .acc-sidebar .list-group-item {
    margin: 0 8px;
    border-radius: var(--ux-radius-sm) !important;
    font-weight: 500;
}
.acc-bs-scope .acc-sidebar .list-group-item:hover {
    background: var(--ux-surface-2);
    padding-left: 18px !important;
}
.acc-bs-scope .acc-sidebar .list-group-item.active {
    background: linear-gradient(90deg, rgba(144,167,172,.2) 0%, rgba(218,190,146,.1) 100%);
    box-shadow: 0 2px 8px rgba(144,167,172,.15);
}
body.is-admin .dashboard .sidebar {
    background: linear-gradient(180deg, var(--ux-surface) 0%, var(--ux-bg) 100%) !important;
}
body.is-admin .dashboard .sidebar a {
    margin: 2px 10px;
    border-radius: var(--ux-radius-sm);
}
body.is-admin .dashboard .sidebar a:hover {
    padding-left: 22px;
}
body.is-admin #adminGlobalSearch {
    border-radius: var(--ux-radius-sm) !important;
    background: var(--ux-surface-2) !important;
    border: 1px solid var(--ux-border) !important;
    padding: 10px 14px !important;
    font-size: .88rem !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}
body.is-admin #adminGlobalSearch:focus {
    border-color: var(--ux-brand) !important;
    box-shadow: 0 0 0 4px rgba(144,167,172,.18);
    outline: none;
}

/* ─── 10. STAT-TILES — Premium Hero-Tiles für Dashboards ─────────────── */
.acc-bs-scope .card,
body.is-admin .service-card,
body.is-admin .stat-tile,
body.is-admin .kpi-tile {
    border-radius: var(--ux-radius) !important;
    overflow: hidden;
    position: relative;
    background: var(--ux-surface) !important;
    border: 1px solid var(--ux-border) !important;
    box-shadow: var(--ux-shadow-1) !important;
    transition: transform .25s var(--ux-ease), box-shadow .25s ease !important;
}
.acc-bs-scope .card:hover,
body.is-admin .service-card:hover,
body.is-admin .stat-tile:hover,
body.is-admin .kpi-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--ux-shadow-2) !important;
}
body.is-admin .stat-tile::before,
body.is-admin .kpi-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ux-brand) 0%, var(--ux-gold) 100%);
    opacity: .8;
}
body.is-admin .stat-tile.is-alert::before,
body.is-admin .kpi-tile.is-alert::before {
    background: linear-gradient(90deg, var(--ux-danger), #e8857d) !important;
}

.acc-bs-scope .stat-tile-value,
body.is-admin .stat-tile-value,
body.is-admin .kpi-value {
    font-size: 2.4rem !important;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ux-brand), var(--ux-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
    margin: 6px 0;
    letter-spacing: -.02em;
}
body.is-admin .stat-tile-label,
body.is-admin .kpi-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ux-text-muted);
    display: block;
    margin-bottom: 4px;
}
body.is-admin .stat-tile-meta,
body.is-admin .kpi-meta {
    font-size: .78rem;
    color: var(--ux-text-faint);
    display: block;
    margin-top: 4px;
}

/* ─── 11. QUICK-ACTIONS (Admin Dashboard Action-Tiles) ─────────────── */
body.is-admin .quick-action {
    background: var(--ux-surface);
    border: 1px solid var(--ux-border);
    border-radius: var(--ux-radius);
    padding: 18px 20px;
    text-decoration: none;
    color: var(--ux-text);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform .25s var(--ux-ease), box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
}
body.is-admin .quick-action::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%) translateX(8px);
    color: var(--ux-brand);
    font-size: 1.3rem;
    opacity: 0;
    transition: transform .3s var(--ux-ease), opacity .2s ease;
}
body.is-admin .quick-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--ux-shadow-2);
    border-color: var(--ux-brand);
}
body.is-admin .quick-action:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
body.is-admin .quick-action .qa-icon {
    font-size: 1.8rem;
    line-height: 1;
}
body.is-admin .quick-action strong {
    font-weight: 600;
    color: var(--ux-text);
    font-size: .98rem;
}
body.is-admin .quick-action p {
    font-size: .82rem;
    color: var(--ux-text-muted);
    margin: 0;
}

/* ─── 12. CARDS Inner Polish (account.card, admin.service-card) ─────── */
.acc-bs-scope .card-body {
    padding: 22px 20px;
}
.acc-bs-scope .card.text-center .card-body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ux-text);
    margin: 8px 0;
    letter-spacing: -.005em;
}
.acc-bs-scope .card.text-center .stat-tile-value {
    font-size: 2.6rem !important;
}
.acc-bs-scope .card .btn-outline-secondary {
    border: 1px solid var(--ux-border);
    color: var(--ux-text);
    background: transparent;
    border-radius: var(--ux-radius-sm);
    padding: 7px 16px;
    font-size: .85rem;
    transition: all .2s ease;
}
.acc-bs-scope .card .btn-outline-secondary:hover {
    background: var(--ux-brand);
    color: #fff;
    border-color: var(--ux-brand);
}

/* ─── 13. FORMS — Floating Labels Feel ───────────────────────────── */
.acc-bs-scope .form-label,
body.is-admin .form-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ux-text-muted);
    letter-spacing: .03em;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.acc-bs-scope .form-control,
.acc-bs-scope .form-select,
body.is-admin .form-control,
body.is-admin .form-select {
    font-size: .92rem;
    padding: 11px 14px;
    line-height: 1.4;
}
/* Wave 87BW.39: iOS-Zoom-Prevention — Mobile MUSS ≥16px sein, sonst zoomt iOS auf Focus. */
@media (max-width: 768px) {
    .acc-bs-scope .form-control,
    .acc-bs-scope .form-select,
    body.is-admin .form-control,
    body.is-admin .form-select,
    body.is-admin input[type="text"],
    body.is-admin input[type="email"],
    body.is-admin input[type="tel"],
    body.is-admin input[type="number"],
    body.is-admin input[type="search"],
    body.is-admin input[type="password"],
    body.is-admin textarea,
    body.is-admin select {
        font-size: 16px !important;
    }
    /* Wave 87BW.40: Touch-Targets ≥44px für alle interaktiven Admin/Account-Elemente */
    body.is-admin .sidebar > a,
    body.is-admin .dashboard-toolbar a,
    body.is-admin .btn-sm,
    body.is-admin .profile-action,
    .acc-bs-scope .list-group-item-action,
    .acc-bs-scope .btn-sm,
    .acc-quick-actions .profile-action {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
}
.acc-bs-scope .form-control:disabled,
body.is-admin .form-control:disabled {
    background: var(--ux-surface-2);
    color: var(--ux-text-faint);
    cursor: not-allowed;
    opacity: 1;
}
.acc-bs-scope textarea.form-control,
body.is-admin textarea.form-control {
    min-height: 90px;
    line-height: 1.55;
}

/* Field-Groups w/ icon prefix */
.acc-bs-scope .input-group,
body.is-admin .input-group {
    border-radius: var(--ux-radius-sm);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(20,20,20,.04);
}
.acc-bs-scope .input-group-text,
body.is-admin .input-group-text {
    background: var(--ux-surface-2);
    border: 1px solid var(--ux-border);
    color: var(--ux-text-muted);
}

/* ─── 14. ALERTS — Premium Inline-Notifications ────────────────────── */
.acc-bs-scope .alert,
body.is-admin .alert {
    border: 1px solid transparent;
    border-radius: var(--ux-radius-sm);
    padding: 13px 18px;
    box-shadow: var(--ux-shadow-1);
    position: relative;
    padding-left: 46px;
    font-size: .92rem;
}
.acc-bs-scope .alert::before,
body.is-admin .alert::before {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    line-height: 1;
}
.acc-bs-scope .alert-success,
body.is-admin .alert-success {
    background: rgba(106,166,102,.12);
    border-color: rgba(106,166,102,.3);
    color: var(--ux-success);
}
.acc-bs-scope .alert-success::before,
body.is-admin .alert-success::before { content: '✓'; }

.acc-bs-scope .alert-danger,
body.is-admin .alert-danger {
    background: rgba(194,84,80,.1);
    border-color: rgba(194,84,80,.3);
    color: var(--ux-danger);
}
.acc-bs-scope .alert-danger::before,
body.is-admin .alert-danger::before { content: '⚠'; }

.acc-bs-scope .alert-warning,
body.is-admin .alert-warning {
    background: rgba(217,162,60,.12);
    border-color: rgba(217,162,60,.3);
    color: var(--ux-warning);
}
.acc-bs-scope .alert-warning::before,
body.is-admin .alert-warning::before { content: '⚡'; }

.acc-bs-scope .alert-info,
body.is-admin .alert-info {
    background: rgba(144,167,172,.12);
    border-color: rgba(144,167,172,.3);
    color: var(--ux-brand);
}
.acc-bs-scope .alert-info::before,
body.is-admin .alert-info::before { content: 'ℹ'; }

/* ─── 15. BADGES — Soft, Modern Pills ────────────────────────────── */
.acc-bs-scope .badge,
body.is-admin .badge {
    padding: 5px 11px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .02em;
    text-transform: none;
    border: 1px solid transparent;
}
.acc-bs-scope .badge.text-bg-warning,
body.is-admin .badge.text-bg-warning {
    background: rgba(217,162,60,.15) !important;
    color: var(--ux-warning) !important;
    border-color: rgba(217,162,60,.3);
}
.acc-bs-scope .badge.badge-paid,
body.is-admin .badge.badge-paid {
    background: rgba(106,166,102,.15) !important;
    color: var(--ux-success) !important;
    border-color: rgba(106,166,102,.3);
}
.acc-bs-scope .badge.badge-pending,
body.is-admin .badge.badge-pending {
    background: rgba(217,162,60,.15) !important;
    color: var(--ux-warning) !important;
}
.acc-bs-scope .badge.badge-failed,
.acc-bs-scope .badge.badge-cancelled,
body.is-admin .badge.badge-failed,
body.is-admin .badge.badge-cancelled {
    background: rgba(194,84,80,.15) !important;
    color: var(--ux-danger) !important;
}

/* ─── 16. TABLES — Premium Data-Tables w/ Responsive Cards ───────── */
.acc-bs-scope .table {
    margin: 0;
    background: var(--ux-surface);
    border-radius: var(--ux-radius);
    overflow: hidden;
    box-shadow: var(--ux-shadow-1);
}
.acc-bs-scope .table thead th {
    background: var(--ux-surface-2);
    color: var(--ux-text-muted);
    border-bottom: 1px solid var(--ux-border);
    font-weight: 600;
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 13px 18px;
}
.acc-bs-scope .table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--ux-border-soft);
    vertical-align: middle;
}
.acc-bs-scope .table-hover tbody tr {
    transition: background .15s ease;
}
.acc-bs-scope .table-hover tbody tr:hover {
    background: var(--ux-surface-2);
}
.acc-bs-scope .table-striped tbody tr:nth-of-type(odd) {
    background: var(--ux-surface);
}
.acc-bs-scope .table-striped tbody tr:nth-of-type(even) {
    background: rgba(244,241,236,.4);
}
[data-theme="dark"] .acc-bs-scope .table-striped tbody tr:nth-of-type(even) {
    background: rgba(36,42,47,.5);
}

/* Responsive cards (table → cards on mobile) */
@media (max-width: 640px) {
    .acc-bs-scope .table.responsive-cards thead { display: none; }
    .acc-bs-scope .table.responsive-cards,
    .acc-bs-scope .table.responsive-cards tbody,
    .acc-bs-scope .table.responsive-cards tr,
    .acc-bs-scope .table.responsive-cards td {
        display: block;
        width: 100%;
    }
    .acc-bs-scope .table.responsive-cards tr {
        background: var(--ux-surface);
        border: 1px solid var(--ux-border);
        border-radius: var(--ux-radius);
        padding: 14px;
        margin-bottom: 12px;
        box-shadow: var(--ux-shadow-1);
    }
    .acc-bs-scope .table.responsive-cards td {
        border: none;
        padding: 6px 0;
        position: relative;
        padding-left: 42%;
        text-align: right;
    }
    .acc-bs-scope .table.responsive-cards td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 6px;
        font-weight: 600;
        font-size: .76rem;
        color: var(--ux-text-muted);
        text-transform: uppercase;
        letter-spacing: .04em;
    }
}

/* ─── 17. EMPTY STATES — Schöne leere Listen ──────────────────────── */
.acc-bs-scope .text-center.text-muted,
body.is-admin .empty-state {
    padding: 50px 24px !important;
    background: var(--ux-surface);
    border: 1px dashed var(--ux-border);
    border-radius: var(--ux-radius);
    color: var(--ux-text-muted);
}
.acc-bs-scope .text-center.text-muted p,
body.is-admin .empty-state p {
    color: var(--ux-text-muted) !important;
    font-size: .95rem;
}
.acc-bs-scope .text-center.text-muted a,
body.is-admin .empty-state a {
    color: var(--ux-brand);
    font-weight: 600;
}

/* ─── 18. CONTENT SPACING & TYPOGRAPHY ────────────────────────────── */
.acc-bs-scope .acc-main > h1:first-child,
body.is-admin .dashboard-main > h1:first-child {
    margin-top: 0;
}
.acc-bs-scope .acc-main > p,
body.is-admin .dashboard-main > p {
    color: var(--ux-text-muted);
    font-size: .95rem;
    margin-bottom: 1.5rem;
}
.acc-bs-scope h3,
body.is-admin .dashboard-main h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ux-text);
    letter-spacing: -.005em;
    padding-left: 12px;
    border-left: 3px solid var(--ux-brand);
}
.acc-bs-scope h3:first-of-type,
body.is-admin .dashboard-main h3:first-of-type {
    margin-top: 1.5rem;
}

/* ─── 19. AVATAR + IMAGES ────────────────────────────────────────── */
.acc-bs-scope img.avatar,
.acc-bs-scope .avatar img,
body.is-admin img.avatar,
body.is-admin .avatar img {
    border-radius: 50%;
    border: 2px solid var(--ux-surface);
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

/* ─── 20. SCROLLBARS ─────────────────────────────────────────────── */
.acc-bs-scope ::-webkit-scrollbar,
body.is-admin ::-webkit-scrollbar { width: 10px; height: 10px; }
.acc-bs-scope ::-webkit-scrollbar-track,
body.is-admin ::-webkit-scrollbar-track { background: var(--ux-surface-2); }
.acc-bs-scope ::-webkit-scrollbar-thumb,
body.is-admin ::-webkit-scrollbar-thumb {
    background: var(--ux-border);
    border-radius: 5px;
}
.acc-bs-scope ::-webkit-scrollbar-thumb:hover,
body.is-admin ::-webkit-scrollbar-thumb:hover { background: var(--ux-brand); }

/* ─── 21. FOCUS RINGS uniform ─────────────────────────────────────── */
.acc-bs-scope .btn:focus,
body.is-admin .btn:focus,
.acc-bs-scope input:focus,
body.is-admin input:focus {
    box-shadow: 0 0 0 4px rgba(144,167,172,.2) !important;
}

/* ─── 22. CHECKBOXES + RADIOS premium ─────────────────────────────── */
.acc-bs-scope .form-check-input,
body.is-admin .form-check-input {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--ux-border);
    background-color: var(--ux-surface);
    cursor: pointer;
    transition: all .2s ease;
}
.acc-bs-scope .form-check-input:checked,
body.is-admin .form-check-input:checked {
    background-color: var(--ux-brand);
    border-color: var(--ux-brand);
}
.acc-bs-scope .form-check-input:focus,
body.is-admin .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(144,167,172,.2);
    border-color: var(--ux-brand);
}

/* ─── 23. PROGRESS BARS ──────────────────────────────────────────── */
.acc-bs-scope .progress,
body.is-admin .progress {
    background: var(--ux-surface-2);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}
.acc-bs-scope .progress-bar,
body.is-admin .progress-bar {
    background: linear-gradient(90deg, var(--ux-brand), var(--ux-gold));
    border-radius: 999px;
    transition: width .6s var(--ux-ease);
}

/* ─── 24. SIDEBAR — Touch-Friendly Mobile + Bigger Items ─────────── */
@media (max-width: 768px) {
    .acc-bs-scope .acc-sidebar .list-group-item {
        font-size: 1rem;
        padding: 14px 18px !important;
    }
    .acc-bs-scope .acc-sidebar-head .acc-name {
        font-size: 1rem;
    }
    body.is-admin .dashboard .sidebar a {
        padding: 12px 22px;
        font-size: .94rem;
    }
}

/* ─── 25. DARK-MODE inner content polish ─────────────────────────── */
[data-theme="dark"] .acc-bs-scope .card,
[data-theme="dark"] body.is-admin .service-card,
[data-theme="dark"] body.is-admin .stat-tile,
[data-theme="dark"] body.is-admin .kpi-tile,
[data-theme="dark"] body.is-admin .quick-action {
    background: var(--ux-surface) !important;
    border-color: var(--ux-border) !important;
}
[data-theme="dark"] .acc-bs-scope .table {
    background: var(--ux-surface);
}
[data-theme="dark"] .acc-bs-scope .table thead th {
    background: var(--ux-surface-2);
    color: var(--ux-text-muted);
}
[data-theme="dark"] .acc-bs-scope .table tbody td {
    color: var(--ux-text);
}
[data-theme="dark"] .acc-bs-scope .acc-mobile-bar {
    background: var(--ux-surface-2) !important;
    color: var(--ux-text);
}

/* ─── 26. CARDS gain subtle gradient on inner ─────────────────────── */
.acc-bs-scope .card.text-center,
body.is-admin .stat-tile {
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(218,190,146,.05) 0%, transparent 60%),
        var(--ux-surface) !important;
}
[data-theme="dark"] .acc-bs-scope .card.text-center,
[data-theme="dark"] body.is-admin .stat-tile {
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(218,190,146,.08) 0%, transparent 60%),
        var(--ux-surface) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   PART III — Wave 87BW.3 HOTFIX
   Bootstrap-Grid Schutz + Kontrast-Boost + Public-Site bleibt unberührt
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── 28. Bootstrap-Grid darf NICHT von .card display: zerstört werden ── */
.acc-bs-scope .row { display: flex; flex-wrap: wrap; }
.acc-bs-scope .row > .col,
.acc-bs-scope .row > [class*="col-"] { display: flex; flex-direction: column; }
.acc-bs-scope .row .card { width: 100%; display: flex; flex-direction: column; }
.acc-bs-scope .row .card .card-body { flex: 1 1 auto; }

/* ─── 29. STAT-Numbers im Account — Kontrast & Lesbarkeit ──────────── */
.acc-bs-scope .card.text-center .card-body {
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.acc-bs-scope .card.text-center .card-body > div[class*="stat-tile"],
.acc-bs-scope .card.text-center .card-body > div[style*="font-size"] {
    font-weight: 800;
    background: linear-gradient(135deg, var(--ux-brand) 0%, var(--ux-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    font-size: 2.8rem !important;
    letter-spacing: -.025em;
}
.acc-bs-scope .card.text-center h4 {
    color: var(--ux-text);
    font-size: 1rem;
    font-weight: 600;
    margin: 8px 0 4px;
}
.acc-bs-scope .card.text-center p.text-muted {
    color: var(--ux-text-muted) !important;
    font-size: .82rem;
    margin: 0 0 14px;
    line-height: 1.4;
}

/* ─── 30. PUBLIC-FRONTEND: Bei [data-theme=light] (Default) NICHTS ändern */
/* Public-pages haben eigene CSS — wir greifen NUR ein wenn dark gewählt UND
 * NUR im /account oder /admin Kontext. Public site bleibt unangetastet. */
:root:not([data-theme]) body:not(.acc-bs-page):not(.is-admin),
[data-theme="light"] body:not(.acc-bs-page):not(.is-admin) {
    /* Public-Site bleibt komplett unverändert */
}

/* Dark-Mode Public-Overrides nur wenn user EXPLIZIT dark gewählt hat */
[data-theme="dark"] body:not(.is-admin):not(.acc-bs-page) {
    background: var(--ux-bg);
    color: var(--ux-text);
}

/* ─── 31. Sidebar — sicherstellen dass Items volle Höhe behalten ────── */
.acc-bs-scope .acc-sidebar .acc-sidebar-sticky {
    display: flex;
    flex-direction: column;
}
.acc-bs-scope .acc-sidebar .list-group-flush {
    flex: 1 1 auto;
    overflow-y: auto;
}

/* ═══════════════════════════════════════════════════════════════════════
   PART IV — Wave 87BW.4 — One-UI Sidebar + Hero-Carousel-Centering
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── 33. One-UI Sidebar — breiter, abgerundet, premium ─────────────── */
@media (min-width: 768px) {
    .acc-bs-scope .col-md-3.acc-sidebar {
        flex: 0 0 auto;
        width: 280px !important;
        max-width: 280px;
    }
    .acc-bs-scope .col-md-9.acc-main {
        flex: 1 1 0;
        max-width: calc(100% - 280px);
    }
}
@media (min-width: 992px) {
    .acc-bs-scope .col-lg-2.acc-sidebar {
        flex: 0 0 auto;
        width: 300px !important;
        max-width: 300px;
    }
    .acc-bs-scope .col-lg-10.acc-main {
        flex: 1 1 0;
        max-width: calc(100% - 300px);
    }
}

/* Wave 87BW.62: Desktop-only — diese Regeln haben auf Mobile die offcanvas-md
 * Sidebar in den Document-Flow gezwungen (position:sticky + height:fit-content
 * uebersteuerte Bootstrap's offcanvas-fixed-Verhalten), wodurch der Main-Content
 * erst nach 1400+px Sidebar-Hoehe sichtbar wurde. Jetzt strikt md+ only. */
@media (min-width: 768px) {
    .acc-bs-scope .acc-sidebar {
        margin: 14px 0 14px 14px;
        border-radius: var(--ux-radius-lg) !important;
        overflow: hidden;
        box-shadow: var(--ux-shadow-2);
        border: 1px solid var(--ux-border) !important;
        background: var(--ux-surface) !important;
        height: fit-content;
        position: sticky;
        top: 14px;
    }
}
.acc-bs-scope .acc-sidebar-head {
    border-radius: 0 !important;
    padding: 26px 22px 22px !important;
    background:
        radial-gradient(120% 80% at 30% 0%, rgba(218,190,146,.25) 0%, transparent 70%),
        linear-gradient(135deg, var(--ux-brand) 0%, #6e8b91 60%, #5e7d83 100%) !important;
}
.acc-bs-scope .acc-sidebar-head .acc-avatar {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.5) !important;
}
.acc-bs-scope .acc-sidebar-head .acc-name {
    font-size: 1.02rem !important;
    font-weight: 700 !important;
}

.acc-bs-scope .acc-sidebar .list-group-flush {
    padding: 12px 10px;
}
.acc-bs-scope .acc-sidebar .list-group-item {
    margin: 2px 0 !important;
    padding: 12px 18px !important;
    border-radius: var(--ux-radius) !important;
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .005em;
    transition: background .2s ease, color .2s ease, padding-left .25s var(--ux-ease), transform .2s ease;
}
.acc-bs-scope .acc-sidebar .list-group-item:hover {
    background: var(--ux-surface-2);
    transform: translateX(2px);
    padding-left: 20px !important;
}
.acc-bs-scope .acc-sidebar .list-group-item.active {
    background: linear-gradient(135deg, rgba(144,167,172,.22) 0%, rgba(218,190,146,.12) 100%);
    color: var(--ux-brand);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(144,167,172,.18);
}
.acc-bs-scope .acc-sidebar .list-group-item.active::before {
    left: 6px !important;
    top: 14px !important;
    bottom: 14px !important;
    width: 3px !important;
    border-radius: 2px !important;
    background: linear-gradient(180deg, var(--ux-brand), var(--ux-gold)) !important;
}

/* Admin Sidebar — One-UI rounded version */
body.is-admin .dashboard .sidebar {
    margin: 14px 0 14px 14px;
    border-radius: var(--ux-radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--ux-shadow-2);
    border: 1px solid var(--ux-border) !important;
    height: calc(100vh - 28px);
    position: sticky;
    top: 14px;
    padding-top: 18px;
    width: 280px !important;
}
body.is-admin .dashboard .sidebar a {
    margin: 2px 10px !important;
    padding: 11px 18px !important;
    border-radius: var(--ux-radius) !important;
    font-size: .9rem;
    font-weight: 500;
    transition: background .2s ease, color .2s ease, padding-left .25s var(--ux-ease), transform .2s ease;
}
body.is-admin .dashboard .sidebar a:hover {
    background: var(--ux-surface-2);
    transform: translateX(2px);
    padding-left: 20px !important;
}
body.is-admin .dashboard .sidebar a.active {
    background: linear-gradient(135deg, rgba(144,167,172,.22) 0%, rgba(218,190,146,.12) 100%);
    color: var(--ux-brand);
    font-weight: 700;
}

/* ─── 34. HERO-CAROUSEL — Images centered + visible ──────────────── */
.hero {
    border-radius: 0 !important;
    background: linear-gradient(135deg, #f4f1ec 0%, #e6e2d8 100%);
}
.hero-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f4f1ec 0%, #e6e2d8 100%);
}
.hero-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    max-width: 100% !important;
    display: block;
}
/* If image doesn't fill nicely, use a contain layout */
.hero-slide.is-portrait img {
    object-fit: contain !important;
    max-height: 100%;
    max-width: min(100%, 1400px);
    margin: 0 auto;
}

/* On mobile reduce hero height for better full-image visibility */
@media (max-width: 768px) {
    .hero {
        height: clamp(280px, 70vw, 460px) !important;
    }
}

/* ─── 35. TAB-INHALTE — rounded One-UI Cards ───────────────────── */
.acc-bs-scope .acc-main {
    padding: 22px 24px !important;
}
.acc-bs-scope .acc-main > section,
.acc-bs-scope .acc-main > .acc-card,
.acc-bs-scope .acc-main > .acc-section {
    border-radius: var(--ux-radius-lg) !important;
    padding: 24px 26px;
    margin-bottom: 16px;
}
.acc-bs-scope .card {
    border-radius: var(--ux-radius-lg) !important;
}
body.is-admin .card,
body.is-admin .stat-tile,
body.is-admin .kpi-tile,
body.is-admin .service-card,
body.is-admin .quick-action {
    border-radius: var(--ux-radius-lg) !important;
}

/* Main content area in admin — wider gap and rounded */
body.is-admin .dashboard-main {
    padding: 22px 24px !important;
}

/* Inputs more rounded */
.acc-bs-scope .form-control,
.acc-bs-scope input,
.acc-bs-scope textarea,
.acc-bs-scope select,
body.is-admin .form-control,
body.is-admin input[type=text],
body.is-admin input[type=email],
body.is-admin input[type=tel],
body.is-admin input[type=password],
body.is-admin input[type=number],
body.is-admin input[type=search],
body.is-admin textarea,
body.is-admin select {
    border-radius: var(--ux-radius) !important;
}

/* Buttons more rounded */
.acc-bs-scope .btn,
body.is-admin .btn,
body.is-admin button {
    border-radius: var(--ux-radius) !important;
}
.acc-bs-scope .btn-sm,
body.is-admin .btn-sm {
    border-radius: var(--ux-radius-sm) !important;
}

/* Quick-Action pills mehr rounded */
.acc-bs-scope .acc-quick-actions .profile-action {
    border-radius: 999px !important;
    padding: 10px 18px !important;
}

/* ─── 36. SEASONAL GREETING POPUP ─────────────────────────────── */
.aob-greeting-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20,20,25,.55);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.aob-greeting-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.aob-greeting-card {
    background: #fff;
    border-radius: 28px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
    transform: scale(.85) translateY(20px);
    transition: transform .45s var(--ux-ease);
    position: relative;
}
.aob-greeting-overlay.is-open .aob-greeting-card {
    transform: scale(1) translateY(0);
}
.aob-greeting-card__head {
    padding: 38px 28px 26px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.aob-greeting-card__head::after {
    content: '';
    position: absolute;
    inset: -40% -10% auto auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255,255,255,.25) 0%, transparent 60%);
    pointer-events: none;
}
.aob-greeting-card__emoji {
    font-size: 3.4rem;
    line-height: 1;
    margin-bottom: 10px;
    display: inline-block;
    animation: aobGreetingBounce 1.4s ease-in-out infinite;
}
@keyframes aobGreetingBounce {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-6px) rotate(2deg); }
}
.aob-greeting-card__title {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -.01em;
    color: #fff;
}
.aob-greeting-card__subtitle {
    font-size: .98rem;
    margin: 0;
    color: rgba(255,255,255,.92);
    font-weight: 400;
    line-height: 1.5;
}
.aob-greeting-card__body {
    padding: 24px 28px 28px;
    text-align: center;
}
.aob-greeting-card__message {
    color: #444;
    font-size: .98rem;
    line-height: 1.6;
    margin: 0 0 20px;
}
.aob-greeting-coupon {
    background: linear-gradient(135deg, #faf6ef 0%, #f4ead8 100%);
    border: 2px dashed #dabe92;
    border-radius: 16px;
    padding: 18px 16px;
    margin: 0 0 18px;
    position: relative;
}
.aob-greeting-coupon__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #97804f;
    margin: 0 0 8px;
}
.aob-greeting-coupon__code {
    font-family: 'Courier New', monospace;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: #4a3a1f;
    margin: 0 0 6px;
    user-select: all;
    cursor: pointer;
}
.aob-greeting-coupon__hint {
    font-size: .76rem;
    color: #97804f;
    margin: 0;
}
.aob-greeting-coupon__copy-feedback {
    position: absolute;
    top: 8px;
    right: 10px;
    color: #6aa666;
    font-size: .78rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity .25s ease;
}
.aob-greeting-coupon__copy-feedback.is-visible { opacity: 1; }

.aob-greeting-card__cta {
    display: inline-block;
    background: linear-gradient(135deg, #1d2226 0%, #2a3035 100%);
    color: #dabe92;
    padding: 13px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    transition: transform .25s var(--ux-ease), box-shadow .25s ease;
    border: none;
    cursor: pointer;
}
.aob-greeting-card__cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.aob-greeting-card__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
    z-index: 2;
}
.aob-greeting-card__close:hover {
    background: rgba(255,255,255,.35);
}
.aob-greeting-card__later {
    display: block;
    margin: 14px auto 0;
    background: none;
    border: none;
    color: var(--ux-text-faint);
    font-size: .82rem;
    cursor: pointer;
    padding: 4px 10px;
}
.aob-greeting-card__later:hover { color: var(--ux-text-muted); }

/* ═══════════════════════════════════════════════════════════════════════
   PART V — Wave 87BW.6 ADMIN-Hotfix
   Public-Header/Footer ausblenden + Sidebar wirklich fixed + Layout-Polish
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── 40. ADMIN: Public-Site-Chrome komplett ausblenden ─────────────── */
body.is-admin .site-header,
body.is-admin .site-footer,
body.is-admin .newsletter,
body.is-admin .mobile-bottom-nav,
body.is-admin .aob-event-banner,
body.is-admin .aob-floating-cta,
body.is-admin .aob-sticky-mobile-cta,
body.is-admin .aob-advisor-fab,
body.is-admin .aob-advisor-panel,
body.is-admin .aob-advisor-overlay,
body.is-admin .aob-greeting-overlay,
body.is-admin .aob-cb-fab,
body.is-admin .aob-cb-panel,
body.is-admin .aob-wa-widget,
body.is-admin #aobNotifyPrompt {
    display: none !important;
}

body.is-admin {
    background: var(--ux-bg) !important;
    min-height: 100vh;
}
body.is-admin .site-content,
body.is-admin #content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* ─── 41. ADMIN: Dashboard Layout — full-width, proper grid ────────── */
body.is-admin .dashboard {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 0 !important;
    min-height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;       /* OVERRIDE Bootstrap/admin-extra cap */
    width: 100% !important;
    background: var(--ux-bg);
}
/* Default: 2 Spalten (Sidebar + Main FULL-WIDTH) — Profile-Sidebar nur bei Bedarf */
body.is-admin .dashboard.has-profile-sidebar {
    grid-template-columns: 280px 1fr !important;
}
/* Profile-Sidebar wird via JS gezeigt (open-Class) → dann 3 Spalten */
body.is-admin .dashboard.has-profile-sidebar.profile-open {
    grid-template-columns: 280px 1fr 300px !important;
}
body.is-admin .dashboard.has-profile-sidebar .profile-sidebar:not(.open) {
    display: none !important;
}
/* Wenn Profile-Sidebar trotzdem visible (class="profile-sidebar open") — 3 Cols */
body.is-admin .dashboard.has-profile-sidebar:has(.profile-sidebar.open) {
    grid-template-columns: 280px 1fr 300px !important;
}
@media (max-width: 1280px) {
    body.is-admin .dashboard.has-profile-sidebar {
        grid-template-columns: 280px 1fr !important;
    }
    body.is-admin .profile-sidebar {
        display: none !important;
    }
}
@media (max-width: 940px) {
    body.is-admin .dashboard,
    body.is-admin .dashboard.has-profile-sidebar {
        grid-template-columns: 1fr !important;
    }
}

/* ─── 42. ADMIN-SIDEBAR — FIXED + own scroll ──────────────────── */
body.is-admin .dashboard .sidebar {
    position: sticky !important;
    top: 14px !important;
    align-self: start;
    margin: 14px 0 14px 14px !important;
    width: auto !important;
    max-height: calc(100vh - 28px) !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--ux-border) transparent;
    padding: 16px 0 24px !important;
    border-radius: var(--ux-radius-lg) !important;
    background: linear-gradient(180deg, var(--ux-surface) 0%, var(--ux-bg-elev) 100%) !important;
    border: 1px solid var(--ux-border) !important;
    box-shadow: var(--ux-shadow-2);
    z-index: 10;
}
body.is-admin .dashboard .sidebar::-webkit-scrollbar { width: 8px; }
body.is-admin .dashboard .sidebar::-webkit-scrollbar-track { background: transparent; }
body.is-admin .dashboard .sidebar::-webkit-scrollbar-thumb {
    background: var(--ux-border);
    border-radius: 4px;
}
body.is-admin .dashboard .sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--ux-brand);
}

body.is-admin .dashboard .sidebar .admin-search-wrap {
    padding: 0 14px 12px !important;
    position: sticky;
    top: 0;
    background: var(--ux-surface);
    z-index: 2;
}
body.is-admin .dashboard .sidebar #adminGlobalSearch {
    border-radius: var(--ux-radius) !important;
    background: var(--ux-surface-2) !important;
    border: 1px solid var(--ux-border) !important;
    padding: 10px 14px !important;
    font-size: .86rem !important;
    width: 100% !important;
}
body.is-admin .dashboard .sidebar > div:first-of-type + div {
    /* Admin-User-Info-Block */
    padding: 4px 18px 14px !important;
    border-bottom: 1px solid var(--ux-border-soft) !important;
    margin: 0 0 8px !important;
}
body.is-admin .dashboard .sidebar > a {
    display: block;
    margin: 2px 10px !important;
    padding: 10px 16px !important;
    border-radius: var(--ux-radius) !important;
    font-size: .87rem !important;
    color: var(--ux-text);
    text-decoration: none;
    transition: background .18s ease, color .18s ease, padding-left .25s var(--ux-ease);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.is-admin .dashboard .sidebar > a:hover {
    background: var(--ux-surface-2);
    color: var(--ux-brand);
    padding-left: 20px !important;
}
body.is-admin .dashboard .sidebar > a.active {
    background: linear-gradient(135deg, rgba(144,167,172,.22) 0%, rgba(218,190,146,.12) 100%) !important;
    color: var(--ux-brand) !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(144,167,172,.15);
}
body.is-admin .dashboard .sidebar > a:last-of-type {
    /* "Abmelden" link */
    margin-top: 12px !important;
    border-top: 1px solid var(--ux-border-soft);
    padding-top: 14px !important;
    color: var(--ux-danger) !important;
}
body.is-admin .dashboard .sidebar > a:last-of-type:hover {
    background: rgba(194,84,80,.08) !important;
    color: var(--ux-danger) !important;
}

/* ─── 43. ADMIN-MAIN — full-width zwischen Sidebars, One-UI premium ─── */
body.is-admin .dashboard-main {
    padding: 22px 32px 80px !important;
    background: transparent;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
}

/* Inner-content container — One-UI breath room */
body.is-admin .dashboard-main > * {
    max-width: none !important;
}

/* One-UI: H1 mit Container-Look (Card-like Header) */
body.is-admin .dashboard-main > h1:first-child {
    background: linear-gradient(135deg, #ffffff 0%, #fafaf7 100%);
    border: 1px solid var(--ux-border);
    border-radius: var(--ux-radius-lg);
    padding: 24px 28px;
    margin: 0 0 24px;
    box-shadow: var(--ux-shadow-1);
    position: relative;
    overflow: hidden;
}
body.is-admin .dashboard-main > h1:first-child::before {
    /* Brand-Gradient-Bar an der linken Kante */
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #90a7ac 0%, #dabe92 100%);
}
body.is-admin .dashboard-main > h1:first-child::after {
    /* Gold-Spot top-right */
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(218,190,146,.18) 0%, transparent 60%);
    pointer-events: none;
}

/* Sub-paragraph nach h1 */
body.is-admin .dashboard-main > h1 + p,
body.is-admin .dashboard-main > h1 + small {
    margin-top: -16px !important;
    margin-bottom: 22px !important;
    color: var(--ux-text-muted) !important;
    font-size: .95rem;
    padding: 0 4px;
}

/* Grid-Gaps größer für mehr Atmung */
body.is-admin .services-grid {
    gap: 18px !important;
    margin-bottom: 24px;
}

/* Section-Headlines h3/h4 mit Akzent-Bar */
body.is-admin .dashboard-main h3,
body.is-admin .dashboard-main h4 {
    margin: 32px 0 16px !important;
    padding-left: 14px !important;
    border-left: 3px solid var(--ux-brand) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--ux-text);
    letter-spacing: -.005em;
}

/* Cards/Panels: rounded-lg, hover lift */
body.is-admin .panel,
body.is-admin .card,
body.is-admin .admin-card,
body.is-admin .data-card,
body.is-admin .stat-card,
body.is-admin .service-card {
    border-radius: var(--ux-radius-lg) !important;
    background: var(--ux-surface) !important;
    border: 1px solid var(--ux-border) !important;
    box-shadow: var(--ux-shadow-1);
    transition: transform .25s var(--ux-ease), box-shadow .25s ease;
}
body.is-admin .panel:hover,
body.is-admin .card:hover,
body.is-admin .stat-card:hover,
body.is-admin .service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ux-shadow-2);
}

/* One-UI Spacing: Sections (groups of related cards) */
body.is-admin .dashboard-main > section,
body.is-admin .dashboard-main > .admin-section {
    background: var(--ux-surface);
    border-radius: var(--ux-radius-lg);
    padding: 22px 24px;
    margin-bottom: 22px;
    border: 1px solid var(--ux-border);
    box-shadow: var(--ux-shadow-1);
}

/* Toolbars Filter-Bars (Suche, Filter, Buttons) */
body.is-admin .dashboard-toolbar,
body.is-admin .admin-toolbar,
body.is-admin .admin-filter-bar {
    background: var(--ux-surface);
    padding: 14px 18px;
    border-radius: var(--ux-radius);
    border: 1px solid var(--ux-border);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: var(--ux-shadow-1);
}

/* Tables full-width premium */
body.is-admin .dashboard-main table {
    width: 100% !important;
    max-width: none !important;
    background: var(--ux-surface);
    border-radius: var(--ux-radius-lg);
    overflow: hidden;
    box-shadow: var(--ux-shadow-1);
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
}

/* Form-Rows in Settings/Edit-Pages */
body.is-admin .dashboard-main .form-row,
body.is-admin .dashboard-main .setting-row {
    padding: 14px 0;
    border-bottom: 1px solid var(--ux-border-soft);
}
body.is-admin .dashboard-main .form-row:last-child,
body.is-admin .dashboard-main .setting-row:last-child {
    border-bottom: none;
}

/* ─── 44. ADMIN-PROFILE-SIDEBAR (right) — fixed scrollable ───────── */
body.is-admin .profile-sidebar {
    position: sticky !important;
    top: 14px !important;
    align-self: start;
    margin: 14px 14px 14px 0 !important;
    max-height: calc(100vh - 28px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    border-radius: var(--ux-radius-lg) !important;
    border: 1px solid var(--ux-border) !important;
    box-shadow: var(--ux-shadow-2);
    background: var(--ux-surface) !important;
}

/* ─── 45. ADMIN: Skip-link + Mobile-Toggle */
body.is-admin .skip-link { display: none; }
body.is-admin .dashboard-sidebar-toggle,
body.is-admin .profile-drawer-toggle {
    display: none;
}
@media (max-width: 940px) {
    body.is-admin .dashboard {
        grid-template-columns: 1fr !important;
    }
    body.is-admin .dashboard .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        width: 280px !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        transform: translateX(-100%);
        transition: transform .3s var(--ux-ease);
        z-index: 1000;
    }
    body.is-admin .dashboard .sidebar.open {
        transform: translateX(0);
    }
    body.is-admin .dashboard-sidebar-toggle {
        display: inline-flex;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 999;
        background: var(--ux-surface);
        border: 1px solid var(--ux-border);
        border-radius: var(--ux-radius);
        padding: 8px 12px;
    }
    body.is-admin .dashboard-main {
        padding: 18px 14px 60px !important;
    }
}

/* ─── 46. ADMIN: Stat-Tiles als 4er Grid mit Gold-Numbers ──────── */
body.is-admin .services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 18px;
}
body.is-admin .stat-tile,
body.is-admin .kpi-tile,
body.is-admin .service-card {
    padding: 18px 20px !important;
    background: var(--ux-surface) !important;
    border: 1px solid var(--ux-border) !important;
    border-radius: var(--ux-radius) !important;
    transition: transform .25s var(--ux-ease), box-shadow .25s ease;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
body.is-admin .stat-tile-value,
body.is-admin .kpi-value {
    font-size: 2rem !important;
    line-height: 1.1;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ux-brand), var(--ux-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 2px 0 4px;
    letter-spacing: -.02em;
}
body.is-admin .kpi-value.is-success {
    background: linear-gradient(135deg, var(--ux-success), #88c884);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ─── 47. ADMIN: Quick-Actions Hover-Arrow korrekt zentriert ───── */
body.is-admin .quick-action::after {
    top: 22px !important;
    right: 20px !important;
    transform: none !important;
}
body.is-admin .quick-action:hover::after {
    transform: translateX(4px) !important;
}

/* ─── 48. Public-Header sichtbar wenn NICHT admin (default) ──── */
body:not(.is-admin) .site-header { display: block; }

/* ═══════════════════════════════════════════════════════════════════════
   PART VI — Wave 87BW.7 ULTRA-PREMIUM
   Reviews-Section, Magazin-Cards, Newsletter, Footer Polish
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── 50. ULTRA-PREMIUM REVIEWS BLOCK — FULL-WIDTH ──────────────────── */
.external-reviews-section {
    /* Full-width: 100vw + reset margins */
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 90px 0 100px !important;
    overflow: hidden;
    /* Multi-layer Premium-Background */
    background:
        radial-gradient(60% 80% at 15% 25%, rgba(218,190,146,.22) 0%, transparent 55%),
        radial-gradient(70% 80% at 85% 70%, rgba(144,167,172,.18) 0%, transparent 60%),
        radial-gradient(45% 60% at 50% 100%, rgba(218,190,146,.16) 0%, transparent 55%),
        linear-gradient(180deg, #faf6ef 0%, #f5ead4 50%, #efe2c8 100%) !important;
    border-top: none;
    border-bottom: none;
}
.external-reviews-section::after {
    /* Subtle dot-pattern overlay für Tiefe */
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(94,125,131,.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
    opacity: .6;
}
.external-reviews-section::before {
    /* Riesiges Quote als Wasserzeichen — sehr dezent */
    content: '\201C';
    position: absolute;
    top: 40px;
    left: 5vw;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(160px, 18vw, 280px);
    color: rgba(218,190,146,.08);
    line-height: 1;
    pointer-events: none;
    font-weight: 700;
    z-index: 0;
    user-select: none;
}
.external-reviews-section .section-head-centered {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
}
.external-reviews-section .section-head-centered h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 700;
    color: #1d1d1b;
    letter-spacing: -.02em;
    margin: 0 0 10px;
    line-height: 1.15;
    background: linear-gradient(135deg, #1d1d1b 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.external-reviews-section .section-head-centered h2::after {
    content: '';
    display: block;
    width: 68px;
    height: 3px;
    background: linear-gradient(90deg, #90a7ac 0%, #dabe92 100%);
    margin: 18px auto 0;
    border-radius: 2px;
}
.external-reviews-section .section-head-centered p,
.external-reviews-section .section-head-centered .lead,
.external-reviews-section .section-head-centered .subtitle {
    color: #6b6e72;
    font-size: 1rem;
    margin: 12px auto 0;
    max-width: 560px;
    line-height: 1.55;
}

/* ─── 50b. CAROUSEL FULL-WIDTH ─────────────────────────────────────── */
.external-reviews-section .container {
    /* Container neutralisieren — kein max-width-Limit mehr */
    position: relative;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2;
}
.external-reviews-section .er-grid,
.external-reviews-section .container > .er-list {
    /* Full-width horizontaler Carousel */
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 26px;
    margin: 0 !important;
    width: 100%;
    position: relative;
    z-index: 2;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 14px clamp(40px, 6vw, 100px) 40px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.external-reviews-section .er-grid::-webkit-scrollbar,
.external-reviews-section .container > .er-list::-webkit-scrollbar { display: none; }

.external-reviews-section .er-card {
    /* Premium Glass-Card mit größeren Rundungen */
    flex: 0 0 auto !important;
    width: clamp(290px, 26vw, 360px) !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    background: rgba(255,255,255,.94) !important;
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    border: 1px solid rgba(255,255,255,.7) !important;
    border-radius: 28px !important;
    padding: 38px 30px 26px !important;
    box-shadow:
        0 10px 30px rgba(94,125,131,.12),
        0 4px 12px rgba(94,125,131,.08),
        inset 0 1px 0 rgba(255,255,255,.6);
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease, background .4s ease;
    position: relative;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    height: auto;
    min-height: 360px;
    max-height: 420px;
}
.external-reviews-section .er-card::before {
    /* Top gradient accent stripe */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #90a7ac 0%, #dabe92 50%, #90a7ac 100%);
    border-radius: 28px 28px 0 0;
    opacity: 0;
    transition: opacity .35s ease;
}
.external-reviews-section .er-card:hover {
    transform: translateY(-10px) scale(1.018);
    box-shadow:
        0 28px 70px rgba(94,125,131,.2),
        0 10px 20px rgba(94,125,131,.12),
        inset 0 1px 0 rgba(255,255,255,.8);
    background: rgba(255,255,255,.98) !important;
}
.external-reviews-section .er-card:hover::before { opacity: 1; }

/* ─── 50c. CAROUSEL WRAPPER ──────────────────────────────────────── */

/* Arrows (injected by JS) */
.er-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d2226 0%, #2a3035 100%);
    color: #dabe92;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.1);
    transition: transform .25s var(--ux-ease), box-shadow .25s ease;
}
.er-carousel-arrow:hover {
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 16px 40px rgba(0,0,0,.32);
    color: #fff;
}
.er-carousel-arrow:active { transform: translateY(-50%) scale(.96); }
.er-carousel-arrow--prev { left: clamp(8px, 2vw, 24px); }
.er-carousel-arrow--next { right: clamp(8px, 2vw, 24px); }
.er-carousel-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
}
@media (max-width: 720px) {
    .er-carousel-arrow {
        width: 44px;
        height: 44px;
        font-size: 19px;
    }
    .er-carousel-arrow--prev { left: 6px; }
    .er-carousel-arrow--next { right: 6px; }
}

/* Dots (injected by JS) */
.er-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    padding: 0 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}
.er-carousel-dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    background: rgba(94,125,131,.28);
    cursor: pointer;
    padding: 0;
    transition: width .35s cubic-bezier(.34,1.56,.64,1), background .3s ease;
    box-shadow: 0 1px 3px rgba(94,125,131,.15);
}
.er-carousel-dots button.is-active {
    background: linear-gradient(135deg, #90a7ac 0%, #dabe92 100%);
    width: 36px;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(94,125,131,.4);
}
.er-carousel-dots button:hover:not(.is-active) {
    background: rgba(94,125,131,.55);
    transform: scale(1.15);
}

/* "Auto-Play" indicator (subtle) */
.er-carousel-progress {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    max-width: 200px;
    height: 2px;
    background: linear-gradient(90deg, #90a7ac, #dabe92);
    border-radius: 2px;
    opacity: .5;
    transition: width 4s linear;
}
.er-carousel-progress.is-running { width: 200px; }

/* Pause-on-hover indicator (icon) */
.er-carousel-pause-hint {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: .72rem;
    color: var(--ux-text-faint);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.er-carousel-wrapper:hover .er-carousel-pause-hint { opacity: 1; }
.external-reviews-section .er-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #90a7ac, #dabe92);
    opacity: 0;
    transition: opacity .3s ease;
}
.external-reviews-section .er-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(20,20,20,.12), 0 4px 12px rgba(20,20,20,.06);
}
.external-reviews-section .er-card:hover::before { opacity: 1; }

.external-reviews-section .er-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.external-reviews-section .er-card__source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #97804f;
    padding: 6px 12px;
    background: linear-gradient(135deg, #faf6ef 0%, #f4ead8 100%);
    border-radius: 999px;
    border: 1px solid rgba(218,190,146,.45);
    box-shadow: 0 2px 6px rgba(218,190,146,.15);
}
.external-reviews-section .er-card__stars {
    color: #f0b400;
    font-size: 1.05rem;
    letter-spacing: .08em;
    text-shadow: 0 1px 2px rgba(240,180,0,.2);
}
.external-reviews-section .er-card__body {
    font-size: .94rem;
    line-height: 1.65;
    color: #2c2c2c;
    margin: 0 !important;
    padding: 48px 0 0 !important;  /* Top-padding gibt Platz für Quote */
    font-style: italic;
    flex: 1;
    position: relative;
    /* Multi-line truncation: max 6 lines */
    display: -webkit-box !important;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Quote-Symbol sitzt OBERHALB der Textzeile, sauber im Top-Padding */
.external-reviews-section .er-card__body::before {
    content: '\201C';  /* Linkes Anführungszeichen " */
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 4rem;
    color: #dabe92;
    line-height: .75;  /* Drückt Glyph nach oben, lässt visuellen Raum unten */
    font-weight: 700;
    pointer-events: none;
    z-index: 0;
    opacity: .9;
    text-shadow: 0 2px 8px rgba(218,190,146,.2);
    height: 38px;  /* Hartes Limit, damit Text nicht überlappt */
    overflow: hidden;
}
/* Bottom-rechts schliessendes Quote — sehr dezent, sitzt im Footer-Padding */
.external-reviews-section .er-card__body::after {
    content: '';  /* kein Bottom-Quote — clean! */
}
.external-reviews-section .er-card__footer,
.external-reviews-section .er-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0ebde;
    padding-top: 12px;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 6px;
}
.external-reviews-section .er-card__author {
    font-weight: 600;
    color: #1d1d1b;
    font-size: .92rem;
}
.external-reviews-section .er-card__date {
    color: #97804f;
    font-size: .78rem;
}

/* ─── 51. ULTRA-PREMIUM Magazin/Blog Cards (Homepage) ─────────────── */
.magazine-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    margin-top: 40px;
}
.magazine-card,
.blog-card,
.banner-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(20,20,20,.06);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
    border: 1px solid rgba(0,0,0,.04);
}
.magazine-card:hover,
.blog-card:hover,
.banner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(20,20,20,.14);
}
.banner-card img,
.magazine-card img,
.blog-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    transition: transform .6s ease;
}
.banner-card:hover img,
.magazine-card:hover img,
.blog-card:hover img {
    transform: scale(1.06);
}
.banner-card-content,
.magazine-card-content,
.blog-card-content {
    padding: 22px 24px 26px;
}
.banner-card-content .eyebrow,
.magazine-card .eyebrow,
.blog-card .eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #97804f;
    margin-bottom: 8px;
    display: block;
}
.banner-card-content h3,
.magazine-card h3,
.blog-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: #1d1d1b;
    margin: 0 0 10px;
    letter-spacing: -.005em;
    line-height: 1.35;
}

/* ─── 52. NEWSLETTER PREMIUM ─────────────────────────────────────── */
.newsletter {
    background: linear-gradient(135deg, #1d2226 0%, #2a3035 60%, #1d2226 100%) !important;
    color: #fff !important;
    padding: 60px 20px !important;
    position: relative;
    overflow: hidden;
}
.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(218,190,146,.15) 0%, transparent 60%);
    pointer-events: none;
}
.newsletter h3 {
    color: #fff !important;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -.01em;
    text-align: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}
.newsletter p {
    color: rgba(255,255,255,.78);
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}
.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.newsletter-form input[type=email] {
    flex: 1;
    background: rgba(255,255,255,.97);
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 14px 22px;
    font-size: .95rem;
    color: #1d1d1b;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.newsletter-form input[type=email]:focus {
    outline: none;
    border-color: #dabe92;
    box-shadow: 0 0 0 4px rgba(218,190,146,.25);
}
.newsletter-form button {
    background: linear-gradient(135deg, #dabe92 0%, #c4a878 100%);
    color: #1d1d1b;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
    box-shadow: 0 4px 14px rgba(218,190,146,.35);
}
.newsletter-form button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(218,190,146,.5);
}

/* ─── 53. FOOTER PREMIUM POLISH ─────────────────────────────────── */
.site-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    padding-top: 60px !important;
}
.site-footer h4 {
    color: #dabe92 !important;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
.site-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #dabe92, transparent);
}
.site-footer a {
    color: rgba(255,255,255,.78) !important;
    transition: color .2s ease, padding-left .2s ease;
    display: inline-block;
}
.site-footer a:hover {
    color: #dabe92 !important;
    padding-left: 4px;
    text-decoration: none;
}
.site-footer .social-icons a {
    background: rgba(218,190,146,.1);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: background .2s ease, transform .25s var(--ux-ease);
}
.site-footer .social-icons a:hover {
    background: #dabe92;
    transform: translateY(-3px) scale(1.08);
}

/* ─── 54. HEADER smart-scrolled glass-effect ─────────────────────── */
body:not(.is-admin) .site-header.scrolled,
body:not(.is-admin) .site-header.is-scrolled {
    background: rgba(255,255,255,.85) !important;
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: background .3s ease, box-shadow .3s ease;
}

/* ─── 55. BUTTONS Premium globally ───────────────────────────────── */
body:not(.is-admin) .btn,
body:not(.is-admin) .btn-dark,
body:not(.is-admin) .btn-outline {
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 600;
    letter-spacing: .015em;
    transition: transform .25s var(--ux-ease), box-shadow .25s ease, background .25s ease;
}
body:not(.is-admin) .btn:not(.btn-outline):not(.btn-dark):not(.btn-sm) {
    background: linear-gradient(135deg, #1d2226 0%, #2a3035 100%);
    color: #dabe92;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    border: none;
}
body:not(.is-admin) .btn:not(.btn-outline):not(.btn-dark):not(.btn-sm):hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    color: #ffffff;
}
body:not(.is-admin) .btn-outline {
    background: transparent;
    border: 2px solid #1d2226;
    color: #1d2226;
}
body:not(.is-admin) .btn-outline:hover {
    background: #1d2226;
    color: #dabe92;
    transform: translateY(-2px);
}

/* ─── 56. SECTIONS premium spacing + reveal animations ───────────── */
.section,
section.section {
    padding: 60px 0;
}
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .8s cubic-bezier(.34,1.56,.64,1);
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
.reveal.scale {
    transform: translateY(24px) scale(.96);
}
.reveal.scale.in-view {
    transform: translateY(0) scale(1);
}

/* ─── 57. HOMEPAGE Hero Title ───────────────────────────────────── */
.page-title-block h1,
section.page-title-block h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
    text-align: center;
    color: #1d1d1b;
    background: linear-gradient(135deg, #1d1d1b 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.page-title-block .lead {
    text-align: center;
    color: #6b6e72;
    font-size: 1.05rem;
    max-width: 720px;
    margin: 16px auto 0;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════
   PART VII — Wave 87BW.11
   UNIFORM BUTTON GRADIENT: Avatar-teal-grey für ALLE Buttons sitewide
   AUSGENOMMEN: .site-header, .site-footer, .newsletter, .header-* etc.
   ═══════════════════════════════════════════════════════════════════════ */

/* Token: Avatar-Gradient (wie im acc-sidebar-head) */
:root {
    --btn-avatar-gradient: linear-gradient(135deg, #90a7ac 0%, #7e9499 50%, #5e7d83 100%);
    --btn-avatar-gradient-hover: linear-gradient(135deg, #a5b8bc 0%, #90a7ac 50%, #6e8b91 100%);
    --btn-avatar-shadow: 0 4px 14px rgba(94,125,131,.32);
    --btn-avatar-shadow-hover: 0 8px 24px rgba(94,125,131,.45);
}

/* ─── 100. APPLY Avatar-Gradient zu ALLEN bunten Buttons ─────────────── */
body :is(
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-dark,
    .btn-success,
    .btn-info,
    .btn-premium,
    .btn-cta,
    button.btn,
    a.btn,
    input[type="submit"],
    button[type="submit"]
):not(.btn-outline):not(.btn-outline-secondary):not(.btn-outline-primary):not(.btn-link):not(.btn-sm.btn-outline-secondary):not(.er-carousel-arrow):not(.aob-greeting-card__cta):not(.aob-greeting-card__close):not(.aob-greeting-card__later):not(.aob-theme-toggle):not(.btn-close):not(.btn-light):not(.btn-white):not(.aob-cb-fab):not(.aob-cb-send):not(.aob-wa-fab):not(.btn-danger):not(.btn-warning):not(.dashboard-sidebar-toggle):not(.profile-drawer-toggle):not(.profile-collapse-btn) {
    background: var(--btn-avatar-gradient) !important;
    background-image: var(--btn-avatar-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: var(--btn-avatar-shadow) !important;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background .25s ease !important;
}

body :is(
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-dark,
    .btn-success,
    .btn-info,
    .btn-premium,
    .btn-cta,
    button.btn,
    a.btn,
    input[type="submit"],
    button[type="submit"]
):not(.btn-outline):not(.btn-outline-secondary):not(.btn-outline-primary):not(.btn-link):not(.btn-sm.btn-outline-secondary):not(.er-carousel-arrow):not(.aob-greeting-card__cta):not(.aob-greeting-card__close):not(.aob-greeting-card__later):not(.aob-theme-toggle):not(.btn-close):not(.btn-light):not(.btn-white):not(.aob-cb-fab):not(.aob-cb-send):not(.aob-wa-fab):not(.btn-danger):not(.btn-warning):not(.dashboard-sidebar-toggle):not(.profile-drawer-toggle):not(.profile-collapse-btn):hover {
    background: var(--btn-avatar-gradient-hover) !important;
    background-image: var(--btn-avatar-gradient-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--btn-avatar-shadow-hover) !important;
}

/* ─── 101. Zusätzliche Selektoren für individuelle Seiten ────────────── */
body :is(
    .aob-floating-cta,
    .aob-advisor-fab,
    .acc-bs-scope .acc-quick-actions .profile-action.active,
    .acc-bs-scope .card .btn-outline-secondary,
    body.is-admin .profile-action.active,
    body.is-admin .btn-primary,
    body.is-admin button[type=submit].primary,
    body.is-admin .btn-dark,
    .acc-bs-scope .btn-primary,
    .acc-bs-scope .btn-dark,
    .fv-shop-hero__cta-primary,
    .hero-cta,
    .page-cta,
    .booking-cta,
    .checkout-cta,
    .submit-btn,
    button.submit
) {
    background: var(--btn-avatar-gradient) !important;
    background-image: var(--btn-avatar-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: var(--btn-avatar-shadow) !important;
}

body :is(
    .aob-floating-cta,
    .aob-advisor-fab,
    .acc-bs-scope .acc-quick-actions .profile-action.active,
    .acc-bs-scope .card .btn-outline-secondary,
    body.is-admin .profile-action.active,
    body.is-admin .btn-primary,
    body.is-admin button[type=submit].primary,
    body.is-admin .btn-dark,
    .acc-bs-scope .btn-primary,
    .acc-bs-scope .btn-dark,
    .fv-shop-hero__cta-primary,
    .hero-cta,
    .page-cta,
    .booking-cta,
    .checkout-cta,
    .submit-btn,
    button.submit
):hover {
    background: var(--btn-avatar-gradient-hover) !important;
    background-image: var(--btn-avatar-gradient-hover) !important;
    color: #ffffff !important;
    box-shadow: var(--btn-avatar-shadow-hover) !important;
}

/* ─── 102. PROTECTED ZONES — Header + Footer + Newsletter UNBERÜHRT ──── */
/* Wir resetten innerhalb von Header/Footer/Newsletter, falls oben gegriffen */
.site-header .btn,
.site-header button,
.site-header input[type=submit],
.site-header a.btn,
header.site-header .btn,
.header-top .btn,
.header-top button,
.header-top-utils .btn,
.header-top-utils button,
.lang-switch a,
.site-footer .btn,
.site-footer button,
.site-footer input[type=submit],
.site-footer a.btn,
footer.site-footer .btn,
.newsletter .btn,
.newsletter button,
.newsletter input[type=submit],
.newsletter-form button {
    background: revert !important;
    background-image: revert !important;
    color: revert !important;
    border: revert !important;
    box-shadow: revert !important;
}

/* Newsletter-Form-Button keeps Gold-Gradient (eigene Definition oben) */
.newsletter-form button {
    background: linear-gradient(135deg, #dabe92 0%, #c4a878 100%) !important;
    background-image: linear-gradient(135deg, #dabe92 0%, #c4a878 100%) !important;
    color: #1d1d1b !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(218,190,146,.35) !important;
}
.newsletter-form button:hover {
    background: linear-gradient(135deg, #c4a878 0%, #dabe92 100%) !important;
    background-image: linear-gradient(135deg, #c4a878 0%, #dabe92 100%) !important;
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 8px 24px rgba(218,190,146,.5) !important;
}

/* Site-Header buttons bleiben transparent/wie ursprünglich */
.site-header .basket-link,
.site-header .icon-link,
header.site-header a {
    background: transparent !important;
    background-image: none !important;
    color: inherit !important;
    box-shadow: none !important;
    border: revert !important;
}

/* Site-Footer Social-Icons keep their gold-bg */
.site-footer .social-icons a {
    background: rgba(218,190,146,.1) !important;
    background-image: none !important;
    color: rgba(255,255,255,.78) !important;
    box-shadow: none !important;
}
.site-footer .social-icons a:hover {
    background: #dabe92 !important;
    transform: translateY(-3px) scale(1.08);
}

/* Footer-Links bleiben Text */
.site-footer a:not(.btn) {
    background: transparent !important;
    background-image: none !important;
    color: rgba(255,255,255,.78) !important;
    box-shadow: none !important;
}

/* ─── 103. Outline-Variante bekommt nur den Border-Stil mit Avatar-Farbe ─ */
body :is(.btn-outline, .btn-outline-secondary, .btn-outline-primary):not(.site-header *):not(.site-footer *):not(.newsletter *) {
    background: transparent !important;
    background-image: none !important;
    color: #5e7d83 !important;
    border: 2px solid #7e9499 !important;
    box-shadow: none !important;
    transition: all .25s var(--ux-ease) !important;
}
body :is(.btn-outline, .btn-outline-secondary, .btn-outline-primary):not(.site-header *):not(.site-footer *):not(.newsletter *):hover {
    background: var(--btn-avatar-gradient) !important;
    background-image: var(--btn-avatar-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: var(--btn-avatar-shadow) !important;
}

/* ─── 104. Sticky-Mobile-CTA Bar buttons ──────────────────────────── */
.aob-sticky-mobile-cta a:not(.aob-sticky-mobile-cta__call):not(.aob-sticky-mobile-cta__wa) {
    background: var(--btn-avatar-gradient) !important;
    background-image: var(--btn-avatar-gradient) !important;
    color: #ffffff !important;
}

/* ─── 105. Form-Submit "Anmelden", "Speichern", "Senden" etc. ─────── */
body :is(input[type="submit"], button[type="submit"]):not(.site-header *):not(.site-footer *):not(.newsletter *):not(.aob-cb-send) {
    background: var(--btn-avatar-gradient) !important;
    background-image: var(--btn-avatar-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 11px 24px;
    border-radius: var(--ux-radius);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--btn-avatar-shadow) !important;
    transition: transform .25s var(--ux-ease), box-shadow .25s ease, background .25s ease !important;
}
body :is(input[type="submit"], button[type="submit"]):not(.site-header *):not(.site-footer *):not(.newsletter *):not(.aob-cb-send):hover {
    background: var(--btn-avatar-gradient-hover) !important;
    background-image: var(--btn-avatar-gradient-hover) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--btn-avatar-shadow-hover) !important;
}

/* ─── 106. CUSTOM Bypass für Special-Cases die NICHT umgefärbt werden ── */
.aob-greeting-card__cta,
.er-carousel-arrow {
    /* behalten eigene dark-bg gradients */
    background-image: revert !important;
}
.aob-greeting-card__cta {
    background: linear-gradient(135deg, #1d2226 0%, #2a3035 100%) !important;
    background-image: linear-gradient(135deg, #1d2226 0%, #2a3035 100%) !important;
    color: #dabe92 !important;
}
.er-carousel-arrow {
    background: linear-gradient(135deg, #1d2226 0%, #2a3035 100%) !important;
    background-image: linear-gradient(135deg, #1d2226 0%, #2a3035 100%) !important;
    color: #dabe92 !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   PART VIII — Wave 87BW.14
   PRODUKTBERATER FAB — Premium One-UX bottom-left
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── 200. ADVISOR-FAB — bottom-left, Avatar-Gradient, premium ──────── */
.aob-advisor-fab {
    position: fixed !important;
    left: max(20px, env(safe-area-inset-left, 0px)) !important;
    bottom: max(20px, env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1090 !important;

    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 22px 12px 14px !important;
    border: none !important;
    border-radius: 999px !important;

    /* Avatar-Gradient identisch zur Webseite */
    background: linear-gradient(135deg, #90a7ac 0%, #7e9499 50%, #5e7d83 100%) !important;
    background-image: linear-gradient(135deg, #90a7ac 0%, #7e9499 50%, #5e7d83 100%) !important;

    color: #ffffff !important;
    font-family: 'Poppins', system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: .02em !important;

    /* Premium triple-shadow für Tiefe */
    box-shadow:
        0 8px 24px rgba(94,125,131,.35),
        0 3px 10px rgba(94,125,131,.20),
        inset 0 1px 0 rgba(255,255,255,.15) !important;

    cursor: pointer !important;
    transition:
        transform .3s cubic-bezier(.34,1.56,.64,1),
        box-shadow .3s ease,
        background .3s ease,
        padding .3s ease !important;
}

.aob-advisor-fab:hover,
.aob-advisor-fab:focus-visible {
    transform: translateY(-3px) scale(1.04) !important;
    background: linear-gradient(135deg, #a5b8bc 0%, #90a7ac 50%, #6e8b91 100%) !important;
    background-image: linear-gradient(135deg, #a5b8bc 0%, #90a7ac 50%, #6e8b91 100%) !important;
    box-shadow:
        0 14px 38px rgba(94,125,131,.45),
        0 6px 14px rgba(94,125,131,.25),
        inset 0 1px 0 rgba(255,255,255,.25) !important;
    color: #ffffff !important;
    outline: none !important;
    padding-right: 26px !important;
}

.aob-advisor-fab:active {
    transform: translateY(-1px) scale(1.01) !important;
}

/* Icon — premium gold-shimmer kreis */
.aob-advisor-fab__icon {
    display: inline-grid !important;
    place-items: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.4) 0%, transparent 60%),
        linear-gradient(135deg, #dabe92 0%, #c4a878 100%) !important;
    color: #ffffff !important;
    font-size: 20px !important;
    line-height: 1 !important;
    box-shadow:
        0 2px 6px rgba(94,125,131,.3),
        inset 0 1px 0 rgba(255,255,255,.4) !important;
    transition: transform .35s var(--ux-ease), box-shadow .25s ease !important;
}
.aob-advisor-fab:hover .aob-advisor-fab__icon {
    transform: rotate(-8deg) scale(1.08) !important;
    box-shadow:
        0 4px 10px rgba(94,125,131,.4),
        inset 0 1px 0 rgba(255,255,255,.55) !important;
}

/* Label */
.aob-advisor-fab__label {
    font-weight: 600 !important;
    color: #ffffff !important;
    letter-spacing: .015em !important;
    white-space: nowrap !important;
}

/* Wenn geöffnet — sauber ausblenden */
.aob-advisor-fab[aria-expanded="true"] {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(.6) translateY(8px) !important;
}

/* ─── 201. PULSE Animation als Aufmerksamkeit (subtle) ────────────── */
.aob-advisor-fab::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #90a7ac, #dabe92);
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    animation: aob-advisor-pulse 3s ease-in-out infinite;
}
@keyframes aob-advisor-pulse {
    0%, 100% { opacity: 0; transform: scale(.95); }
    50%      { opacity: .35; transform: scale(1.08); }
}

/* ─── 202. Mobile Anpassung — kompakter ─────────────────────────── */
@media (max-width: 720px) {
    .aob-advisor-fab {
        padding: 10px 16px 10px 12px !important;
        font-size: 13px !important;
        gap: 8px !important;
        left: 14px !important;
        bottom: 90px !important;  /* über mobile-bottom-nav */
    }
    .aob-advisor-fab__icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 17px !important;
    }
    .aob-advisor-fab__label {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Floating-CTA (Termin buchen) ist bottom-right — kein Conflict */
/* WhatsApp-Widget ist bottom-right — kein Conflict */
/* Theme-Toggle ist top-right — kein Conflict */

/* ─── 203. Wenn Advisor in /book oder Admin — verstecken ────────── */
body.is-admin .aob-advisor-fab,
body.is-admin .aob-advisor-fab::before { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════
   PART IX — Wave 87BW.16
   ADVISOR-PANEL als Premium-Sidebar (One-UX, Avatar-Gradient)
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── 210. OVERLAY — premium blur backdrop ────────────────────────── */
.aob-advisor-overlay {
    background: rgba(20,28,32,.55) !important;
    backdrop-filter: blur(8px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
    z-index: 1095 !important;
    transition: opacity .35s ease !important;
}

/* ─── 211. PANEL — als Premium-Sidebar links rein ─────────────────── */
.aob-advisor-panel {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: min(480px, 96vw) !important;
    z-index: 1100 !important;

    /* Premium Card-Look — weißer Hintergrund, brand-Schatten */
    background: #ffffff !important;
    color: #1d1d1b !important;

    /* Soft rechte Kante abgerundet — wie eine "herausschauende" Karte */
    border-radius: 0 28px 28px 0 !important;

    /* Premium Triple-Shadow */
    box-shadow:
        20px 0 60px rgba(94,125,131,.25),
        8px 0 24px rgba(94,125,131,.15),
        inset -1px 0 0 rgba(255,255,255,.5) !important;

    /* Slide-in von links */
    transform: translateX(-105%) !important;
    transition: transform .45s cubic-bezier(.34,1.56,.64,1) !important;

    display: flex !important;
    flex-direction: column !important;
    font-family: 'Poppins', system-ui, sans-serif !important;
    overflow: hidden !important;
}
.aob-advisor-panel[data-open="true"] {
    transform: translateX(0) !important;
}
/* Wave 87BW.93 v3: Mega-Spezifität — andere Regeln überschreiben sonst.
 * Test bestätigte: nur dieser Spezifitäts-Level garantiert dass der transform wirkt. */
html body aside#aobAdvisorPanel.aob-advisor-panel[data-open="true"] {
    transform: translateX(0) !important;
    left: 0 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    /* Wave 87BW.95b: Panel scrollbar machen damit nav-bar erreichbar bleibt */
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
html body aside#aobAdvisorPanel.aob-advisor-panel:not([data-open="true"]) {
    transform: translateX(-105%) !important;
}

/* ─── 212. PANEL HEADER — Avatar-Gradient wie Sidebar-Head ────────── */
.aob-advisor-panel__head {
    background:
        radial-gradient(120% 80% at 30% 0%, rgba(218,190,146,.25) 0%, transparent 70%),
        linear-gradient(135deg, #90a7ac 0%, #7e9499 50%, #5e7d83 100%) !important;
    color: #ffffff !important;
    border-bottom: none !important;
    padding: 28px 26px 22px !important;
    position: relative !important;
    overflow: hidden !important;
}
.aob-advisor-panel__head::after {
    /* Gold-spot top-right */
    content: '';
    position: absolute;
    inset: -50% -10% auto auto;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 60%);
    pointer-events: none;
}
.aob-advisor-panel__head h2 {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: -.01em !important;
    margin: 0 !important;
    position: relative;
    z-index: 1;
}
.aob-advisor-panel__head h2::before {
    /* Subtle sparkle vor dem Titel */
    content: '✨';
    margin-right: 8px;
    font-size: 1.1rem;
    opacity: .9;
}
.aob-advisor-panel__close {
    background: rgba(255,255,255,.18) !important;
    color: #ffffff !important;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    border-radius: 50% !important;
    font-size: 22px !important;
    cursor: pointer !important;
    transition: background .25s ease, transform .25s var(--ux-ease) !important;
    position: relative;
    z-index: 1;
}
.aob-advisor-panel__close:hover,
.aob-advisor-panel__close:focus-visible {
    background: rgba(255,255,255,.35) !important;
    color: #ffffff !important;
    transform: rotate(90deg) scale(1.05);
    outline: none !important;
}

/* ─── 213. PROGRESS — Gold-Brand-Gradient ─────────────────────────── */
.aob-advisor-progress {
    height: 5px !important;
    background: rgba(94,125,131,.12) !important;
}
.aob-advisor-progress__bar {
    background: linear-gradient(90deg, #90a7ac 0%, #dabe92 100%) !important;
    box-shadow: 0 1px 4px rgba(218,190,146,.4) !important;
}
.aob-advisor-step-indicator {
    margin: 14px 26px 0 !important;
    font-size: .72rem !important;
    color: #97804f !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    padding: 4px 10px !important;
    display: inline-block !important;
    background: linear-gradient(135deg, #faf6ef 0%, #f4ead8 100%) !important;
    border: 1px solid rgba(218,190,146,.4) !important;
    border-radius: 999px !important;
    align-self: flex-start !important;
}

/* ─── 214. FORM-CONTENT — saubere One-UX Typo ──────────────────────── */
.aob-advisor-form {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 18px 26px 120px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(94,125,131,.25) transparent !important;
}
.aob-advisor-form::-webkit-scrollbar { width: 6px; }
.aob-advisor-form::-webkit-scrollbar-thumb {
    background: rgba(94,125,131,.25);
    border-radius: 3px;
}

.aob-advisor-step {
    border: none !important;
    padding: 14px 0 0 !important;
    margin: 0 !important;
}
.aob-advisor-step legend {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1d1d1b !important;
    margin-bottom: 18px !important;
    line-height: 1.35 !important;
    letter-spacing: -.005em !important;
}
.aob-advisor-step legend small {
    display: block !important;
    font-size: .82rem !important;
    font-weight: 400 !important;
    color: #6b6e72 !important;
    margin-top: 6px !important;
    line-height: 1.45 !important;
}

/* ─── 215. OPTIONS-Grid — Glass-Cards ─────────────────────────────── */
.aob-advisor-grid {
    gap: 10px !important;
}
.aob-advisor-option {
    border-radius: var(--ux-radius) !important;
    overflow: hidden !important;
}
.aob-advisor-option > span,
.aob-advisor-option > div,
.aob-advisor-option__label {
    background: #ffffff !important;
    border: 1.5px solid #ece4d4 !important;
    border-radius: var(--ux-radius) !important;
    padding: 14px 14px !important;
    color: #1d1d1b !important;
    font-weight: 500 !important;
    font-size: .92rem !important;
    transition: all .25s var(--ux-ease) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 56px !important;
    box-shadow: 0 1px 3px rgba(20,20,20,.04);
}
.aob-advisor-option:hover > span,
.aob-advisor-option:hover > div,
.aob-advisor-option:hover .aob-advisor-option__label {
    border-color: #90a7ac !important;
    background: linear-gradient(135deg, #f4f8f9 0%, #ffffff 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(94,125,131,.18);
}
.aob-advisor-option input:checked + span,
.aob-advisor-option input:checked + div,
.aob-advisor-option input:checked ~ .aob-advisor-option__label {
    background: linear-gradient(135deg, #90a7ac 0%, #7e9499 50%, #5e7d83 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(94,125,131,.35) !important;
    transform: translateY(-1px);
}

/* ─── 216. INPUTS / TEXTAREAS ──────────────────────────────────── */
.aob-advisor-panel input[type="text"],
.aob-advisor-panel input[type="number"],
.aob-advisor-panel input[type="email"],
.aob-advisor-panel input[type="tel"],
.aob-advisor-panel textarea,
.aob-advisor-panel select {
    width: 100% !important;
    background: #fafaf7 !important;
    border: 1.5px solid #ece4d4 !important;
    border-radius: var(--ux-radius) !important;
    padding: 12px 14px !important;
    font-size: .95rem !important;
    color: #1d1d1b !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
}
.aob-advisor-panel input:focus,
.aob-advisor-panel textarea:focus,
.aob-advisor-panel select:focus {
    border-color: #90a7ac !important;
    box-shadow: 0 0 0 4px rgba(144,167,172,.18) !important;
    outline: none !important;
    background: #ffffff !important;
}

/* ─── 217. NAV-BUTTONS (Weiter / Zurück) — Avatar-Gradient ──────── */
/* Wave 87BW.95b: Nav-Bar war position:absolute bottom:0 — buttons UNTERHALB des
 * Viewport-Rands wenn Panel höher als Viewport. Jetzt: sticky bottom:0 INNERHALB
 * eines scrollbaren Panel → buttons IMMER sichtbar, content scrollt nach Bedarf. */
.aob-advisor-nav,
.aob-advisor-actions {
    position: sticky !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    padding: 16px 26px 18px !important;
    display: flex !important;
    gap: 12px !important;
    justify-content: space-between !important;
    z-index: 5;
    border-top: 1px solid #f0ebde;
    /* Schöner Fade-Effekt nach oben damit übergang zu Form weich ist */
    box-shadow: 0 -8px 16px -8px rgba(94,125,131,.12);
}
.aob-advisor-panel button[type="button"],
.aob-advisor-panel button[type="submit"],
.aob-advisor-nav button,
.aob-advisor-actions button {
    background: linear-gradient(135deg, #90a7ac 0%, #7e9499 50%, #5e7d83 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 26px !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: .92rem !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(94,125,131,.32) !important;
    transition: transform .25s var(--ux-ease), box-shadow .25s ease, background .25s ease !important;
    flex: 1 1 auto;
    max-width: 200px;
}
.aob-advisor-panel button:hover {
    background: linear-gradient(135deg, #a5b8bc 0%, #90a7ac 50%, #6e8b91 100%) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 24px rgba(94,125,131,.45) !important;
}

/* "Zurück" als Outline-Style */
.aob-advisor-panel button.aob-advisor-back,
.aob-advisor-nav button[data-back],
.aob-advisor-actions button[data-back] {
    background: transparent !important;
    color: #5e7d83 !important;
    border: 1.5px solid #ece4d4 !important;
    box-shadow: none !important;
}
.aob-advisor-panel button.aob-advisor-back:hover,
.aob-advisor-nav button[data-back]:hover {
    background: linear-gradient(135deg, #90a7ac 0%, #7e9499 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(94,125,131,.32) !important;
}

/* ─── 218. RESULT-CARDS (Empfehlungen) ─────────────────────────── */
.aob-advisor-recommendation,
.aob-advisor-result-card {
    background: #ffffff !important;
    border: 1px solid #ece4d4 !important;
    border-radius: var(--ux-radius) !important;
    padding: 18px 18px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 4px 14px rgba(94,125,131,.1) !important;
    transition: transform .25s var(--ux-ease), box-shadow .25s ease !important;
}
.aob-advisor-recommendation:hover,
.aob-advisor-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(94,125,131,.18) !important;
}
.aob-advisor-recommendation h3,
.aob-advisor-recommendation h4,
.aob-advisor-result-card h3,
.aob-advisor-result-card h4 {
    color: #5e7d83 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
}
.aob-advisor-recommendation .price,
.aob-advisor-result-card .price {
    color: #97804f !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

/* ─── 219. Mobile: Sidebar = full-width ───────────────────────────── */
@media (max-width: 540px) {
    .aob-advisor-panel {
        width: 100vw !important;
        border-radius: 0 !important;
    }
    .aob-advisor-panel__head {
        padding: 22px 20px 18px !important;
    }
    .aob-advisor-form {
        padding: 14px 18px 110px !important;
    }
}

/* ─── 220. Sicherstellen dass NICHTS am Bottom aufklappt ──────────── */
/* Falls altes Markup das Panel als bottom-sheet rendert */
.aob-advisor-panel[style*="bottom"]:not([style*="top"]) {
    top: 0 !important;
    bottom: 0 !important;
}

/* ─── 204. Reduce-motion: keine Pulse-Animation ─────────────────── */
@media (prefers-reduced-motion: reduce) {
    .aob-advisor-fab::before { animation: none; opacity: 0; }
    .aob-advisor-fab { transition: none !important; }
}

/* ─── 999. Quick-Actions Buttons höhere Sichtbarkeit ──────────────── */
.acc-bs-scope .card.text-center .btn,
.acc-bs-scope .card.text-center .btn-outline-secondary {
    margin-top: auto;
    align-self: stretch;
    background: linear-gradient(135deg, var(--ux-brand) 0%, #7e9499 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 9px 16px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(144,167,172,.25);
}
.acc-bs-scope .card.text-center .btn:hover,
.acc-bs-scope .card.text-center .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #7e9499 0%, var(--ux-brand) 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(144,167,172,.4);
}

/* ─── 27. SHIMMERING UNDERLINE on Active Links ────────────────────── */
.acc-bs-scope .acc-sidebar .list-group-item.active::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ux-brand);
    box-shadow: 0 0 8px var(--ux-brand);
}

