/* =====================================================================
   LEY-IMMOBILIEN · PREMIUM UI LAYER  (Test-Entwurf)
   ---------------------------------------------------------------------
   Reine Optik-Schicht. Wird NACH den bestehenden Styles geladen und
   überschreibt nur Aussehen – kein HTML, kein JavaScript, keine Logik
   wird verändert. Zum Entfernen einfach die <link>-Zeile löschen.
   ===================================================================== */

/* ---------- 1. Design-Tokens ---------------------------------------- */
:root {
    /* Flächen – warmes Tiefschwarz statt Neutralgrau */
    --bg-primary:   #0A0A0B;
    --bg-secondary: #121214;
    --bg-tertiary:  #1A1A1D;
    --bg-elevated:  #16161A;

    /* Text – leicht warmes Weiß */
    --text-primary:   #F5F2EB;
    --text-secondary: #A9A49B;
    --text-muted:     #6F6B64;

    /* Champagner-Gold */
    --accent:        #CDA85E;
    --accent-hover:  #E0C07F;
    --accent-soft:   rgba(205, 168, 94, 0.10);
    --accent-line:   rgba(205, 168, 94, 0.32);
    --accent-grad:   linear-gradient(135deg, #EBD29A 0%, #CDA85E 45%, #A8843F 100%);

    --border:        rgba(255, 255, 255, 0.07);
    --border-hover:  rgba(255, 255, 255, 0.14);

    --success: #5FB98A;
    --warning: #E3A64B;
    --error:   #E0645C;
    --danger:  #E0645C;

    --shadow:     rgba(0, 0, 0, 0.45);
    --shadow-sm:  0 1px 2px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.03) inset;
    --shadow-md:  0 10px 30px -12px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.04) inset;
    --shadow-lg:  0 30px 80px -20px rgba(0,0,0,.8);

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;

    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="light"] {
    --bg-primary:   #F6F4EF;
    --bg-secondary: #FFFFFF;
    --bg-tertiary:  #F0EDE6;
    --bg-elevated:  #FFFFFF;
    --text-primary:   #1B1A17;
    --text-secondary: #5D5850;
    --text-muted:     #948E84;
    --accent:        #A8843F;
    --accent-hover:  #8F6F31;
    --accent-soft:   rgba(168, 132, 63, 0.10);
    --accent-line:   rgba(168, 132, 63, 0.35);
    --border:        rgba(27, 26, 23, 0.08);
    --border-hover:  rgba(27, 26, 23, 0.16);
    --shadow:     rgba(40, 32, 20, 0.10);
    --shadow-sm:  0 1px 2px rgba(40,32,20,.06);
    --shadow-md:  0 12px 30px -14px rgba(40,32,20,.18);
    --shadow-lg:  0 30px 80px -24px rgba(40,32,20,.25);
}

/* ---------- 2. Grundlagen ------------------------------------------ */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: var(--font-ui) !important;
    font-feature-settings: 'cv11';
    letter-spacing: -0.005em;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(205,168,94,.07), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(205,168,94,.04), transparent 60%),
        var(--bg-primary) !important;
    background-attachment: fixed !important;
}
[data-theme="light"] body {
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(168,132,63,.08), transparent 60%),
        var(--bg-primary) !important;
}

button, input, select, textarea { font-family: inherit; }

::selection { background: rgba(205,168,94,.35); color: #fff; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.10); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(205,168,94,.35); background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }

/* ---------- 3. Icon-Bibliothek (SVG-Masken) ------------------------- */
:root {
    --i-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3Cpath d='M10 21v-6h4v6'/%3E%3C/svg%3E");
    --i-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.6 2.6A2 2 0 0 0 11.2 2H4a2 2 0 0 0-2 2v7.2a2 2 0 0 0 .6 1.4l8.7 8.7a2.4 2.4 0 0 0 3.4 0l6.6-6.6a2.4 2.4 0 0 0 0-3.4z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E");
    --i-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='17' rx='2.5'/%3E%3Cpath d='M16 2.5v4M8 2.5v4M3 10h18'/%3E%3C/svg%3E");
    --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
    --i-receipt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 2.5h14v19l-3-2-2 2-2-2-2 2-2-2-3 2z'/%3E%3Cpath d='M9 7.5h6M9 11.5h6M9 15.5h3'/%3E%3C/svg%3E");
    --i-archive: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='3.5' width='19' height='5' rx='1.5'/%3E%3Cpath d='M4.5 8.5v10a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-10M10 12.5h4'/%3E%3C/svg%3E");
    --i-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8.5 8.5 0 0 1-12.4 7.5L3 21l1.5-5.2A8.5 8.5 0 1 1 21 12z'/%3E%3C/svg%3E");
    --i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
    --i-gear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.2 2h-.4a2 2 0 0 0-2 2v.2a2 2 0 0 1-1 1.7l-.4.3a2 2 0 0 1-2 0l-.2-.1a2 2 0 0 0-2.7.7l-.2.4a2 2 0 0 0 .7 2.7l.2.1a2 2 0 0 1 1 1.7v.5a2 2 0 0 1-1 1.7l-.2.1a2 2 0 0 0-.7 2.7l.2.4a2 2 0 0 0 2.7.7l.2-.1a2 2 0 0 1 2 0l.4.3a2 2 0 0 1 1 1.7v.2a2 2 0 0 0 2 2h.4a2 2 0 0 0 2-2v-.2a2 2 0 0 1 1-1.7l.4-.3a2 2 0 0 1 2 0l.2.1a2 2 0 0 0 2.7-.7l.2-.4a2 2 0 0 0-.7-2.7l-.2-.1a2 2 0 0 1-1-1.7v-.5a2 2 0 0 1 1-1.7l.2-.1a2 2 0 0 0 .7-2.7l-.2-.4a2 2 0 0 0-2.7-.7l-.2.1a2 2 0 0 1-2 0l-.4-.3a2 2 0 0 1-1-1.7V4a2 2 0 0 0-2-2z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    --i-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7.5' height='7.5' rx='1.5'/%3E%3Crect x='13.5' y='3' width='7.5' height='7.5' rx='1.5'/%3E%3Crect x='3' y='13.5' width='7.5' height='7.5' rx='1.5'/%3E%3Crect x='13.5' y='13.5' width='7.5' height='7.5' rx='1.5'/%3E%3C/svg%3E");
    --i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
    --i-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M16 4.6a3.5 3.5 0 0 1 0 6.8M18 14a6.5 6.5 0 0 1 3.5 6'/%3E%3C/svg%3E");
    --i-note: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E");
    --i-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2.5H6.5a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2.5V8h5.5M8.5 13h7M8.5 17h5'/%3E%3C/svg%3E");
    --i-clip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 11-8.6 8.6a5.5 5.5 0 0 1-7.8-7.8l8.6-8.6a3.7 3.7 0 0 1 5.2 5.2l-8.6 8.6a1.8 1.8 0 0 1-2.6-2.6L15 6.6'/%3E%3C/svg%3E");
    --i-history: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5M12 7v5l3.5 2'/%3E%3C/svg%3E");
    --i-euro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6.5A7.5 7.5 0 1 0 18 17.5'/%3E%3Cpath d='M4 10h9M4 14h9'/%3E%3C/svg%3E");
    --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F6B64' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    --i-arrow-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 18l-6-6 6-6'/%3E%3C/svg%3E");
    --i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9A49B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* ---------- 4. Sidebar (Dashboard) ---------------------------------- */
.sidebar {
    background: linear-gradient(180deg, rgba(20,20,23,.92), rgba(12,12,14,.96)) !important;
    border-right: 1px solid var(--border) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding-top: 26px !important;
    box-shadow: 1px 0 0 rgba(255,255,255,.02), 20px 0 60px -40px rgba(0,0,0,.8);
}
[data-theme="light"] .sidebar {
    background: linear-gradient(180deg, #FFFFFF, #FBFAF7) !important;
}

/* Logo oben in der Dashboard-Sidebar (rein per CSS) */
nav.sidebar#sidebar::before {
    content: '';
    display: block;
    flex-shrink: 0;
    height: 62px;
    margin: 0 22px 22px;
    background: url('logo-premium.png') left center / contain no-repeat;
    filter: drop-shadow(0 6px 18px rgba(205,168,94,.18));
}

.sidebar-group { padding: 0 14px !important; gap: 2px !important; }

.sidebar-divider {
    margin: 14px 26px !important;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent) !important;
}

.sidebar-button {
    position: relative;
    justify-content: flex-start !important;
    gap: 12px;
    padding: 11px 14px !important;
    border-radius: 10px !important;
    color: var(--text-secondary) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: .005em;
    transition: background .25s var(--ease), color .25s var(--ease) !important;
}
.sidebar-button::before {
    content: '';
    width: 18px; height: 18px; flex-shrink: 0;
    background: currentColor;
    -webkit-mask: var(--i-grid) center / contain no-repeat;
            mask: var(--i-grid) center / contain no-repeat;
    opacity: .85;
}
.sidebar-button[data-section="vermietung"]::before   { -webkit-mask-image: var(--i-key);     mask-image: var(--i-key); }
.sidebar-button[data-section="verkauf"]::before      { -webkit-mask-image: var(--i-tag);     mask-image: var(--i-tag); }
.sidebar-button[data-section="auszuege"]::before     { -webkit-mask-image: var(--i-cal);     mask-image: var(--i-cal); }
.sidebar-button[data-section="aufgaben"]::before     { -webkit-mask-image: var(--i-check);   mask-image: var(--i-check); }
.sidebar-button[data-section="rechnungen"]::before   { -webkit-mask-image: var(--i-receipt); mask-image: var(--i-receipt); }
.sidebar-button[data-section="abgelegte"]::before    { -webkit-mask-image: var(--i-archive); mask-image: var(--i-archive); }
.sidebar-button[data-section="chat"]::before         { -webkit-mask-image: var(--i-chat);    mask-image: var(--i-chat); }
.sidebar-button[data-section="zeiterfassung"]::before{ -webkit-mask-image: var(--i-clock);   mask-image: var(--i-clock); }
.sidebar-button.settings::before                     { -webkit-mask-image: var(--i-gear);    mask-image: var(--i-gear); }

.sidebar-button:hover {
    background: rgba(255,255,255,.04) !important;
    color: var(--text-primary) !important;
}
[data-theme="light"] .sidebar-button:hover { background: rgba(0,0,0,.035) !important; }

.sidebar-button.active {
    background: linear-gradient(90deg, rgba(205,168,94,.16), rgba(205,168,94,.04)) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    box-shadow: inset 0 0 0 1px rgba(205,168,94,.18);
}
.sidebar-button.active::before { background: var(--accent); opacity: 1; }
.sidebar-button.active::after {
    content: '';
    position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--accent-grad);
    box-shadow: 0 0 12px rgba(205,168,94,.6);
}

.sidebar-badge {
    margin-left: auto !important;
    background: var(--accent-grad) !important;
    color: #1A1406 !important;
    font-weight: 700 !important;
    font-size: 10.5px !important;
    min-width: 20px; height: 20px;
    padding: 0 6px !important;
    border-radius: 999px !important;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(205,168,94,.35);
}
.sidebar-badge[style*="none"] { display: none !important; }

.sidebar-button.settings {
    margin: 10px 14px 0 !important;
    width: calc(100% - 28px) !important;
    border-top: 1px solid var(--border) !important;
    border-radius: 0 !important;
    padding-top: 16px !important;
}
.sidebar-button.settings:hover { background: transparent !important; }

/* ---------- 5. Hauptbereich & Kopfzeilen ----------------------------- */
body > .main-content:not(:has(> .content-body)) { padding: 36px 40px !important; gap: 28px !important; }
@media (max-width: 1200px) { body > .main-content:not(:has(> .content-body)) { padding: 24px !important; } }
@media (max-width: 768px)  { body > .main-content:not(:has(> .content-body)) { padding: 14px !important; gap: 16px !important; } }

.content-header h1 {
    font-family: var(--font-display);
    font-weight: 600 !important;
    font-size: 34px !important;
    letter-spacing: -.01em;
}

/* ---------- 6. Kennzahlen-Karten ------------------------------------ */
.stats-container { gap: 18px !important; }

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px 24px 20px !important;
    border-radius: var(--r-lg) !important;
    border: 1px solid var(--border) !important;
    background:
        linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,0) 55%),
        var(--bg-secondary) !important;
    box-shadow: var(--shadow-md);
    transition: transform .35s var(--ease), border-color .35s var(--ease);
}

.stat-card::before {
    content: '';
    position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(205,168,94,.55), transparent);
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--accent-line) !important; }

.stat-card h3 {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .16em !important;
    color: var(--text-muted) !important;
    margin-bottom: 10px !important;
}
.stat-card .number {
    font-family: var(--font-display);
    font-size: 48px !important;
    line-height: 1;
    font-weight: 600 !important;
    background: var(--accent-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent) !important;
}

/* ---------- 7. Such- & Filterleiste --------------------------------- */
.filters-container {
    border-radius: var(--r-lg) !important;
    padding: 18px 20px !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-md);
}

.search-input,
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], input[type="tel"], input[type="search"], input[type="url"],
input:not([type]), select, textarea {
    background-color: rgba(255,255,255,.03) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: var(--text-primary) !important;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease) !important;
}
[data-theme="light"] .search-input,
[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
[data-theme="light"] select, [data-theme="light"] textarea { background-color: #FBFAF7 !important; }

.search-input:hover, input:hover, select:hover, textarea:hover { border-color: var(--border-hover) !important; }

.search-input:focus, input:focus, select:focus, textarea:focus {
    outline: none !important;
    border-color: var(--accent-line) !important;
    background-color: rgba(205,168,94,.04) !important;
    box-shadow: 0 0 0 4px rgba(205,168,94,.10) !important;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

.search-input {
    padding-left: 44px !important;
    height: 44px;
    background-image: var(--i-search) !important;
    background-repeat: no-repeat !important;
    background-position: 15px center !important;
    background-size: 17px !important;
}

select {
    -webkit-appearance: none; appearance: none;
    background-image: var(--i-chev) !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px !important;
    padding-right: 34px !important;
}
select option { background: var(--bg-secondary); color: var(--text-primary); }

.traffic-light-filters { gap: 8px; }
.traffic-filter-btn {
    border-width: 1px !important;
    border-radius: 999px !important;
    height: 36px !important;
    min-width: 44px !important;
    background: rgba(255,255,255,.03) !important;
    border-color: var(--border) !important;
    color: var(--text-secondary) !important;
    font-size: 12.5px; font-weight: 600;
    transition: all .2s var(--ease) !important;
}
.traffic-filter-btn:hover { border-color: var(--border-hover) !important; background: rgba(255,255,255,.06) !important; }
.traffic-filter-btn.active { border-color: var(--accent-line) !important; background: var(--accent-soft) !important; color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(205,168,94,.08); }
.traffic-filter-btn[data-color="red"].active    { border-color: rgba(224,100,92,.6) !important;  background: rgba(224,100,92,.12) !important; }
.traffic-filter-btn[data-color="yellow"].active { border-color: rgba(227,166,75,.6) !important;  background: rgba(227,166,75,.12) !important; }
.traffic-filter-btn[data-color="green"].active  { border-color: rgba(95,185,138,.6) !important;  background: rgba(95,185,138,.12) !important; }

/* ---------- 8. Buttons ------------------------------------------------ */
.upload-button,
.modal-button.primary,
.edit-button,
.login-button,
button.primary:not(.sidebar-button):not(.modal-tab) {
    background: var(--accent-grad) !important;
    color: #1A1406 !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    letter-spacing: .01em;
    box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 22px -10px rgba(205,168,94,.65) !important;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease) !important;
}
.upload-button:hover,
.modal-button.primary:hover,
.edit-button:hover,
.login-button:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.06);
    box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 14px 30px -12px rgba(205,168,94,.8) !important;
}
.upload-button:active, .modal-button:active, .edit-button:active { transform: translateY(0) scale(.98) !important; }

.modal-button.secondary,
button.secondary {
    background: rgba(255,255,255,.04) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-hover) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
.modal-button.secondary:hover, button.secondary:hover { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.22) !important; }
[data-theme="light"] .modal-button.secondary, [data-theme="light"] button.secondary { background: #fff !important; }

/* Warn- & Lösch-Buttons behalten ihre Bedeutung, aber edler */
.edit-button#deactivateButton {
    background: transparent !important;
    color: var(--warning) !important;
    border: 1px solid rgba(227,166,75,.45) !important;
    box-shadow: none !important;
}
.edit-button#deactivateButton:hover { background: rgba(227,166,75,.10) !important; }
.edit-button.danger, .modal-button.danger, button.danger {
    background: transparent !important;
    color: var(--error) !important;
    border: 1px solid rgba(224,100,92,.45) !important;
    box-shadow: none !important;
}
.edit-button.danger:hover, .modal-button.danger:hover, button.danger:hover { background: rgba(224,100,92,.10) !important; }

/* ---------- 9. Objekt-Karten ----------------------------------------- */
.objects-list {
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)) !important;
    gap: 18px !important;
}
@media (max-width: 768px) { .objects-list { grid-template-columns: 1fr !important; } }

.object-card {
    position: relative;
    border-radius: var(--r-lg) !important;
    padding: 22px 22px 20px !important;
    background:
        linear-gradient(170deg, rgba(255,255,255,.03), rgba(255,255,255,0) 40%),
        var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-md);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease) !important;
    overflow: hidden;
    isolation: isolate;
}
.object-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(205,168,94,.55), rgba(205,168,94,0) 35%, rgba(205,168,94,0) 70%, rgba(205,168,94,.25));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s var(--ease);
    pointer-events: none;
    z-index: -1;
}
.object-card:hover {
    transform: translateY(-3px);
    border-color: transparent !important;
    box-shadow: 0 24px 50px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(205,168,94,.12) !important;
}
.object-card:hover::before { opacity: 1; }
[data-theme="light"] .object-card:hover { box-shadow: 0 24px 50px -24px rgba(40,32,20,.3) !important; }

.object-card h3 {
    font-family: var(--font-ui);
    font-size: 17px !important;
    font-weight: 650 !important;
    letter-spacing: -.01em;
    line-height: 1.3;
    color: var(--text-primary) !important;
    margin-bottom: 4px !important;
}
.object-card > div:first-child, .object-card > .ley-photo + div { margin-bottom: 14px !important; align-items: center !important; }
.object-card > div:first-child > span[title], .object-card > .ley-photo + div > span[title] {
    font-size: 15px !important;
    line-height: 1;
    flex-shrink: 0; margin-left: 12px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    box-shadow: inset 0 0 0 1px var(--border);
}

/* Datenzeilen: Label links, Wert rechts */
.object-card p[style="margin: 0;"] {
    display: flex !important;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-size: 13.5px !important;
    color: var(--text-primary) !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    border-top: 1px solid var(--border);
    text-align: right;
}
.object-card p[style="margin: 0;"] strong {
    flex-shrink: 0;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    font-size: 12.5px;
    text-align: left;
}

/* Phasen-Pille */
.object-card div[style*="border-radius: 999px"][style*="212, 175, 55"] {
    margin-top: 6px;
    background: var(--accent-soft) !important;
    border: 1px solid var(--accent-line) !important;
    color: var(--accent) !important;
    font-weight: 600 !important;
    letter-spacing: .01em;
}

/* Hinweis-Boxen innerhalb der Karten */
.object-card div[style*="border-left: 4px solid"] { border-radius: 10px !important; }

/* Leerer Zustand */
.empty-state {
    border: 1px dashed var(--border-hover) !important;
    border-radius: var(--r-lg) !important;
    padding: 56px 24px !important;
    background: rgba(255,255,255,.015) !important;
}
.empty-state h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; }

/* ---------- 10. Modals ------------------------------------------------ */
.modal, .overlay, .mobile-sidebar-overlay {
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
}
.modal { background: rgba(5,5,6,.66) !important; }
.modal-content {
    border-radius: 22px !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 30%),
        var(--bg-secondary) !important;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(205,168,94,.06) !important;
    animation: leyModalIn .35s var(--ease);
}
@keyframes leyModalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 768px) { .modal-content { border-radius: 0 !important; } }

.modal-header {
    padding: 22px 26px !important;
    border-bottom: 1px solid var(--border) !important;
}
.modal-header h2, .modal-header h3 {
    font-family: var(--font-display);
    font-size: 26px !important;
    font-weight: 600 !important;
    letter-spacing: -.01em;
}
.modal-actions {
    border-top: 1px solid var(--border) !important;
    background: rgba(0,0,0,.12);
}
.close-button {
    border-radius: 10px !important;
    transition: background .2s var(--ease), color .2s var(--ease) !important;
}
.close-button:hover { background: rgba(255,255,255,.06) !important; color: var(--text-primary) !important; }

.modal-tabs, .sub-tabs, .zeiterfassung-tabs, .emoji-picker-tabs {
    background: transparent !important;
}
.modal-tab, .zeiterfassung-tab {
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    transition: all .2s var(--ease) !important;
}
.modal-tab.active, .zeiterfassung-tab.active {
    background: var(--accent-soft) !important;
    border-color: var(--accent-line) !important;
    color: var(--accent) !important;
}

.form-section {
    border-radius: var(--r-md) !important;
    border-color: var(--border) !important;
}
.form-section-title {
    font-size: 11px !important;
    letter-spacing: .16em !important;
    text-transform: uppercase;
    color: var(--accent) !important;
    font-weight: 600 !important;
}
.form-field label, .form-group label, label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: .01em;
}

/* ---------- 11. Einstellungen-Panel --------------------------------- */
.settings-panel {
    background: var(--bg-secondary) !important;
    border-right: 1px solid var(--border) !important;
    box-shadow: 30px 0 60px -30px rgba(0,0,0,.8) !important;
}
.settings-item { border-radius: var(--r-md) !important; }
.toggle-switch { border-radius: 999px !important; }
.toggle-switch.active { background: var(--accent-grad) !important; }

/* ---------- 12. Kalender / Termine / Zeiterfassung -------------------- */
.auszuege-calendar, .calendar-month, .zeiterfassung-card, .zeiterfassung-table-container {
    border-radius: var(--r-lg) !important;
    border: 1px solid var(--border) !important;
    background: var(--bg-secondary) !important;
    box-shadow: var(--shadow-md);
}
.calendar-month-title, .auszuege-calendar-title {
    font-family: var(--font-display);
    font-weight: 600 !important;
    font-size: 24px !important;
}
.calendar-weekday, .zeiterfassung-table th {
    font-size: 10.5px !important;
    letter-spacing: .14em !important;
    text-transform: uppercase;
    color: var(--text-muted) !important;
    font-weight: 600 !important;
}
.calendar-day, .auszuege-calendar-day, .month-view-day {
    border-radius: 10px !important;
    transition: background .2s var(--ease), border-color .2s var(--ease) !important;
}
.calendar-day.today, .auszuege-calendar-day.today, .month-view-day.today {
    box-shadow: inset 0 0 0 1px var(--accent-line) !important;
    background: var(--accent-soft) !important;
}
.calendar-nav-btn, .zeiterfassung-nav-btn, .zeiterfassung-view-btn, .auszuege-calendar-nav button {
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
    background: rgba(255,255,255,.03) !important;
    color: var(--text-primary) !important;
}
.zeiterfassung-view-btn.active { background: var(--accent-soft) !important; border-color: var(--accent-line) !important; color: var(--accent) !important; }
.zeiterfassung-table { border-collapse: separate !important; border-spacing: 0; }
.zeiterfassung-table td { border-color: var(--border) !important; }
.zeiterfassung-table tr:hover td { background: rgba(255,255,255,.02); }

/* ---------- 13. Objektdetails-Seite (property.html) ------------------ */
.sidebar-header {
    padding: 4px 22px 22px !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid var(--border) !important;
}
.sidebar-header h1 {
    font-family: var(--font-display);
    font-weight: 600 !important;
    font-size: 26px !important;
    letter-spacing: -.01em;
    margin-bottom: 6px !important;
}
.sidebar-header .back-button {
    font-size: 12.5px !important;
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: 6px 12px 6px 10px !important;
    margin-left: -2px;
    border: 1px solid var(--border) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.02) !important;
    transition: all .2s var(--ease) !important;
}
.sidebar-header .back-button:hover { color: var(--accent) !important; border-color: var(--accent-line) !important; }

.sidebar-nav { padding: 0 14px !important; gap: 2px !important; }
.sidebar-nav-item {
    position: relative;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    gap: 4px !important;
    font-size: 13.5px !important;
    color: var(--text-secondary) !important;
    transition: background .25s var(--ease), color .25s var(--ease) !important;
}
.sidebar-nav-item:hover { background: rgba(255,255,255,.04) !important; color: var(--text-primary) !important; }
.sidebar-nav-item.active {
    background: linear-gradient(90deg, rgba(205,168,94,.16), rgba(205,168,94,.04)) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    box-shadow: inset 0 0 0 1px rgba(205,168,94,.18);
}
.sidebar-nav-item.active::after {
    content: '';
    position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--accent-grad);
    box-shadow: 0 0 12px rgba(205,168,94,.6);
}

/* Emoji-Icons durch feine Linien-Icons ersetzen (nur optisch) */
.sidebar-nav-item-icon { font-size: 0 !important; width: 18px !important; height: 18px !important; }
.sidebar-nav-item-icon::before {
    content: '';
    width: 18px; height: 18px;
    background: currentColor;
    -webkit-mask: var(--i-grid) center / contain no-repeat;
            mask: var(--i-grid) center / contain no-repeat;
    opacity: .85;
}
.sidebar-nav-item.active .sidebar-nav-item-icon::before { background: var(--accent); opacity: 1; }
.sidebar-nav-item[data-tab="overview"]      .sidebar-nav-item-icon::before { -webkit-mask-image: var(--i-grid);    mask-image: var(--i-grid); }
.sidebar-nav-item[data-tab="owner"]         .sidebar-nav-item-icon::before { -webkit-mask-image: var(--i-user);    mask-image: var(--i-user); }
.sidebar-nav-item[data-tab="tenant"]        .sidebar-nav-item-icon::before { -webkit-mask-image: var(--i-key);     mask-image: var(--i-key); }
.sidebar-nav-item[data-tab="interessenten"] .sidebar-nav-item-icon::before { -webkit-mask-image: var(--i-users);   mask-image: var(--i-users); }
.sidebar-nav-item[data-tab="todos"]         .sidebar-nav-item-icon::before { -webkit-mask-image: var(--i-check);   mask-image: var(--i-check); }
.sidebar-nav-item[data-tab="appointments"]  .sidebar-nav-item-icon::before { -webkit-mask-image: var(--i-cal);     mask-image: var(--i-cal); }
.sidebar-nav-item[data-tab="status"]        .sidebar-nav-item-icon::before { -webkit-mask-image: var(--i-note);    mask-image: var(--i-note); }
.sidebar-nav-item[data-tab="chat"]          .sidebar-nav-item-icon::before { -webkit-mask-image: var(--i-chat);    mask-image: var(--i-chat); }
.sidebar-nav-item[data-tab="expose"]        .sidebar-nav-item-icon::before { -webkit-mask-image: var(--i-doc);     mask-image: var(--i-doc); }
.sidebar-nav-item[data-tab="documents"]     .sidebar-nav-item-icon::before { -webkit-mask-image: var(--i-clip);    mask-image: var(--i-clip); }
.sidebar-nav-item[data-tab="history"]       .sidebar-nav-item-icon::before { -webkit-mask-image: var(--i-history); mask-image: var(--i-history); }
.sidebar-nav-item[data-tab="invoice"]       .sidebar-nav-item-icon::before { -webkit-mask-image: var(--i-euro);    mask-image: var(--i-euro); }

/* Kopfbereich des Objekts */
.main-content > .content-header {
    padding: 30px 40px 26px !important;
    background:
        radial-gradient(600px 200px at 0% 0%, rgba(205,168,94,.08), transparent 70%),
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
        var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border) !important;
    position: relative;
}
.main-content > .content-header::after {
    content: '';
    position: absolute; left: 40px; right: 40px; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, rgba(205,168,94,.5), transparent 60%);
}
.content-header h2 {
    font-family: var(--font-display);
    font-size: 36px !important;
    font-weight: 600 !important;
    letter-spacing: -.015em;
    line-height: 1.1;
    margin-bottom: 6px !important;
}
.content-header .subtitle {
    font-size: 13.5px !important;
    color: var(--text-secondary) !important;
    letter-spacing: .01em;
}
.content-header .edit-button { padding: 10px 18px !important; font-size: 13px !important; }
@media (max-width: 768px) {
    .main-content > .content-header { padding: 18px !important; }
    .content-header h2 { font-size: 26px !important; }
}

/* Wenn kein Titelbild vorhanden ist: Inhalt über die ganze Breite */
.overview-hero-layout:has(> .property-hero[style*="display: none"]),
.overview-hero-layout:not(:has(> .property-hero[style*="display: block"])) {
    grid-template-columns: 1fr !important;
}
.property-hero {
    border-radius: var(--r-lg) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg);
}

.content-body > .tab-content { padding: 32px 40px !important; }
@media (max-width: 768px) { .content-body > .tab-content { padding: 14px !important; } }

/* Sub-Tabs als elegante Segment-Leiste */
.sub-tabs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px !important;
    padding: 5px !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.02) !important;
    margin-bottom: 28px !important;
    width: fit-content;
    max-width: 100%;
}
.sub-tab {
    border: none !important;
    border-radius: 10px !important;
    padding: 9px 16px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    transition: all .2s var(--ease) !important;
}
.sub-tab:hover { color: var(--text-primary) !important; background: rgba(255,255,255,.04) !important; }
.sub-tab.active {
    color: #1A1406 !important;
    background: var(--accent-grad) !important;
    box-shadow: 0 6px 16px -8px rgba(205,168,94,.7);
    font-weight: 600 !important;
}

.section-title {
    font-family: var(--font-display);
    font-size: 26px !important;
    font-weight: 600 !important;
    letter-spacing: -.01em;
    border-bottom: 1px solid var(--border) !important;
    padding-bottom: 14px !important;
    margin-bottom: 22px !important;
}
.section { margin-bottom: 36px !important; }

.info-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 14px !important;
}
.info-card, .info-item {
    border-radius: var(--r-md) !important;
    border: 1px solid var(--border) !important;
    background: linear-gradient(170deg, rgba(255,255,255,.025), rgba(255,255,255,0) 60%), var(--bg-secondary) !important;
    padding: 18px 20px !important;
    transition: border-color .25s var(--ease), transform .25s var(--ease) !important;
}
.info-card:hover, .info-item:hover { border-color: var(--border-hover) !important; }
.info-card h3, .info-item-label {
    font-size: 10.5px !important;
    letter-spacing: .15em !important;
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase;
}
.info-card .value, .info-item-value {
    font-size: 15.5px !important;
    font-weight: 500;
    color: var(--text-primary) !important;
}

/* Karten allgemein: Dokumente, Termine, Interessenten, Eigentümer … */
.appointment-item, .document-card, .document-item, .interessent-card,
.owner-section-card, .folder-section, .interested-person-card, .interested-party-item,
.timeline-card, .zeiterfassung-card, .city-card {
    border-radius: var(--r-md) !important;
    border: 1px solid var(--border) !important;
    background: linear-gradient(170deg, rgba(255,255,255,.025), rgba(255,255,255,0) 60%), var(--bg-secondary) !important;
    box-shadow: var(--shadow-sm);
    transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease) !important;
}
.appointment-item:hover, .document-card:hover, .interessent-card:hover, .city-card:hover {
    border-color: var(--accent-line) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.owner-section-card .owner-section-badge {
    background: var(--accent-grad) !important;
    color: #1A1406 !important;
    border-radius: 999px !important;
}
.folder-header { border-radius: var(--r-md) !important; }
.folder-title { font-weight: 600 !important; }

.photo-grid { gap: 12px !important; }
.photo-item { border-radius: var(--r-md) !important; overflow: hidden; border: 1px solid var(--border); transition: transform .3s var(--ease); }
.photo-item:hover { transform: scale(1.015); }
.photo-upload-area {
    border: 1.5px dashed var(--accent-line) !important;
    border-radius: var(--r-lg) !important;
    background: rgba(205,168,94,.03) !important;
}

/* Chat-Blasen */
.owner-chat-item { border-radius: 14px !important; }

/* ---------- 14. Login (index.html) ----------------------------------- */
.login-container {
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 22px !important;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(205,168,94,.06) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.login-container::before {
    content: '';
    position: absolute; left: 40px; right: 40px; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(205,168,94,.7), transparent);
}
.login-form, .login-container { position: relative; }
.form-group label {
    font-size: 10.5px !important;
    letter-spacing: .16em !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
}
.form-group input { height: 48px; padding: 0 16px !important; font-size: 14.5px !important; }
.login-button {
    height: 50px;
    font-size: 13px !important;
    letter-spacing: .16em !important;
    margin-top: 6px;
}
.logo-container img { filter: drop-shadow(0 20px 40px rgba(205,168,94,.18)); }
.error-message { border-radius: 10px !important; }

/* ---------- 15. Eigentümer-Ansicht (owner-view.html) ------------------ */
.container > .header h1, .header h1 {
    font-family: var(--font-display);
    font-weight: 600 !important;
    font-size: 44px !important;
    letter-spacing: -.015em;
}
.section {
    border-radius: var(--r-lg);
}
.container .section {
    border: 1px solid var(--border) !important;
    background: linear-gradient(170deg, rgba(255,255,255,.03), rgba(255,255,255,0) 50%), var(--bg-secondary) !important;
    box-shadow: var(--shadow-md);
    border-radius: var(--r-lg) !important;
}
.container .section h2, .container .section-title {
    font-family: var(--font-ui);
    font-size: 11px !important;
    letter-spacing: .18em !important;
    color: var(--accent) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
}
.traffic-light-emoji { filter: saturate(.85); }
.traffic-light-status { font-family: var(--font-display); font-size: 28px !important; font-weight: 600 !important; }
.timeline-card { padding: 16px 18px !important; }
.timeline-card-badge {
    border-radius: 999px !important;
    background: var(--accent-soft) !important;
    border-color: var(--accent-line) !important;
    color: var(--accent) !important;
    font-weight: 600 !important;
    letter-spacing: .06em;
}
.timeline-date-day { font-family: var(--font-display); font-size: 28px !important; font-weight: 600 !important; }

/* ---------- 16. Kleinkram ------------------------------------------- */
.emoji-picker {
    border-radius: 16px !important;
    border: 1px solid var(--border-hover) !important;
    box-shadow: var(--shadow-lg) !important;
    background: var(--bg-elevated) !important;
}
table { font-variant-numeric: tabular-nums; }
hr { border-color: var(--border) !important; }
a { color: var(--accent); }

/* Sanftes Einblenden des Inhalts */
@media (prefers-reduced-motion: no-preference) {
    .objects-list > .object-card { animation: leyFadeUp .5s var(--ease) both; }
    .objects-list > .object-card:nth-child(2) { animation-delay: .04s; }
    .objects-list > .object-card:nth-child(3) { animation-delay: .08s; }
    .objects-list > .object-card:nth-child(4) { animation-delay: .12s; }
    .objects-list > .object-card:nth-child(5) { animation-delay: .16s; }
    .objects-list > .object-card:nth-child(n+6) { animation-delay: .2s; }
}
@keyframes leyFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Filter-Button als ruhiger Zweit-Button */
#filterToggleButton {
    background: rgba(255,255,255,.04) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-hover) !important;
    box-shadow: none !important;
}
#filterToggleButton:hover { background: rgba(255,255,255,.08) !important; filter: none; }


/* ---------- 17. Mobil ------------------------------------------------- */
.mobile-menu-button {
    background: rgba(18,18,20,.8) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-hover) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px -10px rgba(0,0,0,.8) !important;
}
[data-theme="light"] .mobile-menu-button { background: rgba(255,255,255,.85) !important; }
@media (max-width: 768px) {
    body > .main-content:not(:has(> .content-body)) { padding-top: 72px !important; }
    .main-content > .content-header { padding-top: 72px !important; }
    .stats-container { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
    .stat-card { padding: 14px 12px !important; border-radius: 14px !important; }
    .stat-card h3 { font-size: 9px !important; letter-spacing: .12em !important; }
    .stat-card .number { font-size: 32px !important; }
    .sub-tabs { width: 100%; }
}
@media (max-width: 768px) { .search-box, .filters-row > .search-input, .search-input { width: 100% !important; flex: 1 1 100% !important; } }

/* =====================================================================
   AURORA-EDITION · Glas & Licht
   (baut auf der Premium-Schicht oben auf)
   ===================================================================== */
:root {
    --bg-primary:   #06060B;
    --bg-secondary: rgba(255,255,255,.045);
    --bg-tertiary:  rgba(255,255,255,.07);
    --bg-elevated:  rgba(22,20,34,.82);

    --text-primary:   #F7F5FF;
    --text-secondary: #B4B0C6;
    --text-muted:     #7C7890;

    --accent:       #F0C574;
    --accent-hover: #FFD891;
    --violet:       #8B6CFF;
    --rose:         #FF7AB6;
    --teal:         #43D9C8;
    --accent-soft:  rgba(240,197,116,.12);
    --accent-line:  rgba(240,197,116,.40);
    --accent-grad:  linear-gradient(120deg, #FFE3A3 0%, #F0C574 30%, #F59E9E 65%, #A98BFF 100%);
    --aurora-grad:  linear-gradient(120deg, #F0C574, #FF8FB8 45%, #8B6CFF 100%);

    --glass:        rgba(255,255,255,.045);
    --glass-strong: rgba(255,255,255,.07);
    --glass-border: rgba(255,255,255,.10);
    --glass-blur:   blur(26px) saturate(160%);

    --border:       rgba(255,255,255,.09);
    --border-hover: rgba(255,255,255,.18);
    --shadow-md:    0 20px 50px -24px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
    --shadow-lg:    0 40px 120px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.1);
}
[data-theme="light"] {
    --bg-primary:   #F4F1FA;
    --bg-secondary: rgba(255,255,255,.55);
    --bg-tertiary:  rgba(255,255,255,.7);
    --bg-elevated:  rgba(255,255,255,.9);
    --text-primary:   #17142A;
    --text-secondary: #585370;
    --text-muted:     #8E89A5;
    --accent:       #B57F1F;
    --accent-hover: #946514;
    --accent-soft:  rgba(181,127,31,.10);
    --accent-line:  rgba(181,127,31,.35);
    --glass:        rgba(255,255,255,.55);
    --glass-strong: rgba(255,255,255,.75);
    --glass-border: rgba(255,255,255,.9);
    --border:       rgba(23,20,42,.08);
    --border-hover: rgba(23,20,42,.16);
    --shadow-md:    0 20px 50px -28px rgba(60,40,120,.35), inset 0 1px 0 rgba(255,255,255,.9);
    --shadow-lg:    0 40px 100px -30px rgba(60,40,120,.4);
}

/* ---------- Aurora-Hintergrund ------------------------------------- */
body {
    background: #06060B !important;
    isolation: isolate;
}
[data-theme="light"] body { background: #F4F1FA !important; }

body::before {
    content: '';
    position: fixed; inset: -20vmax;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(42vmax 32vmax at 30% 26%, rgba(240,197,116,.42), transparent 65%),
        radial-gradient(40vmax 34vmax at 72% 28%, rgba(139,108,255,.50), transparent 65%),
        radial-gradient(36vmax 30vmax at 64% 74%, rgba(255,122,182,.30), transparent 65%),
        radial-gradient(34vmax 28vmax at 30% 76%, rgba(67,217,200,.22), transparent 65%);
    will-change: transform;
    animation: leyAurora 40s ease-in-out infinite alternate;
}
[data-theme="light"] body::before { opacity: .55; }

/* feines Filmkorn + Vignette */
body::after {
    content: '';
    position: fixed; inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.35) 100%);
}
[data-theme="light"] body::after { background: none; }

@keyframes leyAurora {
    0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
    50%  { transform: translate3d(3vmax,-2vmax,0) rotate(8deg) scale(1.08); }
    100% { transform: translate3d(-3vmax,2vmax,0) rotate(-6deg) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* ---------- Glas-Oberflächen ---------------------------------------- */
.stat-card, .filters-container, .object-card, .info-card, .info-item,
.appointment-item, .document-card, .document-item, .interessent-card,
.owner-section-card, .folder-section, .interested-person-card, .interested-party-item,
.timeline-card, .zeiterfassung-card, .city-card, .empty-state,
.auszuege-calendar, .calendar-month, .zeiterfassung-table-container,
.container .section, .login-container {
    background: linear-gradient(155deg, rgba(255,255,255,.075), rgba(255,255,255,.02) 55%, rgba(255,255,255,.035)) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    box-shadow: var(--shadow-md) !important;
}
[data-theme="light"] :is(.stat-card, .filters-container, .object-card, .info-card, .info-item, .appointment-item, .document-card, .interessent-card, .owner-section-card, .timeline-card, .container .section, .login-container, .empty-state) {
    background: linear-gradient(155deg, rgba(255,255,255,.85), rgba(255,255,255,.5)) !important;
}

/* Maus-Lichtkegel auf Karten (Position kommt aus ley-aurora.js) */
.object-card, .stat-card, .info-card, .appointment-item, .interessent-card, .document-card, .container .section {
    --mx: 50%; --my: -200px;
}
.object-card::after, .stat-card::after, .info-card::after, .appointment-item::after, .interessent-card::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.09), transparent 45%);
    opacity: 0;
    transition: opacity .4s;
    z-index: 0;
}
.object-card:hover::after, .stat-card:hover::after, .info-card:hover::after, .appointment-item:hover::after, .interessent-card:hover::after { opacity: 1; }
.info-card, .appointment-item, .interessent-card { position: relative; overflow: hidden; }

/* Leuchtender Rahmen folgt der Maus */
.object-card::before {
    background: radial-gradient(300px circle at var(--mx) var(--my), rgba(240,197,116,.9), rgba(139,108,255,.6) 40%, transparent 70%) !important;
    opacity: 0;
}
.object-card:hover::before { opacity: 1; }

/* ---------- Sidebar: schwebende Glas-Leiste ------------------------- */
@media (min-width: 769px) {
    nav.sidebar {
        margin: 14px 0 14px 14px;
        height: calc(100dvh - 28px) !important;
        max-height: calc(100dvh - 28px) !important;
        border-radius: 26px !important;
        border: 1px solid var(--glass-border) !important;
        background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)) !important;
        backdrop-filter: blur(30px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(30px) saturate(160%) !important;
        box-shadow: var(--shadow-lg) !important;
    }
}
[data-theme="light"] nav.sidebar { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.6)) !important; }

.sidebar-button.active, .sidebar-nav-item.active {
    background: linear-gradient(100deg, rgba(240,197,116,.22), rgba(139,108,255,.14)) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 10px 30px -12px rgba(139,108,255,.5) !important;
}
.sidebar-button.active::after, .sidebar-nav-item.active::after {
    background: var(--aurora-grad) !important;
    box-shadow: 0 0 16px rgba(240,197,116,.8), 0 0 30px rgba(139,108,255,.6) !important;
}
.sidebar-button.active::before, .sidebar-nav-item.active .sidebar-nav-item-icon::before {
    background: var(--aurora-grad) !important;
}

/* ---------- Begrüßung (von ley-aurora.js eingefügt) ----------------- */
.ley-hello {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
    padding: 6px 4px 2px;
    animation: leyFadeUp .8s var(--ease) both;
}
.ley-hello-eyebrow {
    font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
    color: var(--text-muted); font-weight: 600; margin-bottom: 10px;
    display: flex; align-items: center; gap: 10px;
}
.ley-hello-eyebrow::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--teal); box-shadow: 0 0 0 4px rgba(67,217,200,.15), 0 0 14px var(--teal);
    animation: leyPulse 2.4s ease-in-out infinite;
}
.ley-hello h1 {
    font-family: var(--font-display);
    font-size: clamp(38px, 4.6vw, 64px);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -.02em;
    margin: 0;
}
.ley-hello h1 em {
    font-style: italic;
    background: var(--aurora-grad);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    padding-right: .08em;
}
.ley-hello-date {
    text-align: right; color: var(--text-secondary); font-size: 13px; line-height: 1.6;
    padding: 12px 18px; border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.ley-hello-date b { display: block; color: var(--text-primary); font-size: 22px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
@keyframes leyPulse { 50% { box-shadow: 0 0 0 7px rgba(67,217,200,0), 0 0 22px var(--teal); } }
@media (max-width: 768px) { .ley-hello { flex-direction: column; align-items: flex-start; } .ley-hello-date { text-align: left; } }

/* ---------- Kennzahlen: große Aurora-Zahlen -------------------------- */
.stat-card { padding: 26px 28px 24px !important; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-card::before {
    left: 0; right: 0; top: 0; height: 2px !important;
    background: var(--aurora-grad) !important;
    opacity: .7;
}
.stat-card .number {
    font-size: clamp(56px, 6vw, 84px) !important;
    font-weight: 500 !important;
    letter-spacing: -.03em;
    background: var(--aurora-grad) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    filter: drop-shadow(0 8px 30px rgba(240,197,116,.25));
    order: 2;
}
.stat-card h3 { order: 1; display: flex; align-items: center; gap: 8px; }
.stat-card h3::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.stats-container > .stat-card:nth-child(2) h3::before { background: var(--rose); box-shadow: 0 0 10px var(--rose); }
.stats-container > .stat-card:nth-child(3) h3::before { background: var(--violet); box-shadow: 0 0 10px var(--violet); }

/* ---------- Buttons: Aurora-Verlauf --------------------------------- */
.upload-button, .modal-button.primary, .edit-button, .login-button,
button.primary:not(.sidebar-button):not(.modal-tab), .sub-tab.active {
    background: var(--accent-grad) !important;
    background-size: 180% 100% !important;
    background-position: 0% 50% !important;
    color: #1B1030 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 30px -10px rgba(240,160,140,.7), 0 0 0 1px rgba(255,255,255,.1) !important;
    transition: background-position .6s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease) !important;
}
.upload-button:hover, .modal-button.primary:hover, .edit-button:hover, .login-button:hover {
    background-position: 100% 50% !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 16px 40px -12px rgba(139,108,255,.8), 0 0 0 1px rgba(255,255,255,.15) !important;
}
#filterToggleButton, .modal-button.secondary, button.secondary {
    background: var(--glass) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-primary) !important;
}

/* ---------- Eingabefelder: Glas ------------------------------------- */
.search-input, input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], input[type="tel"], input[type="search"], input[type="url"],
input:not([type]), select, textarea {
    background-color: rgba(255,255,255,.05) !important;
    border-color: rgba(255,255,255,.10) !important;
}
.search-input:focus, input:focus, select:focus, textarea:focus {
    border-color: rgba(169,139,255,.6) !important;
    background-color: rgba(139,108,255,.06) !important;
    box-shadow: 0 0 0 4px rgba(139,108,255,.15), 0 0 30px -6px rgba(139,108,255,.5) !important;
}
select option { background: #16141F; }

/* ---------- Objekt-Karten ------------------------------------------- */
.object-card { padding: 24px 24px 22px !important; border-radius: 22px !important; }
.object-card h3 { font-size: 19px !important; font-family: var(--font-display) !important; font-weight: 600 !important; letter-spacing: -.005em; }
.object-card > * { position: relative; z-index: 1; }

/* Ampel als leuchtender Punkt (Klasse kommt aus ley-aurora.js) */
.object-card > div > span.ley-tl {
    font-size: 0 !important;
    width: 12px; height: 12px; padding: 0 !important;
    border-radius: 50%;
    background: var(--tl) !important;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--tl) 18%, transparent), 0 0 18px var(--tl) !important;
}
.ley-tl-green  { --tl: #3EE08F; }
.ley-tl-yellow { --tl: #FFC857; }
.ley-tl-red    { --tl: #FF5F6D; }

/* farbiger Status-Schein oben an der Karte */
.object-card.ley-card-green, .object-card.ley-card-yellow, .object-card.ley-card-red {
    background:
        radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--tl) 14%, transparent), transparent 55%),
        linear-gradient(155deg, rgba(255,255,255,.075), rgba(255,255,255,.02) 55%, rgba(255,255,255,.035)) !important;
}
.ley-card-green { --tl: #3EE08F; } .ley-card-yellow { --tl: #FFC857; } .ley-card-red { --tl: #FF5F6D; }

.object-card div[style*="border-radius: 999px"][style*="212, 175, 55"] {
    background: linear-gradient(100deg, rgba(240,197,116,.16), rgba(139,108,255,.14)) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    color: var(--text-primary) !important;
}

/* Ampel-Filter-Knöpfe als leuchtende Punkte */
.traffic-filter-btn[data-color] { font-size: 0 !important; min-width: 40px !important; position: relative; }
.traffic-filter-btn[data-color]::after {
    content: ''; width: 11px; height: 11px; border-radius: 50%;
    background: var(--tl); box-shadow: 0 0 12px var(--tl);
}
.traffic-filter-btn[data-color="green"]  { --tl: #3EE08F; }
.traffic-filter-btn[data-color="yellow"] { --tl: #FFC857; }
.traffic-filter-btn[data-color="red"]    { --tl: #FF5F6D; }
.traffic-filter-btn[data-color="all"]    { font-size: 12.5px !important; }
.traffic-filter-btn[data-color="all"]::after { display: none; }

/* ---------- Objektdetails-Kopf ------------------------------------- */
.main-content > .content-header {
    background: transparent !important;
    border-bottom: 1px solid var(--glass-border) !important;
}
.main-content > .content-header::after { background: var(--aurora-grad) !important; opacity: .7; height: 2px !important; }
.content-header h2 { font-size: clamp(34px, 3.6vw, 52px) !important; font-weight: 500 !important; }
.sub-tabs {
    background: var(--glass) !important;
    border-color: var(--glass-border) !important;
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px !important;
}
.section-title { font-size: 30px !important; font-weight: 500 !important; }

/* ---------- Modals: Glas ------------------------------------------- */
.modal { background: rgba(6,6,11,.55) !important; }
.modal-content {
    background: linear-gradient(160deg, rgba(40,34,62,.78), rgba(16,14,26,.86)) !important;
    backdrop-filter: blur(40px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(170%) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
}
[data-theme="light"] .modal-content { background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(250,248,255,.85)) !important; }
.settings-panel {
    background: rgba(20,18,30,.75) !important;
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
}
[data-theme="light"] .settings-panel { background: rgba(255,255,255,.8) !important; }

/* ---------- Login --------------------------------------------------- */
.login-container { border-radius: 28px !important; }
.login-container::before { background: var(--aurora-grad) !important; height: 2px !important; left: 60px !important; right: 60px !important; filter: blur(.3px); }
.logo-container img { filter: drop-shadow(0 20px 60px rgba(240,197,116,.35)) drop-shadow(0 0 80px rgba(139,108,255,.25)); animation: leyFloat 7s ease-in-out infinite; }
@keyframes leyFloat { 50% { transform: translateY(-8px); } }

/* ---------- Eigentümer-Ansicht ------------------------------------- */
.container .section h2, .container .section-title { color: var(--text-secondary) !important; }
.header h1 { font-size: clamp(44px, 5vw, 72px) !important; font-weight: 500 !important; }
.traffic-light-emoji.ley-tl {
    font-size: 0 !important; width: 44px !important; height: 44px !important; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--tl);
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--tl) 15%, transparent), 0 0 40px var(--tl);
    display: inline-block;
}
.timeline-connector, .timeline::before { background: var(--aurora-grad) !important; }

/* Zahl-Animation */
.ley-counting { font-variant-numeric: tabular-nums; }

.traffic-filter-btn[data-color]:not([data-color="all"]) > * { display: none !important; }
.object-card h3 > span { white-space: nowrap; display: inline-flex !important; align-items: center; vertical-align: middle; font-family: var(--font-ui); }
.stat-card .number, .ley-hello-date, table, .zeiterfassung-table { font-variant-numeric: tabular-nums; }

/* =====================================================================
   AURORA PLUS · Fotos · Kennzahlen · Board · Objekt-Kopf
   ===================================================================== */
.ley-skel { border-radius: 18px; min-height: 84px; background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 70%); background-size: 300% 100%; animation: leySkel 1.4s linear infinite; }
@keyframes leySkel { to { background-position: -150% 0; } }

/* ---------- Kennzahlen-Leiste ---------- */
.stats-container .stat-card { min-height: 128px; }
.ley-kpis { display: grid; grid-template-columns: repeat(3, 1fr) 1.6fr; gap: 14px; animation: leyFadeUp .6s var(--ease) both; }
.ley-kpi {
    all: unset; box-sizing: border-box; cursor: pointer;
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
    padding: 16px 18px; border-radius: 18px;
    background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,.02)) ;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-md);
    transition: transform .25s var(--ease), border-color .25s var(--ease);
}
div.ley-kpi { cursor: default; }
button.ley-kpi:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.2); }
.ley-kpi-ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: rgba(240,197,116,.10); box-shadow: inset 0 0 0 1px rgba(240,197,116,.22); }
.ley-kpi-ico svg { width: 20px; height: 20px; }
.ley-kpi-val { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; color: var(--text-primary); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ley-kpi-lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.ley-kpi.is-alert .ley-kpi-ico { color: #FF7A85; background: rgba(255,95,109,.12); box-shadow: inset 0 0 0 1px rgba(255,95,109,.3), 0 0 24px -4px rgba(255,95,109,.5); }
.ley-kpi.is-alert .ley-kpi-val { color: #FF9AA2; }
.ley-kpi.is-wide .ley-kpi-val { background: var(--aurora-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (max-width: 1100px) { .ley-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ley-kpis { grid-template-columns: 1fr 1fr; gap: 8px; } .ley-kpi { padding: 12px; column-gap: 10px; } .ley-kpi-ico { width: 32px; height: 32px; } .ley-kpi-val { font-size: 24px; }  }
[data-theme="light"] .ley-kpi { background: rgba(255,255,255,.7); }

/* ---------- Toolbar (Anzahl + Ansicht) ---------- */
.ley-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: -8px; }
.ley-toolbar-count { font-size: 13px; color: var(--text-muted); letter-spacing: .02em; }
.ley-toolbar-count b { font-family: var(--font-display); font-size: 22px; color: var(--text-primary); font-weight: 600; margin-right: 4px; }
.ley-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; border: 1px solid var(--glass-border); background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.ley-seg button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 500; color: var(--text-secondary); transition: all .2s var(--ease); }
.ley-seg button svg { width: 16px; height: 16px; }
.ley-seg button:hover { color: var(--text-primary); background: rgba(255,255,255,.05); }
.ley-seg button.active { color: #1B1030; background: var(--accent-grad); box-shadow: 0 6px 18px -8px rgba(240,160,140,.8); font-weight: 600; }

/* ---------- Foto auf der Objekt-Karte ---------- */
.object-card { padding-top: 0 !important; }
.object-card > .ley-photo {
    position: relative; display: block;
    margin: 0 -24px 18px; height: 180px; overflow: hidden;
    border-radius: 21px 21px 0 0;
    background: linear-gradient(135deg, rgba(240,197,116,.16), rgba(139,108,255,.18));
    z-index: 1;
}
.object-card:not(:has(> .ley-photo)) { padding-top: 22px !important; }
.ley-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform .9s var(--ease), filter .6s; filter: saturate(1.05) contrast(1.02); }
.object-card:hover .ley-photo img { transform: scale(1.08); }
.ley-photo-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,.35); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.ley-photo-ph svg { width: 44px; height: 44px; opacity: .6; }
.ley-photo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 30%, transparent 45%, rgba(6,6,11,.85) 100%); pointer-events: none; }
.ley-photo-price { position: absolute; left: 20px; bottom: 14px; font-family: var(--font-display); font-size: 30px; font-weight: 600; color: #fff; letter-spacing: -.01em; text-shadow: 0 4px 20px rgba(0,0,0,.6); }
.ley-photo-price small { font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: rgba(255,255,255,.7); letter-spacing: .04em; }
.ley-photo-facts { position: absolute; right: 16px; bottom: 18px; font-size: 12px; font-weight: 600; color: #fff; padding: 5px 10px; border-radius: 999px; background: rgba(10,10,16,.45); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ley-photo-type { position: absolute; left: 16px; top: 14px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; padding: 5px 10px; border-radius: 999px; background: rgba(10,10,16,.45); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ruhigere Datenzeilen */
.object-card p.ley-row-dup { display: none !important; }
.object-card p.ley-row-empty { color: var(--text-muted) !important; font-style: italic; opacity: .7; }
.object-card p[style="margin: 0;"]:has(strong) { font-size: 13px !important; }

/* ---------- Ampel-Board ---------- */
.ley-board { display: none; }
body.ley-view-board #objectsList { display: none !important; }
body.ley-view-board .ley-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.ley-col { border-radius: 24px; padding: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--glass-border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); min-height: 200px; }
.ley-col header { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; font-size: 13px; font-weight: 600; color: var(--text-primary); letter-spacing: .01em; }
.ley-col header i { width: 10px; height: 10px; border-radius: 50%; background: var(--tl); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tl) 18%, transparent), 0 0 14px var(--tl); }
.ley-col header b { margin-left: auto; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--text-secondary); }
.ley-col-red { --tl: #FF5F6D; } .ley-col-yellow { --tl: #FFC857; } .ley-col-green { --tl: #3EE08F; } .ley-col-none { --tl: #8E89A5; }
.ley-col-red { background: linear-gradient(180deg, rgba(255,95,109,.07), rgba(255,255,255,.02) 40%); }
.ley-col-yellow { background: linear-gradient(180deg, rgba(255,200,87,.07), rgba(255,255,255,.02) 40%); }
.ley-col-green { background: linear-gradient(180deg, rgba(62,224,143,.06), rgba(255,255,255,.02) 40%); }
.ley-col-body { display: flex; flex-direction: column; gap: 12px; }
.ley-col-empty { padding: 30px 10px; text-align: center; font-size: 12px; color: var(--text-muted); border: 1px dashed var(--border-hover); border-radius: 16px; }
.ley-board .object-card { padding-left: 18px !important; padding-right: 18px !important; padding-bottom: 16px !important; }
.ley-board .object-card > .ley-photo { height: 120px; margin: 0 -18px 14px; }
.ley-board .object-card .ley-photo-price { font-size: 22px; left: 16px; bottom: 10px; }
.ley-board .object-card .ley-photo-type { display: none; }
.ley-board .object-card h3 { font-size: 16px !important; }
.ley-board .object-card p[style="margin: 0;"] { padding: 5px 0 !important; font-size: 12px !important; }
.ley-board .object-card p[style="margin: 0;"]:nth-of-type(n+4) { display: none !important; }
[data-theme="light"] .ley-col { background: rgba(255,255,255,.45); }

/* ---------- Objektdetails: Kopfbereich ---------- */
body.ley-has-phero .property-hero { display: none !important; }
body.ley-has-phero .overview-hero-layout { grid-template-columns: 1fr !important; }
.ley-phero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 18px; margin-bottom: 30px; animation: leyFadeUp .6s var(--ease) both; flex-shrink: 0; }
.ley-phero-media { position: relative; min-height: 320px; border-radius: 26px; overflow: hidden; border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg); background: linear-gradient(135deg, rgba(240,197,116,.18), rgba(139,108,255,.22)); }
.ley-phero-media.has-img { cursor: zoom-in; }
.ley-phero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ley-phero-media.has-img:hover img { transform: scale(1.04); }
.ley-phero-media .ley-photo-ph svg { width: 64px; height: 64px; }
.ley-phero-badges { position: absolute; left: 20px; top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.ley-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #fff; padding: 7px 12px; border-radius: 999px; background: rgba(10,10,16,.45); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ley-pill-tl i { width: 8px; height: 8px; border-radius: 50%; background: var(--tl); box-shadow: 0 0 10px var(--tl); }
.ley-phero-price { position: absolute; left: 24px; bottom: 20px; color: #fff; font-family: var(--font-display); font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: -.02em; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.ley-phero-price small { display: block; font-family: var(--font-ui); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 8px; font-weight: 600; }

.ley-phero-side { display: flex; flex-direction: column; gap: 14px; }
.ley-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ley-facts > div, .ley-glance > div { position: relative; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--glass-border); background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.ley-facts span { display: block; width: 18px; height: 18px; color: var(--accent); margin-bottom: 10px; }
.ley-facts span svg { width: 18px; height: 18px; }
.ley-facts b { display: block; font-size: 17px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ley-facts small, .ley-glance small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; font-weight: 600; }
.ley-glance { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.ley-glance small { margin: 0 0 6px; }
.ley-glance b { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--text-primary); line-height: 1.1; }
.ley-glance b em { font-family: var(--font-ui); font-style: normal; font-size: 11px; font-weight: 600; color: #FF8C95; background: rgba(255,95,109,.12); padding: 3px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.ley-glance span { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ley-glance .is-alert { border-color: rgba(255,95,109,.35); box-shadow: 0 0 30px -12px rgba(255,95,109,.6); }
.ley-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ley-actions button { all: unset; cursor: pointer; flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 14px; font-size: 12.5px; font-weight: 600; color: var(--text-primary); border: 1px solid var(--glass-border); background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); transition: all .2s var(--ease); }
.ley-actions button svg { width: 16px; height: 16px; color: var(--accent); }
.ley-actions button:hover { transform: translateY(-2px); border-color: rgba(240,197,116,.45); box-shadow: 0 10px 30px -14px rgba(240,197,116,.7); }
.ley-actions button:first-child { background: var(--accent-grad); color: #1B1030; border-color: transparent; }
.ley-actions button:first-child svg { color: #1B1030; }
@media (max-width: 1100px) { .ley-phero { grid-template-columns: 1fr; } .ley-phero-media { min-height: 240px; } }
@media (max-width: 520px) { .ley-phero-price { font-size: 34px; } .ley-glance { grid-template-columns: 1fr; } }
[data-theme="light"] .ley-facts > div, [data-theme="light"] .ley-glance > div, [data-theme="light"] .ley-actions button:not(:first-child) { background: rgba(255,255,255,.75); }
.object-card > div > span.ley-tl[title] { font-size: 0 !important; padding: 0 !important; width: 12px !important; height: 12px !important; }
.ley-photo-ph { padding-bottom: 34px; }
.object-card p.ley-row-price { display: none !important; }

/* =====================================================================
   AURORA EXTRAS · Handy-Leiste · Assistent · Leere Zustände · Theme · Eigentümer
   ===================================================================== */

/* ---------- Handy: untere Navigationsleiste ---------- */
.ley-bottomnav { display: none; }
@media (max-width: 768px) {
    .ley-bottomnav {
        display: grid; grid-template-columns: repeat(5, 1fr);
        position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 950; padding: 6px; border-radius: 22px;
        background: rgba(18,16,28,.72); border: 1px solid rgba(255,255,255,.12);
        backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
        box-shadow: 0 20px 50px -12px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
    }
    [data-theme="light"] .ley-bottomnav { background: rgba(255,255,255,.82); }
    .ley-bottomnav button {
        all: unset; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        min-height: 54px; border-radius: 16px; font-size: 10.5px; font-weight: 600; color: var(--text-muted); cursor: pointer;
        -webkit-tap-highlight-color: transparent; transition: color .2s, background .2s;
    }
    .ley-bottomnav button svg { width: 22px; height: 22px; }
    .ley-bottomnav button.active { color: var(--text-primary); background: linear-gradient(160deg, rgba(240,197,116,.22), rgba(139,108,255,.18)); }
    .ley-bottomnav button.active svg { color: var(--accent); filter: drop-shadow(0 0 8px rgba(240,197,116,.6)); }
    .ley-bn-badge { position: absolute; top: 6px; right: calc(50% - 20px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; font-size: 9.5px; line-height: 16px; text-align: center; color: #1B1030; background: var(--accent-grad); font-style: normal; }
    body.ley-has-bottomnav .mobile-menu-button { display: none !important; }
    body.ley-has-bottomnav .main-content { padding-bottom: 100px !important; }
    body.ley-has-bottomnav > .main-content:not(:has(> .content-body)) { padding-top: 18px !important; }
    body.ley-has-bottomnav .main-content > .content-header { padding-top: 22px !important; }
    body.ley-has-bottomnav .content-body > .tab-content { padding-bottom: 110px !important; }
    /* große Tipp-Flächen */
    .appointment-item, .interessent-card, .document-card, .document-item { padding: 18px !important; min-height: 64px; }
    .edit-button, .upload-button, .modal-button, .sub-tab, .traffic-filter-btn, .ley-actions button { min-height: 46px !important; }
    .ley-actions button { flex: 1 1 40%; }
    .sidebar-button, .sidebar-nav-item { min-height: 48px; }
}

/* ---------- Schritt-Assistent (Objekt anlegen) ---------- */
.ley-wiz-progress { padding: 16px 26px 4px; }
.ley-wiz-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.ley-wiz-step { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.ley-wiz-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-primary); }
.ley-wiz-bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.ley-wiz-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--aurora-grad); box-shadow: 0 0 14px rgba(240,197,116,.7); transition: width .5s var(--ease); }

#objectModal .modal-tabs { counter-reset: leystep; display: flex !important; flex-wrap: nowrap; gap: 4px !important; padding: 12px 22px !important; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border) !important; }
#objectModal .modal-tabs[style*="none"] { display: none !important; }
#objectModal .modal-tab { counter-increment: leystep; display: inline-flex !important; align-items: center; gap: 8px; white-space: nowrap; padding: 7px 12px 7px 7px !important; font-size: 12px !important; border-radius: 999px !important; background: transparent !important; color: var(--text-muted) !important; border: 1px solid transparent !important; }
#objectModal .modal-tab[style*="none"] { display: none !important; }
#objectModal .modal-tab::before { content: counter(leystep); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.07); color: var(--text-secondary); flex-shrink: 0; }
#objectModal .modal-tab.ley-done { color: var(--text-secondary) !important; }
#objectModal .modal-tab.ley-done::before { content: '✓'; background: rgba(62,224,143,.16); color: #3EE08F; }
#objectModal .modal-tab.active { color: var(--text-primary) !important; background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.12) !important; }
#objectModal .modal-tab.active::before { background: var(--accent-grad); color: #1B1030; box-shadow: 0 0 12px rgba(240,197,116,.6); }

.ley-wizard .modal-actions { display: flex !important; align-items: center; gap: 10px; flex-wrap: wrap; }
.ley-wiz-nav { display: flex; gap: 8px; margin-right: auto; }
.ley-wiz-nav button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--text-primary); border: 1px solid var(--glass-border); background: var(--glass); transition: all .2s var(--ease); }
.ley-wiz-nav button svg { width: 16px; height: 16px; }
.ley-wiz-nav button:hover:not(:disabled) { border-color: rgba(240,197,116,.45); }
.ley-wiz-nav button:disabled { opacity: .35; cursor: default; }
.ley-wiz-next { color: var(--accent) !important; border-color: rgba(240,197,116,.35) !important; }
@media (max-width: 768px) { .ley-wiz-nav { width: 100%; } .ley-wiz-nav button { flex: 1; justify-content: center; min-height: 44px; } }

/* ---------- Leere Zustände ---------- */
.empty-state.ley-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 44px 24px !important; }
.ley-empty-art { position: relative; width: 84px; height: 84px; margin-bottom: 10px; display: grid; place-items: center; }
.ley-empty-ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(240,197,116,.25), rgba(139,108,255,.18) 60%, transparent 70%); border: 1px solid rgba(255,255,255,.1); animation: leyFloat 6s ease-in-out infinite; }
.ley-empty-ring::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed rgba(240,197,116,.25); animation: leySpin 30s linear infinite; }
@keyframes leySpin { to { transform: rotate(360deg); } }
.ley-empty-ico { position: relative; width: 34px; height: 34px; color: var(--accent); filter: drop-shadow(0 0 12px rgba(240,197,116,.5)); }
.ley-empty-ico svg { width: 34px; height: 34px; }
.empty-state.ley-empty h2, .empty-state.ley-empty h3 { font-family: var(--font-display); font-size: 24px !important; font-weight: 600; margin: 0; }
.empty-state.ley-empty p { color: var(--text-muted); font-size: 13px; max-width: 360px; margin: 0; }
.ley-empty-btn { all: unset; cursor: pointer; margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #1B1030; background: var(--accent-grad); box-shadow: 0 10px 28px -10px rgba(240,160,140,.8); transition: transform .2s var(--ease); }
.ley-empty-btn svg { width: 16px; height: 16px; }
.ley-empty-btn:hover { transform: translateY(-2px); }

/* ---------- Theme-Knopf in der Sidebar ---------- */
.ley-theme-btn { all: unset; cursor: pointer; flex-shrink: 0; margin: 10px 14px 4px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; font-weight: 500; color: var(--text-secondary); border: 1px solid var(--glass-border); background: var(--glass); transition: all .2s var(--ease); }
.ley-theme-btn svg { width: 17px; height: 17px; color: var(--accent); }
.ley-theme-btn:hover { color: var(--text-primary); border-color: rgba(240,197,116,.4); }

/* ---------- Eigentümer-Ansicht ---------- */
.ley-owner-brand { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 22px; }
.ley-owner-brand img { height: 54px; filter: drop-shadow(0 8px 30px rgba(240,197,116,.3)); }
.ley-owner-brand span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
body.ley-owner-ready .header-layout > div:first-child { display: none; }
body.ley-owner-ready .header { margin-bottom: 20px; }
.ley-owner-hero { display: grid; gap: 16px; margin-bottom: 20px; animation: leyFadeUp .7s var(--ease) both; }
.ley-owner-media { position: relative; min-height: 380px; border-radius: 30px; overflow: hidden; border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg); background: linear-gradient(135deg, rgba(240,197,116,.2), rgba(139,108,255,.25)); }
.ley-owner-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: leyKen 24s ease-in-out infinite alternate; }
@keyframes leyKen { to { transform: scale(1.08) translate(-1%, -1%); } }
.ley-owner-media .ley-photo-ph svg { width: 80px; height: 80px; }
.ley-owner-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 35%, rgba(6,6,11,.88)); }
.ley-owner-copy { position: absolute; left: 36px; right: 36px; bottom: 32px; color: #fff; }
.ley-owner-eyebrow { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: 12px; }
.ley-owner-copy h1 { font-family: var(--font-display) !important; font-size: clamp(38px, 5vw, 68px) !important; font-weight: 500 !important; line-height: 1; letter-spacing: -.02em; margin: 0 0 10px; color: #fff; text-shadow: 0 8px 40px rgba(0,0,0,.5); }
.ley-owner-copy p { font-size: 15px; color: rgba(255,255,255,.8); margin: 0; }
.ley-owner-price { position: absolute; right: 32px; top: 28px; text-align: right; color: #fff; font-family: var(--font-display); font-size: 38px; font-weight: 600; line-height: 1; padding: 14px 18px; border-radius: 18px; background: rgba(10,10,16,.4); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ley-owner-price small { display: block; font-family: var(--font-ui); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 6px; font-weight: 600; }

.ley-owner-progress { padding: 24px 28px; border-radius: 24px; border: 1px solid var(--glass-border); background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--shadow-md); }
.ley-owner-progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.ley-owner-progress-head span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.ley-owner-progress-head b { font-family: var(--font-display); font-size: 28px; font-weight: 600; background: var(--aurora-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ley-owner-progress ol { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.ley-owner-progress ol::before, .ley-owner-progress ol::after { content: ''; position: absolute; top: 17px; left: 12.5%; height: 3px; border-radius: 3px; }
.ley-owner-progress ol::before { right: 12.5%; background: rgba(255,255,255,.08); }
.ley-owner-progress ol::after { width: calc((100% - 25%) * var(--p) / 100%); background: var(--aurora-grad); box-shadow: 0 0 14px rgba(240,197,116,.6); transition: width 1s var(--ease); }
.ley-owner-progress li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.ley-owner-progress li i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; background: #15131F; border: 1px solid rgba(255,255,255,.14); color: var(--text-muted); }
.ley-owner-progress li i svg { width: 16px; height: 16px; }
.ley-owner-progress li.done { color: var(--text-secondary); }
.ley-owner-progress li.done i { background: rgba(62,224,143,.15); border-color: rgba(62,224,143,.4); color: #3EE08F; }
.ley-owner-progress li.now { color: var(--text-primary); font-weight: 700; }
.ley-owner-progress li.now i { background: var(--accent-grad); color: #1B1030; border-color: transparent; box-shadow: 0 0 0 6px rgba(240,197,116,.15), 0 0 24px rgba(240,197,116,.6); }
.ley-owner-phase { margin: 20px 0 0; font-size: 13px; color: var(--text-secondary); text-align: center; }
.ley-owner-phase b { color: var(--text-primary); }
[data-theme="light"] .ley-owner-progress li i { background: #fff; }

.ley-owner-contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 20px; border-radius: 22px; border: 1px solid var(--glass-border); background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--shadow-md); }
.ley-owner-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--aurora-grad); box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 10px 30px -10px rgba(139,108,255,.7); }
.ley-owner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ley-owner-avatar span { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #1B1030; }
.ley-owner-who small { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.ley-owner-who b { display: block; font-size: 17px; color: var(--text-primary); margin: 3px 0 1px; }
.ley-owner-who span { font-size: 12.5px; color: var(--text-secondary); }
.ley-owner-cta { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.ley-owner-cta a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--text-primary); border: 1px solid var(--glass-border); background: var(--glass); transition: all .2s var(--ease); }
.ley-owner-cta a svg { width: 16px; height: 16px; color: var(--accent); }
.ley-owner-cta a:last-child { color: #1B1030; background: var(--accent-grad); border-color: transparent; }
.ley-owner-cta a:last-child svg { color: #1B1030; }
.ley-owner-cta a:hover { transform: translateY(-2px); }
@media (max-width: 700px) {
    .ley-owner-media { min-height: 300px; border-radius: 22px; }
    .ley-owner-copy { left: 20px; right: 20px; bottom: 20px; }
    .ley-owner-price { right: 16px; top: 16px; font-size: 24px; padding: 10px 12px; }
    .ley-owner-progress { padding: 20px 14px; }
    .ley-owner-progress li { font-size: 10.5px; }
    .ley-owner-cta { margin-left: 0; width: 100%; } .ley-owner-cta a { flex: 1; justify-content: center; }
}
@media (max-width: 768px) { .ley-hello-date { display: none; } }

/* =====================================================================
   AURORA VIEWS · Tabelle · Karte · Woche · Glocke · Exposé-Knopf
   ===================================================================== */
.ley-table-wrap, .ley-map-wrap { display: none; }
body.ley-view-table #objectsList, body.ley-view-map #objectsList { display: none !important; }
body.ley-view-table .ley-table-wrap { display: block; }
body.ley-view-map .ley-map-wrap { display: block; }
.ley-seg { flex-wrap: wrap; }

/* ---------- Tabelle ---------- */
.ley-table-wrap { border-radius: 22px; border: 1px solid var(--glass-border); background: linear-gradient(155deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--shadow-md); overflow: auto; }
.ley-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 900px; }
.ley-table th { position: sticky; top: 0; z-index: 1; text-align: left; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); padding: 14px 14px; background: rgba(14,12,22,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border); cursor: pointer; user-select: none; white-space: nowrap; }
.ley-table th:hover, .ley-table th.sorted { color: var(--accent); }
.ley-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--text-secondary); vertical-align: middle; }
.ley-table tbody tr { cursor: pointer; transition: background .15s; }
.ley-table tbody tr:hover td { background: rgba(255,255,255,.04); color: var(--text-primary); }
.ley-table tbody tr:last-child td { border-bottom: 0; }
.ley-c-tl { width: 34px; padding-right: 0 !important; }
.ley-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--tl, #8E89A5); box-shadow: 0 0 10px var(--tl, transparent); }
.ley-dot.ley-tl-none { --tl: #5c5872; box-shadow: none; }
.ley-t-obj { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.ley-t-obj img, .ley-t-ph { width: 44px; height: 32px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255,255,255,.1); }
.ley-t-ph { display: grid; place-items: center; color: var(--text-muted); background: rgba(255,255,255,.04); }
.ley-t-ph svg { width: 16px; height: 16px; }
.ley-t-obj b { color: var(--text-primary); font-weight: 600; }
.ley-t-badge { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: #E04858; border-radius: 999px; padding: 2px 8px; }
.ley-t-badge svg { width: 12px; height: 12px; }
.ley-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ley-table th.ley-c-rooms, .ley-table th.ley-c-size, .ley-table th.ley-c-price, .ley-table th.ley-c-free { text-align: right; }
.ley-strong { color: var(--text-primary) !important; font-weight: 600; }
.ley-muted { color: var(--text-muted); opacity: .6; }
.ley-t-phase { display: inline-block; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
[data-theme="light"] .ley-table th { background: rgba(255,255,255,.9); }

/* ---------- Karte ---------- */
.ley-map-wrap { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg); }
.ley-map { height: min(68vh, 640px); min-height: 380px; background: #0d0c14; }
.ley-map .leaflet-container, .ley-map.leaflet-container { background: #0d0c14; font-family: var(--font-ui); }
.ley-map-legend { position: absolute; left: 16px; bottom: 16px; z-index: 500; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; font-size: 12px; color: var(--text-secondary); background: rgba(14,12,22,.72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ley-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ley-map-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--tl); box-shadow: 0 0 8px var(--tl); }
.ley-map-legend small { color: var(--text-muted); }
.ley-map-legend small:empty { display: none; }
.ley-pin span { position: relative; display: block; width: 30px; height: 30px; }
.ley-pin span::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--tl); opacity: .25; animation: leyPing 2.2s ease-out infinite; }
.ley-pin i { position: absolute; inset: 8px; border-radius: 50%; background: var(--tl); border: 2px solid #fff; box-shadow: 0 0 16px var(--tl), 0 4px 10px rgba(0,0,0,.5); }
@keyframes leyPing { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
.ley-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 16px; overflow: hidden; background: rgba(20,18,30,.92); color: var(--text-primary); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 50px rgba(0,0,0,.6); backdrop-filter: blur(14px); }
.ley-popup .leaflet-popup-content { margin: 0; width: 240px !important; }
.ley-popup .leaflet-popup-tip { background: rgba(20,18,30,.92); }
.ley-pop { display: block; text-decoration: none; color: inherit; }
.ley-pop img { width: 100%; height: 120px; object-fit: cover; display: block; }
.ley-pop b { display: block; padding: 12px 14px 2px; font-family: var(--font-display); font-size: 17px; }
.ley-pop span { display: block; padding: 0 14px; font-size: 12px; color: var(--text-secondary); }
.ley-pop em { display: block; padding: 6px 14px 12px; font-style: normal; font-size: 12px; color: var(--accent); font-weight: 600; }
[data-theme="light"] .ley-map-legend, [data-theme="light"] .ley-popup .leaflet-popup-content-wrapper { background: rgba(255,255,255,.92); }

/* ---------- Wochenansicht ---------- */
.ley-week { border-radius: 24px; padding: 18px; border: 1px solid var(--glass-border); background: linear-gradient(155deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--shadow-md); animation: leyFadeUp .6s var(--ease) both; }
.ley-week > header { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 14px; }
.ley-week h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 0; }
.ley-week > header span { font-size: 12px; color: var(--text-muted); }
.ley-week-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.ley-day { min-height: 130px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 6px; }
.ley-day.is-we { background: rgba(255,255,255,.012); }
.ley-day.is-today { border-color: rgba(240,197,116,.45); background: linear-gradient(180deg, rgba(240,197,116,.10), rgba(139,108,255,.05)); box-shadow: 0 0 30px -14px rgba(240,197,116,.7); }
.ley-day-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 4px; }
.ley-day-h span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.ley-day.is-today .ley-day-h span { color: var(--accent); }
.ley-day-h b { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text-primary); }
.ley-day-empty { margin-top: auto; font-size: 11px; color: var(--text-muted); opacity: .5; text-align: center; padding: 8px 0; }
.ley-ev { display: block; text-decoration: none; padding: 7px 9px; border-radius: 10px; background: rgba(255,255,255,.05); border-left: 3px solid var(--accent); transition: background .15s, transform .15s; }
.ley-ev:hover { background: rgba(255,255,255,.09); transform: translateX(2px); }
.ley-ev time { display: block; font-size: 10.5px; font-weight: 700; color: var(--accent); }
.ley-ev b { display: block; font-size: 12px; font-weight: 600; color: var(--text-primary); line-height: 1.25; }
.ley-ev span { display: block; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ley-ev-out { border-left-color: #A98BFF; } .ley-ev-out time { color: #A98BFF; }
.ley-ev-todo { border-left-color: #FF7A85; background: rgba(255,95,109,.06); }
@media (max-width: 768px) { .ley-week-grid { grid-template-columns: repeat(7, 150px); } }

/* ---------- Glocke ---------- */
.ley-bell { position: fixed; top: 22px; right: 26px; z-index: 900; }
.ley-bell-btn { all: unset; cursor: pointer; position: relative; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: var(--text-primary); background: rgba(22,20,34,.6); border: 1px solid var(--glass-border); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 12px 30px -12px rgba(0,0,0,.8); transition: transform .2s var(--ease), border-color .2s; }
.ley-bell-btn:hover { transform: translateY(-1px); border-color: rgba(240,197,116,.45); }
.ley-bell-btn svg { width: 21px; height: 21px; }
.ley-bell-btn b { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; font-size: 11px; line-height: 20px; text-align: center; color: #1B1030; background: var(--accent-grad); box-shadow: 0 4px 12px rgba(240,160,140,.6); }
.ley-bell-btn b:empty { display: none; }
.ley-bell.has-new .ley-bell-btn svg { animation: leyRing 2.8s ease-in-out infinite; transform-origin: 50% 10%; color: var(--accent); }
@keyframes leyRing { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(14deg); } 78% { transform: rotate(-12deg); } 82% { transform: rotate(8deg); } 86% { transform: rotate(-4deg); } }
.ley-bell-panel { position: absolute; right: 0; top: 60px; width: 380px; max-height: min(70vh, 560px); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: rgba(20,18,30,.9); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.ley-bell.open .ley-bell-panel { opacity: 1; transform: none; pointer-events: auto; }
.ley-bell-panel > header { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ley-bell-panel > header b { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.ley-bell-panel > header span { font-size: 12px; color: var(--text-muted); }
.ley-bell-body { overflow-y: auto; padding: 8px; }
.ley-bg h4 { display: flex; align-items: center; gap: 8px; margin: 8px 10px 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.ley-bg h4 svg { width: 14px; height: 14px; color: var(--accent); }
.ley-bg h4 span { margin-left: auto; font-size: 11px; color: var(--text-secondary); }
.ley-bi { display: block; text-decoration: none; padding: 10px 12px; border-radius: 12px; transition: background .15s; }
.ley-bi:hover { background: rgba(255,255,255,.06); }
.ley-bi b { display: block; font-size: 13px; color: var(--text-primary); font-weight: 600; }
.ley-bi span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ley-bi.is-msg b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #FF5F6D; box-shadow: 0 0 8px #FF5F6D; margin-right: 8px; vertical-align: middle; }
.ley-bi.is-alert span { color: #FF9AA2; }
.ley-bell-zero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 16px; color: var(--text-muted); font-size: 13px; }
.ley-bell-zero svg { width: 30px; height: 30px; color: var(--accent); }
.ley-hello-date { margin-right: 64px; }
[data-theme="light"] .ley-bell-btn, [data-theme="light"] .ley-bell-panel { background: rgba(255,255,255,.9); }
@media (max-width: 768px) { .ley-bell { top: 14px; right: 14px; } .ley-bell-panel { position: fixed; left: 10px; right: 10px; top: 72px; width: auto; } }

/* ---------- Exposé-Knopf ---------- */
.ley-expose-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text-primary); border: 1px solid rgba(240,197,116,.4); background: rgba(240,197,116,.08); transition: all .2s var(--ease); }
.ley-expose-btn svg { width: 16px; height: 16px; color: var(--accent); }
.ley-expose-btn:hover { background: rgba(240,197,116,.16); transform: translateY(-1px); }
.ley-table-wrap, .ley-map-wrap, .ley-week, .ley-board, .ley-kpis, .ley-toolbar, .ley-hello, .ley-phero { flex-shrink: 0; }
@media (max-width: 768px) { .ley-seg button span { display: none; } .ley-seg button { padding: 10px 14px; } .ley-toolbar { margin-bottom: 0; } }

/* =====================================================================
   ÜBERSICHT IM EXPOSÉ-LOOK
   ===================================================================== */
.ley-phero.ley-ex { display: block; margin-bottom: 34px; --ink: #1C1A17; --mute: #7A736A; --line: #E6DFD2; --gold: #B08A43; --paper: #FBF8F2; }

/* Aktionsleiste über dem Exposé */
.ley-ex-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 10px 10px 10px 16px; border-radius: 18px; border: 1px solid var(--glass-border); background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.ley-ex-glance { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; color: var(--text-secondary); }
.ley-ex-glance > span { display: inline-flex; align-items: center; gap: 7px; }
.ley-ex-glance svg { width: 15px; height: 15px; color: var(--accent); }
.ley-ex-glance b { color: var(--text-primary); }
.ley-ex-glance em { font-style: normal; color: #FF8C95; font-weight: 600; }
.ley-ex-glance .is-alert svg { color: #FF7A85; }
.ley-ex-status { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--text-primary); font-weight: 600; font-size: 12px; }
.ley-ex-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--tl); box-shadow: 0 0 10px var(--tl); }
.ley-ex-bar .ley-actions { margin: 0; flex-wrap: wrap; }
.ley-ex-bar .ley-actions button { flex: 0 0 auto; padding: 9px 13px; }
.ley-ex-bar .ley-actions button:first-child { background: var(--glass); color: var(--text-primary); border-color: var(--glass-border); }
.ley-ex-bar .ley-actions button:first-child svg { color: var(--accent); }
.ley-ex-bar .ley-actions button:last-child { background: var(--accent-grad); color: #1B1030; border-color: transparent; }
.ley-ex-bar .ley-actions button:last-child svg { color: #1B1030; }

/* Das "Papier" */
.ley-ex-paper { position: relative; background: var(--paper); color: var(--ink); border-radius: 26px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06); font-family: var(--font-ui); }
.ley-ex-paper .ley-ex-eyebrow { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ley-ex-paper h2 { font-family: var(--font-display); font-weight: 500; font-size: 34px; letter-spacing: -.01em; color: var(--ink); margin: 6px 0 20px; line-height: 1.05; }

/* Deckblatt */
.ley-ex-cover { position: relative; }
.ley-ex-img { position: relative; height: clamp(300px, 46vh, 520px); background: #D9D2C5 center/cover no-repeat; }
.ley-ex-img.has-img { cursor: zoom-in; }
.ley-ex-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 62%, var(--paper)); pointer-events: none; }
.ley-ex-img .ley-photo-ph { color: rgba(28,26,23,.35); }
.ley-ex-logo { position: absolute; z-index: 2; top: 26px; left: 36px; height: 56px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.4)); }
.ley-ex-tag { position: absolute; z-index: 2; top: 34px; right: 36px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.65); padding: 8px 14px; border-radius: 99px; backdrop-filter: blur(6px); background: rgba(0,0,0,.12); }
.ley-ex-head { position: relative; margin-top: -70px; padding: 0 44px 34px; z-index: 1; }
.ley-ex-head h1 { font-family: var(--font-display) !important; font-weight: 500 !important; font-size: clamp(40px, 5vw, 68px) !important; line-height: .95; letter-spacing: -.015em; color: var(--ink); margin: 12px 0 10px; }
.ley-ex-addr { font-size: 15px; color: var(--mute); }
.ley-ex-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.ley-ex-kf { display: flex; gap: 44px; flex-wrap: wrap; }
.ley-ex-kf b { display: block; font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1; color: var(--ink); }
.ley-ex-kf span { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.ley-ex-price { text-align: right; }
.ley-ex-price span { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.ley-ex-price b { font-family: var(--font-display); font-size: 54px; font-weight: 600; line-height: 1; color: var(--gold); }

/* Inhalt */
.ley-ex-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; padding: 44px; border-top: 1px solid var(--line); }
.ley-ex-desc p { font-size: 15px; line-height: 1.8; color: #3A362F; margin: 0 0 14px; }
.ley-ex-desc p:first-child::first-letter { font-family: var(--font-display); font-size: 58px; float: left; line-height: .8; padding: 6px 10px 0 0; color: var(--gold); }
.ley-ex-desc p.ley-ex-hint::first-letter { all: unset; }
.ley-ex-hint { font-size: 14px; color: var(--mute); font-style: italic; }
.ley-ex-paper table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ley-ex-paper th, .ley-ex-paper td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; background: none !important; }
.ley-ex-paper th { color: var(--mute); font-weight: 500; width: 50%; letter-spacing: 0; text-transform: none; font-size: 14px; }
.ley-ex-paper td { font-weight: 600; text-align: right; color: var(--ink); }
.ley-ex-box { margin-top: 30px; }
.ley-ex-box h3 { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; font-weight: 600; }
.ley-ex-costs { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px 22px; box-shadow: 0 10px 30px -18px rgba(60,40,10,.25); }
.ley-ex-costs tr:last-child th, .ley-ex-costs tr:last-child td { border-bottom: 0; }

/* Galerie */
.ley-ex-galwrap { padding: 0 44px 44px; }
.ley-ex-gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 12px; }
.ley-ex-gal a { display: block; border-radius: 14px; background: #D9D2C5 center/cover no-repeat; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ley-ex-gal a:hover { transform: scale(1.02); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.ley-ex-gal a:first-child { grid-column: span 2; grid-row: span 2; }
.ley-ex-gal a:only-child { grid-column: span 4; }

/* Übergang zu den bisherigen Detail-Reitern */
.ley-ex-more { display: flex; align-items: center; gap: 16px; margin: 40px 0 6px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.ley-ex-more::before, .ley-ex-more::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-border), transparent); }

@media (max-width: 1100px) { .ley-ex-cols { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 700px) {
    .ley-ex-paper { border-radius: 20px; }
    .ley-ex-logo { top: 16px; left: 18px; height: 40px; }
    .ley-ex-tag { top: 20px; right: 16px; font-size: 9px; padding: 6px 10px; }
    .ley-ex-head { padding: 0 20px 24px; margin-top: -50px; }
    .ley-ex-kf { gap: 22px; } .ley-ex-kf b { font-size: 26px; }
    .ley-ex-price { text-align: left; } .ley-ex-price b { font-size: 40px; }
    .ley-ex-cols { padding: 26px 20px; }
    .ley-ex-galwrap { padding: 0 20px 26px; }
    .ley-ex-gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
    .ley-ex-gal a:first-child { grid-column: span 2; grid-row: span 1; }
    .ley-ex-bar { padding: 12px; } .ley-ex-bar .ley-actions button { flex: 1 1 30%; justify-content: center; }
}
.ley-ex-gal a:first-child:nth-last-child(3) ~ a { grid-column: span 2; }
.ley-ex-img::after { background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 28%, transparent 52%, rgba(251,248,242,.85) 86%, var(--paper)) !important; }
.ley-ex-head { margin-top: -46px !important; }
@media (max-width: 700px) { .ley-ex-head { margin-top: -34px !important; } .ley-ex-gal a:first-child:nth-last-child(3) ~ a { grid-column: span 1; } }

/* =====================================================================
   OBJEKT-ANGABEN IM EXPOSÉ-LOOK  (Übersicht: Grundinfos, Eigentümer, Kosten …)
   ===================================================================== */
#tab-overview .overview-hero-content {
    --ink: #1C1A17; --mute: #7A736A; --line: #E6DFD2; --gold: #B08A43; --paper: #FBF8F2;
    position: relative;
    background: var(--paper);
    color: var(--ink);
    border-radius: 26px;
    padding: 30px 44px 40px;
    box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06);
    overflow: hidden;
}
#tab-overview .overview-hero-content::before {
    content: 'Objektangaben';
    display: block; margin-bottom: 18px;
    font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 600;
}
#tab-overview .overview-hero-content::after {
    content: ''; position: absolute; top: 34px; right: 44px; width: 120px; height: 34px;
    background: url('logo-premium.png') right center / contain no-repeat; opacity: .85;
}

/* Kapitel-Navigation statt Glas-Leiste */
#tab-overview .sub-tabs {
    width: 100% !important; max-width: none; padding: 0 !important; margin: 0 0 34px !important;
    background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line) !important;
    border-radius: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    gap: 0 26px !important; flex-wrap: wrap;
}
#tab-overview .sub-tab {
    background: transparent !important; box-shadow: none !important; border-radius: 0 !important;
    padding: 12px 0 14px !important; margin-bottom: -1px;
    font-size: 11px !important; letter-spacing: .16em; text-transform: uppercase; font-weight: 600 !important;
    color: var(--mute) !important; border-bottom: 2px solid transparent !important;
}
#tab-overview .sub-tab:hover { color: var(--ink) !important; background: transparent !important; }
#tab-overview .sub-tab.active { color: var(--ink) !important; border-bottom-color: var(--gold) !important; background: transparent !important; }

/* Kapitel-Überschrift */
#tab-overview .sub-tab-content .section { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
#tab-overview .sub-tab-content .section-title {
    font-family: var(--font-display) !important; font-weight: 500 !important; font-size: 44px !important;
    letter-spacing: -.015em; line-height: 1; color: var(--ink) !important;
    border: 0 !important; padding: 0 !important; margin: 0 0 26px !important;
}

/* Angaben als zweispaltige Exposé-Tabelle */
#tab-overview .sub-tab-content .info-grid {
    display: grid !important; grid-template-columns: 1fr 1fr !important; column-gap: 56px !important; row-gap: 0 !important; margin: 0 !important;
}
#tab-overview .sub-tab-content .info-card {
    display: flex !important; align-items: baseline; justify-content: space-between; gap: 20px;
    background: none !important; border: 0 !important; border-bottom: 1px solid var(--line) !important;
    border-radius: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    padding: 13px 0 !important; transform: none !important;
}
#tab-overview .sub-tab-content .info-card::after { display: none !important; }
#tab-overview .sub-tab-content .info-card h3 {
    margin: 0 !important; flex-shrink: 0;
    font-size: 14px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important;
    color: var(--mute) !important;
}
#tab-overview .sub-tab-content .info-card .value {
    font-size: 14.5px !important; font-weight: 600 !important; color: var(--ink) !important; text-align: right; word-break: break-word;
}
#tab-overview .sub-tab-content .info-card .value.empty { color: #B9B1A4 !important; font-weight: 400 !important; font-style: italic; }
#tab-overview .sub-tab-content .info-card .value a { color: var(--gold); }

/* Zwischenüberschriften (z. B. Mieter alt / neu) */
#tab-overview .sub-tab-content .info-card.mieter-section-header {
    grid-column: 1 / -1 !important; display: block !important;
    background: none !important; border: 0 !important; padding: 26px 0 6px !important;
}
#tab-overview .sub-tab-content .info-card.mieter-section-header:first-child { padding-top: 0 !important; }
#tab-overview .sub-tab-content .info-card.mieter-section-header h3 {
    color: var(--gold) !important; font-size: 10.5px !important; letter-spacing: .24em !important; text-transform: uppercase !important; font-weight: 600 !important;
}

/* Notizen wie Fließtext */
#subtab-notizen .info-card { display: block !important; border: 0 !important; padding: 0 !important; }
#subtab-notizen .info-card h3 { color: var(--gold) !important; font-size: 10.5px !important; letter-spacing: .24em !important; text-transform: uppercase !important; font-weight: 600 !important; margin-bottom: 14px !important; }
#subtab-notizen .info-card .value { text-align: left !important; font-weight: 400 !important; font-size: 15px !important; line-height: 1.8; color: #3A362F !important; }

/* leere Kapitel */
#tab-overview .sub-tab-content .empty-state { background: none !important; border: 1px dashed var(--line) !important; color: var(--mute) !important; box-shadow: none !important; backdrop-filter: none !important; }
#tab-overview .sub-tab-content .empty-state h2, #tab-overview .sub-tab-content .empty-state h3 { color: var(--ink) !important; }
#tab-overview .sub-tab-content .ley-empty-ico { color: var(--gold); filter: none; }

#tab-overview .sub-tab-content.active { animation: leyFadeUp .45s var(--ease) both; }

@media (max-width: 900px) {
    #tab-overview .overview-hero-content { padding: 24px 20px 30px; border-radius: 20px; }
    #tab-overview .overview-hero-content::after { top: 22px; right: 20px; width: 90px; height: 26px; }
    #tab-overview .sub-tab-content .info-grid { grid-template-columns: 1fr !important; }
    #tab-overview .sub-tab-content .section-title { font-size: 34px !important; }
    #tab-overview .sub-tabs { gap: 0 18px !important; overflow-x: auto; flex-wrap: nowrap; }
}

/* ---------- Objektangaben: Aurora-Glas statt Papier ---------- */
#tab-overview .overview-hero-content {
    --ink: var(--text-primary); --mute: var(--text-muted); --line: rgba(255,255,255,.08); --gold: var(--accent);
    background:
        radial-gradient(700px 260px at 0% 0%, rgba(240,197,116,.10), transparent 70%),
        radial-gradient(600px 300px at 100% 100%, rgba(139,108,255,.12), transparent 70%),
        linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 55%, rgba(255,255,255,.035)) !important;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-lg) !important;
}
#tab-overview .overview-hero-content::before { background: var(--aurora-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; width: fit-content; }
#tab-overview .sub-tab.active { border-image: var(--aurora-grad) 1 !important; border-bottom-width: 2px !important; }
#tab-overview .sub-tab-content .section-title { color: var(--text-primary) !important; }
#tab-overview .sub-tab-content .info-card .value.empty { color: var(--text-muted) !important; opacity: .6; }
#tab-overview .sub-tab-content .info-card { transition: background .2s; }
#tab-overview .sub-tab-content .info-card:not(.mieter-section-header):hover { background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent) !important; }
#subtab-notizen .info-card .value { color: var(--text-secondary) !important; }
[data-theme="light"] #tab-overview .overview-hero-content { --line: rgba(23,20,42,.08); background: linear-gradient(155deg, rgba(255,255,255,.85), rgba(255,255,255,.55)) !important; }

/* leyMapDarkTiles: OpenStreetMap im dunklen Aurora-Look */
:root:not([data-theme="light"]) .ley-map .leaflet-tile-pane { filter: invert(1) hue-rotate(200deg) brightness(.82) contrast(.92) saturate(.35); }
[data-theme="light"] .ley-map .leaflet-tile-pane { filter: saturate(.55) contrast(.95); }
.ley-map .leaflet-control-attribution { background: rgba(14,12,22,.7) !important; color: var(--text-muted) !important; border-radius: 8px 0 0 0; }
.ley-map .leaflet-control-attribution a { color: var(--text-secondary) !important; }
.ley-map .leaflet-bar a { background: rgba(20,18,30,.85) !important; color: var(--text-primary) !important; border-color: rgba(255,255,255,.1) !important; }

/* =====================================================================
   LEY-PERF · flüssiges Scrollen: Unschärfe nur noch auf festen Elementen
   ===================================================================== */
.object-card, .stat-card, .filters-container, .info-card, .info-item, .appointment-item, .document-card, .document-item,
.interessent-card, .owner-section-card, .folder-section, .interested-person-card, .interested-party-item, .timeline-card,
.zeiterfassung-card, .city-card, .empty-state, .auszuege-calendar, .calendar-month, .zeiterfassung-table-container,
.container .section, .ley-kpi, .ley-week, .ley-col, .ley-table-wrap, .ley-facts > div, .ley-glance > div, .ley-actions button,
.ley-seg, .sub-tabs, .ley-ex-bar, #tab-overview .overview-hero-content, .ley-owner-progress, .ley-owner-contact, .ley-hello-date,
.ley-photo-facts, .ley-photo-type, .ley-pill, .ley-expose-btn, #filterToggleButton, .modal-button.secondary, button.secondary,
.ley-map-legend, .ley-table th, .ley-ex-status {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
/* etwas dichtere Flächen als Ausgleich für die fehlende Unschärfe */
.object-card, .stat-card, .filters-container, .ley-kpi, .ley-week, .ley-table-wrap, #tab-overview .overview-hero-content, .container .section {
    background-color: rgba(16,14,24,.55) !important;
}
[data-theme="light"] :is(.object-card, .stat-card, .filters-container, .ley-kpi, .ley-week, .ley-table-wrap, #tab-overview .overview-hero-content, .container .section) { background-color: rgba(255,255,255,.7) !important; }
.ley-table th { background: rgba(14,12,22,.97) !important; }
/* Karten nicht bei jedem Neuaufbau erneut einblenden, Rendering eingrenzen */
.objects-list > .object-card, .ley-board .object-card { animation: none !important; }
.object-card, .ley-kpi, .ley-day, .info-card { contain: layout paint; }
.ley-photo { background: linear-gradient(135deg, #2a2234, #1a1826); }
.ley-photo img { transform: none; }

/* =====================================================================
   TODO-FENSTER: Zuständigkeit als Auswahl-Chips (kein überlappendes Dropdown)
   ===================================================================== */
#todoModal .modal-content { max-width: 620px !important; max-height: min(92vh, 860px) !important; display: flex !important; flex-direction: column !important; }
#todoModal .modal-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 22px 26px !important; }
#todoModal .modal-actions { flex-shrink: 0; position: sticky; bottom: 0; }
#todoModal #todoForm { display: flex; flex-direction: column; gap: 18px; }
#todoModal .form-field { margin: 0 !important; position: relative; }
#todoModal .form-field > label:first-child { display: block; margin-bottom: 8px; font-size: 11px !important; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--text-muted) !important; }
#todoModal textarea { min-height: 110px; resize: vertical; font-size: 14.5px; line-height: 1.55; padding: 14px 16px !important; }
#todoModal input[type="date"] { height: 46px; padding: 0 14px !important; }

/* Dropdown-Knopf weg, Liste immer sichtbar und im normalen Fluss */
#todoModal #todoAssigneeToggle { display: none !important; }
#todoModal #todoAssigneeMenu {
    display: block !important; position: static !important; max-height: none !important; overflow: visible !important;
    background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important;
}
#todoModal #todoAssigneeOptions { display: flex; flex-wrap: wrap; gap: 8px; }
#todoModal #todoAssigneeOptions:empty::before { content: 'Team wird geladen …'; font-size: 13px; color: var(--text-muted); }
#todoModal #todoAssigneeOptions label {
    position: relative; display: inline-flex !important; align-items: center; gap: 8px !important;
    max-width: 100%; padding: 9px 14px 9px 12px !important; border-radius: 999px !important;
    border: 1px solid var(--glass-border, rgba(255,255,255,.12)); background: rgba(255,255,255,.04);
    cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; user-select: none;
}
#todoModal #todoAssigneeOptions label:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
#todoModal #todoAssigneeOptions label span { font-size: 13px !important; font-weight: 500 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; color: var(--text-secondary) !important; }
#todoModal #todoAssigneeOptions input[type="checkbox"] {
    appearance: none; -webkit-appearance: none; width: 18px !important; height: 18px !important; margin: 0 !important; flex-shrink: 0;
    border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); background: transparent; display: grid; place-items: center; transition: all .15s; cursor: pointer;
}
#todoModal #todoAssigneeOptions input[type="checkbox"]:checked { border-color: transparent; background: var(--accent-grad, var(--accent)); }
#todoModal #todoAssigneeOptions input[type="checkbox"]:checked::after { content: '✓'; font-size: 11px; font-weight: 800; color: #1B1030; line-height: 1; }
#todoModal #todoAssigneeOptions label:has(input:checked) { border-color: rgba(240,197,116,.55); background: linear-gradient(100deg, rgba(240,197,116,.16), rgba(139,108,255,.12)); box-shadow: 0 6px 18px -10px rgba(240,197,116,.7); }
#todoModal #todoAssigneeOptions label:has(input:checked) span { color: var(--text-primary) !important; }
/* alter Hinweistext zum Dropdown */
#todoModal #todoAssigneeDropdown ~ div[style*="margin-top: 6px"] { font-size: 0 !important; margin-top: 8px !important; }
#todoModal #todoAssigneeDropdown ~ div[style*="margin-top: 6px"]::after { content: 'Tippe auf eine oder mehrere Personen.'; font-size: 12px; color: var(--text-muted); }

/* "Für Eigentümer sichtbar" als Schalter-Zeile */
#todoModal .todo-owner-flag {
    display: flex !important; align-items: center; justify-content: space-between; gap: 12px; margin: 0 !important;
    padding: 14px 16px; border-radius: 14px; border: 1px solid var(--glass-border, rgba(255,255,255,.12)); background: rgba(255,255,255,.03);
    font-size: 14px !important; color: var(--text-primary) !important; cursor: pointer; flex-direction: row-reverse;
}
#todoModal .todo-owner-flag input[type="checkbox"] {
    appearance: none; -webkit-appearance: none; width: 42px !important; height: 24px !important; margin: 0; flex-shrink: 0; cursor: pointer;
    border-radius: 999px; background: rgba(255,255,255,.14); position: relative; transition: background .2s;
}
#todoModal .todo-owner-flag input[type="checkbox"]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
#todoModal .todo-owner-flag input[type="checkbox"]:checked { background: var(--accent-grad, var(--accent)); }
#todoModal .todo-owner-flag input[type="checkbox"]:checked::after { transform: translateX(18px); }
[data-theme="light"] #todoModal #todoAssigneeOptions label { background: rgba(0,0,0,.03); }
[data-theme="light"] #todoModal #todoAssigneeOptions input[type="checkbox"] { border-color: rgba(0,0,0,.25); }
@media (max-width: 768px) {
    #todoModal .modal-content { max-height: 100dvh !important; }
    #todoModal #todoAssigneeOptions label { flex: 1 1 calc(50% - 8px); }
    #todoModal #todoAssigneeOptions label span { max-width: none; }
}
#todoModal #todoAssigneeOptions input[type="checkbox"] { height: 18px !important; min-height: 18px !important; max-height: 18px !important; min-width: 18px !important; padding: 0 !important; box-shadow: none !important; }
#todoModal .todo-owner-flag input[type="checkbox"] { height: 24px !important; min-height: 24px !important; max-height: 24px !important; min-width: 42px !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
#todoModal .form-field > label.todo-owner-flag { font-size: 14px !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 500 !important; color: var(--text-primary) !important; margin-bottom: 0 !important; }

/* =====================================================================
   LEY-ZOOM · Seite am Computer standardmäßig in 90 % Größe
   (Chrome-Zoom bleibt auf 100 %, die Seite selbst ist 10 % kompakter)
   ===================================================================== */
@media (min-width: 1025px) {
    html { zoom: .9; }
    body { min-height: calc(100vh / .9) !important; }
    .sidebar, nav.sidebar { height: calc(100dvh / .9) !important; max-height: calc(100dvh / .9) !important; }
    .settings-panel { height: calc(100vh / .9) !important; }
    .modal-content { max-height: calc(90vh / .9) !important; }
    #todoModal .modal-content { max-height: min(calc(92vh / .9), 960px) !important; }
}
@media (min-width: 1025px) {
    nav.sidebar { height: calc(100dvh / .9 - 28px) !important; max-height: calc(100dvh / .9 - 28px) !important; }
}
@media (min-width: 1367px) {
    body { height: calc(100vh / .9) !important; max-height: calc(100vh / .9) !important; }
}
@media (min-width: 1025px) {
    /* Objektseite: Höhe, die das Skript in Pixeln setzt, an den 90-%-Zoom anpassen */
    .main-content > .content-body { flex: 1 1 auto !important; height: auto !important; max-height: none !important; min-height: 0 !important; }
}

/* =====================================================================
   AUFGABEN MIT / OHNE OBJEKT
   ===================================================================== */
.ley-tasks-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.ley-task-new { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: #1B1030; background: var(--accent-grad); box-shadow: 0 10px 28px -10px rgba(240,160,140,.8); transition: transform .2s var(--ease); }
.ley-task-new svg { width: 17px; height: 17px; }
.ley-task-new:hover { transform: translateY(-2px); }

.ley-tchip { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ley-tchip svg { width: 13px; height: 13px; }
.ley-tchip-obj { color: var(--accent); background: rgba(240,197,116,.12); box-shadow: inset 0 0 0 1px rgba(240,197,116,.35); }
.ley-tchip-gen { color: #C3B2FF; background: rgba(139,108,255,.16); box-shadow: inset 0 0 0 1px rgba(169,139,255,.45); }

.ley-task-head { display: flex; align-items: center; gap: 10px; margin: 6px 2px 12px; }
.ley-task-head b { font-size: 12px; color: var(--text-muted); padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.06); }
.ley-task-group-gen { margin-bottom: 26px; }
.ley-task-empty { padding: 18px 20px; border-radius: 16px; border: 1px dashed rgba(169,139,255,.35); color: var(--text-muted); font-size: 13px; background: rgba(139,108,255,.04); }
.ley-task-empty b { color: var(--text-secondary); }

/* Karten: Objekt = gold, Allgemein = violett */
#tasksList > .object-card { box-shadow: inset 3px 0 0 rgba(240,197,116,.85), var(--shadow-md) !important; padding-top: 18px !important; }
#tasksList > .object-card > .ley-tchip { margin-bottom: 10px; }
#tasksList > .object-card > div:first-child { flex-wrap: wrap; }
.object-card.ley-task-gen { cursor: pointer; padding-top: 18px !important; box-shadow: inset 3px 0 0 #A98BFF, var(--shadow-md) !important;
    background: radial-gradient(120% 70% at 100% 0%, rgba(139,108,255,.14), transparent 60%), rgba(16,14,24,.55) !important; }
.object-card.ley-task-gen.is-due { box-shadow: inset 3px 0 0 #FF5F6D, var(--shadow-md) !important; }
.ley-task-gen .ley-tchip { margin-bottom: 10px; }
.ley-tg-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ley-tg-top h3 { margin: 0 !important; }
.ley-tg-done { all: unset; cursor: pointer; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text-muted); border: 1.5px solid rgba(255,255,255,.2); transition: all .2s; }
.ley-tg-done svg { width: 16px; height: 16px; }
.ley-tg-done:hover { color: #1B1030; background: #3EE08F; border-color: #3EE08F; box-shadow: 0 0 18px rgba(62,224,143,.6); }
.ley-task-gen em { font-style: normal; color: #C3B2FF; }

/* Filter */
body.ley-tf-objekt #leyGeneral { display: none; }
body.ley-tf-allgemein #tasksList, body.ley-tf-allgemein #leyObjHead { display: none !important; }

/* Zeichen am Menüpunkt */
.ley-gen-dot { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; color: #fff; background: #8B6CFF; box-shadow: 0 0 10px rgba(139,108,255,.7); }
.ley-gen-dot:empty { display: none; }
.sidebar-badge + .ley-gen-dot { margin-left: 4px; }

/* Wochenansicht / Glocke */
.ley-ev-gen { border-left-color: #A98BFF !important; background: rgba(139,108,255,.08) !important; }

/* Fenster */
.ley-tm { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6,6,11,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ley-tm.open { display: flex; }
.ley-tm-box { width: min(620px, 100%); max-height: min(92vh, 900px); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; color: var(--text-primary);
    background: linear-gradient(160deg, rgba(40,34,62,.96), rgba(16,14,26,.98)); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 120px -30px rgba(0,0,0,.95); animation: leyModalIn .3s var(--ease); }
[data-theme="light"] .ley-tm-box { background: #fff; }
.ley-tm-box > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ley-tm-box > header h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin: 6px 0 0; line-height: 1.15; }
.ley-tm-x { all: unset; cursor: pointer; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--text-secondary); flex-shrink: 0; }
.ley-tm-x:hover { background: rgba(255,255,255,.08); color: var(--text-primary); }
.ley-tm-x svg { width: 20px; height: 20px; }
.ley-tm-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 20px 26px 22px; display: flex; flex-direction: column; }
.ley-tm-l { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); margin: 16px 0 8px; }
.ley-tm-l:first-child { margin-top: 0; }
.ley-tm-body textarea { min-height: 90px; resize: vertical; padding: 13px 15px !important; font-size: 14.5px; line-height: 1.5; }
.ley-tm-body input[type="date"], .ley-tm-body input[type="search"] { height: 44px; padding: 0 14px !important; }
.ley-tm-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ley-tm-kind button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 14px; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); transition: all .15s; }
.ley-tm-kind button svg { width: 17px; height: 17px; }
.ley-tm-kind button[data-kind="allgemein"].active { color: #fff; border-color: rgba(169,139,255,.6); background: rgba(139,108,255,.18); box-shadow: 0 8px 22px -12px rgba(139,108,255,.9); }
.ley-tm-kind button[data-kind="objekt"].active { color: #fff; border-color: rgba(240,197,116,.6); background: rgba(240,197,116,.14); box-shadow: 0 8px 22px -12px rgba(240,197,116,.9); }
.ley-tm-obj { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.ley-tm-obj[hidden] { display: none; }
.ley-tm-objlist { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }
.ley-tm-objlist button { all: unset; cursor: pointer; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.ley-tm-objlist button b { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.ley-tm-objlist button span { grid-column: 1; font-size: 12px; color: var(--text-muted); }
.ley-tm-objlist button i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.ley-tm-objlist button:hover { background: rgba(255,255,255,.06); }
.ley-tm-objlist button.on { border-color: rgba(240,197,116,.6); background: rgba(240,197,116,.12); }
.ley-tm-people { display: flex; flex-wrap: wrap; gap: 8px; }
.ley-tm-people button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-secondary); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); transition: all .15s; }
.ley-tm-people button i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.3); color: transparent; }
.ley-tm-people button i svg { width: 12px; height: 12px; }
.ley-tm-people button.on { color: var(--text-primary); border-color: rgba(240,197,116,.55); background: linear-gradient(100deg, rgba(240,197,116,.16), rgba(139,108,255,.12)); }
.ley-tm-people button.on i { background: var(--accent-grad); border-color: transparent; color: #1B1030; }
.ley-tm-err { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: #FF9AA2; background: rgba(255,95,109,.1); border: 1px solid rgba(255,95,109,.3); }
.ley-tm-err[hidden] { display: none; }
.ley-tm-box > footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 26px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.15); }
.ley-tm-box > footer button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.ley-tm-box > footer button svg { width: 16px; height: 16px; }
.ley-tm-box > footer .ley-tm-sec { color: var(--text-primary); border: 1px solid rgba(255,255,255,.16); }
.ley-tm-box > footer .ley-tm-pri { color: #1B1030; background: var(--accent-grad); box-shadow: 0 10px 28px -12px rgba(240,160,140,.8); }
.ley-tm-box > footer .ley-tm-pri:disabled { opacity: .6; cursor: default; }
.ley-tm-box > footer .ley-tm-del { color: #FF8C95; margin-right: auto; }
.ley-tm-box > footer .ley-tm-del:hover { background: rgba(255,95,109,.1); }
.ley-tm-detail { gap: 10px; }
.ley-tm-detail > div { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.ley-tm-detail span { grid-row: span 2; color: var(--accent); width: 20px; height: 20px; }
.ley-tm-detail span svg { width: 20px; height: 20px; }
.ley-tm-detail small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.ley-tm-detail b { font-size: 15px; font-weight: 600; }
.ley-tm-detail b.is-due { color: #FF8C95; }
@media (max-width: 600px) { .ley-tm { padding: 0; align-items: flex-end; } .ley-tm-box { border-radius: 22px 22px 0 0; max-height: 94dvh; } .ley-tm-kind { grid-template-columns: 1fr; } }

.ley-toast { position: fixed; left: 50%; bottom: 28px; z-index: 3100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 14px; font-size: 13.5px; font-weight: 600; color: var(--text-primary); background: rgba(20,18,30,.92); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 50px -14px rgba(0,0,0,.8); transition: all .3s var(--ease); }
.ley-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 768px) { .ley-toast { bottom: 96px; } }

/* ---------- Exposé-Assistent ---------- */
.ley-exp-box { width: min(760px, 100%) !important; }
.ley-exp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.ley-exp-row:first-child { margin-top: 0; }
.ley-exp-row .ley-tm-l { margin: 0; }
.ley-exp-re { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid rgba(240,197,116,.4); background: rgba(240,197,116,.08); transition: all .15s; }
.ley-exp-re svg { width: 14px; height: 14px; }
.ley-exp-re:hover { background: rgba(240,197,116,.18); }
.ley-exp-box textarea { margin-top: 8px; width: 100%; resize: vertical; font-size: 14px; line-height: 1.65; padding: 14px 16px !important; min-height: 140px; }
.ley-exp-hint { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); }
.ley-exp-umg { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.ley-exp-umg small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.ley-exp-umg > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ley-exp-umg span { font-size: 12px; color: var(--text-secondary); padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.05); }
.ley-exp-umg span b { color: var(--text-primary); font-weight: 600; }
/* Exposé: Fotoauswahl */
.ley-exp-tools { display: inline-flex; gap: 6px; }
.ley-exp-fotos { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ley-exp-foto { all: unset; cursor: pointer; position: relative; aspect-ratio: 4 / 3; border-radius: 12px; background: #1d1a28 center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); filter: grayscale(.85) brightness(.55); transition: filter .2s, box-shadow .2s, transform .2s; }
.ley-exp-foto:hover { filter: grayscale(.4) brightness(.8); }
.ley-exp-foto.on { filter: none; box-shadow: 0 0 0 2px #F0C574, 0 10px 24px -12px rgba(240,197,116,.8); }
.ley-exp-foto i { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.75); background: rgba(0,0,0,.35); color: transparent; }
.ley-exp-foto i svg { width: 13px; height: 13px; }
.ley-exp-foto.on i { background: var(--accent-grad); border-color: transparent; color: #1B1030; }
.ley-exp-foto em, .ley-exp-foto b { position: absolute; left: 7px; bottom: 7px; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1B1030; background: var(--accent-grad); padding: 3px 8px; border-radius: 999px; }
.ley-exp-foto b { letter-spacing: 0; color: #fff; background: rgba(0,0,0,.6); }
.ley-exp-star { position: absolute; left: 7px; top: 6px; font-size: 16px; line-height: 1; color: rgba(255,255,255,.85); text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.ley-exp-star:hover { color: #F0C574; transform: scale(1.15); }
