/* Mietrix – gemeinsames Stylesheet für Marktplatz, Händlerportal und internes System */
:root {
  --brand: #314043;
  --brand-d: #222d30;
  --brand-l: #e8eef0;
  --link: #0b7568;
  --teal: #0f8a7c;
  --accent: #f2a516;
  --ink: #17212b;
  --ink-2: #44515e;
  --mute: #6b7783;
  --line: #e1e6ea;
  --bg: #f6f8f9;
  --card: #fff;
  --ok: #157f3b;
  --ok-l: #e4f5ea;
  --warn: #9a6200;
  --warn-l: #fff3db;
  --bad: #b42318;
  --bad-l: #fdecea;
  --info: #1d5fb4;
  --info-l: #e7f0fb;
  --r: 10px;
  --r-s: 6px;
  --sh: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --sh-l: 0 8px 24px rgba(16, 24, 40, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
small, .small { font-size: .85rem; }
.muted { color: var(--mute); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 1rem; } .mt2 { margin-top: 2rem; } .mb { margin-bottom: 1rem; } .mb0 { margin-bottom: 0; } .mt0 { margin-top: 0; }
.flex { display: flex; align-items: center; gap: .6rem; }
.flex.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Schutz von E-Mail-Adressen: Störzeichen sind nur im Quelltext vorhanden */
.mx-mail-x { display: none !important; speak: never; }
a.mx-mail[href="#"] { cursor: default; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.split-l { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 960px) { .split, .split-l { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } h1 { font-size: 1.5rem; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .62rem 1.05rem; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 .95rem/1.2 var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: #f1f4f6; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #1d1300; }
.btn-accent:hover { background: #dd960f; }
.btn-danger { color: var(--bad); border-color: #f2c9c4; }
.btn-danger:hover { background: var(--bad-l); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--link); }
.btn-sm { padding: .38rem .7rem; font-size: .85rem; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
form.inline { display: inline; }

/* Formulare */
.field { margin-bottom: 1rem; }
.field > label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field .hint { color: var(--mute); font-size: .82rem; margin-top: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=tel], input[type=url], select, textarea {
  width: 100%; padding: .58rem .7rem; border: 1px solid #cdd5dc; border-radius: var(--r-s); background: #fff; font: inherit; color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--mute); opacity: 1; }
/* Datums-/Zeitfelder: iOS Safari ignoriert sonst die Breite und lässt leere Felder zusammenfallen */
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 2.55rem; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; min-height: 1.3em; }
input[type=search] { -webkit-appearance: none; appearance: none; }
input[type=search]::-webkit-search-decoration { -webkit-appearance: none; }
.grid > *, .g2 > *, .g3 > *, .g4 > * { min-width: 0; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(49, 64, 67, .2); border-color: var(--brand); }
.check { display: flex; gap: .55rem; align-items: flex-start; margin: .35rem 0; font-weight: 400; }
.check input { margin-top: .25rem; }
.fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem .4rem; margin: 0 0 1.2rem; background: #fff; }
.fieldset > legend { font-weight: 700; padding: 0 .4rem; }
.err { color: var(--bad); font-size: .85rem; }
.input-group { display: flex; }
.input-group input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Meldungen */
.alert { padding: .8rem 1rem; border-radius: var(--r-s); margin: 0 0 1rem; border: 1px solid transparent; }
.alert-ok { background: var(--ok-l); color: #0f5a2b; border-color: #bfe5cc; }
.alert-warn { background: var(--warn-l); color: #6e4600; border-color: #f4dca8; }
.alert-bad { background: var(--bad-l); color: #8a1b12; border-color: #f4c7c1; }
.alert-info { background: var(--info-l); color: #174b8f; border-color: #c7dbf4; }
.badge { display: inline-block; padding: .14rem .5rem; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-l); color: var(--ok); }
.badge-warn { background: var(--warn-l); color: var(--warn); }
.badge-bad { background: var(--bad-l); color: var(--bad); }
.badge-info { background: var(--info-l); color: var(--info); }
.badge-mute { background: #eef1f3; color: #55616c; }
.badge-brand { background: var(--brand-l); color: var(--brand-d); }
.badge-ad { background: #fff1c9; color: #6b4b00; border: 1px solid #f0d488; }

/* Karten & Panels */
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.panel { padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: -.2rem 0 1rem; }
.panel-h h2, .panel-h h3 { margin: 0; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: .35rem 1rem; margin: 0; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; }
@media (max-width: 620px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: .5rem; } }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--mute); }

/* Tabellen */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--mute); background: #fafbfc; font-weight: 700; }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: #f7fafb; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table tfoot td { font-weight: 700; }
.pager { display: flex; gap: .3rem; justify-content: center; margin: 1.2rem 0; flex-wrap: wrap; }
.pager a, .pager span { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; }
.pager .cur { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- Marktplatz ---------------- */
.mk-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.mk-top .container { display: flex; align-items: center; gap: 1.2rem; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); text-decoration: none !important; }
.logo img { height: 26px; width: auto; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; font-size: 1rem; }
.logo small { font-weight: 600; font-size: .75rem; color: var(--mute); letter-spacing: 0; }
.mk-search { flex: 1; max-width: 560px; position: relative; }
.mk-search input { padding-left: 2.3rem; border-radius: 999px; background: #f4f6f7; border-color: #e3e8ec; }
.mk-search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--mute); }
.mk-search input.has-ctx { padding-right: 13.5rem; }
.mk-ctx { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: .25rem; max-width: 13rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .76rem; color: var(--brand); background: #e7f0ef; border-radius: 999px; padding: .15rem .55rem; pointer-events: none; }
.mk-ctx svg { position: static; transform: none; color: var(--brand); flex: none; }
@media (max-width: 600px) { .mk-ctx { display: none; } .mk-search input.has-ctx { padding-right: .8rem; } }
.mk-nav { display: flex; gap: .3rem; margin-left: auto; align-items: center; }
.mk-nav a { color: var(--ink-2); padding: .45rem .65rem; border-radius: var(--r-s); font-weight: 600; font-size: .92rem; }
.mk-nav a:hover { background: #f1f4f6; text-decoration: none; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #1d1300; font-size: .72rem; padding: 0 5px; margin-left: 2px; }
.mk-cats { background: #fff; border-bottom: 1px solid var(--line); }
.mk-cats .container { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.mk-cats a { padding: .6rem .75rem; color: var(--ink-2); font-size: .88rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.mk-cats a:hover, .mk-cats a.on { color: var(--ink); border-color: var(--accent); text-decoration: none; }
/* Mobiles Menü */
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; color: var(--ink); place-items: center; cursor: pointer; flex: none; }
.nav-toggle[aria-expanded=true] { background: var(--brand); color: #fff; border-color: var(--brand); }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; box-shadow: var(--sh-l); }
.mk-top .mobile-menu nav { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; height: auto; padding: .4rem 20px .9rem; }
.mobile-menu .mm-cats { display: flex; flex-direction: column; }
.mobile-menu a { display: flex; align-items: center; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .mm-h { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); font-weight: 700; margin: .9rem 0 .2rem; }
.mobile-menu .mm-cats a { font-weight: 500; padding: .5rem 0; }
.mk-cats { position: relative; }
@media (max-width: 760px) {
  .mk-top { position: static; }
  .mk-top .container { flex-wrap: wrap; height: auto; padding-top: .55rem; padding-bottom: .55rem; gap: .6rem .8rem; }
  .mk-top .logo img { height: 22px; }
  .nav-toggle { display: grid; }
  .mk-search { order: 3; flex-basis: 100%; max-width: none; }
  .mk-search input { padding-top: .5rem; padding-bottom: .5rem; }
  .mk-nav { gap: .1rem; }
  .mk-nav a { padding: .45rem .5rem; }
  .mk-nav .hide-s { display: none; }
  .mobile-menu.open { display: block; }
  .mk-cats .container { padding-right: 2.5rem; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .mk-cats .container a { scroll-snap-align: start; padding: .55rem .6rem; font-size: .86rem; }
  .mk-cats::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 2.5rem; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 70%); pointer-events: none; }
}

.hero { background: linear-gradient(135deg, #222d30 0%, #314043 55%, #3d5257 100%); color: #fff; padding: 3.2rem 0 3.6rem; }
.hero h1 { font-size: 2.3rem; max-width: 720px; }
.hero p { color: #d3dde0; font-size: 1.1rem; max-width: 640px; }
.hero-search { background: #fff; border-radius: 14px; padding: .55rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: .5rem; max-width: 920px; box-shadow: var(--sh-l); margin-top: 1.6rem; }
.hero-search input { border: 0; background: #f4f6f7; }
.hero-search label { font-size: .72rem; color: var(--mute); font-weight: 700; display: block; padding: 0 .3rem; }
@media (max-width: 760px) { .hero-search { grid-template-columns: 1fr; } .hero h1 { font-size: 1.7rem; } }
.section { padding: 2.4rem 0; }
.section h2 { font-size: 1.45rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; color: var(--ink); min-height: 112px; box-shadow: var(--sh); transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--sh-l); text-decoration: none; }
.tile .ic { width: 38px; height: 38px; border-radius: 9px; background: var(--brand-l); color: var(--brand); display: grid; place-items: center; }
.tile b { font-size: .95rem; }
.tile span { font-size: .8rem; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .86rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.acard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); box-shadow: var(--sh); transition: box-shadow .12s, transform .12s; position: relative; }
.acard:hover { box-shadow: var(--sh-l); transform: translateY(-2px); text-decoration: none; }
.acard .img { aspect-ratio: 4 / 3; background: #eef2f3; position: relative; overflow: hidden; }
.acard .img img { width: 100%; height: 100%; object-fit: cover; }
.acard .body { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.acard .t { font-weight: 700; line-height: 1.3; }
.acard .meta { font-size: .8rem; color: var(--mute); }
.acard .price { margin-top: auto; padding-top: .4rem; font-size: 1.05rem; font-weight: 800; }
.acard .price small { font-weight: 500; color: var(--mute); }
.acard .flags { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .3rem; flex-wrap: wrap; z-index: 2; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: #9aabaf; background: linear-gradient(135deg, #eef2f3, #dde5e7); }
.ph svg { width: 54px; height: 54px; }
.ad-row { background: #fffaf0; border: 1px solid #f3e2b8; border-radius: var(--r); padding: .9rem; margin-bottom: 1.2rem; }
.ad-row .cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.filters .panel { padding: 1rem; }
.filters h3 { font-size: .95rem; margin: 0 0 .6rem; }
.filters .field { margin-bottom: .8rem; }
.filters ul { list-style: none; margin: 0; padding: 0; }
.filters li a { display: block; padding: .2rem 0; color: var(--ink-2); font-size: .9rem; }
.filters li a.on { color: var(--brand); font-weight: 700; }
.filters li ul { padding-left: .8rem; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.crumbs { font-size: .85rem; color: var(--mute); margin: 1.2rem 0 .8rem; }
.crumbs a { color: var(--mute); }

.gallery .main { aspect-ratio: 4 / 3; background: #eef2f3; border-radius: var(--r); overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: .5rem; margin-top: .5rem; overflow-x: auto; }
.gallery .thumbs button { border: 2px solid transparent; padding: 0; border-radius: 6px; overflow: hidden; width: 78px; height: 58px; flex: none; cursor: pointer; background: #eee; }
.gallery .thumbs button.on { border-color: var(--brand); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.bookbox { position: sticky; top: 84px; }
.bookbox .price-big { font-size: 1.7rem; font-weight: 800; }
.price-table { width: 100%; font-size: .92rem; margin: .5rem 0 1rem; }
.price-table td { padding: .2rem 0; }
.price-table td:last-child { text-align: right; font-weight: 600; }
.lessor { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem; background: #f6f8f9; border: 1px solid #dbe3e5; border-radius: var(--r-s); margin: 1rem 0; font-size: .9rem; }
.lessor .ic { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.quote { background: #f4f7f8; border-radius: var(--r-s); padding: .8rem; margin: .8rem 0; font-size: .92rem; }
.quote .total { font-size: 1.2rem; font-weight: 800; }
.specs { width: 100%; border-collapse: collapse; }
.specs td { padding: .45rem .3rem; border-bottom: 1px solid var(--line); }
.specs td:first-child { color: var(--mute); width: 45%; }
.stars { color: #e3a008; letter-spacing: 1px; white-space: nowrap; }
.review { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; font-size: .78rem; }
.cal .h { text-align: center; color: var(--mute); font-weight: 700; padding: .2rem 0; }
.cal .d { text-align: center; padding: .38rem 0; border-radius: 5px; background: #e6f4f1; color: #0d5f55; }
.cal .d.x { background: #f6e3e1; color: #a03a2f; text-decoration: line-through; }
.cal .d.p { background: transparent; color: #c2c9cf; }
.cal .d.l { background: #fff3d6; color: #7a5300; }
.cal .d.e { visibility: hidden; }
.cal-month { font-weight: 700; margin: .6rem 0 .3rem; }
.cal-legend { display: flex; gap: .8rem; font-size: .75rem; color: var(--mute); margin-top: .4rem; flex-wrap: wrap; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

.cart-group { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 1.2rem; overflow: hidden; box-shadow: var(--sh); }
.cart-group .gh { padding: .9rem 1.1rem; background: #f6f8f9; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.cart-group .gb { padding: 1rem 1.1rem; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 72px; height: 54px; border-radius: 6px; overflow: hidden; background: #eef2f3; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sum { width: 100%; }
.sum td { padding: .25rem 0; }
.sum td:last-child { text-align: right; }
.sum tr.total td { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.payinfo { display: grid; grid-template-columns: 1fr auto; gap: 1rem; background: #f6f8f9; border: 1px solid #dbe3e5; border-radius: var(--r-s); padding: 1rem; }
.payinfo .qr canvas { width: 150px; height: 150px; }
.payinfo .kv { grid-template-columns: 150px 1fr; }
@media (max-width: 620px) { .payinfo { grid-template-columns: 1fr; } }
.steps { display: flex; gap: .5rem; margin: 1.2rem 0; font-size: .85rem; flex-wrap: wrap; }
.steps span { padding: .3rem .7rem; border-radius: 999px; background: #eef1f3; color: var(--mute); }
.steps span.on { background: var(--brand); color: #fff; }
.prose { max-width: 760px; }
.prose p { white-space: pre-line; }
.prose.legal p { white-space: normal; }
.prose.legal h2 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.prose.legal h3 { font-size: 1rem; margin: 1.2em 0 .4em; }
.prose.legal ul { padding-left: 1.3em; margin: .4em 0 .9em; }
.prose.legal li { margin: .25em 0; }
.prose.legal a { overflow-wrap: anywhere; }
.legal-box { border: 1px solid var(--line); border-radius: var(--r-s); padding: .9rem 1rem; margin: 1rem 0; background: #f7f9fa; }
.mk-foot { background: #222d30; color: #b9c6c9; padding: 2.4rem 0 1.6rem; margin-top: 3rem; font-size: .9rem; }
.mk-foot a { color: #e3efed; }
.mk-foot a.foot-withdraw { display: inline-block; border: 1px solid #6f8a8e; border-radius: 999px; padding: .1rem .6rem; }
.mk-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; }
.mk-foot h4 { color: #fff; font-size: .95rem; }
.mk-foot ul { list-style: none; margin: 0; padding: 0; }
.mk-foot li { margin: .3rem 0; }
@media (max-width: 760px) { .mk-foot .cols { grid-template-columns: 1fr 1fr; } }
.ac-box { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--sh-l); z-index: 50; overflow: hidden; }
.ac-box a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; color: var(--ink); font-size: .92rem; }
.ac-box a:hover, .ac-box a.on { background: #f1f4f5; text-decoration: none; }
.ac-box a span { color: var(--mute); font-size: .78rem; }
.ac-wrap { position: relative; }
.authbox { max-width: 440px; margin: 3rem auto; }

/* ---------------- Händlerportal & internes System ---------------- */
.adm { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.adm-side { background: #263236; color: #c9d4d7; padding: 1rem .7rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-side .logo { color: #fff; padding: .3rem .5rem 1rem; }
.adm-side .logo { flex-direction: column; align-items: flex-start; gap: .25rem; }
.adm-side .logo small { color: #93a6ab; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.adm-side .logo img { height: 22px; }
.adm-side nav a { display: flex; align-items: center; gap: .6rem; padding: .48rem .65rem; border-radius: var(--r-s); color: #c9d4d7; font-size: .92rem; }
.adm-side nav a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; color: #fff; }
.adm-side nav a.on { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; }
.adm-side nav .sep { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #7f9398; padding: 1rem .65rem .3rem; }
.adm-side nav .cnt { margin-left: auto; background: var(--accent); color: #1d1300; border-radius: 9px; font-size: .7rem; padding: 0 .4rem; font-weight: 700; }
.adm-main { min-width: 0; }
.adm-top { background: #fff; border-bottom: 1px solid var(--line); height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; position: sticky; top: 0; z-index: 20; gap: 1rem; }
.adm-top .gsearch { max-width: 380px; flex: 1; }
.adm-body { padding: 1.5rem; max-width: 1400px; }
.adm-body > h1 { font-size: 1.5rem; }
.page-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.page-h h1 { margin: 0; font-size: 1.5rem; }
.page-h p { margin: .2rem 0 0; color: var(--mute); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; box-shadow: var(--sh); }
.stat .l { font-size: .78rem; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.stat .v { font-size: 1.5rem; font-weight: 800; margin-top: .2rem; }
.stat .s { font-size: .8rem; color: var(--mute); }
.stat.warn { border-left: 4px solid var(--accent); }
.stat.bad { border-left: 4px solid var(--bad); }
.stat a { color: inherit; }
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.toolbar .field { margin: 0; }
.toolbar input, .toolbar select { min-width: 150px; }
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; flex-wrap: wrap; }
.tabs a { padding: .55rem .9rem; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; font-size: .92rem; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.tabs a:hover { text-decoration: none; color: var(--brand); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: .45rem 0 .45rem 1.1rem; border-left: 2px solid var(--line); position: relative; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .85rem; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.tree ul { list-style: none; padding-left: 1.2rem; margin: 0; }
.tree > ul { padding-left: 0; }
.tree li { padding: .15rem 0; }
.tree .row { display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem; border-radius: var(--r-s); }
.tree .row:hover { background: #f5f8f9; }
.weight-row { display: grid; grid-template-columns: 30px 1fr 220px 50px; gap: .8rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.weight-row input[type=range] { width: 100%; }
@media (max-width: 900px) { .adm { grid-template-columns: 1fr; } .adm-side { position: static; height: auto; } .adm-side nav { display: flex; flex-wrap: wrap; gap: .2rem; } .adm-side nav .sep { display: none; } }
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #222d30, #3d5257); padding: 1rem; }
.login-card { background: #fff; border-radius: 14px; padding: 2rem; width: 100%; max-width: 420px; box-shadow: var(--sh-l); }
.login-card .logo { margin-bottom: 1.2rem; }
.imgs { display: flex; flex-wrap: wrap; gap: .6rem; }
.imgs .im { position: relative; width: 120px; }
.imgs .im img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.imgs .im .flex { margin-top: .2rem; gap: .2rem; }
.mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mcal .h { font-size: .75rem; color: var(--mute); text-align: center; font-weight: 700; }
.mcal .d { min-height: 70px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .3rem .4rem; font-size: .78rem; }
.mcal .d.o { background: #fafbfc; color: #b8c0c7; }
.mcal .d.t { border-color: var(--brand); }
.mcal .d .n { font-weight: 700; }
.mcal .d .ev { display: block; margin-top: 2px; padding: 1px 4px; border-radius: 4px; background: var(--brand-l); color: var(--brand-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcal .d .ev.a { background: var(--warn-l); color: var(--warn); }
.mcal .d .ev.b { background: #eef1f3; color: #55616c; }

/* Druckbelege */
.doc { background: #fff; max-width: 820px; margin: 1.5rem auto; padding: 48px 56px; box-shadow: var(--sh-l); font-size: 13.5px; }
.doc h1 { font-size: 22px; margin-bottom: 4px; }
.doc .head { display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 36px; }
.doc .addr { font-size: 13px; line-height: 1.45; }
.doc .sender { font-size: 10.5px; color: #666; border-bottom: 1px solid #ccc; margin-bottom: 6px; padding-bottom: 2px; }
.doc table.lines { width: 100%; border-collapse: collapse; margin: 18px 0; }
.doc table.lines th { text-align: left; border-bottom: 2px solid #222; padding: 6px 4px; font-size: 12px; }
.doc table.lines td { border-bottom: 1px solid #ddd; padding: 7px 4px; vertical-align: top; }
.doc table.lines .num { text-align: right; white-space: nowrap; }
.doc .foot { margin-top: 40px; padding-top: 10px; border-top: 1px solid #ccc; font-size: 10.5px; color: #555; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.doc-bar { max-width: 820px; margin: 1rem auto 0; display: flex; gap: .5rem; justify-content: flex-end; }
@media print {
  body { background: #fff; }
  .doc { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .doc-bar, .no-print, .mk-top, .mk-cats, .mk-foot, .adm-side, .adm-top { display: none !important; }
  .adm { display: block; }
  @page { margin: 18mm 16mm; }
}

/* Verkaufsförderung: Empfehlungen und Hinweise */
.hints { display: flex; flex-direction: column; gap: .3rem; margin: .5rem 0; }
.hints:empty { display: none; }
.hint { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; padding: .3rem .55rem; border-radius: var(--r-s); background: var(--info-l); color: var(--info); cursor: help; }
.hint-warn { background: var(--warn-l); color: var(--warn); }
.hint a { color: inherit; text-decoration: underline; }
.reco-wrap { margin-top: 1.5rem; }
.reco-block { margin: 1.2rem 0; }
.reco-block h2 { font-size: 1.15rem; margin-bottom: .6rem; }
.reco-block h2 .small { font-weight: 400; margin-left: .4rem; }
.reco-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.reco-item { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; gap: .5rem .8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .75rem; box-shadow: var(--sh); }
.reco-item.compact { grid-template-columns: 56px 1fr; padding: .55rem; }
.reco-item.added { border-color: var(--ok); background: var(--ok-l); }
.reco-img { grid-row: 1 / span 2; width: 72px; height: 72px; border-radius: var(--r-s); overflow: hidden; background: var(--bg); display: grid; place-items: center; }
.reco-item.compact .reco-img { width: 56px; height: 56px; }
.reco-img img { width: 100%; height: 100%; object-fit: cover; }
.reco-img .ph { color: var(--mute); }
.reco-title { font-weight: 600; color: var(--ink); display: block; }
.reco-reason { color: var(--mute); margin: .1rem 0 .25rem; }
.reco-price { margin-top: .25rem; }
.reco-act { grid-column: 2; display: flex; align-items: center; gap: .5rem; }
.reco-act .ok { color: var(--ok); font-weight: 600; font-size: .9rem; }
.reco-note { margin-top: .6rem; }
.reco-cart { margin-top: 1rem; }
.bump { border: 1px dashed var(--accent); border-radius: var(--r); padding: .8rem; margin: .8rem 0; background: #fffdf5; }
.bump-h { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r); box-shadow: var(--sh-l); z-index: 60; font-size: .92rem; display: flex; gap: .8rem; align-items: center; }
.toast a { color: var(--accent); font-weight: 600; }
.acard .flags .badge-info, .acard .flags .badge-warn { cursor: help; }

/* Cookie-Consent */
.consent-banner[hidden], .consent-modal[hidden] { display: none; }
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: .8rem; background: rgba(49,64,67,.35); }
.consent-box { max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-l); padding: 1rem 1.2rem; }
.consent-box h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.consent-box p { margin: 0 0 .8rem; font-size: .92rem; color: var(--ink-2); }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.consent-actions .btn { flex: 1 1 auto; }
.consent-actions .btn-ghost { flex: 1 1 100%; }
.consent-modal { position: fixed; inset: 0; z-index: 80; background: rgba(20,28,30,.55); display: flex; align-items: center; justify-content: center; padding: 1rem; overflow: auto; }
.consent-dialog { background: #fff; border-radius: var(--r); box-shadow: var(--sh-l); width: 100%; max-width: 720px; max-height: 92vh; overflow: auto; padding: 1.1rem 1.2rem; }
.consent-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.consent-dialog-head h2 { margin: 0; font-size: 1.15rem; }
.consent-close { border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-2); padding: .2rem .5rem; }
.consent-cats { display: grid; gap: .7rem; }
.consent-cat { border: 1px solid var(--line); border-radius: var(--r-s); padding: .75rem .9rem; }
.consent-cat-head { display: flex; align-items: center; gap: .55rem; cursor: pointer; }
.consent-cat-head input { width: 1.1rem; height: 1.1rem; margin: 0; }
.consent-cat p { margin: .35rem 0 .4rem; }
.consent-services { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .45rem; }
.consent-services li { padding: .45rem .6rem; background: #f6f8f9; border-radius: var(--r-s); font-size: .92rem; }
.consent-services label { display: flex; align-items: flex-start; gap: .5rem; cursor: pointer; }
.consent-services label input { width: 1rem; height: 1rem; margin: .2rem 0 0; flex: none; }
.consent-services details { margin-top: .3rem; }
.consent-services details p { margin: .3rem 0; }
.consent-svc-details { margin: .3rem 0 0 1.5rem; display: grid; gap: .15rem; }
.consent-page .notice { padding: .8rem 1rem; border-radius: var(--r-s); margin: 0 0 1rem; border: 1px solid #cfe3d4; background: #f1faf3; }
.consent-page .notice.warn { border-color: #f0d9a8; background: #fff8e8; }
.consent-history td, .consent-history th { vertical-align: top; }
body.consent-open { overflow: hidden; }
@media (min-width: 640px) {
  .consent-actions .btn { flex: 0 0 auto; }
  .consent-actions .btn-ghost { flex: 0 0 auto; margin-left: auto; }
}
.table tr.row-warn td { background: var(--warn-l); }
.stat .v .ok { color: var(--ok); } .stat .v .bad { color: var(--bad); }

/* Version in der Seitenleiste, Ressourcen-Seite */
.adm-side .adm-ver { display: block; margin: 1.2rem .65rem .4rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.08); color: #7f9398; font-size: .75rem; letter-spacing: .03em; }
.adm-side a.adm-ver:hover { color: #fff; text-decoration: none; }
.version-big { font-size: 1.05rem; }
.res-list li { margin: .25rem 0; }
.res-list li.warn { color: var(--warn); }
.res-bar { height: 12px; background: #e8edef; border-radius: 6px; overflow: hidden; margin: .4rem 0 .5rem; }
.res-bar span { display: block; height: 100%; background: var(--ok); }
.res-bar span.warn { background: var(--accent); }
.res-bar span.bad { background: var(--bad); }

/* Liefereinstellungen */
.delivery-settings .dl-modes { border: 1px solid var(--line); border-radius: var(--r-s); padding: .4rem .8rem .3rem; margin: 0 0 .8rem; }
.delivery-settings .dl-modes legend { font-weight: 600; font-size: .9rem; padding: 0 .3rem; }
.delivery-settings .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.delivery-settings .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.delivery-settings .mt-s { margin-top: .35rem; }
.delivery-settings .dl-examples { display: flex; flex-wrap: wrap; gap: .3rem .9rem; background: #f6f8f9; border-radius: var(--r-s); padding: .5rem .7rem; margin: .4rem 0 .6rem; }
@media (max-width: 760px) { .delivery-settings .g4, .delivery-settings .g5 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.delivery-settings [data-dl-show][hidden] { display: none !important; }
.chips-check { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
