/**
 * TomorrowJobs Connect – Glass Design 2026
 *
 * Wird nach allen anderen Stylesheets geladen (includes/glass_design.php) und ändert nur
 * die Optik: Farben, Glas, Rundungen, Schrift, Animationen. Keine Funktion.
 * Altes Design: Einbindung in includes/glass_design.php auskommentieren.
 *
 * @author    Compiaz Design
 * @copyright 2026 Compiaz Design. Alle Rechte vorbehalten.
 * @license   Proprietär – siehe LICENSE
 */

:root {
    --g-gold: #d4a629;
    --g-gold-light: #e8c04a;
    --g-gold-deep: #a97f12;
    --g-ink: #1c1b18;
    --g-ink-2: #55514a;
    --g-ink-3: #8c877b;
    --g-canvas: #f6f4ee;

    --g-glass: rgba(255, 255, 255, 0.50);
    --g-glass-strong: rgba(255, 255, 255, 0.74);
    --g-glass-dark: rgba(28, 27, 24, 0.86);
    --g-stroke: rgba(255, 255, 255, 0.85);
    --g-hair: rgba(70, 55, 15, 0.09);

    --g-blur: blur(26px) saturate(175%);
    --g-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset,
                0 14px 36px -14px rgba(70, 52, 8, 0.20),
                0 2px 6px rgba(70, 52, 8, 0.04);
    --g-shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.85) inset,
                   0 6px 18px -8px rgba(70, 52, 8, 0.16);

    --g-r-xl: 28px;
    --g-r-lg: 22px;
    --g-r-md: 16px;
    --g-r-sm: 12px;

    --g-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
    --g-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- Grundfläche: warmer Hintergrund mit weichem Goldlicht ---------- */
html { background: var(--g-canvas); }

html body {
    font-family: var(--g-font);
    color: var(--g-ink);
    background: transparent !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(520px 420px at 94% 8%, rgba(232, 192, 74, 0.34), transparent 66%),
        radial-gradient(460px 420px at 4% 42%, rgba(240, 200, 120, 0.26), transparent 66%),
        radial-gradient(560px 480px at 88% 66%, rgba(150, 172, 206, 0.36), transparent 66%),
        radial-gradient(640px 520px at 18% 100%, rgba(196, 180, 220, 0.24), transparent 66%),
        var(--g-canvas);
}

html body h1, html body h2, html body h3, html body h4,
html body .page-title, html body .modern-card-title {
    font-family: var(--g-font);
    letter-spacing: -0.02em;
    color: var(--g-ink);
}

html body .page-title {
    font-weight: 800;
    letter-spacing: -0.03em;
}

html body .page-subtitle,
html body .text-muted {
    color: var(--g-ink-2) !important;
}

html body ::selection { background: rgba(212, 166, 41, 0.3); }

/* ---------- Kopfleiste (Glas) ---------- */
html body .modern-navbar {
    background: rgba(255, 255, 255, 0.58);
    -webkit-backdrop-filter: var(--g-blur);
    backdrop-filter: var(--g-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 0 var(--g-hair), 0 18px 40px -28px rgba(70, 52, 8, 0.35);
    padding: 14px 32px;
}

html body .modern-navbar .logo-img {
    height: 46px;
    width: 46px;
}

/* ---------- Seitenleiste (schwebende Glasplatte) ---------- */
@media (min-width: 769px) {
    html body .modern-sidebar {
        left: 16px;
        top: 96px;
        width: calc(var(--sidebar-width, 280px) - 32px);
        height: calc(100vh - 112px);
        border: 1px solid var(--g-stroke);
        border-radius: var(--g-r-xl);
        background: var(--g-glass);
        -webkit-backdrop-filter: var(--g-blur);
        backdrop-filter: var(--g-blur);
        box-shadow: var(--g-shadow);
        padding: 14px 10px 18px;
    }

    html body .modern-sidebar__brand {
        border-bottom: 1px solid var(--g-hair);
    }

    html body .sidebar-section-title {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        color: var(--g-ink-3);
        padding: 14px 14px 6px;
    }

    html body .modern-nav-item {
        padding: 11px 14px;
        border-radius: 14px;
        font-weight: 600;
        font-size: 14.5px;
        color: var(--g-ink-2);
        margin-bottom: 2px;
        transition: background 0.2s var(--g-ease), color 0.2s var(--g-ease), transform 0.2s var(--g-ease);
    }

    html body .modern-nav-item i {
        color: var(--g-ink-3);
        transition: color 0.2s var(--g-ease);
    }

    html body .modern-nav-item:hover {
        background: rgba(255, 255, 255, 0.7);
        color: var(--g-ink);
    }

    html body .modern-nav-item.active {
        color: var(--g-ink);
        background: linear-gradient(135deg, rgba(232, 192, 74, 0.34), rgba(212, 166, 41, 0.14));
        box-shadow: inset 0 0 0 1px rgba(212, 166, 41, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }

    html body .modern-nav-item.active::before { display: none; }
    html body .modern-nav-item.active i { color: var(--g-gold-deep); }

    html body .nav-badge {
        background: linear-gradient(135deg, var(--g-gold-light), var(--g-gold));
        color: var(--g-ink);
        box-shadow: 0 2px 6px rgba(212, 166, 41, 0.4);
    }

    html body .modern-main {
        padding: 28px 36px 56px;
    }
}

/* ---------- Karten ---------- */
html body .modern-card,
html body .modern-stat-card,
html body .stat-card,
html body .tj-app-tile,
html body .adm-quick,
html body .tj-profile-shell {
    background: var(--g-glass);
    -webkit-backdrop-filter: var(--g-blur);
    backdrop-filter: var(--g-blur);
    border: 1px solid var(--g-stroke);
    border-radius: var(--g-r-lg);
    box-shadow: var(--g-shadow);
}

html body .modern-card-header {
    background: transparent;
    border-bottom: 1px solid var(--g-hair);
    padding: 18px 22px;
}

html body .modern-card-body { padding: 20px 22px; }

html body .modern-card-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

html body .modern-card-title i { color: var(--g-gold-deep); }

/* Kennzahl-Kacheln: Glas mit zarter Tönung je Typ */
html body .modern-stat-card::before { display: none; }

html body .modern-stat-card:has(.stat-icon-modern.gold)  { background: linear-gradient(160deg, rgba(255, 236, 178, 0.62), rgba(255, 255, 255, 0.52)); }
html body .modern-stat-card:has(.stat-icon-modern.blue)  { background: linear-gradient(160deg, rgba(206, 224, 255, 0.55), rgba(255, 255, 255, 0.52)); }
html body .modern-stat-card:has(.stat-icon-modern.green) { background: linear-gradient(160deg, rgba(204, 240, 220, 0.58), rgba(255, 255, 255, 0.52)); }
html body .modern-stat-card:has(.stat-icon-modern.red)   { background: linear-gradient(160deg, rgba(255, 214, 214, 0.55), rgba(255, 255, 255, 0.52)); }
html body .modern-stat-card:has(.stat-icon-modern.gray)  { background: linear-gradient(160deg, rgba(228, 228, 232, 0.6), rgba(255, 255, 255, 0.52)); }

html body .modern-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 20px 40px -16px rgba(70, 52, 8, 0.26);
}

html body .stat-icon-modern {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 10px -4px rgba(70, 52, 8, 0.18);
}

html body .stat-value {
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--g-ink);
}

html body .stat-label {
    font-weight: 600;
    color: var(--g-ink-2);
}

html body .stat-header .stat-trend {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    padding: 3px 10px;
    font-weight: 600;
}

html body .modern-stat-card .stat-trend:not(.stat-header .stat-trend) {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    color: var(--g-ink-2);
}

/* ---------- Hero-Bänder (dunkles Glas mit Goldlicht) ---------- */
html body .adm-hero,
html body .adm-staff-hero,
html body .staffing-hero-modern,
html body .staffing-hero,
html body .tj-mobile-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--g-r-xl);
    color: #fff;
    background:
        radial-gradient(360px 220px at 96% -14%, rgba(232, 192, 74, 0.34), transparent 70%),
        linear-gradient(150deg, #1d1d1f 0%, #2b2b2e 58%, #38373a 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 24px 48px -20px rgba(28, 22, 6, 0.55);
}

html body .adm-hero::before,
html body .adm-hero::after,
html body .adm-staff-hero::before,
html body .adm-staff-hero::after,
html body .tj-mobile-hero::before,
html body .tj-mobile-hero::after { display: none !important; }

html body .adm-hero .page-subtitle,
html body .adm-hero__subtitle,
html body .adm-hero .text-muted { color: rgba(255, 255, 255, 0.72) !important; }

html body .adm-hero__title,
html body .tj-mobile-hero__title { color: #fff; letter-spacing: -0.03em; }

html body .tj-mobile-hero__subtitle { color: var(--g-gold-light); opacity: 1; }

html body .adm-hero__eyebrow,
html body .tj-mobile-hero__eyebrow { color: rgba(255, 255, 255, 0.72); opacity: 1; }

/* ---------- Buttons ---------- */
html body .btn,
html body .btn-modern,
html body .adm-hero__btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: -0.005em;
    transition: transform 0.18s var(--g-ease), box-shadow 0.2s var(--g-ease), background 0.2s var(--g-ease);
}

html body .btn:active,
html body .btn-modern:active { transform: scale(0.97); }

html body .btn-primary,
html body .btn-modern-primary,
html body .adm-hero__btn--gold,
html body .staffing-hero-cta,
html body .btn-warning {
    color: var(--g-ink) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(180deg, var(--g-gold-light) 0%, var(--g-gold) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 10px 22px -8px rgba(212, 166, 41, 0.65);
}

html body .btn-primary:hover,
html body .btn-modern-primary:hover,
html body .btn-warning:hover {
    background: linear-gradient(180deg, #efca58 0%, #dbab2c 100%);
    transform: translateY(-1px);
}

html body .btn-modern-outline,
html body .btn-outline-secondary,
html body .btn-outline-primary,
html body .btn-secondary,
html body .btn-light {
    color: var(--g-ink);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--g-stroke);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--g-shadow-sm);
}

html body .btn-modern-outline:hover,
html body .btn-outline-secondary:hover,
html body .btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--g-ink);
}

html body .adm-hero__btn:not(.adm-hero__btn--gold) {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

html body a.btn,
html body a.btn-modern,
html body a.adm-hero__btn,
html body .btn-modern * { text-decoration: none !important; }

/* Arbeitgeber-Seitenkopf */
html body .staffing-app-hero,
html body .staffing-hero-modern,
html body .emp-page-hero {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.72), rgba(255, 244, 214, 0.55));
    border: 1px solid var(--g-stroke);
    border-radius: var(--g-r-xl);
    box-shadow: var(--g-shadow);
    -webkit-backdrop-filter: var(--g-blur);
    backdrop-filter: var(--g-blur);
    color: var(--g-ink);
}

html body .staffing-app-hero__icon {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    color: var(--g-gold-deep);
    box-shadow: var(--g-shadow-sm);
}

html body .progress { background: rgba(70, 55, 15, 0.08); border-radius: 999px; }
html body .progress-bar { border-radius: 999px; }

/* ---------- Formulare ---------- */
html body .form-control,
html body .form-select,
html body .tj-profile-input,
html body textarea.form-control {
    min-height: 46px;
    border-radius: var(--g-r-md);
    border: 1px solid rgba(70, 55, 15, 0.12);
    background-color: rgba(255, 255, 255, 0.66);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    color: var(--g-ink);
    font-size: 15px;
    padding: 10px 14px;
}

html body .form-control::placeholder { color: var(--g-ink-3); }

html body .form-control:focus,
html body .form-select:focus,
html body .tj-profile-input:focus {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(212, 166, 41, 0.75);
    box-shadow: 0 0 0 4px rgba(212, 166, 41, 0.20);
    outline: none;
}

html body .form-label,
html body .staffing-field-label {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--g-ink-2);
}

html body .form-check-input:checked {
    background-color: var(--g-gold);
    border-color: var(--g-gold);
}

/* ---------- Badges, Hinweise ---------- */
html body .badge {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 5px 10px;
}

html body .alert {
    border-radius: var(--g-r-md);
    border: 1px solid var(--g-stroke);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

/* ---------- Menüs, Dialoge ---------- */
html body .modern-user-dropdown,
html body .dropdown-menu {
    background: var(--g-glass-strong);
    -webkit-backdrop-filter: var(--g-blur);
    backdrop-filter: var(--g-blur);
    border: 1px solid var(--g-stroke);
    border-radius: var(--g-r-lg);
    box-shadow: 0 24px 60px -20px rgba(40, 28, 4, 0.35);
}

html body .modal-content {
    background: var(--g-glass-strong);
    -webkit-backdrop-filter: blur(36px) saturate(190%);
    backdrop-filter: blur(36px) saturate(190%);
    border: 1px solid var(--g-stroke);
    border-radius: var(--g-r-xl);
    box-shadow: 0 40px 90px -30px rgba(40, 28, 4, 0.5);
}

html body .modal-backdrop.show {
    opacity: 1;
    background: rgba(28, 24, 14, 0.32);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* ---------- Tabellen ---------- */
html body .table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.5);
}

html body .table > :not(caption) > * > * { border-color: var(--g-hair); }

html body .table thead th {
    font-size: 11.5px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--g-ink-3);
    font-weight: 700;
}

/* =============================================================================
   APP-ANSICHT (iPhone, ≤ 768px)
   ============================================================================= */
@media (max-width: 768px) {

    html body {
        padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
        background: transparent;
    }

    /* Kopfleiste: ruhiges Glas, Logo links, runde Glas-Knöpfe rechts */
    html body .modern-navbar {
        background: rgba(255, 255, 255, 0.58);
        -webkit-backdrop-filter: blur(30px) saturate(190%);
        backdrop-filter: blur(30px) saturate(190%);
        border-bottom: none;
        box-shadow: 0 0.5px 0 rgba(70, 55, 15, 0.14);
        padding: env(safe-area-inset-top, 0px) 0 0;
    }

    html body .modern-navbar > .d-flex {
        min-height: 60px;
        padding: 8px max(18px, env(safe-area-inset-right, 0px)) 8px max(18px, env(safe-area-inset-left, 0px));
    }

    html body .modern-navbar .logo-img { height: 36px; width: 36px; }

    html body .tj-nav-action,
    html body .notification-icon,
    html body #tjNotifBell {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        background: rgba(255, 255, 255, 0.66);
        border: 1px solid var(--g-stroke);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        box-shadow: var(--g-shadow-sm);
    }

    html body .tj-nav-action i,
    html body .notification-icon i,
    html body #tjNotifBell i { color: var(--g-gold-deep); font-size: 17px; }

    html body .tj-nav-avatar,
    html body .modern-user-avatar.tj-nav-avatar {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border: 2px solid rgba(255, 255, 255, 0.95);
        background: linear-gradient(145deg, var(--g-gold-light), var(--g-gold));
        color: var(--g-ink);
        box-shadow: 0 0 0 1px rgba(212, 166, 41, 0.35), 0 8px 18px -6px rgba(212, 166, 41, 0.6);
    }

    html body .notification-badge {
        border: 2px solid #f7f3ea;
        background: #ff453a;
        box-shadow: 0 2px 6px rgba(255, 69, 58, 0.4);
    }

    /* Inhalt */
    html body .modern-main {
        padding: 14px max(16px, env(safe-area-inset-left, 0px)) 24px max(16px, env(safe-area-inset-right, 0px));
    }

    html body .page-title {
        font-size: 30px;
        line-height: 1.1;
        margin-bottom: 4px;
    }

    html body .page-subtitle {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 18px;
    }

    html body .tj-mobile-hero {
        margin: 2px 0 18px;
        padding: 22px 20px 20px;
        border-radius: var(--g-r-xl);
    }

    html body .tj-mobile-hero__title {
        font-size: 28px;
        font-weight: 800;
        line-height: 1.1;
    }

    html body .tj-mobile-hero__eyebrow {
        font-size: 12px;
        letter-spacing: 0.08em;
    }

    html body .adm-mhero__pills {
        flex-wrap: wrap;
        overflow: visible;
        gap: 8px;
        margin: 14px 0 0;
        padding: 0;
    }

    html body .adm-mhero__pill {
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-radius: 999px;
        flex: 0 0 auto;
    }

    html body .adm-mhero__pill--gold {
        background: linear-gradient(180deg, var(--g-gold-light), var(--g-gold));
        color: var(--g-ink);
        border-color: rgba(255, 255, 255, 0.4);
    }

    html body .tj-tab-shell::before {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(110px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(to top, rgba(246, 244, 238, 0.96) 0%, rgba(246, 244, 238, 0.82) 45%, rgba(246, 244, 238, 0) 100%);
        pointer-events: none;
        z-index: -1;
    }

    /* Kennzahlen: immer sichtbar, 2 Spalten statt Seitwärts-Wischen */
    html body .stats-grid,
    html body #overview-section .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        overflow: visible;
        scroll-snap-type: none;
        padding: 0;
        margin: 0 0 20px;
    }

    html body .stats-grid .modern-stat-card,
    html body #overview-section .modern-stat-card {
        flex: initial;
        min-width: 0;
        padding: 16px;
        border-radius: var(--g-r-lg);
    }

    html body #overview-section .stat-value,
    html body .stat-value {
        font-size: 34px;
        line-height: 1;
        margin: 10px 0 6px;
    }

    html body #overview-section .stat-label,
    html body .stat-label {
        font-size: 13.5px;
        line-height: 1.25;
        font-weight: 700;
        color: var(--g-ink);
    }

    html body .stat-icon-modern,
    html body #overview-section .stat-icon-modern {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 12px;
    }

    html body .modern-card { border-radius: var(--g-r-lg); margin-bottom: 14px; }
    html body .modern-card-header { padding: 16px 18px; }
    html body .modern-card-body { padding: 16px 18px; }

    html body .btn-modern,
    html body .btn-primary,
    html body .btn-modern-primary {
        min-height: 48px;
    }

    /* Untere App-Leiste: schwebende Glaskapsel */
    html body .tj-tab-shell {
        left: max(16px, env(safe-area-inset-left, 0px));
        right: max(16px, env(safe-area-inset-right, 0px));
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    }

    html body .tj-bottom-nav {
        height: 66px;
        padding: 7px 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.60);
        -webkit-backdrop-filter: blur(34px) saturate(210%);
        backdrop-filter: blur(34px) saturate(210%);
        border: 1px solid rgba(255, 255, 255, 0.80);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.95) inset,
            0 -1px 0 rgba(70, 55, 15, 0.04) inset,
            0 22px 44px -14px rgba(60, 44, 6, 0.34),
            0 4px 10px rgba(60, 44, 6, 0.06);
    }

    html body .tj-bottom-nav__indicator {
        top: 7px;
        height: calc(100% - 14px);
        background: linear-gradient(180deg, rgba(232, 192, 74, 0.34), rgba(212, 166, 41, 0.20));
        box-shadow: inset 0 0 0 1px rgba(212, 166, 41, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }

    html body .tj-bottom-nav__label {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0;
        color: var(--g-ink-3);
    }

    html body .tj-bottom-nav__icon { font-size: 20px; color: var(--g-ink-2); }

    html body .tj-bottom-nav__item--active .tj-bottom-nav__icon,
    html body .tj-bottom-nav__item--active .tj-bottom-nav__icon i,
    html body .tj-bottom-nav__item--active .tj-bottom-nav__icon svg {
        color: var(--g-gold-deep) !important;
        -webkit-text-fill-color: var(--g-gold-deep);
        filter: none;
        text-shadow: none;
        transform: none;
    }

    html body .tj-bottom-nav__item--active .tj-bottom-nav__label,
    html body .tj-bottom-nav__item--center.tj-bottom-nav__item--active .tj-bottom-nav__label {
        color: var(--g-ink);
        font-weight: 700;
        text-shadow: none;
    }

    html body .tj-bottom-nav__icon--fab {
        width: 46px;
        height: 46px;
        background: linear-gradient(160deg, var(--g-gold-light) 0%, var(--g-gold) 60%, var(--g-gold-deep) 100%);
        color: var(--g-ink) !important;
        -webkit-text-fill-color: var(--g-ink);
        border: 2px solid rgba(255, 255, 255, 0.9);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 12px 22px -6px rgba(212, 166, 41, 0.7);
        transform: translateY(-8px);
    }

    html body .tj-bottom-nav__item--center.tj-bottom-nav__item--active .tj-bottom-nav__icon--fab {
        transform: translateY(-9px) scale(1.04);
    }

    html body .tj-bottom-nav__item--center.tj-bottom-nav__item--active .tj-bottom-nav__icon--fab i {
        color: var(--g-ink) !important;
        -webkit-text-fill-color: var(--g-ink);
    }

    html body .tj-bottom-nav__item--active .tj-bottom-nav__icon--avatar {
        border-color: var(--g-gold);
        box-shadow: 0 0 0 2px rgba(212, 166, 41, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    html body * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* =============================================================================
   LOGIN
   ============================================================================= */
html:has(.login-page) { background: var(--g-canvas) !important; }

html body.login-page { background: transparent !important; }

html body .login-box {
    font-family: var(--g-font);
}

html body .login-header h1,
html body .login-header h2,
html body .tj-login-mobile-hero h1,
html body .tj-login-mobile-hero h2 {
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--g-ink);
}

html body .login-footer a,
html body .forgot-link,
html body .register-link { text-decoration: none; }

html body .forgot-link { color: var(--g-gold-deep); font-weight: 700; }

@media (max-width: 768px) {
    html body.login-page {
        background: transparent !important;
    }

    html body .login-box {
        background: var(--g-glass-strong);
        -webkit-backdrop-filter: blur(34px) saturate(190%);
        backdrop-filter: blur(34px) saturate(190%);
        border: 1px solid var(--g-stroke);
        border-radius: 32px;
        box-shadow: var(--g-shadow);
        padding: 26px 22px 20px;
    }

    html body .login-header { margin-bottom: 22px; }

    html body .login-form .form-control,
    html body .password-wrapper .form-control {
        min-height: 52px;
        border-radius: 16px;
        background-color: rgba(255, 255, 255, 0.8);
    }

    html body .login-form .btn-primary,
    html body .btn-block {
        min-height: 54px;
        font-size: 16px;
        border-radius: 999px;
    }

    html body .login-footer .register-link,
    html body .register-link {
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid var(--g-stroke);
        border-radius: 999px;
        min-height: 50px;
        box-shadow: var(--g-shadow-sm);
    }
}

@media (min-width: 769px) {
    html body .tj-login-split__brand {
        background:
            radial-gradient(520px 360px at 85% 0%, rgba(232, 192, 74, 0.32), transparent 70%),
            linear-gradient(150deg, #1d1d1f 0%, #2b2b2e 60%, #38373a 100%);
    }

    html body .tj-login-split__main { background: transparent; }

    html body .login-box {
        background: var(--g-glass-strong);
        -webkit-backdrop-filter: blur(34px) saturate(190%);
        backdrop-filter: blur(34px) saturate(190%);
        border: 1px solid var(--g-stroke);
        border-radius: 32px;
        box-shadow: var(--g-shadow);
    }

    html body .login-form .btn-primary { min-height: 52px; font-size: 16px; }
}


/* ---------- Altes Blau -> Gold / Anthrazit ---------- */
:root, html body {
    --primary-blue: #d4a629;
    --bs-primary: #d4a629;
    --bs-primary-rgb: 212, 166, 41;
    --bs-link-color: #a97f12;
    --bs-link-hover-color: #7d5d0b;
    --bs-link-color-rgb: 169, 127, 18;
    --bs-link-hover-color-rgb: 125, 93, 11;
}

html body .adm-staff-hero .page-subtitle { color: rgba(255, 255, 255, 0.78) !important; }
html body .adm-staff-hero .page-title { color: #fff !important; }
html body .adm-staff-hero__eyebrow { color: var(--g-gold-light) !important; }

html body .text-primary,
html body .link-primary { color: var(--g-gold-deep) !important; }
html body .bg-primary { background-color: var(--g-gold) !important; color: var(--g-ink) !important; }
html body .badge.bg-primary,
html body .badge-primary { background: rgba(212, 166, 41, 0.18) !important; color: var(--g-gold-deep) !important; }
html body .border-primary { border-color: var(--g-gold) !important; }

html body .staffing-shift-chip.active .pref-shift-chip-inner,
html body .staffing-shift-chips-multi .pref-shift-input:checked + .pref-shift-chip-inner,
html body .btn-staffing-add-shift,
html body .btn-staffing-publish,
html body .staffing-shift-badge,
html body .tj-employer-action-overlay__icon,
html body .tj-employer-action-overlay__bar {
    background: linear-gradient(180deg, var(--g-gold-light) 0%, var(--g-gold) 100%) !important;
    color: var(--g-ink) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

html body .form-control:focus,
html body .form-select:focus {
    border-color: var(--g-gold) !important;
    box-shadow: 0 0 0 4px rgba(212, 166, 41, 0.20) !important;
}
html body .form-check-input:checked { background-color: var(--g-gold); border-color: var(--g-gold); }
html body .progress-bar { background: linear-gradient(90deg, var(--g-gold), var(--g-gold-light)); }

/* =====================================================================
   WEB-ANSICHT (Desktop) – eigenständig, unabhängig von der App-Ansicht
   ===================================================================== */
@media (min-width: 769px) {
    /* Logo deutlich grösser */
    html body .modern-sidebar__brand {
        padding: 18px 16px 20px;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(28, 27, 24, 0.07);
    }
    html body .modern-sidebar__brand-link { width: 100%; padding: 6px 4px; }
    html body .modern-sidebar__logo {
        width: auto;
        height: 84px;
        max-width: 100%;
        object-fit: contain;
    }
    html body .modern-navbar .logo-img {
        height: 64px;
        width: auto;
        max-width: 240px;
    }
    html body .login-logo, html body .tj-login-split__brand img, html body .login-box img[class*="logo"] {
        height: auto; max-height: 110px; width: auto; max-width: 280px;
    }

    /* Navbar: höher, ruhiger, mehr Luft */
    html body .modern-navbar { min-height: 84px; padding-left: 28px; padding-right: 28px; }

    /* Sidebar: breiter, grössere Menüeinträge */
    :root { --sidebar-width: 304px; }
    html body .modern-sidebar a,
    html body .modern-sidebar .nav-link { font-size: 15px; padding: 11px 14px; border-radius: 14px; }
    html body .modern-sidebar a:hover { background: rgba(212, 166, 41, 0.12); }

    /* Inhalt: weiter, grössere Titel */
    html body .page-title { font-size: 34px; letter-spacing: -0.035em; font-weight: 800; }
    html body .page-subtitle { font-size: 16px; }
    html body .stats-grid { gap: 20px; }
    html body .stat-card-modern { padding: 24px; }
    html body .stat-card-modern:hover { transform: translateY(-3px); }
    html body .stat-number-modern { font-size: 40px; letter-spacing: -0.04em; }
}

@media (min-width: 1200px) {
    :root { --sidebar-width: 320px; }
    html body .modern-sidebar__logo { height: 96px; }
}

/* =====================================================================
   TIEFE & BEWEGUNG 2026
   Mehr Plastizität statt flacher Flächen: Lichtkanten, metallisches
   Gold (wie im Logo), weiche Mehrfach-Schatten, dezente Animationen.
   Nur Optik – keine Funktion. Bei «Bewegung reduzieren» aus.
   ===================================================================== */
:root {
    --g-metal: linear-gradient(135deg, #f6e3a1 0%, #e2b947 22%, #c9971f 48%, #e9c766 72%, #b8861a 100%);
    --g-metal-soft: linear-gradient(135deg, #fbefc6 0%, #f0d27c 45%, #e2b53f 100%);
    --g-copper: linear-gradient(135deg, #f1cfb1 0%, #c98d5d 55%, #a8683d 100%);
    --g-depth:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 -1px 0 rgba(120, 90, 20, 0.06) inset,
        0 1px 2px rgba(60, 45, 10, 0.06),
        0 8px 18px -6px rgba(60, 45, 10, 0.10),
        0 28px 56px -24px rgba(60, 45, 10, 0.22);
    --g-depth-hover:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 -1px 0 rgba(120, 90, 20, 0.06) inset,
        0 2px 4px rgba(60, 45, 10, 0.06),
        0 14px 28px -8px rgba(60, 45, 10, 0.16),
        0 40px 72px -28px rgba(60, 45, 10, 0.30);
    --g-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Hintergrund: Lichtflächen bewegen sich sehr langsam ---------- */
html body::before {
    background:
        radial-gradient(560px 460px at 94% 6%, rgba(232, 192, 74, 0.40), transparent 66%),
        radial-gradient(480px 440px at 2% 40%, rgba(240, 196, 110, 0.30), transparent 66%),
        radial-gradient(600px 500px at 86% 70%, rgba(201, 141, 93, 0.20), transparent 66%),
        radial-gradient(680px 540px at 20% 104%, rgba(176, 160, 210, 0.22), transparent 66%),
        linear-gradient(180deg, #faf8f2 0%, #f3efe4 100%);
    animation: tjAurora 38s ease-in-out infinite alternate;
    transform-origin: 60% 40%;
}
@keyframes tjAurora {
    0%   { transform: scale(1) translate3d(0, 0, 0); filter: hue-rotate(0deg); }
    50%  { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
    100% { transform: scale(1.04) translate3d(1.5%, -1.2%, 0); filter: hue-rotate(-8deg); }
}

/* ---------- Karten: Glas mit Lichtkante oben und echter Tiefe ---------- */
html body .modern-card,
html body .modern-stat-card,
html body .stat-card,
html body .tj-app-tile,
html body .adm-quick,
html body .tj-profile-shell {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.40) 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.55);
    box-shadow: var(--g-depth);
    transition: transform 0.45s var(--g-ease), box-shadow 0.45s var(--g-ease);
}

html body .modern-stat-card,
html body .tj-app-tile,
html body .adm-quick { position: relative; overflow: hidden; }

/* Glanzlicht, das beim Überfahren über die Kachel wandert */
html body .modern-stat-card::after,
html body .tj-app-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 62%);
    transform: translateX(-120%);
    transition: transform 0.9s var(--g-ease);
}
html body .modern-stat-card:hover::after,
html body .tj-app-tile:hover::after { transform: translateX(120%); }

html body .modern-stat-card:hover,
html body .tj-app-tile:hover,
html body .adm-quick:hover {
    transform: translateY(-4px);
    box-shadow: var(--g-depth-hover);
}

/* Getönte Kacheln behalten Farbe, bekommen aber mehr Licht */
html body .modern-stat-card:has(.stat-icon-modern.gold)  { background-image: linear-gradient(160deg, rgba(255, 233, 170, 0.78) 0%, rgba(255, 248, 228, 0.55) 55%, rgba(255, 255, 255, 0.45) 100%); }
html body .modern-stat-card:has(.stat-icon-modern.blue)  { background-image: linear-gradient(160deg, rgba(214, 226, 250, 0.75) 0%, rgba(240, 244, 252, 0.55) 55%, rgba(255, 255, 255, 0.45) 100%); }
html body .modern-stat-card:has(.stat-icon-modern.green) { background-image: linear-gradient(160deg, rgba(204, 238, 218, 0.75) 0%, rgba(236, 248, 240, 0.55) 55%, rgba(255, 255, 255, 0.45) 100%); }
html body .modern-stat-card:has(.stat-icon-modern.red)   { background-image: linear-gradient(160deg, rgba(255, 218, 208, 0.75) 0%, rgba(255, 242, 236, 0.55) 55%, rgba(255, 255, 255, 0.45) 100%); }
html body .modern-stat-card:has(.stat-icon-modern.gray)  { background-image: linear-gradient(160deg, rgba(232, 230, 226, 0.78) 0%, rgba(246, 245, 242, 0.55) 55%, rgba(255, 255, 255, 0.45) 100%); }

/* ---------- Symbole: plastische Chips mit Metall-Verlauf ---------- */
html body .stat-icon-modern {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 -2px 4px rgba(0, 0, 0, 0.10) inset,
        0 8px 16px -6px rgba(120, 85, 10, 0.45);
    transition: transform 0.5s var(--g-spring);
}
html body .stat-icon-modern i { color: #fff !important; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18)); }
html body .stat-icon-modern.gold  { background: var(--g-metal) !important; }
html body .stat-icon-modern.blue  { background: linear-gradient(135deg, #8fa3c4 0%, #4d628a 55%, #33466b 100%) !important; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 -2px 4px rgba(0,0,0,.12) inset, 0 8px 16px -6px rgba(40, 60, 100, 0.45); }
html body .stat-icon-modern.green { background: linear-gradient(135deg, #9fdcb7 0%, #3fa86e 55%, #2a8656 100%) !important; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 -2px 4px rgba(0,0,0,.12) inset, 0 8px 16px -6px rgba(30, 110, 70, 0.40); }
html body .stat-icon-modern.red   { background: var(--g-copper) !important; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 -2px 4px rgba(0,0,0,.12) inset, 0 8px 16px -6px rgba(150, 80, 40, 0.40); }
html body .stat-icon-modern.gray  { background: linear-gradient(135deg, #8b8a86 0%, #4a4946 55%, #2e2d2b 100%) !important; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -2px 4px rgba(0,0,0,.18) inset, 0 8px 16px -6px rgba(30, 30, 30, 0.40); }
html body .modern-stat-card:hover .stat-icon-modern { transform: translateY(-2px) rotate(-6deg) scale(1.06); }

html body .modern-card-title i,
html body .staffing-app-hero__icon {
    filter: drop-shadow(0 2px 3px rgba(169, 127, 18, 0.25));
}

/* Zahlen: leicht prägend, wie geprägtes Metall */
html body .stat-value,
html body .stat-number-modern {
    color: #171612;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 14px rgba(60, 45, 10, 0.12);
}

/* ---------- Hero: dunkles Glas mit wanderndem Goldlicht ---------- */
html body .adm-hero,
html body .adm-staff-hero,
html body .staffing-hero-modern,
html body .staffing-hero,
html body .tj-mobile-hero {
    background:
        radial-gradient(420px 260px at 96% -10%, rgba(240, 200, 90, 0.42), transparent 70%),
        radial-gradient(360px 240px at 0% 120%, rgba(201, 141, 93, 0.22), transparent 70%),
        linear-gradient(150deg, #1b1a18 0%, #2a2926 55%, #3a3834 100%);
    background-size: 160% 160%, 140% 140%, 100% 100%;
    animation: tjHeroLight 16s ease-in-out infinite alternate;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.16) inset,
        0 -1px 0 rgba(0, 0, 0, 0.4) inset,
        0 2px 6px rgba(20, 15, 5, 0.12),
        0 30px 60px -24px rgba(28, 22, 6, 0.60);
}
@keyframes tjHeroLight {
    0%   { background-position: 100% 0%, 0% 100%, 0 0; }
    100% { background-position: 70% 30%, 25% 80%, 0 0; }
}

/* ---------- Gold-Buttons: gebürstetes Metall + Glanzlauf ---------- */
html body .btn-primary,
html body .btn-modern-primary,
html body .adm-hero__btn--gold,
html body .staffing-hero-cta,
html body .btn-warning,
html body .btn-staffing-publish,
html body .btn-staffing-add-shift {
    background: linear-gradient(110deg, #e9c766 0%, #d4a629 30%, #f3dc8e 50%, #d4a629 70%, #c19020 100%) !important;
    background-size: 220% 100% !important;
    background-position: 100% 0 !important;
    border: 1px solid rgba(255, 240, 200, 0.7) !important;
    color: #1c1b18 !important;
    text-shadow: 0 1px 0 rgba(255, 245, 210, 0.55);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 -2px 3px rgba(120, 85, 10, 0.18) inset,
        0 10px 22px -8px rgba(190, 140, 20, 0.65);
    transition: background-position 0.9s var(--g-ease), transform 0.25s var(--g-spring), box-shadow 0.3s var(--g-ease) !important;
}
html body .btn-primary:hover,
html body .btn-modern-primary:hover,
html body .adm-hero__btn--gold:hover,
html body .staffing-hero-cta:hover,
html body .btn-warning:hover,
html body .btn-staffing-publish:hover,
html body .btn-staffing-add-shift:hover {
    background-position: 0 0 !important;
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 -2px 3px rgba(120, 85, 10, 0.18) inset,
        0 16px 30px -10px rgba(190, 140, 20, 0.75);
}

html body .btn-light,
html body .btn-outline-secondary,
html body .btn-outline-primary,
html body .btn-modern-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62));
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 0 #fff inset, 0 -1px 0 rgba(120, 90, 20, 0.06) inset, 0 6px 14px -6px rgba(60, 45, 10, 0.18);
    color: var(--g-ink) !important;
}
html body .btn-light:hover,
html body .btn-outline-secondary:hover,
html body .btn-outline-primary:hover,
html body .btn-modern-secondary:hover {
    background: #fff;
    color: var(--g-ink) !important;
    border-color: rgba(212, 166, 41, 0.45);
}
html body .alert-info,
html body .adm-emp-callout {
    background: linear-gradient(180deg, rgba(255, 248, 228, 0.9), rgba(255, 243, 210, 0.75));
    border: 1px solid rgba(212, 166, 41, 0.28);
    color: #5a4610;
}
html body .adm-emp-callout i,
html body .alert-info i { color: var(--g-gold-deep) !important; }

/* ---------- Thema-Animationen an den Symbolen (beim Überfahren) ---------- */
html body .btn:hover .fa-paper-plane,
html body .modern-nav-item:hover .fa-paper-plane,
html body a:hover > .fa-paper-plane { animation: tjFly 0.7s var(--g-ease); }
html body .btn:hover .fa-plus,
html body a:hover > .fa-plus { transform: rotate(90deg); transition: transform 0.4s var(--g-spring); }
html body .btn:hover .fa-arrow-right,
html body a:hover .fa-arrow-right { animation: tjNudge 0.8s var(--g-ease) infinite; }
html body .btn:hover .fa-sync,
html body .btn:hover .fa-sync-alt,
html body .btn:hover .fa-rotate,
html body .btn:hover .fa-arrows-rotate,
html body button:hover .fa-arrows-rotate { animation: tjSpin 0.8s var(--g-ease); }
html body .notification-icon:hover .fa-bell,
html body .modern-nav-item:hover .fa-bell { animation: tjRing 0.9s ease; transform-origin: 50% 0; }
html body .modern-nav-item:hover .fa-chart-line,
html body .modern-nav-item:hover .fa-chart-pie { animation: tjPop 0.5s var(--g-spring); }
html body .modern-nav-item:hover .fa-users,
html body .modern-nav-item:hover .fa-user-clock,
html body .modern-nav-item:hover .fa-user-nurse,
html body .modern-nav-item:hover .fa-user-check { animation: tjBob 0.6s var(--g-spring); }
html body .modern-nav-item:hover .fa-magnifying-glass,
html body .modern-nav-item:hover .fa-search { animation: tjSearch 0.8s var(--g-ease); }
html body .modern-nav-item:hover .fa-gear,
html body .modern-nav-item:hover .fa-cog { animation: tjSpin 1s var(--g-ease); }
html body .modern-nav-item:hover .fa-ban { animation: tjShake 0.45s ease; }

/* Glocke schwingt einmal, wenn ungelesene Mitteilungen da sind */
html body .notification-icon:has(.notification-badge:not(:empty)) .fa-bell {
    animation: tjRing 1.2s ease 1.2s 2;
    transform-origin: 50% 0;
}
html body .notification-badge {
    background: linear-gradient(135deg, #ff6b5a, #e0352b) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 4px 10px rgba(224, 53, 43, 0.45);
    animation: tjBadgeIn 0.6s var(--g-spring) both;
}

/* «Live»-Punkte pulsieren ruhig */
html body .adm-kpi__pulse,
html body .adm-hero__dot,
html body .adm-sl-card__dot { position: relative; }
html body .adm-kpi__pulse::after,
html body .adm-hero__dot::after,
html body .adm-sl-card__dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.35;
    animation: tjPulse 2.4s ease-out infinite;
    pointer-events: none;
}

/* Balken füllen sich beim Laden sanft */
html body .progress-bar,
html body .adm-fill__bar,
html body [class*="__bar-fill"],
html body [class*="progress-fill"] {
    transform-origin: left center;
    animation: tjFill 1.1s var(--g-ease) 0.25s both;
}

/* Inhalte erscheinen weich von unten (nur beim Laden / Bereichswechsel) */
html body .content-section.active,
html body .modern-main > .container-fluid > *,
html body .modern-main > *:not(script):not(style):not(.modal) {
    animation: tjRise 0.6s var(--g-ease) both;
}
html body .stats-grid > *,
html body .modern-stats-grid > *,
html body .row > [class*="col"] > .modern-stat-card {
    animation: tjRise 0.65s var(--g-ease) both;
}
html body .stats-grid > *:nth-child(2),
html body .modern-stats-grid > *:nth-child(2) { animation-delay: 0.06s; }
html body .stats-grid > *:nth-child(3),
html body .modern-stats-grid > *:nth-child(3) { animation-delay: 0.12s; }
html body .stats-grid > *:nth-child(4),
html body .modern-stats-grid > *:nth-child(4) { animation-delay: 0.18s; }
html body .stats-grid > *:nth-child(n+5),
html body .modern-stats-grid > *:nth-child(n+5) { animation-delay: 0.24s; }

html body .modal.show .modal-dialog { animation: tjModal 0.45s var(--g-spring) both; }
html body .dropdown-menu.show { animation: tjDrop 0.28s var(--g-ease) both; transform-origin: top right; }

@keyframes tjRise   { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes tjModal  { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes tjDrop   { from { opacity: 0; transform: translate3d(0, -6px, 0) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes tjFill   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tjPulse  { 0% { transform: scale(0.6); opacity: 0.5; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes tjRing   { 0%,100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }
@keyframes tjFly    { 0% { transform: none; } 45% { transform: translate(6px, -6px) scale(0.9); opacity: 0; } 46% { transform: translate(-6px, 6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes tjNudge  { 0%,100% { transform: none; } 50% { transform: translateX(4px); } }
@keyframes tjSpin   { to { transform: rotate(360deg); } }
@keyframes tjPop    { 0% { transform: scale(1); } 50% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes tjBob    { 0%,100% { transform: none; } 40% { transform: translateY(-3px); } }
@keyframes tjSearch { 0%,100% { transform: none; } 30% { transform: translate(2px, -2px) rotate(-10deg); } 60% { transform: translate(-1px, 1px) rotate(6deg); } }
@keyframes tjShake  { 0%,100% { transform: none; } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes tjBadgeIn { from { transform: scale(0); } to { transform: scale(1); } }

/* =====================================================================
   SEITENLEISTE (nur Web/Desktop) – plastisches Glas-Panel
   ===================================================================== */
@media (min-width: 769px) {
    html body .modern-sidebar {
        background:
            radial-gradient(280px 200px at 50% -40px, rgba(240, 200, 90, 0.26), transparent 70%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.50) 100%);
        border: 1px solid rgba(255, 255, 255, 0.95);
        box-shadow: var(--g-depth);
        padding: 12px 14px 20px;
        animation: tjSideIn 0.7s var(--g-ease) both;
    }

    /* Logo-Bühne: Logo bleibt wie es ist, nur grösser und mit Lichtfläche dahinter */
    html body .modern-sidebar__brand {
        position: relative;
        padding: 22px 8px 22px;
        margin: 0 0 8px;
        border-bottom: none;
    }
    html body .modern-sidebar__brand::after {
        content: "";
        position: absolute;
        left: 12%; right: 12%; bottom: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(169, 127, 18, 0.35), transparent);
    }

    html body .sidebar-section { margin-bottom: 6px; }
    html body .sidebar-section-title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 10.5px;
        letter-spacing: 0.12em;
        color: var(--g-ink-3);
        padding: 16px 12px 8px;
    }
    html body .sidebar-section-title::after {
        content: "";
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, rgba(70, 55, 15, 0.12), transparent);
    }

    /* Menüpunkte: Symbol in eigenem Chip */
    html body .modern-nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        padding: 8px 12px 8px 8px;
        margin: 2px 0;
        border-radius: 16px;
        font-size: 14.5px;
        font-weight: 600;
        color: var(--g-ink-2);
        border: 1px solid transparent;
        transition: background 0.3s var(--g-ease), box-shadow 0.3s var(--g-ease), color 0.2s, transform 0.3s var(--g-ease);
    }
    html body .modern-nav-item > i {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        display: inline-grid;
        place-items: center;
        border-radius: 11px;
        font-size: 14px;
        margin: 0;
        color: var(--g-ink-2);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 240, 230, 0.85));
        box-shadow: 0 1px 0 #fff inset, 0 -1px 0 rgba(120, 90, 20, 0.06) inset, 0 3px 8px -3px rgba(60, 45, 10, 0.20);
        transition: background 0.3s var(--g-ease), color 0.3s, box-shadow 0.3s, transform 0.4s var(--g-spring);
    }
    html body .modern-nav-item:hover {
        background: rgba(255, 255, 255, 0.66);
        border-color: rgba(255, 255, 255, 0.9);
        color: var(--g-ink);
        transform: translateX(3px);
        box-shadow: 0 6px 16px -10px rgba(60, 45, 10, 0.35);
    }
    html body .modern-nav-item:hover > i { color: var(--g-gold-deep); }

    html body .modern-nav-item.active {
        color: var(--g-ink);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 236, 0.86));
        border-color: rgba(255, 255, 255, 1);
        box-shadow: 0 1px 0 #fff inset, 0 10px 22px -12px rgba(150, 110, 15, 0.55), 0 0 0 1px rgba(212, 166, 41, 0.22);
    }
    html body .modern-nav-item.active > i {
        color: #fff;
        background: var(--g-metal);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 -2px 3px rgba(120, 85, 10, 0.2) inset, 0 6px 12px -4px rgba(190, 140, 20, 0.6);
    }
    html body .modern-nav-item.active::before { display: none !important; }
    html body .modern-nav-item .nav-badge { margin-left: auto; }

    /* Kopfleiste mit feiner Lichtkante */
    html body .modern-navbar {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52));
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 1px 0 rgba(70, 55, 15, 0.06), 0 20px 40px -30px rgba(60, 45, 10, 0.4);
    }
}
@keyframes tjSideIn { from { opacity: 0; transform: translate3d(-12px, 0, 0); } to { opacity: 1; transform: none; } }

/* =====================================================================
   APP (Mobile) – Tab-Leiste und Kacheln lebendiger
   ===================================================================== */
@media (max-width: 768px) {
    html body .tj-bottom-nav__item .tj-bottom-nav__icon { transition: transform 0.45s var(--g-spring); }
    html body .tj-bottom-nav__item:active .tj-bottom-nav__icon { transform: scale(0.86); }
    html body .tj-bottom-nav__item--active .tj-bottom-nav__icon { animation: tjPop 0.5s var(--g-spring); }
    html body .tj-bottom-nav__icon--fab {
        background: var(--g-metal) !important;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 -2px 4px rgba(120, 85, 10, 0.2) inset, 0 10px 22px -6px rgba(190, 140, 20, 0.7) !important;
    }
    html body .modern-stat-card:hover,
    html body .tj-app-tile:hover { transform: none; }
    html body .modern-stat-card:active,
    html body .tj-app-tile:active { transform: scale(0.98); transition-duration: 0.15s; }
}

/* ---------- Bewegung reduzieren: alles ruhig ---------- */
@media (prefers-reduced-motion: reduce) {
    html body *,
    html body *::before,
    html body *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Mitteilungs-Blatt (App) als Glas-Sheet ---------- */
@media (max-width: 768px) {
    html body .tj-notif-panel__backdrop {
        background: rgba(20, 18, 12, 0.32);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }
    html body .tj-notif-panel__sheet {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 247, 238, 0.82));
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        backdrop-filter: blur(30px) saturate(180%);
        border-top: 1px solid rgba(255, 255, 255, 0.95);
        border-radius: 30px 30px 0 0;
        box-shadow: 0 -20px 50px -20px rgba(40, 30, 8, 0.35);
    }
    html body .tj-notif-panel__header { border-bottom: none; }
    html body .tj-notif-panel__list { padding: 4px 12px 24px; }
    html body .tj-notif-panel__list .notification-item {
        margin: 0 0 8px;
        border: 1px solid rgba(255, 255, 255, 0.95);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
        box-shadow: 0 1px 0 #fff inset, 0 6px 16px -10px rgba(60, 45, 10, 0.3);
        animation: tjRise 0.45s var(--g-ease) both;
    }
    html body .tj-notif-panel__list .notification-item.unread {
        background: linear-gradient(180deg, rgba(255, 246, 220, 0.95), rgba(255, 252, 240, 0.8));
        border-color: rgba(212, 166, 41, 0.25);
    }
    html body .tj-notif-panel__list .notification-item:nth-child(2) { animation-delay: 0.04s; }
    html body .tj-notif-panel__list .notification-item:nth-child(3) { animation-delay: 0.08s; }
    html body .tj-notif-panel__list .notification-item:nth-child(n+4) { animation-delay: 0.12s; }
}

/* Dunkle Kopfzonen der Arbeitgeber-Unterseiten: Titel/Text hell */
html body .staffing-hero .page-title,
html body .staffing-hero-modern .page-title { color: #fff !important; }
html body .staffing-hero .page-subtitle,
html body .staffing-hero-modern .page-subtitle,
html body .staffing-hero .text-muted,
html body .staffing-hero-modern .text-muted { color: rgba(255, 255, 255, 0.74) !important; }

/* ---------- Logo-Fläche in Nachtblau (wie das App-Icon) ---------- */
:root {
    --g-navy-deep: #141f36;
    --g-navy: #1e2f52;
    --g-navy-light: #34507f;
    --g-navy-surface:
        radial-gradient(120% 90% at 50% 0%, rgba(120, 155, 215, 0.22), transparent 62%),
        repeating-radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
        linear-gradient(160deg, var(--g-navy-deep) 0%, var(--g-navy) 52%, var(--g-navy-light) 100%);
}

@media (min-width: 769px) {
    html body .modern-sidebar__brand {
        margin: 2px 0 14px;
        padding: 22px 12px;
        border-radius: 22px;
        background: var(--g-navy-surface);
        border: 1px solid rgba(255, 255, 255, 0.10);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.16) inset,
            0 -1px 0 rgba(0, 0, 0, 0.30) inset,
            0 12px 26px -14px rgba(20, 31, 54, 0.70);
        overflow: hidden;
    }
    html body .modern-sidebar__brand::after { display: none; }
    html body .modern-sidebar__brand-link:hover { opacity: 1; filter: brightness(1.06); }
}

/* App: dieselbe Fläche als kleines Icon-Feld hinter dem Logo oben links */
@media (max-width: 768px) {
    html body .modern-navbar .logo-img {
        padding: 4px;
        border-radius: 12px;
        background: var(--g-navy-surface);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 6px 14px -8px rgba(20, 31, 54, 0.7);
    }
}

/* ---------- Schriftzug «Tomorrow Jobs Connect» unter dem Logo ---------- */
/* Klassische Antiqua wie im Original-Logo. Systemschriften, kein externer Font-Server. */
:root {
    --g-font-brand: "Cormorant Garamond", "EB Garamond", Garamond, "Hoefler Text", "Baskerville", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

html body .modern-sidebar__brand-name { display: none; }

@media (min-width: 769px) {
    html body .modern-sidebar__brand-link {
        flex-direction: column;
        gap: 12px;
        line-height: 1;
        text-decoration: none;
    }
    html body .modern-sidebar__brand-name {
        display: block;
        font-family: var(--g-font-brand);
        font-size: 19px;
        font-weight: 500;
        letter-spacing: 0.01em;
        line-height: 1.15;
        color: #fff;
        text-align: center;
        white-space: nowrap;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    }
}

/* App: Schriftzug neben dem Logo-Feld, zweizeilig damit die Knöpfe Platz behalten */
@media (max-width: 768px) {
    html body .modern-navbar .d-flex:has(> .logo-img) { gap: 10px !important; }
    html body .modern-navbar .d-flex:has(> .logo-img)::after {
        content: "Tomorrow Jobs\A Connect";
        white-space: pre;
        font-family: var(--g-font-brand);
        font-size: 15.5px;
        font-weight: 500;
        line-height: 1.08;
        letter-spacing: 0.005em;
        color: var(--g-navy, #1e2f52);
    }
}
@media (max-width: 350px) {
    html body .modern-navbar .d-flex:has(> .logo-img)::after { content: none; }
}

/* ---------- App (iOS WebView): Eingabefelder zuverlässig fokussierbar ----------
   iOS zeigt die Tastatur teils nicht, wenn ein Feld in einer Fläche mit backdrop-filter
   oder in einem gerade animierten Element liegt, oder wenn eine bildschirmfüllende
   Ebene dauerhaft animiert wird. In der App deshalb für Formulare ohne diese Effekte. */
@media (max-width: 768px) {
    html body::before {
        animation: none !important;
        transform: none !important;
        filter: none !important;
    }

    html body .login-box,
    html body .modal-content,
    html body .modern-card:has(input, textarea, select),
    html body .tj-profile-shell:has(input, textarea, select),
    html body .tj-notif-panel__sheet:has(input, textarea, select),
    html body form:has(input, textarea, select) {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    html body .login-box { background: rgba(255, 255, 255, 0.94) !important; }
    html body .modal-content { background: #fff !important; }

    html body .content-section.active:has(input, textarea, select),
    html body .modern-main > *:has(input, textarea, select),
    html body .modal.show .modal-dialog:has(input, textarea, select) {
        animation: none !important;
    }

    html body input,
    html body textarea,
    html body select,
    html body [contenteditable="true"] {
        -webkit-user-select: text !important;
        user-select: text !important;
        -webkit-touch-callout: default;
        caret-color: #a97f12;
    }
}
