/* ==========================================================================
   MEGA-INSERATE.ch — UI Theme
   Ruhig · schweizerisch · präzise. Reines CSS, kein Build-Schritt.
   ========================================================================== */

:root {
  /* Farben */
  --bg:          #FBFAF8;   /* Seitenhintergrund, warmweiss */
  --paper:       #FFFFFF;   /* Karten / Flächen */
  --ink:         #1C1D22;   /* Haupttext / dunkel */
  --ink-2:       #31333A;   /* Sekundärtext dunkel */
  --muted:       #54565E;   /* gedämpfter Text */
  --faint:       #9A9CA3;   /* Labels / Meta */
  --line:        #EFEEEA;   /* feine Hairline */
  --line-2:      #E7E5E0;   /* Rahmen */
  --line-3:      #E1DFDA;   /* Input-Rahmen */
  --fill:        #F4F3EF;   /* Chip / sanfte Fläche */
  --fill-2:      #F1F0EC;   /* Bild-Platzhalter */

  --accent:      #D64535;   /* Schweizer Rot (einziger Akzent) */
  --accent-dark: #BE3A2B;
  --accent-tint: #FBEEEC;

  --ok:      #1F8A5B;  --ok-bg:   #E6F3EC;
  --warn:    #9A6B12;  --warn-bg: #F6EEDD;

  /* Typo */
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Radius / Schatten / Layout */
  --r-sm: 8px;  --r: 12px;  --r-lg: 16px;  --r-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 8px 24px -16px rgba(0,0,0,.22);
  --shadow-lg: 0 20px 50px -24px rgba(0,0,0,.28);
  --maxw: 1200px;
  --header-h: 68px;
}

/* --- Reset ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: 100%; }
input, textarea { color: var(--ink); }
::placeholder { color: #A6A8AE; }
h1,h2,h3,p { margin: 0; }

/* --- Utilities ------------------------------------------------------------ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--faint);
}
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.hide-mobile { }
.only-mobile { display: none; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r);
  font-size: 14px; font-weight: 600; padding: 11px 18px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line-3); }
.btn-ghost:hover { background: var(--fill); }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn-danger { color: var(--accent); background: var(--paper); border-color: var(--line-3); }
.btn-danger:hover { background: var(--accent-tint); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 28px; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.brand-word { font-weight: 800; font-size: 17px; letter-spacing: -.3px; }
.brand-word span { color: var(--faint); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.header-right a { display: inline-flex; align-items: center; gap: 6px; }
.header-right a:hover { color: var(--ink); }
.heart { color: var(--accent); font-size: 15px; line-height: 1; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* --- Search --------------------------------------------------------------- */
.search {
  display: flex; align-items: stretch; background: var(--paper);
  border: 1px solid var(--line-3); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.search .field { flex: 1; display: flex; align-items: center; gap: 11px; padding: 0 16px; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; padding: 13px 0; font-size: 15px; }
.search .region {
  display: flex; align-items: center; padding: 0 16px; border-left: 1px solid var(--line-2);
  color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.search button { border: 0; background: var(--accent); color: #fff; font-weight: 600; padding: 0 24px; cursor: pointer; }
.search button:hover { background: var(--accent-dark); }
.search-ico { width: 18px; height: 18px; flex-shrink: 0; stroke: #A6A8AE; }

/* --- Hero ----------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 0 52px; }
.hero h1 { font-size: 44px; line-height: 1.08; letter-spacing: -1.2px; font-weight: 800; margin: 14px 0 18px; }
.hero p { font-size: 16px; color: var(--muted); max-width: 440px; margin-bottom: 28px; }
.hero .search { max-width: 480px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  font-size: 12.5px; color: var(--muted); background: var(--fill);
  border: 1px solid var(--line-2); padding: 6px 13px; border-radius: 20px; white-space: nowrap; cursor: pointer;
}
.chip:hover { border-color: var(--faint); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.feature {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--fill-2); aspect-ratio: 4/3; border: 1px solid var(--line-2);
}
.feature img { width: 100%; height: 100%; object-fit: cover; }
.feature .tag {
  position: absolute; top: 16px; left: 16px; background: rgba(28,29,34,.82); color: #fff;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 11px; border-radius: 7px;
}
.feature .cap { position: absolute; inset: auto 0 0 0; padding: 22px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; }
.feature .cap .t { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.feature .cap .row { display: flex; align-items: center; justify-content: space-between; }
.feature .cap .row span:first-child { color: rgba(255,255,255,.82); font-size: 13px; }
.feature .cap .row .price { font-weight: 800; font-size: 19px; }

/* --- Trust strip ---------------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust > div { padding: 22px 24px; border-right: 1px solid var(--line); }
.trust > div:last-child { border-right: 0; }
.trust .big { font-weight: 800; font-size: 22px; letter-spacing: -.5px; }
.trust .sub { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* --- Sections ------------------------------------------------------------- */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.section-head h2 { font-size: 26px; letter-spacing: -.6px; font-weight: 800; }
.section-head .more { font-size: 14px; color: var(--accent); font-weight: 600; }

/* --- Card grid ------------------------------------------------------------ */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.card { display: flex; flex-direction: column; gap: 11px; }
.card-media { position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--fill-2); border: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card .fav {
  position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 0; display: flex; align-items: center; justify-content: center;
  color: #B8BABF; font-size: 14px; cursor: pointer;
}
.card .fav:hover { color: var(--accent); }
.card .price { font-weight: 800; font-size: 15px; }
.card .title { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.3; }
.card .meta { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 5px; text-transform: uppercase; }
.card .badge { position: absolute; top: 9px; left: 9px; background: rgba(28,29,34,.8); color: #fff; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; padding: 4px 8px; border-radius: 5px; }

/* --- Category tiles ------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.cat {
  border: 1px solid var(--line-2); border-radius: 13px; padding: 20px; background: var(--paper);
  display: flex; flex-direction: column; gap: 14px;
}
.cat:hover { border-color: var(--faint); }
.cat-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; }
.cat-ico svg { width: 20px; height: 20px; stroke: var(--accent); }
.cat .name { font-weight: 700; font-size: 15px; }
.cat .n { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 3px; }

/* --- Marktplatz layout ---------------------------------------------------- */
.page-head { padding: 26px 0 8px; }
.page-head h1 { font-size: 28px; letter-spacing: -.6px; font-weight: 800; }
.layout-aside { display: grid; grid-template-columns: 264px 1fr; gap: 32px; padding: 20px 0 56px; align-items: start; }
.filters { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; background: var(--paper); position: sticky; top: calc(var(--header-h) + 16px); }
.filters h3 { font-weight: 800; font-size: 15px; margin-bottom: 18px; }
.filter-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); padding: 5px 0; cursor: pointer; }
.check .box { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #D2D0CB; flex-shrink: 0; }
.check.is-on { color: var(--ink); }
.check.is-on .box { border-color: var(--accent); background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.check .n { margin-left: auto; color: #B8BABF; font-size: 12px; }
.price-range { display: flex; gap: 8px; }
.input { width: 100%; border: 1px solid var(--line-3); border-radius: 9px; padding: 10px 12px; font-size: 13.5px; outline: 0; background: var(--paper); }
.input:focus { border-color: var(--accent); }
.select { border: 1px solid var(--line-3); border-radius: 9px; padding: 10px 12px; font-size: 14px; color: var(--muted); background: var(--paper); display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.results-bar .count { font-size: 14px; color: var(--muted); }
.results-bar .count strong { color: var(--ink); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-3); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); }
.pagination a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --- Detail --------------------------------------------------------------- */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 24px 0 48px; align-items: start; }
.breadcrumb { font-family: var(--mono); font-size: 11px; color: var(--faint); padding: 20px 0 0; text-transform: uppercase; letter-spacing: .5px; }
.gallery { aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; background: var(--fill-2); border: 1px solid var(--line-2); margin-bottom: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 32px; }
.thumbs a { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.thumbs a.is-active { border: 2px solid var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font-size: 28px; letter-spacing: -.6px; line-height: 1.15; margin-bottom: 10px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-transform: uppercase; margin-bottom: 28px; }
.detail-desc { font-size: 15px; line-height: 1.7; color: var(--ink-2); max-width: 640px; margin-bottom: 28px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.specs > div { display: flex; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.specs > div:nth-child(odd) { border-right: 1px solid var(--line); }
.specs > div:nth-last-child(-n+2) { border-bottom: 0; }
.specs .k { color: var(--faint); }
.specs .v { font-weight: 600; }
.location { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; margin-top: 14px; }
.location .info { flex: 1; padding: 18px 20px; }
.location .info .t { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.location .map { width: 220px; background: repeating-linear-gradient(45deg,#EDECE8,#EDECE8 8px,#F4F3EF 8px,#F4F3EF 16px); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.sticky-col { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.buybox { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.buybox .price { font-size: 30px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 18px; }
.buybox .pay { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: var(--muted); }
.seller-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px; }
.seller-card .row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.seller-card .logo { width: 44px; height: 44px; border-radius: 11px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.safety { border: 1px solid #F0DEDB; background: #FBF2F0; border-radius: var(--r); padding: 16px 18px; font-size: 12.5px; color: #8A4238; line-height: 1.5; }
.safety strong { display: block; margin-bottom: 4px; color: #B23A2B; }

/* --- Inserieren form ------------------------------------------------------ */
.form-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 24px 0 56px; align-items: start; }
.stepper { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.stepper .step { display: flex; align-items: center; gap: 7px; color: var(--faint); }
.stepper .step.is-on { color: var(--ink); font-weight: 600; }
.stepper .dot { width: 22px; height: 22px; border-radius: 50%; background: #EDECE8; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.stepper .step.is-on .dot { background: var(--accent); color: #fff; }
.stepper .bar { width: 28px; height: 1px; background: var(--line-3); }
.form { display: flex; flex-direction: column; gap: 22px; }
.field-group { }
.field-group > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field-lg { width: 100%; border: 1px solid var(--line-3); border-radius: var(--r); padding: 13px 15px; font-size: 14.5px; outline: 0; background: var(--paper); }
.field-lg:focus { border-color: var(--accent); }
textarea.field-lg { resize: vertical; min-height: 120px; line-height: 1.5; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.select-lg { border: 1px solid var(--line-3); border-radius: var(--r); padding: 13px 15px; font-size: 14.5px; color: var(--muted); background: var(--paper); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.dropzone { border: 1.5px dashed #D2D0CB; border-radius: 13px; padding: 34px; text-align: center; background: var(--paper); }
.dropzone .ico { width: 44px; height: 44px; border-radius: var(--r); background: var(--accent-tint); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.dropzone .ico svg { width: 22px; height: 22px; stroke: var(--accent); }
.dropzone .t { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.preview-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.preview-card .m { aspect-ratio: 4/3; background: var(--fill-2); }
.preview-card .m img { width: 100%; height: 100%; object-fit: cover; }
.preview-card .b { padding: 16px; }

/* --- Konto ---------------------------------------------------------------- */
.account { display: grid; grid-template-columns: 236px 1fr; gap: 0; padding: 0; border-top: 1px solid var(--line); }
.account-nav { border-right: 1px solid var(--line); padding: 26px 20px; background: var(--paper); }
.account-nav .who { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.account-nav .who .a { width: 42px; height: 42px; border-radius: var(--r); background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.account-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.account-nav li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); cursor: pointer; }
.account-nav li.is-on { background: var(--paper); color: var(--ink); font-weight: 600; border: 1px solid var(--line-2); }
.account-nav li.is-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.account-main { padding: 28px 32px 48px; }
.account-main h1 { font-size: 24px; letter-spacing: -.5px; font-weight: 800; margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 30px; }
.stat { border: 1px solid var(--line-2); border-radius: 13px; padding: 18px; background: var(--paper); }
.stat .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px; color: var(--faint); margin-bottom: 8px; }
.stat .v { font-size: 28px; font-weight: 800; letter-spacing: -.6px; }
.table { border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.table .tr { display: grid; grid-template-columns: 60px 1fr 92px 64px 92px auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table .tr:last-child { border-bottom: 0; }
.table .th { background: var(--paper); font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); padding: 12px 18px; }
.table .thumb { width: 48px; height: 38px; border-radius: var(--r-sm); overflow: hidden; background: var(--fill-2); }
.table .thumb img { width: 100%; height: 100%; object-fit: cover; }
.table .name { font-size: 13.5px; font-weight: 600; }
.table .p { font-size: 13.5px; font-weight: 700; }
.table .v { font-size: 13.5px; color: var(--muted); }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; justify-self: start; white-space: nowrap; }
.pill.ok { color: var(--ok); background: var(--ok-bg); }
.pill.draft { color: var(--warn); background: var(--warn-bg); }
.row-actions { display: flex; gap: 6px; justify-self: end; flex-wrap: wrap; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 24px; flex-wrap: wrap; }
.site-footer .copy { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--faint); }
.site-footer .copy .m { width: 24px; height: 24px; border-radius: 6px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.site-footer nav { display: flex; gap: 22px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.site-footer nav a:hover { color: var(--ink); }

/* --- Mobile tab bar (nur klein) ------------------------------------------- */
.tabbar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-5 { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .account { grid-template-columns: 1fr; }
  .account-nav { border-right: 0; border-bottom: 1px solid var(--line); }
  .account-nav ul { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 36px; }
  .hero h1 { font-size: 36px; }
  .hero .feature { order: -1; }
  .layout-aside { grid-template-columns: 1fr; gap: 20px; }
  .filters { position: static; }
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .sticky-col { position: static; }
  .form-layout { grid-template-columns: 1fr; gap: 28px; }
  .preview-card { max-width: 360px; }
  .account { grid-template-columns: 1fr; }
  .account-nav { border-right: 0; border-bottom: 1px solid var(--line); }
  .account-nav ul { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .nav { display: none; }
  .header-right .label { display: none; }
  .card-grid, .card-grid.cols-3, .card-grid.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .trust { grid-template-columns: 1fr; }
  .trust > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust > div:last-child { border-bottom: 0; }
  .hero h1 { font-size: 30px; letter-spacing: -.8px; }
  .section { padding: 32px 0; }
  .section-head h2 { font-size: 22px; }
  .detail h1 { font-size: 22px; }
  .location .map { width: 120px; }
  .specs { grid-template-columns: 1fr; }
  .specs > div:nth-child(odd) { border-right: 0; }

  /* Konto-Tabelle → Karten */
  .table .th { display: none; }
  .table .tr { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
  .table .name { flex: 1; min-width: 0; }
  .table .v { display: none; }
  .pill { margin-left: auto; }
  .row-actions { flex-basis: 100%; justify-self: start; }

  /* Bottom Tab-Bar */
  body { padding-bottom: 72px; }
  .tabbar {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 50;
    background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    align-items: center; justify-content: space-around;
    font-family: var(--mono); font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase;
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #B8BABF; }
  .tabbar a.is-on { color: var(--accent); }
  .tabbar .ic { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #C9C7C2; }
  .tabbar a.is-on .ic { background: var(--accent); border-color: var(--accent); }
  .tabbar .add .ic { width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--ink); border-color: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; margin-top: -3px; }
  .search .region { display: none; }
}
@media (max-width: 420px) {
  .card-grid, .card-grid.cols-3, .card-grid.cols-5 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat .v { font-size: 22px; }
}

/* =========================================================================
   MEGA-INSERATE — Bridge: dynamische Inhalte (PHP-Partials) auf neues Theme.
   Ergaenzt theme.css. Klassen aus index.php / inserate_card.php /
   category_strip.php / bottomnav.php.
   ========================================================================= */

/* Bootstrap-artige Container aus dem PHP-Output */
.container.margin_30_40 { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.margin_30_40 { margin-top: 26px; margin-bottom: 26px; }
.col-md-12 { width: 100%; }

/* Inline-Graukaesten aus dem Alt-Markup neutralisieren */
.container.margin_30_40 > .col-md-12 {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  cursor: default !important;
}

/* Sektions-Titel (.main_title1 h2 -> section-head) */
.main_title1 { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 20px; }
.main_title1 span { display: none; }
.main_title1 h2 { font-size: 26px !important; letter-spacing: -.6px; font-weight: 800 !important; line-height: 1.1 !important; color: var(--ink); }

/* Karten-Raster */
.mi-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Karte (mi-card -> .card-Look) */
.mi-card { display: flex; flex-direction: column; gap: 11px; position: relative; color: inherit; }
.mi-card__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--fill-2); border: 1px solid var(--line); }
.mi-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.mi-card:hover .mi-card__img img { transform: scale(1.03); }
.mi-card__badge { position: absolute; top: 9px; left: 9px; background: rgba(28,29,34,.8); color: #fff; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; padding: 4px 8px; border-radius: 5px; }
.mi-card__body { display: flex; flex-direction: column; }
.mi-card__price { order: -1; font-weight: 800; font-size: 15px; color: var(--ink); }
.mi-card__title { font-size: 13.5px; color: var(--ink-2); margin: 2px 0 0; line-height: 1.3; font-weight: 500; }
.mi-card__meta { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 5px; text-transform: uppercase; }
.mi-card__desc { display: none; }
.mi-card__wappen { position: absolute; top: 9px; right: 9px; width: 26px; height: 26px; border-radius: 50%; background: #fff; padding: 2px; box-shadow: var(--shadow-sm); }

/* Kategorie-Strip -> Chips */
.mi-cat-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0; margin-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mi-cat-strip::-webkit-scrollbar { display: none; }
.mi-cat-strip__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--fill); font-size: 13px; color: var(--muted); }
.mi-cat-strip__item:hover { border-color: var(--faint); color: var(--ink); }
.mi-cat-strip__item--active { background: var(--ink); color: #fff; border-color: var(--ink); }
.mi-cat-strip__icon { width: 18px; height: 18px; object-fit: contain; }
.mi-cat-strip__item--active .mi-cat-strip__icon { filter: brightness(0) invert(1); }

/* Kategorie-Leiste: Scroll-Pfeile links/rechts */
.mi-cat-wrap { position: relative; }
.mi-cat-nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0,0,0,.32); padding: 0; }
.mi-cat-nav:hover { border-color: var(--faint); background: var(--bg); }
.mi-cat-nav svg { width: 18px; height: 18px; display: block; }
.mi-cat-nav--prev { left: -4px; }
.mi-cat-nav--next { right: -4px; }
.mi-cat-wrap::before, .mi-cat-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 46px; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .2s; }
.mi-cat-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg) 25%, rgba(251,250,248,0)); }
.mi-cat-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg) 25%, rgba(251,250,248,0)); }
.mi-cat-wrap.has-prev::before { opacity: 1; }
.mi-cat-wrap.has-next::after { opacity: 1; }

/* Header Login/Account-Links */
.header-right .label { color: var(--muted); }
.header-right .label:hover { color: var(--ink); }

/* Footer-Menue robust (ul/li/a oder a) */
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-footer nav li { list-style: none; }
.site-footer nav a { color: var(--muted); font-size: 13px; }
.site-footer nav a:hover { color: var(--ink); }

/* Werbebanner */
.adsbygoogle { display: block; margin: 8px auto; }

/* Bottom-Tab-Bar (mi-bottomnav -> .tabbar), nur mobil */
.mi-bottomnav { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 74px; }
  .mi-bottomnav {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 50;
    background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    align-items: center; justify-content: space-around;
  }
  .mi-bottomnav__item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #B8BABF; font-family: var(--mono); font-size: 9px; letter-spacing: .5px; text-transform: uppercase; }
  .mi-bottomnav__item svg { width: 21px; height: 21px; }
  .mi-bottomnav__item--active { color: var(--accent); }
  .mi-bottomnav__fab svg { background: var(--ink); color: #fff; border-radius: var(--r-sm); width: 30px; height: 30px; padding: 5px; margin-top: -2px; }
}

/* Startseite: Hero einspaltig (ohne Feature-Panel), nutzt die volle Breite */
.hero { grid-template-columns: 1fr; gap: 0; padding: 72px 0 56px; align-items: start; }
.hero > div { max-width: none; }
.hero h1 { font-size: 56px; line-height: 1.04; }
.hero p { max-width: 760px; font-size: 17px; }
.hero .search { max-width: none; }
.hero .chips { margin-top: 20px; }
@media (max-width: 900px) { .hero { padding: 46px 0 40px; } .hero h1 { font-size: 40px; } }
@media (max-width: 720px) { .hero h1 { font-size: 32px; } }

/* Trust-Leiste buendig mit Hero/Inseraten (Container-Kante statt randlos) */
.trust > div:first-child { padding-left: 0; }
.trust > div:last-child { padding-right: 0; }
