/* ==========================================================================
   wirkaufendeinunfallauto.de – Stylesheet (ohne Build-Schritt)
   ========================================================================== */

:root {
  --ink: #12233a;
  --ink-soft: #3d4f66;
  --muted: #66758a;
  --line: #dde3ea;
  --line-strong: #c4cdd8;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --primary: #1767c0;
  --primary-dark: #0f4f96;
  --primary-tint: #e8f1fc;
  --accent: #f28a0f;
  --accent-dark: #d17200;
  --success: #17803d;
  --success-tint: #e7f6ec;
  --warning: #9a6300;
  --warning-tint: #fff4dc;
  --danger: #c0262d;
  --danger-tint: #fde9ea;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18, 35, 58, .06), 0 4px 16px rgba(18, 35, 58, .06);
  --shadow-lg: 0 12px 40px rgba(18, 35, 58, .14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.h3 { font-size: 1.15rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }
.stack > * + * { margin-top: 1rem; }

/* Header ------------------------------------------------------------------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--primary); }
.nav .phone { font-weight: 600; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.nav .phone .icon { color: var(--primary); }
@media (max-width: 860px) {
  .nav .nav-link { display: none; }
  .nav { gap: 12px; }
  .nav .phone span { display: none; }
  .logo img { height: 34px; }
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none;
  background: var(--primary); color: #fff; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--primary-tint); color: var(--primary-dark); }
.btn--danger { background: var(--danger); }
.btn--danger:hover { background: #9c1d23; }
.btn--lg { padding: 16px 30px; font-size: 1.1rem; border-radius: 12px; }
.btn--sm { padding: 7px 12px; font-size: .9rem; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; text-decoration: underline; }

/* Flash -------------------------------------------------------------------- */
.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin: 16px 0; border: 1px solid; }
.flash--success { background: var(--success-tint); border-color: #b5e2c3; color: #0f5a2a; }
.flash--error { background: var(--danger-tint); border-color: #f3b9bc; color: #8e1b20; }
.flash--warning, .flash--info { background: var(--warning-tint); border-color: #f1d79a; color: #6b4500; }

/* Hero --------------------------------------------------------------------- */
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.hero { position: relative; overflow: hidden; color: #fff; padding: 64px 0 72px;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(23,103,192,.55), transparent 60%), linear-gradient(160deg, #0b1f36 0%, #12304f 65%, #163b62 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #ffc27a; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: #ffb35c; }
.hero .lead { font-size: 1.18rem; color: #cfdcec; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.btn--light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--light:hover { background: rgba(255,255,255,.16); color: #fff; }
.hero-trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #d5e2f1; font-size: .95rem; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: #ffb35c; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.hero-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid rgba(242,138,15,.55); border-radius: 22px; z-index: 0; }
.hero-media img { position: relative; z-index: 1; }
.hero-badge { position: absolute; z-index: 2; left: -22px; bottom: 26px; display: flex; gap: 12px; align-items: center; background: #fff; color: var(--ink); padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); max-width: 300px; }
.hero-badge .icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--primary-tint); color: var(--primary); }
.hero-badge strong { display: block; line-height: 1.25; }
.hero-badge span { font-size: .85rem; color: var(--muted); }
@media (max-width: 960px) {
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { max-width: 560px; }
  .hero-badge { left: 12px; bottom: 12px; }
  .hero-media::before { display: none; }
}

/* Foto-Bänder und geteilte Abschnitte ------------------------------------------ */
.photo-band { position: relative; color: #fff; padding: 84px 0; overflow: hidden; background: #0b1f36; }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,54,.92) 0%, rgba(11,31,54,.6) 55%, rgba(11,31,54,.25) 100%); }
.photo-band .wrap { position: relative; z-index: 1; }
.photo-band h2 { color: #fff; max-width: 18em; }
.photo-band p { color: #d5e2f1; max-width: 36em; }
.photo-band .chips li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(2px); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.split--reverse { grid-template-columns: 1.1fr .9fr; }
.split--reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 28px; }
  .split--reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 16 / 10; }
}
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); }
.feature-list strong { display: block; }
.feature-list span { color: var(--ink-soft); font-size: .95rem; }
.tile-icon { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); margin-bottom: 14px; }
.contact-card { display: flex; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-card img, .contact-card .avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; }
.contact-card .avatar { display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 2rem; font-weight: 700; }
.contact-card h3 { margin-bottom: 4px; }
@media (max-width: 520px) { .contact-card { flex-direction: column; text-align: center; } }
.page-hero { position: relative; color: #fff; padding: 56px 0; overflow: hidden; background: #0b1f36; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 0 0 8px; }
.page-hero p { color: #d5e2f1; margin: 0; max-width: 40em; }
.photo-credit { font-size: .75rem; color: var(--muted); }

/* Sections ----------------------------------------------------------------- */
.section { padding: 64px 0; }
.section--white { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; position: relative; }
.section--white .steps li { background: var(--bg); }
.steps li::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 18px; right: 20px; font-size: 1.6rem; font-weight: 800; color: var(--line-strong); letter-spacing: -.02em; }
.steps li { transition: transform .15s, box-shadow .15s; }
.steps li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tile h3 { font-size: 1.05rem; }
.tile p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; color: var(--ink-soft); }

.cta-band { background: var(--ink); color: #fff; padding: 44px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }

/* Content pages ------------------------------------------------------------- */
.page { padding: 40px 0 64px; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose ul, .prose ol { padding-left: 1.3em; }
.table-scroll { overflow-x: auto; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: #0d1c2f; color: #b8c6d8; padding: 44px 0 28px; font-size: .95rem; }
.site-footer a { color: #dfe8f3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-grid h3 { color: #fff; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid #23364f; margin-top: 28px; padding-top: 18px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Forms -------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3.5vw, 32px); box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title h2, .card-title h3 { margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: .875rem; color: var(--muted); margin: 4px 0 0; }
.opt { font-weight: 400; color: var(--muted); font-size: .875rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=month], input[type=date],
input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s; min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(23, 103, 192, .18); }
[aria-invalid=true] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .9rem; margin: 6px 0 0; font-weight: 500; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; padding: 11px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-weight: 500; }
.choice input:checked + span { border-color: var(--primary); background: var(--primary-tint); color: var(--primary-dark); box-shadow: inset 0 0 0 1px var(--primary); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--primary); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.form-actions .btn--accent { margin-left: auto; }
@media (max-width: 520px) {
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; }
}

/* Wizard ------------------------------------------------------------------- */
.wizard { padding: 28px 0 64px; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.progress li { font-size: .85rem; color: var(--muted); }
.progress li::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 8px; }
.progress li.done::before, .progress li.current::before { background: var(--primary); }
.progress li.current { color: var(--ink); font-weight: 600; }
@media (max-width: 520px) { .progress li span { display: none; } .progress li.current span { display: inline; } }
.wizard-head { margin-bottom: 18px; }
.wizard-head p { color: var(--ink-soft); margin: 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.trust-row span::before { content: "✓ "; color: var(--success); font-weight: 700; }

.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 28px 20px; text-align: center; background: #fafcff; transition: border-color .15s, background .15s; }
.dropzone.is-over { border-color: var(--primary); background: var(--primary-tint); }
.dropzone .btn { margin: 8px 4px 0; }
.dropzone input[type=file] { display: block; margin: 14px auto 0; max-width: 100%; }
.js .dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; font-size: .9rem; color: var(--ink-soft); }
.photo-tips li::before { content: "📷 "; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 18px; list-style: none; padding: 0; }
.thumb { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.thumb .doc { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary-dark); font-weight: 700; font-size: 1.2rem; }
.thumb .meta { padding: 6px 8px; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb form { position: absolute; top: 6px; right: 6px; margin: 0; }
.thumb .remove { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(18,35,58,.75); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.thumb .remove:hover { background: var(--danger); }
.thumb .bar { height: 4px; background: var(--line); }
.thumb .bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.thumb.is-error { border-color: var(--danger); }
.thumb .tag { position: absolute; left: 6px; top: 6px; background: var(--accent); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 999px; font-weight: 600; }

.summary { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 520px) { .summary { grid-template-columns: 1fr; } .summary dd { margin-bottom: 8px; } }

.success-hero { text-align: center; padding: 20px 0; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--success-tint); color: var(--success); display: grid; place-items: center; margin: 0 auto 16px; font-size: 38px; }

/* Portal ------------------------------------------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; padding: 0; margin: 0 0 8px; position: relative; }
.timeline li { text-align: center; font-size: .82rem; color: var(--muted); position: relative; padding-top: 34px; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--line-strong); z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 4px; background: var(--line); }
.timeline li:first-child::after { display: none; }
.timeline li.done::before { background: var(--primary); border-color: var(--primary); }
.timeline li.done::after, .timeline li.current::after { background: var(--primary); }
.timeline li.current::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(242,138,15,.2); }
.timeline li.current { color: var(--ink); font-weight: 600; }
.offer-box { background: linear-gradient(135deg, #fff7ec, #fff); border: 2px solid var(--accent); border-radius: var(--radius); padding: 24px; }
.offer-amount { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.messages { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.msg { max-width: 85%; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.msg--in { margin-left: auto; background: var(--primary-tint); border-color: #cfe0f5; }
.msg--out { margin-right: auto; }
.msg .when { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery .doc { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--primary-tint); font-weight: 700; color: var(--primary-dark); text-decoration: none; font-size: .9rem; text-align: center; padding: 6px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist li::before { content: "☐ "; color: var(--primary); }
details.danger-zone summary { cursor: pointer; color: var(--muted); }

/* Lightbox ------------------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; background: rgba(8, 16, 28, .92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 50px 60px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #cbd5e1; font-size: .9rem; }

/* Badges ------------------------------------------------------------------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge--blue { background: #e3eefc; color: #0f4f96; border-color: #c5dbf6; }
.badge--amber { background: #fff3d6; color: #7a5200; border-color: #f5dc9c; }
.badge--violet { background: #efe9fd; color: #5530b5; border-color: #d9cdf7; }
.badge--orange { background: #ffe9d1; color: #9a4b00; border-color: #fbcf9f; }
.badge--teal { background: #dcf5f2; color: #0b6b62; border-color: #a9e3dc; }
.badge--green { background: var(--success-tint); color: #0f5a2a; border-color: #b5e2c3; }
.badge--gray { background: #eef1f4; color: #4b5869; border-color: #dbe1e8; }
.badge--red { background: var(--danger-tint); color: #8e1b20; border-color: #f3b9bc; }
.dot { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; }

/* ==========================================================================
   Management
   ========================================================================== */
body.admin { font-size: 15px; background: #f1f4f8; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: #0f1f33; color: #c4d1e1; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { display: block; color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: 6px 10px 18px; }
.admin-side .brand small { display: block; font-weight: 400; color: #8fa3bb; font-size: .78rem; }
.admin-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; color: #c4d1e1; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.admin-nav a:hover { background: #1a2f4a; color: #fff; }
.admin-nav a.active { background: var(--primary); color: #fff; }
.admin-side .side-foot { margin-top: 24px; padding: 12px; border-top: 1px solid #22385a; font-size: .85rem; }
.admin-side .side-foot a, .admin-side .side-foot button { color: #c4d1e1; }
.admin-main { padding: 24px clamp(14px, 3vw, 34px) 60px; min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.5rem; margin: 0; }
.admin-mobilebar { display: none; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 0; }
  .admin-side .brand, .admin-side .side-foot { display: none; }
  .admin-nav { display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .admin-nav a { white-space: nowrap; padding: 8px 12px; }
  .admin-mobilebar { display: flex; justify-content: space-between; align-items: center; background: #0f1f33; color: #fff; padding: 10px 14px; }
  .admin-mobilebar a, .admin-mobilebar button { color: #c4d1e1; }
}
.admin .card { box-shadow: none; padding: 18px 20px; }
.admin .card + .card { margin-top: 16px; }
.admin h2 { font-size: 1.1rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.kpi .v { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.kpi .l { color: var(--muted); font-size: .85rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs a .n { color: var(--muted); font-size: .8rem; margin-left: 4px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 320px; min-height: 40px; padding: 8px 12px; }
.toolbar select { width: auto; min-height: 40px; padding: 8px 12px; }

.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #f8fafd; }
.table a.rowlink { color: var(--ink); text-decoration: none; font-weight: 600; }
.table a.rowlink:hover { color: var(--primary); }
.table .cover { width: 64px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--bg); }
.table .cover--empty { display: grid; place-items: center; color: var(--muted); font-size: .7rem; border: 1px dashed var(--line-strong); }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (max-width: 760px) {
  .table--cards thead { display: none; }
  .table--cards tr { display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 12px; border-bottom: 1px solid var(--line); }
  .table--cards td { border: 0; padding: 0; }
  .table--cards td.c-cover { grid-row: span 3; }
  .table--cards td.c-hide { display: none; }
}
.pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; }
.pager span { background: var(--primary); color: #fff; border-color: var(--primary); }

.case-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.case-head h1 { margin: 0; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .case-grid { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; margin: 0; font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.action-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.action-panel { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.log { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.log li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.note { background: #fffbea; border: 1px solid #f3e3a5; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; font-size: .92rem; }
.copy-field { display: flex; gap: 6px; }
.copy-field input { font-size: .85rem; min-height: 38px; padding: 6px 10px; }
.inline-form { display: inline; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #0f2a47, #17406d); }
.login-card { width: 100%; max-width: 400px; }
.login-card .logo-small { height: 34px; margin-bottom: 16px; }
pre.mailbody { white-space: pre-wrap; font-family: inherit; background: var(--bg); padding: 14px; border-radius: 8px; border: 1px solid var(--line); }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .admin-side, .btn, form { display: none !important; }
  body { background: #fff; }
}
