/* ==========================================================================
   Haargenau — Design-System (portiert aus dem Claude-Design-Bundle)
   ========================================================================== */
:root {
  --brand: #a8455f; --brand-hover: #913a50; --brand-press: #7c3044; --brand-soft: #f4eaec;
  --ink: #1e1b1a; --ink-soft: #2a2624;
  --canvas: #f7f5f2; --surface: #ffffff; --surface-2: #faf8f5; --hairline: #ebe7e1;
  --text-1: #211d1b; --text-2: #5d564f; --text-3: #948c83;
  --success: #4f7a5b; --success-soft: #eef3ef;
  --warn: #b07d2e; --warn-soft: #f7f1e5;
  --error: #b04a4a; --error-soft: #f6ecec;
  --info: #4a6b8a; --info-soft: #eef2f6;
  --shadow-rest: 0 1px 2px rgba(45,38,32,.05), 0 2px 8px rgba(45,38,32,.04);
  --shadow-raised: 0 8px 28px rgba(45,38,32,.09), 0 2px 6px rgba(45,38,32,.05);
  --shadow-pop: 0 16px 48px rgba(45,38,32,.16);
}
* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html, body { height: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--canvas); color: var(--text-1); margin: 0; font-feature-settings: "cv11","ss01"; }
:where(a,button,input,select,textarea,[tabindex]):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #d8d2c9; border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #c6bfb4; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; box-shadow: var(--shadow-rest); }
.card-pad { padding: 22px 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; line-height: 1; padding: 0 16px; height: 40px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .08s ease, box-shadow .15s ease; }
.btn:active { transform: scale(.975); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(124,48,68,.22); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { background: var(--brand-press); }
.btn-secondary { background: #fff; color: var(--text-1); border-color: var(--hairline); box-shadow: var(--shadow-rest); }
.btn-secondary:hover { background: var(--surface-2); border-color: #ddd6cc; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: #f0ece6; color: var(--text-1); }
.btn-danger { background: #fff; color: var(--error); border-color: #e6c9c9; }
.btn-danger:hover { background: var(--error-soft); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; line-height: 1; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .9; }
.pill-success { background: var(--success-soft); color: var(--success); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-error { background: var(--error-soft); color: var(--error); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-neutral { background: #efebe4; color: var(--text-2); }
.pill-brand { background: var(--brand-soft); color: var(--brand); }
.pill.no-dot::before { display: none; }

.label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.input, .select, .textarea { width: 100%; background: #fff; border: 1px solid var(--hairline); border-radius: 12px; padding: 0 14px; height: 42px; font-size: 14px; color: var(--text-1); transition: border-color .15s ease, box-shadow .15s ease; appearance: none; box-sizing: border-box; }
.textarea { padding: 11px 14px; height: auto; min-height: 90px; line-height: 1.5; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: #ddd6cc; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(168,69,95,.14); }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23948c83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }

.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl thead th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text-3); padding: 18px 16px 12px; border-bottom: 1px solid var(--hairline); }
.tbl tbody td { padding: 14px 16px; border-bottom: 1px solid var(--hairline); font-size: 14px; color: var(--text-1); vertical-align: middle; }
.tbl tbody tr { transition: background .12s ease; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 600; color: #fff; flex: none; }
.stylist-dot { width: 9px; height: 9px; border-radius: 999px; display: inline-block; flex: none; }

.nav-item { display: flex; align-items: center; gap: 11px; position: relative; padding: 9px 12px; border-radius: 11px; color: #9aa0b3; font-weight: 500; font-size: 14px; text-decoration: none; transition: background .15s ease, color .15s ease; }
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: rgba(255,255,255,.055); color: #e8eaf2; }
.nav-item.active { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; border-radius: 999px; background: var(--brand); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .4s cubic-bezier(.32,.72,0,1) both; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 256px; flex: none; }
.scrim { position: fixed; inset: 0; background: rgba(15,18,34,.4); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
@media (max-width: 1024px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; transform: translateX(-100%); transition: transform .26s cubic-bezier(.32,.72,0,1); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
}

/* ---- Kompatibilität: Klassen der bestehenden (noch nicht migrierten) Seiten ---- */
.btn-p { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(124,48,68,.22); }
.btn-p:hover { background: var(--brand-hover); }
.btn-g { background: #fff; color: var(--text-1); border-color: var(--hairline); box-shadow: var(--shadow-rest); }
.btn-g:hover { background: var(--surface-2); }
.badge { padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }

/* === Mobile / Responsive (Plattform) === */
@media (max-width: 760px) {
  main { padding: 18px 14px !important; }
  [style*="repeat(3,1fr)"], [style*="repeat(4,1fr)"], [style*="repeat(2,1fr)"],
  [style*="grid-template-columns:1fr 1fr"], [style*="1fr 320px"], [style*="1fr 1.5fr"],
  [style*="1fr 1.4fr"], [style*="1.6fr 1fr"], [style*="1.4fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .card-pad { padding: 18px !important; }
}

@media (max-width:560px){ .hide-sm{ display:none !important; } }
