/* ============================================================
   LISTOMAT DESIGN SYSTEM
   Geteilt zwischen index.html, dashboard.html, listing.html, ebay.html
   Mobile-first; Breakpoints bei 640px, 900px, 1100px.
   ============================================================ */

:root {
  /* Palette A — Warm minimal (petrol + cream + fresh green) */
  --bg: #f6f2ea;
  --surface: #fffdf8;
  --ink: #14302f;
  --ink-2: #4a5e5d;
  --muted: #8a9695;
  --line: #e4ddd0;
  --accent: #0f5c5b;
  --accent-fresh: #7fbf4a;
  --accent-warm: #d9713a;
  --chip: #ece6d7;
  --chip-warm: #f4e9d4;
  --success: #4a7a3a;
  --danger: #b8442a;

  --display-font: 'Fraunces', Georgia, serif;
  --body-font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono-font: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing scale */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(20, 48, 47, 0.06);
  --shadow-md: 0 4px 16px -4px rgba(20, 48, 47, 0.08);
  --shadow-lg: 0 20px 40px -20px rgba(20, 48, 47, 0.18);
}

/* ──────────────── BASE ──────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  font-size: 16px;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* Typography */
.display { font-family: var(--display-font); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600; color: var(--accent); }
.mono { font-family: var(--mono-font); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-tight { max-width: 960px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) {
  .container, .container-tight { padding: 0 28px; }
}
section { padding: 56px 0; }
@media (min-width: 900px) {
  section { padding: 88px 0; }
}

/* ──────────────── BUTTONS ──────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: filter 120ms ease, transform 80ms ease, background 120ms ease;
  white-space: nowrap;
  min-height: 44px; /* tap target */
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(0,0,0,0.03); }
.btn-warm { background: var(--accent-warm); color: #fff; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--line); }
.btn-danger:hover { background: rgba(184, 68, 42, 0.06); }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 36px; }
.btn-lg { padding: 15px 26px; font-size: 16px; min-height: 52px; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; min-width: 44px; min-height: 44px; }

/* ──────────────── CARDS ──────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* ──────────────── LOGO + NAVBAR ──────────────── */

.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { width: 36px; height: 36px; }
.logo-word {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.topnav {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.topnav .container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topnav .nav-links {
  flex: 1;
  display: none;
  gap: 24px;
  margin-left: 16px;
  font-size: 14px;
  color: var(--ink-2);
}
.topnav .nav-links a { padding: 6px 0; transition: color 120ms; }
.topnav .nav-links a:hover { color: var(--ink); }
.topnav .nav-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.topnav .hide-mobile { display: none; }

@media (min-width: 900px) {
  .topnav { padding: 18px 0; }
  .topnav .nav-links { display: flex; }
  .topnav .hide-mobile { display: inline-flex; }
  .topnav .show-mobile { display: none !important; }
}

/* Mobile menu button (hamburger) */
.menu-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.menu-btn svg { width: 20px; height: 20px; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}
.drawer.open { pointer-events: auto; visibility: visible; }
.drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(20, 48, 47, 0.4);
  opacity: 0; transition: opacity 200ms;
}
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 84%; max-width: 340px;
  background: var(--surface);
  padding: 20px;
  transform: translateX(100%);
  transition: transform 220ms ease;
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.drawer a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 16px; font-weight: 500;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.drawer a:hover, .drawer a.active { background: var(--chip); color: var(--accent); }

/* ──────────────── SECTION HEADS ──────────────── */

.sec-head { margin-bottom: 40px; }
@media (min-width: 900px) { .sec-head { margin-bottom: 56px; } }
.sec-head h2 {
  font-family: var(--display-font);
  font-size: clamp(28px, 5vw, 48px);
  margin: 12px 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.sec-head.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.sec-head p { font-size: 16px; color: var(--ink-2); margin: 0; line-height: 1.55; }
@media (min-width: 640px) { .sec-head p { font-size: 17px; } }

/* ──────────────── UTILS ──────────────── */

.placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.04) 0 6px, transparent 6px 14px),
    var(--chip);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hr { height: 1px; background: var(--line); width: 100%; border: 0; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  background: var(--chip);
  color: var(--ink-2);
}
.tag-success { background: var(--chip); color: var(--success); }
.tag-warm { background: var(--chip-warm); color: var(--accent-warm); }
.tag-accent { background: var(--accent); color: #fff; }

/* ──────────────── FOOTER ──────────────── */

footer.site-foot {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  background: var(--surface);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
}
.foot-col h4 {
  font-size: 13px; font-weight: 600; margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--ink-2); display: inline-block; padding: 2px 0; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
@media (min-width: 900px) {
  .foot-bottom { margin-top: 40px; }
}
