/* Verleih – Design-System. Keine externen Fonts/CDNs (DSGVO-freundlich, schnell). */
:root {
  --ink: #0b1324;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --brand: #1847d6;
  --brand-2: #0ea5e9;
  --brand-ink: #0b2a8a;
  --accent: #ff7a1a;
  --accent-ink: #b84a00;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --err: #dc2626;
  --err-bg: #fef2f2;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06);
  --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px -8px rgb(15 23 42 / .12);
  --shadow-lg: 0 24px 60px -20px rgb(15 23 42 / .28);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { display: inline-flex; gap: .45em; align-items: center; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #cbd5e1; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar a { color: #fff; }
.topbar span { display: inline-flex; gap: .4em; align-items: center; }
.header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .85); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); font-size: 1.1rem; letter-spacing: -.02em; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 16px -6px var(--brand); }
.nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); font-weight: 550; padding: .5rem .8rem; border-radius: 10px; font-size: .95rem; }
.nav a:hover, .nav a.active { background: #eef2ff; color: var(--brand-ink); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--brand); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; color: var(--ink); }
@media (max-width: 860px) {
  .topbar .hide-sm { display: none; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 1rem 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
}

/* ---------- Buttons & Forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75rem 1.2rem; border-radius: 12px; font-weight: 650; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px var(--brand); }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px var(--accent); }
.btn-accent:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; color: var(--ink); }
.btn-sm { padding: .5rem .8rem; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink-2); }
input, select, textarea { width: 100%; font: inherit; padding: .7rem .85rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(24 71 214 / .12); }
.field { margin-bottom: 1rem; }
.field .errorlist { list-style: none; padding: 0; margin: .35rem 0 0; color: var(--err); font-size: .85rem; }
.field .helptext { display: block; color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.grid-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.errorlist.nonfield { background: var(--err-bg); color: var(--err); padding: .75rem 1rem; border-radius: 10px; list-style: none; }

/* ---------- Messages ---------- */
.messages { margin: 1rem 0 0; display: grid; gap: .5rem; }
.msg { padding: .85rem 1.1rem; border-radius: 12px; font-weight: 550; border: 1px solid; }
.msg-success { background: var(--ok-bg); color: #065f46; border-color: #a7f3d0; }
.msg-error { background: var(--err-bg); color: #991b1b; border-color: #fecaca; }
.msg-info, .msg-warning { background: var(--warn-bg); color: #92400e; border-color: #fde68a; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgb(14 165 233 / .22), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgb(24 71 214 / .18), transparent 60%), linear-gradient(180deg, #fff, var(--bg)); padding: 5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.hero h1 span { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.75rem 0 1.5rem; }
.hero-search { display: flex; gap: .5rem; background: #fff; padding: .4rem; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 520px; }
.hero-search input { border: 0; box-shadow: none; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.5rem; color: var(--ink-2); font-size: .92rem; }
.trust span { display: inline-flex; gap: .45em; align-items: center; }
.trust .icon { color: var(--ok); }
.hero-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.6rem; border: 1px solid var(--line); position: relative; }
.hero-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--brand-2), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ai-chat { display: grid; gap: .8rem; font-size: .93rem; }
.bubble { padding: .75rem 1rem; border-radius: 14px; max-width: 92%; }
.bubble.user { background: var(--brand); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.bubble.ai { background: #f1f5f9; border-bottom-left-radius: 4px; }
.bubble.ai strong { color: var(--brand-ink); }
.ai-label { display: flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 3rem; } }

/* ---------- Sections & Cards ---------- */
.section { padding: 4.5rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); max-width: 40em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 1.5rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.cat { display: flex; flex-direction: column; gap: .6rem; padding: 1.35rem; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d2fe; color: var(--ink); }
.cat .cat-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #eef2ff; color: var(--brand); }
.cat .cat-icon .icon { width: 24px; height: 24px; }
.cat p { margin: 0; color: var(--muted); font-size: .9rem; }
.cat-soon { border-style: dashed; background: linear-gradient(135deg, #fff, #f8fafc); }
.cat-soon .cat-icon { background: #fff7ed; color: var(--accent-ink); }
.cat .more { margin-top: auto; font-weight: 650; font-size: .9rem; color: var(--brand); display: inline-flex; gap: .35em; align-items: center; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.product { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.product-media { aspect-ratio: 4/3; display: grid; place-items: center; position: relative; background: linear-gradient(135deg, #eef2ff, #e0f2fe); color: var(--brand); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media > .icon { width: 64px; height: 64px; opacity: .85; }
.product-media .badges { position: absolute; top: .75rem; left: .75rem; display: flex; gap: .35rem; }
.badge { display: inline-flex; align-items: center; gap: .3em; padding: .22rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.badge-rent { background: var(--brand); color: #fff; border-color: transparent; }
.badge-sale { background: var(--accent); color: #fff; border-color: transparent; }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: #a7f3d0; }
.badge-muted { background: #f1f5f9; }
.product-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-body h3 { margin: 0; }
.product-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.product-cat { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.price-row { flex-wrap: wrap; gap: .25rem .75rem; margin-top: auto; padding-top: .8rem; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); }
.price { white-space: nowrap; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.price small { font-weight: 600; font-size: .78rem; color: var(--muted); letter-spacing: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.feature .icon { width: 28px; height: 28px; color: var(--brand); margin-bottom: .6rem; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

.band { background: linear-gradient(135deg, var(--ink), #13254d); color: #e2e8f0; border-radius: var(--radius-lg); padding: 2.5rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.band h2 { color: #fff; }
.band code { background: rgb(255 255 255 / .08); color: #7dd3fc; padding: .2em .5em; border-radius: 6px; font-family: var(--mono); font-size: .88em; }
.band .logos { display: flex; gap: .6rem; flex-wrap: wrap; }
.band .logos span { padding: .5rem .9rem; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); font-weight: 650; font-size: .9rem; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: 1.75rem; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 1.2rem; }
.faq summary { cursor: pointer; font-weight: 650; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 1rem; margin: 0; }

/* ---------- Catalog ---------- */
.page-head { padding: 2.5rem 0 1.5rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.5rem; }
.filters form { display: flex; gap: .5rem; flex: 1; min-width: 260px; max-width: 460px; }
.chip { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.chip.active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }

.detail { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: start; padding-bottom: 4rem; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
.detail-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; }
.detail-media > .icon { width: 110px; height: 110px; }
.prose { color: var(--ink-2); }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; color: var(--ink); }
.checklist { list-style: none; padding: 0; display: grid; gap: .5rem; }
.checklist li { display: flex; gap: .6rem; align-items: start; }
.checklist .icon { color: var(--ok); margin-top: .2rem; }
table.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.specs th, table.specs td { text-align: left; padding: .65rem .2rem; border-bottom: 1px solid var(--line); }
table.specs th { color: var(--muted); font-weight: 550; width: 45%; }
.buybox { position: sticky; top: 88px; }
.buybox h3 { display: flex; gap: .5rem; align-items: center; }
.tier { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1.25rem; }
.tier div { background: var(--bg); border-radius: 10px; padding: .7rem .5rem; text-align: center; }
.tier b { display: block; font-size: 1.1rem; }
.tier small { color: var(--muted); font-size: .76rem; }
.quote { background: var(--bg); border-radius: 12px; padding: 1rem; margin: 1rem 0; font-size: .92rem; display: none; }
.quote.show { display: block; }
.quote .row { display: flex; justify-content: space-between; padding: .2rem 0; }
.quote .total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .5rem; }
.quote .qstatus { font-weight: 700; margin-bottom: .4rem; display: flex; gap: .4em; align-items: center; }
.quote .qstatus.ok { color: var(--ok); }
.quote .qstatus.no { color: var(--err); }
.divider { height: 1px; background: var(--line); margin: 1.25rem 0; }
.radio-row { display: flex; gap: .5rem; }
label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; font-size: .85rem; color: var(--ink-2); margin: 0 0 .8rem; }
label.check input { width: auto; margin-top: .2rem; flex: none; }
.radio-row label { flex: 1; display: flex; gap: .5rem; align-items: center; padding: .65rem .8rem; border: 1px solid #cbd5e1; border-radius: 10px; font-weight: 600; cursor: pointer; margin: 0; }
.radio-row input { width: auto; }
.radio-row label:has(input:checked) { border-color: var(--brand); background: #eef2ff; color: var(--brand-ink); }

/* ---------- Account ---------- */
.auth { max-width: 460px; margin: 3.5rem auto; }
.auth.wide { max-width: 720px; }
.auth .card { padding: 2rem; }
.dash { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2.5rem 0 4rem; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }
.side-nav { display: grid; gap: .25rem; align-content: start; }
.side-nav a { padding: .6rem .8rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; display: flex; gap: .55rem; align-items: center; }
.side-nav a:hover, .side-nav a.active { background: #fff; color: var(--brand-ink); box-shadow: var(--shadow-sm); }
table.list { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.list th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: #f8fafc; }
table.list td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
table.list tr:last-child td { border-bottom: 0; }
table.list .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.status { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #f1f5f9; color: var(--ink-2); }
.status-requested, .status-issued { background: var(--warn-bg); color: var(--warn); }
.status-confirmed, .status-out { background: #eef2ff; color: var(--brand-ink); }
.status-completed, .status-returned, .status-paid { background: var(--ok-bg); color: var(--ok); }
.status-cancelled { background: var(--err-bg); color: var(--err); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #94a3b8; padding: 3.5rem 0 2rem; margin-top: 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.footer a { color: #cbd5e1; display: block; padding: .15rem 0; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: .8rem; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .84rem; }
.footer .legal-links a { display: inline; }
.legal h2 { font-size: 1.15rem; margin-top: 1.8rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
