/* Inserate.Center – Stylesheet (Hell- und Dunkelmodus) */
:root {
  --radius: 12px;
  --radius-s: 8px;
  --side-w: 236px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --c-primary: #0f766e;
  --c-primary-d: #0b5c56;
  --c-primary-l: #e6f4f2;
  --c-primary-t: #0b5c56;
  --c-link: #0f766e;
  --c-price: #0b5c56;
  --c-accent: #f26b1d;
  --c-accent-d: #d85a10;
  --c-text: #17202b;
  --c-muted: #5d6b7a;
  --c-border: #e2e7ed;
  --c-input: #ffffff;
  --c-input-border: #cdd5de;
  --c-bg: #f5f7f9;
  --c-card: #ffffff;
  --c-surface: #fafbfc;
  --c-header: rgba(255, 255, 255, .92);
  --c-img-bg: #eef1f4;
  --c-noimg-ic: #b3bdc8;
  --c-danger: #c62828;
  --c-danger-bd: #f1c4c4;
  --c-danger-bg: #fdecec;
  --c-ok: #1e7f4f;
  --c-hl-bg: #fff8f2;
  --c-hl-bd: #fbd3b9;
  --c-owner-bg: #fffdf5;
  --f-ok-bg: #e8f6ee; --f-ok-bd: #b7e2c8; --f-ok-tx: #155e3a;
  --f-err-bg: #fdecec; --f-err-bd: #f4c7c7; --f-err-tx: #8a1c1c;
  --f-warn-bg: #fff7e6; --f-warn-bd: #f5dba3; --f-warn-tx: #7a5200;
  --f-info-bg: #eaf3fb; --f-info-bd: #c4dcf2; --f-info-tx: #1d4f7c;
  --s-neu-bg: #eef1f4;
  --s-ok-bg: #e3f4ea; --s-ok-tx: #1e7f4f;
  --s-pend-bg: #fff3d6; --s-pend-tx: #8a5a00;
  --s-bad-bg: #fde7e7; --s-bad-tx: #c62828;
  --s-sold-bg: #e6effa; --s-sold-tx: #24589a;
  --s-top-bg: #ffe9db; --s-top-tx: #b54708;
  --hero: linear-gradient(135deg, #0f766e 0%, #115e59 55%, #134e4a 100%);
  --footer-bg: #0f1c24;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-h: 0 6px 20px rgba(16, 24, 40, .10);
  color-scheme: light;
}
/* Dunkelmodus: per Umschalter … */
:root[data-theme="dark"] {
  --c-primary: #0f766e;
  --c-primary-d: #13897f;
  --c-primary-l: #12322f;
  --c-primary-t: #5eead4;
  --c-link: #4fd1c1;
  --c-price: #5eead4;
  --c-accent: #f26b1d;
  --c-accent-d: #ff8a45;
  --c-text: #e5eaf0;
  --c-muted: #98a6b5;
  --c-border: #253141;
  --c-input: #0f161e;
  --c-input-border: #334155;
  --c-bg: #0c1218;
  --c-card: #141c25;
  --c-surface: #18212b;
  --c-header: rgba(20, 28, 37, .92);
  --c-img-bg: #1b2430;
  --c-noimg-ic: #4a5868;
  --c-danger: #f07272;
  --c-danger-bd: #6b2a2f;
  --c-danger-bg: #331417;
  --c-ok: #4ade80;
  --c-hl-bg: #2a1d12;
  --c-hl-bd: #8a4518;
  --c-owner-bg: #1f1d14;
  --f-ok-bg: #0f2d20; --f-ok-bd: #1e5a3e; --f-ok-tx: #8ee0b5;
  --f-err-bg: #331417; --f-err-bd: #6b2a2f; --f-err-tx: #f4a6a6;
  --f-warn-bg: #33270f; --f-warn-bd: #6b5320; --f-warn-tx: #f2cf86;
  --f-info-bg: #10243a; --f-info-bd: #24476b; --f-info-tx: #9cc8f0;
  --s-neu-bg: #222c37;
  --s-ok-bg: #12301f; --s-ok-tx: #6fd39d;
  --s-pend-bg: #33280f; --s-pend-tx: #f2c66d;
  --s-bad-bg: #3a171a; --s-bad-tx: #f19a9a;
  --s-sold-bg: #13263d; --s-sold-tx: #8ab8ee;
  --s-top-bg: #3a2210; --s-top-tx: #ffa66b;
  --hero: linear-gradient(135deg, #0d5f58 0%, #0b4743 55%, #0a3532 100%);
  --footer-bg: #080d12;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-h: 0 8px 24px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
/* … oder automatisch nach Systemeinstellung, solange nicht „hell“ gewählt wurde */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-primary: #0f766e;
    --c-primary-d: #13897f;
    --c-primary-l: #12322f;
    --c-primary-t: #5eead4;
    --c-link: #4fd1c1;
    --c-price: #5eead4;
    --c-accent: #f26b1d;
    --c-accent-d: #ff8a45;
    --c-text: #e5eaf0;
    --c-muted: #98a6b5;
    --c-border: #253141;
    --c-input: #0f161e;
    --c-input-border: #334155;
    --c-bg: #0c1218;
    --c-card: #141c25;
    --c-surface: #18212b;
    --c-header: rgba(20, 28, 37, .92);
    --c-img-bg: #1b2430;
    --c-noimg-ic: #4a5868;
    --c-danger: #f07272;
    --c-danger-bd: #6b2a2f;
    --c-danger-bg: #331417;
    --c-ok: #4ade80;
    --c-hl-bg: #2a1d12;
    --c-hl-bd: #8a4518;
    --c-owner-bg: #1f1d14;
    --f-ok-bg: #0f2d20; --f-ok-bd: #1e5a3e; --f-ok-tx: #8ee0b5;
    --f-err-bg: #331417; --f-err-bd: #6b2a2f; --f-err-tx: #f4a6a6;
    --f-warn-bg: #33270f; --f-warn-bd: #6b5320; --f-warn-tx: #f2cf86;
    --f-info-bg: #10243a; --f-info-bd: #24476b; --f-info-tx: #9cc8f0;
    --s-neu-bg: #222c37;
    --s-ok-bg: #12301f; --s-ok-tx: #6fd39d;
    --s-pend-bg: #33280f; --s-pend-tx: #f2c66d;
    --s-bad-bg: #3a171a; --s-bad-tx: #f19a9a;
    --s-sold-bg: #13263d; --s-sold-tx: #8ab8ee;
    --s-top-bg: #3a2210; --s-top-tx: #ffa66b;
    --hero: linear-gradient(135deg, #0d5f58 0%, #0b4743 55%, #0a3532 100%);
    --footer-bg: #080d12;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-h: 0 8px 24px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; display: block; }
a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
.h3, h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre.mono { background: var(--c-bg); padding: 10px; border-radius: var(--radius-s); overflow: auto; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
main { flex: 1; min-height: 60vh; padding-bottom: 40px; }
main > .container > h1:first-child, main > .container > .tabs:first-child { margin-top: 24px; }
.section { margin: 36px 0; }
.section-title { font-size: 1.35rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 20px; }
.pad-lg { padding: 32px; }
.pad-x { padding: 0 16px; }
.card + .card, section.card + section.card { margin-top: 18px; }
.center { text-align: center; }
.center-block { display: block; text-align: center; margin-top: 8px; }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.mt { margin-top: 12px; }
.error-text { color: var(--c-danger); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; left: -9999px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: var(--radius-s);
  border: 1px solid var(--c-primary); background: var(--c-primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none !important; line-height: 1.2; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--c-primary-d); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(20, 160, 148, .45); outline-offset: 1px; }
.btn-accent { background: var(--c-accent); border-color: var(--c-accent); }
.btn-accent:hover { background: var(--c-accent-d); }
.btn-ghost { background: var(--c-card); color: var(--c-text); border-color: var(--c-border); }
.btn-ghost:hover { background: var(--c-surface); }
.btn-danger { background: var(--c-card); color: var(--c-danger); border-color: var(--c-danger-bd); }
.btn-danger:hover { background: var(--c-danger-bg); }
.btn-sm { padding: 6px 12px; font-size: .875rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-col { display: flex; flex-direction: column; gap: 6px; }
.btn-link { color: var(--c-muted); font-size: .9rem; }
.btn .ic { width: 18px; height: 18px; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.inline-form { display: inline; margin: 0; }
.badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--c-accent); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; line-height: 1.5; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; border: 1px solid var(--c-border); background: var(--c-card); color: var(--c-text); cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--c-surface); }
.icon-btn .ic { width: 20px; height: 20px; }

/* Hell/Dunkel-Umschalter: passendes Symbol zeigen */
.ic-sun { display: none !important; }
[data-theme="dark"] .ic-sun { display: inline-block !important; }
[data-theme="dark"] .ic-moon { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ic-sun { display: inline-block !important; }
  :root:not([data-theme="light"]) .ic-moon { display: none !important; }
}

/* ---------- Forms ---------- */
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--c-input-border); border-radius: var(--radius-s); font: inherit; background: var(--c-input); color: var(--c-text); }
input::placeholder, textarea::placeholder { color: var(--c-muted); opacity: .85; }
input[type=checkbox], input[type=radio] { width: auto; padding: 0; accent-color: var(--c-primary); }
input[type=file] { padding: 8px; background: var(--c-bg); }
textarea { resize: vertical; }
input:disabled, select:disabled { background: var(--c-bg); color: var(--c-muted); }
label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 5px; }
label.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
label.check input { margin-top: 4px; }
.form-stack > button, .form-stack > .btn { margin-top: 14px; }
fieldset { border: 0; border-top: 1px solid var(--c-border); padding: 16px 0 6px; margin: 0; }
fieldset:first-of-type { border-top: 0; padding-top: 0; }
legend { font-weight: 700; font-size: 1.05rem; padding: 0 0 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.span-2 { grid-column: span 2; }
.check-cell { display: flex; align-items: flex-end; padding-bottom: 10px; }
.range { display: flex; align-items: center; gap: 6px; }
.range span { color: var(--c-muted); }

/* ---------- Flash ---------- */
.flashes { margin-top: 16px; }
.flash { position: relative; padding: 12px 40px 12px 16px; border-radius: var(--radius-s); margin-bottom: 10px; border: 1px solid; }
.flash ul { margin: 6px 0 0; padding-left: 20px; }
.flash-success { background: var(--f-ok-bg); border-color: var(--f-ok-bd); color: var(--f-ok-tx); }
.flash-error { background: var(--f-err-bg); border-color: var(--f-err-bd); color: var(--f-err-tx); }
.flash-warn { background: var(--f-warn-bg); border-color: var(--f-warn-bd); color: var(--f-warn-tx); }
.flash-info { background: var(--f-info-bg); border-color: var(--f-info-bd); color: var(--f-info-tx); }
.flash a { color: inherit; text-decoration: underline; }
.geo-notice { display: flex; align-items: center; gap: 10px; }
.geo-notice .flag { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.h1-country { display: inline-flex; align-items: center; gap: 6px; }
.h1-country .flag { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.geo-credit { float: right; }
.geo-credit a { display: inline; padding: 0; color: #8a99a6; }
.flash-close { position: absolute; right: 8px; top: 6px; background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: inherit; opacity: .6; }

/* ---------- Seitenaufbau: Seitenleiste (Desktop) + Kopfleiste ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--c-text); text-decoration: none !important; flex-shrink: 0; }
.logo-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c-primary); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: -.5px; }
.logo-text { font-weight: 800; font-size: 1.2rem; letter-spacing: -.3px; }
.logo-text span { color: var(--c-link); }

.sidenav { position: fixed; top: 0; bottom: 0; left: 0; width: var(--side-w); background: var(--c-card); border-right: 1px solid var(--c-border); padding: 18px 12px 14px; display: flex; flex-direction: column; z-index: 40; overflow-y: auto; }
.sidenav .logo { margin: 2px 8px 24px; }
.sidenav nav { display: flex; flex-direction: column; gap: 2px; }
.sidenav nav a, .sidenav .side-btn { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--c-text); font-weight: 500; text-decoration: none; width: 100%; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.sidenav nav a .ic, .sidenav .side-btn .ic { width: 20px; height: 20px; color: var(--c-muted); }
.sidenav nav a:hover, .sidenav .side-btn:hover { background: var(--c-surface); text-decoration: none; }
.sidenav nav a.active { background: var(--c-primary-l); color: var(--c-primary-t); font-weight: 600; }
.sidenav nav a.active .ic { color: var(--c-primary-t); }
.sidenav nav .badge { margin-left: auto; }
.sidenav .nav-sep { height: 1px; background: var(--c-border); margin: 10px 8px; }
.sidenav .nav-admin, .sidenav .nav-admin .ic { color: var(--c-accent) !important; }
.side-cta { margin: 18px 4px 0; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 2px; }
.side-foot .side-btn { color: var(--c-muted); font-size: .92rem; }

.page { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; background: var(--c-header); backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--c-border); }
.topbar-row { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.topbar .logo { display: none; }
.header-search { flex: 1; display: flex; max-width: 560px; }
.header-search input { border-radius: var(--radius-s) 0 0 var(--radius-s); border-right: 0; }
.header-search button { border: 1px solid var(--c-primary); background: var(--c-primary); color: #fff; padding: 0 14px; border-radius: 0 var(--radius-s) var(--radius-s) 0; cursor: pointer; display: grid; place-items: center; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* Länderwahl mit Flaggen */
.country-switch { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-card); }
.cs-item { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--c-muted); opacity: .6; transition: opacity .15s, box-shadow .15s, background .15s; text-decoration: none !important; }
.cs-item:hover { opacity: 1; background: var(--c-surface); }
.cs-item .flag { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.cs-item .ic { width: 22px; height: 22px; }
.cs-item.active { opacity: 1; background: var(--c-primary-l); box-shadow: 0 0 0 2px var(--c-primary); color: var(--c-primary-t); }
.nav-toggle { display: none; background: var(--c-card); color: var(--c-text); border: 1px solid var(--c-border); border-radius: var(--radius-s); font-size: 1.3rem; padding: 4px 10px; cursor: pointer; }

/* Untere Leiste (Handy) */
.bottomnav { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--hero); color: #fff; padding: 52px 0 56px; }
.hero h1 { font-size: 2.4rem; margin-bottom: .2em; letter-spacing: -.5px; }
.hero-sub { font-size: 1.15rem; opacity: .9; margin-bottom: 24px; }
.hero-search { display: grid; grid-template-columns: 2.2fr 1.2fr 1.3fr auto; gap: 8px; background: var(--c-card); padding: 8px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); max-width: 980px; }
.hero-search input, .hero-search select { border: 0; background: var(--c-bg); padding: 12px 14px; }
.hero-search .btn { padding: 12px 22px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.chips-label { font-weight: 600; font-size: .9rem; opacity: .9; margin-right: 2px; }
.chip { display: inline-block; padding: 5px 13px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; font-size: .88rem; }
.chip:hover { background: rgba(255, 255, 255, .2); text-decoration: none; }

/* ---------- Kategorien ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); color: var(--c-text); transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { text-decoration: none; border-color: var(--c-primary); box-shadow: var(--shadow-h); }
.cat-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--c-primary-l); color: var(--c-primary-t); transition: background .15s, color .15s; }
.cat-tile:hover .cat-icon { background: var(--c-primary); color: #fff; }
.cat-text { display: flex; flex-direction: column; min-width: 0; }
.cat-name { font-weight: 600; line-height: 1.3; }
.cat-count { font-size: .8rem; color: var(--c-muted); }

/* Kategoriekacheln mit Foto */
.cat-grid.cat-photos { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cat-photo { position: relative; display: block; height: 150px; border-radius: var(--radius); overflow: hidden; color: #fff; background: var(--hero); box-shadow: var(--shadow); isolation: isolate; }
.cat-photo:hover { text-decoration: none; box-shadow: var(--shadow-h); }
.cat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .35s; }
.cat-photo:hover img { transform: scale(1.05); }
.cat-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .72) 100%); }
.cat-photo-bg { position: absolute; right: -14px; top: -10px; z-index: -1; opacity: .16; }
.cat-photo-bg .ic { width: 120px; height: 120px; }
.cat-photo-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.cat-photo-body .ic { width: 22px; height: 22px; flex: 0 0 22px; }
.cat-photo .cat-name { font-size: 1rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.cat-photo .cat-count { color: rgba(255, 255, 255, .85); }

/* ---------- Symbole ---------- */
.ic { width: 22px; height: 22px; flex-shrink: 0; display: inline-block; }
.ic-sm { width: 17px; height: 17px; vertical-align: -3px; margin-right: 8px; color: var(--c-muted); }
.ic-xs { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.ic-noimg { width: 34px; height: 34px; color: var(--c-noimg-ic); }
.cat-cell { display: inline-flex; align-items: center; }
.icon-picker { border: 0; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, 40px); gap: 6px; }
.icon-picker legend.label-like { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.icon-picker label { margin: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--c-border); border-radius: 8px; cursor: pointer; color: var(--c-muted); }
.icon-picker label:hover { border-color: var(--c-primary); color: var(--c-link); }
.icon-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icon-picker label:has(input:checked) { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.icon-picker label:has(input:focus-visible) { outline: 3px solid rgba(20, 160, 148, .45); }
.cat-img-admin { width: 160px; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--c-border); margin: 6px 0; }

/* ---------- Inseratskarten ---------- */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.lgrid-3 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lcard { position: relative; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.lcard:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.lcard-link { display: block; color: var(--c-text); text-decoration: none !important; height: 100%; }
.lcard-img { position: relative; aspect-ratio: 4 / 3; background: var(--c-img-bg); }
.lcard-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; min-height: 80px; color: var(--c-muted); font-size: .9rem; background: var(--c-img-bg); }
.noimg-lg { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #1b222b; color: #7d8996; }
.tag-top { position: absolute; top: 10px; left: 10px; background: var(--c-accent); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .5px; }
.lcard-body { padding: 12px 14px 14px; }
.lcard-price { font-weight: 800; font-size: 1.08rem; color: var(--c-price); }
.lcard-ship { display: block; font-size: .78rem; font-weight: 500; color: var(--c-muted); margin-top: 1px; }
.lcard-title { font-size: .98rem; font-weight: 600; margin: 3px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.lcard-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--c-muted); }
.lcard-meta span { display: inline-flex; align-items: center; min-width: 0; }
.lcard-meta .loc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.lcard-meta .when { white-space: nowrap; flex-shrink: 0; }
.lcard-hl { border: 2px solid var(--c-accent); }
.lcard-hl, .lcard-hl .lcard-body { background: var(--c-hl-bg); }
.lcard-top { box-shadow: 0 0 0 1px var(--c-hl-bd); }
.lcard-fav { position: absolute; top: 8px; right: 8px; margin: 0; z-index: 2; }
.lcard-fav button, .lcard-fav a { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); cursor: pointer; color: #5d6b7a; padding: 0; }
.lcard-fav button:hover, .lcard-fav a:hover { color: #e0245e; }
.lcard-fav .ic { width: 18px; height: 18px; }
.ic-fav, .lcard-fav .is-fav { color: #e0245e; }
.ic-fav, .lcard-fav .is-fav .ic { fill: #e0245e; }

.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.usp > div, .usp > a { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.usp .cat-icon { flex-basis: 40px; width: 40px; height: 40px; }
.usp strong { display: block; margin-bottom: 2px; color: var(--c-text); font-size: 1rem; }
.usp > div > span:last-child, .usp > a > span:last-child { color: var(--c-muted); font-size: .92rem; }
.usp > a { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.usp > a:hover, .usp > a:focus-visible { border-color: var(--c-primary); box-shadow: var(--shadow, 0 4px 14px rgba(0,0,0,.08)); transform: translateY(-1px); }
.usp > a:hover .cat-icon { background: var(--c-primary); color: #fff; }

/* ---------- Suche ---------- */
.breadcrumb { font-size: .88rem; color: var(--c-muted); margin: 18px 0 14px; }
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.filter-form { padding: 16px; position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow: auto; }
.filter-block { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--c-border); }
.filter-block h3 { font-size: .95rem; margin-bottom: 6px; }
.filter-block label:first-child { margin-top: 0; }
.cat-list { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.cat-list li { padding: 3px 0; }
.cat-list li a { color: var(--c-text); }
.cat-list li.active a { color: var(--c-link); font-weight: 700; }
.cat-list .cat-up a { color: var(--c-muted); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-head h1 { font-size: 1.4rem; margin: 0; }
.results-tools { display: flex; gap: 8px; align-items: center; }
.results-tools select { width: auto; }
.only-mobile { display: none !important; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 0; }
.pagination a, .pagination span { padding: 7px 12px; border-radius: var(--radius-s); background: var(--c-card); border: 1px solid var(--c-border); color: var(--c-text); }
.pagination a.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination span { border: 0; background: none; }

/* ---------- Detailseite ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.detail-main > .card + .card { margin-top: 18px; }
.detail-side > * + *, .detail-side > .card + .card { margin-top: 0; }
.detail-side { display: flex; flex-direction: column; gap: 18px; }
.gallery { overflow: hidden; }
.gallery-main { position: relative; background: #11161c; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery-main img { max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #17202b; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.gal-prev { left: 12px; } .gal-next { right: 12px; }
.gal-count { position: absolute; bottom: 10px; right: 12px; background: rgba(0, 0, 0, .6); color: #fff; padding: 2px 10px; border-radius: 12px; font-size: .82rem; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: 0 0 auto; width: 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; }
.gallery-thumbs button.active { border-color: var(--c-primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dinfo-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--c-border); }
.dinfo-actions form { margin: 0; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; background: none; border: 0; color: var(--c-primary-t); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.act:hover { text-decoration: underline; }
.act.is-fav .ic { fill: currentColor; }
.detail-title { font-size: 1.45rem; line-height: 1.25; margin: 0 0 4px; overflow-wrap: anywhere; }
.detail-subtitle { margin: 0 0 4px; font-size: 1.05rem; color: var(--c-muted); overflow-wrap: anywhere; }
.detail-key { margin: 0 0 4px; font-weight: 600; color: var(--c-text); opacity: .85; }
.detail-price { font-size: 1.75rem; font-weight: 800; color: var(--c-price); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--c-border); }
.detail-ship { font-size: .95rem; color: var(--c-muted); margin-top: 2px; }
.ship-note { display: block; font-size: .82rem; color: var(--c-muted); margin-top: 4px; }
.detail-loc { color: var(--c-muted); margin: 6px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.detail-loc .ic { flex: 0 0 auto; margin-top: 3px; }
.dinfo + .card { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; padding: 18px; }
.tile { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tile-ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--c-primary-l); color: var(--c-primary-t); }
.tile-ic .ic { width: 20px; height: 20px; }
.tile-txt { min-width: 0; }
.tile-label { display: block; font-size: .82rem; color: var(--c-muted); }
.tile-val { display: block; font-weight: 600; overflow-wrap: anywhere; }
.detail-desc .h3 + .description { margin-bottom: 22px; }
.detail-desc > :first-child { margin-top: 0; }
.guest-note { margin: 10px 0 0; line-height: 1.45; }
.seller-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 1px 8px; border-radius: 999px; line-height: 1.6; vertical-align: 1px; }
.seller-private { background: var(--c-bg); color: var(--c-muted); border: 1px solid var(--c-border); }
.seller-business { background: var(--c-primary-l); color: var(--c-primary-t); }
.lcard-body .seller-badge { margin-top: 6px; }
.imprint { margin-top: 12px; border-top: 1px solid var(--c-border); padding-top: 10px; }
.imprint summary { cursor: pointer; font-weight: 700; font-size: .92rem; }
.imprint p { margin: 8px 0 0; font-size: .92rem; }
.seller-type { border: 1px solid var(--c-border); border-radius: var(--radius-s); padding: 10px 14px 12px; margin: 6px 0 4px; }
.seller-type legend { font-weight: 700; padding: 0 6px; }
.seller-type .check { margin: 4px 0; }
.seller-links { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--c-border); font-size: .92rem; font-weight: 600; }
.phone-form { margin-top: 10px; }
.phone-num { margin-top: 10px; font-weight: 700; letter-spacing: .02em; }
.seller-page { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 8px; }
.seller-page > .card + .card { margin-top: 0; }
.seller-name { font-size: 1.45rem; margin: 0 0 4px; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; }
.seller-profile .facts { margin-top: 16px; }
.mt-0 { margin-top: 0; }
.detail-desc .equip-show { margin-bottom: 24px; }
.field-group { grid-column: 1 / -1; margin: 10px 0 -2px; padding-top: 10px; border-top: 1px solid var(--c-border); font-size: .95rem; color: var(--c-primary-t); }
#attr-fields > .field-group:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.equip-group { border: 1px solid var(--c-border); border-radius: var(--radius-s); margin-top: 10px; }
.equip-group summary { cursor: pointer; padding: 10px 14px; font-weight: 700; }
.equip-count { color: var(--c-primary-t); font-weight: 600; }
.equip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; padding: 4px 14px 14px; }
.equip-grid .check { margin: 0; font-weight: 400; }
.facts-group { font-size: .95rem; margin: 18px 0 8px; color: var(--c-primary-t); }
.equip-show { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.equip-show ul { list-style: none; margin: 0; padding: 0; }
.equip-show li { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; }
.equip-show li .ic { flex: 0 0 auto; margin-top: 4px; color: var(--c-primary-t); }
.filter-equip summary { cursor: pointer; padding: 2px 0 6px; }
.filter-equip .check { display: flex; margin: 4px 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 20px; padding: 14px 16px; background: var(--c-bg); border-radius: var(--radius-s); }
.facts dt { color: var(--c-muted); }
.facts dd { margin: 0; font-weight: 500; }
.description { white-space: normal; overflow-wrap: anywhere; }
.seller-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--c-primary-l); color: var(--c-primary-t); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.seller form, .seller details { margin-top: 10px; }
.contact-form label { margin-top: 0; }
.contact-form button { margin-top: 8px; }
.phone summary { list-style: none; }
.phone summary::-webkit-details-marker { display: none; }
.phone-num { display: block; text-align: center; font-size: 1.2rem; font-weight: 700; padding: 10px; }
.safety ul { margin: 6px 0; padding-left: 18px; }
.report summary { cursor: pointer; color: var(--c-muted); font-size: .9rem; }
.owner-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; background: var(--c-owner-bg); }

/* ---------- Status-Pillen ---------- */
.status { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: .78rem; font-weight: 700; background: var(--s-neu-bg); color: var(--c-muted); white-space: nowrap; }
.status-active, .status-paid { background: var(--s-ok-bg); color: var(--s-ok-tx); }
.status-pending, .status-unverified { background: var(--s-pend-bg); color: var(--s-pend-tx); }
.status-rejected, .status-banned { background: var(--s-bad-bg); color: var(--s-bad-tx); }
.status-sold { background: var(--s-sold-bg); color: var(--s-sold-tx); }
.status-top, .status-hl { background: var(--s-top-bg); color: var(--s-top-tx); }

/* ---------- Inserat aufgeben ---------- */
.img-manage { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.img-manage img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid var(--c-border); }
.img-item label { margin: 4px 0 0; }
.img-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.img-preview img { width: 90px; height: 68px; object-fit: cover; border-radius: 6px; }

/* ---------- Nachrichten ---------- */
.msg-layout { display: grid; grid-template-columns: 330px 1fr; gap: 16px; min-height: 520px; }
.conv-list { overflow: auto; max-height: 72vh; }
.conv { position: relative; display: block; padding: 12px 16px; border-bottom: 1px solid var(--c-border); color: var(--c-text); }
.conv:hover { background: var(--c-surface); text-decoration: none; }
.conv.active { background: var(--c-primary-l); }
.conv-top { display: flex; justify-content: space-between; gap: 6px; }
.conv-title { font-size: .9rem; color: var(--c-link); }
.conv .badge { position: absolute; right: 12px; bottom: 12px; }
.thread { display: flex; flex-direction: column; max-height: 72vh; }
.thread-head { padding: 14px 16px; border-bottom: 1px solid var(--c-border); display: flex; gap: 12px; }
.thread-msgs { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--c-surface); }
.msg { max-width: 75%; align-self: flex-start; }
.msg-body { background: var(--c-card); border: 1px solid var(--c-border); padding: 9px 13px; border-radius: 14px 14px 14px 4px; overflow-wrap: anywhere; }
.msg-mine { align-self: flex-end; }
.msg-mine .msg-body { background: var(--c-primary); color: #fff; border-color: var(--c-primary); border-radius: 14px 14px 4px 14px; }
.msg-meta { font-size: .74rem; color: var(--c-muted); margin-top: 2px; padding: 0 4px; }
.msg-mine .msg-meta { text-align: right; }
.thread-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--c-border); }
.thread-form textarea { flex: 1; }

/* ---------- Mein Bereich ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--c-border); margin: 20px 0 18px; }
.tabs a { padding: 9px 14px; color: var(--c-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tabs a:hover { color: var(--c-text); text-decoration: none; }
.tabs a.active { color: var(--c-link); border-bottom-color: var(--c-primary); }
.my-list { display: flex; flex-direction: column; gap: 12px; }
.my-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; padding: 12px; align-items: center; }
.my-item + .my-item { margin-top: 0; }
.my-thumb { display: block; width: 120px; height: 90px; border-radius: 8px; overflow: hidden; }
.my-thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-info > * + * { margin-top: 3px; }
.my-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 340px; }
.my-actions form { margin: 0; }
.fav-gone .lcard { opacity: .5; }
.warn-box { background: var(--f-warn-bg); border-color: var(--f-warn-bd); margin-bottom: 18px; }
.danger-zone { border-color: var(--c-danger-bd); }
.auth { max-width: 460px; margin-top: 40px; }
.theme-choice { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Extras ---------- */
.extras-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.extras-grid .card + .card { margin-top: 0; }
.extra-card { display: flex; flex-direction: column; }
.extra-card button { margin-top: auto; }
.extra-price { font-size: 1.6rem; font-weight: 800; color: var(--c-accent-d); margin-top: 8px; }
.extra-card .small { margin-bottom: 12px; }
.extra-featured { border-color: var(--c-hl-bd); }
.pay-box { background: var(--c-bg); padding: 16px; border-radius: var(--radius-s); margin: 16px 0; }
.pay-box .facts { background: var(--c-card); }

/* ---------- Prüfergebnis ---------- */
.mod-note { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; padding: 2px 8px; border-radius: 6px; font-size: .8rem; background: var(--s-pend-bg); color: var(--s-pend-tx); }
.mod-box { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-s); margin: 0 0 12px; font-size: .9rem; }
.mod-box .ic { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.mod-hold { background: var(--s-pend-bg); color: var(--s-pend-tx); }
.mod-ok { background: var(--s-ok-bg); color: var(--s-ok-tx); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .3px; color: var(--c-muted); background: var(--c-surface); }
.table tr:last-child td { border-bottom: 0; }
.td-thumb img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; }
.row-top td { background: var(--c-surface); }
.row-off td { opacity: .55; }
.indent { padding-left: 28px !important; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 220px; }
.bulk { display: flex; gap: 8px; align-items: center; padding: 12px; border-top: 1px solid var(--c-border); flex-wrap: wrap; }
.bulk input { width: 260px; }
.simple-list { list-style: none; margin: 0 0 12px; padding: 0; }
.simple-list li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--c-border); }

/* ---------- Zurück-Link ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 10px; padding: 6px 12px 6px 8px; border-radius: 999px; color: var(--c-muted); font-weight: 600; font-size: .92rem; }
.back-link .ic { width: 18px; height: 18px; }
.back-link:hover { background: var(--c-surface); color: var(--c-text); text-decoration: none; }
.back-link + .breadcrumb { margin-top: 0; }

/* ---------- Seiten ---------- */
.prose h2 { margin-top: 1.4em; font-size: 1.2rem; }
.prose p { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #c8d2da; padding: 40px 0 20px; margin-top: 40px; }
.site-footer a { display: block; color: #c8d2da; padding: 3px 0; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.logo-footer .logo-text { color: #fff; }
.logo-footer .logo-text span { color: #5eead4; }
.site-footer .muted { color: #8a99a6; margin-top: 10px; }
.footer-bottom { border-top: 1px solid #22323d; margin-top: 28px; padding-top: 16px; font-size: .85rem; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: #0f1c24; color: #c8d2da; padding: 18px 12px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-side .logo { margin: 0 8px 22px; }
.admin-side .logo-text { color: #fff; }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 8px; color: #c8d2da; font-weight: 500; }
.admin-side nav a:hover { background: #1a2b36; text-decoration: none; }
.admin-side nav a.active { background: var(--c-primary); color: #fff; }
.admin-side-foot { margin-top: auto; padding: 12px; font-size: .88rem; display: flex; flex-direction: column; gap: 8px; }
.admin-side-foot a, .admin-side-foot .linklike { color: #8a99a6; text-align: left; }
.admin-main { min-width: 0; }
.admin-top { display: flex; align-items: center; gap: 12px; padding: 16px 28px; background: var(--c-card); border-bottom: 1px solid var(--c-border); }
.admin-top h1 { margin: 0; font-size: 1.35rem; }
.admin-top .icon-btn { margin-left: auto; }
.admin-content { padding: 24px 28px 48px; }
.admin .tabs { margin-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-grid .card + .card { margin-top: 0; }
.stat { padding: 18px; display: flex; flex-direction: column; color: var(--c-text); }
a.stat:hover { text-decoration: none; box-shadow: var(--shadow-h); }
.stat-n { font-size: 1.9rem; font-weight: 800; }
.stat-l { color: var(--c-muted); font-size: .9rem; }
.stat-warn { border-left: 4px solid #e0a106; }
.stat-danger { border-left: 4px solid var(--c-danger); }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.admin-grid-2.wide-left { grid-template-columns: 1fr 360px; }
.admin-grid-2 > .card + .card, .admin-grid-2 > aside + aside { margin-top: 0; }
.admin-grid-2 aside > .card + .card { margin-top: 16px; }
.settings-form > .card { margin-bottom: 18px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding: 10px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.bar { width: 100%; max-width: 30px; background: var(--c-primary); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-val { font-size: .72rem; color: var(--c-muted); }
.bar-lbl { font-size: .72rem; color: var(--c-muted); }
.bar-h0 { height: 2px; } .bar-h1 { height: 10%; } .bar-h2 { height: 20%; } .bar-h3 { height: 30%; } .bar-h4 { height: 40%; } .bar-h5 { height: 50%; }
.bar-h6 { height: 60%; } .bar-h7 { height: 70%; } .bar-h8 { height: 80%; } .bar-h9 { height: 90%; } .bar-h10 { height: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  /* Seitenleiste weg, untere Leiste + Logo oben */
  .sidenav { display: none; }
  .page { margin-left: 0; padding-bottom: 66px; }
  .topbar .logo { display: inline-flex; }
  .topbar .cta-top { display: none; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 62px;
    padding-bottom: env(safe-area-inset-bottom); background: var(--c-card); border-top: 1px solid var(--c-border); box-shadow: 0 -2px 10px rgba(0, 0, 0, .06); }
  .bottomnav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--c-muted); font-size: .7rem; font-weight: 600; text-decoration: none; }
  .bottomnav a .ic { width: 22px; height: 22px; }
  .bottomnav a.active { color: var(--c-link); }
  .bottomnav .bn-post .bn-plus { display: grid; place-items: center; width: 42px; height: 42px; margin-top: -16px; border-radius: 50%; background: var(--c-accent); color: #fff; box-shadow: 0 4px 12px rgba(242, 107, 29, .4); }
  .bottomnav .badge { position: absolute; top: 6px; left: 50%; margin-left: 6px; font-size: .65rem; min-width: 17px; padding: 0 5px; }
  .site-footer { margin-top: 24px; }
}
@media (max-width: 960px) {
  .search-layout, .detail-layout { grid-template-columns: 1fr; }
  .detail-layout { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .seller-page { grid-template-columns: 1fr; }
  .detail-main, .detail-side { display: contents; }
  .detail-main > .card + .card, .detail-side > * + * { margin-top: 0; }
  .detail-layout .gallery { order: 1; }
  .detail-layout .dinfo { order: 2; }
  .detail-layout .tiles { order: 3; }
  .detail-layout .seller { order: 4; }
  .detail-layout .detail-desc { order: 5; }
  .detail-layout .safety { order: 6; }
  .detail-layout .report { order: 7; }
  .filters { display: none; }
  .filters.open { display: block; }
  .filter-form { position: static; max-height: none; }
  .only-mobile { display: inline-flex !important; }
  .detail-side { position: static; }
  .msg-layout { grid-template-columns: 1fr; }
  .msg-layout.has-thread .conv-list { display: none; }
  .msg-layout:not(.has-thread) .thread { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .usp { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; position: fixed; z-index: 60; width: 250px; }
  .admin-side.open { display: flex; }
  .admin-top .nav-toggle { display: block; margin: 0; }
  .admin-grid-2, .admin-grid-2.wide-left { grid-template-columns: 1fr; }
  .admin-content { padding: 18px; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hero-search input[name=q] { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .topbar-row { flex-wrap: wrap; gap: 8px 10px; padding: 8px 0; min-height: 0; }
  .header-search { order: 5; flex-basis: 100%; max-width: none; }
  .cs-item { width: 30px; height: 30px; }
  .cs-item .flag { width: 21px; height: 21px; }
  .cs-item .ic { width: 20px; height: 20px; }
  .logo-text { font-size: 1.05rem; }
  .hero { padding: 28px 0 32px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 16px; }
  .hero-search { grid-template-columns: 1fr; }
  .lgrid, .lgrid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lcard-body { padding: 9px 10px 10px; }
  .lcard-price { font-size: .98rem; }
  .lcard-title { font-size: .9rem; }
  .lcard-meta { flex-direction: column; gap: 0; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat-grid.cat-photos { grid-template-columns: 1fr 1fr; }
  .cat-photo { height: 112px; }
  .cat-tile { padding: 10px 12px; gap: 10px; }
  .cat-icon { flex-basis: 36px; width: 36px; height: 36px; border-radius: 9px; }
  .cat-icon .ic { width: 19px; height: 19px; }
  .cat-name { font-size: .9rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .my-item { grid-template-columns: 90px 1fr; }
  .my-thumb { width: 90px; height: 70px; }
  .my-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .pad-lg { padding: 22px; }
  .facts { grid-template-columns: 1fr 1.4fr; }
  .msg { max-width: 90%; }
}

@media (max-width: 560px) {
  .equip-grid { grid-template-columns: 1fr 1fr; }
  .equip-show { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px; }
}
@media print {
  .sidenav, .topbar, .bottomnav, .site-footer, .back-link, .owner-bar, .no-print, .dinfo-actions, .seller form, .seller .btn, .seller details,
  .gallery-thumbs, .gal-nav, .gal-count, .flash, .geo-hint, .section { display: none !important; }
  .page { margin: 0; padding: 0; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .detail-layout { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .detail-main, .detail-side { display: contents; }
  .detail-layout .card + .card { margin-top: 0; }
  .detail-layout .dinfo { order: 1; }
  .detail-layout .gallery { order: 2; }
  .detail-layout .tiles { order: 3; }
  .detail-layout .detail-desc { order: 4; break-inside: auto; }
  .detail-layout .seller { order: 5; }
  .gallery-main { height: auto !important; aspect-ratio: auto !important; min-height: 0 !important; background: none !important; }
  .gallery-main img { position: static !important; display: block; max-height: 8cm; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  a { color: #000; text-decoration: none; }
}
