/* LokalFlow – lightweight, modern, ~8KB */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --surface: rgba(255,255,255,.04);
  --surface-hover: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.08);
  --text: #f0f0f5;
  --text-muted: rgba(240,240,245,.55);
  --accent: #7c6cf0;
  --accent-2: #4ecdc4;
  --accent-3: #ff6b9d;
  --radius: 16px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Animated Background ── */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
  will-change: transform;
}

.orb-1 {
  width: 55vw;
  height: 55vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -15%;
  left: -10%;
  animation: float1 18s ease-in-out infinite;
}

.orb-2 {
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation: float2 22s ease-in-out infinite;
}

.orb-3 {
  width: 30vw;
  height: 30vw;
  max-width: 350px;
  max-height: 350px;
  background: radial-gradient(circle, var(--accent-3) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation: float3 15s ease-in-out infinite;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8vw, 6vh) scale(1.05); }
  66% { transform: translate(-4vw, 10vh) scale(.95); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10vw, -8vh) scale(1.08); }
}

@keyframes float3 {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -12vh) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}

/* ── Layout ── */
.header, .hero, .page, .footer {
  position: relative;
  z-index: 1;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.02em;
}

.logo-icon { color: var(--accent); font-size: 1.3rem; }

.nav { display: flex; align-items: center; }

/* ── Portal Nav (Kunden / Geschäfte) ── */
.nav-portals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.nav-portal {
  text-align: center;
  padding: 0 1.5rem;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-portal-title {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: .4rem;
  background: linear-gradient(135deg, #b8e0ff 0%, #ffffff 45%, #6eb5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
  white-space: nowrap;
}

.nav-portal-active .nav-portal-title {
  background: linear-gradient(135deg, #7ec8ff 0%, #ffffff 50%, #4da3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-portal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .85rem;
}

.nav-portal-links a {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: .15rem .25rem;
  transition: color .2s;
  white-space: nowrap;
}

.nav-portal-links a:hover {
  color: #b8e0ff;
}

.nav-link-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: .15rem .25rem;
  transition: color .2s;
}

.nav-link-btn:hover {
  color: #b8e0ff;
}

.nav-divider {
  width: 1px;
  height: 2.75rem;
  flex-shrink: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(168, 224, 255, .35) 20%,
    rgba(255, 255, 255, .25) 50%,
    rgba(168, 224, 255, .35) 80%,
    transparent
  );
}

/* ── Hero (Landing) ── */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 140px);
  padding: 2rem 1.5rem;
}

.hero-content {
  max-width: 720px;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(78,205,196,.1);
  border: 1px solid rgba(78,205,196,.2);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.badge-kunden { color: var(--accent-2); background: rgba(78,205,196,.1); border-color: rgba(78,205,196,.2); }
.badge-geschaefte { color: var(--accent); background: rgba(124,108,240,.1); border-color: rgba(124,108,240,.2); }

h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc, .page-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* ── Portal Cards ── */
.portal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  text-align: left;
}

.portal-card {
  display: block;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .25s, border-color .25s, background .25s;
}

.portal-card:hover {
  transform: translateY(-4px);
  background: var(--surface-hover);
  border-color: rgba(255,255,255,.15);
}

.card-icon { font-size: 2rem; margin-bottom: .75rem; }

.portal-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.portal-card p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}

.card-cta {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-2);
}

.portal-geschaefte .card-cta { color: var(--accent); }

/* ── Page Layout ── */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.page-hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
}

.section-title {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Search ── */
.search-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1.25rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
}

.search-icon { color: var(--text-muted); flex-shrink: 0; }

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: .95rem;
}

.search-bar input::placeholder { color: var(--text-muted); }

/* ── Categories ── */
.categories { margin-bottom: 2.5rem; }

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.category-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font: inherit;
  font-size: .85rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}

.category-chip:hover,
.category-chip.active {
  color: var(--text);
  background: var(--surface-hover);
  border-color: rgba(124,108,240,.4);
}

.category-chip.active {
  background: rgba(124,108,240,.15);
  color: var(--accent);
}

/* ── Listings ── */
.listing-grid {
  display: grid;
  gap: .75rem;
}

.listing-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  transition: border-color .2s, background .2s;
  cursor: pointer;
}

.listing-card:hover:not(.placeholder) {
  border-color: rgba(255,255,255,.15);
  background: var(--surface-hover);
}

.listing-card.placeholder { opacity: .5; cursor: default; }

.listing-img {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 12px;
  background: hsl(var(--hue, 200), 50%, 20%);
  flex-shrink: 0;
}

.listing-info h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .15rem;
}

.listing-meta {
  font-size: .8rem;
  color: var(--text-muted);
}

.listing-status {
  font-size: .75rem;
  font-weight: 600;
  margin-top: .2rem;
}

.listing-status.open { color: var(--accent-2); }
.listing-status.soon { color: var(--text-muted); }

.coming-soon {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1rem;
  color: var(--text-muted);
  font-size: .85rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* ── Dashboard (Geschäfte) ── */
.dashboard-preview { margin-bottom: 3rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  text-align: center;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.dash-panel {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.dash-panel h3 {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.order-list { list-style: none; }

.order-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .5rem;
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
}

.order-item:last-child { border-bottom: none; }

.order-id {
  font-weight: 700;
  color: var(--accent);
  font-size: .75rem;
}

.order-detail { color: var(--text-muted); }

.order-time {
  font-size: .7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.action-btn {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: .78rem;
  padding: .65rem .5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.action-btn:hover {
  border-color: rgba(124,108,240,.4);
  background: rgba(124,108,240,.1);
}

/* ── Features ── */
.features { margin-bottom: 2.5rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
}

.feature-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.feature-icon { font-size: 1.5rem; display: block; margin-bottom: .5rem; }

.feature-card h3 {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.feature-card p {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── CTA ── */
.cta-block {
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-block p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: .9rem;
}

.btn-primary {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #9b8aff);
  border: none;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}

.btn-primary:hover { opacity: .9; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
}

.btn-block { display: block; width: 100%; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font: inherit;
  font-size: .8rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.2);
}

.hidden { display: none !important; }

/* ── Module Selection ── */
.module-section { margin-bottom: 2rem; }

.module-section .btn-block { margin-top: 1.25rem; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem;
}

.module-card {
  text-align: left;
  padding: 1.5rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color .25s, background .25s, transform .25s;
}

.module-card:hover {
  background: var(--surface-hover);
  border-color: rgba(124,108,240,.3);
}

.module-card.selected {
  border-color: var(--accent);
  background: rgba(124,108,240,.12);
  transform: translateY(-2px);
}

.module-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: .6rem;
}

.module-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.module-card p {
  font-size: .82rem;
  color: var(--text-muted);
}

.auth-section {
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.auth-hint {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}

.auth-hint strong { color: var(--accent); }

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  max-width: 320px;
  margin: 0 auto;
}

/* ── Auth Forms ── */
.page-narrow { max-width: 520px; }

.auth-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.form-section {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.form-section legend {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .35rem;
}

.label-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: .78rem;
}

.form-group input {
  width: 100%;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  padding: .7rem .9rem;
  outline: none;
  transition: border-color .2s;
}

.form-group input:focus {
  border-color: rgba(124,108,240,.5);
}

.form-group input::placeholder { color: rgba(240,240,245,.3); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.form-error {
  color: #ff6b9d;
  font-size: .82rem;
  margin-bottom: 1rem;
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .85rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

/* ── Dashboard Empty ── */
.header-dashboard {
  flex-wrap: wrap;
  gap: .75rem;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.module-tag {
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: rgba(124,108,240,.15);
  border: 1px solid rgba(124,108,240,.3);
  color: var(--accent);
  white-space: nowrap;
}

.business-name {
  font-size: .85rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 160px);
}

.empty-state {
  text-align: center;
  max-width: 480px;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: .8;
}

.empty-placeholder {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .85rem;
  background: var(--surface);
}

/* ── Homepage Info Placeholder ── */
.info-placeholder {
  margin-top: 2.5rem;
  padding: 3rem 2rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .9rem;
  background: var(--surface);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Auth extras ── */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-row input { accent-color: var(--accent); width: auto; }

.link-muted {
  color: var(--text-muted) !important;
  font-weight: 400 !important;
  font-size: .82rem;
}

.form-success {
  text-align: center;
  color: var(--accent-2);
  font-size: .85rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(78,205,196,.08);
  border-radius: var(--radius-sm);
}

/* ── Dashboard ── */
.dash-hero { text-align: center; margin-bottom: 2rem; }
.dash-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .5rem; }

.dash-section { margin-bottom: 2rem; }

.dash-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
}

.dash-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.25rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  transition: border-color .2s, transform .2s, background .2s;
}

.dash-action-card:hover {
  border-color: rgba(124,108,240,.4);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.dash-action-highlight {
  border-color: rgba(124,108,240,.3);
  background: rgba(124,108,240,.08);
}

.dash-action-icon { font-size: 1.75rem; }

/* ── Hamburger & Drawer ── */
.btn-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.btn-menu span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: background .2s;
}

.btn-menu:hover span { background: var(--accent-2); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.drawer-overlay.open { opacity: 1; visibility: visible; }

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(360px, 90vw);
  height: 100dvh;
  background: rgba(12,12,18,.97);
  border-right: 1px solid var(--border);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
}

.side-drawer.open { transform: translateX(0); }

.drawer-head h2 { font-size: 1.1rem; margin-bottom: .25rem; }
.drawer-sub { font-size: .8rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.drawer-form { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }

.employee-list { display: flex; flex-direction: column; gap: .75rem; }

.employee-item {
  padding: .85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.employee-item-head {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  margin-bottom: .25rem;
}

.employee-item-head strong { color: var(--accent); font-size: .78rem; }
.employee-meta { font-size: .75rem; color: var(--text-muted); margin-bottom: .5rem; }

.employee-edit {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: .5rem 0;
}

.employee-edit input {
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: .82rem;
  padding: .5rem .7rem;
}

.btn-sm {
  font: inherit;
  font-size: .75rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.btn-icon {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .75rem;
}

.btn-icon:disabled { opacity: .3; cursor: default; }

.empty-hint {
  color: var(--text-muted);
  font-size: .82rem;
  text-align: center;
  padding: 1rem;
}

/* ── Products ── */
.product-list-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.product-row:last-child { border-bottom: none; }
.product-row.inactive { opacity: .45; }

.product-drag { display: flex; gap: .25rem; }
.product-name { font-size: .9rem; font-weight: 500; }
.product-price { font-size: .82rem; color: var(--text-muted); }

/* ── Profile Design ── */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.profile-preview-panel,
.profile-edit-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.profile-preview {
  min-height: 280px;
  background: rgba(0,0,0,.2);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.preview-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.preview-icon { font-size: 2.5rem; }
.preview-header h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.preview-header p { font-size: .82rem; color: var(--text-muted); }

.preview-product {
  display: flex;
  justify-content: space-between;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}

.preview-product:last-child { border-bottom: none; }

.subsection-title {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 1rem 0 .75rem;
}

/* ── Footer switch ── */
.footer-switch {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-switch-link {
  color: var(--accent-2);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
}

.footer-switch-link:hover { text-decoration: underline; }

.header-dashboard .btn-menu { order: -1; }

/* ── Katalog ── */
.catalog-page .page { max-width: 1100px; }

.catalog-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.catalog-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.catalog-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.catalog-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.catalog-panel-head h2 {
  font-size: .95rem;
  font-weight: 700;
}

.panel-sub {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .2rem;
}

.catalog-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(124,108,240,.2);
  color: var(--accent);
}

.catalog-add-form {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cat-icon-input { max-width: 4rem; text-align: center; }

.btn-sm-block {
  font-size: .8rem;
  padding: .55rem 1rem;
}

.btn-sm { font-size: .78rem; padding: .45rem .9rem; }

.category-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  max-height: 420px;
  overflow-y: auto;
}

.cat-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color .2s, background .2s;
}

.cat-item.active {
  border-color: rgba(124,108,240,.45);
  background: rgba(124,108,240,.1);
}

.cat-item-select {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: .85rem;
  padding: .55rem .6rem;
  cursor: pointer;
  text-align: left;
}

.cat-item-icon { font-size: 1.1rem; }
.cat-item-name { flex: 1; font-weight: 600; }
.cat-item-count {
  font-size: .7rem;
  color: var(--text-muted);
  background: var(--surface-hover);
  padding: .1rem .45rem;
  border-radius: 999px;
}

.cat-item-actions {
  display: flex;
  gap: .15rem;
  padding-right: .25rem;
}

.btn-icon-danger { color: #ff6b9d !important; }

.catalog-input,
.catalog-select {
  width: 100%;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: .85rem;
  padding: .6rem .75rem;
  outline: none;
  transition: border-color .2s;
}

.catalog-input:focus,
.catalog-select:focus {
  border-color: rgba(124,108,240,.5);
}

.product-cards {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.prod-card {
  background: rgba(0,0,0,.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  transition: opacity .2s;
}

.prod-card.inactive { opacity: .5; }

.prod-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem;
  align-items: start;
  margin-bottom: .75rem;
}

.prod-move { display: flex; flex-direction: column; gap: .2rem; }

.prod-fields { display: flex; flex-direction: column; gap: .4rem; }

.prod-price-row {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.prod-price-row .catalog-input { max-width: 120px; }

.price-suffix {
  color: var(--text-muted);
  font-size: .85rem;
}

.prod-actions {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.prod-images {
  border-top: 1px solid var(--border);
  padding-top: .75rem;
}

.prod-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .6rem;
}

.prod-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-thumb-kb {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: .55rem;
  text-align: center;
  background: rgba(0,0,0,.7);
  color: var(--accent-2);
  padding: 1px 0;
}

.prod-thumb-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: rgba(255,107,157,.9);
  color: #fff;
  font-size: .65rem;
  cursor: pointer;
  line-height: 1;
}

.prod-upload {
  display: block;
  padding: .65rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.prod-upload:hover { border-color: var(--accent); color: var(--text); }
.prod-upload.disabled { opacity: .4; pointer-events: none; }
.prod-upload input { display: none; }

/* Angebot der Woche */
.catalog-offer {
  margin-bottom: 2rem;
  border-color: rgba(255,200,80,.2);
  background: rgba(255,200,80,.04);
}

.toggle-switch {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.toggle-switch input { accent-color: #ffc850; width: auto; }

.offer-add-row {
  display: grid;
  grid-template-columns: 1fr 1fr 120px auto;
  gap: .5rem;
  margin-bottom: 1rem;
}

.offer-list { display: flex; flex-direction: column; gap: .5rem; }

.offer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.offer-item-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
}

.offer-item-cat {
  font-size: .72rem;
  color: var(--text-muted);
  background: var(--surface-hover);
  padding: .15rem .5rem;
  border-radius: 999px;
}

.offer-price-old { color: var(--text-muted); text-decoration: line-through; font-size: .8rem; }
.offer-arrow { color: var(--accent-2); }
.offer-price-input { max-width: 90px; padding: .35rem .5rem !important; }

.offer-item-actions { display: flex; gap: .2rem; }

.preview-offer {
  margin-bottom: 1rem;
  padding: .75rem;
  background: rgba(255,200,80,.08);
  border: 1px solid rgba(255,200,80,.2);
  border-radius: var(--radius-sm);
}

.preview-offer strong { display: block; margin-bottom: .5rem; font-size: .85rem; color: #ffc850; }

.preview-product.offer s { color: var(--text-muted); margin-right: .35rem; }

.preview-prod-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: .5rem;
  vertical-align: middle;
}

.preview-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: .75rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .stat-row { gap: .5rem; }
  .stat-num { font-size: 1.4rem; }
  .nav-portal { padding: 0 .75rem; }
  .nav-portal-title { font-size: .95rem; }
  .nav-portal-links { gap: .5rem; }
  .nav-portal-links a { font-size: .72rem; }
  .nav-divider { height: 2.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .header-meta { justify-content: flex-start; order: 3; width: 100%; }
  .profile-layout { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: auto 1fr; }
  .product-price { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .offer-add-row { grid-template-columns: 1fr; }
  .prod-card-head { grid-template-columns: 1fr; }
  .prod-move { flex-direction: row; }
}
