/* ==================================================================
   Henkelmann Kundenportal – Styles
   ================================================================== */

:root {
  --maroon-900: #4a1119;
  --maroon-800: #631723;
  --maroon-700: #7a1f2b;
  --maroon-600: #922733;
  --maroon-100: #f6e6e6;
  --gold-500: #c99a3a;
  --gold-400: #dbb35d;
  --gold-100: #fbf1dc;
  --cream-50: #faf6f0;
  --cream-100: #f2ead9;
  --ink-900: #241d1a;
  --ink-700: #453a34;
  --ink-500: #6f6259;
  --ink-300: #a99d92;
  --ink-200: #d9d0c4;
  --line: #e6dcca;
  --white: #ffffff;
  --green-600: #3d7a4c;
  --green-100: #e5f2e7;
  --amber-600: #b9760c;
  --amber-100: #fbedd3;
  --blue-600: #2f6fa8;
  --blue-100: #e4eef7;
  --red-600: #b13a3a;
  --red-100: #f8e6e6;
  --shadow-sm: 0 1px 2px rgba(36, 29, 26, 0.06), 0 1px 1px rgba(36, 29, 26, 0.04);
  --shadow-md: 0 6px 20px rgba(74, 17, 25, 0.08), 0 2px 6px rgba(74, 17, 25, 0.06);
  --shadow-lg: 0 20px 50px rgba(74, 17, 25, 0.18), 0 6px 16px rgba(74, 17, 25, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream-50);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
svg { display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1px solid transparent;
  padding: 12px 22px; font-size: 14.5px; font-weight: 600;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-block { width: 100%; }
.btn-primary { background: var(--maroon-700); color: var(--gold-100); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--maroon-800); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--gold-100); color: var(--maroon-800); border-color: var(--gold-400); }
.btn-secondary:hover { background: var(--gold-400); color: var(--maroon-900); }
.btn-ghost { background: transparent; color: var(--ink-700); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream-100); }
.btn-danger { background: var(--red-100); color: var(--red-600); }
.btn-danger:hover { background: var(--red-600); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); display: flex; align-items: center; justify-content: center;
  color: var(--ink-700); position: relative; flex-shrink: 0;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--cream-100); }

/* ---------------- Login screen ---------------- */
.login-screen {
  min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr;
}
.login-visual {
  background: radial-gradient(120% 120% at 15% 10%, var(--maroon-600), var(--maroon-900) 70%);
  color: var(--gold-100); display: flex; align-items: center; padding: 64px;
  position: relative; overflow: hidden;
}
.login-visual::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.login-visual-inner { max-width: 480px; position: relative; z-index: 1; }
.brand-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .3px; }
.brand-mark-icon { width: 34px; height: 34px; color: var(--gold-400); }
.brand-mark-icon.small { width: 26px; height: 26px; }
.login-visual h1 { font-family: var(--font-display); font-size: 38px; line-height: 1.2; margin: 0 0 18px; font-weight: 600; }
.login-visual p { font-size: 15.5px; line-height: 1.6; color: var(--gold-100); opacity: .88; margin: 0 0 28px; }
.login-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.login-features li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.login-features svg { width: 18px; height: 18px; color: var(--gold-400); flex-shrink: 0; }

.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--cream-50); }
.login-form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.login-form h2 { font-family: var(--font-display); font-size: 28px; margin: 0 0 2px; color: var(--maroon-800); }
.login-sub { margin: 0 0 10px; color: var(--ink-500); font-size: 14px; }
.login-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-700); }
.login-form input {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 15px; background: var(--white); color: var(--ink-900); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login-form input:focus { border-color: var(--maroon-600); box-shadow: 0 0 0 3px var(--maroon-100); }
.login-hint { font-size: 12.5px; color: var(--ink-500); text-align: center; margin: 4px 0 0; }
.login-form .btn-primary { margin-top: 6px; }

/* ---------------- App shell ---------------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex-shrink: 0; background: var(--maroon-900); color: var(--gold-100);
  display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; font-weight: 700; padding: 6px 10px 26px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 500; color: rgba(251, 241, 220, .78); transition: background .15s ease, color .15s ease;
}
.sidebar-nav a svg { width: 18px; height: 18px; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: var(--gold-100); }
.sidebar-nav a.active { background: var(--maroon-700); color: var(--gold-100); box-shadow: inset 0 0 0 1px rgba(219,179,93,.35); }
.sidebar-footer { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-footer .btn-ghost { color: rgba(251,241,220,.8); border-color: rgba(255,255,255,.16); }
.sidebar-footer .btn-ghost:hover { background: rgba(255,255,255,.08); }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 16px 32px;
  background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}
.topbar-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--maroon-800); flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.topbar-customer { text-align: right; line-height: 1.3; }
.topbar-customer-name { font-size: 13.5px; font-weight: 700; color: var(--ink-900); }
.topbar-customer-sub { font-size: 12px; color: var(--ink-500); }
.cart-btn { background: var(--maroon-700); color: var(--gold-100); border-color: var(--maroon-700); }
.cart-btn:hover { background: var(--maroon-800); }
.cart-badge {
  position: absolute; top: -4px; right: -4px; background: var(--gold-500); color: var(--maroon-900);
  font-size: 10.5px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--white);
}
.only-mobile { display: none; }

.content { flex: 1; padding: 28px 32px 60px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ---------------- Dashboard ---------------- */
.welcome-banner {
  background: linear-gradient(120deg, var(--maroon-700), var(--maroon-900));
  color: var(--gold-100); border-radius: var(--radius-lg); padding: 30px 34px; margin-bottom: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.welcome-banner h2 { font-family: var(--font-display); font-size: 25px; margin: 0 0 6px; }
.welcome-banner p { margin: 0; opacity: .85; font-size: 14.5px; max-width: 460px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm);
}
.stat-card .stat-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat-card .stat-icon svg { width: 18px; height: 18px; }
.stat-card .stat-value { font-size: 26px; font-weight: 800; color: var(--ink-900); }
.stat-card .stat-label { font-size: 13px; color: var(--ink-500); font-weight: 600; }
.stat-icon.maroon { background: var(--maroon-100); color: var(--maroon-700); }
.stat-icon.gold { background: var(--gold-100); color: var(--gold-500); }
.stat-icon.green { background: var(--green-100); color: var(--green-600); }
.stat-icon.blue { background: var(--blue-100); color: var(--blue-600); }

.dash-columns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm); }
.panel h3 { margin: 0 0 4px; font-size: 16.5px; font-family: var(--font-display); color: var(--maroon-800); }
.panel .panel-sub { margin: 0 0 16px; font-size: 13px; color: var(--ink-500); }
.panel + .panel { margin-top: 20px; }

.activity-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--cream-100); font-size: 13.5px; }
.activity-row:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.activity-text { flex: 1; color: var(--ink-700); }
.activity-time { color: var(--ink-300); font-size: 12px; white-space: nowrap; }

.fav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.empty-state { text-align: center; padding: 30px 10px; color: var(--ink-500); }
.empty-state svg { width: 40px; height: 40px; color: var(--ink-200); margin: 0 auto 10px; }
.empty-state p { margin: 4px 0 0; font-size: 13.5px; }

/* ---------------- Product grid ---------------- */
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 220px; max-width: 340px; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-300); }
.search-box input {
  width: 100%; padding: 11px 14px 11px 38px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); font-size: 14px; outline: none;
}
.search-box input:focus { border-color: var(--maroon-600); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-size: 13.5px; font-weight: 600; color: var(--ink-700); transition: all .15s ease;
}
.chip:hover { border-color: var(--maroon-600); }
.chip.active { background: var(--maroon-700); border-color: var(--maroon-700); color: var(--gold-100); }
.sort-select {
  margin-left: auto; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); font-size: 13.5px; font-weight: 600; color: var(--ink-700);
}

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; position: relative;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-media {
  height: 130px; background: linear-gradient(135deg, var(--cream-100), var(--gold-100));
  display: flex; align-items: center; justify-content: center; position: relative;
}
.product-media svg { width: 56px; height: 56px; color: var(--maroon-700); opacity: .82; }
.product-fav {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center;
  color: var(--ink-300); border: none; z-index: 2;
}
.product-fav svg { width: 16px; height: 16px; }
.product-fav.active { color: var(--gold-500); }
.product-fav.active svg { fill: var(--gold-500); }
.product-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 4px 8px; border-radius: 999px; }
.tag-bestseller { background: var(--gold-500); color: var(--maroon-900); }
.tag-neu { background: var(--blue-600); color: #fff; }
.tag-bio { background: var(--green-600); color: #fff; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--maroon-600); }
.product-name { font-size: 16px; font-weight: 700; color: var(--ink-900); margin: 0; line-height: 1.3; }
.product-desc { font-size: 13px; color: var(--ink-500); line-height: 1.45; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.product-price { font-size: 17px; font-weight: 800; color: var(--maroon-800); }
.product-price span { font-size: 12px; font-weight: 600; color: var(--ink-500); }
.product-add { width: 38px; height: 38px; border-radius: 50%; background: var(--maroon-700); color: var(--gold-100); border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.product-add:hover { background: var(--maroon-800); }
.product-add svg { width: 18px; height: 18px; }

/* ---------------- Modals / overlays ---------------- */
.overlay { position: fixed; inset: 0; background: rgba(36, 22, 20, .48); z-index: 40; backdrop-filter: blur(1px); animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--white); border-radius: var(--radius-lg); z-index: 50; width: 92%; max-width: 620px;
  max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .16s ease;
}
.modal-narrow { max-width: 440px; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 26px 0; gap: 12px; }
.modal-close { background: var(--cream-100); border: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-700); flex-shrink: 0; }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { padding: 18px 26px 26px; }
.modal-foot { padding: 0 26px 26px; display: flex; gap: 10px; }

/* Product modal specifics */
.pm-media { height: 190px; margin: 0 -26px; background: linear-gradient(135deg, var(--cream-100), var(--gold-100)); display: flex; align-items: center; justify-content: center; }
.pm-media svg { width: 88px; height: 88px; color: var(--maroon-700); opacity: .85; }
.pm-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--maroon-600); letter-spacing: .4px; }
.pm-name { font-family: var(--font-display); font-size: 24px; margin: 4px 0 10px; color: var(--ink-900); }
.pm-desc { color: var(--ink-500); font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; }
.pm-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 20px; }
.pm-meta-item dt { font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--ink-300); letter-spacing: .3px; margin-bottom: 3px; }
.pm-meta-item dd { margin: 0; font-size: 14px; color: var(--ink-900); font-weight: 600; }
.pm-qty-row { display: flex; align-items: center; justify-content: space-between; background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 18px; }
.qty-control { display: flex; align-items: center; gap: 14px; }
.qty-control button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--maroon-700); }
.qty-control button svg { width: 14px; height: 14px; }
.qty-control input { width: 46px; text-align: center; border: none; background: transparent; font-size: 16px; font-weight: 700; }
.pm-price { font-size: 20px; font-weight: 800; color: var(--maroon-800); }
.pm-price span { font-size: 12px; color: var(--ink-500); font-weight: 600; }

/* Cart drawer */
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 400px; max-width: 92vw;
  background: var(--white); z-index: 50; display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(74,17,25,.18); animation: slideIn .18s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-drawer-head h3 { margin: 0; font-family: var(--font-display); font-size: 19px; color: var(--maroon-800); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.cart-drawer-foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cart-total-row { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; color: var(--ink-700); }
.cart-total-row strong { font-size: 19px; color: var(--maroon-800); }
.cart-note { font-size: 11.5px; color: var(--ink-300); margin: -4px 0 4px; }

.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--cream-100); }
.cart-item-media { width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(135deg, var(--cream-100), var(--gold-100)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-item-media svg { width: 26px; height: 26px; color: var(--maroon-700); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13.5px; font-weight: 700; color: var(--ink-900); margin: 0 0 2px; }
.cart-item-unit { font-size: 11.5px; color: var(--ink-500); margin: 0 0 8px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.cart-item-qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--maroon-700); }
.cart-item-qty button svg { width: 11px; height: 11px; }
.cart-item-qty span { font-size: 13px; font-weight: 700; min-width: 18px; text-align: center; }
.cart-item-price { font-size: 13.5px; font-weight: 700; color: var(--maroon-800); }
.cart-item-remove { background: none; border: none; color: var(--ink-300); padding: 4px; }
.cart-item-remove svg { width: 15px; height: 15px; }
.cart-item-remove:hover { color: var(--red-600); }

/* Checkout form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--ink-700); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 14px;
  background: var(--cream-50); color: var(--ink-900); outline: none; resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--maroon-600); background: var(--white); }
.checkout-summary { background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 18px; font-size: 13.5px; }
.checkout-summary-row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-700); }
.checkout-summary-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-weight: 800; color: var(--maroon-800); font-size: 15px; }

/* Confirm modal */
.confirm-icon { width: 62px; height: 62px; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: flex; align-items: center; justify-content: center; margin: 8px auto 16px; }
.confirm-icon svg { width: 30px; height: 30px; }
.confirm-body { text-align: center; padding: 8px 26px 26px; }
.confirm-body h3 { font-family: var(--font-display); font-size: 21px; margin: 0 0 8px; color: var(--ink-900); }
.confirm-body p { color: var(--ink-500); font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.confirm-ref { display: inline-block; background: var(--cream-100); border: 1px dashed var(--gold-500); border-radius: var(--radius-sm); padding: 10px 20px; font-weight: 800; color: var(--maroon-800); letter-spacing: .5px; margin-bottom: 18px; }

/* ---------------- Lists (Anfragen / Aufträge) ---------------- */
.record-list { display: flex; flex-direction: column; gap: 14px; }
.record-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.record-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.record-title-group { display: flex; align-items: center; gap: 12px; }
.record-id { font-weight: 800; color: var(--maroon-800); font-size: 15px; }
.record-date { font-size: 12.5px; color: var(--ink-500); }
.status-badge { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; padding: 5px 12px; border-radius: 999px; }
.status-offen, .status-eingegangen { background: var(--amber-100); color: var(--amber-600); }
.status-beantwortet, .status-inproduktion { background: var(--blue-100); color: var(--blue-600); }
.status-angenommen, .status-versendet { background: var(--green-100); color: var(--green-600); }
.status-geliefert { background: var(--green-600); color: #fff; }
.status-abgelehnt { background: var(--red-100); color: var(--red-600); }
.record-items { font-size: 13px; color: var(--ink-700); margin: 8px 0; }
.record-items span.sep { color: var(--ink-300); margin: 0 5px; }
.record-foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-500); border-top: 1px solid var(--cream-100); padding-top: 12px; margin-top: 4px; }
.record-total { font-weight: 800; color: var(--maroon-800); }
.record-toggle { display: flex; align-items: center; gap: 4px; color: var(--maroon-700); font-weight: 700; font-size: 13px; background: none; border: none; }
.record-toggle svg { width: 14px; height: 14px; transition: transform .15s ease; }
.record-toggle.open svg { transform: rotate(90deg); }
.record-detail { display: none; padding-top: 12px; margin-top: 10px; border-top: 1px dashed var(--line); }
.record-detail.open { display: block; }
.record-detail-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; color: var(--ink-700); }

.timeline { display: flex; align-items: center; gap: 0; margin: 10px 0 4px; }
.timeline-step { flex: 1; text-align: center; position: relative; }
.timeline-step .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ink-200); margin: 0 auto 6px; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--ink-200); }
.timeline-step.done .dot { background: var(--green-600); box-shadow: 0 0 0 1px var(--green-600); }
.timeline-step.current .dot { background: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500); }
.timeline-step::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--ink-200); z-index: -1; }
.timeline-step:first-child::before { display: none; }
.timeline-step.done::before { background: var(--green-600); }
.timeline-label { font-size: 10.5px; color: var(--ink-500); font-weight: 600; }

/* ---------------- Profil ---------------- */
.profile-card { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.profile-avatar { width: 62px; height: 62px; border-radius: 50%; background: var(--maroon-700); color: var(--gold-100); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 24px; font-weight: 700; flex-shrink: 0; }
.profile-card h2 { margin: 0 0 2px; font-family: var(--font-display); font-size: 21px; color: var(--ink-900); }
.profile-card p { margin: 0; color: var(--ink-500); font-size: 13.5px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
.info-item dt { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--ink-300); margin-bottom: 4px; }
.info-item dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink-900); }

/* ---------------- Toasts ---------------- */
.toast-container { position: fixed; bottom: 22px; right: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  background: var(--ink-900); color: var(--cream-50); padding: 13px 18px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  animation: toastIn .18s ease; max-width: 320px;
}
.toast.success { background: var(--green-600); }
.toast.error { background: var(--red-600); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-columns { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .only-mobile { display: flex; }
  .topbar { padding: 14px 16px; }
  .content { padding: 20px 16px 50px; }
  .topbar-customer { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; max-width: 100%; }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
  .sort-select { margin-left: 0; }
}
