/* Layout: drei Signalfarben tragen die drei Vergleichswerte durch die ganze Seite, alles andere bleibt ruhig auf Putz, Ziegel und Beton wie bei DMGA. */
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1EFF, U+20A0-20C0; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #F5F1E8;
  --surface: #FFFFFF;
  --tint: #EAE3D4;
  --ink: #1C2224;
  --muted: #565C5C;
  --line: #D8CFBE;
  --green: #B8391F;
  --green-deep: #8E2B16;
  --preis: #A86A05;
  --preis-soft: #FBF0D5;
  --naehe: #16707F;
  --naehe-soft: #DCF0F3;
  --qualitaet: #2A7F45;
  --qualitaet-soft: #DFF1E3;
  --marigold: #E5A11B;
  --bad: #A8321F;
  --bad-soft: #FBE7E2;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); }
img { max-width: 100%; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-deep); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; font-weight: 800; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
small { font-size: .85em; }
:focus-visible { outline: 3px solid var(--naehe); outline-offset: 2px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.wrap > h2 { margin: 36px 0 14px; }
.narrow { max-width: 760px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.fineprint { font-size: .9rem; color: var(--muted); margin-top: 12px; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.icon { width: 1.25em; height: 1.25em; vertical-align: -.25em; flex: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.hp, .sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Header and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 600 1.5rem/1 var(--display); }
.brand img { display: block; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav a:not(.btn):hover { color: var(--green); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: var(--ink); }
.site-footer { margin-top: 64px; background: var(--ink); color: #DCD8CE; padding-block: 44px 20px; }
.site-footer a { color: #F3F7EF; }
.site-footer .brand { color: #fff; }
.site-footer h2 { font: 600 .95rem/1.3 var(--body); margin-bottom: 8px; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid p { margin-top: 12px; max-width: 42ch; }
.footer-base { margin-top: 32px; padding-top: 16px; font-size: .85rem; color: #B7CBBB; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 11px 18px; font: 600 1rem/1.2 var(--body); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-accent { background: var(--marigold); color: #1F1503; }
.btn-accent:hover { background: #F2B53A; color: #1F1503; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 7px 12px; font-size: .92rem; }
.btn-lg { padding: 14px 24px; font-size: 1.08rem; }
.btn-link { background: none; border: 0; padding: 0; color: var(--green); font: inherit; font-size: .92rem; text-decoration: underline; cursor: pointer; }
.btn-link.danger { color: var(--bad); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Hero */
.hero { padding-block: 52px; background: linear-gradient(180deg, var(--tint), var(--bg)); }
.hero-small { padding-block: 44px; }
.hero-small .actions { margin-top: 20px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.quick-start { display: grid; grid-template-columns: minmax(0, 1fr) 104px auto; gap: 10px; align-items: end; background: var(--surface); padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.quick-start .field { margin: 0; }
.quick-start input, .quick-start select { height: 46px; }
.quick-start .btn { height: 46px; }
.sample { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.sample figcaption { font-weight: 600; margin-bottom: 10px; }
.sample-tag { display: inline-block; background: var(--tint); color: var(--muted); font-size: .78rem; letter-spacing: .03em; padding: 2px 8px; border-radius: 99px; margin-right: 6px; }
.sample ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sample li { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.sample li.is-top { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.sample-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }

/* The three leaves */
.leaf-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.leaf-row > div { min-width: 0; }
.leaf-row dt { font-size: .78rem; color: var(--muted); }
.leaf-row dd { margin: 0; font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.leaf-row dd small { font-weight: 400; color: var(--muted); }
.meter { display: block; height: 5px; border-radius: 3px; background: var(--tint); margin-top: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--leaf); }
.leaf-preis { --leaf: var(--marigold); --leaf-ink: var(--preis); --leaf-soft: var(--preis-soft); }
.leaf-naehe { --leaf: var(--naehe); --leaf-ink: var(--naehe); --leaf-soft: var(--naehe-soft); }
.leaf-qualitaet { --leaf: var(--qualitaet); --leaf-ink: var(--qualitaet); --leaf-soft: var(--qualitaet-soft); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trio > div { background: var(--leaf-soft); border-radius: var(--radius); padding: 22px; }
.trio h3 { color: var(--leaf-ink); font-size: 1.5rem; margin-bottom: 6px; }
.trio-tight h3 { font-size: 1.15rem; }
.trio-tight p { font-size: .95rem; }

/* Bands */
.band { padding-block: 48px; }
.band > .wrap > h2 { margin: 0 0 20px; }
.band-tint { background: var(--tint); }
.band-dark { background: var(--green); color: #fff; padding-block: 40px; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.trade-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trade-grid a { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; height: 100%; }
.trade-grid a:hover { border-color: var(--green); }
.trade-grid .icon { width: 28px; height: 28px; color: var(--green); }
.trade-grid small { display: block; color: var(--muted); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 600 2.2rem/1 var(--display); color: var(--green); margin-bottom: 8px; }
.steps h3 { margin-bottom: 4px; }

/* City pages */
.city-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 16px; }
.state + .state { margin-top: 24px; }
.state h2 { font-size: 1.2rem; margin-bottom: 8px; }
.city-start { max-width: 640px; }
.biz-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.biz-list a { display: flex; gap: 12px; align-items: center; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; color: var(--ink); text-decoration: none; }
.biz-list a:hover { border-color: var(--green); }
.biz-list small { display: block; color: var(--muted); }
.biz-list span { min-width: 0; }

/* Pages and forms */
.page-head { padding-block: 32px 18px; display: grid; gap: 8px; }
.page-head.split { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: end; }
.eyebrow { font-size: .92rem; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.message { padding-block: 64px; display: grid; gap: 16px; }
.alert { border-radius: 8px; padding: 12px 16px; margin-top: 16px; }
.alert-ok { background: var(--qualitaet-soft); }
.alert-bad { background: var(--bad-soft); color: #6D1E11; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 16px; display: grid; gap: 16px; min-width: 0; }
.form-card > form { display: grid; gap: 16px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.form-card > fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 20px; }
legend { font: 600 1.25rem/1.2 var(--display); padding: 0; margin-bottom: 10px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label, .label-like { font-weight: 600; font-size: .95rem; }
.hint { color: var(--muted); font-size: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input:not([type]), select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #A9B7A8; border-radius: 8px;
}
textarea { resize: vertical; }
[aria-invalid=true] { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: .9rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plz-city { padding-block: 10px; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice input { position: absolute; opacity: 0; }
.choice { min-width: 0; }
.choice span { hyphens: auto; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: .95rem; }
.choice .icon { color: var(--green); }
.choice input:checked + span { border-color: var(--green); background: var(--qualitaet-soft); box-shadow: inset 0 0 0 1px var(--green); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--naehe); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 4px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.photo-preview { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; }

/* Offers */
.owner-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.owner-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; font-size: .95rem; }
.owner-side h2 { font-size: 1.25rem; }
.side-actions { display: grid; gap: 6px; justify-items: start; }
.offers-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--tint); padding: 4px; border-radius: 9px; }
.tabs a { padding: 6px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.tabs a[aria-current] { background: var(--surface); box-shadow: 0 1px 2px rgba(23, 40, 30, .15); font-weight: 700; }
.offers { display: grid; gap: 14px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; min-width: 0; }
.offer.is-top, .offer.is-accepted { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.offer.is-declined { opacity: .6; }
.offer-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.offer-title { flex: 1 1 200px; min-width: 0; }
.offer-title a { color: var(--ink); text-decoration: none; }
.offer-title p { font-size: .88rem; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--tint); color: var(--ink); }
.badge-top { background: var(--green); color: #fff; }
.badge-preis { background: var(--preis-soft); color: #7A5103; }
.badge-naehe { background: var(--naehe-soft); color: #0F5763; }
.badge-qualitaet { background: var(--qualitaet-soft); color: #1C5C31; }
.includes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; }
.includes .yes .icon { color: var(--qualitaet); }
.includes .no { color: var(--bad); }
.note { font-size: .88rem; color: var(--muted); }
.offer-meta, .contact { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; color: var(--muted); }
.offer-meta .icon, .contact .icon { margin-right: 4px; }
.contact { color: var(--ink); font-weight: 600; background: var(--qualitaet-soft); padding: 8px 12px; border-radius: 8px; }
.offer-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.price-line { font: 600 1.6rem/1 var(--display); }
.status { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .85rem; font-weight: 600; background: var(--tint); color: var(--ink); }
.status-open { background: var(--qualitaet-soft); color: #1C5C31; }
.empty { background: var(--surface); border: 1px dashed #A9B7A8; border-radius: var(--radius); padding: 28px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.empty p { max-width: 52ch; color: var(--muted); }
.facts { margin: 0; display: grid; gap: 8px; }
.facts > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; grid-template-columns: none; }
.star-input legend { float: left; width: 100%; font: 600 .95rem/1.4 var(--body); margin: 0; }
.star-input { display: flex; flex-wrap: wrap; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2rem; line-height: 1; cursor: pointer; color: #C7D1C4; }
.star-input label::before { content: "★"; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--marigold); }
.star-input input:focus-visible + label { outline: 3px solid var(--naehe); }
.stars { display: inline-block; position: relative; width: 5.2em; height: 1em; line-height: 1; color: #C7D1C4; vertical-align: -.1em; }
.stars::before { content: "★★★★★"; letter-spacing: .04em; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--marigold); }
.stars-fill::before { content: "★★★★★"; letter-spacing: .04em; }
.logo { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--tint); flex: none; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo.mono { color: var(--green); font: 600 1.15rem/1 var(--display); }
.logo-lg { width: 84px; height: 84px; }
.logo-lg.mono { font-size: 1.8rem; }
.biz-head { grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.tag-list { list-style: none; margin: 14px 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.tag-list li { background: var(--tint); padding: 3px 10px; border-radius: 99px; font-size: .9rem; }
.review { border-top: 1px solid var(--line); padding-block: 14px; display: grid; gap: 6px; }
.project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.project-list a { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink); text-decoration: none; }
.project-list a:hover { border-color: var(--green); }
.project-list .icon { width: 28px; height: 28px; color: var(--green); }
.pl-main { flex: 1; min-width: 0; }
.pl-main small { display: block; color: var(--muted); }
.pl-side { color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { font-size: .85rem; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-card { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 8px; }
.admin-card > div:first-child { flex: 1 1 320px; min-width: 0; }
.prose { display: grid; gap: 14px; }
.prose h2 { margin-top: 12px; }

@media (max-width: 900px) {
  .hero-grid, .owner-grid { grid-template-columns: minmax(0, 1fr); }
  .trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .side-first .owner-side { order: -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-block: 8px; }
  .main-nav.open { display: flex; }
  .quick-start { grid-template-columns: 1fr; }
  .trio, .steps, .trade-grid, .biz-list { grid-template-columns: minmax(0, 1fr); }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .field-row, .check-grid { grid-template-columns: minmax(0, 1fr); }
  .leaf-row { gap: 8px; }
  .leaf-row dd { font-size: .95rem; }
  .form-card { padding: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .trade-grid a { transition: background-color .15s, border-color .15s; }
}

/* Admin directory */
.dir-list { margin: 0 0 8px; padding-left: 18px; }
tr.is-muted td { opacity: .5; }
.owner-grid section > h2 { margin: 24px 0 8px; }

/* Referral agreement */
.terms h3 { font-size: 1rem; margin: 1.25em 0 0.3em; }
.terms p { margin: 0 0 0.6em; }

/* Admin marketing calculator: assumptions left, results right; stacked on phones */
.mr { --mr-accent-soft: var(--qualitaet-soft); }
.mr [hidden] { display: none !important; }
.mr-seg { display: flex; flex-wrap: wrap; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.mr-seg button { font: inherit; font-weight: 700; font-size: 14px; border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.mr-seg button[aria-pressed="true"] { background: var(--green); color: #fff; }
.mr-seg.mr-small { border-radius: 12px; background: var(--bg); }
.mr-seg.mr-small button { font-size: 13px; padding: 7px 12px; border-radius: 9px; flex: 1; }
.mr button:focus-visible, .mr input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.mr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: start; margin-top: 24px; }
@media (max-width: 860px) { .mr-grid { grid-template-columns: minmax(0, 1fr); } }
.mr-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.mr-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mr-panel h2 { font-size: 1.3rem; }
.mr-group-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.mr-field { display: flex; flex-direction: column; gap: 6px; }
.mr-field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mr-field label, .mr-field .mr-label { font-weight: 700; }
.mr-hint { font-size: 13px; color: var(--muted); }
.mr-num { display: flex; align-items: center; gap: 6px; }
.mr-num input { width: 104px; font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.mr-num span { color: var(--muted); font-size: 14px; min-width: 18px; }
.mr input[type=range] { width: 100%; accent-color: var(--green); }
.mr-priceout { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--preis-soft); border-radius: 10px; padding: 12px 14px; }
.mr-priceout b { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--preis); }
.mr-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-radius: 12px; padding: 18px 20px; }
.mr-status.mr-good { background: var(--qualitaet-soft); }
.mr-status.mr-bad { background: var(--bad-soft); }
.mr-big { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.mr-good .mr-big { color: var(--qualitaet); }
.mr-bad .mr-big { color: var(--bad); }
.mr-lbl { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mr-chip { font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--surface); }
.mr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mr-kpis.mr-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 620px) { .mr-kpis, .mr-kpis.mr-three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mr-kpi { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mr-kpi .mr-v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mr-kpi .mr-k { font-size: 13px; color: var(--muted); }
.mr-kpi.mr-hl { background: var(--mr-accent-soft); border-color: transparent; }
.mr-calc { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mr-calc div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mr-calc div:last-child { border-bottom: 0; font-weight: 800; background: var(--tint); }
.mr-calc span:first-child { color: var(--muted); }
.mr-calc div:last-child span:first-child { color: var(--ink); }
.mr-funnel { display: flex; flex-direction: column; gap: 10px; }
.mr-frow { display: grid; grid-template-columns: 150px minmax(0, 1fr) 80px; align-items: center; gap: 12px; }
@media (max-width: 520px) { .mr-frow { grid-template-columns: 110px minmax(0, 1fr) 64px; } }
.mr-frow .mr-n { font-size: 14px; color: var(--muted); }
.mr-bar { height: 22px; background: var(--tint); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.mr-bar i { display: block; height: 100%; background: var(--green); border-radius: 5px; transition: width .25s; }
.mr-frow:last-child .mr-bar i { background: var(--marigold); }
.mr-frow .mr-c { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.mr-tablewrap { overflow-x: auto; }
.mr table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.mr th, .mr td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.mr th:first-child, .mr td:first-child { text-align: left; }
.mr th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.mr tr.mr-cur td { background: var(--mr-accent-soft); font-weight: 800; }
.mr-neg { color: var(--bad); }
.mr-pos { color: var(--qualitaet); }
.mr-note { font-size: 13px; color: var(--muted); margin: 0; }
@media (prefers-reduced-motion: reduce) { .mr-bar i { transition: none; } }
