/* ============================================================
   voziti.eu / voziti.eu – Design System
   Farben aus aktuellem Logo (Orange / Grün / Blau)
   Hintergrund: #272729 (wie vorgegeben)
   Mobile-first | Dunkel | Klar | Modern
   GROK: Bei neuen Komponenten hier Variablen + Klassen ergänzen.
   ============================================================ */

:root {
  /* Logo-Farben */
  --orange: #FD5701;
  --orange-hover: #e04d00;
  --green: #0BE90A;
  --green-dim: #09c209;
  --blue: #0069CD;
  --blue-light: #1a7de0;

  /* Neutrals */
  --bg: #272729;
  --bg-elevated: #2f2f32;
  --bg-card: #333337;
  --bg-hover: #3a3a3f;
  --border: #404045;
  --border-light: #4a4a50;

  --text: #f0f0f2;
  --text-muted: #a0a0a8;
  --text-dim: #707078;

  /* Semantik */
  --success: var(--green);
  --danger: #ff4d4d;
  --warning: #ffb020;
  --info: var(--blue);

  /* Spacing & Radius */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.45);

  /* Typography */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Utility */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-hover);
  box-shadow: 0 4px 16px rgba(253, 87, 1, 0.35);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}
.btn-green {
  background: var(--green);
  color: #0a0a0a;
}
.btn-green:hover {
  background: var(--green-dim);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }
.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}
.btn-block { width: 100%; }

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(39, 39, 41, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 36px;
  width: auto;
}
.nav-main {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav-main a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-main a:hover,
.nav-main a.active {
  color: var(--text);
  background: var(--bg-elevated);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lang-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}
.mobile-menu-btn {
  display: flex;
  background: none;
  border: none;
  color: var(--text);
  padding: 0.4rem;
  cursor: pointer;
}
@media (min-width: 900px) {
  .nav-main { display: flex; }
  .mobile-menu-btn { display: none; }
}

/* ========== HERO / SEARCH ========== */
.hero {
  padding: 2.5rem 0 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(253, 87, 1, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 50%, rgba(11, 233, 10, 0.06), transparent);
}
.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  text-align: center;
}
.hero-title span {
  background: linear-gradient(135deg, var(--orange), #ff8c3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Box */
.search-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  max-width: 860px;
  margin: 0 auto;
}
.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.search-field {
  flex: 1 1 140px;
  min-width: 0;
}
.search-field label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.search-field input,
.search-field select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.search-field input:focus,
.search-field select:focus {
  border-color: var(--orange);
}
.search-field input::placeholder {
  color: var(--text-dim);
}
.search-actions {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  flex: 0 0 auto;
}
.search-actions .btn {
  height: 42px;
  white-space: nowrap;
}

/* ========== CATEGORY GRID ========== */
.section {
  padding: 2.5rem 0;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-link {
  font-size: 0.9rem;
  color: var(--orange);
  font-weight: 500;
}
.section-link:hover { text-decoration: underline; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 600px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  cursor: pointer;
}
.cat-card:hover {
  background: var(--bg-hover);
  border-color: var(--orange);
  transform: translateY(-2px);
}
.cat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.cat-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.cat-count {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

/* ========== LISTING CARDS ========== */
.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .listings-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .listings-grid { grid-template-columns: repeat(4, 1fr); }
}

.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}
.listing-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  overflow: hidden;
}
.listing-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  line-height: 1.3;
}
.badge-private {
  background: rgba(0, 105, 205, 0.9);
  color: #fff;
}
.badge-dealer {
  background: rgba(253, 87, 1, 0.95);
  color: #fff;
}
.badge-tp {
  background: rgba(11, 233, 10, 0.9);
  color: #0a0a0a;
}
.badge-new {
  background: #fff;
  color: #0a0a0a;
}
.listing-body {
  padding: 0.9rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.listing-price {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.listing-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: auto;
}
.listing-meta span::before {
  content: "·";
  margin-right: 0.35rem;
  color: var(--text-dim);
}
.listing-meta span:first-child::before { content: none; margin: 0; }
.listing-loc {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ========== TRUST / CTA ========== */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1rem 0 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.trust-item strong {
  color: var(--text);
}

.cta-band {
  background: linear-gradient(135deg, rgba(253, 87, 1, 0.15), rgba(11, 233, 10, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
}
.cta-band h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.cta-band p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== FOOTER ========== */
.footer {
  background: #1e1e20;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.footer-brand img {
  height: 32px;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ========== MOBILE MENU ========== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  background: var(--bg-card);
}

/* Placeholder image */
.ph-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3a3a40, #2a2a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ========== SEARCH RESULTS LAYOUT ========== */
/* GROK: Filter-Sidebar dynamisch je Kategorie (§6.2) – Tehnički pregled Filter hier */
.results-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0 2.5rem;
}
@media (min-width: 960px) {
  .results-layout {
    grid-template-columns: 260px 1fr;
  }
}
.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.filter-sidebar h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.filter-group {
  margin-bottom: 1.25rem;
}
.filter-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.filter-group input,
.filter-group select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  color: var(--text);
  outline: none;
}
.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--orange);
}
.filter-range {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.filter-range input { flex: 1; }
.results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.results-count {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.results-count strong { color: var(--text); }
.view-toggle {
  display: flex;
  gap: 0.35rem;
}
.view-toggle button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
}
.view-toggle button.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ========== LISTING DETAIL ========== */
/* GROK: Galerie groß, Badges Privat/Händler + TP, Verkäufer-Box, ähnliche Anzeigen (§6.3) */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0 2.5rem;
}
@media (min-width: 900px) {
  .detail-layout {
    grid-template-columns: 1.4fr 1fr;
  }
}
.detail-gallery {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.detail-main-img {
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
}
.detail-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  overflow-x: auto;
}
.detail-thumbs .thumb {
  width: 72px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  flex-shrink: 0;
  border: 2px solid transparent;
  cursor: pointer;
}
.detail-thumbs .thumb.active {
  border-color: var(--orange);
}
.detail-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.detail-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.detail-price {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.detail-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}
.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.detail-meta-item {
  font-size: 0.85rem;
}
.detail-meta-item span {
  display: block;
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-bottom: 0.1rem;
}
.seller-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.seller-box h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.seller-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.detail-desc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  grid-column: 1 / -1;
}
.detail-desc h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.detail-desc p {
  color: var(--text-muted);
  font-size: 0.95rem;
  white-space: pre-wrap;
}

/* ========== WIZARD (Anzeige erstellen) ========== */
/* GROK: Max 4–5 Schritte, Fortschrittsbalken, Auto-Save, QR-Foto (§3.3 + §4) */
.wizard-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}
.wizard-progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}
.wizard-step-dot {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}
.wizard-step-dot.done,
.wizard-step-dot.active {
  background: var(--orange);
}
.wizard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.wizard-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.wizard-card .step-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.form-row {
  margin-bottom: 1.1rem;
}
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}
.form-row label .req { color: var(--orange); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--text);
  outline: none;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--orange);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}
.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.qr-box {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.qr-placeholder {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 0.8rem;
  font-weight: 600;
}
.photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.photo-slot {
  width: 100px;
  height: 75px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ========== AUTH (Login/Register) ========== */
.auth-wrap {
  max-width: 420px;
  margin: 3rem auto;
  padding: 0 1.25rem 3rem;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.auth-card h1 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}
.auth-card .sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.oauth-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.oauth-btn:hover { background: var(--bg-hover); }
.auth-divider {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin: 1rem 0;
  position: relative;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ========== PAGE HEADER (innere Seiten) ========== */
.page-header {
  padding: 1.25rem 0 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--orange); }

/* ========== EMPTY / STATUS ========== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ========== HERO FULL-BLEED ========== */
.hero-full {
  position: relative;
  width: 100%;
  min-height: 58vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem 0 0; /* unten kein Padding – Box ragt raus */
  overflow: visible; /* Überstand erlauben */
  margin-bottom: 0;
}
.hero-full-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  background-size: cover; /* füllt die Hero-Fläche, kein Überstehen */
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #1a1a1c;
  pointer-events: none;
}
.hero-full-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(39,39,41,0.2) 0%, rgba(39,39,41,0.35) 45%, rgba(39,39,41,0.88) 100%);
}
.hero-full-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-bottom: 0;
  box-sizing: border-box;
  text-align: center;
  /* Suchbox hängt zur Hälfte / deutlich unter den Hero */
  transform: translateY(280px);
  margin-bottom: 0;
}
.hero-full-title {
  /* GROK: serifenlos, mobile.de-ähnlich – Plus Jakarta Sans */
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, sans-serif;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 600; /* etwas fett, gut lesbar, nicht zu schwer */
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
  line-height: 1.2;
  text-align: right;
}
.hero-full-sub {
  color: rgba(255,255,255,0.9);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 400;
  margin-bottom: 1.75rem;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  line-height: 1.5;
  text-align: right;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.search-panel {
  /* GROK NOTIZ: FIXE GRÖSSE – Höhe darf sich beim Tab-Wechsel NICHT ändern! */
  background: #252527;
  border-radius: 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  overflow: hidden;
  text-align: left;
  color: #f0f0f2;
  border: 1px solid #1e1e20;
  width: 100%;
  height: 318px;          /* FIX */
  min-height: 318px;      /* FIX */
  max-height: 318px;      /* FIX */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.search-tabs {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  flex: 0 0 56px;
  height: 56px;
  overflow-x: auto;
  gap: 0;
  border-bottom: 1px solid #1e1e20;
  background: #343537;
  scrollbar-width: none;
}
.search-tabs::-webkit-scrollbar { display: none; height: 0; }

/* Tab = Icon bis an den Rand, nur 2px Luft */
.search-tab {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px !important;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  opacity: 0.55;
  border-radius: 0;
  box-sizing: border-box;
}
.search-tab:hover { opacity: 1; background: transparent; }
.search-tab.active {
  opacity: 1;
  background: transparent !important; /* GROK: kein grauer Kasten – nur orange Linie */
  border-bottom-color: #FD5701;
}
.search-tab img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  display: block;
  padding: 0 !important;
  margin: 0 !important;
}

.search-panel-body {
  /* GROK: restliche fixe Höhe unter Tabs */
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 0.5rem;
  background: #252527;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.search-subs {
  flex: 1 1 auto;
  align-content: start;
}
.search-fields {
  flex-shrink: 0;
}
.search-panel-actions {
  flex-shrink: 0;
  margin-top: auto;
}

.search-subs {
  display: grid;
  /* Spalten setzt JS: gridTemplateColumns = repeat(N, 1fr) */
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  min-height: 0;
}

/* Kachel: kompakt – Icon oben randbündig, Label direkt darunter, keine Extra-Höhe */
.search-sub {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0;
  border-radius: 0;
  border: 1px solid #2e2e30;
  background: #343537;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e8e8ea;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  min-height: 0 !important;
  height: auto !important;
}
.search-sub:hover { border-color: #FD5701; }
.search-sub.active {
  border-color: #FD5701;
  background: #3d3f41;
  color: #fff;
}
/* GROK LOCK: Icons EXAKT 133×80 – alle Kategorien, nicht ändern */
.search-sub img {
  width: 133px !important;
  height: 80px !important;
  max-width: 133px !important;
  max-height: 80px !important;
  min-width: 133px !important;
  min-height: 80px !important;
  object-fit: contain !important;
  object-position: center center;
  display: block;
  margin: 8px auto 0 auto !important;
  padding: 0 !important;
  flex: 0 0 auto;
  background: transparent;
}
.search-sub span {
  display: block;
  width: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 6px 6px 12px !important; /* mehr Luft zum unteren Rand */
  margin: 0 !important;
  box-sizing: border-box;
  word-break: break-word;
  overflow: visible;
  white-space: normal;
  flex: 0 0 auto;
  color: inherit;
}

.search-fields {
  min-height: 48px;
  padding: 0.85rem;
  background: #343537;
  border-radius: 0;
  border: 1px solid #2e2e30;
  margin-bottom: 0.9rem;
}
.search-fields-hint { font-size: 0.85rem; color: #a0a0a8; margin: 0; }
.search-fields-hint strong { color: #f0f0f2; }
.search-panel-actions { display: flex; justify-content: flex-end; }
.search-panel-actions .btn { min-width: 160px; border-radius: 0; }

.cat-grid-v2 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
.cat-card-v2 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 !important;
  background: #343537;
  border: 1px solid #2e2e30;
  border-radius: 0;
  text-decoration: none;
  color: #f0f0f2;
  text-align: center;
  overflow: hidden;
}
.cat-card-v2:hover { border-color: #FD5701; }
.cat-card-v2 img {
  /* siehe FINAL LOCK 133x80 am Dateiende */
  object-fit: contain;
  display: block;
}
.cat-card-v2 span {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 4px 8px;
}

@media (max-width: 640px) {
  .hero-full { min-height: 70vh; padding: 1.5rem 0.75rem 1.25rem; }
  .hero-full-sub { margin-bottom: 2rem; }
  .search-tab { height: 48px; flex: 1 1 0; min-width: 44px; }
  /* mobile: JS setzt Spalten; Fallback */
  .search-subs { gap: 0.4rem; }
  .search-sub { font-size: 0.68rem; }
}

.btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-sm,
.header, .listing-card, .listing-img, .auth-card,
.form-row input, .form-row select, .form-row textarea,
.search-box, .filter-sidebar, .badge, .oauth-btn, .cat-card, .mobile-nav, .queue-item {
  border-radius: 0 !important;
}
.listing-card img, .listing-img img, .thumbs img {
  border-radius: 0 !important;
}


/* FORCE HIDE: alte Suchfelder + Button (1. Ebene) */
.search-fields,
#searchFields,
.search-panel-actions,
#searchSubmitBtn {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
}


/* ========== SEARCH PANEL FIXED HEIGHT LOCK ========== */
/* GROK NOTIZ: FIXE GRÖSSE der Suchbox – NIEMALS Höhe an Tab-Inhalt koppeln! */
.search-panel {
  height: 318px !important;
  min-height: 318px !important;
  max-height: 318px !important;
}
.search-panel-body {
  overflow: hidden !important;
}
.search-subs {
  flex: 1 1 auto;
  min-height: 0 !important;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  align-content: start;
  margin-bottom: 0 !important;
  padding-bottom: 4px;
}
@media (max-width: 640px) {
  .search-panel {
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
  }
}


/* search-panel width lock – volle Seitenbreite wie Kategorien-Grid */
.search-panel {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
.hero-full {
  padding-left: 0;
  padding-right: 0;
}


/* ========== FINAL: search-sub === cat-card-v2 ========== */
.search-sub {
  background: #343537 !important;
  border: 1px solid #2e2e30 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  text-decoration: none;
  color: #f0f0f2 !important;
}
.search-sub img {
  /* siehe FINAL LOCK 133x80 am Dateiende */
  object-fit: contain !important;
}
.search-sub span {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 6px 6px 12px !important;
}


/* ========== HERO SEARCH OVERHANG (mobile.de-Stil) ========== */
/* GROK: Suchbox ragt unten aus dem Hero – Section darunter Abstand geben */
.hero-full {
  overflow: visible !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  z-index: 2;
}
.hero-full-inner {
  transform: translateY(280px) !important; /* Box nach unten schieben → übersteht */
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.search-panel {
  position: relative;
  z-index: 3;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
}
/* Platz unter der überstehenden Box, bevor "Kategorien" beginnt */
.hero-full + .section,
#kategorien {
  padding-top: 340px !important; /* ~ Hälfte der Panel-Höhe + Luft */
}
@media (max-width: 640px) {
  .hero-full-inner {
    transform: translateY(200px) !important;
  }
  .hero-full + .section,
  #kategorien {
    padding-top: 280px !important;
  }
}


/* ========== HERO WIDTH LOCK – exakt Viewport-Breite ========== */
.hero-full {
  width: 100% !important;
  max-width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
}
.hero-full-bg,
.hero-full-overlay {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box !important;
}
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}


/* Hero-Copy: rechtsbündig, bündig mit Suchbox-Rand */
.hero-copy {
  width: 100%;
  text-align: right;
  margin-bottom: 0.5rem;
}
.search-panel {
  text-align: left; /* Panel-Inhalt nicht rechtsbündig erben */
}


/* ========== ICON SIZE 133x80 LOCK – ALLE Suchbox-Kategorien ========== */
.search-sub {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  gap: 0 !important;
}
.search-sub img,
.search-subs .search-sub img {
  width: 133px !important;
  height: 80px !important;
  max-width: 133px !important;
  max-height: 80px !important;
  min-width: 133px !important;
  min-height: 80px !important;
  object-fit: contain !important;
  margin: 8px auto 0 auto !important;
  padding: 0 !important;
  display: block !important;
}
.search-sub span {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  padding: 6px 6px 12px !important;
  text-align: center !important;
  width: 100% !important;
}


/* ========== NUMBER SPINNERS OFF (projektweit) ========== */
/* GROK: Keine Hoch/Runter-Pfeile bei type=number – nirgendwo */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  display: none !important;
}
input[type=number] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}


/* ============================================================
   GROK FINAL LOCK 2026-09-11: icon*.png EXAKT 133×80 px
   Überschreibt alle früheren width:100% / height:auto Regeln
   Suchbox (.search-sub) UND Kategorie-Grid (.cat-card-v2)
   ============================================================ */
.search-sub img,
.search-subs .search-sub img,
.search-panel .search-sub img,
.cat-card-v2 img,
.cat-grid-v2 .cat-card-v2 img,
#catGrid .cat-card-v2 img,
#searchSubs img {
  width: 133px !important;
  height: 80px !important;
  max-width: 133px !important;
  max-height: 80px !important;
  min-width: 133px !important;
  min-height: 80px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  flex: 0 0 133px !important;
  aspect-ratio: 133 / 80 !important;
}

/* Kachel: Icon oben zentriert, Label darunter – kein Strecken der PNG */
.search-sub,
.cat-card-v2 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
}
.search-sub span,
.cat-card-v2 span {
  width: 100% !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
