@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #5c6b52; --primary-hover: #47543f; --text: #2a251e; --muted: #6e6758;
    --border: #ddd5c3; --bg: #f4efe6; --white: #fcfaf5; --danger: #a85444; --success: #5c6b52;
    --primary-soft: #ecefe6;
    --radius: 12px; --shadow: 0 3px 12px -4px rgba(42, 37, 30, 0.12);
}
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f4efe6; color: var(--text); margin: 0; line-height: 1.5; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

/* Widget */
.booking-widget { display: flex; background: var(--white); width: 1000px; max-width: 95%; min-height: 600px; margin: 20px auto; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--border); }
.widget-sidebar { width: 280px; background: var(--bg); padding: 30px; border-right: 1px solid var(--border); flex-shrink: 0; }
.widget-sidebar h2 { margin: 0 0 5px; font-size: 1.3rem; }
.widget-sidebar hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
#summary-services { padding-left: 20px; color: var(--muted); font-size: 0.9rem; }
.widget-content { flex: 1; padding: 30px; overflow-y: auto; }
.step { display: none; }
.step.active { display: block; }
.step h3 { margin: 0 0 20px; font-size: 1.3rem; }

/* Services */
.service-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.service-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: all 0.15s; display: flex; justify-content: space-between; align-items: center; background: var(--white); }
.service-card:hover { border-color: var(--primary); }
.service-card.selected { border-color: var(--primary); background: var(--primary-soft); }
.service-card .price { font-weight: bold; color: var(--primary); font-size: 1.1rem; white-space: nowrap; }
.service-card .name { font-weight: 600; }
.service-card .meta { font-size: 0.8rem; color: var(--muted); }

/* Calendar */
.calendly-layout { display: flex; gap: 30px; }
.calendar-wrapper { flex: 2; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.calendar-header button { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--primary); padding: 4px 8px; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; font-weight: bold; background: var(--primary-soft); color: var(--primary); font-size: 0.9rem; }
.cal-day:hover { background: var(--primary); color: var(--white); }
.cal-day.selected { background: var(--primary); color: var(--white); }
.cal-day.disabled { background: none; cursor: default; color: #c9c0af; }
.time-slots { flex: 1; border-left: 1px solid var(--border); padding-left: 20px; min-height: 200px; }
.time-slot { display: block; width: 100%; padding: 10px; margin-bottom: 8px; border: 1px solid var(--primary); color: var(--primary); background: var(--white); border-radius: var(--radius); cursor: pointer; text-align: center; font-weight: bold; font-size: 0.9rem; }
.time-slot:hover, .time-slot.selected { background: var(--primary); color: var(--white); }

/* Form */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 0.9rem; }
.input-field { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; background: var(--white); color: var(--text); }
textarea.input-field { resize: vertical; min-height: 60px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 20px; border: none; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; line-height: 1.2; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { background: #b3ac9c; cursor: not-allowed; }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #eae3d5; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #8f4638; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Großes, leicht zu bedienendes UI */
.big-btn { padding: 18px 24px; font-size: 1.15rem; line-height: 1.35; margin-top: 12px; }
.big-btn:first-of-type { margin-top: 0; }
.helper-text { font-size: 0.95rem; color: var(--muted); margin: 4px 0 16px; }
.choice-note { background: var(--primary-soft); border: 1px solid #ccd4c0; border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; font-size: 0.95rem; }
.choice-note a { color: var(--primary); }
.form-error { color: var(--danger); font-size: 0.95rem; margin: 10px 0 0; min-height: 1.2em; }
.welcome-line { font-size: 1.1rem; font-weight: 600; margin: 0 0 4px; }

/* Cards */
.card { background: var(--white); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; border: 1px solid var(--border); }
.card h4 { margin: 0 0 8px; }
.card p { margin: 4px 0; font-size: 0.9rem; color: var(--muted); }

/* Badge */
.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: bold; }
.badge-neu, .badge-open, .badge-matched { background: #e4e9db; color: #4a5742; }
.badge-bearbeitung, .badge-accepted, .badge-in_progress { background: #efe4c7; color: #8a6a2f; }
.badge-erledigt, .badge-completed { background: #e1e7d4; color: #51603e; }
.badge-storniert, .badge-cancelled { background: #f3ded5; color: #a85444; }

/* Admin */
.admin-container { width: 1100px; max-width: 95%; margin: 0 auto; padding: 20px 0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.tab-btn { padding: 10px 20px; border: none; background: none; font-size: 0.95rem; cursor: pointer; font-weight: 600; color: var(--muted); }
.tab-btn.active { color: var(--primary); border-bottom: 2px solid var(--primary); margin-bottom: -2px; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.kanban-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.kanban-column { background: #eae3d5; border-radius: var(--radius); padding: 12px; min-height: 400px; }
.kanban-cards { min-height: 360px; }
.kanban-header { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 12px; }
.kanban-card { background: var(--white); padding: 12px; border-radius: 10px; box-shadow: var(--shadow); cursor: grab; margin-bottom: 8px; border: 1px solid var(--border); }
.kanban-card:active { cursor: grabbing; }
.kanban-card h4 { margin: 0 0 6px; font-size: 0.95rem; }
.kanban-card p { margin: 2px 0; font-size: 0.8rem; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.skills-container { display: flex; flex-direction: column; gap: 4px; background: var(--bg); padding: 10px; border-radius: 6px; border: 1px solid var(--border); max-height: 150px; overflow-y: auto; }

/* Employee */
.emp-header { background: #2a251e; color: var(--white); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.emp-header h2 { margin: 0; font-size: 1.1rem; }
.emp-header .emp-info { font-size: 0.85rem; opacity: 0.8; }
.emp-container { max-width: 700px; margin: 0 auto; padding: 16px; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(42, 37, 30, 0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--white); padding: 24px; border-radius: var(--radius); width: 450px; max-width: 90%; max-height: 85vh; overflow-y: auto; border: 1px solid var(--border); }
.modal-close { float: right; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }

/* Utility */
.success-icon { font-size: 3rem; text-align: center; margin-bottom: 10px; color: var(--success); }

/* Responsive */
@media (max-width: 768px) {
    .booking-widget { flex-direction: column; min-height: auto; }
    .widget-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 16px; }
    .widget-content { padding: 16px; }
    .calendly-layout { flex-direction: column; }
    .time-slots { border-left: none; padding-left: 0; }
    .kanban-board { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .emp-header { flex-direction: column; gap: 8px; }
}