/* fireaid.ch – reduziertes Design: viel Weissraum, grosse Typografie, ein Akzent. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --accent: #d70015;
  --accent-hover: #b30012;
  --accent-soft: #fff1f2;
  --success: #1d8348;
  --success-soft: #eaf7ef;
  --warning: #b25000;
  --warning-soft: #fff4e5;
  --info: #0066cc;
  --info-soft: #eef5fd;
  --nav-bg: rgba(255, 255, 255, .78);
  --shadow: 0 2px 12px rgba(0, 0, 0, .06);
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* Bewusst helles Thema: gut lesbar im Büro, im Fahrzeug und im Ausdruck. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 700; letter-spacing: -0.022em; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--text); opacity: .8; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; }

.subnav {
  position: sticky; top: 52px; z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}
.subnav .wrap { display: flex; align-items: center; gap: 22px; height: 52px; }
.subnav-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subnav a:not(.btn) { color: var(--text-2); font-size: 13px; }
.subnav a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 11px 22px; border-radius: 980px; border: 0;
  font: 500 17px/1 var(--font); letter-spacing: -0.01em; cursor: pointer; text-decoration: none;
  transition: background-color .2s, color .2s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; }
.btn-quiet { background: var(--bg-alt); color: var(--text); }
.btn-quiet:hover { background: var(--line-soft); color: var(--text); }
.btn-sm { min-height: 30px; padding: 6px 14px; font-size: 14px; }
.btn-xs { min-height: 26px; padding: 4px 11px; font-size: 13px; }
.btn-block { width: 100%; }
.link-more::after { content: " ›"; }
.actions-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 24px; text-align: center; }
.hero .eyebrow { display: block; font-size: 21px; font-weight: 600; color: var(--accent); margin-bottom: 8px; letter-spacing: -0.015em; }
.hero h1 { font-size: clamp(40px, 7vw, 80px); line-height: 1.05; letter-spacing: -0.035em; max-width: 14ch; margin: 0 auto 18px; }
.hero .lead { font-size: clamp(19px, 2.4vw, 25px); line-height: 1.35; color: var(--text-2); max-width: 32ch; margin: 0 auto 32px; letter-spacing: -0.015em; }
.hero-visual { margin: 56px auto 0; max-width: 920px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-3); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; margin-bottom: 14px; }
.section-head p { font-size: 21px; color: var(--text-2); line-height: 1.4; }
.kicker { display: block; font-size: 17px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }

/* ---------- Kacheln ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile {
  background: var(--bg-alt); border-radius: var(--radius-lg); padding: 48px 40px 0;
  text-align: center; overflow: hidden; display: flex; flex-direction: column; min-height: 520px;
}
.section-alt .tile { background: var(--bg-elevated); }
.tile h3 { font-size: 40px; line-height: 1.1; margin-bottom: 8px; }
.tile .tagline { font-size: 21px; color: var(--text-2); line-height: 1.35; max-width: 26ch; margin: 0 auto 18px; }
.tile .price-from { font-size: 14px; color: var(--text-3); margin-bottom: 20px; }
.tile .tile-visual { margin-top: auto; padding-top: 32px; }
.tile-soon { justify-content: center; padding-bottom: 48px; }
.tile-soon h3 { font-size: 32px; color: var(--text-2); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--bg-alt); border-radius: var(--radius); padding: 32px 28px; }
.section-alt .card { background: var(--bg-elevated); }
.card h3 { font-size: 21px; margin-bottom: 8px; letter-spacing: -0.02em; }
.card p { color: var(--text-2); font-size: 17px; }
.card .card-icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 18px; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; margin-top: 48px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--text-2); font-size: 15px; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 20px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.steps b { display: block; font-size: 21px; letter-spacing: -0.02em; margin-bottom: 4px; }
.steps span { color: var(--text-2); }

/* Liste mit Häkchen */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/12px no-repeat;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin-bottom: 16px; }
.split p.lead { font-size: 19px; color: var(--text-2); margin-bottom: 28px; }

/* Berichtsvorschau */
.paper { background: var(--bg-elevated); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; font-size: 14px; border: 1px solid var(--line-soft); }
.paper-head { display: flex; justify-content: space-between; font-weight: 600; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.paper table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.paper th, .paper td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line-soft); }
.paper th { font-size: 12px; font-weight: 600; color: var(--text-3); }
.paper .ok { color: var(--success); font-weight: 600; }
.paper-note { margin-top: 12px; color: var(--text-3); font-size: 13px; }

/* ---------- Preise ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--bg-elevated); border-radius: var(--radius-lg); padding: 36px 32px; position: relative; }
.plan.featured { box-shadow: 0 0 0 2px var(--accent); }
.plan .badge-top { position: absolute; top: 18px; right: 22px; font-size: 12px; font-weight: 600; color: var(--accent); }
.plan h3 { font-size: 28px; margin-bottom: 4px; }
.plan .audience { color: var(--text-2); font-size: 15px; margin-bottom: 24px; }
.plan .amount { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .amount small { font-size: 17px; font-weight: 400; color: var(--text-2); letter-spacing: -0.01em; }
.plan .amount-note { color: var(--text-3); font-size: 13px; margin: 8px 0 24px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 15px; flex: 1; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pricing-foot { text-align: center; color: var(--text-2); margin-top: 28px; font-size: 15px; }

/* ---------- Formulare ---------- */
.form-card { background: var(--bg-elevated); border-radius: var(--radius-lg); padding: 40px; }
.form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.form-grid > * { grid-column: span 6; }
.span-3 { grid-column: span 3 !important; }
.span-2 { grid-column: span 2 !important; }
.span-4 { grid-column: span 4 !important; }
.form-section { font-size: 14px; font-weight: 600; color: var(--text-2); padding-top: 12px; }
.field { display: grid; gap: 6px; align-content: start; }
label, .label { font-size: 14px; font-weight: 500; color: var(--text); }
.hint { font-size: 13px; color: var(--text-3); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input:not([type]), select, textarea {
  width: 100%; font: 17px/1.3 var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2386868b' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--accent); }
.field-error { font-size: 13px; color: var(--accent); }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg-alt); border-radius: 12px; padding: 3px; gap: 3px; }
.segmented label { position: relative; text-align: center; padding: 10px 8px; border-radius: 10px; cursor: pointer; font-size: 15px; color: var(--text-2); transition: background-color .15s, color .15s; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--bg-elevated); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-weight: 500; }
.segmented label:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

.summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 18px; border-radius: 12px; background: var(--bg-alt); font-variant-numeric: tabular-nums; }
.summary b { font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.alert-err { background: var(--accent-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.alert-ok { background: var(--success-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--success); }
.alert-warn { background: var(--warning-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--warning); }

/* ---------- Bestellbereich ---------- */
.order-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.order-aside h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin-bottom: 16px; }
.order-aside p { color: var(--text-2); margin-bottom: 16px; }
.order-aside dl { margin: 28px 0 0; display: grid; gap: 18px; }
.order-aside dt { font-weight: 600; }
.order-aside dd { margin: 2px 0 0; color: var(--text-2); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 300; color: var(--text-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--text-2); }

/* ---------- Seiten mit Text ---------- */
.page { padding: 88px 0 112px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; margin-bottom: 20px; }
.page .lead { font-size: 21px; color: var(--text-2); line-height: 1.4; margin-bottom: 32px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose p, .prose ul { color: var(--text-2); margin: 0 0 14px; }
.prose ul { padding-left: 20px; }
.placeholder { background: var(--warning-soft); color: var(--warning); padding: 0 4px; border-radius: 4px; font-size: .95em; }
.draft-note { display: inline-block; font-size: 13px; color: var(--warning); background: var(--warning-soft); padding: 4px 10px; border-radius: 980px; margin-bottom: 18px; }
.steps-list { display: grid; gap: 16px; margin: 32px 0; }
.step-card { display: grid; grid-template-columns: 40px 1fr; gap: 16px; background: var(--bg-alt); border-radius: var(--radius); padding: 24px; }
.step-card .num { width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.step-card h3 { font-size: 19px; margin-bottom: 6px; }
.step-card p { color: var(--text-2); margin-bottom: 14px; }
.step-card p:last-child { margin-bottom: 0; }
code { font: 14px/1.4 ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; background: var(--bg-alt); padding: 2px 7px; border-radius: 6px; }
.step-card code { background: var(--bg); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--text-2); font-size: 12px; padding: 36px 0 28px; }
.footer .wrap { display: grid; gap: 18px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col b { color: var(--text); font-weight: 600; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tiles, .split, .order-layout { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 734px) {
  body { font-size: 16px; }
  .nav-links { gap: 18px; }
  .nav-links .hide-sm { display: none; }
  .subnav a:not(.btn) { display: none; }
  .section { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .grid-3, .grid-2, .steps, .stats { grid-template-columns: 1fr; }
  .tile { padding: 40px 24px 0; }
  .tile h3 { font-size: 32px; }
  .form-card { padding: 24px 18px; border-radius: var(--radius); }
  .span-3, .span-2, .span-4 { grid-column: span 6 !important; }
  .segmented label { font-size: 14px; padding: 9px 4px; }
}

/* =====================================================================
   Admin
   ===================================================================== */
.admin-body { background: var(--bg-alt); }
.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { background: var(--bg); border-right: 1px solid var(--line-soft); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.sidebar .brand { padding: 4px 10px 18px; }
.sidebar-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 16px 10px 6px; }
.sidebar a.item { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 15px; }
.sidebar a.item:hover { background: var(--bg-alt); text-decoration: none; }
.sidebar a.item.active { background: var(--bg-alt); font-weight: 600; }
.sidebar .count { font-size: 12px; background: var(--accent); color: #fff; border-radius: 980px; padding: 1px 7px; font-weight: 600; }
.sidebar-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--text-2); display: grid; gap: 8px; }
.sidebar-foot form { margin: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.admin-main { padding: 36px 40px 80px; max-width: 1200px; width: 100%; }
.admin-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.admin-head h1 { font-size: 32px; letter-spacing: -0.025em; }
.admin-head .sub { color: var(--text-2); margin-top: 4px; }
.back { display: inline-block; font-size: 14px; margin-bottom: 10px; }
.back::before { content: "‹ "; }

.panel { background: var(--bg); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 20px; }
.panel h2 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 16px; }
.panel h2 .muted { font-weight: 400; font-size: 15px; }
.panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.panel-grid .panel { margin-bottom: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--bg); border-radius: var(--radius); padding: 20px 22px; }
.kpi span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.kpi b { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.kpi small { display: block; color: var(--text-3); font-size: 13px; margin-top: 2px; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.filters a { padding: 6px 13px; border-radius: 980px; color: var(--text-2); font-size: 14px; background: var(--bg); }
.filters a:hover { color: var(--text); text-decoration: none; }
.filters a.active { background: var(--text); color: var(--bg); }

.table-wrap { overflow-x: auto; background: var(--bg); border-radius: var(--radius); }
.panel .table-wrap { border-radius: 0; margin: 0 -26px; padding: 0 26px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.panel table.data th:first-child, .panel table.data td:first-child { padding-left: 0; }
.panel table.data th:last-child, .panel table.data td:last-child { padding-right: 0; }
table.data th { font-size: 12px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: color-mix(in srgb, var(--bg-alt) 55%, transparent); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data small { color: var(--text-3); }
table.data tr.dim td { opacity: .5; }
.empty { padding: 36px; text-align: center; color: var(--text-2); }

.pill { display: inline-block; padding: 2px 9px; border-radius: 980px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--bg-alt); color: var(--text-2); }
.pill-red { background: var(--accent-soft); color: var(--accent); }
.pill-green { background: var(--success-soft); color: var(--success); }
.pill-blue { background: var(--info-soft); color: var(--info); }
.pill-orange { background: var(--warning-soft); color: var(--warning); }

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: 15px; }
dl.kv dt { color: var(--text-2); }
dl.kv dd { margin: 0; }
.pre { white-space: pre-line; }
.inline { display: inline; margin: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.form-inline .field { min-width: 140px; flex: 1; }
.admin-main input, .admin-main select, .admin-main textarea { font-size: 15px; min-height: 40px; padding: 9px 12px; border-radius: 10px; }
.admin-main textarea { min-height: 80px; }
.admin-main .btn { font-size: 15px; min-height: 38px; padding: 8px 18px; }
.admin-main .btn-sm { min-height: 30px; padding: 5px 12px; font-size: 13px; }
.admin-main .btn-xs { min-height: 26px; padding: 3px 10px; font-size: 12px; }
.items-table input { min-height: 36px; padding: 7px 10px; }
.items-table td { padding: 6px 6px 6px 0 !important; border: 0 !important; }
details.disclosure > summary { cursor: pointer; color: var(--accent); font-size: 15px; list-style: none; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: " ›"; }
details.disclosure[open] > summary::after { content: " ⌄"; }
details.disclosure[open] > summary { margin-bottom: 14px; }
.plan-row { border-top: 1px solid var(--line-soft); padding: 16px 0; }
.plan-row:first-of-type { border-top: 0; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: var(--bg-alt); }
.login-card { width: 100%; max-width: 380px; background: var(--bg); border-radius: var(--radius-lg); padding: 40px 36px; display: grid; gap: 16px; }
.login-card .brand { justify-content: center; margin-bottom: 4px; }
.login-card h1 { font-size: 24px; text-align: center; }

@media (max-width: 1000px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .sidebar .brand { padding: 0 10px 0 0; }
  .sidebar-label { display: none; }
  .sidebar a.item { padding: 6px 10px; font-size: 14px; }
  .sidebar-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; gap: 12px; }
  .admin-main { padding: 24px 16px 64px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
}
.paper-result { margin-bottom: 12px; }
a.kpi { color: var(--text); transition: box-shadow .15s; }
a.kpi:hover { text-decoration: none; box-shadow: 0 0 0 1px var(--line); }

/* =====================================================================
   v2: Screenshots, Galerie, Kontakt, Cockpit
   ===================================================================== */
.hero-light { background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%); padding-bottom: 72px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); background: var(--bg); border: 1px solid var(--line-soft); border-radius: 980px; padding: 6px 14px; margin-bottom: 22px; }
.hero-badge b { color: var(--accent); font-weight: 600; }

/* Screenshot im App-Fenster */
.shot { position: relative; margin: 0 auto; max-width: 1080px; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 60px -20px rgba(16,24,40,.25), 0 18px 36px -18px rgba(16,24,40,.2); }
.shot img { width: 100%; height: auto; display: block; }
img[data-zoom] { cursor: zoom-in; }
.shot-caption { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 16px; }
.shot-flat { border-radius: 10px; box-shadow: 0 0 0 1px var(--line-soft), 0 12px 30px -16px rgba(16,24,40,.25); }

.feature-row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line-soft); }
.feature-row:first-of-type { border-top: 0; }
.feature-row.reverse { grid-template-columns: 1.35fr 1fr; }
.feature-row.reverse .feature-text { order: 2; }
.feature-text .kicker { color: var(--accent); }
.feature-text h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; margin-bottom: 14px; }
.feature-text p { color: var(--text-2); font-size: 18px; margin-bottom: 18px; }
.feature-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--text); font-size: 16px; }
.feature-text li::before { content: "–"; color: var(--accent); margin-right: 8px; font-weight: 700; }

.steps-image { max-width: 1080px; margin: 0 auto 40px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(16,24,40,.35); }
.steps-image img { width: 100%; display: block; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery figure { margin: 0; background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line-soft); }
.gallery img { width: 100%; display: block; border-bottom: 1px solid var(--line-soft); }
.gallery figcaption { padding: 18px 20px 22px; }
.gallery figcaption b { display: block; font-size: 18px; letter-spacing: -0.02em; margin-bottom: 4px; }
.gallery figcaption span { color: var(--text-2); font-size: 15px; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.spec { border-top: 2px solid var(--text); padding-top: 14px; }
.spec b { display: block; font-size: 15px; margin-bottom: 4px; }
.spec span { color: var(--text-2); font-size: 15px; }

.news { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.news-item { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 18px 22px; background: var(--bg); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-soft); }
.news-item .version { font-weight: 700; color: var(--accent); }
.news-item p { color: var(--text-2); font-size: 15px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 18, 24, .86); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 16px; right: 20px; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 22px; cursor: pointer; }

/* Kontakt / Über uns */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-card { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 32px; }
.contact-card dl { margin: 0; display: grid; gap: 16px; }
.contact-card dt { font-size: 13px; color: var(--text-3); }
.contact-card dd { margin: 2px 0 0; font-size: 17px; }
.value-list { display: grid; gap: 18px; margin-top: 28px; }
.value-list div { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.value-list svg { width: 28px; height: 28px; color: var(--accent); }
.value-list b { display: block; }
.value-list span { color: var(--text-2); }

/* Admin: Cockpit */
.kpi-trend { font-size: 12px; font-weight: 600; margin-left: 6px; }
.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--accent); }
.kpi.kpi-wide { grid-column: span 2; }
.progress { height: 10px; background: var(--bg-alt); border-radius: 980px; overflow: hidden; margin: 10px 0 6px; }
.progress > span { display: block; height: 100%; background: var(--success); border-radius: 980px; }
.progress.warn > span { background: var(--warning); }
.progress.danger > span { background: var(--accent); }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--font); fill: var(--text-3); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--text-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbar { display: grid; grid-template-columns: 160px 1fr 90px; gap: 10px; align-items: center; font-size: 14px; padding: 5px 0; }
.hbar .track { height: 8px; background: var(--bg-alt); border-radius: 980px; overflow: hidden; }
.hbar .track span { display: block; height: 100%; background: var(--info); border-radius: 980px; }
.hbar .num { text-align: right; font-variant-numeric: tabular-nums; }
.task-list { display: grid; gap: 8px; }
.task { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg-alt); color: var(--text); }
.task:hover { text-decoration: none; background: var(--line-soft); }
.task.done { opacity: .55; }
.note-list { display: grid; gap: 10px; margin-top: 12px; }
.note { background: var(--bg-alt); border-radius: 10px; padding: 10px 14px; font-size: 14px; white-space: pre-line; }
.note small { display: block; color: var(--text-3); margin-bottom: 4px; white-space: normal; }
.search { display: flex; gap: 8px; max-width: 460px; }
.message { border-top: 1px solid var(--line-soft); padding: 16px 0; }
.message:first-child { border-top: 0; }
.message-body { white-space: pre-line; background: var(--bg-alt); border-radius: 10px; padding: 12px 14px; margin: 8px 0; font-size: 14px; }
.statement tr.total td { font-weight: 700; border-top: 2px solid var(--text); }

@media (max-width: 1000px) {
  .feature-row, .feature-row.reverse, .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .feature-text { order: 0; }
  .gallery, .spec-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 734px) {
  .gallery, .spec-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .hbar { grid-template-columns: 100px 1fr 70px; }
  .kpi.kpi-wide { grid-column: span 1; }
}
.split-image { max-width: 100%; height: auto; display: block; }
.contact-cta { margin-top: 22px; }
.tile-visual img { border-radius: 12px 12px 0 0; }
.admin-head.tight { margin-bottom: 0; }
.row-actions.start { justify-content: flex-start; }
.meter { width: 100%; height: 10px; display: block; margin: 10px 0 6px; }
.meter-track { fill: var(--bg-alt); }
.meter-fill { fill: var(--success); }
.meter-fill.warn { fill: var(--warning); }
.meter-fill.danger { fill: var(--accent); }
.meter-fill.info { fill: var(--info); }
.legend-green { background: #1d8348; }
.legend-red { background: #d70015; opacity: .75; }
.hbar .meter { margin: 0; }
.mt { margin-top: 24px; }
/* Grid-Spalte darf schmaler als ihr Inhalt werden – breite Tabellen scrollen in .table-wrap */
.admin-main, .panel, .panel-grid > * { min-width: 0; }
@media (max-width: 1000px) { .admin-shell { grid-template-columns: minmax(0, 1fr); } .admin-head .filters { flex-wrap: wrap; } }

/* ===== Markenauftritt fireaid.ch (v2.3): Papier, Fraunces/Inter, Gold→Orange→Rot ===== */
:root {
  --bg: #FAF7F0;
  --bg-alt: #F1EADC;
  --bg-elevated: #ffffff;
  --text: #1B1610;
  --text-2: #463F35;
  --text-3: #79705F;
  --line: #E3DBCB;
  --line-soft: #ECE5D6;
  --accent: #E0401C;
  --accent-hover: #B22E10;
  --accent-soft: #FCE9E2;
  --success: #3E7B4F;
  --success-soft: #E7F1E9;
  --nav-bg: rgba(247, 245, 241, .92);
  --shadow: 0 2px 14px rgba(32, 20, 16, .07);
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --brand-grad: linear-gradient(135deg, #F6B81E, #F1901E 46%, #E0401C);
}
body { font-size: 16px; line-height: 1.55; letter-spacing: 0; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: 0; }
em { font-style: italic; color: var(--accent); }
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { height: 64px; }
.brand { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: .01em; }
.brand-mark { width: 30px; height: 30px; }
.nav-links a { color: var(--text-2); font-weight: 500; }
.btn { border-radius: 999px; font-weight: 600; letter-spacing: .01em; }
.btn-secondary { color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.btn-secondary:hover { background: var(--text); color: #fff; }
.hero { position: relative; }
.hero-light { background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(246, 184, 30, .16), transparent 70%); }
.hero h1 { letter-spacing: -0.01em; max-width: 18ch; }
.hero h1 em { display: block; }
.hero .eyebrow { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 999px; margin-bottom: 22px; }
.hero-badge b { background: var(--brand-grad); color: #fff; }
.section-head h2, .tile h3, .split h2, .page h1, .order-aside h2 { letter-spacing: -0.005em; }
.kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.card { background: var(--bg-elevated); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tile { background: var(--bg-elevated); border: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); font-size: 13px; padding: 56px 0 28px; }
.footer::before { content: ""; display: block; height: 3px; margin-top: -56px; margin-bottom: 53px; background: var(--brand-grad); }
.admin-head h1, .panel h2, .login-card h1 { font-family: var(--font); font-weight: 700; }
.inline-form { display: inline; margin: 0; }
.center-row { justify-content: center; }

/* ReadyMat-Produktseite */
.rm-mock { display: grid; grid-template-columns: 1fr 230px; gap: 28px; align-items: end; max-width: 860px; margin: 48px auto 0; text-align: left; }
.rm-mock-board, .rm-mock-phone { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 18px 50px rgba(32, 20, 16, .12); }
.rm-mock-board { padding: 22px; }
.rm-mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.rm-mock-kpis div { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.rm-mock-kpis span { display: block; font-size: 11px; color: var(--text-3); }
.rm-mock-kpis b { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.rm-mock-kpis .warn b { color: #b25000; }
.rm-mock-kpis .err b { color: var(--accent); }
.rm-mock-list { list-style: none; margin: 0; padding: 0; }
.rm-mock-list li { display: grid; grid-template-columns: 1fr auto; padding: 10px 2px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.rm-mock-list small { grid-column: 1; color: var(--text-3); font-size: 12px; }
.rm-mock-list i { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.rm-mock i, .rm-tile i { font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
i.ok { background: var(--success-soft); color: var(--success); }
i.err { background: var(--accent-soft); color: var(--accent-hover); }
i.info { background: #eef2f8; color: #2c4a7a; }
i.warn { background: #fff4e5; color: #b25000; }
.rm-mock-phone { padding: 18px 16px; border-radius: 26px; border-width: 6px; border-color: #201410; font-size: 13px; }
.rm-mock-phone b { display: block; font-family: var(--font-display); font-size: 18px; }
.rm-mock-phone small { color: var(--text-3); }
.rm-bar { display: block; height: 6px; background: var(--line-soft); border-radius: 3px; margin: 8px 0 12px; overflow: hidden; }
.rm-bar i { display: block; width: 62%; height: 100%; padding: 0; border-radius: 0; background: var(--brand-grad); }
.rm-mock-phone p { margin: 6px 0; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 8px; }
.rm-mock-phone p.on { background: var(--success-soft); border-color: transparent; }
.rm-mock-phone p em { display: block; font-size: 11px; font-style: normal; color: var(--accent-hover); }
.rm-done { display: block; text-align: center; margin-top: 12px; padding: 9px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; }
.rm-plan { display: flex; flex-direction: column; gap: 10px; }
.rm-plan .btn { margin-top: auto; align-self: flex-start; }
.rm-plan .checks { margin: 8px 0 18px; gap: 8px; }
.rm-plan-hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.rm-price { font-family: var(--font-display); font-size: 36px; color: var(--text); }
.rm-price small { font-family: var(--font); font-size: 14px; color: var(--text-3); }
.rm-tile { max-width: 320px; margin: 0 auto; display: grid; gap: 8px; text-align: left; }
.rm-tile p { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
@media (max-width: 734px) {
  .rm-mock { grid-template-columns: 1fr; }
  .rm-mock-kpis { grid-template-columns: 1fr 1fr; }
  .rm-mock-phone { display: none; }
}
.subnav { top: 64px; }
.rm-mock > * { min-width: 0; }
@media (max-width: 734px) {
  .nav .wrap { gap: 14px; height: 56px; }
  .subnav { top: 56px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 26px; height: 26px; }
  .nav-links { gap: 16px; font-size: 13px; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
}
@media (max-width: 380px) { .nav-links a[href$="/kontakt"] { display: none; } }
/* Mobil: Admin-Navigation als eine wischbare Leiste, kompaktere Abschnitte */
@media (max-width: 734px) {
  .sidebar { position: sticky; top: 0; z-index: 30; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 2px; padding: 8px 12px; scrollbar-width: none; align-content: center; }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar .brand { font-size: 18px; flex: none; }
  .sidebar .brand-mark { width: 24px; height: 24px; }
  .sidebar a.item { flex: none; }
  .sidebar-foot { flex: none; margin-left: 12px; }
  .admin-main { padding: 18px 14px 56px; }
  .section { padding: 56px 0; }
  .hero { padding-top: 48px; padding-bottom: 8px; }
  .section-head { margin-bottom: 32px; }
  .section-head p, .tile .tagline { font-size: 18px; }
  .tile h3 { font-size: 32px; }
}
/* Zahlen immer mit Normalziffern (Georgia zeichnet Mediävalziffern: 0 wie o) */
.kpi b, .rm-mock-kpis b, .rm-price, .price, .amount, td.num, .hbar b { font-family: var(--font); font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
.rm-price { font-size: 32px; }
/* Admin-Navigation kompakter: alle Bereiche ohne Scrollen sichtbar */
@media (min-width: 735px) {
  .sidebar { gap: 1px; padding-top: 16px; }
  .sidebar .brand { padding-bottom: 12px; }
  .sidebar a.item { padding: 6px 10px; font-size: 14.5px; }
  .sidebar-label { padding: 12px 10px 4px; }
}
.form-grid .span-8 { grid-column: 1 / -1; }
.btn-danger { background: transparent; color: #b3261e; box-shadow: inset 0 0 0 1px #b3261e; }
.btn-danger:hover { background: #b3261e; color: #fff; }
/* Mobil: Menüleiste nur so hoch wie nötig, Belegnummern ohne Umbruch */
@media (max-width: 1000px) { .admin-shell { grid-template-rows: auto 1fr; align-items: start; } }
.data td:first-child a, .data td:first-child code { white-space: nowrap; }

/* ---------- Admin: Modale ---------- */
dialog.modal { border: 0; border-radius: 16px; padding: 0; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--bg-elevated); color: inherit; box-shadow: 0 24px 64px rgba(30, 20, 10, .28); overflow: auto; }
dialog.modal::backdrop { background: rgba(28, 22, 16, .45); backdrop-filter: blur(2px); }
dialog.modal .modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; background: inherit; border-bottom: 1px solid var(--line-soft); }
dialog.modal .modal-head h2 { margin: 0; font-size: 19px; }
dialog.modal .modal-close { border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--text-2); padding: 4px 8px; border-radius: 8px; }
dialog.modal .modal-close:hover { background: rgba(0, 0, 0, .06); }
dialog.modal .modal-body { padding: 20px 22px 22px; }
dialog.modal .modal-body .table-wrap, dialog.modal .modal-body table { max-width: 100%; }
dialog.modal .modal-foot { display: flex; justify-content: flex-end; padding: 0 22px 20px; }
.modal-trigger { display: inline-block; margin-right: 8px; }
.modal-trigger.mt { margin-top: 14px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.panel-actions .modal-trigger { margin: 0; }
.admin-quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-bottom: 14px; }
.admin-quick .modal-trigger { margin: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.quick-grid a { display: block; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 12px; text-decoration: none; color: inherit; }
.quick-grid a:hover { border-color: var(--accent); }
.quick-grid a b { display: block; }
.quick-grid a small { color: var(--text-2); }
.address-block { line-height: 1.55; margin: 0 0 4px; }
@media (max-width: 640px) {
  dialog.modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  dialog.modal .modal-body { padding: 16px; }
  dialog.modal .form-grid { grid-template-columns: 1fr !important; }
  dialog.modal .form-grid > * { grid-column: 1 / -1 !important; }
  dialog.modal .form-inline { flex-direction: column; align-items: stretch; }
  dialog.modal .items-table thead { display: none; }
  dialog.modal .items-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
  dialog.modal .items-table td { padding: 0; border: 0; }
  dialog.modal .items-table td:first-child, dialog.modal .items-table td:nth-child(2) { grid-column: 1 / -1; }
  .admin-quick { justify-content: flex-start; }
}

/* ---------- Mobile Navigation ---------- */
.nav-toggle { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) {
  header.nav.has-toggle .wrap { position: relative; }
  header.nav.has-toggle .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 44px; height: 44px; padding: 0 11px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
  header.nav.has-toggle .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
  header.nav.has-toggle.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  header.nav.has-toggle.open .nav-toggle span:nth-child(2) { opacity: 0; }
  header.nav.has-toggle.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  header.nav.has-toggle .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line-soft); box-shadow: 0 16px 32px rgba(30, 20, 10, .12); overflow: visible; white-space: normal; font-size: 17px; }
  header.nav.has-toggle.open .nav-links { display: flex; }
  header.nav.has-toggle .nav-links a, header.nav.has-toggle .nav-links a.hide-sm { display: block !important; padding: 13px 4px; border-bottom: 1px solid var(--line-soft); opacity: 1; }
  header.nav.has-toggle .nav-links a:last-child { border-bottom: 0; }
}

/* ---------- Kundenkonto ---------- */
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.account-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 8px; }
.account-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.account-card .row-actions form { display: inline; }
@media (max-width: 640px) { .account-head { flex-direction: column; } }
.item-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.item-picker label { font-weight: 600; font-size: 14px; }
.item-picker select { min-width: 260px; max-width: 100%; }
@media (max-width: 640px) { .item-picker select { min-width: 0; width: 100%; } }
dialog.modal .table-wrap { width: 100%; box-sizing: border-box; }

/* ===== Wassertransport-Look (v3): Schiefer-Leiste, kühles Grau, Segoe UI, Rot #C62828 – wie die Desktop-App ===== */
:root {
  --bg: #F5F7FA;
  --bg-alt: #EEF1F5;
  --bg-elevated: #FFFFFF;
  --text: #1F2937;
  --text-2: #4B5563;
  --text-3: #6B7280;
  --line: #D0D5DD;
  --line-soft: #E5E7EB;
  --accent: #C62828;
  --accent-hover: #8E0000;
  --accent-soft: #FCE4E4;
  --success: #1B7F4B;
  --success-soft: #E6F4ED;
  --warning: #C77D12;
  --warning-soft: #FBEFD8;
  --info: #295EA8;
  --info-soft: #E2ECF8;
  --slate: #1F2937;
  --slate-2: #2B3544;
  --slate-line: #3A4556;
  --nav-bg: #1F2937;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06);
  --radius: 8px;
  --radius-lg: 12px;
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --brand-grad: linear-gradient(135deg, #C62828, #8E0000);
}
body { background: var(--bg); color: var(--text); font-family: var(--font); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.015em; }
em { font-style: normal; color: var(--accent); }

/* Kopfzeile wie die Schrittleiste der App */
.nav, header.nav { background: var(--slate); border-bottom: 1px solid #111827; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav .brand, .nav .brand:hover { color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }
.nav .nav-links a { color: #CBD5E1; opacity: 1; padding: 6px 10px; border-radius: 6px; }
.nav .nav-links a:hover { color: #fff; background: var(--slate-2); text-decoration: none; }
.nav .nav-links a[aria-current="page"] { color: #fff; background: var(--accent); }
header.nav.has-toggle .nav-toggle span { background: #fff; }
@media (max-width: 720px) {
  header.nav.has-toggle .nav-links { background: var(--slate); border-bottom-color: #111827; box-shadow: 0 16px 32px rgba(0, 0, 0, .25); }
  header.nav.has-toggle .nav-links a, header.nav.has-toggle .nav-links a.hide-sm { border-bottom-color: var(--slate-line); border-radius: 0; }
  header.nav.has-toggle .nav-links a[aria-current="page"] { background: transparent; color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
}
.subnav { background: #fff; border-bottom: 1px solid var(--line-soft); }

/* Hero: hell, mit roter Akzentlinie wie die aktive Kachel */
.hero-light { background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%); border-bottom: 1px solid var(--line-soft); }
.hero .eyebrow, .eyebrow, .kicker { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--accent); border: 0; padding: 0; background: none; }
.hero-badge { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-badge b { background: var(--accent); color: #fff; border-radius: 6px; }

/* Buttons wie in der App: kompakt, 8px Radius */
.btn { border-radius: var(--radius); font-weight: 600; letter-spacing: 0; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-secondary:hover { background: #E8EDF3; color: var(--text); }
.btn-quiet { background: #F0F2F5; color: var(--text); }
.btn-quiet:hover { background: #E8EDF3; }

/* Karten, Kacheln, Abschnitte */
.card, .tile, .panel, .paper, .plan, .step-card { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.rm-plan-hl, .plan.highlighted { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.rm-mock-phone { border-color: var(--slate); }
input, select, textarea { border-color: var(--line); border-radius: 6px; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); outline: none; }
.pill-green { background: var(--success-soft); color: var(--success); }
.pill-red { background: var(--accent-soft); color: var(--accent-hover); }
.pill-orange { background: var(--warning-soft); color: #8A5300; }
.pill-blue { background: var(--info-soft); color: var(--info); }
.alert-ok { background: var(--success-soft); border-color: #B7DFC8; color: #145C37; }
.alert-err { background: var(--accent-soft); border-color: #F2B8B8; color: var(--accent-hover); }

/* Footer dunkel wie die Leiste */
.footer { background: var(--slate); color: #CBD5E1; border-top: 0; }
.footer::before { background: var(--accent); }
.footer a { color: #CBD5E1; }
.footer a:hover { color: #fff; }
.footer-col b, .footer .brand { color: #fff; }
.footer-top { border-bottom-color: var(--slate-line); }

/* Admin: Seitenleiste wie die App-Seitenleiste */
.admin-body { background: var(--bg); }
.sidebar { background: #F0F2F5; border-right: 1px solid var(--line); }
.sidebar .brand { font-family: var(--font-display); font-weight: 700; }
.sidebar a.item:hover { background: #E8EDF3; }
.sidebar a.item.active, .sidebar a.item[aria-current="page"] { background: #fff; color: var(--accent); box-shadow: inset 3px 0 0 var(--accent), var(--shadow); }
.sidebar-label { color: var(--accent); font-weight: 700; letter-spacing: .08em; }
.admin-head h1, .panel h2, .login-card h1 { font-family: var(--font-display); font-weight: 650; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
table.data thead th { background: #F9FAFB; color: var(--text-2); }
table.data tbody tr:nth-child(even) td { background: #FBFCFD; }
dialog.modal .modal-head { background: #fff; }
.renew { border-radius: var(--radius); }
.row-actions .modal-trigger { margin-right: 0; }

/* ===== Produktfarben (v3.1): FireAid-Rot bleibt Akzent für Aktionen; jedes Produkt trägt eine eigene Kennfarbe. ===== */
:root {
  --product-wassertransport: #C62828;
  --product-readymat: #2E7D32;
  --product-lopisignage: #295EA8;
  --product-elementar: #C77D12;
}
[data-product] { --product: var(--accent); }
[data-product="wassertransport"] { --product: var(--product-wassertransport); }
[data-product="readymat"] { --product: var(--product-readymat); }
[data-product="lopisignage"] { --product: var(--product-lopisignage); }
[data-product="elementar"] { --product: var(--product-elementar); }
.tile[data-product] { border-top: 4px solid var(--product); }
body[data-product] .eyebrow, body[data-product] .kicker { color: var(--product); }
body[data-product] .subnav-title::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--product); margin-right: 10px; vertical-align: 1px;
}
body[data-product] .subnav { border-bottom: 2px solid var(--product); }
.badge-dev {
  display: inline-block; padding: 4px 12px; margin-bottom: 14px; border-radius: 980px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--warning-soft); color: #8A5300; border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
}
.license-text { width: 100%; font: 13px/1.45 ui-monospace, Consolas, "Cascadia Mono", monospace; background: var(--bg); white-space: pre; overflow: auto; }
