/* ══════════════════════════════════════════════════════════════════
   PART B — ICU UTILITY CLASSES (preserved exactly)
   ══════════════════════════════════════════════════════════════════ */

/* ── Overlay + Modal ──────────────────────────────────────────── */
.icu-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0; /* Fallback für Firefox < 87 (kein inset) */
  inset: 0;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 9000;
  animation: icu-fade .2s ease;
}

.icu-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: #fff;
  border-radius: var(--ic-radius);
  padding: 36px 32px 28px;
  width: min(440px, calc(100vw - 32px));
  z-index: 9100;
  box-shadow: var(--ic-shadow-xl);
  animation: icu-slide-up .22s ease;
  border: 1px solid var(--ic-border);
}

.icu-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: #f8fafc; border: none; border-radius: 50%;
  width: 30px; height: 30px; font-size: 18px; line-height: 1;
  cursor: pointer; color: var(--ic-muted); transition: background .15s;
}
.icu-modal-close:hover { background: var(--ic-border); }

.icu-modal-icon  { font-size: 28px; margin-bottom: 8px; }
.icu-modal-title { font-size: 22px; font-weight: 700; color: var(--ic-text); margin: 0 0 4px; }
.icu-modal-sub   { font-size: 14px; color: var(--ic-muted); margin: 0 0 20px; }
.icu-modal-footer { text-align: center; font-size: 13px; color: var(--ic-muted); margin-top: 16px; }

/* ── Forms ────────────────────────────────────────────────────── */
.icu-field { margin-bottom: 14px; }
.icu-field label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: .06em; color: var(--ic-muted); margin-bottom: 5px;
}
.icu-field input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--ic-border); border-radius: 10px;
  font-size: 14px; color: var(--ic-text); background: #fff;
  box-sizing: border-box; transition: border-color .15s, box-shadow .15s; outline: none;
}
.icu-field input:focus { border-color: var(--ic-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

.icu-field-extra { text-align: right; margin-top: -8px; margin-bottom: 14px; }
.icu-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.icu-pw-wrap { position: relative; }
.icu-pw-wrap input { padding-right: 42px; }
.icu-pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px;
}
.icu-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--ic-muted); margin-bottom: 16px;
  cursor: pointer; line-height: 1.4;
}
.icu-checkbox input[type=checkbox] { margin-top: 2px; flex-shrink: 0; accent-color: var(--ic-blue); }

/* ── Buttons ──────────────────────────────────────────────────── */
.icu-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, #1e40af, #3b82f6); color: #fff; border: none; border-radius: 10px;
  padding: 12px 22px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 6px 18px rgba(30,64,175,.28);
}
.icu-btn-primary:hover { background: linear-gradient(135deg, #1e3a8a, #2563eb); transform: translateY(-1px); }
.icu-btn-primary:active { transform: scale(.97); }

.icu-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #f8fafc; color: var(--ic-text);
  border: 1.5px solid var(--ic-border); border-radius: 10px;
  padding: 11px 22px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.icu-btn-secondary:hover { background: #f1f5f9; }

.icu-btn-ghost {
  background: none; border: none; color: var(--ic-muted);
  font-size: 14px; cursor: pointer; padding: 8px 12px; transition: color .15s;
}
.icu-btn-ghost:hover { color: var(--ic-text); }

.icu-btn-full { width: 100%; }
.icu-btn-sm { padding: 8px 16px; font-size: 13px; }
.icu-btn-loader { display: none; }

/* ── Nav ──────────────────────────────────────────────────────── */
#icu-nav-buttons { display: flex; align-items: center; gap: 12px; }
.icu-nav-link { font-size: 14px; font-weight: 500; color: var(--ic-text); text-decoration: none; transition: opacity .15s; }
.icu-nav-link:hover { opacity: .7; }
.icu-btn-nav {
  background: var(--ic-text); color: #fff; border: none; border-radius: 8px;
  padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: opacity .15s;
}
.icu-btn-nav:hover { opacity: .85; }

/* ── Alerts + Links ───────────────────────────────────────────── */
.icu-alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.icu-alert-error   { background: var(--ic-red-light); border: 1px solid #fecaca; color: #991b1b; }
.icu-alert-success { background: var(--ic-green-bg); border: 1px solid #bbf7d0; color: #166534; }

.icu-link       { color: var(--ic-blue); text-decoration: none; font-weight: 500; }
.icu-link:hover { text-decoration: underline; }
.icu-link-small { font-size: 13px; color: var(--ic-blue); text-decoration: none; }
.icu-link-small:hover { text-decoration: underline; }

/* ── Analyze Form ─────────────────────────────────────────────── */
.icu-analyze-box {
  background: #fff; border-radius: var(--ic-radius-lg);
  padding: 28px 26px; border: 1px solid var(--ic-border);
  box-shadow: var(--ic-shadow-xl);
}
.icu-analyze-label { font-size: 14px; font-weight: 700; color: var(--ic-text); margin: 0 0 12px; }
.icu-url-wrap { display: flex; align-items: center; gap: 8px; width: 100%; }
.icu-url-input {
  flex: 1; min-width: 0; padding: 13px 16px;
  border: 1.5px solid var(--ic-border); border-radius: 10px;
  font-size: 14px; color: var(--ic-text); background: #fff;
  box-sizing: border-box; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.icu-url-input:focus { border-color: var(--ic-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.icu-url-clear {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6; border: 1.5px solid var(--ic-border); border-radius: 8px;
  cursor: pointer; color: #6b7280; font-size: 15px; line-height: 1;
  transition: background .15s, color .15s;
}
.icu-url-clear:hover { background: #e5e7eb; color: #111827; }
.icu-analyze-hint { font-size: 12px; color: var(--ic-muted); margin: 10px 0 0; text-align: center; }
.icu-mt { margin-top: 12px; }
.icu-mt-sm { margin-top: 8px; }

/* ── Result Card ──────────────────────────────────────────────── */
.icu-result-card {
  background: #fff; border-radius: var(--ic-radius-lg);
  overflow: hidden; border: 1px solid var(--ic-border);
  box-shadow: var(--ic-shadow-xl);
}

.icu-result-header {
  background: var(--ic-text); color: #fff;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.icu-result-logo { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.icu-ic-badge { background: var(--ic-blue); color: #fff; border-radius: 7px; padding: 3px 8px; font-size: 12px; font-weight: 800; }
.icu-result-status { font-size: 11px; color: rgba(255,255,255,.45); }
.icu-result-body { padding: 22px; }

.icu-score-wrap { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.icu-score-circle { width: 80px; height: 80px; position: relative; flex-shrink: 0; }
.icu-score-circle svg { width: 100%; height: 100%; }
.icu-score-bg   { fill: none; stroke: #e5e7eb; stroke-width: 9; }
.icu-score-fill { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1); }
.icu-score-fill.icu-score-green  { stroke: #22c55e; }
.icu-score-fill.icu-score-yellow { stroke: #eab308; }
.icu-score-fill.icu-score-red    { stroke: #ef4444; }
.icu-score-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--ic-text);
}
.icu-score-num sub { font-size: 11px; font-weight: 500; color: var(--ic-muted); }

.icu-risiko { font-size: 15px; font-weight: 700; }
.icu-risiko.icu-green  { color: var(--ic-green); }
.icu-risiko.icu-yellow { color: var(--ic-yellow); }
.icu-risiko.icu-red    { color: var(--ic-red); }
.icu-risiko-sub { font-size: 12px; color: var(--ic-muted); margin-top: 2px; }

.icu-details {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px 12px; margin: 0 0 14px; font-size: 13px;
}
.icu-details dt { color: var(--ic-muted); }
.icu-details dd { font-weight: 600; color: var(--ic-text); margin: 0; }

.icu-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.icu-tags span {
  background: #f8fafc; border-radius: 20px; padding: 3px 10px;
  font-size: 12px; color: var(--ic-text); border: 1px solid var(--ic-border);
}

.icu-faktoren { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.icu-faktor { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; }
.icu-faktor-icon { flex-shrink: 0; }
.icu-faktor.warnung .icu-faktor-icon::before { content: '⚠'; }
.icu-faktor.hinweis .icu-faktor-icon::before { content: 'ℹ'; }
.icu-faktor.positiv .icu-faktor-icon::before { content: '✓'; }
.icu-faktor.warnung { color: #991b1b; }
.icu-faktor.hinweis { color: var(--ic-muted); }
.icu-faktor.positiv { color: var(--ic-green); }

.icu-score-scale {
  margin: 12px 0 16px;
  border: 1px solid var(--ic-border); border-radius: 10px; overflow: hidden;
}
.icu-scale-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--ic-muted);
  padding: 8px 12px; border-bottom: 1px solid var(--ic-border); background: #f8fafc;
}
.icu-scale-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-bottom: 1px solid var(--ic-border);
  font-size: 12px; color: var(--ic-muted);
}
.icu-scale-row:last-child { border-bottom: none; }
.icu-scale-row.icu-scale-active { background: var(--ic-blue-light); color: var(--ic-blue-d); font-weight: 600; }
.icu-scale-range { min-width: 52px; font-size: 11px; font-weight: 600; }
.icu-scale-label { flex: 1; }
.icu-scale-arrow { font-size: 11px; color: var(--ic-blue); }

.icu-result-save { border-top: 1px solid var(--ic-border); padding-top: 14px; margin-top: 4px; }
.icu-save-hint { font-size: 13px; color: var(--ic-muted); margin: 0 0 10px; }
.icu-save-btns { display: flex; gap: 8px; }
.icu-save-ok { font-size: 14px; font-weight: 600; color: var(--ic-green); margin: 0 0 6px; }

/* ── Dashboard ────────────────────────────────────────────────── */
.icu-dashboard { max-width: 860px; margin: 0 auto; padding: 40px 20px; }
.icu-dash-guest { padding: 40px 20px; }
.icu-dash-guest p { font-size: 15px; color: var(--ic-muted); margin-bottom: 20px; }

/* ── Account Box (Login / Register inline) ────────────────────── */
.icu-account-box {
  max-width: 440px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.icu-account-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
}
.icu-account-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 24px;
}
.icu-account-form .icu-field { margin-bottom: 16px; }
.icu-account-switch {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin: 20px 0 0;
}
.icu-dash-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.icu-dash-header h2 { font-size: 22px; font-weight: 700; color: var(--ic-text); margin: 0; }
.icu-dash-sub { font-size: 13px; color: var(--ic-muted); margin: 4px 0 0; }
.icu-dash-actions { display: flex; gap: 8px; align-items: center; }
.icu-dash-list { display: flex; flex-direction: column; gap: 10px; }
.icu-dash-item {
  background: #fff; border: 1px solid var(--ic-border); border-radius: 12px;
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: box-shadow .15s, border-color .15s, transform .15s;
}
.icu-dash-item:hover { box-shadow: var(--ic-shadow); border-color: var(--ic-border-2); transform: translateY(-1px); }
.icu-dash-item-left { flex: 1; min-width: 0; }
.icu-dash-item-title {
  font-size: 15px; font-weight: 600; color: var(--ic-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 4px;
}
.icu-dash-item-meta { font-size: 12px; color: var(--ic-muted); }
.icu-dash-item-right { display: flex; align-items: center; gap: 10px; margin-left: 16px; }
.icu-score-badge {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.icu-score-badge.green  { background: var(--ic-green-bg); color: var(--ic-green); }
.icu-score-badge.yellow { background: var(--ic-yellow-bg); color: var(--ic-yellow); }
.icu-score-badge.red    { background: var(--ic-red-light); color: var(--ic-red); }
.icu-dash-detail { padding: 4px 0; }
.icu-back-btn { background: none; border: none; cursor: pointer; font-size: 14px; color: var(--ic-muted); padding: 0 0 16px; transition: color .15s; }
.icu-back-btn:hover { color: var(--ic-text); }

.icu-loading { text-align: center; color: var(--ic-muted); padding: 40px 20px; font-size: 14px; }
.icu-empty   { text-align: center; color: var(--ic-muted); padding: 40px 20px; font-size: 14px; }

/* ── Bulk-Lösch-Toolbar ───────────────────────────────────────────────────── */
.icu-bulk-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: #f8fafc;
  border: 1px solid var(--ic-border); border-radius: 10px; margin-bottom: 8px;
  flex-wrap: wrap;
}
.icu-select-all-wrap {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ic-muted); cursor: pointer;
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
}
.icu-select-all-wrap input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer; accent-color: #2563eb; flex-shrink: 0;
}
.icu-btn-danger {
  background: #fee2e2; color: #dc2626;
  border: 1px solid #fca5a5; border-radius: 8px;
  cursor: pointer; font-weight: 600; transition: background .15s, border-color .15s;
}
.icu-btn-danger:hover:not(:disabled) { background: #fecaca; border-color: #f87171; }
.icu-btn-danger:disabled { opacity: 0.4; cursor: not-allowed; }

/* Checkbox je Analyse-Eintrag */
.icu-item-check-wrap {
  display: flex; align-items: center; padding-right: 12px; cursor: pointer; flex-shrink: 0;
}
.icu-item-check-wrap input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer; accent-color: #2563eb; flex-shrink: 0;
}

/* Einzel-Löschen-Button */
.icu-delete-single-btn {
  background: none; border: none; cursor: pointer;
  font-size: 15px; padding: 4px 6px; border-radius: 6px;
  color: #d1d5db; line-height: 1; transition: color .15s, background .15s; flex-shrink: 0;
}
.icu-delete-single-btn:hover { color: #dc2626; background: #fee2e2; }

/* ── Notiz ──────────────────────────────────────────────────────────────────── */
.icu-notiz-wrap     { margin-top: 5px; }
.icu-notiz-preview  {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: 12px; border-radius: 4px; padding: 2px 5px 2px 2px;
  max-width: 100%; transition: background .12s;
}
.icu-notiz-preview:hover   { background: #f1f5f9; }
.icu-notiz-preview::before { content: '\270E'; font-size: 11px; color: #9ca3af; flex-shrink: 0; }
.icu-notiz-text  {
  color: var(--ic-text); opacity: .7; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 340px;
  display: inline-block; vertical-align: bottom;
}
.icu-notiz-preview:hover .icu-notiz-text { opacity: 1; }
.icu-notiz-empty { color: var(--ic-muted); font-style: italic; }
.icu-notiz-editor  { margin-top: 6px; }
.icu-notiz-input   {
  width: 100%; font-size: 13px; color: var(--ic-text); font-family: inherit;
  border: 1px solid var(--ic-border-2); border-radius: 8px;
  padding: 8px 10px; resize: vertical; min-height: 60px;
  background: #fff; outline: none; box-sizing: border-box;
  line-height: 1.5; transition: border-color .15s, box-shadow .15s;
}
.icu-notiz-input:focus  { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.icu-notiz-actions { display: flex; gap: 8px; margin-top: 6px; }

/* ── ICU Keyframes ────────────────────────────────────────────── */
@keyframes icu-fade     { from{opacity:0} to{opacity:1} }
@keyframes icu-slide-up { from{opacity:0;transform:translate(-50%,-46%)} to{opacity:1;transform:translate(-50%,-50%)} }

/* ── Account-Seite: exakt gleicher Hintergrund wie LP-Hero ───────
   Live DOM-Befund /account/:
   - Alle Container von #icu-dashboard-wrap bis #page: transparent
   - #page: full-viewport-width (1363px), als einziger mit bg:white
   - body:has(.icu-account-bg) greift nur auf /account/
   Hintergrund-Aufbau identisch wie .lp-hero + ::before + ::after:
   1. Basis: #0a0f1e  (.lp-hero background-color)
   2. Overlay: 3 radiale Gradienten  (.lp-hero::before background)
   3. Dot-Grid: 1px-Punkte 28×28px   (.lp-hero::after background)
   Alle Werte 1:1 aus den Live-Stylesheet-Rules übernommen.
   ────────────────────────────────────────────────────────────────── */
body:has(.icu-account-bg) #page {
  background-color:  #0a0f1e !important;
  background-image:
    radial-gradient(75% 65% at 92% 8%,  rgba(59,130,246,.18) 0%, transparent 55%),
    radial-gradient(55% 45% at 8%  88%, rgba(30,64,175,.20)  0%, transparent 52%),
    radial-gradient(40% 35%,            rgba(96,165,250,.07) 0%, transparent 60%),
    radial-gradient(circle, rgba(96,165,250,.14) 1px, transparent 1px) !important;
  background-size:     100% 100%, 100% 100%, 100% 100%, 28px 28px !important;
  background-repeat:   no-repeat, no-repeat, no-repeat, repeat !important;
  background-position: 0 0, 0 0, 0 0, 0 0 !important;
  animation: icu-account-dots 40s linear infinite !important;
}
@keyframes icu-account-dots {
  0%   { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 0 0, 0 0, 28px 28px; }
}
.icu-account-bg {
  min-height: calc(100vh - 80px);
}

/* ── Account-Bereich: Inhalt-Cards auf dunklem Hintergrund ───────
   Scoped auf .icu-account-bg – kein Einfluss auf andere Seiten.
   Kein globales Text-Override. Nur Wrapper-Hintergründe.
   ────────────────────────────────────────────────────────────────── */

/* 1. Account-Box (Login / Register) – Schatten für dunklen BG anpassen */
.icu-account-bg .icu-account-box {
  box-shadow: 0 8px 40px rgba(0,0,0,.30), 0 2px 8px rgba(0,0,0,.20);
}

/* 2. Dashboard-Header (Begrüßung + Aktionen) */
.icu-account-bg .icu-dash-header {
  background:    #ffffff;
  border-radius: 14px;
  box-shadow:    0 4px 24px rgba(0,0,0,.18);
  padding:       20px 24px;
  margin-bottom: 16px;
  border:        none;
}

/* 3. Bulk-Toolbar (innerhalb #icu-dash-list) */
.icu-account-bg .icu-bulk-toolbar {
  background:    #ffffff;
  border:        1px solid #e5e7eb;
  border-radius: 10px;
}

/* 4. Loading / Empty State */
.icu-account-bg .icu-loading,
.icu-account-bg .icu-empty {
  background:    #ffffff;
  border-radius: 14px;
  box-shadow:    0 4px 24px rgba(0,0,0,.18);
  border:        none;
}

/* 5. Zurück-Button – sichtbar auf dunklem BG */
.icu-account-bg .icu-back-btn {
  color: rgba(255,255,255,.75);
}
.icu-account-bg .icu-back-btn:hover {
  color: #ffffff;
}

/* 6. Detail-Ansicht: Container (kein eigener BG, Cards drin) */
.icu-account-bg #icu-dash-detail-content {
  display:        flex;
  flex-direction: column;
  gap:            14px;
}

/* 7. Einzel-Cards in der Detail-Ansicht */
.icu-detail-card {
  background:    #ffffff;
  border-radius: var(--ic-radius);
  border:        1px solid var(--ic-border);
  box-shadow:    0 4px 24px rgba(0,0,0,.13);
  padding:       22px 24px;
}

/* ── Card 1 Hero: Bild + Info ──────────────────────────────────────────────
   Mobile (< 700px): Bild oben, Info unten – wie bisher.
   Desktop (≥ 700px): Bild links 62%, Info rechts.                          */

/* Card-Hero: overflow:hidden für saubere Bild-Ecken */
.icu-detail-card-hero {
  padding: 0 !important;
  overflow: hidden;
}

/* Bild-Spalte (Mobile: volle Breite, begrenzte Höhe) */
.icu-detail-col-img { display: block; }
.icu-detail-col-img .icu-detail-img {
  width:         100%;
  max-height:    200px;
  object-fit:    cover;
  border-radius: 0;
  margin:        0;
  display:       block;
}

/* Info-Spalte */
.icu-detail-col-info {
  padding:        20px 22px;
  display:        flex;
  flex-direction: column;
  gap:            14px;
}
.icu-detail-col-info .icu-detail-title { margin: 0; }
.icu-detail-col-info .icu-detail-sub   { margin: 0; }
.icu-detail-col-info .icu-score-wrap   { margin: 0; }

/* CTA in Info-Spalte: auf Mobile automatisch, Desktop an Unterkante */
.icu-detail-cta { align-self: flex-start; }

/* Vorschau-Badge oben links auf dem Bild */
.icu-detail-col-img { position: relative; }
.icu-img-badge {
  position:      absolute;
  top:           10px;
  left:          10px;
  background:    rgba(0,0,0,.52);
  color:         #ffffff;
  font-size:     11px;
  font-weight:   600;
  letter-spacing:.04em;
  padding:       3px 8px;
  border-radius: 4px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Hinweis-Text unter/neben dem Bild */
.icu-img-hint {
  font-size:  11px;
  color:      var(--ic-muted);
  margin:     0;
  font-style: italic;
}

/* ── Detail-Sidebar: position:fixed im rechten blauen Bereich ────────────
   Direkt an <body> gehängt – kein Einfluss auf irgendein anderes Element.
   Unter 1024px: per JS gar nicht erst erzeugt → keine Mobile-Änderung.     */
.icu-detail-sidebar {
  position:       sticky;
  top:            120px;
  width:          300px;
  display:        flex;
  flex-direction: column;
  gap:            14px;
  z-index:        999;
}

/* Sidebar-Cards */
.icu-sidebar-card {
  background:    #ffffff;
  border-radius: var(--ic-radius);
  border:        1px solid var(--ic-border);
  box-shadow:    0 4px 24px rgba(0,0,0,.13);
  padding:       20px 18px;
}
.icu-sidebar-label {
  font-size:      10px;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color:          var(--ic-muted);
  margin:         0 0 12px;
}
.icu-sidebar-btn {
  width:           100% !important;
  text-align:      center !important;
  justify-content: center !important;
}
.icu-sidebar-hint {
  font-size:   11px;
  color:       var(--ic-muted);
  margin:      8px 0 0;
  line-height: 1.4;
}
.icu-sidebar-services {
  list-style:     none;
  margin:         0;
  padding:        0;
  display:        flex;
  flex-direction: column;
}
.icu-sidebar-services li {
  font-size:     13px;
  font-weight:   500;
  color:         var(--ic-text);
  padding:       8px 0;
  border-bottom: 1px solid var(--ic-border);
  line-height:   1.3;
}
.icu-sidebar-services li:last-child { border-bottom: none; padding-bottom: 0; }

/* Hauptinhalt-Wrapper: immer flex-Spalte – unverändert */
.icu-detail-main {
  display:        flex;
  flex-direction: column;
  gap:            14px;
  min-width:      0;
}

/* Quick-Info (Preis / KM / Erstzulassung) in Card 1 */
.icu-detail-quick {
  display:               grid;
  grid-template-columns: auto 1fr;
  gap:                   3px 10px;
  font-size:             13px;
  margin:                0;
}
.icu-detail-quick dt { color: var(--ic-muted); }
.icu-detail-quick dd { font-weight: 600; color: var(--ic-text); margin: 0; }

/* ── Desktop: Card-Hero 2-Spalten (Bild links / Info rechts) ─────────────
   IDENTISCH mit 1.0.98 – KEINE Änderung an linker Seite.                  */
@media (min-width: 700px) {
  .icu-detail-card-hero {
    display:               grid;
    grid-template-columns: 62% 1fr;
    align-items:           stretch;
  }
  .icu-detail-col-img {
    background:      #f1f5f9;
    display:         flex;
    align-items:     center;
    justify-content: center;
    min-height:      280px;
  }
  .icu-detail-col-img .icu-detail-img {
    width:      100%;
    height:     100%;
    max-height: none;
    object-fit: contain;
  }
  .icu-detail-col-info {
    padding:         28px 26px;
    border-left:     1px solid var(--ic-border);
    justify-content: space-between;
  }
  .icu-detail-cta { width: 100%; text-align: center; justify-content: center; }
}

/* Kopfzeile (kein Bild – Fallback-Card 1) */
.icu-detail-top {
  display:         flex;
  align-items:     flex-start;
  justify-content: space-between;
  gap:             16px;
  flex-wrap:       wrap;
  margin-bottom:   18px;
}
.icu-detail-meta { flex: 1; min-width: 0; }
.icu-detail-title {
  font-size:   18px;
  font-weight: 700;
  color:       var(--ic-text);
  margin:      0 0 4px;
  line-height: 1.3;
}
.icu-detail-sub {
  font-size: 12px;
  color:     var(--ic-muted);
  margin:    0;
}
.icu-detail-sub a {
  color:           var(--ic-blue);
  text-decoration: none;
}
.icu-detail-sub a:hover { text-decoration: underline; }

/* Section-Überschrift in Card 2 + 3 */
.icu-detail-card-title {
  font-size:      13px;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color:          var(--ic-muted);
  margin:         0 0 14px;
}

@media (max-width: 520px) {
  .icu-detail-top { flex-direction: column; }
  .icu-detail-top .icu-btn-primary { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════
   FIREFOX COMPATIBILITY
   Nur echte Firefox-vs-Chrome-Abweichungen. Chrome bleibt
   vollständig unverändert.
   ══════════════════════════════════════════════════════════════════ */

/* 1. ::-moz-focus-inner — Firefox fügt 2 px Extra-Innenpading in alle
      <button>-Elemente ein. Führt zu sichtbar anderen Button-Höhen
      gegenüber Chrome. Dieser Reset ist Firefox-only. */
button::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner,
input[type="button"]::-moz-focus-inner {
  padding: 0 !important;
  border: 0 !important;
}

/* 2. -moz-appearance:none — verhindert Firefox-eigene Button-Darstellung
      (leichter Innenrahmen, Höhe) die Chrome nicht zeigt. Trifft alle
      custom-gestylten Buttons auf der Seite. */
.lp-btn-primary,
.lp-btn-cta-white,
.icu-btn-primary,
.icu-btn-secondary,
.icu-btn-ghost,
.icu-btn-danger,
.icu-back-btn,
.icu-modal-close,
.icu-delete-single-btn,
.icu-notiz-save-btn,
.icu-notiz-cancel-btn,
.icu-action-bar button {
  -moz-appearance: none;
  appearance: none;
}

/* 3. lp-btn-primary in Firefox: align-items auf Buttons mit overflow:hidden
      + border-radius + pseudo-element funktioniert in Firefox erst zuverlässig
      wenn box-sizing explizit gesetzt ist. */
.lp-btn-primary,
.lp-btn-cta-white {
  box-sizing: border-box;
}

/* 4. Fokus-Ring: Firefox zeigt einen gestrichelten Fokus-Rahmen auf Buttons,
      Chrome nicht. Mit :focus-visible nur bei Tastaturnavigation einblenden. */
.lp-btn-primary:focus:not(:focus-visible),
.lp-btn-cta-white:focus:not(:focus-visible),
.icu-btn-primary:focus:not(:focus-visible),
.icu-btn-secondary:focus:not(:focus-visible),
.icu-btn-danger:focus:not(:focus-visible),
.icu-action-bar button:focus:not(:focus-visible),
.icu-delete-single-btn:focus:not(:focus-visible),
.icu-notiz-save-btn:focus:not(:focus-visible),
.icu-notiz-cancel-btn:focus:not(:focus-visible) {
  outline: none;
}

/* ═══════════════════════════════════════════════════════════
   ACTION BAR – PDF / Teilen
   ═══════════════════════════════════════════════════════════ */
.icu-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.icu-action-bar-title {
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}
.icu-action-bar button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    white-space: nowrap;
}
.icu-action-bar button:hover  { opacity: .88; transform: translateY(-1px); }
.icu-action-bar button:active { transform: translateY(0); }
.icu-btn-pdf       { background: #2563eb; color: #fff; }
.icu-btn-whatsapp  { background: #25d366; color: #fff; }
.icu-btn-email     { background: #64748b; color: #fff; }
.icu-btn-copy      { background: #fff; color: #374151; border: 1.5px solid #d1d5db !important; }
.icu-inserat-link-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    margin: 12px 0;
}
.icu-inserat-link-box a {
    flex: 1;
    color: #2563eb;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    word-break: break-all;
}
.icu-inserat-link-box a:hover { text-decoration: underline; }
.icu-inserat-link-icon { font-size: 20px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   SHARE-PDF (1-Seiten-Teaser)
   Auf dem Bildschirm versteckt, beim Drucken die einzige Seite
   ═══════════════════════════════════════════════════════════ */

/* Screen: Share-PDF + alter Print-Header unsichtbar */
#icu-share-pdf    { display: none; }
.icu-print-header { display: none; }
.icu-no-print     { display: block; } /* Online sichtbar */

/* ── Share-PDF Styles ────────────────────────────────────── */
#icu-share-pdf {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    color: #0f172a;
    background: #ffffff;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 36px 28px;
    box-sizing: border-box;
    line-height: 1.4;
}

/* ── A. HEADER ───────────────────────────────────────────── */
.spdf-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 3px solid #2563eb;
}
.spdf-logo {
    font-size: 20px;
    font-weight: 900;
    color: #2563eb;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.spdf-logo-sub {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.spdf-tagline {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    text-align: right;
    line-height: 1.6;
}

/* ── B. FAHRZEUG ─────────────────────────────────────────── */
.spdf-vehicle-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.spdf-vehicle-img {
    width: 100px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}
.spdf-vehicle {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    margin-bottom: 0;
}

/* ── C. SCORE-BLOCK ──────────────────────────────────────── */
.spdf-score-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 28px;
    margin-bottom: 22px;
}
.spdf-score-left {
    flex-shrink: 0;
    text-align: center;
}
.spdf-score-num {
    font-size: 72px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -2px;
}
.spdf-score-num span {
    font-size: 26px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0;
}
.spdf-score-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.spdf-score-right {
    flex: 1;
}
.spdf-risk {
    display: inline-block;
    font-size: 17px;
    font-weight: 800;
    padding: 7px 20px;
    border-radius: 999px;
    letter-spacing: 0.2px;
    margin-bottom: 8px;
}
.spdf-risk-high { background: #fee2e2; color: #b91c1c; }
.spdf-risk-mid  { background: #fff7ed; color: #c2410c; }
.spdf-risk-low  { background: #dcfce7; color: #166534; }
.spdf-score-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

/* ── D. AUFFÄLLIGKEITEN ──────────────────────────────────── */
.spdf-risks {
    margin-bottom: 20px;
    border: 1px solid #fed7aa;
    border-left: 5px solid #ea580c;
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    background: #fff7ed;
}
.spdf-risks-title {
    font-size: 10px;
    font-weight: 800;
    color: #9a3412;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.spdf-risks ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.spdf-risks ul li {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.35;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.spdf-risks ul li::before {
    content: '▸';
    color: #ea580c;
    flex-shrink: 0;
    font-size: 13px;
    margin-top: 1px;
}

/* ── E. HINWEIS ──────────────────────────────────────────── */
.spdf-hint {
    font-size: 12px;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 22px;
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 8px;
    border-left: 3px solid #cbd5e1;
}

/* ── F. CTA ──────────────────────────────────────────────── */
.spdf-cta {
    background: #1d4ed8;
    border-radius: 12px;
    padding: 22px 28px;
    text-align: center;
}
.spdf-cta-text {
    font-size: 19px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}
.spdf-cta-btn {
    display: inline-block;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 28px;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.1px;
    border: none;
}
.spdf-cta-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.spdf-cta-left {
    flex: 1;
    text-align: left;
}
.spdf-cta-qr {
    flex-shrink: 0;
    text-align: center;
}
.spdf-cta-qr-label {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    margin-top: 5px;
}
.spdf-cta-url {
    margin-top: 10px;
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    word-break: break-all;
    letter-spacing: 0;
}

/* ═══════════════════════════════════════════════════════════
   PRINT — nur Share-PDF zeigen, exakt 1 Seite
   ═══════════════════════════════════════════════════════════ */
@media print {
    /* Seitenränder, kein Browser-Footer/Header */
    @page { size: A4 portrait; margin: 10mm; }

    /* html + body auf eine Seite beschränken —
       verhindert dass der restliche Seiteninhalt
       weitere Druckseiten erzeugt */
    html, body {
        height: auto !important;
        overflow: hidden !important;
    }

    /* 1. Alles unsichtbar */
    body * { visibility: hidden; }

    /* 2. Nur Share-PDF sichtbar */
    #icu-share-pdf,
    #icu-share-pdf * { visibility: visible !important; }

    /* 3. Share-PDF: position:absolute (NICHT fixed!)
       fixed = wiederholt sich auf jeder Druckseite → war der Bug.
       absolute = erscheint einmalig oben links auf Seite 1. */
    #icu-share-pdf {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        overflow: hidden;
        background: #fff;
        box-sizing: border-box;
    }

    /* 4. Keine Seitenumbrüche innerhalb des Containers */
    #icu-share-pdf,
    #icu-share-pdf * {
        page-break-before: avoid;
        page-break-after:  avoid;
        page-break-inside: avoid;
        break-before: avoid;
        break-after:  avoid;
        break-inside: avoid;
    }

    /* 5. Basis */
    body { background: #fff !important; }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════════════ */
.icu-contact-wrap {
    max-width: 640px;
    margin: 0 auto;
}
.icu-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.icu-cf-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.icu-cf-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-gray-700);
}
.icu-cf-req {
    color: var(--lp-red);
}
.icu-cf-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    font-size: 15px;
    border: 1.5px solid var(--lp-gray-300);
    border-radius: 10px;
    background: #fff;
    color: var(--lp-gray-900);
    transition: border-color .15s;
    font-family: inherit;
}
.icu-cf-input:focus {
    outline: none;
    border-color: var(--lp-blue-600);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.icu-cf-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}
.icu-cf-textarea {
    min-height: 140px;
    resize: vertical;
}
.icu-cf-submit-row {
    display: flex;
}
.icu-cf-btn {
    background: var(--lp-blue-600);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}
.icu-cf-btn:hover:not(:disabled) {
    background: var(--lp-blue-700);
}
.icu-cf-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.icu-cf-feedback {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}
.icu-cf-feedback--success {
    background: var(--lp-green-bg);
    color: var(--lp-green);
    border: 1px solid var(--lp-green-border);
}
.icu-cf-feedback--error {
    background: var(--lp-red-bg);
    color: var(--lp-red);
    border: 1px solid #fecaca;
}

/* Abstand nach Kontaktformular */
.icu-contact-wrap {
    margin-bottom: 48px !important;
}
