/* ===== Design System (broker-portal24 inspired) ===== */
:root {
  --color-bg: #f7f7f7;
  --color-surface: #ffffff;
  --color-primary: #1e3a8a;
  --color-primary-light: #243b53;
  --color-accent: #1a63c5;
  --color-accent-hover: #0d4b98;
  --color-highlight: #0284c7;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-border: #d4d4d4;
  --color-border-dark: #b8b8b8;
  --color-border-light: #e5e5e5;
  --color-cell-border: #dcdcdc;
  --color-success: #16a34a;
  --color-warning: #ea580c;
  --color-danger: #dc2626;
  --color-tag-bar: #dcfce7;
  --color-tag-zins: #e0f2fe;
  --color-tag-order: #fef3c7;
  --color-tag-gutschein: #f3e8ff;
  --color-tag-none: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.12);
  --radius: 3px;
  --radius-lg: 4px;
  --font-sans: Arial, Helvetica, sans-serif;
  --max-width: 1180px;
  --transition: 0.15s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 14px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.45;
  min-height: 100vh;
}

/* ===== Header ===== */
.site-header {
  background: #ffffff;
  color: #000000;
  padding: 1.5rem 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  box-shadow: none;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header h1 {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

/* Header Bookmarks Button */
.bookmarks-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #000000;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.bookmarks-btn:hover {
  border-color: #888888;
  background: #fbfbfb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.bookmarks-btn .bookmark-btn-star {
  color: #f59e0b;
  font-size: 1.05rem;
  line-height: 1;
}

.bookmarks-btn.is-active {
  background: #fefce8;
  border-color: #f59e0b;
  color: #92400e;
  box-shadow: 0 0 0 1px #f59e0b, var(--shadow-sm);
}

/* ===== Meta Bar ===== */
.meta-bar {
  max-width: var(--max-width);
  margin: 1.25rem auto 1rem;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-bar .last-updated {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.meta-bar .last-updated time {
  font-weight: 600;
  color: var(--color-text);
}

/* ===== Info Banner ===== */
.info-banner {
  max-width: var(--max-width);
  margin: 0 auto 0.75rem;
  padding: 0 1rem;
}

.info-banner-inner {
  background: transparent;
  border: none;
  padding: 0.25rem 0;
  font-size: 0.85rem;
  color: #000000;
  line-height: 1.5;
}

.info-banner-inner strong {
  color: #000000;
}

/* ===== Staleness Warning ===== */
.staleness-warning {
  max-width: var(--max-width);
  margin: 0 auto 1rem;
  padding: 0 1rem;
}

.staleness-warning-inner {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.5;
  font-weight: 500;
}

/* ===== Comparison Table Container ===== */
.comparison-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

/* Table Header (broker-portal24 style) */
.table-header-row {
  display: grid;
  grid-template-columns: 240px 1.5fr 80px 75px 125px 155px;
  gap: 0;
  align-items: stretch;
  background: #f0f0f0;
  border: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0;
  font-size: 0.70rem;
  font-weight: 700;
  color: #333333;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.th-cell {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.65rem;
  border-right: 1px solid var(--color-cell-border);
  background: transparent;
  line-height: 1.2;
}

.th-cell:last-child {
  border-right: none;
}

.th-mindest,
.th-haltefrist {
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  justify-content: center;
  text-align: center;
  hyphens: auto;
}

.th-cell.sortable {
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
}

.th-cell.sortable:hover {
  color: var(--color-accent);
}

.sort-icon {
  margin-left: 0.25rem;
  font-size: 0.65rem;
  color: #888888;
}

.active-sort {
  color: var(--color-accent) !important;
}

.active-sort .sort-icon {
  color: var(--color-accent) !important;
}

/* Card List as Table Rows */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Broker Card (Table Row on Desktop) */
.broker-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0;
  box-shadow: none;
  transition: background-color var(--transition), opacity var(--transition), filter var(--transition);
  position: relative;
}

.broker-card:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom: 1px solid var(--color-border);
}

.broker-card:hover {
  background-color: #fafbfc;
  z-index: 1;
}

/* User request: entferne links greune/ graue border.
   Mache die inaktiven angebote noch mehr ausgebleicht. */
.broker-card.status-keine_aktion,
.broker-card.status-nicht_erreichbar,
.broker-card.status-abgelaufen {
  opacity: 0.46;
  filter: grayscale(75%);
  background-color: #fbfbfb;
}

.broker-card.status-keine_aktion:hover,
.broker-card.status-nicht_erreichbar:hover,
.broker-card.status-abgelaufen:hover {
  opacity: 0.75;
  filter: grayscale(20%);
}

.broker-card.status-unsicher {
  opacity: 0.88;
}

/* User request: ganzer eintrag visuell markiert bei gemerkten Angeboten */
.broker-card.is-bookmarked {
  background-color: #fffdf2;
  box-shadow: inset 3px 0 0 #f59e0b, 0 1px 3px rgba(245, 158, 11, 0.15);
  border-color: #fcd34d;
  z-index: 2;
}

.broker-card.is-bookmarked:hover {
  background-color: #fffbeb;
}

.broker-card.status-keine_aktion.is-bookmarked,
.broker-card.status-nicht_erreichbar.is-bookmarked,
.broker-card.status-abgelaufen.is-bookmarked {
  background-color: #fefef5;
  box-shadow: inset 3px 0 0 #f59e0b;
}

/* Card Grid Row */
.card-grid {
  display: grid;
  grid-template-columns: 240px 1.5fr 80px 75px 125px 155px;
  gap: 0;
  align-items: stretch;
  padding: 0;
}

.card-col {
  padding: 1rem 0.85rem;
  border-right: 1px solid var(--color-cell-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}

.card-col:last-child {
  border-right: none;
}

.mobile-col-label {
  display: none;
}

/* Col 1: Anbieter */
.col-anbieter {
  justify-content: flex-start;
  gap: 0.35rem;
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-bookmark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #9ca3af;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  user-select: none;
}

.card-bookmark-btn:hover {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  transform: scale(1.15);
}

.card-bookmark-btn.is-bookmarked {
  color: #f59e0b;
  transform: scale(1.05);
}

.card-bookmark-btn.is-bookmarked:hover {
  color: #d97706;
  background: rgba(245, 158, 11, 0.18);
}

.broker-logo {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.broker-logo img,
.broker-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f1f5f9;
}

.broker-info h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.broker-info .produkt {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  font-weight: 400;
  display: block;
  margin-top: 0.1rem;
}

.card-header-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.type-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.type-badge.type-depotwechsel {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.type-badge.type-neueroeffnung {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.type-badge.type-beides {
  background: #fdf4ff;
  color: #a21caf;
  border: 1px solid #f5d0fe;
}

.type-badge.type-nur_konditionen {
  display: none !important;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.mydealz-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  background: #fff1ec;
  color: #e65100;
  border: 1px solid #ffccbc;
  text-decoration: none;
  white-space: nowrap;
}

.source-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(120, 120, 120, 0.15);
  background: color-mix(in srgb, var(--badge-color) 15%, transparent);
  color: var(--badge-color);
  border: 1px solid rgba(120, 120, 120, 0.3);
  border: 1px solid color-mix(in srgb, var(--badge-color) 30%, transparent);
  margin-right: 4px;
  margin-top: 4px;
  font-weight: 500;
}

.status-badge {
  display: none;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge.aktiv {
  background: var(--color-tag-bar);
  color: var(--color-success);
  border: 1px solid #bbf7d0;
}

.status-badge.keine_aktion {
  background: var(--color-tag-none);
  color: var(--color-text-muted);
  border: 1px solid #e2e8f0;
}

.status-badge.unsicher {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-badge.nicht_erreichbar {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.status-badge.abgelaufen {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

/* Validity countdown badge */
.col-validity {
  margin-top: 0.15rem;
}

.validity-badge {
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
}

.validity-badge.val-green {
  display: none;
}

.validity-badge.val-orange {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
  font-weight: 700;
}

.validity-badge.val-red {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
  font-weight: 700;
}

.validity-badge.val-gray {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* Card Dates */
.card-dates {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.date-item {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.date-discovered {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* Col 2: Prämie & Vorteile (The Highlight Column) */
.col-praemie {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.praemie-highlight {
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #000000;
}

.praemie-highlight.is-active {
  color: #000000;
}

.praemie-highlight.is-muted {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.star-icon {
  color: #f59e0b;
  font-size: 1.15rem;
  vertical-align: -1px;
}

.praemie-text {
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.35;
}

.praemie-perks {
  display: none;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.perk-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.74rem;
  color: #000000;
  background: transparent;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-weight: 500;
}

.perk-check {
  color: #000000;
  font-weight: 700;
}

.details-toggle-btn {
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #000000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-sans);
  transition: color var(--transition);
}

.details-toggle-btn:hover {
  color: #333333;
  text-decoration: underline;
}

.toggle-arrow {
  font-size: 0.7rem;
  transition: transform var(--transition);
}

/* Col 3 & 4: Mindestübertrag & Haltefrist */
.col-mindest,
.col-haltefrist {
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  text-align: center;
  align-items: center;
}

.col-mindest .cell-value,
.col-haltefrist .cell-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  word-break: break-word;
}

/* Col 5: Depotkosten */
.col-depot .cell-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

.check-icon {
  color: var(--color-success);
  font-weight: 800;
  margin-right: 0.15rem;
}

/* Col 6: CTA Button & Source Link */
.col-cta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 42%, #eaeaea 50%, #dedede 100%);
  color: #000000;
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border: 1px solid #b2b2b2;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-sans);
  text-shadow: 0 1px 0 #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.cta-button:hover {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 42%, #f0f0f0 50%, #e6e6e6 100%);
  border-color: #888888;
  color: #000000;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 3px rgba(0, 0, 0, 0.16);
  transform: none;
}

.cta-button:active {
  background: linear-gradient(180deg, #d8d8d8 0%, #e5e5e5 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-button svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.broker-card.status-keine_aktion .cta-button,
.broker-card.status-nicht_erreichbar .cta-button,
.broker-card.status-abgelaufen .cta-button {
  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
  color: #777777;
  border-color: #cccccc;
  text-shadow: 0 1px 0 #ffffff;
  box-shadow: none;
  cursor: default;
}

.broker-card.status-keine_aktion .cta-button:hover,
.broker-card.status-nicht_erreichbar .cta-button:hover,
.broker-card.status-abgelaufen .cta-button:hover {
  background: linear-gradient(180deg, #eeeeee 0%, #dfdfdf 100%);
  color: #555555;
  border-color: #aaaaaa;
}

.source-link {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: color var(--transition);
  text-align: center;
}

.source-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.source-link:hover {
  color: var(--color-accent);
}

.source-url-display {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  word-break: break-all;
  margin-top: 0.2rem;
  text-align: center;
}

/* ===== Expandable Details Accordion ===== */
.card-expandable-details {
  display: none;
  background: #f8fafc;
  border-top: 1px dashed var(--color-border);
  padding: 1.25rem 1.5rem;
  animation: fadeIn 0.2s ease;
  color: #000000;
}

.card-expandable-details * {
  color: #000000;
}

.bedingungen-fliesstext {
  white-space: pre-line;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #000000;
  padding: 0.25rem 0;
}

.bedingungen-leer {
  color: #000000;
  font-style: italic;
  font-size: 0.85rem;
  padding: 0.25rem 0;
}

.card-expandable-details.is-open {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.details-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.structured-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #000000;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.detail-row {
  line-height: 1.45;
  color: #000000;
}

.detail-row strong {
  color: #000000;
  margin-right: 0.35rem;
}

.konditionen-block {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.konditionen-title {
  display: block;
  padding: 0.6rem 1rem;
  background: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--color-border);
}

.konditionen-list {
  list-style: none;
}

.kondition-item {
  display: flex;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.kondition-item:last-child {
  border-bottom: none;
}

.kondition-item:nth-child(odd) {
  background: #fafbfc;
}

.kondition-label {
  font-weight: 600;
  color: #000000;
  min-width: 150px;
  flex-shrink: 0;
}

.kondition-wert {
  color: #000000;
}

/* ===== Disclaimer ===== */
.disclaimer {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.disclaimer-inner {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--radius);
  padding: 0.75rem 1.15rem;
  font-size: 0.78rem;
  color: #78350f;
  line-height: 1.5;
}

/* ===== Footer ===== */
.site-footer {
  background: #0a2540;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.78rem;
}

.site-footer a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ===== Loading & Empty State ===== */
.loading-state,
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Responsive (Mobile & Tablet) ===== */

@media (max-width: 960px) {
  .table-header-row {
    display: none;
  }

  .card-list {
    gap: 1rem;
  }

  .broker-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
  }

  .broker-card:last-child {
    border-radius: var(--radius-lg);
  }

  .card-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
  }

  .card-col {
    padding: 0;
    border-right: none;
  }

  .mobile-col-label {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.03em;
  }

  .col-mindest,
  .col-haltefrist,
  .col-depot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px dashed var(--color-border-light);
  }

  .col-cta {
    margin-top: 0.5rem;
  }

  .card-header-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 1.5rem 0.75rem;
  }

  .site-header h1 {
    font-size: 1.3rem;
  }

  .comparison-container {
    padding: 0 0.5rem 2rem;
  }

  .meta-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0.5rem;
  }
}

/* All conditions remain keyboard reachable without clipping. */
.card-expandable-details[hidden] { display: none; }
.card-col, .details-content, .offer-overview, .detail-row { min-width: 0; overflow-wrap: anywhere; }
.offer-overview p { margin: 0 0 .5rem; }
.overview-bullets { padding-left: 1.3rem; margin: .5rem 0; }
.overview-bullets .kondition-item { display: list-item; padding: .25rem 0; border: 0; }
.verification-limitation, .last-supported { font-size: .82rem; }
.further-conditions summary { cursor: pointer; font-weight: 600; padding: .5rem 0; }
.further-conditions .detail-row { margin: .5rem 0; }
.evidence-links { padding-left: 1.2rem; overflow-wrap: anywhere; }
.details-toggle-btn:focus-visible, .further-conditions summary:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }

.historical-value {
  display: block;
  color: #777;
  font-size: 0.75rem;
  font-weight: normal;
  margin-top: 0.2rem;
}

.historical-notice {
  color: #666;
  font-size: 0.85rem;
}
/* Literal witnesses keep every qualifier accessible beyond the compact summary. */
.fact-evidence {
  margin: 10px 0;
  padding: 8px 12px;
  border-left: 3px solid #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.fact-evidence cite { display: block; margin-top: 4px; font-size: 12px; }
