/* ============================================================================
   Profundo POC – Kundenseite
   Branding: klares Legal-Tech, Navy + Weiss, Signalfarben nur fuer Befunde
   ========================================================================== */

:root {
  --navy-950: #0b1626;
  --navy-900: #0f1d33;
  --navy-800: #16294a;
  --navy-100: #dbe4f0;
  --ink: #1c2839;
  --ink-soft: #51617a;
  --line: #e3e9f2;
  --bg: #f5f7fb;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-dark: #1d4fd7;
  --red: #d92d2d;
  --red-bg: #fdf1f1;
  --amber: #b45309;
  --amber-bg: #fdf6ec;
  --green: #15803d;
  --green-bg: #eefaf2;
  --gold: #b8860b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 29, 51, .05), 0 8px 24px rgba(15, 29, 51, .07);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy-900);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; flex-wrap: wrap; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px;
}
.site-header .container > * { min-width: 0; }
.wordmark {
  font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: #fff;
}
.wordmark:hover { text-decoration: none; }
.wordmark .dot { color: var(--accent); }
.wordmark .tld { font-weight: 400; opacity: .55; font-size: 15px; }
.site-nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.site-nav a { color: rgba(255,255,255,.82); font-size: 14.5px; font-weight: 500; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a.nav-cta {
  background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 8px;
}
.site-nav a.nav-cta:hover { background: var(--accent-dark); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 72px; padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: 13.5px;
}
.site-footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.poc-banner {
  background: #fff8e6; border-bottom: 1px solid #f1e3b3;
  color: #7a5b0d; font-size: 13px; text-align: center; padding: 7px 16px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #fff;
  padding: 72px 0 88px;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
@media (max-width: 920px) { .hero .container { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #9db6dd;
  border: 1px solid rgba(157,182,221,.35); border-radius: 999px;
  padding: 5px 13px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 44px); line-height: 1.14;
  margin: 0 0 18px; font-weight: 750; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: #7fa7ec; }
.hero .sub { font-size: 18px; color: #b9c7dd; margin: 0 0 28px; max-width: 46ch; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-points li { display: flex; gap: 11px; align-items: flex-start; color: #cdd8ea; font-size: 15px; }
.hero-points .tick {
  flex: 0 0 auto; width: 21px; height: 21px; border-radius: 50%;
  background: rgba(47,191,113,.16); color: #4ade80;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; margin-top: 2px;
}

/* ── Upload-Karte ───────────────────────────────────────────────────────── */
.upload-card {
  background: var(--card); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px;
}
.upload-card h2 { margin: 0 0 4px; font-size: 19px; }
.upload-card .free-tag {
  float: right; background: var(--green-bg); color: var(--green);
  font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.upload-card .hint { color: var(--ink-soft); font-size: 14px; margin: 0 0 18px; }

.dropzone {
  border: 2px dashed #c3d0e4; border-radius: 12px;
  padding: 30px 18px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
  background: #fafcff;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #f0f5ff; }
.dropzone .dz-icon { font-size: 30px; margin-bottom: 6px; }
.dropzone p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.dropzone p strong { color: var(--ink); }
.dropzone .dz-file {
  display: none; font-weight: 600; color: var(--accent); word-break: break-all;
}
.dropzone.has-file .dz-file { display: block; }
.dropzone.has-file .dz-prompt { display: none; }

.field { margin-top: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input[type="email"], .field input[type="text"] {
  width: 100%; padding: 11px 13px; font-size: 15px; font-family: var(--font);
  border: 1px solid #c9d4e3; border-radius: 9px; background: #fff; color: var(--ink);
}
.field input:focus { outline: 2px solid rgba(37,99,235,.35); border-color: var(--accent); }
.field textarea {
  width: 100%; padding: 11px 13px; font-size: 15px; font-family: var(--font);
  border: 1px solid #c9d4e3; border-radius: 9px; background: #fff; color: var(--ink);
  resize: vertical; min-height: 58px;
}
.field textarea:focus { outline: 2px solid rgba(37,99,235,.35); border-color: var(--accent); }
.field .field-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; }
.label-optional { font-weight: 400; color: var(--ink-soft); }

/* Upload-Assistent: schlanker Stepper (Punkte mit Verbindungslinie) */
.wiz-steps {
  display: flex; align-items: flex-start; margin: 18px 0 20px; padding: 0 4px;
}
.ws {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  position: relative; min-width: 0;
}
/* Verbindungslinie zwischen den Punkten */
.ws + .ws::before {
  content: ""; position: absolute; top: 12px; right: 50%;
  width: 100%; height: 2px; background: #dfe7f3;
  transform: translateX(-13px); z-index: 0;
}
.ws.done + .ws::before, .ws.active + .ws.done::before { background: var(--green); }
.ws-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 25px; height: 25px; border-radius: 50%; font-size: 12.5px; font-weight: 700;
  background: #fff; color: var(--ink-soft); border: 2px solid #dfe7f3;
  position: relative; z-index: 1; transition: all .2s ease;
}
.ws-lbl {
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft);
  letter-spacing: .02em; white-space: nowrap;
}
.ws.active .ws-num {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}
.ws.active .ws-lbl { color: var(--navy); }
.ws.done .ws-num { background: var(--green); border-color: var(--green); font-size: 0; }
.ws.done .ws-num::before { content: "\2713"; position: absolute; font-size: 12.5px; color: #fff; }
.ws.done .ws-lbl { color: var(--green); }

/* Auswahl-Chips (z. B. Unternehmen/Privatperson im Checkout) */
.chip {
  padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  font-family: var(--font); cursor: pointer; background: #f1f5fb;
  border: 1px solid #d5e0f0; color: var(--ink); transition: all .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.selected { background: var(--accent); border-color: var(--accent); color: #fff; }

.wiz-panel { display: none; }
.wiz-panel.active { display: block; animation: wizfade .25s ease; }
@keyframes wizfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wiz-note { text-align: center; margin-top: 10px; }

/* Code-Eingabe (E-Mail-Verifizierung) */
.code-verify { display: none; margin-top: 6px; }
.code-verify.visible { display: block; animation: wizfade .25s ease; }
.code-verify input {
  text-align: center; font-size: 22px; letter-spacing: 10px; font-weight: 700;
}
.demo-code {
  display: none; margin-top: 8px; padding: 9px 12px; border-radius: 9px;
  background: #fff7ea; border: 1px dashed #e4c883; font-size: 13.5px; color: var(--ink);
}
.demo-code.visible { display: block; }

/* Honeypot: fuer Menschen unsichtbar, fuer Bots ein normales Feld */
#hp-field, #login-hp {
  position: absolute !important; left: -9999px !important; top: -9999px !important;
  height: 1px; width: 1px; opacity: 0; pointer-events: none;
}

/* Zusammenfassung in Schritt 3 */
.wiz-summary { margin: 6px 0 14px; }
.sum-row {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.sum-row:last-child { border-bottom: none; }
.sum-label { flex: 0 0 76px; color: var(--ink-soft); font-size: 13px; }
.sum-value { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-weight: 600; }
.sum-edit {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: 13px; font-family: var(--font); padding: 0;
}
.sum-edit:hover { text-decoration: underline; }

/* KI-Rueckfragen der Vorpruefung (Chat-Stil) */
.clarify-wrap { text-align: left; }
.chat-box { margin: 6px 0 4px; }
.chat-row { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.chat-avatar {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: #eef3fd; display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.chat-bubble {
  background: #f1f5fb; border: 1px solid #dbe4f2; border-radius: 4px 14px 14px 14px;
  padding: 10px 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink);
  max-width: 100%;
}
.chat-bubble.warn { background: #fef6e7; border-color: #f3ddb0; }
.clarify-q { margin-top: 14px; }
.clarify-q input { margin-top: 8px; }
.clarify-form .conflict-check { margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 15.5px; font-weight: 650;
  border: none; border-radius: 10px; padding: 13px 22px; cursor: pointer;
  transition: background .15s, transform .05s;
  max-width: 100%; white-space: normal; text-align: center;
}
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { background: #9db6dd; cursor: not-allowed; }
.btn-block { width: 100%; margin-top: 18px; }
.btn-ghost {
  background: transparent; color: var(--accent); border: 1px solid #c9d4e3;
}
.btn-ghost:hover { border-color: var(--accent); }

.form-error {
  display: none; margin-top: 14px; padding: 11px 14px; border-radius: 9px;
  background: var(--red-bg); color: var(--red); font-size: 14px;
}
.form-error.visible { display: block; }

/* Bestaetigung nach Upload */
.confirm-panel { display: none; }
.confirm-panel.visible { display: block; }
.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #f0f5ff; border: 1px solid #c7d8f7; border-radius: 10px;
  padding: 14px 16px; margin: 16px 0; flex-wrap: wrap;
}
.code-box .code { font-size: 24px; font-weight: 800; letter-spacing: .18em; color: var(--navy-900); }

/* ── Abschnitte der Landing Page ────────────────────────────────────────── */
.section { padding: 64px 0 0; }
.section h2 { font-size: 26px; letter-spacing: -.015em; margin: 0 0 8px; }
.section .section-sub { color: var(--ink-soft); margin: 0 0 30px; max-width: 62ch; }

/* "So funktioniert's": Flow-Karten mit Icons, Verbindungspfeilen und Hover-Dynamik */
.flow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  counter-reset: flow;
}
.flow-card {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px 24px;
  display: flex; flex-direction: column; align-items: flex-start;
  box-shadow: 0 1px 2px rgba(15,29,51,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* Farbverlaufs-Kante oben */
.flow-card::before {
  content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--accent), #7fa7ec);
  opacity: .85;
}
.flow-card:hover {
  transform: translateY(-5px);
  border-color: #c7d6ee;
  box-shadow: 0 4px 10px rgba(15,29,51,.07), 0 20px 44px rgba(15,29,51,.13);
}
/* Verbindungspfeil: dezent, exakt in der Luecke zwischen den Karten */
.flow-card:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -23px; z-index: 0;
  width: 20px; height: 20px; margin-top: -10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db6dd' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13'/%3E%3Cpath d='m13 7 5 5-5 5'/%3E%3C/svg%3E") center/14px 14px no-repeat;
}

.flow-top {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; margin-bottom: 16px;
}
.flow-icon {
  position: relative; width: 54px; height: 54px; border-radius: 15px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--navy-800) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(37,99,235,.28);
  overflow: hidden;
  transition: transform .25s ease;
}
.flow-card:hover .flow-icon { transform: scale(1.07) rotate(-2deg); }
.flow-icon svg { width: 27px; height: 27px; }
.flow-icon-gold {
  background: linear-gradient(135deg, #d4a72c 0%, #8a6a1f 100%);
  box-shadow: 0 8px 20px rgba(180,134,11,.32);
}
/* Animierter Scan-Strahl im ersten Icon */
.flow-beam {
  position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  animation: flowbeam 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes flowbeam { 0%, 100% { top: 12%; } 50% { top: 84%; } }

.flow-num {
  font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); background: #eef3fd; border-radius: 999px; padding: 5px 12px;
}
.flow-card h3 { margin: 0 0 8px; font-size: 17.5px; letter-spacing: -.01em; }
.flow-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.flow-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
  font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 5px 13px;
  background: #f1f5fb; color: var(--navy-800); border: 1px solid #dbe4f2;
}

/* Karte 3: hervorgehobene Experten-Karte in Navy */
.flow-card-accent {
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-color: var(--navy-800);
}
.flow-card-accent::before { background: linear-gradient(90deg, #d4a72c, #f4d06f); }
.flow-card-accent h3 { color: #fff; }
.flow-card-accent p { color: #b9c7dd; }
.flow-card-accent .flow-num { background: rgba(244,208,111,.14); color: #f4d06f; }
.flow-card-accent:hover { border-color: var(--navy-800); }
.flow-tag-price {
  background: rgba(244,208,111,.14); color: #f4d06f; border-color: rgba(244,208,111,.35);
}

/* Sanftes Einblenden der Karten nacheinander */
@media (prefers-reduced-motion: no-preference) {
  .flow-card { animation: flowrise .55s ease backwards; }
  .flow-card:nth-child(2) { animation-delay: .12s; }
  .flow-card:nth-child(3) { animation-delay: .24s; }
}
@keyframes flowrise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; gap: 36px; }
  /* Pfeil zeigt auf Mobil nach unten */
  .flow-card:not(:last-child)::after {
    top: auto; right: 50%; bottom: -28px; margin: 0 -10px 0 0;
    transform: rotate(90deg);
  }
}

.diff-box {
  background: var(--navy-900); color: #cdd8ea; border-radius: var(--radius);
  padding: 26px 28px; font-size: 15px;
}
.diff-box strong { color: #fff; }
.diff-box em { color: #7fa7ec; font-style: normal; }

/* Rechtsexperten-Sektion: Verifizierung durch unabhaengige Anwaelte */
.expert-usps { display: flex; gap: 12px 34px; flex-wrap: wrap; margin: -14px 0 30px; }
.expert-usp {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.expert-usp svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 auto; }

.experts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.expert-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(15,29,51,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.expert-card:hover {
  transform: translateY(-5px); border-color: #c7d6ee;
  box-shadow: 0 4px 10px rgba(15,29,51,.07), 0 20px 44px rgba(15,29,51,.13);
}
.expert-photo { position: relative; aspect-ratio: 1 / 0.92; overflow: hidden; }
.expert-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.expert-card:hover .expert-photo img { transform: scale(1.04); }
.expert-badge {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  color: var(--green); font-size: 12px; font-weight: 800;
  border-radius: 999px; padding: 5px 12px;
  box-shadow: 0 3px 10px rgba(15,29,51,.18);
}
.expert-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.expert-body h3 { margin: 0 0 2px; font-size: 17px; letter-spacing: -.01em; }
.expert-role { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.expert-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 13px; }
.echip {
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  background: #f3f6fa; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px;
}
.expert-facts { list-style: none; margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.expert-facts li {
  position: relative; padding-left: 20px; font-size: 13px; color: var(--ink-soft); line-height: 1.45;
}
.expert-facts li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800; font-size: 12px;
}
.experts-note { margin: 22px 0 0; font-size: 13.5px; color: var(--ink-soft); text-align: center; }
@media (max-width: 820px) {
  .experts { grid-template-columns: 1fr; }
  .expert-photo { aspect-ratio: 4 / 3; }
}

.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 820px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }
.trust-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 17px 18px; font-size: 12.5px; color: var(--ink-soft);
  display: flex; gap: 13px; align-items: flex-start; line-height: 1.45;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.trust-item:hover {
  transform: translateY(-3px); border-color: #c7d6ee;
  box-shadow: 0 10px 26px rgba(15,29,51,.10);
}
.trust-item .t-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.trust-item .t-icon svg { width: 23px; height: 23px; }
.t-icon.t-blue { background: linear-gradient(135deg, #eef3fd, #d8e6fc); }
.t-icon.t-flag { background: linear-gradient(135deg, #f6f8fc, #e8edf5); }
.t-icon.t-amber { background: linear-gradient(135deg, #fdf6ec, #fae5c3); color: #b45309; }
.t-icon.t-gold { background: linear-gradient(135deg, #fdf7e4, #f5e3ab); color: #9a7413; }
.trust-item .t-text strong {
  display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px;
  letter-spacing: -.01em;
}

/* ── Dashboard ──────────────────────────────────────────────────────────── */
.page-head { padding: 34px 0 6px; }
.page-head .crumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.page-head h1 { margin: 0; font-size: 24px; letter-spacing: -.015em; word-break: break-all; }
.page-head .meta { color: var(--ink-soft); font-size: 14px; margin-top: 5px; }

.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; margin-top: 22px;
}
.panel h2 { margin: 0 0 14px; font-size: 18px; }

/* Laufender Scan */
.scan-progress { text-align: center; padding: 26px 12px; }
.scanner-anim {
  width: 74px; height: 92px; margin: 0 auto 22px; position: relative;
  border: 2.5px solid #c3d0e4; border-radius: 8px; background: #fff;
}
.scanner-anim::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 16px;
  height: 5px; border-radius: 3px; background: #e3e9f2;
  box-shadow: 0 13px 0 #e3e9f2, 0 26px 0 #e3e9f2, 0 39px 0 #e3e9f2;
}
.scanner-anim::after {
  content: ""; position: absolute; left: -6px; right: -6px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanline 1.8s ease-in-out infinite;
}
@keyframes scanline { 0%,100% { top: 8%; } 50% { top: 88%; } }
.scan-progress h2 { font-size: 20px; margin: 0 0 6px; }
.scan-progress p { color: var(--ink-soft); margin: 0; }
.progress-steps {
  display: flex; justify-content: center; gap: 26px; margin-top: 24px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-soft);
}
.progress-steps .done { color: var(--green); font-weight: 600; }
.progress-steps .active { color: var(--accent); font-weight: 600; }

/* Diagnose */
.diagnosis-head {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
}
@media (max-width: 700px) { .diagnosis-head { grid-template-columns: 1fr; } }
.gauge {
  --pct: 0; --col: var(--green);
  width: 128px; height: 128px; border-radius: 50%;
  background: conic-gradient(var(--col) calc(var(--pct) * 1%), #e9eef6 0);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.gauge .gauge-inner {
  width: 96px; height: 96px; border-radius: 50%; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gauge .g-num { font-size: 28px; font-weight: 800; line-height: 1; }
.gauge .g-lbl { font-size: 11px; color: var(--ink-soft); margin-top: 3px; }

.risk-chip {
  display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px;
  padding: 4px 13px; margin-bottom: 10px;
}
.risk-chip.hoch { background: var(--red-bg); color: var(--red); }
.risk-chip.mittel { background: var(--amber-bg); color: var(--amber); }
.risk-chip.niedrig { background: var(--green-bg); color: var(--green); }
.diagnosis-head .summary { margin: 0; color: var(--ink); font-size: 15.5px; }

.count-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
@media (max-width: 700px) { .count-row { grid-template-columns: 1fr; } }
.count-card {
  border-radius: 12px; padding: 16px 18px; border: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
}
.count-card .c-num { font-size: 30px; font-weight: 800; line-height: 1; }
.count-card .c-lbl { font-size: 13.5px; color: var(--ink-soft); }
.count-card.red { background: var(--red-bg); border-color: #f3cdcd; }
.count-card.red .c-num { color: var(--red); }
.count-card.amber { background: var(--amber-bg); border-color: #eedcbc; }
.count-card.amber .c-num { color: var(--amber); }
.count-card.grey .c-num { color: var(--navy-800); }

.flag-card {
  border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: 10px; padding: 17px 19px; margin-top: 14px; background: #fff;
}
.flag-card.rot { border-left-color: var(--red); }
.flag-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sev-badge {
  font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 6px; padding: 2.5px 8px;
}
.sev-badge.rot { background: var(--red-bg); color: var(--red); }
.sev-badge.gelb { background: var(--amber-bg); color: var(--amber); }
.flag-head .clause { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.flag-card h3 { margin: 7px 0 7px; font-size: 16px; }
.flag-card .finding { margin: 0; font-size: 14.5px; color: var(--ink); }
.law-chip {
  display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600;
  color: var(--navy-800); background: #eef2f9; border-radius: 6px; padding: 3px 9px;
}

/* Gesperrte Teaser-Befunde */
.flag-card.locked { background: #fbfcfe; }
.skeleton-line {
  height: 11px; border-radius: 6px; margin: 9px 0;
  background: linear-gradient(90deg, #e7edf6 25%, #f2f6fb 45%, #e7edf6 65%);
  background-size: 220% 100%;
  animation: shimmer 2.2s linear infinite;
}
.skeleton-line.short { width: 62%; }
@keyframes shimmer { to { background-position: -120% 0; } }
.locked-note {
  display: flex; gap: 8px; align-items: center; margin-top: 12px;
  font-size: 13px; color: var(--ink-soft);
}
.locked-note .lock-icon { font-size: 14px; }
.locked-summary {
  margin: 18px 2px 2px; font-size: 14px; color: var(--ink-soft);
  border-top: 1px solid var(--line); padding-top: 15px;
}

.safeguard-item {
  display: flex; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.safeguard-item:last-child { border-bottom: none; }
.safeguard-item .s-icon { color: var(--amber); flex: 0 0 auto; }
.safeguard-item strong { display: block; }
.safeguard-item span { color: var(--ink-soft); }

/* Positivbefunde: was bereits gut geregelt ist */
/* Re-Scan-Diff ("Was hat sich geaendert?") */
.diff-panel { background: #f6f8fd; border: 1px solid #d5e0f2; }
.diff-sub { margin: -4px 0 10px; font-size: 13.5px; color: var(--ink-soft); }
.diff-group { margin: 10px 0; }
.diff-group > strong { display: block; margin-bottom: 6px; color: var(--navy); font-size: 14px; }
.diff-item {
  display: flex; gap: 10px; align-items: baseline;
  padding: 6px 4px; border-bottom: 1px solid #e3eaf6; font-size: 14px;
}
.diff-item:last-child { border-bottom: none; }
.diff-txt { color: var(--ink); }
.diff-prev-link { display: inline-block; margin-top: 8px; font-size: 13.5px; color: var(--blue, #2563eb); }

.strengths-panel { background: #f4fbf7; border: 1px solid #cdeeda; }
.strengths-sub { margin: -4px 0 6px; font-size: 13.5px; color: var(--ink-soft); }
.strength-item {
  display: flex; gap: 12px; padding: 13px 4px; border-bottom: 1px solid #ddf0e5;
  font-size: 14.5px;
}
.strength-item:last-child { border-bottom: none; }
.strength-item .st-icon {
  color: var(--green); flex: 0 0 auto; font-weight: 700;
}
.strength-item strong { display: block; }
.strength-item .clause {
  display: inline-block; margin: 2px 0 3px; padding: 1px 8px; border-radius: 10px;
  background: #e3f4ea; color: #1d6b40; font-size: 12.5px; font-weight: 600;
}
.strength-item span:not(.st-icon):not(.clause) { color: var(--ink-soft); display: block; }

/* Anwalts-Empfehlung + CTA */
.lawyer-note {
  border-radius: 12px; padding: 18px 20px; margin-top: 22px;
  font-size: 14.5px; display: flex; gap: 14px;
}
.lawyer-note.recommended { background: var(--red-bg); border: 1px solid #f3cdcd; }
.lawyer-note.optional { background: var(--green-bg); border: 1px solid #cdeeda; }
.lawyer-note .l-icon { font-size: 20px; }
.lawyer-note strong { display: block; margin-bottom: 3px; }

.cta-panel {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #fff; border-radius: var(--radius); padding: 30px; margin-top: 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center;
}
.cta-panel > * { min-width: 0; }
@media (max-width: 820px) { .cta-panel { grid-template-columns: 1fr; } }
.cta-panel h2 { margin: 0 0 8px; font-size: 21px; color: #fff; }
.cta-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cta-panel li { font-size: 14.5px; color: #cdd8ea; display: flex; gap: 9px; }
.cta-panel li::before { content: "✓"; color: #4ade80; font-weight: 700; }
.cta-price-box { text-align: center; }
.cta-price { font-size: 38px; font-weight: 800; line-height: 1; }
.cta-price small { font-size: 15px; font-weight: 500; color: #9db6dd; }
.cta-price-note { font-size: 12.5px; color: #9db6dd; margin: 6px 0 14px; }

/* Checkout-Modal */
.modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(11,22,38,.6);
  z-index: 50; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.visible { display: flex; }
.modal {
  background: #fff; border-radius: 16px; max-width: 460px; width: 100%;
  padding: 28px; max-height: 92vh; overflow: auto;
}
.modal h2 { margin: 0 0 4px; font-size: 19px; }
.modal .m-sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 18px; }
.order-summary {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  font-size: 14.5px; margin-bottom: 16px;
}
.order-summary .row { display: flex; justify-content: space-between; padding: 4px 0; }
.order-summary .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 750; }
.demo-note {
  background: #fff8e6; border: 1px solid #f1e3b3; color: #7a5b0d;
  font-size: 13px; border-radius: 9px; padding: 10px 13px; margin: 14px 0 4px;
}
.modal .modal-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.modal .modal-actions .btn { flex: 1 1 160px; }

/* Checkout mit Mandats-Onboarding (RAO) */
.modal-checkout { max-width: 540px; }
.co-profile { margin: 18px 0 4px; }
.co-profile h3 { margin: 0 0 4px; font-size: 15.5px; color: var(--navy); }
.co-note { color: var(--ink-soft); font-size: 13px; margin: 0 0 12px; line-height: 1.5; }
.client-type-row { display: flex; gap: 8px; margin: 0 0 14px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; min-width: 0; }
.co-profile-ok {
  margin: 14px 0 4px; padding: 11px 14px; border-radius: 10px; font-size: 14px;
  background: #eefbf2; border: 1px solid #bfe8cd; color: #1c7a3d;
}
.co-auth-note {
  margin: 16px 0 4px; padding: 16px; border-radius: 10px;
  background: #f6f9ff; border: 1px solid #d8e3f5; font-size: 14px;
}
.co-auth-note strong { display: block; margin-bottom: 6px; color: var(--navy); }
.co-auth-note p { margin: 0 0 14px; color: var(--ink-soft); line-height: 1.5; }
.co-consents { margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.consent-row {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; line-height: 1.45;
}
.consent-row input { margin-top: 2px; }
.consent-row a { color: var(--accent); font-weight: 600; }

/* Auth-Tabs (Code vs. Passwort) */
.auth-tabs {
  display: flex; gap: 6px; margin: 4px 0 16px; padding: 4px;
  background: #f1f5fb; border-radius: 11px;
}
.auth-tab {
  flex: 1; padding: 9px 8px; border: none; border-radius: 8px; cursor: pointer;
  font-family: var(--font); font-size: 13.5px; font-weight: 650;
  background: transparent; color: var(--ink-soft); transition: all .15s ease;
  white-space: nowrap;
}
.auth-tab.active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(11,22,38,.12); }

/* Bearbeitung laeuft (Fix) */
.timeline { list-style: none; margin: 10px 0 0; padding: 0; }
.timeline li {
  display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; align-items: flex-start;
}
.timeline li:last-child { border-bottom: none; }
.tl-dot {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
  background: #e9eef6; color: var(--ink-soft); margin-top: 1px;
}
.timeline li.done .tl-dot { background: var(--green-bg); color: var(--green); }
.timeline li.active .tl-dot { background: #e5edff; color: var(--accent); }
.timeline li.active .tl-dot::after {
  content: ""; width: 10px; height: 10px; border: 2px solid var(--accent);
  border-top-color: transparent; border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.timeline strong { display: block; }
.timeline span { color: var(--ink-soft); font-size: 13.5px; }

/* Ergebnis / Zertifikat */
.cert-head {
  border: 1px solid #d9c99a; background: linear-gradient(180deg, #fffdf5, #fdf7e4);
  border-radius: var(--radius); padding: 24px 26px; margin-top: 22px;
  display: flex; gap: 18px; align-items: center;
}
.cert-seal {
  flex: 0 0 auto; width: 62px; height: 62px; border-radius: 50%;
  background: var(--navy-900); color: #f4d06f;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; border: 3px double #f4d06f;
}
.cert-head h2 { margin: 0 0 3px; font-size: 19px; }
.cert-head p { margin: 0; font-size: 14px; color: var(--ink-soft); }

.fix-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-top: 16px;
  background: #fff;
}
.fix-card .clause { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.fix-card h3 { margin: 5px 0 9px; font-size: 16.5px; }
.fix-card .problem { font-size: 14.5px; margin: 0 0 13px; color: var(--ink); }
.replacement {
  background: var(--green-bg); border: 1px solid #cdeeda; border-radius: 10px;
  padding: 15px 17px; font-size: 14.5px; white-space: pre-wrap;
}
.replacement-label {
  font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--green); margin-bottom: 7px;
}
.fix-card .rationale { font-size: 13.5px; color: var(--ink-soft); margin: 11px 0 0; }

/* Fehler / Raw-Fallback */
.error-panel { border-left: 4px solid var(--red); }
.raw-answer {
  white-space: pre-wrap; font-size: 14px; background: #f8fafc;
  border: 1px solid var(--line); border-radius: 10px; padding: 16px;
}

/* ── Login & Ticketliste ────────────────────────────────────────────────── */
.auth-card { max-width: 430px; margin: 56px auto 0; }
.ticket-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.ticket-table th {
  text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-soft); padding: 10px 12px; border-bottom: 2px solid var(--line);
}
.ticket-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.status-pill {
  display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 11px;
}
.status-pill.blue { background: #e5edff; color: var(--accent); }
.status-pill.green { background: var(--green-bg); color: var(--green); }
.status-pill.red { background: var(--red-bg); color: var(--red); }
.status-pill.gold { background: #fdf7e4; color: var(--gold); }

/* ── Mobile-Feinschliff ─────────────────────────────────────────────────── */
/* Grid-/Flex-Kinder duerfen schrumpfen (verhindert Overflow durch
   min-width:auto bei langen Inhalten) */
.hero .container > *, .diagnosis-head > * { min-width: 0; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .site-header .container { min-height: 0; }
  .wordmark { font-size: 19px; }
  .site-nav { gap: 12px; font-size: 13.5px; }
  .site-nav a.nav-cta { padding: 6px 11px; }

  .hero { padding: 40px 0 52px; }
  .hero .container { gap: 32px; }

  .upload-card, .panel, .modal { padding: 20px 16px; }
  .cta-panel { padding: 22px 16px; }
  .cta-price-box .btn { width: 100%; }
  .cta-price { font-size: 32px; }

  .trust-row { grid-template-columns: 1fr; }
  .code-box .code { font-size: 20px; letter-spacing: .14em; }
  .cert-head { flex-direction: column; text-align: center; padding: 20px 16px; }
  .fix-card { padding: 16px 14px; }
  .diagnosis-head { gap: 18px; }
}

/* Ticketliste: Tabelle horizontal scrollbar statt Ueberlauf */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .ticket-table { min-width: 520px; }

/* ── Druck (Ergebnis-PDF via Browser) ───────────────────────────────────── */
@media print {
  .site-header, .site-footer, .poc-banner, .no-print { display: none !important; }
  body { background: #fff; }
  .panel, .cert-head, .fix-card { box-shadow: none; break-inside: avoid; }
}

/* =============================================================================
   Kanzlei-Bereich (Anwaltsseite)
   ============================================================================= */
.container.wide { max-width: 1440px; }
.anwalt-body { background: #f3f5f9; }
.anwalt-body .form-error:not(:empty) { display: block; margin-top: 10px; }
.anwalt-header { border-bottom: 3px solid var(--gold, #b48a2f); }
.area-badge {
  display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 20px;
  background: #fdf7e4; color: #8a6a1f; font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px;
}
.nav-user { color: rgba(255,255,255,.85); font-size: 13.5px; margin-right: 8px; }
.page-title { font-size: 24px; margin: 28px 0 4px; }
.field input[type="password"] {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 15px; font-family: inherit;
}
.field input[type="password"]:focus { outline: 2px solid rgba(37,99,235,.35); border-color: var(--accent); }

/* Buttons: kleine + Outline-Varianten */
.btn-small { padding: 7px 14px; font-size: 13.5px; }
.btn-outline {
  background: #fff; color: var(--accent); border: 1px solid var(--accent);
}
.btn-outline:hover { background: #eef3fd; }
.btn-danger-outline { color: var(--red); border-color: var(--red); }
.btn-danger-outline:hover { background: var(--red-bg); }

/* Inbox */
.inbox-section { margin: 26px 0 6px; }
.inbox-section h2 { font-size: 17px; margin-bottom: 10px; }
.count-badge {
  display: inline-block; min-width: 22px; text-align: center; padding: 1px 7px;
  border-radius: 20px; background: var(--navy, #16233c); color: #fff; font-size: 12.5px;
}
.inbox-section .table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 10px; }
.cell-file { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill {
  display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 12.5px;
  font-weight: 600; background: #e5edff; color: var(--accent); white-space: nowrap;
}
.pill-green { background: var(--green-bg); color: var(--green); }
/* Interne Analyse-Marker (nur Anwaltsansicht): Downgrade/Trigger-Herkunft */
.pill.internal-marker { background: #fdf1d6; color: #8a5a00; border: 1px dashed #d9b45f; }

/* Arbeitsplatz */
.workbench-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-top: 6px;
}
.workbench-head .page-title { margin-top: 20px; font-size: 20px; word-break: break-word; }
.workbench { margin: 18px 0 40px; }

.wb-left, .wb-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.wb-full { width: 100%; }
.wb-tabbar {
  display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line);
  padding: 8px 10px 0; align-items: center;
}
.wb-tabbar-actions {
  margin-left: auto; padding: 0 4px 8px; display: flex; gap: 8px; align-items: center;
}
.state-panel { padding: 18px 22px; }
.state-panel .wb-card { border: none; padding: 0; }
.state-panel .ed-doc, .state-panel .mandate-card-inner { max-width: 1020px; }
.wb-tab {
  border: none; background: none; padding: 9px 14px 11px; font-size: 14px; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; border-bottom: 2.5px solid transparent; font-family: inherit;
}
.wb-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.wb-panel { display: none; padding: 18px 22px; }
.wb-panel.active { display: block; }

/* Analyse-Rendering */
.md-body { max-height: 74vh; overflow-y: auto; font-size: 14.5px; line-height: 1.62; }
.md-body h3 { font-size: 17px; margin: 20px 0 8px; }
.md-body h4 { font-size: 15.5px; margin: 16px 0 6px; }
.md-body h5, .md-body h6 { font-size: 14px; margin: 14px 0 5px; }
.md-body p { margin: 8px 0; }
.md-body ul, .md-body ol { margin: 8px 0 8px 22px; }
.md-body li { margin: 4px 0; }
.md-body hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.md-body code { background: #f1f4f9; padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.md-table-wrap { overflow-x: auto; margin: 10px 0; }
.md-table { border-collapse: collapse; font-size: 13.5px; min-width: 420px; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.md-table th { background: #f6f8fb; }
.ref-badge {
  display: inline-block; padding: 0 7px; border-radius: 10px; background: #eef3fd;
  color: var(--accent); font-size: 11px; font-weight: 700; vertical-align: 1px;
}
/* Aufgeloeste Quellen-Refs (mit citation_map der KM-API) */
.ref-link {
  display: inline; padding: 0 4px; border-radius: 5px; background: #eef3fd;
  color: var(--accent); font-size: 0.92em; font-weight: 600;
  text-decoration: none; border-bottom: 1px dotted var(--accent);
}
a.ref-link:hover { background: #dfe9fc; }
.ref-doc { border-bottom-style: dashed; cursor: help; color: #55617a; background: #f1f4f9; }

/* Vertrags-Modal (Overlay-Viewer) */
.pdfm-overlay {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(11, 22, 38, .62); padding: 22px;
  align-items: center; justify-content: center;
}
.pdfm-overlay.open { display: flex; }
.pdfm-box {
  width: min(1100px, 96vw); height: 92vh; background: #fff; border-radius: 12px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.pdfm-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.pdfm-title { font-size: 14.5px; word-break: break-all; }
.pdfm-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pdfm-close {
  border: none; background: none; font-size: 26px; line-height: 1; cursor: pointer;
  color: var(--ink-soft); padding: 2px 6px; font-family: inherit;
}
.pdfm-close:hover { color: var(--ink); }
.pdfm-frame { flex: 1; border: none; width: 100%; background: #525659; }

/* Cliffhanger: Teil-Scan-Banner bei ueberlangen Vertraegen */
.partial-banner {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 14px 16px; border-radius: 10px;
  background: #fff7ea; border: 1px solid #f0d9a8;
}
.partial-banner .pb-icon { font-size: 22px; line-height: 1.2; }
.partial-banner strong { display: block; margin-bottom: 4px; color: var(--navy); }
.partial-banner span:not(.pb-icon) { font-size: 14.5px; color: var(--ink); line-height: 1.5; }

/* Preisaufschluesselung im CTA (Laengen-Aufschlag) */
.cta-breakdown {
  font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; line-height: 1.5;
}

/* Kundenangaben aus der Upload-Vorpruefung (Anwaltsansicht) */
.client-info-box {
  margin: 0 0 18px; padding: 12px 16px; border-radius: 10px;
  background: #f6f9ff; border: 1px solid #d8e3f5; font-size: 14px;
}
.client-info-box > strong { display: block; margin-bottom: 8px; color: var(--navy); }
.client-info-row { display: flex; gap: 10px; margin: 5px 0; flex-wrap: wrap; }
.client-info-row .ci-label { flex: 0 0 220px; color: var(--ink-soft); font-size: 13px; }
.client-info-row .ci-text { flex: 1; min-width: 200px; color: var(--ink); }

/* Tiefenanalyse: Trennung Teil 1 / Teil 2 */
.deep-part-title {
  margin: 26px 0 14px; padding: 8px 14px; border-radius: 9px;
  background: #eef3fd; color: var(--navy); font-weight: 700; font-size: 15px;
}
.deep-part-title:first-child { margin-top: 0; }

/* Risiko-Report (Kundensicht) im Kanzlei-Bereich */
.report-box .flag-card { margin: 12px 0; }
.report-box .summary { margin: 0 0 10px; color: var(--ink); font-size: 15.5px; }
.report-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.report-box h3 { margin: 20px 0 6px; }
.report-box .safeguard-item { margin: 8px 0; }
.report-box .strength-item { margin: 8px 0; }

/* Quellen + Verlauf */
.src-group-title { margin: 18px 0 4px; font-size: 15px; }
.src-group-title:first-child { margin-top: 0; }
.src-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.src-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fbfcfe; }
.src-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.src-head .norm-link { border: none; padding: 0; background: none; font-weight: 600; }
.src-kind {
  display: inline-block; padding: 1px 8px; border-radius: 10px; background: #eef3fd;
  color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.src-quote { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.src-details { margin-top: 20px; }
.src-details summary {
  cursor: pointer; font-weight: 600; color: var(--accent); font-size: 14.5px;
  padding: 8px 0;
}
.norms-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.norm-link {
  display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 9px;
  color: var(--accent); text-decoration: none; font-size: 14px; background: #fbfcfe;
}
.norm-link:hover { border-color: var(--accent); }
.event-row { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.event-row:last-child { border-bottom: none; }
.event-time { flex: 0 0 128px; color: var(--ink-soft); font-size: 12.5px; padding-top: 2px; }
.event-msg { font-size: 14px; }
.event-flag {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 10px;
  background: var(--green-bg); color: var(--green); font-size: 11px; font-weight: 700;
}

/* Mandats-Entscheidung */
.wb-card { padding: 20px 22px; }
.wb-card h3 { font-size: 17px; margin-bottom: 8px; }
.mandate-facts { margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.fact-row { display: flex; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.fact-row:last-child { border-bottom: none; }
.fact-label { flex: 0 0 128px; color: var(--ink-soft); font-weight: 600; }
.fact-value { min-width: 0; word-break: break-word; }
.conflict-check {
  display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 12px 14px;
  background: #fdf7e4; border: 1px solid #ecd9a0; border-radius: 10px; font-size: 14px; cursor: pointer;
}
.conflict-check input { margin-top: 3px; }
.mandate-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.decline-box { margin-top: 12px; }
.decline-box textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px;
  font-size: 14px; font-family: inherit; margin-bottom: 8px;
}

/* Entwurfs-Editor: Direktbearbeitung im Kundendokument */
.ed-doc { margin-top: 14px; }
.ed-block { margin-bottom: 16px; }
.ed-block-label {
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 5px;
}
.ed-fixlist { margin-bottom: 14px; }
.ed-fix { position: relative; margin-top: 14px; }
.ed-fix .fix-remove {
  position: absolute; top: 10px; right: 12px; border: none; background: none;
  color: var(--red); font-size: 12.5px; cursor: pointer; font-family: inherit; opacity: .55;
}
.ed-fix .fix-remove:hover { opacity: 1; }
.ed-fix .clause { padding-right: 150px; }

/* Editierbare Textbloecke */
.ed-inline {
  cursor: text; border-radius: 6px; outline: none;
  transition: background .12s, box-shadow .12s; min-height: 1.3em;
}
.ed-inline:hover { box-shadow: 0 0 0 1px var(--line); background: #fbfcfe; }
.ed-inline:focus { box-shadow: 0 0 0 2px rgba(37,99,235,.4); background: #fff; }
.ed-inline:empty::before { content: attr(data-ph); color: #9aa8bd; font-style: italic; }
.replacement .ed-inline, p.ed-inline, .problem.ed-inline { white-space: pre-wrap; }
span.ed-inline { display: inline-block; min-width: 60px; }
.ed-fix h3 .ed-inline { display: inline; }
.law-chip.ed-inline { margin-top: 10px; }

.editor-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.editor-actions .btn { flex: 1 1 180px; }
.save-info { color: var(--green); font-size: 13px; margin-top: 8px; min-height: 16px; }

/* Kundenseite: Hinweis auf bearbeitenden Anwalt + Footer-Link */
.lawyer-note {
  display: flex; flex-wrap: wrap; gap: 5px; align-items: baseline;
  margin: 10px 0 16px; padding: 12px 16px; border-radius: 10px;
  background: #eef3fd; border: 1px solid #cdddf7; font-size: 14.5px;
}
.footer-link { color: inherit; text-decoration: underline; }
.auth-switch { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
.auth-switch a { color: var(--accent); }

/* Read-only (abgefertigt) */
.ro-intro { margin: 10px 0; }
.ro-fix { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.ro-fix h4 { font-size: 15px; margin-bottom: 6px; }
.ro-clause {
  margin: 8px 0; padding: 10px 14px; border-left: 3px solid var(--accent);
  background: #f6f8fb; border-radius: 0 8px 8px 0; font-size: 14px;
}
