/* NEU: Kundenbereich (mode-customer) – Mobile First, große Touchflächen, eine Aufgabe pro Bildschirm */

.customer-page { display: flex; flex-direction: column; gap: 1.5rem; animation: fadeIn 0.25s; }
.customer-page-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.4px; line-height: 1.25; }
.customer-muted { color: var(--text-secondary); font-size: 0.95rem; }

.customer-hero {
    display: flex; flex-direction: column; gap: 0.875rem;
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card); box-shadow: var(--shadow-sm);
}
.customer-hero-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }
.customer-hero-text { color: var(--text-secondary); font-size: 1rem; line-height: 1.5; }
.customer-hero .btn { margin-top: 0.5rem; }

.customer-section { display: flex; flex-direction: column; gap: 0.75rem; }
.customer-section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.customer-section-title { font-size: 1.05rem; font-weight: 600; }

.mode-customer .alert-text { font-size: 0.95rem; }

/* Vorgangskarten */
.request-card-list { display: flex; flex-direction: column; gap: 0.75rem; }
.request-card {
    display: flex; align-items: center; gap: 0.875rem;
    min-height: 72px; padding: 1rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card); box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    transition: var(--transition-fast);
}
.request-card:hover { box-shadow: var(--shadow-md); }
.request-card-icon { width: 44px; height: 44px; font-size: 1.1rem; }
.request-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.request-card-title { font-weight: 600; font-size: 1rem; }
.request-card-text { color: var(--text-secondary); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.request-card-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.35rem; }
.request-card-date { font-size: 0.78rem; color: var(--text-muted); }
.request-card-arrow { color: var(--text-muted); }
.request-card-unread {
    min-width: 24px; height: 24px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full); background: var(--danger); color: var(--text-inverse);
    font-size: 0.75rem; font-weight: 700;
}

/* So funktioniert es */
.how-it-works { display: flex; flex-direction: column; gap: 0.75rem; }
.how-it-works-step { display: flex; align-items: center; gap: 0.875rem; }
.how-it-works-icon { width: 44px; height: 44px; font-size: 1.05rem; border-radius: var(--radius-full); }
.how-it-works-text { display: flex; flex-direction: column; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.4; }
.how-it-works-title { color: var(--text-primary); font-weight: 600; font-size: 0.98rem; }

/* NEU Phase 2: Entwurfshinweis, Fortsetzen, Bestätigung, Vorgangsansicht, Gastzugang, Profil */
.draft-banner {
    display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem;
    border-radius: var(--radius-lg); background: var(--warning-light); color: var(--text-primary);
    border-left: 3px solid var(--warning);
}
.draft-banner-icon { width: 40px; height: 40px; }
.draft-banner-text { flex: 1; display: flex; flex-direction: column; font-size: 0.9rem; line-height: 1.4; }

.resume-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.875rem;
    padding: 2rem 1.25rem; border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-sm);
}
.resume-card-icon { width: 64px; height: 64px; font-size: 1.6rem; border-radius: var(--radius-full); }

.confirmation-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; padding: 1.5rem 1rem; border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-sm); }
.confirmation-icon { font-size: 3.5rem; color: var(--success); animation: slideUp 0.4s; }
.confirmation-number { font-size: 1.6rem; font-weight: 600; letter-spacing: 0.5px; }
.confirmation-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.guest-link-box { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-sm); border-left: 3px solid var(--info); }
.guest-link-input { font-family: var(--font-mono); font-size: 0.8rem !important; }

.request-detail-header { display: flex; align-items: center; gap: 0.875rem; }
.next-step { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1rem; border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-sm); border-left: 3px solid var(--info); font-size: 0.98rem; line-height: 1.5; }
.next-step-success { border-left-color: var(--success); }
.next-step-warning { border-left-color: var(--warning); }
.next-step-primary { border-left-color: var(--primary); }
.next-step-gray { border-left-color: var(--gray-400); }

.timeline { position: relative; display: flex; flex-direction: column; gap: 0.9rem; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 0.4rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: var(--border); }
.timeline-item { position: relative; display: flex; flex-direction: column; line-height: 1.35; }
.timeline-dot { position: absolute; left: -1.5rem; top: 0.3rem; width: 0.95rem; height: 0.95rem; border-radius: var(--radius-full); background: var(--bg-page); border: 3px solid var(--primary); }
.timeline-item:first-child .timeline-dot { background: var(--primary); }
.timeline-text { font-weight: 600; }
.timeline-date { font-size: 0.8rem; color: var(--text-muted); }

.guest-access-page { max-width: 480px; }
.guest-access-card { padding: 1.5rem; }
.lookup-form { display: flex; flex-direction: column; gap: 1rem; }
.lookup-form .form-group { margin-bottom: 0; }
.login-footer { gap: 0.5rem; flex-wrap: wrap; }

.profile-site { display: flex; gap: 0.6rem; align-items: baseline; }
.profile-site i { color: var(--text-muted); }
.danger-text { color: var(--danger-dark); }

.mobile-header-back { margin-left: -0.5rem; }

@media (min-width: 769px) {
    .customer-main { padding-top: 2rem; }
    .customer-hero { padding: 2rem; }
}

/* NEU Phase 7: Abschlussbericht in der Vorgangsansicht */
.completion-report { border-left: 3px solid var(--success); }
.completion-report .customer-muted i { margin-right: 0.3rem; }
.completion-report .summary-description { white-space: pre-wrap; }

/* NEU Phase 8: „Sie sind am Zug“ und Fortschritt */
.action-items { gap: 0.6rem; }
.action-items .customer-section-title i { color: var(--warning-dark); }
.action-item {
    display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; min-height: var(--touch-target);
    border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-sm); border-left: 4px solid var(--warning); color: var(--text-primary);
}
.action-item-icon { width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); }
.action-item-text { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; min-width: 0; }
.request-card.is-action { border-left: 4px solid var(--warning); }
.request-card-body .progress-mini { margin: 0.2rem 0; }
.next-step .progress-steps { margin: 0.5rem 0 0.25rem; }
.next-step-action-hint { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--warning-dark); }
