/* ==========================================================================
   OBJECT MANAGER MODAL - IMMO Vision Dashboard

   Version: 1.0
   Date: 2025-11-22
   Objekt: 6-Familienhaus Kornwestheim (Breslauer Straße 22)

   Dependencies:
   - Dashboard CSS-Variablen (dashboard.css)
   - Inter Font (Google Fonts)

   Structure:
   1. Overlay & Container (~80 lines)
   2. Header (3-teilig) (~120 lines)
   3. Tab Navigation (~60 lines)
   4. Tab Content (~700 lines)
      4.1 Tab 1: Übersicht (~140 lines)
      4.2 Tab 2: Analyse (~200 lines)
      4.3 Tab 3: Aufgaben (~120 lines)
      4.4 Tab 4: Dokumente (~140 lines)
      4.5 Tab 5: Timeline (~140 lines)
   5. Besichtigungs-Modal (Nested) (~250 lines)
   6. Responsive (~200 lines)
   7. Animations (~40 lines)

   Total: ~1250 lines
   ========================================================================== */

/* ==========================================================================
   1. OVERLAY & CONTAINER
   ========================================================================== */

.object-manager-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh; /* Dynamic Viewport Height (Safari/Chrome Mobile Fix) */
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

/* Hidden State */
.object-manager-overlay[data-state="hidden"] {
    display: none;
}

.object-manager-container {
    width: 100%;
    max-width: 1400px;
    max-height: 90vh;
    max-height: 90dvh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

/* ==========================================================================
   2. HEADER (3-teilig: Button | Info | Image)
   ========================================================================== */

.object-manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #FFFFFF;
    flex-shrink: 0;
}

/* Zurück-Button (Apple-Style) */
.om-back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--color-primary, #0077B6);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    min-height: 44px; /* Touch Target */
}

.om-back-button:hover {
    background: rgba(0, 119, 182, 0.1);
}

.om-back-button:active {
    transform: scale(0.95);
}

.om-back-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.om-back-button span {
    white-space: nowrap;
}

/* Objekt-Info (Mitte) */
.om-header-info {
    flex: 1;
    text-align: center;
    min-width: 0; /* Allow text truncation */
}

.om-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900, #111827);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.om-meta {
    font-size: 14px;
    color: var(--gray-600, #4B5563);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.4;
}

.om-meta-separator {
    color: var(--gray-400, #9CA3AF);
}

/* Mini-Objektbild (Rechts) */
.om-header-image {
    width: 40px; /* CHANGED v4.0.0: Smaller, more compact (was 60px) */
    height: 40px;
    border-radius: 8px; /* CHANGED v4.0.0: Rounded square (was 50% circle) */
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08); /* CHANGED: Thinner border */
    order: 1; /* ADDED v4.0.0: Position after back button */
}

.om-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-200, #E5E7EB), var(--gray-300, #D1D5DB));
    display: flex;
    align-items: center;
    justify-content: center;
}

.om-image-placeholder svg {
    color: rgba(0, 0, 0, 0.2);
}

/* Objektbild im Header (v4.1.0) */
.om-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Delete Button (v4.0.0: Icon-only, minimalist) */
.om-delete-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: none; /* No background (minimalist) */
    color: #86868b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    order: 3; /* Position: Right side */
}

.om-delete-btn:hover {
    color: #ef4444; /* Red on hover */
    transform: scale(1.15);
}

.om-delete-btn:active {
    transform: scale(0.95);
}

.om-delete-btn svg {
    flex-shrink: 0;
}

/* ==========================================================================
   3. TAB NAVIGATION
   ========================================================================== */

.om-tabs {
    display: flex;
    justify-content: space-between; /* Verteilt auf ALLEN Größen */
    gap: 0;
    padding: 0 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #FFFFFF;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}

.om-tabs::-webkit-scrollbar {
    display: none;
}

.om-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray-600, #4B5563);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: -1px;
    min-height: 44px; /* Touch Target */
}

.om-tab:hover {
    color: var(--color-primary, #0077B6);
    background: rgba(0, 119, 182, 0.05);
}

.om-tab.active {
    color: var(--color-primary, #0077B6);
    border-bottom-color: var(--color-primary, #0077B6);
}

.om-tab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.om-tab:focus-visible {
    outline: 2px solid var(--color-primary, #0077B6);
    outline-offset: -2px;
}

.om-tab:focus {
    outline: none;
}

/* ==========================================================================
   4. TAB CONTENT
   ========================================================================== */

.om-tab-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px; /* Reduziert von 32px */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
    background: #FFFFFF;
}

/* Desktop/Tablet: Etwas mehr Padding */
@media (min-width: 768px) {
    .om-tab-content {
        padding: 20px;
    }
}

.om-tab-panel {
    display: none;
}

.om-tab-panel.active {
    display: block;
    animation: fadeInContent 0.3s ease;
}

.om-section {
    margin-bottom: 20px;
}

.om-section:last-child {
    margin-bottom: 0;
}

.om-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800, #1F2937);
    margin: 0 0 16px 0;
}

.om-section-title svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary, #0077B6);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4.1 Tab 1: Übersicht
   -------------------------------------------------------------------------- */

/* Recommendation Card (Green Gradient) */
/* ==========================================================================
   Kaufempfehlung (Variante C - Ultra-Kompakt, ~50px Höhe)

   Layout:
   ┌──────────────────────────────────────────────────────────────────────┐
   │  ● BEDINGT KAUFEN · 72%                                 KI-ANALYSE  │
   │  (i) Diese Einschätzung basiert auf KI und ersetzt keine Beratung   │
   └──────────────────────────────────────────────────────────────────────┘
   ========================================================================== */
.recommendation-card {
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    margin-bottom: 20px;
}

.recommendation-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Farbiger Signalpunkt (12px) */
.recommendation-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Empfehlungsfarben */
.recommendation-dot.rec-buy { background: #10B981; }
.recommendation-dot.rec-conditional { background: #F59E0B; }
.recommendation-dot.rec-caution { background: #EF4444; }
.recommendation-dot.rec-avoid { background: #6B7280; }

.recommendation-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary, #1F2937);
    margin: 0;
    line-height: 1.2;
}

.recommendation-separator {
    color: var(--text-tertiary, #9CA3AF);
}

.recommendation-confidence {
    font-size: 14px;
    color: var(--text-secondary, #6B7280);
}

.recommendation-badge {
    margin-left: auto;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-tertiary, #9CA3AF);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* Begründungszeile (zwischen Haupt-Info und Disclaimer) */
.recommendation-reason {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #6B7280);
    line-height: 1.4;
}

/* Kompakter Disclaimer */
.recommendation-disclaimer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-tertiary, #9CA3AF);
}

.recommendation-disclaimer .info-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

.recommendation-disclaimer span {
    line-height: 1.3;
}

/* Stats Grid (Kennzahlen) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.stat-card {
    background: #FFFFFF;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary, #0077B6);
    margin: 0 0 4px 0;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-600, #4B5563);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Insights Grid (2 Spalten: Top Insights | Nächste Schritte) */
.insights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Grid Items - White Background wie Kennzahlen */
.insights-grid > .om-section {
    background: #FFFFFF;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    margin-bottom: 0;
    transition: all 0.2s ease;
}

.insights-grid > .om-section:hover {
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Insight List */
.insight-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
}

/* WICHTIG: Keine ::before Bullets im Modal! */
.object-manager-overlay .insight-item::before {
    content: none;
}

.insight-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary, #0077B6);
    flex-shrink: 0;
    margin-top: 2px;
}

.step-number {
    width: 24px;
    height: 24px;
    background: var(--color-primary, #0077B6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0;
}

.insight-content {
    flex: 1;
    min-width: 0;
}

.insight-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900, #111827);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.insight-text {
    font-size: 14px;
    color: var(--gray-700, #374151);
    line-height: 1.5;
    margin: 0;
}

/* --------------------------------------------------------------------------
   4.2 Tab 2: Analyse
   -------------------------------------------------------------------------- */

/* AI Agent Boxes (4 Varianten: Lila, Orange, Rot, Blau) */
.ai-agent-box {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid;
    margin-bottom: 24px;
}

.ai-agent-purple {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-color: rgba(99, 102, 241, 0.2);
}

.ai-agent-orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(217, 119, 6, 0.05));
    border-color: rgba(245, 158, 11, 0.2);
}

.ai-agent-red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(220, 38, 38, 0.05));
    border-color: rgba(239, 68, 68, 0.2);
}

.ai-agent-blue {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.05), rgba(0, 184, 217, 0.05));
    border-color: rgba(0, 119, 182, 0.2);
}

.ai-agent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ai-agent-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.ai-agent-purple .ai-agent-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.ai-agent-orange .ai-agent-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.ai-agent-red .ai-agent-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.ai-agent-blue .ai-agent-icon {
    background: linear-gradient(135deg, #0077B6, #00B8D9);
}

.ai-agent-icon svg {
    width: 18px;
    height: 18px;
}

.ai-agent-info {
    flex: 1;
    min-width: 0;
}

.ai-agent-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800, #1F2937);
    margin: 0 0 2px 0;
}

.ai-agent-subtitle {
    font-size: 12px;
    color: var(--gray-600, #4B5563);
    margin: 0;
}

.ai-agent-content {
    padding: 16px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    color: var(--gray-700, #374151);
    line-height: 1.6;
    margin-bottom: 12px;
}

.ai-agent-content p {
    margin: 0;
}

.ai-agent-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--color-primary, #0077B6);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px; /* Touch Target */
}

.ai-agent-button:hover {
    background: var(--color-primary-dark, #003566);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.3);
}

.ai-agent-button:active {
    transform: translateY(0);
}

.ai-agent-button svg {
    width: 16px;
    height: 16px;
}

/* Categories Grid (3×3 auf Desktop/Tablet, Stack auf Mobile) */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* Category Cards (immer expanded, kein Accordion mehr!) */
.category-accordion {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.category-accordion:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    cursor: default; /* Kein Click mehr */
    transition: background 0.2s ease;
    background: rgba(255, 255, 255, 0.3);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.category-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary, #0077B6);
    flex-shrink: 0;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800, #1F2937);
    margin: 0;
    line-height: 1.2;
}

.category-score {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Score Color Coding */
.score-a {
    color: var(--color-success, #10B981);
}

.score-b {
    color: var(--color-primary, #0077B6);
}

.score-c {
    color: var(--color-warning, #F59E0B);
}

.score-d {
    color: var(--color-danger, #EF4444);
}

/* Chevron verstecken (nicht mehr nötig) */
.category-chevron {
    display: none;
}

/* Content immer sichtbar (kein Toggle mehr) */
.category-content {
    display: block !important;
    max-height: none !important;
    overflow: visible;
}

.category-details {
    padding: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.2);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    gap: 12px;
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600, #4B5563);
    flex: 1;
    min-width: 0;
}

.detail-label svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.detail-value {
    font-weight: 600;
    color: var(--gray-800, #1F2937);
    text-align: right;
    white-space: nowrap;
}

.detail-summary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 13px;
    color: var(--gray-600, #4B5563);
    line-height: 1.5;
}

.detail-summary strong {
    color: var(--gray-800, #1F2937);
}

.detail-critical {
    color: var(--color-danger, #EF4444);
    background: rgba(239, 68, 68, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 12px 0 0 0;
}

.detail-critical strong {
    color: var(--color-danger, #EF4444);
}

.detail-warning {
    color: var(--color-warning, #F59E0B);
    background: rgba(245, 158, 11, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 12px 0 0 0;
}

.detail-warning strong {
    color: var(--color-warning, #F59E0B);
}

/* --------------------------------------------------------------------------
   4.3 Tab 3: Aufgaben
   -------------------------------------------------------------------------- */

/* Tasks Kanban Grid (3 Spalten auf Desktop/Tablet) */
.tasks-kanban {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .tasks-kanban {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }
}

.task-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-critical {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger, #EF4444);
}

.priority-high {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning, #F59E0B);
}

.priority-medium {
    background: rgba(0, 119, 182, 0.15);
    color: var(--color-primary, #0077B6);
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.task-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-danger, #EF4444);
    transition: all 0.2s ease;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
}

.task-item.task-important {
    border-left-color: var(--color-warning, #F59E0B);
}

.task-item.task-optional {
    border-left-color: var(--color-primary, #0077B6);
}

.task-item.completed {
    opacity: 0.6;
    border-left-color: var(--color-success, #10B981);
}

.task-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--gray-400, #9CA3AF);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.task-checkbox:hover {
    border-color: var(--color-primary, #0077B6);
    transform: scale(1.1);
}

.task-item.completed .task-checkbox {
    background: var(--color-success, #10B981);
    border-color: var(--color-success, #10B981);
    color: white;
}

.task-item.completed .task-checkbox::after {
    content: '✓';
    font-size: 14px;
    font-weight: 700;
}

.task-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800, #1F2937);
    margin: 0;
    line-height: 1.3;
}

.task-description {
    font-size: 13px;
    color: var(--gray-600, #4B5563);
    margin-left: 32px;
    line-height: 1.5;
}

.task-description strong {
    color: var(--gray-800, #1F2937);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   4.4 Tab 4: Dokumente
   -------------------------------------------------------------------------- */

/* Risk Items (in AI Agent Content) */
.risk-item {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.risk-item:last-child {
    margin-bottom: 0;
}

.risk-critical {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--color-danger, #EF4444);
}

.risk-medium {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--color-warning, #F59E0B);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--gray-300, #D1D5DB);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-zone:hover {
    border-color: var(--color-primary, #0077B6);
    background: rgba(0, 119, 182, 0.05);
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    opacity: 0.5;
    color: var(--gray-500, #6B7280);
}

.upload-text {
    font-size: 14px;
    color: var(--gray-600, #4B5563);
    margin-bottom: 8px;
}

.upload-text strong {
    font-weight: 600;
    color: var(--gray-800, #1F2937);
}

.upload-hint {
    font-size: 12px;
    color: var(--gray-500, #6B7280);
}

/* Document List */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.document-item:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.document-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800, #1F2937);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.document-meta {
    font-size: 12px;
    color: var(--gray-500, #6B7280);
    margin: 0;
    line-height: 1.4;
}

.document-status {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-complete {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success, #10B981);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning, #F59E0B);
}

.status-missing {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger, #EF4444);
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
}

.btn-primary {
    background: var(--color-primary, #0077B6);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark, #003566);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 36px;
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   4.5 Tab 5: Timeline
   -------------------------------------------------------------------------- */

.progress-bar-container {
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700, #374151);
}

.progress-label svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary, #0077B6);
}

.progress-percentage {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary, #0077B6);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary, #0077B6), var(--color-primary-light, #00B8D9));
    border-radius: 9999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-meta {
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-600, #4B5563);
}

/* Timeline (Marker überlagert auf Content-Cards) */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline * {
    border: none !important;
    text-decoration: none !important;
}

.timeline *::before,
.timeline *::after {
    content: none !important;
    display: none !important;
}

.timeline-item {
    position: relative;
    width: 100%;
}

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 16px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--color-success, #10B981) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    z-index: 2;
}

.timeline-marker.pending {
    border-color: var(--gray-300, #D1D5DB) !important;
    background: var(--gray-100, #F3F4F6);
    box-shadow: none !important;
}

.timeline-marker.current {
    border-color: var(--color-primary, #0077B6) !important;
    animation: pulse 2s infinite;
}

.timeline-content {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 16px 16px 48px; /* Links Platz für Marker */
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.timeline-date {
    font-size: 12px;
    color: var(--gray-500, #6B7280);
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    border: none !important;
    text-decoration: none !important;
    outline: none !important;
    background: none !important;
}

.timeline-date::before,
.timeline-date::after {
    content: none !important;
    display: none !important;
}

.timeline-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800, #1F2937);
    margin: 0 0 6px 0;
    line-height: 1.3;
    border: none !important;
    text-decoration: none !important;
    outline: none !important;
    background: none !important;
}

.timeline-title::before,
.timeline-title::after {
    content: none !important;
    display: none !important;
}

.timeline-description {
    font-size: 13px;
    color: var(--gray-600, #4B5563);
    line-height: 1.6;
    margin: 0;
    border: none !important;
    text-decoration: none !important;
    outline: none !important;
    background: none !important;
}

.timeline-description::before,
.timeline-description::after {
    content: none !important;
    display: none !important;
}

.timeline-summary {
    margin-top: 32px;
    padding: 20px;
    background: rgba(0, 119, 182, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary, #0077B6);
}

.summary-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800, #1F2937);
    margin: 0 0 8px 0;
}

.summary-text {
    font-size: 13px;
    color: var(--gray-700, #374151);
    line-height: 1.6;
    margin: 0;
}

.summary-text strong {
    color: var(--gray-900, #111827);
}

/* ==========================================================================
   5. BESICHTIGUNGS-MODAL (Nested Modal-in-Modal)
   ========================================================================== */

.besichtigung-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000; /* Above Object Manager (9999) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.besichtigung-modal-overlay[data-state="hidden"] {
    display: none;
}

.besichtigung-modal-container {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    max-height: 90dvh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.besichtigung-modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-200, #E5E7EB);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.besichtigung-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900, #111827);
    margin: 0;
}

.besichtigung-modal-title svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary, #0077B6);
}

.besichtigung-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--gray-500, #6B7280);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.besichtigung-modal-close:hover {
    color: var(--gray-900, #111827);
}

.besichtigung-modal-body {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Phase Tabs */
.phase-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-200, #E5E7EB);
}

.phase-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600, #4B5563);
    transition: all 0.2s;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    white-space: nowrap;
    min-height: 44px;
}

.phase-tab:hover {
    color: var(--color-primary, #0077B6);
}

.phase-tab.active {
    color: var(--color-primary, #0077B6);
    border-bottom-color: var(--color-primary, #0077B6);
}

.phase-tab svg {
    width: 16px;
    height: 16px;
}

.phase-content {
    display: none;
}

.phase-content.active {
    display: block;
    animation: fadeInContent 0.3s ease;
}

/* AI Insight Box (in Besichtigungs-Modal) */
.ai-insight-box {
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px;
    border-left: 4px solid #6366f1;
    margin-bottom: 16px;
}

.ai-insight-title {
    font-weight: 600;
    color: #6366f1;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.ai-insight-text {
    font-size: 13px;
    color: var(--gray-700, #374151);
    line-height: 1.6;
    margin: 0;
}

/* Checklist Items */
.checklist-item {
    padding: 16px;
    background: rgba(0, 119, 182, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 3px solid var(--color-primary, #0077B6);
}

.checklist-item.completed {
    opacity: 0.7;
    background: rgba(16, 185, 129, 0.05);
    border-left-color: var(--color-success, #10B981);
}

.checklist-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checklist-checkbox {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--gray-400, #9CA3AF);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
}

.checklist-checkbox:hover {
    border-color: var(--color-primary, #0077B6);
    transform: scale(1.1);
}

.checklist-item.completed .checklist-checkbox {
    background: var(--color-success, #10B981);
    border-color: var(--color-success, #10B981);
    color: white;
}

.checklist-item.completed .checklist-checkbox::after {
    content: '✓';
    font-size: 16px;
    font-weight: 700;
}

.checklist-title {
    font-weight: 600;
    color: var(--gray-800, #1F2937);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.checklist-title svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary, #0077B6);
}

.checklist-description {
    font-size: 13px;
    color: var(--gray-600, #4B5563);
    line-height: 1.5;
    margin: 0;
}

.checklist-description strong {
    color: var(--gray-800, #1F2937);
    font-weight: 600;
}

/* Photo Upload Zone (in Checklists) */
.photo-upload-zone {
    margin-top: 12px;
    padding: 16px;
    border: 2px dashed var(--gray-300, #D1D5DB);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: var(--gray-600, #4B5563);
    font-weight: 500;
}

.photo-upload-zone:hover {
    border-color: var(--color-primary, #0077B6);
    background: rgba(0, 119, 182, 0.02);
    color: var(--color-primary, #0077B6);
}

/* Report Summary (Phase 3) */
.report-summary {
    padding: 20px;
    background: white;
    border: 1px solid var(--gray-200, #E5E7EB);
    border-radius: 12px;
    margin-bottom: 20px;
}

.report-summary-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800, #1F2937);
    margin: 0 0 16px 0;
}

.report-section {
    margin-bottom: 16px;
}

.report-section:last-child {
    margin-bottom: 0;
}

.report-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700, #374151);
    margin: 0 0 8px 0;
}

.cost-summary {
    padding: 12px;
    background: rgba(0, 119, 182, 0.1);
    border-radius: 6px;
    font-size: 13px;
    color: var(--gray-700, #374151);
    line-height: 1.8;
}

.cost-summary strong {
    color: var(--gray-900, #111827);
}

.ki-recommendation {
    padding: 16px;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.1), rgba(0, 184, 217, 0.1));
    border-radius: 12px;
    border-left: 4px solid var(--color-primary, #0077B6);
    margin-top: 16px;
}

.ki-recommendation-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary, #0077B6);
    margin: 0 0 8px 0;
}

.ki-recommendation-text {
    font-size: 13px;
    color: var(--gray-700, #374151);
    line-height: 1.6;
    margin: 0;
}

.ki-recommendation-text strong {
    color: var(--gray-900, #111827);
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablet (768px - 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .object-manager-container {
        max-width: 100%;
    }

    .om-tab-content {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Mobile (<768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    /* Overlay & Container */
    .object-manager-overlay {
        padding: 0;
    }

    .object-manager-container {
        max-width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }

    /* Header */
    .object-manager-header {
        padding: 16px 20px;
        gap: 12px;
    }

    .om-title {
        font-size: 16px;
    }

    .om-meta {
        font-size: 13px;
        gap: 6px;
    }

    .om-header-image {
        width: 30px; /* CHANGED v4.0.0: Smaller on mobile (was 50px) */
        height: 30px;
    }

    /* Delete Button (v4.0.0) */
    .om-delete-btn {
        width: 24px;
        height: 24px;
    }

    .om-delete-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Tabs */
    .om-tabs {
        padding: 0 8px;
    }

    .om-tab {
        padding: 12px;
        font-size: 12px;
        gap: 0;
    }

    /* Nur Icons auf Mobile */
    .om-tab span {
        display: none;
    }

    .om-tab svg {
        width: 20px;
        height: 20px;
    }

    /* Content */
    .om-tab-content {
        padding: 16px;
    }

    /* Sections */
    .om-section {
        margin-bottom: 24px;
    }

    .om-section-title {
        font-size: 15px;
    }

    /* Recommendation Card */
    .recommendation-card {
        padding: 14px 16px;
    }

    .recommendation-title {
        font-size: 13px;
    }

    .recommendation-confidence {
        font-size: 13px;
    }

    .recommendation-badge {
        padding: 3px 6px;
        font-size: 9px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Accordions */
    .category-header {
        padding: 12px;
    }

    .category-name {
        font-size: 14px;
    }

    .category-score {
        font-size: 18px;
    }

    .category-details {
        padding: 16px 12px;
    }

    /* Tasks */
    .task-item {
        padding: 12px;
    }

    /* Documents */
    .upload-zone {
        padding: 30px 20px;
    }

    /* Timeline */
    .timeline {
        padding-left: 28px;
    }

    .progress-bar-container {
        padding: 16px;
    }

    /* Besichtigungs-Modal */
    .besichtigung-modal-container {
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .besichtigung-modal-header {
        padding: 20px;
    }

    .besichtigung-modal-title {
        font-size: 18px;
    }

    .besichtigung-modal-body {
        padding: 20px;
    }
}

/* --------------------------------------------------------------------------
   Small Phones (<480px)
   -------------------------------------------------------------------------- */
@media (max-width: 479px) {
    /* Header */
    .object-manager-header {
        padding: 12px 16px;
    }

    .om-back-button span {
        display: none; /* Hide "Zurück" text, show only icon */
    }

    .om-back-button {
        padding: 8px 12px;
    }

    .om-title {
        font-size: 15px;
    }

    .om-meta {
        font-size: 12px;
        gap: 4px;
    }

    .om-header-image {
        width: 48px;
        height: 48px;
    }

    /* Tabs */
    .om-tabs {
        padding: 0 8px;
    }

    .om-tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Content */
    .om-tab-content {
        padding: 12px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr; /* Single column */
    }

    /* Recommendation */
    .recommendation-card {
        padding: 12px;
    }

    .recommendation-main {
        gap: 6px;
    }

    .recommendation-dot {
        width: 10px;
        height: 10px;
    }

    .recommendation-title {
        font-size: 12px;
    }

    .recommendation-confidence {
        font-size: 12px;
    }

    .recommendation-badge {
        padding: 2px 5px;
        font-size: 8px;
    }

    .recommendation-disclaimer {
        font-size: 10px;
        margin-top: 6px;
    }

    .recommendation-disclaimer .info-icon {
        width: 12px;
        height: 12px;
    }

    /* Accordions */
    .category-header {
        padding: 10px;
    }

    .category-name {
        font-size: 13px;
    }

    .category-score {
        font-size: 16px;
    }

    .category-icon {
        width: 20px;
        height: 20px;
    }

    /* Tasks */
    .task-item {
        padding: 10px;
    }

    .task-title {
        font-size: 14px;
    }

    .task-description {
        font-size: 12px;
        margin-left: 28px;
    }

    /* Documents */
    .upload-zone {
        padding: 24px 16px;
    }

    .upload-icon {
        width: 40px;
        height: 40px;
    }

    /* Timeline */
    .timeline-content {
        padding: 16px;
    }

    .timeline-title {
        font-size: 14px;
    }

    .timeline-description {
        font-size: 12px;
    }

    /* Besichtigungs-Modal */
    .besichtigung-modal-header {
        padding: 16px;
    }

    .besichtigung-modal-title {
        font-size: 16px;
    }

    .besichtigung-modal-title svg {
        width: 20px;
        height: 20px;
    }

    .besichtigung-modal-body {
        padding: 16px;
    }

    .phase-tabs {
        flex-direction: column;
        gap: 4px;
    }

    .phase-tab {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .checklist-title {
        font-size: 13px;
    }

    .checklist-description {
        font-size: 12px;
    }
}

/* ==========================================================================
   7. ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 119, 182, 0.2);
    }
}

/* ==========================================================================
   8. UTILITY CLASSES
   ========================================================================== */

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible (Keyboard Navigation) */
*:focus-visible {
    outline: 2px solid var(--color-primary, #0077B6);
    outline-offset: 2px;
}

/* Remove Tap Highlight (Touch Devices) */
.om-tab,
.om-back-button,
.category-header,
.task-checkbox,
.checklist-checkbox,
.phase-tab,
.upload-zone,
.photo-upload-zone {
    -webkit-tap-highlight-color: transparent;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   8.5 DELETE CONFIRMATION MODAL (v4.0.0)
   Apple-Style Glassmorphic Confirmation Dialog
   ========================================================================== */

.om-delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002; /* Above Object Manager (10001) */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.om-delete-modal.open {
    display: flex;
    opacity: 1;
}

.om-delete-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.om-delete-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 16px;
    padding: 28px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.om-delete-modal.open .om-delete-content {
    transform: scale(1);
}

.om-delete-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px 0;
    text-align: center;
}

.om-delete-info {
    margin-bottom: 24px;
}

.om-delete-main-text {
    font-size: 15px;
    color: #1d1d1f;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.om-delete-details {
    background: rgba(0, 119, 182, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.om-delete-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px 0;
}

.om-delete-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.om-delete-list li {
    font-size: 14px;
    color: #3c3c43;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.om-delete-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.om-delete-note {
    font-size: 13px;
    color: #0077b6;
    margin: 0 0 12px 0;
    padding: 12px;
    background: rgba(0, 119, 182, 0.08);
    border-radius: 8px;
    font-weight: 500;
}

.om-delete-warning {
    font-size: 13px;
    color: #ef4444;
    margin: 0;
    font-weight: 600;
}

.om-delete-actions {
    display: flex;
    gap: 12px;
}

.om-delete-cancel-btn,
.om-delete-confirm-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.om-delete-cancel-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.om-delete-cancel-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.om-delete-confirm-btn {
    background: #ef4444;
    color: white;
}

.om-delete-confirm-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.om-delete-confirm-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .om-delete-content {
        padding: 24px;
        max-width: 90%;
    }

    .om-delete-title {
        font-size: 18px;
    }

    .om-delete-actions {
        flex-direction: column;
    }

    .om-delete-cancel-btn,
    .om-delete-confirm-btn {
        width: 100%;
    }
}

/* ==========================================================================
   9. PRINT STYLES (Optional - für PDF Export)
   ========================================================================== */

@media print {
    .object-manager-overlay {
        position: static;
        background: white;
        padding: 0;
    }

    .object-manager-container {
        max-width: 100%;
        max-height: none;
        box-shadow: none;
        border: 1px solid #000;
    }

    .om-back-button {
        display: none;
    }

    .om-tabs {
        display: none;
    }

    .om-tab-panel {
        display: block !important;
        page-break-inside: avoid;
    }

    .category-content {
        max-height: none !important;
        display: block;
    }
}

/* ==========================================================================
   END OF STYLES
   ========================================================================== */
