/* ─── RESET & BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f3ef; color: #1a1a1a; line-height: 1.5; }

/* ─── TOPBAR ─── */
.coming-soon-banner { background: #d4a84b; color: #1a1a1a; text-align: center; padding: 10px 20px; font-size: 0.9rem; font-weight: 500; position: sticky; top: 0; z-index: 99; }
.topbar {
    background: #1a1a1a; color: white; padding: 10px 20px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
}
.topbar .logo { font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.topbar .logo span { color: #d4a84b; }
.topbar nav { display: flex; gap: 20px; align-items: center; }
.topbar nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.85rem; transition: color .2s; cursor: pointer; }
.topbar nav a:hover { color: #d4a84b; }
.btn-nav-opa { background: transparent; border: 1px solid #d4a84b; color: #d4a84b !important; padding: 8px 18px; border-radius: 6px; font-weight: 600; font-size: 0.85rem; transition: all .2s; }
.btn-nav-opa:hover { background: #d4a84b; color: #1a1a1a !important; }
.btn-nav-client { background: #d4a84b; color: #1a1a1a !important; padding: 8px 18px; border-radius: 6px; font-weight: 600; font-size: 0.85rem; }

/* ─── SEARCH ─── */
.searchbar { background: white; padding: 12px 20px; display: none; gap: 8px; border-bottom: 1px solid #e0d8ce; }
.searchbar.visible { display: flex; }
.searchbar input { flex: 1; padding: 10px 14px; border: 1px solid #d0c8bc; border-radius: 6px; font-size: 0.95rem; outline: none; background: #faf8f5; }
.searchbar input:focus { border-color: #d4a84b; background: white; }
.btn-search { background: #d4a84b; color: #1a1a1a; border: none; padding: 10px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; }

/* ─── LAYOUT ─── */
.main { display: flex; max-width: 1200px; margin: 0 auto; min-height: calc(100vh - 110px); }

.sidebar { width: 220px; background: white; border-right: 1px solid #e0d8ce; padding: 20px 0; flex-shrink: 0; display: none; }
.sidebar.visible { display: block; }
.sidebar h3 { font-size: 0.7rem; color: #a09888; letter-spacing: 2px; text-transform: uppercase; padding: 0 18px; margin-bottom: 12px; }
.sidebar a { display: block; padding: 8px 18px; color: #333; text-decoration: none; font-size: 0.88rem; transition: all .15s; border-left: 3px solid transparent; cursor: pointer; }
.sidebar a:hover { background: #f5f3ef; color: #1a1a1a; border-left-color: #d4a84b; }
.sidebar a.active { background: #f5f3ef; border-left-color: #d4a84b; font-weight: 600; }
.cat-icon { margin-right: 8px; font-size: 1rem; }

.content { flex: 1; padding: 20px; }

/* ─── CONTENT HEADER ─── */
.content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.content-header h2 { font-size: 1.1rem; font-weight: 600; }
.count { font-size: 0.85rem; background: #e8f5e8; padding: 4px 12px; border-radius: 100px; color: #1a7a2a; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; background: #2a8a3a; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
.solved { font-size: 0.8rem; color: #2a8a3a; width: 100%; margin-top: -4px; font-weight: 500; display: flex; align-items: center; gap: 6px; }

/* ─── OPA CARDS ─── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: white; border-radius: 10px; border: 1px solid #e0d8ce; padding: 20px; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.card-top { display: flex; gap: 14px; margin-bottom: 12px; }
.card-avatar { width: 52px; height: 52px; border-radius: 50%; background: #e8e0d6; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; overflow: hidden; }
.card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-info h4 { font-size: 1rem; font-weight: 600; }
.beruf { font-size: 0.85rem; color: #666; }
.erfahrung { font-size: 0.8rem; color: #d4a84b; font-weight: 500; margin-top: 2px; }
.card-stars { color: #d4a84b; font-size: 0.8rem; margin: 6px 0; }
.card-availability { font-size: 0.78rem; color: #2a8a3a; background: #e8f5e8; display: inline-block; padding: 3px 10px; border-radius: 100px; }
.card-actions { margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.btn-card { padding: 9px 14px; border-radius: 6px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; border: none; text-decoration: none; }
.btn-call { background: #e8822a; color: white; flex: 1; justify-content: center; }
.btn-call:hover { background: #d4731f; }
.btn-chat { background: #f0ece6; color: #555; }
.btn-chat:hover { background: #e5dfd6; }
.btn-profile { color: #888; font-size: 0.8rem; cursor: pointer; }
.btn-profile:hover { color: #555; }

/* ─── HERO ─── */
.hero-banner { background: linear-gradient(135deg, #1a1a1a, #2d2520); color: white; border-radius: 12px; padding: 30px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.hero-banner h2 { font-size: 1.3rem; margin-bottom: 8px; }
.hero-banner h2 span { color: #d4a84b; }
.hero-banner p { font-size: 0.9rem; color: rgba(255,255,255,0.7); max-width: 400px; }
.btn-hero { background: #e8822a; color: white; padding: 10px 28px; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; white-space: nowrap; }
.btn-hero:hover { background: #d4731f; }

/* ─── PRICING ─── */
.pricing-section { background: #f0ece6; padding: 24px 20px; width: 100%; margin-top: 40px; }
.pricing-box { max-width: 600px; margin: 0 auto; background: transparent; border: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.pricing-item { text-align: center; }
.pricing-item .icon { font-size: 1.1rem; margin-bottom: 3px; }
.pricing-item .role { font-size: 0.65rem; color: #a09888; letter-spacing: 1px; text-transform: uppercase; }
.pricing-item .amount { font-size: 1.2rem; font-weight: 700; color: #1a1a1a; margin: 2px 0; }
.pricing-item .amount span { font-size: 0.7rem; font-weight: 400; color: #999; }
.pricing-item .justification { font-size: 0.68rem; color: #888; line-height: 1.3; }
.pricing-total { text-align: center; margin-top: 8px; font-size: 0.78rem; color: #999; border-top: 1px solid #ddd; padding-top: 8px; padding-bottom: 10px; }
.pricing-total strong { color: #555; }

/* ─── AUTH ─── */
.auth-overlay { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(245,243,239,0.95); overflow-y: auto; padding: 40px 20px; }
.auth-overlay.visible { display: flex; justify-content: center; align-items: flex-start; padding-top: 10vh; }
.auth-container { max-width: 440px; width: 100%; padding: 40px; background: white; border-radius: 12px; border: 1px solid #e0d8ce; }
.auth-container h2 { margin-bottom: 8px; }
.auth-container p { color: #888; margin-bottom: 24px; font-size: 0.9rem; }
.role-selector { display: flex; gap: 8px; margin-bottom: 20px; }
.role-btn { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 6px; background: white; cursor: pointer; text-align: center; font-size: 0.85rem; transition: all .2s; }
.role-btn:hover { border-color: #d4a84b; }
.role-btn.active { background: #d4a84b; color: #1a1a1a; border-color: #d4a84b; font-weight: 600; }
.auth-container input, .auth-container select, .auth-container textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 12px; font-size: 0.9rem; }
.auth-container input:focus, .auth-container select:focus { border-color: #d4a84b; outline: none; }
.btn-auth { width: 100%; padding: 14px; background: #1a1a1a; color: white; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; margin-bottom: 12px; }
.btn-auth:hover { background: #333; }
.switch-auth { text-align: center; font-size: 0.85rem; color: #888; }
.switch-auth a { color: #d4a84b; cursor: pointer; text-decoration: underline; }

/* ─── DASHBOARD ─── */
.dashboard { display: none; max-width: 1000px; margin: 0 auto; padding: 100px 20px 40px; }
.dashboard.visible { display: block; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.dash-card { background: white; border-radius: 10px; border: 1px solid #e0d8ce; padding: 24px; }
.dash-card .label { font-size: 0.75rem; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.dash-card .value { font-size: 2rem; font-weight: 700; margin: 8px 0; }
.dash-card .sub { font-size: 0.85rem; color: #888; }
.dash-card .dash-icon { font-size: 2rem; margin-bottom: 8px; }
.dash-table { width: 100%; background: white; border-radius: 10px; border: 1px solid #e0d8ce; overflow: hidden; }
.dash-table th { background: #f5f3ef; text-align: left; padding: 12px 16px; font-size: 0.8rem; color: #666; text-transform: uppercase; }
.dash-table td { padding: 12px 16px; border-top: 1px solid #f0ece6; font-size: 0.88rem; }
.dash-table tr:hover td { background: #faf8f5; }

/* ─── ABOUT ─── */
.about-content { max-width: 800px; margin: 0 auto; padding: 120px 20px 60px; }
.about-content h1 { font-size: 2.2rem; margin-bottom: 8px; }
.about-subtitle { color: #888; font-size: 1.1rem; margin-bottom: 40px; }
.about-story { background: white; border-radius: 12px; border: 1px solid #e0d8ce; padding: 32px; margin-bottom: 32px; }
.about-story h2 { font-size: 1.4rem; margin-bottom: 16px; color: #d4a84b; }
.about-story p { font-size: 1.05rem; line-height: 1.7; color: #444; margin-bottom: 16px; }
.about-values { margin-bottom: 40px; }
.about-values h2 { font-size: 1.4rem; margin-bottom: 20px; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value-card { background: white; border-radius: 12px; border: 1px solid #e0d8ce; padding: 24px; text-align: center; }
.value-card .value-icon { font-size: 2.5rem; margin-bottom: 12px; }
.value-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: #666; line-height: 1.5; }
.about-cta { background: linear-gradient(135deg, #1a1a1a, #2d2520); color: white; border-radius: 12px; padding: 40px; text-align: center; }
.about-cta h2 { font-size: 1.5rem; margin-bottom: 12px; color: #d4a84b; }
.about-cta p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.about-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.about-buttons .btn-hero { font-size: 1rem; }
.about-buttons .btn-secondary { background: transparent; border: 2px solid #d4a84b; color: #d4a84b; }
.about-buttons .btn-secondary:hover { background: #d4a84b; color: #1a1a1a; }
@media (max-width: 600px) {
    .values-grid { grid-template-columns: 1fr; }
}

/* ─── UTILS ─── */
.loading { text-align: center; padding: 60px; color: #999; }
.error { color: #c0392b; font-size: 0.9rem; margin-bottom: 12px; }
.success { color: #2a8a3a; font-size: 0.9rem; margin-bottom: 12px; }
footer { background: #1a1a1a; color: rgba(255,255,255,0.6); padding: 30px 20px; text-align: center; font-size: 0.82rem; }
footer strong { color: #d4a84b; }
footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-links { margin-top: 12px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .sidebar { display: none !important; }
    .main { flex-direction: column; }
    .hero-banner { flex-direction: column; text-align: center; }
    .content-header { flex-direction: column; align-items: flex-start; }
    .pricing-box { grid-template-columns: 1fr; }
    .auth-container { margin: 20px; padding: 24px; }
    .topbar nav { gap: 8px; }
    .topbar nav .btn-nav-opa, .topbar nav .btn-nav-client { font-size: 0.75rem; padding: 6px 12px; }
}
