:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #1c1c1a;
  --muted: #6b6b66;
  --line: #e7e6e1;
  --accent: #f26419;      /* Baustellen-Orange */
  --accent-ink: #b74300;
  --accent-soft: #fdeee6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --maxw: 1120px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -.5px; text-decoration: none; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; color: var(--ink);
  transition: transform .05s ease, box-shadow .15s ease, background .15s; }
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; justify-content: center; }

/* Hero */
.hero { background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -1px; margin: 0 0 12px; }
.hero p.sub { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 640px; }
.hero .kbd { color: var(--accent-ink); font-weight: 700; }

/* Suchleiste */
.searchbar { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 10px;
  background: var(--surface); padding: 12px; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); }
.searchbar input, .searchbar select { border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 12px; font-size: 15px; background: #fff; color: var(--ink); width: 100%; }
.searchbar .btn { border-radius: 10px; }
@media (max-width: 780px) { .searchbar { grid-template-columns: 1fr 1fr; } .searchbar .btn { grid-column: 1 / -1; } }

/* Kategorien-Kacheln */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 8px; }
@media (max-width: 780px) { .cats { grid-template-columns: repeat(2, 1fr); } }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-decoration: none; display: flex; align-items: center; gap: 12px;
  font-weight: 700; transition: box-shadow .15s, border-color .15s; }
.cat:hover { box-shadow: var(--shadow); border-color: #d8d6cf; }
.cat .ico { font-size: 26px; }
.cat small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }

/* Layout Ergebnisse */
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 36px 0 16px; }
.section-title h2 { margin: 0; font-size: 22px; letter-spacing: -.3px; }
.section-title .count { color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .05s; }
.card:hover { box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 4 / 3; background: var(--accent-soft) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; font-size: 46px; }
.card .body { padding: 14px 16px 16px; }
.card .badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-ink);
  background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.card h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.2px; }
.card .meta { color: var(--muted); font-size: 14px; }
.card .price { margin-top: 10px; font-weight: 800; }
.card .price small { color: var(--muted); font-weight: 600; }

/* Leerzustand */
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin: 0 0 8px; }

/* Formular / Detail */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 14px; }
label .req { color: var(--accent); }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); }
textarea { resize: vertical; min-height: 96px; }
.hint { color: var(--muted); font-size: 13px; }

.page-head { padding: 32px 0 8px; }
.page-head h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.5px; }
.page-head p { margin: 0; color: var(--muted); }

/* Detail */
.detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } }
.gallery { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--accent-soft); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 90px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.4px; }
.kv { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv b { min-width: 130px; color: var(--muted); font-weight: 600; }
.bigprice { font-size: 26px; font-weight: 800; margin: 4px 0 16px; }
.bigprice small { font-size: 15px; color: var(--muted); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-weight: 600; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }

footer.site { margin-top: 56px; border-top: 1px solid var(--line); background: #fff; }
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.foot-mode code { background: var(--bg); padding: 1px 6px; border-radius: 6px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs img { width: 68px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.btn-danger { color: #b42318; border-color: #f3c9c4; }
.btn-danger:hover { background: #fdeceb; border-color: #eaa9a2; }
.mine-row { display: flex; gap: 16px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.mine-thumb { width: 96px; height: 72px; border-radius: 10px; background: var(--accent-soft) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; font-size: 30px; text-decoration: none; flex-shrink: 0; }
.mine-body { flex: 1; min-width: 0; }
.mine-body h3 { margin: 0 0 2px; font-size: 17px; }
.mine-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mine-actions .btn { padding: 8px 14px; font-size: 14px; }
.tag-paused { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg);
  padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
@media (max-width: 640px) { .mine-row { flex-wrap: wrap; } .mine-actions { width: 100%; justify-content: flex-start; } }

.tabs { display: flex; gap: 6px; margin-bottom: 20px; background: var(--bg); padding: 5px; border-radius: 12px; }
.tab { flex: 1; padding: 10px; border: none; background: transparent; border-radius: 9px;
  font-weight: 700; font-size: 15px; cursor: pointer; color: var(--muted); }
.tab.active { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow); }
.authform .field { margin-bottom: 14px; }

.foot-links { margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--ink); }

/* Rechtsseiten */
.legal { max-width: 760px; margin: 0 auto; padding: 12px 0 24px; }
.legal h1 { font-size: 30px; letter-spacing: -.5px; margin: 20px 0 6px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; letter-spacing: -.2px; }
.legal p, .legal li { color: #33322f; }
.legal ul { padding-left: 20px; }
.legal .ph { background: #fff4cc; border: 1px dashed #e0b400; border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.legal .note { color: var(--muted); font-size: 14px; border-left: 3px solid var(--line); padding: 4px 0 4px 14px; margin: 10px 0; }
