/* =========================================================
   Outswap — Design System
   Alpin/topografisches Thema. Space Grotesk + Inter.
   ========================================================= */

:root {
  --pine:        #163a2e;
  --pine-deep:   #0f2a21;
  --moss:        #2f6b4f;
  --moss-light:  #e7efe9;
  --orange:      #e0632a;
  --orange-warm: #e8662a;
  --orange-deep: #c44e1c;
  --stone:       #f4f6f3;
  --stone-2:     #eef1ec;
  --ink:         #14211c;
  --mist:        #6b7d73;
  --line:        #dde4df;
  --line-soft:   #e8ede9;
  --white:       #ffffff;
  --danger:      #b23b2e;

  --radius:      14px;
  --radius-sm:   9px;
  --radius-lg:   22px;
  --shadow-sm:   0 1px 2px rgba(20,33,28,.05), 0 1px 3px rgba(20,33,28,.06);
  --shadow-md:   0 4px 14px rgba(20,33,28,.08), 0 2px 6px rgba(20,33,28,.05);
  --shadow-lg:   0 14px 40px rgba(15,42,33,.16);

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--stone);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; color: var(--ink); margin: 0; font-weight: 600; }

a { color: var(--moss); text-decoration: none; }
a:hover { color: var(--pine); }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--pine); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ---------------- Layout helpers ---------------- */
.site-main { min-height: 60vh; }
.page { max-width: var(--maxw); margin: 0 auto; padding: 2.2rem 1.25rem 3rem; }
.page-narrow { max-width: 760px; }

.muted { color: var(--mist); font-weight: 400; }
.muted-block { color: var(--mist); padding: 2rem 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .72rem 1.3rem; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  cursor: pointer; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 2px 0 var(--orange-deep); }
.btn-primary:hover { background: var(--orange-warm); color: #fff; }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); border-color: var(--moss); color: var(--pine); }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem .9rem; font-size: .88rem; }
.btn + .btn-block { margin-top: .55rem; }

.btn-danger-link {
  background: none; border: none; color: var(--danger); font-weight: 600;
  font-family: var(--font-body); padding: .3rem 0; font-size: .92rem; text-decoration: underline;
}
.btn-danger-link:hover { color: #8d2c22; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; align-items: center; gap: 1.1rem;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--pine); flex-shrink: 0; }
.brand:hover { color: var(--pine); }
.brand-mark { color: var(--moss); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.brand-accent { color: var(--orange); }

.header-search { flex: 1; display: flex; max-width: 560px; }
.header-search input {
  flex: 1; border: 1.5px solid var(--line); border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: .6rem .9rem; font-size: .95rem;
  background: var(--white); color: var(--ink); min-width: 0;
}
.header-search input:focus { outline: none; border-color: var(--moss); }
.header-search button {
  border: 1.5px solid var(--moss); background: var(--moss); color: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0 .95rem; display: grid; place-items: center;
}
.header-search button:hover { background: var(--pine); border-color: var(--pine); }

.header-nav { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.nav-cta {
  background: var(--orange); color: #fff; font-family: var(--font-display); font-weight: 600;
  padding: .55rem .95rem; border-radius: var(--radius-sm); font-size: .92rem; box-shadow: 0 2px 0 var(--orange-deep);
}
.nav-cta:hover { background: var(--orange-warm); color: #fff; }
.nav-link { color: var(--pine); font-weight: 500; padding: .5rem .7rem; border-radius: 8px; font-size: .95rem; }
.nav-link:hover { background: var(--stone-2); }
.nav-link-strong { color: var(--pine); font-weight: 600; }

.nav-icon { position: relative; color: var(--pine); padding: .4rem; border-radius: 8px; display: grid; place-items: center; }
.nav-icon:hover { background: var(--stone-2); color: var(--pine); }
.badge {
  position: absolute; top: -2px; right: -2px; background: var(--orange); color: #fff;
  font-size: .66rem; font-weight: 700; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; display: grid; place-items: center; border: 2px solid var(--white);
}

.nav-menu { position: relative; }
.nav-avatar {
  display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1.5px solid var(--line);
  border-radius: 40px; padding: .25rem .6rem .25rem .25rem; color: var(--ink);
}
.nav-avatar:hover { border-color: var(--moss); }
.nav-username { font-size: .9rem; font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  width: 30px; height: 30px; border-radius: 50%; color: #fff; font-family: var(--font-display);
  font-weight: 600; font-size: .8rem; display: grid; place-items: center; flex-shrink: 0; letter-spacing: .02em;
}
.avatar-lg { width: 52px; height: 52px; font-size: 1.15rem; }
.avatar-xl { width: 76px; height: 76px; font-size: 1.7rem; }

.menu-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); width: 215px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .4rem; display: none; flex-direction: column;
}
.menu-dropdown.open { display: flex; }
.menu-dropdown a { padding: .55rem .7rem; border-radius: 8px; color: var(--ink); font-size: .92rem; font-weight: 500; }
.menu-dropdown a:hover { background: var(--stone-2); }
.menu-logout { border-top: 1px solid var(--line-soft); margin-top: .3rem; padding-top: .3rem; }
.menu-logout button {
  width: 100%; text-align: left; background: none; border: none; padding: .55rem .7rem;
  border-radius: 8px; color: var(--danger); font-weight: 600; font-size: .92rem; font-family: var(--font-body);
}
.menu-logout button:hover { background: #fbeae7; }
.dot-badge { background: var(--orange); color: #fff; font-size: .68rem; padding: 0 6px; border-radius: 8px; font-weight: 700; }

.burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: .5rem; }
.burger span { width: 22px; height: 2px; background: var(--pine); border-radius: 2px; display: block; }

/* ---------------- Flash ---------------- */
.flash-stack { max-width: var(--maxw); margin: 1rem auto 0; padding: 0 1.25rem; display: grid; gap: .5rem; }
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1.1rem; border-radius: var(--radius-sm); font-weight: 500; font-size: .95rem;
  border: 1px solid; box-shadow: var(--shadow-sm); animation: flashIn .25s ease;
}
@keyframes flashIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.flash-success { background: var(--moss-light); border-color: #bcd6c5; color: #1d4a36; }
.flash-error   { background: #fbeae7; border-color: #f1c4bb; color: #8d2c22; }
.flash-close { background: none; border: none; font-size: 1.3rem; line-height: 1; color: inherit; opacity: .6; padding: 0 .2rem; }
.flash-close:hover { opacity: 1; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; background: linear-gradient(160deg, var(--pine) 0%, var(--pine-deep) 100%);
  color: #fff;
}
.hero-topo { position: absolute; inset: 0; color: rgba(255,255,255,.13); pointer-events: none; }
.hero-topo svg { width: 100%; height: 100%; }
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; padding: 3.6rem 1.25rem 3.2rem; text-align: center; }
.hero-title { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -.02em; color: #fff; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.18rem); color: rgba(255,255,255,.82); max-width: 620px; margin: 1rem auto 1.8rem; }

.hero-search { display: flex; max-width: 580px; margin: 0 auto; box-shadow: var(--shadow-lg); border-radius: var(--radius); }
.hero-search input {
  flex: 1; border: none; padding: .95rem 1.2rem; font-size: 1.02rem; border-radius: var(--radius) 0 0 var(--radius);
  background: #fff; color: var(--ink); min-width: 0;
}
.hero-search input:focus { outline: none; }
.hero-search button {
  border: none; background: var(--orange); color: #fff; font-family: var(--font-display); font-weight: 600;
  padding: 0 1.6rem; font-size: 1rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.hero-search button:hover { background: var(--orange-warm); }

.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.7rem; }
.chip {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff;
  padding: .42rem .85rem; border-radius: 40px; font-size: .85rem; font-weight: 500; backdrop-filter: blur(4px);
}
.chip:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ---------------- Browse / Filters ---------------- */
.browse { max-width: var(--maxw); margin: 0 auto; padding: 2.2rem 1.25rem 3rem; }
.browse-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.browse-titlewrap { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.browse-title { font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; }
.browse-count { color: var(--mist); font-size: .95rem; font-weight: 500; }

.browse-sort { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--mist); }
.browse-sort select, .filters select {
  font-family: var(--font-body); font-size: .9rem; padding: .5rem .7rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
}
.browse-sort select:focus { outline: none; border-color: var(--moss); }

.browse-layout { display: grid; grid-template-columns: 232px 1fr; gap: 1.8rem; align-items: start; }

.filters {
  position: sticky; top: 84px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow-sm);
}
.filter-group { margin-bottom: 1.3rem; }
.filter-group:last-of-type { margin-bottom: .5rem; }
.filter-group h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mist); margin-bottom: .6rem; font-weight: 600; }
.filter-pill {
  display: inline-block; padding: .35rem .8rem; border-radius: 40px; border: 1.5px solid var(--line);
  color: var(--ink); font-size: .85rem; font-weight: 500; margin: 0 .3rem .35rem 0;
}
.filter-pill:hover { border-color: var(--moss); color: var(--pine); }
.filter-pill.active { background: var(--pine); border-color: var(--pine); color: #fff; }

.filter-link {
  display: flex; align-items: center; gap: .5rem; padding: .42rem .55rem; border-radius: 8px;
  color: var(--ink); font-size: .9rem; font-weight: 500; margin-bottom: .12rem;
}
.filter-link:hover { background: var(--stone-2); color: var(--pine); }
.filter-link.active { background: var(--moss-light); color: var(--pine); font-weight: 600; }
.filter-reset { display: inline-block; margin-top: .6rem; font-size: .85rem; color: var(--orange-deep); font-weight: 600; }

/* ---------------- Grid + Cards ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 1.2rem; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd9d1; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--stone-2); display: block; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: #c2cec6; }

.card-tags { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .35rem; }
.tag {
  font-family: var(--font-display); font-size: .72rem; font-weight: 600; padding: .25rem .55rem;
  border-radius: 7px; letter-spacing: .01em; color: #fff; box-shadow: var(--shadow-sm);
}
.tag-trade { background: var(--moss); }
.tag-both  { background: var(--pine); }
.tag-sell  { background: var(--pine); }
.tag-status { background: var(--mist); }

.status-ribbon {
  position: absolute; top: .6rem; right: .6rem; font-family: var(--font-display); font-size: .72rem;
  font-weight: 600; padding: .25rem .55rem; border-radius: 7px; color: #fff; box-shadow: var(--shadow-sm);
}
.status-reserved { background: var(--orange); }
.status-sold { background: #5a6b61; }
.status-inactive { background: #97a39b; }

.card-body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.card-pricerow { display: flex; align-items: center; }
.card-price { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--orange-deep); }
.card-price-trade { color: var(--moss); font-size: 1rem; }
.card-title { font-size: .98rem; font-weight: 600; line-height: 1.3; margin: .1rem 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--moss); }
.card-meta { font-size: .82rem; color: var(--mist); }
.card-cond { color: var(--moss); font-weight: 600; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .5rem; font-size: .76rem; color: var(--mist); }
.card-cat { display: inline-flex; align-items: center; gap: .25rem; }

.card-manage { display: flex; align-items: center; gap: .4rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.mini-btn { font-size: .8rem; font-weight: 600; padding: .35rem .65rem; border-radius: 7px; background: var(--moss-light); color: var(--pine); }
.mini-btn:hover { background: #d8e6dd; }
.mini-ghost { background: transparent; border: 1px solid var(--line); }
.card-views { margin-left: auto; font-size: .74rem; color: var(--mist); }

/* ---------------- Empty + Pagination ---------------- */
.empty {
  text-align: center; padding: 3.5rem 1.5rem; background: var(--white); border: 1px dashed var(--line);
  border-radius: var(--radius-lg); color: var(--mist); display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.empty svg { color: #c2cec6; }
.empty h3 { font-size: 1.25rem; color: var(--ink); margin-top: .3rem; }
.empty p { max-width: 420px; margin: 0; }
.empty .btn { margin-top: .8rem; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.2rem; }
.page-btn { padding: .55rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); color: var(--pine); font-weight: 600; font-size: .9rem; background: var(--white); }
.page-btn:hover { border-color: var(--moss); background: var(--moss-light); }
.page-info { font-size: .9rem; color: var(--mist); }

/* ---------------- Forms ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.page-head h1 { font-size: 1.8rem; font-weight: 700; }
.page-sub { color: var(--mist); margin: .25rem 0 0; font-size: .95rem; }

.formpage { max-width: 720px; margin: 0 auto; padding: 2.2rem 1.25rem 3.5rem; }
.formpage-inner { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.formpage-head { margin-bottom: 1.6rem; }
.formpage-head h1 { font-size: 1.7rem; font-weight: 700; }
.formpage-head p { color: var(--mist); margin: .4rem 0 0; }

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--ink); font-family: var(--font-display); }
.field .opt { color: var(--mist); font-weight: 400; font-family: var(--font-body); font-size: .85rem; }
.field small { color: var(--mist); font-size: .82rem; }
.field-hint { color: var(--mist); font-size: .85rem; margin: 0 0 .2rem; }

.form input[type=text], .form input[type=email], .form input[type=password],
.form input[type=search], .form textarea, .form select {
  width: 100%; font-family: var(--font-body); font-size: .98rem; padding: .7rem .85rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form textarea { resize: vertical; line-height: 1.55; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(47,107,79,.12);
}

.form-errors { background: #fbeae7; border: 1px solid #f1c4bb; border-radius: var(--radius-sm); padding: .9rem 1.1rem; color: #8d2c22; }
.form-errors ul { margin: 0; padding-left: 1.1rem; }
.form-errors li { margin: .15rem 0; font-size: .92rem; }

.form-actions { display: flex; gap: .7rem; margin-top: .5rem; flex-wrap: wrap; }

/* Segmented control (Angebotsart) */
.offer-field { border: none; padding: 0; margin: 0; }
.segmented { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .2rem; }
.seg {
  flex: 1; min-width: 140px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .65rem .8rem; text-align: center; cursor: pointer; font-weight: 600; font-size: .92rem;
  color: var(--mist); background: var(--white); transition: all .12s ease;
}
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg:hover { border-color: var(--moss); color: var(--pine); }
.seg-active { border-color: var(--pine); background: var(--pine); color: #fff; }

.price-input { display: flex; align-items: stretch; }
.price-prefix {
  display: grid; place-items: center; padding: 0 .85rem; background: var(--stone-2);
  border: 1.5px solid var(--line); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: var(--font-display); font-weight: 600; color: var(--mist); font-size: .9rem;
}
.price-input input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }

/* File upload */
.filedrop { position: relative; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--stone); transition: border-color .15s ease, background .15s ease; }
.filedrop.dragover { border-color: var(--moss); background: var(--moss-light); }
.filedrop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.filedrop-label { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.8rem 1rem; color: var(--mist); pointer-events: none; text-align: center; }
.filedrop-label span { font-weight: 500; font-size: .92rem; }
.filepreview { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; }
.filepreview .pv { position: relative; width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.filepreview .pv img { width: 100%; height: 100%; object-fit: cover; }

.img-existing { display: flex; flex-wrap: wrap; gap: .7rem; }
.img-thumb { position: relative; width: 110px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--stone-2); cursor: pointer; }
.img-thumb img { width: 100%; height: 84px; object-fit: cover; }
.img-remove { display: flex; align-items: center; gap: .3rem; justify-content: center; font-size: .76rem; color: var(--mist); padding: .35rem; background: var(--white); }
.img-thumb input { accent-color: var(--danger); }

/* ---------------- Auth ---------------- */
.auth { max-width: 560px; margin: 0 auto; padding: 2.8rem 1.25rem 3.5rem; }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow-md); }
.auth-head { text-align: center; margin-bottom: 1.6rem; }
.auth-head h1 { font-size: 1.8rem; font-weight: 700; }
.auth-head p { color: var(--mist); margin: .5rem 0 0; }
.auth-alt { text-align: center; margin-top: 1.4rem; color: var(--mist); font-size: .93rem; }
.auth-alt a { font-weight: 600; }

/* ---------------- Detail ---------------- */
.detail { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1.25rem 3.5rem; }
.breadcrumb { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--mist); margin-bottom: 1.2rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--moss); }
.crumb-current { color: var(--ink); font-weight: 500; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, 1fr); gap: 2rem; align-items: start; }

.gallery-main { aspect-ratio: 4 / 3; background: var(--stone-2); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { display: grid; place-items: center; color: #c2cec6; }
.gallery-thumbs { display: flex; gap: .55rem; margin-top: .7rem; flex-wrap: wrap; }
.gthumb { width: 76px; height: 62px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--stone-2); }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb.active { border-color: var(--orange); }
.gthumb:hover { border-color: var(--moss); }

.detail-info { display: flex; flex-direction: column; gap: 1rem; }
.detail-badges { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cond-badge {
  font-family: var(--font-display); font-size: .76rem; font-weight: 600; padding: .28rem .6rem;
  border-radius: 7px; border: 1.5px solid var(--moss); color: var(--pine); background: var(--moss-light);
}
.detail-title { font-size: 1.85rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.detail-price { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.big-price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--orange-deep); }
.big-price-trade { color: var(--moss); font-size: 1.7rem; }
.price-note { color: var(--mist); font-size: .95rem; font-weight: 500; }

.trade-box { background: var(--moss-light); border: 1px solid #c6dccd; border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .94rem; color: #1d4a36; }

.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .8rem; margin: 0; border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.detail-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line-soft); }
.detail-facts dt { color: var(--mist); font-size: .9rem; margin: 0; }
.detail-facts dd { margin: 0; font-weight: 600; font-size: .9rem; text-align: right; }

.owner-panel, .contact-panel, .seller-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.owner-panel h3, .contact-panel h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.owner-actions { margin-bottom: .9rem; }
.status-form { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .8rem 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin-bottom: .8rem; }
.status-form label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.status-form select { flex: 1; min-width: 130px; padding: .5rem .6rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-body); }
.delete-form { text-align: center; }

.merken-row { margin-bottom: 1rem; }
.btn-merken {
  display: inline-flex; align-items: center; gap: .45rem; background: var(--white); border: 1.5px solid var(--line);
  color: var(--pine); font-family: var(--font-display); font-weight: 600; padding: .55rem 1rem; border-radius: var(--radius-sm); font-size: .92rem;
}
.btn-merken:hover { border-color: var(--orange); color: var(--orange-deep); }
.btn-merken.is-fav { background: #fdeee7; border-color: var(--orange); color: var(--orange-deep); }

.contact-form { display: flex; flex-direction: column; gap: .7rem; }
.contact-form textarea {
  width: 100%; font-family: var(--font-body); font-size: .96rem; padding: .7rem .85rem; line-height: 1.5;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); resize: vertical;
}
.contact-form textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(47,107,79,.12); }

.seller-card { display: flex; align-items: center; gap: .9rem; }
.seller-meta { display: flex; flex-direction: column; gap: .12rem; }
.seller-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1rem; }
.seller-name:hover { color: var(--moss); }
.seller-loc, .seller-since { font-size: .82rem; color: var(--mist); }

.detail-desc { margin-top: 2.4rem; max-width: 760px; }
.detail-desc h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.detail-desc p { white-space: pre-wrap; color: #2c3a33; line-height: 1.7; }

/* ---------------- Profile ---------------- */
.profile-header { display: flex; gap: 1.4rem; align-items: flex-start; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.profile-headmeta h1 { font-size: 1.7rem; font-weight: 700; }
.profile-sub { color: var(--mist); margin-top: .2rem; font-weight: 500; }
.profile-since { color: var(--mist); font-size: .85rem; margin-top: .2rem; }
.profile-bio { margin: .8rem 0 1rem; max-width: 560px; color: #2c3a33; }
.profile-listings h2 { font-size: 1.35rem; margin-bottom: 1.1rem; }

.profile-summary { display: flex; gap: 1.1rem; align-items: center; padding: 1.1rem; background: var(--stone); border-radius: var(--radius); margin-bottom: 1.6rem; }
.profile-username { font-family: var(--font-display); font-weight: 600; }
.profile-email { color: var(--mist); font-size: .9rem; }
.profile-publiclink { font-size: .85rem; font-weight: 600; margin-top: .2rem; display: inline-block; }
.account-meta { margin-top: 1.4rem; font-size: .85rem; color: var(--mist); text-align: center; }

/* ---------------- Messages ---------------- */
.conv-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); }
.conv-item { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.conv-list li:last-child .conv-item { border-bottom: none; }
.conv-item:hover { background: var(--stone); }
.conv-unread { background: var(--moss-light); }
.conv-unread:hover { background: #dceae1; }
.conv-body { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.conv-name { font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.conv-time { color: var(--mist); font-size: .78rem; flex-shrink: 0; }
.conv-preview { display: block; color: var(--mist); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.conv-you { color: var(--moss); font-weight: 600; }
.conv-badge { background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }

.conversation { display: flex; flex-direction: column; }
.conv-header { display: flex; align-items: center; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.conv-back { font-size: 1.6rem; color: var(--pine); line-height: 1; padding: 0 .3rem; }
.conv-headname { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.conv-headsub { color: var(--mist); font-size: .82rem; display: block; }

.thread { display: flex; flex-direction: column; gap: .6rem; padding: .5rem 0 1.2rem; min-height: 200px; }
.thread-empty { text-align: center; color: var(--mist); padding: 2rem; }
.bubble-row { display: flex; }
.bubble-mine { justify-content: flex-end; }
.bubble-theirs { justify-content: flex-start; }
.bubble { max-width: 75%; padding: .65rem .9rem; border-radius: 16px; position: relative; }
.bubble p { margin: 0; white-space: pre-wrap; line-height: 1.45; font-size: .96rem; }
.bubble-time { display: block; font-size: .7rem; margin-top: .25rem; opacity: .7; }
.bubble-mine .bubble { background: var(--pine); color: #fff; border-bottom-right-radius: 5px; }
.bubble-theirs .bubble { background: var(--white); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 5px; }

.reply-form { display: flex; gap: .6rem; align-items: flex-end; position: sticky; bottom: 0; background: var(--stone); padding: .8rem 0; border-top: 1px solid var(--line); }
.reply-form textarea {
  flex: 1; font-family: var(--font-body); font-size: .96rem; padding: .7rem .9rem; line-height: 1.5;
  border: 1.5px solid var(--line); border-radius: var(--radius); resize: none; background: var(--white); max-height: 160px;
}
.reply-form textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(47,107,79,.12); }

/* ---------------- Error pages ---------------- */
.errorpage { max-width: 620px; margin: 0 auto; padding: 4rem 1.25rem 5rem; text-align: center; }
.error-topo { color: var(--moss); opacity: .35; display: flex; justify-content: center; margin-bottom: .5rem; }
.errorpage h1 { font-size: 4rem; font-weight: 700; color: var(--pine); letter-spacing: -.02em; }
.errorpage h2 { font-size: 1.5rem; margin-top: .3rem; }
.errorpage p { color: var(--mist); margin: 1rem auto 1.8rem; max-width: 440px; }
.error-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.error-detail { text-align: left; background: var(--stone-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; font-size: .8rem; overflow: auto; color: #5a6b61; margin-bottom: 1.5rem; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--pine-deep); color: rgba(255,255,255,.78); margin-top: 3rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.8rem 1.25rem 1.8rem; display: grid; grid-template-columns: 1.4fr 2fr; gap: 2rem; }
.footer-brand .brand-name { color: #fff; font-size: 1.35rem; }
.footer-brand p { margin: .7rem 0 0; font-size: .9rem; max-width: 280px; line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .8rem; font-weight: 600; }
.footer-col a { display: block; color: rgba(255,255,255,.72); font-size: .9rem; padding: .22rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom span { display: block; max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 1.25rem; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .browse-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-search { display: none; }
  .header-nav { display: none; }
  .header-nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: .4rem;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; box-shadow: var(--shadow-md);
  }
  .header-nav.open .nav-link, .header-nav.open .nav-cta { text-align: center; }
  .header-nav.open .nav-icon { display: none; }
  .header-nav.open .nav-menu { width: 100%; }
  .header-nav.open .nav-avatar { display: none; }
  .header-nav.open .menu-dropdown { position: static; display: flex; box-shadow: none; border: none; width: 100%; padding: 0; }
  .burger { display: flex; margin-left: auto; }
  .field-row { grid-template-columns: 1fr; }
  .detail-facts { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .formpage-inner, .auth-card { padding: 1.4rem; }
  .hero-inner { padding: 2.6rem 1.25rem; }
}

@media (max-width: 460px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
  .browse-title { font-size: 1.4rem; }
  .segmented { flex-direction: column; }
  .seg { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .card:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
}

/* ===================================================================
   Admin-Bereich
   =================================================================== */
.admin-bar {
  background: var(--pine-deep);
  color: #cfe0d6;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.admin-bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.admin-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  letter-spacing: .02em;
}
.admin-subnav {
  display: flex;
  gap: .35rem;
  flex: 1;
}
.admin-subnav a {
  color: #b9cdc1;
  text-decoration: none;
  padding: .4rem .85rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  transition: background .15s, color .15s;
}
.admin-subnav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-subnav a.is-active { background: var(--orange); color: #fff; }
.admin-exit { color: #9fb6a9; text-decoration: none; font-size: .9rem; }
.admin-exit:hover { color: #fff; }

.admin-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.admin-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.admin-count {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--moss);
  background: var(--moss-light);
  padding: .12rem .6rem;
  border-radius: 999px;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.admin-head .admin-title { margin-bottom: 0; }
.admin-filters { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.admin-search { display: flex; gap: .4rem; align-items: center; }
.admin-search input[type="search"] {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .5rem .8rem;
  font: inherit;
  min-width: 240px;
  background: var(--white);
}
.admin-search button, .admin-select {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: .5rem .9rem;
  font: inherit;
  cursor: pointer;
}
.admin-search button { background: var(--pine); color: #fff; border-color: var(--pine); font-weight: 600; }
.admin-clear { color: var(--mist); font-size: .9rem; text-decoration: none; }
.admin-clear:hover { color: var(--ink); text-decoration: underline; }

/* Statistik-Karten */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.stat-card-accent { background: linear-gradient(150deg, var(--pine), var(--moss)); border-color: transparent; }
.stat-card-accent .stat-label, .stat-card-accent .stat-sub { color: rgba(255, 255, 255, .8); }
.stat-card-accent .stat-value { color: #fff; }
.stat-label { font-size: .8rem; color: var(--mist); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat-value-sm { font-size: 1rem; font-weight: 500; }
.stat-sub { font-size: .85rem; color: var(--mist); }

/* Panels / Spalten */
.admin-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.admin-h2 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin: 0 0 1rem; }
.admin-empty { color: var(--mist); padding: 1rem 0; }
.admin-more { display: inline-block; margin-top: .9rem; color: var(--moss); font-weight: 600; text-decoration: none; font-size: .92rem; }
.admin-more:hover { text-decoration: underline; }

/* Balkenliste */
.bar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.bar-list li { display: grid; grid-template-columns: 90px 1fr 34px; align-items: center; gap: .7rem; }
.bar-label { font-size: .88rem; color: var(--ink); }
.bar-track { background: var(--stone-2); border-radius: 999px; height: 9px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--moss); min-width: 2px; }
.bar-fill.status-active { background: var(--moss); }
.bar-fill.status-reserved { background: var(--orange); }
.bar-fill.status-sold { background: var(--pine); }
.bar-fill.status-inactive { background: #b6c2bb; }
.bar-num { text-align: right; font-weight: 600; color: var(--ink); font-size: .9rem; }

.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.tag-list li { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--ink); }
.tag-ico { font-size: 1.05rem; }
.tag-num { margin-left: auto; font-weight: 600; color: var(--moss); }

/* Mini-Listen */
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mini-list li { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.mini-list li:last-child { border-bottom: 0; }
.mini-main { flex: 1; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; min-width: 0; }
.mini-main a { color: var(--ink); text-decoration: none; font-weight: 500; }
.mini-main a:hover { color: var(--moss); }
.mini-meta { font-size: .82rem; color: var(--mist); white-space: nowrap; }

/* Avatare klein */
.avatar-sm { width: 30px; height: 30px; font-size: .72rem; flex: 0 0 auto; }

/* Pills & Badges */
.pill { font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; letter-spacing: .02em; }
.pill-admin { background: #e7eef9; color: #2c5b9c; }
.pill-banned { background: #fbe4e1; color: var(--danger); }
.pill-ok { background: var(--moss-light); color: var(--moss); }
.pill-you { background: var(--stone-2); color: var(--mist); }

.badge-status { font-size: .76rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.badge-status.status-active { background: var(--moss-light); color: var(--moss); }
.badge-status.status-reserved { background: #fdeee2; color: var(--orange-deep); }
.badge-status.status-sold { background: #e6ece9; color: var(--pine); }
.badge-status.status-inactive { background: var(--stone-2); color: var(--mist); }

/* Tabelle */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table thead th {
  text-align: left;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--mist);
  font-weight: 700;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--stone);
  white-space: nowrap;
}
.admin-table tbody td { padding: .75rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--stone); }
.admin-table th.num, .admin-table td.num { text-align: right; }
.admin-table .nowrap { white-space: nowrap; }
.admin-table .muted { color: var(--mist); }
.admin-table .small { font-size: .82rem; }
.actions-col { width: 1%; white-space: nowrap; }

.user-cell { display: flex; align-items: center; gap: .65rem; }
.user-name { color: var(--ink); font-weight: 600; text-decoration: none; }
.user-name:hover { color: var(--moss); }
.user-handle { font-size: .82rem; color: var(--mist); }

.listing-cell { display: flex; align-items: center; gap: .7rem; }
.cell-thumb {
  width: 44px; height: 44px; border-radius: var(--radius-sm); flex: 0 0 auto;
  background-size: cover; background-position: center; background-color: var(--stone-2);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.cell-thumb-empty { color: var(--mist); }
.listing-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.listing-link:hover { color: var(--moss); }

/* Zeilen-Aktionen */
.row-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.btn-mini {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: .35rem .65rem;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-mini:hover { background: var(--stone); border-color: var(--mist); }
.btn-warn { color: var(--orange-deep); border-color: #f1cdb6; }
.btn-warn:hover { background: #fdeee2; }
.btn-danger { color: var(--danger); border-color: #eab9b2; }
.btn-danger:hover { background: #fbe4e1; }
.status-form { display: flex; align-items: center; gap: .3rem; }
.status-form select { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .32rem .4rem; font: inherit; font-size: .82rem; background: var(--white); }

/* Pager */
.admin-pager { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.4rem; }
.admin-pager a { color: var(--moss); text-decoration: none; font-weight: 600; }
.admin-pager a:hover { text-decoration: underline; }
.pager-pos { color: var(--mist); font-size: .9rem; }

/* Admin-Link im Dropdown */
.menu-admin { color: var(--orange-deep) !important; font-weight: 600; border-bottom: 1px solid var(--line-soft); }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .admin-bar-inner { padding: .55rem 1rem; gap: .8rem; flex-wrap: wrap; }
  .admin-subnav { order: 3; flex-basis: 100%; }
  .admin-wrap { padding: 1.4rem 1rem 3rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .admin-search input[type="search"] { min-width: 0; flex: 1; }
}

/* ===================================================================
   Statische Seiten (Support / Kontakt)
   =================================================================== */
.page { max-width: 640px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.page-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem 2rem 2.2rem;
}
.page-head { margin-bottom: 1.4rem; }
.page-head h1 { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); margin: 0 0 .5rem; }
.page-head p { color: var(--mist); margin: 0; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-opt { color: var(--mist); font-weight: 400; font-size: .85em; }
.page-alt { margin-top: 1.3rem; color: var(--mist); font-size: .92rem; text-align: center; }
.page-alt a { color: var(--moss); font-weight: 600; }

@media (max-width: 560px) {
  .page { padding: 1.4rem 1rem 3rem; }
  .page-card { padding: 1.4rem 1.2rem; border-radius: var(--radius); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ===================================================================
   Admin – Anfragen
   =================================================================== */
.nav-count {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px;
  background: var(--orange); color: #fff; border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-align: center; line-height: 18px;
}
.admin-note {
  background: #fdeee2; border: 1px solid #f1cdb6; color: #7a3b14;
  border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1.2rem; font-size: .92rem; line-height: 1.5;
}
.admin-note code { background: rgba(0,0,0,.06); padding: .05rem .35rem; border-radius: 5px; }

.admin-tabs { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 1.4rem; }
.tabs-group { display: inline-flex; gap: .25rem; background: var(--stone-2); padding: .25rem; border-radius: 999px; }
.tabs-group a {
  text-decoration: none; color: var(--mist); font-weight: 600; font-size: .88rem;
  padding: .35rem .8rem; border-radius: 999px;
}
.tabs-group a:hover { color: var(--ink); }
.tabs-group a.is-active { background: var(--white); color: var(--pine); box-shadow: var(--shadow-sm); }

.inq-list { display: flex; flex-direction: column; gap: 1rem; }
.inq-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.1rem 1.2rem;
}
.inq-card.inq-done { opacity: .72; }
.inq-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.inq-subject { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin: 0; flex: 1; min-width: 0; }
.inq-meta { font-size: .88rem; color: var(--mist); margin-bottom: .7rem; }
.inq-meta a { color: var(--moss); }
.inq-body {
  background: var(--stone); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: .8rem 1rem; color: var(--ink); white-space: pre-wrap; word-break: break-word;
  line-height: 1.55; margin-bottom: .9rem;
}
.inq-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.inq-actions form { margin: 0; }
.inq-mail { font-size: .78rem; font-weight: 600; }
.inq-mail.ok { color: var(--moss); }
.inq-mail.warn { color: var(--orange-deep); }
.pill-support { background: #e7eef9; color: #2c5b9c; }
.pill-kontakt { background: var(--moss-light); color: var(--moss); }
.pill-open { background: #fdeee2; color: var(--orange-deep); }
