/* Riccardo Partnerportal – Design angelehnt an dev.riccardozigarette.com */
:root {
  --red: #E30613;
  --red-dark: #B8050F;
  --coral: #F4735F;
  --ink: #16110F;
  --ink-2: #3A3A37;
  --muted: #6E6862;
  --sand: #EDE8E1;
  --bg: #F7F5F2;
  --surface: #FFFFFF;
  --line: #E9E5DF;
  --line-strong: #D8D3CB;
  --yellow: #FFD66B;
  --blue: #86D3E8;
  --green: #1B7F4B;
  --warn: #B25E00;
  --info: #2B5F8A;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(29, 29, 27, .04), 0 4px 16px rgba(29, 29, 27, .06);
  --shadow-hover: 0 2px 4px rgba(29, 29, 27, .06), 0 12px 32px rgba(29, 29, 27, .10);
  --display: "Barlow Condensed", "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.02; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 .8em; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.block { display: block; }
.strong { font-weight: 700; color: var(--ink); text-decoration: none; }
.strong:hover { color: var(--red); }
.prewrap { white-space: pre-wrap; }
.mt { margin-top: 28px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Topbar & Header */
.topbar { background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: .82rem; letter-spacing: .02em; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; min-height: 34px; align-items: center; }
.usp { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.usp a { color: #fff; text-decoration: none; }
.usp a:hover { text-decoration: underline; }
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-tag { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--ink); font-size: 1.15rem; border-left: 2px solid var(--line-strong); padding-left: 12px; line-height: 1; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.who { display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.who-name { font-weight: 700; }
.who-company { font-size: .82rem; color: var(--muted); }
.mainnav { display: flex; gap: 6px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.mainnav a { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: .98rem; letter-spacing: .01em; color: var(--ink); text-decoration: none; padding: 7px 16px; border-radius: 999px; white-space: nowrap; }
.mainnav a:hover { background: var(--sand); }
.mainnav a.is-active { background: var(--ink); color: #fff; }

.main { padding-top: 32px; padding-bottom: 64px; min-height: 60vh; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1rem; letter-spacing: .01em;
  border: 2px solid var(--ink); background: var(--ink); color: #fff; padding: 10px 22px; border-radius: 999px; cursor: pointer; text-decoration: none; line-height: 1.1; transition: transform .12s, background .12s, box-shadow .12s; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: 6px 14px; font-size: .88rem; }
.btn-lg { padding: 14px 28px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-yellow:hover { color: var(--ink); }
.btn-green { background: var(--green); border-color: var(--green); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--sand); color: var(--ink); box-shadow: none; }
.btn-ghost-light { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-icon { border: 0; background: var(--sand); width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; color: var(--ink); flex: none; }
.btn-icon:hover { background: var(--red); color: #fff; }

/* Cards & Layout */
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.card-title { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.sub { font-size: 1.05rem; margin-top: 20px; }
.eyebrow { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; color: var(--red); margin: 0 0 6px; }
.eyebrow-light { color: #fff; opacity: .9; }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 70ch; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-actions form { margin: 0; }
.section-title { font-size: 1.7rem; }
.empty { text-align: center; padding: 48px 24px; }

/* Flash */
.flash { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; border-left: 5px solid; background: var(--surface); box-shadow: var(--shadow); }
.flash-ok { border-color: var(--green); }
.flash-warn { border-color: var(--yellow); background: #FFF8E4; }
.flash-bad { border-color: var(--red); background: #FDEBEC; }

/* Badges & Chips */
.badge { display: inline-block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--ink); white-space: nowrap; vertical-align: middle; }
.badge-info { background: #DDEBF6; color: var(--info); }
.badge-warn { background: #FFEFC4; color: #7A4A00; }
.badge-ok { background: #D6EEDF; color: var(--green); }
.badge-ok-strong { background: var(--green); color: #fff; }
.badge-bad { background: #FBD3D6; color: var(--red-dark); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--sand); font-size: .88rem; font-weight: 600; }
.chip-dark { background: var(--ink); color: #fff; }
.chip-red { background: var(--red); color: #fff; }
.tick { color: var(--green); font-weight: 700; }

/* Hero */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 48px; border-radius: 28px;
  background: linear-gradient(120deg, var(--red) 0%, var(--coral) 100%); color: #fff; margin-bottom: 28px; }
.hero::after { content: "PARTNER"; position: absolute; right: -20px; bottom: -40px; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 13rem; line-height: 1; color: rgba(255, 255, 255, .09); pointer-events: none; }
.hero-title { font-size: clamp(2.4rem, 5vw, 4rem); color: #fff; }
.hero-title span { background: var(--ink); color: #fff; padding: 0 .18em; display: inline-block; transform: skew(-6deg); }
.hero-lead { font-size: 1.15rem; max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.hero-facts { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-facts b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 1.6rem; display: block; line-height: 1; }
.hero-card { position: relative; z-index: 1; background: var(--ink); border-radius: var(--radius-lg); padding: 26px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
.hero-card-eyebrow { font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--yellow); font-size: .85rem; letter-spacing: .06em; }
.hero-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-steps li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .55); font-weight: 600; }
.hero-steps span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, .3); font-family: var(--display); font-weight: 900; font-style: italic; flex: none; }
.hero-steps .done { color: #fff; }
.hero-steps .done span { background: var(--green); border-color: var(--green); }
.hero-steps .active { color: #fff; }
.hero-steps .active span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.role h2 { font-size: 1.9rem; }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; }
.ticks li { padding: 4px 0 4px 28px; position: relative; font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.steps-section { margin: 40px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card { margin: 0; }
.step-num { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 2.6rem; color: var(--red); line-height: 1; display: block; margin-bottom: 8px; }
.promo-teaser { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--ink); color: #fff; }
.promo-teaser .section-title { color: #fff; }
.lagen { display: flex; gap: 10px; flex-wrap: wrap; }
.lage { width: 64px; height: 64px; border-radius: 16px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 2rem; }
.lage-online { width: auto; padding: 0 16px; font-size: 1.1rem; background: var(--blue); }

/* Auth */
.auth-wrap { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 460px; }
.auth-wide { max-width: 860px; }
.stack { display: grid; gap: 16px; }
.stack > form { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Formulare */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-weight: 700; font-size: .92rem; }
.req { color: var(--red); font-style: normal; margin-left: 2px; }
.field-hint { font-size: .82rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=search], input[type=date], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(227, 6, 19, .15); }
input:invalid:not(:placeholder-shown) { border-color: var(--red); }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check-line input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex: none; }

.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.product-form { min-width: 0; }
.form-card { scroll-margin-top: 150px; }
.form-card .card-title { margin-bottom: 18px; }
.step { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: inline-grid; place-items: center; font-size: 1.05rem; flex: none; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; position: sticky; bottom: 12px; z-index: 5; border: 2px solid var(--ink); }
.is-hidden-group { display: none !important; }

.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice-body { display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; height: 100%; transition: border-color .12s, background .12s; }
.choice-body b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.1rem; }
.choice-body small { color: var(--muted); }
.choice input:checked + .choice-body { border-color: var(--red); background: #FFF3F3; box-shadow: inset 0 0 0 1px var(--red); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--red); outline-offset: 2px; }

/* Piktogramme */
.picto { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 18px 0; }
.picto legend { margin-bottom: 8px; }
.picto-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 6px; cursor: pointer; }
.picto-item input { position: absolute; opacity: 0; }
.picto-item small { font-size: .74rem; color: var(--muted); line-height: 1.2; }
.picto-diamond { width: 38px; height: 38px; border: 3px solid var(--red); transform: rotate(45deg); display: grid; place-items: center; background: #fff; margin: 6px 0; }
.picto-diamond span { transform: rotate(-45deg); font-family: var(--display); font-weight: 900; font-size: .95rem; }
.picto-item.is-on { border-color: var(--red); background: #FFF3F3; }
.picto-item:has(input:focus-visible) { outline: 3px solid var(--red); }

/* H/P-Sätze */
.stmt { border: 1.5px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.stmt-search { border: 0 !important; border-bottom: 1.5px solid var(--line) !important; border-radius: 0 !important; }
.stmt-list { max-height: 300px; overflow-y: auto; }
.stmt-item { display: grid; grid-template-columns: 18px 88px 1fr; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: .9rem; align-items: start; }
.stmt-item:hover { background: var(--bg); }
.stmt-item input { accent-color: var(--red); margin-top: 3px; }
.stmt-item b { font-family: var(--display); font-weight: 800; font-size: 1rem; }
.stmt-item.is-on { background: #FFF3F3; }
.stmt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stmt-read { list-style: none; margin: 0; padding: 0; }
.stmt-read li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.stmt-read b { display: inline-block; min-width: 110px; font-family: var(--display); font-weight: 800; }

/* Upload */
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.upload { display: flex; flex-direction: column; gap: 4px; border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 14px; background: var(--bg); cursor: pointer; transition: border-color .12s; }
.upload:hover, .upload.is-drag { border-color: var(--red); }
.upload-title { font-weight: 700; }
.upload-hint { font-size: .8rem; color: var(--muted); }
.upload input { font-size: .82rem; margin-top: 6px; max-width: 100%; }
.upload-count { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.upload.has-files { border-style: solid; border-color: var(--green); }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.doc-list li { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.doc-thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--sand); flex: none; display: grid; place-items: center; text-decoration: none; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-pdf { font-family: var(--display); font-weight: 900; color: var(--red); }
.doc-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: .9rem; }
.doc-meta a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
.doc-kind { font-size: .75rem; text-transform: uppercase; font-weight: 700; color: var(--red); letter-spacing: .03em; }

/* Promotion */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.promo { position: relative; display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line-strong); border-radius: var(--radius); padding: 14px 14px 14px 44px; cursor: pointer; }
.promo input { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; accent-color: var(--red); }
.promo b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; line-height: 1.1; }
.promo small { color: var(--muted); font-size: .84rem; }
.promo:has(input:checked) { border-color: var(--red); background: #FFF3F3; }
.promo-tag { display: inline-block; align-self: flex-start; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--blue); color: var(--ink); }
.promo-offline .promo-tag, .promo-read .promo-tag.offline { background: var(--yellow); }
.promo-price { font-size: .8rem; font-weight: 700; }
.promo-state { position: absolute; right: 10px; top: 10px; font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--green); }
.promo-read { list-style: none; padding: 0; margin: 0; }
.promo-read li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Vollständigkeits-Panel */
.check-panel { position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow-y: auto; }
.check-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.ring { transform: rotate(-90deg); flex: none; }
.ring-bg { fill: none; stroke: var(--sand); stroke-width: 7; }
.ring-fg { fill: none; stroke: var(--red); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .4s; }
.ring-fg.is-done { stroke: var(--green); }
.check-percent { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 2rem; display: block; line-height: 1; }
.check-sub { font-size: .88rem; color: var(--muted); }
.check-section { border-top: 1px solid var(--line); padding: 10px 0; }
.check-section h4 { font-size: .92rem; margin-bottom: 6px; }
.check-section ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.check-section li { font-size: .88rem; display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: start; }
.check-section li small { grid-column: 2; color: var(--red); font-size: .78rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; background: var(--line-strong); }
li.ok .dot { background: var(--green); }
li.miss .dot { background: var(--red); }
li.miss { font-weight: 600; }
li.opt { color: var(--muted); }
.check-note { font-size: .78rem; color: var(--muted); margin: 8px 0 0; }

/* Tabellen & Kacheln */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.tile { margin: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-top: 5px solid var(--line-strong); transition: transform .12s, box-shadow .12s; }
a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: var(--ink); }
.tile-n { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 2.6rem; line-height: 1; }
.tile-l { font-weight: 600; color: var(--ink-2); }
.tile-info { border-top-color: var(--info); }
.tile-warn { border-top-color: var(--yellow); }
.tile-ok { border-top-color: var(--green); }
.tile-ok-strong { border-top-color: var(--green); background: #F1FAF4; }
.tile-bad { border-top-color: var(--red); }
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: .82rem; letter-spacing: .04em; color: var(--muted); padding: 14px 16px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FBFAF8; }
.meter { display: inline-block; width: 64px; height: 8px; border-radius: 99px; background: var(--sand); overflow: hidden; vertical-align: middle; }
.meter span { display: block; height: 100%; background: var(--green); }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-pills a { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.filter-pills a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.searchbar { display: flex; gap: 10px; margin-bottom: 14px; max-width: 560px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 0; }
.inline-form input { flex: 1; min-width: 160px; min-height: 38px; padding: 6px 10px; }

.attention { border-left: 6px solid var(--yellow); }
.attention-list { list-style: none; padding: 0; margin: 0; }
.attention-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.attention-list p { margin: 4px 0; }
.portfolio-teaser { display: flex; justify-content: space-between; align-items: center; gap: 20px; text-decoration: none; color: var(--ink); background: linear-gradient(120deg, #fff 60%, #FFF1D0); }
.portfolio-teaser:hover { color: var(--ink); box-shadow: var(--shadow-hover); }

/* Produktansicht */
.summary-hero { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; }
.summary-img { width: 180px; height: 180px; border-radius: var(--radius); overflow: hidden; background: var(--sand); display: grid; place-items: center; }
.summary-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { color: var(--muted); font-weight: 600; }
.summary-title { font-size: 1.9rem; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kvs { margin: 0; display: grid; }
.kvs-2 { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.review-side { position: sticky; top: 150px; }
.review-side .check-panel { position: static; max-height: none; }
.review-card .card-title { margin-bottom: 12px; }
.review-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.decision { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.jtl-box { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; display: grid; gap: 10px; }
.jtl-box form { margin: 0; }
.code { background: var(--ink); color: #F4EFE8; padding: 18px; border-radius: var(--radius); overflow-x: auto; font-size: .85rem; line-height: 1.5; margin: 0 0 12px; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); }
.timeline li:last-child { border-left-color: transparent; }
.tl-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.tl-head small { color: var(--muted); }
.timeline p { margin: 6px 0 0; background: var(--bg); padding: 10px 12px; border-radius: 10px; font-size: .93rem; }
.tl-nachbesserung::before { background: var(--yellow) !important; }
.tl-freigegeben::before, .tl-angelegt::before { background: var(--green) !important; }
.tl-abgelehnt::before, .tl-jtl_fehler::before { background: var(--red) !important; }
.tl-eingereicht::before { background: var(--info) !important; }

.company-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 16px; }
.company { margin: 0; }
.company-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.slot-edit { display: grid; gap: 14px; margin-bottom: 16px; }
.slot-row { display: grid; grid-template-columns: 1fr 2fr 1fr 1fr auto; gap: 12px; align-items: end; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.slot-row legend { font-weight: 700; padding: 0 6px; }

/* Platzierungen / Stellplatz-Logik */
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table th.num { text-align: right; }
.table td input { min-height: 38px; padding: 6px 10px; }
.warn-text { color: var(--warn); }
.tile-neutral { border-top-color: var(--ink-2); }
.placement-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; margin-bottom: 20px; }
.placement { margin: 0; }
.placement .kvs-2 { grid-template-columns: 1fr; }
.placement .kv { grid-template-columns: 170px 1fr; }
.placement-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.placement-head h3 { font-size: 1.2rem; margin-bottom: 4px; }
.goal-line { font-size: 1.05rem; margin: 10px 0 8px; font-variant-numeric: tabular-nums; }
.goal-line b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 1.5rem; }
.goal-bar { position: relative; height: 14px; border-radius: 99px; background: var(--sand); overflow: visible; margin: 4px 0 6px; }
.goal-fill { display: block; height: 100%; border-radius: 99px; background: var(--info); }
.goal-fill.is-behind { background: var(--red); }
.goal-fill.is-reached { background: var(--green); }
.goal-time { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: var(--ink); border-radius: 2px; }
.goal-meta { margin-bottom: 10px; }
.store-pick { margin-top: 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 14px; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; margin: 8px 0; font-size: .92rem; }
@media (max-width: 800px) { .placement-grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 36px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer a { color: #fff; }
.footer-brand { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.6rem; color: #fff; }

/* Responsiv */
@media (max-width: 1100px) {
  .product-grid, .review-grid { grid-template-columns: 1fr; }
  .check-panel, .review-side { position: static; max-height: none; }
  .check-panel { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .wrap { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .hero::after { font-size: 7rem; }
  .roles, .summary-grid, .stmt-cols, .kvs-2 { grid-template-columns: 1fr; }
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .usp li:not(:first-child) { display: none; }
  .usp-right { display: none; }
  .who { display: none; }
  .brand img { height: 34px; }
  .brand-tag { font-size: .95rem; }
  .summary-hero { grid-template-columns: 1fr; }
  .summary-img { width: 100%; height: 220px; }
  .promo-teaser { flex-direction: column; align-items: flex-start; }
  .company-list { grid-template-columns: 1fr; }
  .slot-row { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 120px 1fr; }
  .card { padding: 18px; border-radius: 18px; }
  .form-actions { bottom: 8px; }
  .steps { grid-template-columns: 1fr; }
}
