/* Aion Structured Response — block-based layout (intro / picks / comparison / fazit)
   Block dispatcher renders these from a JSON envelope (layout="structured").
   Reuses dark theme tokens from aion-chat.css. */

.aion-structured {
    --aion-accent-rgb: 168, 85, 247;
    --aion-accent-rgb-2: 59, 130, 246;
    --aion-accent-text: #ddd6fe;
    --aion-accent-link: #c4b5fd;
    --aion-accent-link-hover: #ddd6fe;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.55;
}
.aion-structured.mode-analysis {
    --aion-accent-rgb: 16, 185, 129;
    --aion-accent-rgb-2: 13, 148, 136;
    --aion-accent-text: #a7f3d0;
    --aion-accent-link: #6ee7b7;
    --aion-accent-link-hover: #d1fae5;
}
.aion-structured.mode-text {
    --aion-accent-rgb: 245, 158, 11;
    --aion-accent-rgb-2: 234, 88, 12;
    --aion-accent-text: #fde68a;
    --aion-accent-link: #fcd34d;
    --aion-accent-link-hover: #fef3c7;
}

/* ── Section header (icon + title + thin divider) ───────────────────────── */
.aion-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.aion-section + .aion-section {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
}
.aion-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}
.aion-section-header .icon {
    font-size: 1.15rem;
    line-height: 1;
}
.aion-section-sub {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: -4px 0 0;
}

/* ── Intro block (criteria / "Worauf achten") ───────────────────────────── */
.aion-intro p {
    margin: 0 0 8px;
    color: #cbd5e1;
}
.aion-intro ul {
    margin: 0;
    padding-left: 20px;
    color: #cbd5e1;
}
.aion-intro ul li { margin: 4px 0; }
.aion-intro ul li b { color: #f1f5f9; }
.aion-intro .callout {
    background: rgba(var(--aion-accent-rgb), 0.08);
    border-left: 3px solid rgba(var(--aion-accent-rgb), 0.6);
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 8px;
    color: var(--aion-accent-text);
    font-size: 0.92rem;
}

/* ── Pick block (one recommendation row, GPT-style) ─────────────────────── */
.aion-picks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.aion-pick {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.aion-pick-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}
.aion-pick-badge .badge-icon { font-size: 0.95rem; }
.aion-pick-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: start;
}
.aion-pick-row.no-image {
    grid-template-columns: 1fr;
}
.aion-pick-image {
    width: 130px;
    height: 110px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(30,30,40,0.9), rgba(40,40,55,0.8));
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aion-pick-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.aion-pick-image .placeholder-icon {
    font-size: 2rem;
    opacity: 0.5;
}
.aion-pick-image.og-failed {
    display: none;
}
.aion-pick-row:has(.aion-pick-image.og-failed) {
    grid-template-columns: 1fr;
}
.aion-pick-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.aion-pick-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 0.98rem;
    line-height: 1.35;
}
.aion-pick-title a {
    color: var(--aion-accent-link);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(var(--aion-accent-rgb), 0.35);
}
.aion-pick-title a:hover {
    color: var(--aion-accent-link-hover);
    border-bottom-color: rgba(var(--aion-accent-rgb), 0.7);
}
.aion-pick-meta {
    color: #94a3b8;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.aion-pick-meta .meta-sep { opacity: 0.4; }
.aion-pick-meta .price { color: #4ade80; font-weight: 600; }
.aion-pick-meta .rating { color: #fbbf24; font-weight: 500; }
.aion-pick-desc {
    color: #cbd5e1;
    font-size: 0.92rem;
    margin: 2px 0 0;
}
.aion-pick-bullets {
    margin: 6px 0 0;
    padding-left: 20px;
    color: #cbd5e1;
    font-size: 0.92rem;
}
.aion-pick-bullets li { margin: 3px 0; }
.aion-pick-tip {
    margin-top: 8px;
    color: #fde68a;
    font-size: 0.9rem;
}

/* ── Comparison table (sticky first column, image header row) ───────────── */
.aion-comparison {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(15, 18, 28, 0.4);
}
.aion-comparison table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    color: #cbd5e1;
}
.aion-comparison thead th {
    padding: 12px 14px;
    text-align: center;
    vertical-align: top;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-weight: 500;
    min-width: 130px;
}
.aion-comparison thead th:first-child {
    text-align: left;
    color: #94a3b8;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: transparent;
    min-width: 110px;
}
.aion-comparison .col-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.aion-comparison .col-image img {
    width: 110px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0,0,0,0.25);
    padding: 4px;
}
.aion-comparison .col-image .col-name {
    font-weight: 600;
    color: #f1f5f9;
    font-size: 0.9rem;
}
.aion-comparison .col-image .col-meta {
    font-size: 0.75rem;
    color: #94a3b8;
}
.aion-comparison tbody td {
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}
.aion-comparison tbody td:first-child {
    text-align: left;
    color: #94a3b8;
    font-weight: 500;
    background: rgba(255,255,255,0.015);
}
.aion-comparison tbody tr:last-child td { border-bottom: none; }
.aion-comparison .stars {
    color: #fbbf24;
    letter-spacing: 1px;
}
.aion-comparison .stars .empty { color: rgba(251, 191, 36, 0.25); }
.aion-comparison .badge-cell {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(var(--aion-accent-rgb), 0.15);
    color: var(--aion-accent-text);
}
.aion-comparison .badge-cell.bad { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.aion-comparison .badge-cell.good { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }

/* ── Fazit block ────────────────────────────────────────────────────────── */
.aion-fazit {
    background: rgba(15, 18, 28, 0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 10px 14px;
    gap: 4px;
}
.aion-section + .aion-section.aion-fazit {
    border: 1px solid rgba(255,255,255,0.06);
    padding: 10px 14px;
}
.aion-fazit .aion-section-header {
    line-height: 1.2;
    margin: 0 0 2px;
}
.aion-fazit p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.45;
}
.aion-fazit ul {
    margin: 0;
    padding-left: 20px;
    color: #cbd5e1;
}
.aion-fazit ul li {
    margin: 2px 0;
    line-height: 1.45;
}

/* ── Steuer/Recht: Paragraph-Card + Beispielrechnung ────────────────────── */
.aion-paragraphs { display: flex; flex-direction: column; gap: 8px; }
.aion-paragraph {
    background: rgba(15, 18, 28, 0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.aion-paragraph-ref {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--aion-accent-text);
    background: rgba(var(--aion-accent-rgb), 0.15);
    padding: 3px 10px;
    border-radius: 999px;
    align-self: flex-start;
}
.aion-paragraph-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.3;
}
.aion-paragraph-body { color: #cbd5e1; font-size: 0.92rem; line-height: 1.45; }
.aion-paragraph-source {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}
.aion-paragraph-source a { color: var(--aion-accent-link); text-decoration: none; }
.aion-paragraph-source a:hover { text-decoration: underline; }

.aion-calc {
    background: rgba(15, 18, 28, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}
.aion-calc table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #cbd5e1;
}
.aion-calc td {
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.aion-calc td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: #f1f5f9; }
.aion-calc tr.total td {
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: none;
    font-weight: 600;
    color: #f1f5f9;
    background: rgba(var(--aion-accent-rgb), 0.08);
}
.aion-calc tr.total td:last-child { color: #4ade80; }

.aion-warn {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(251, 191, 36, 0.08);
    border-left: 3px solid rgba(251, 191, 36, 0.6);
    border-radius: 6px;
    padding: 10px 14px;
    color: #fde68a;
    font-size: 0.88rem;
}
.aion-warn .icon { flex: 0 0 auto; font-size: 1rem; }

/* ── Math sheet: formulas + exact tables ───────────────────────────────── */
.aion-math-sheet {
    gap: 14px;
}
.aion-math-formulas {
    display: grid;
    gap: 10px;
}
.aion-math-formula {
    display: grid;
    grid-template-columns: minmax(70px, auto) 1fr;
    gap: 12px;
    align-items: start;
    background: rgba(15, 18, 28, 0.58);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 14px;
}
.aion-math-label {
    color: var(--aion-accent-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.94rem;
    font-weight: 700;
    white-space: nowrap;
}
.aion-math-lines {
    min-width: 0;
    display: grid;
    gap: 4px;
}
.aion-math-line {
    color: #e5e7eb;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.94rem;
    line-height: 1.55;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
}
.aion-math-line sup {
    font-size: 0.72em;
    line-height: 0;
}
.aion-math-part {
    display: inline-block;
    vertical-align: baseline;
}
.aion-math-eq {
    display: inline-flex;
    margin: 0 9px;
    color: #94a3b8;
}
.aion-math-note {
    grid-column: 2;
    color: #94a3b8;
    font-size: 0.86rem;
    margin-top: 2px;
}
.aion-math-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15, 18, 28, 0.58);
}
.aion-math-table-caption {
    color: #94a3b8;
    font-size: 0.84rem;
    padding: 10px 14px 0;
}
.aion-math-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.88rem;
    color: #cbd5e1;
}
.aion-math-table th,
.aion-math-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.aion-math-table th {
    color: #f1f5f9;
    background: rgba(var(--aion-accent-rgb), 0.10);
    font-weight: 700;
}
.aion-math-table th:first-child,
.aion-math-table td:first-child {
    text-align: left;
    color: var(--aion-accent-text);
}
.aion-math-table tbody tr:last-child td {
    border-bottom: 0;
}
.aion-math-table tbody tr:hover td {
    background: rgba(255,255,255,0.025);
}
.aion-math-checks {
    display: grid;
    gap: 8px;
}
.aion-math-check {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: start;
}
.aion-math-check-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--aion-accent-rgb), 0.20);
    color: var(--aion-accent-text);
    font-size: 0.78rem;
    font-weight: 800;
}
.aion-math-check-body {
    min-width: 0;
    display: grid;
    gap: 2px;
}
.aion-math-check-title {
    color: #f1f5f9;
    font-weight: 700;
    font-size: 0.92rem;
}
.aion-math-check-text {
    color: #cbd5e1;
    font-size: 0.9rem;
}
.aion-math-summary {
    display: grid;
    gap: 4px;
    background: rgba(var(--aion-accent-rgb), 0.08);
    border-left: 3px solid rgba(var(--aion-accent-rgb), 0.58);
    border-radius: 6px;
    padding: 10px 14px;
    color: #ddd6fe;
    font-size: 0.9rem;
}

/* ── Lernen: Konzept-Erklärung ───────────────────────────────────────────── */
.aion-concept {
    background: linear-gradient(135deg, rgba(var(--aion-accent-rgb), 0.08), rgba(var(--aion-accent-rgb-2), 0.05));
    border: 1px solid rgba(var(--aion-accent-rgb), 0.2);
    border-radius: 10px;
    padding: 16px 18px;
}
.aion-concept-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--aion-accent-link);
    font-weight: 600;
    margin-bottom: 4px;
}
.aion-concept-title { font-size: 1.05rem; font-weight: 600; color: #f1f5f9; margin: 0 0 6px; }
.aion-concept-body { color: #cbd5e1; font-size: 0.93rem; }

.aion-steps { display: flex; flex-direction: column; gap: 8px; counter-reset: step; }
.aion-step {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: start;
}
.aion-step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(var(--aion-accent-rgb), 0.2);
    color: var(--aion-accent-text);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.aion-step-body { padding-top: 1px; }
.aion-step-title { font-weight: 600; color: #f1f5f9; font-size: 0.95rem; margin: 0 0 1px; line-height: 1.3; }
.aion-step-text { color: #cbd5e1; font-size: 0.9rem; margin: 0; line-height: 1.45; }

.aion-example {
    background: rgba(15, 18, 28, 0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid rgba(96, 165, 250, 0.6);
    border-radius: 6px;
    padding: 12px 16px;
    color: #cbd5e1;
    font-size: 0.92rem;
}
.aion-example-label {
    font-size: 0.75rem;
    color: #93c5fd;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

/* ── News: Headline-Liste + Timeline ─────────────────────────────────────── */
.aion-headlines { display: flex; flex-direction: column; }
.aion-headline {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    color: inherit;
}
.aion-headline:first-child { padding-top: 0; }
.aion-headline:last-child { border-bottom: none; padding-bottom: 0; }
.aion-headline-thumb {
    width: 90px; height: 70px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.aion-headline-thumb img { width: 100%; height: 100%; object-fit: cover; }
.aion-headline-thumb .placeholder-icon { font-size: 1.6rem; opacity: 0.5; }
.aion-headline-body { display: flex; flex-direction: column; gap: 4px; }
.aion-headline-title {
    font-weight: 600; color: #f1f5f9; font-size: 0.95rem;
    line-height: 1.35;
}
.aion-headline-meta {
    font-size: 0.8rem; color: #94a3b8;
    display: flex; gap: 8px; align-items: center;
}
.aion-headline-meta .src { color: #c4b5fd; }
.aion-headline-summary { color: #cbd5e1; font-size: 0.88rem; }

.aion-timeline {
    border-left: 2px solid rgba(var(--aion-accent-rgb), 0.3);
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-left: 6px;
}
.aion-timeline-item { position: relative; }
.aion-timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 6px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--aion-accent-link);
    border: 2px solid #181c25;
}
.aion-timeline-time { font-size: 0.78rem; color: #94a3b8; font-weight: 500; }
.aion-timeline-text { color: #cbd5e1; font-size: 0.9rem; margin: 2px 0 0; }

/* ── Wetter ──────────────────────────────────────────────────────────────── */
.aion-weather-now {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(96, 165, 250, 0.05));
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    padding: 18px 22px;
}
.aion-weather-icon { font-size: 3rem; line-height: 1; flex-shrink: 0; }
.aion-weather-main { min-width: 0; }
.aion-weather-main .city { font-size: 0.85rem; color: #cbd5e1; }
.aion-weather-main .temp { font-size: 2.2rem; font-weight: 700; color: #f1f5f9; line-height: 1.1; }
.aion-weather-main .desc { font-size: 0.9rem; color: #cbd5e1; }
.aion-weather-stats {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 4px 12px;
    font-size: 0.82rem;
    color: #cbd5e1;
    justify-content: end;
}
.aion-weather-stats .label { color: #94a3b8; }
.aion-weather-stats > span:nth-child(even) {
    text-align: right;
    color: #f1f5f9;
    font-variant-numeric: tabular-nums;
}

.aion-weather-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}
.aion-weather-day {
    background: rgba(15, 18, 28, 0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
    min-width: 0;
}
.aion-weather-day .d { font-size: 0.78rem; color: #94a3b8; font-weight: 500; }
.aion-weather-day .ic { font-size: 1.6rem; margin: 6px 0; line-height: 1; }
.aion-weather-day .tmax { font-weight: 600; color: #f1f5f9; font-size: 0.95rem; }
.aion-weather-day .tmin { color: #94a3b8; font-size: 0.82rem; }

/* ── Rezepte: Zutaten + Schritte ─────────────────────────────────────────── */
.aion-recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: #cbd5e1;
}
.aion-recipe-meta .item { display: inline-flex; gap: 4px; align-items: center; }
.aion-recipe-meta .item .ic { opacity: 0.7; }

.aion-ingredients {
    background: rgba(15, 18, 28, 0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px 18px;
}
.aion-ingredients ul {
    margin: 0; padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px 18px;
}
.aion-ingredients li {
    display: flex;
    justify-content: space-between;
    color: #cbd5e1;
    font-size: 0.9rem;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.aion-ingredients li .qty { color: #f1f5f9; font-variant-numeric: tabular-nums; }

/* ═════════════════════════════════════════════════════════════════════════
   LIGHT THEME — scoped to html.aion-chat-page.theme-light
   ═════════════════════════════════════════════════════════════════════════ */
html.aion-chat-page.theme-light .aion-structured {
    color: #0f172a;
}

/* Section header + divider */
html.aion-chat-page.theme-light .aion-section + .aion-section {
    border-top-color: rgba(15, 23, 42, 0.08);
}
html.aion-chat-page.theme-light .aion-section-header { color: #0f172a; }
html.aion-chat-page.theme-light .aion-section-sub { color: #64748b; }

/* Intro */
html.aion-chat-page.theme-light .aion-intro p,
html.aion-chat-page.theme-light .aion-intro ul,
html.aion-chat-page.theme-light .aion-intro ul li { color: #1e293b; }
html.aion-chat-page.theme-light .aion-intro ul li b,
html.aion-chat-page.theme-light .aion-intro b,
html.aion-chat-page.theme-light .aion-intro strong { color: #0f172a; }
html.aion-chat-page.theme-light .aion-intro ul li::marker { color: #7c3aed; }
html.aion-chat-page.theme-light .aion-intro .callout {
    background: rgba(124, 58, 237, 0.06);
    border-left-color: rgba(124, 58, 237, 0.5);
    color: #5b21b6;
}

/* Picks */
html.aion-chat-page.theme-light .aion-pick-badge { color: #0f172a; }
html.aion-chat-page.theme-light .aion-pick-image {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-color: rgba(15, 23, 42, 0.08);
}
html.aion-chat-page.theme-light .aion-pick-image .placeholder-icon { opacity: 0.45; }
html.aion-chat-page.theme-light .aion-pick-title a {
    color: #7c3aed;
    border-bottom-color: rgba(124, 58, 237, 0.35);
}
html.aion-chat-page.theme-light .aion-pick-title a:hover {
    color: #5b21b6;
    border-bottom-color: rgba(124, 58, 237, 0.7);
}
html.aion-chat-page.theme-light .aion-pick-meta { color: #64748b; }
html.aion-chat-page.theme-light .aion-pick-meta .price { color: #059669; }
html.aion-chat-page.theme-light .aion-pick-meta .rating { color: #d97706; }
html.aion-chat-page.theme-light .aion-pick-desc,
html.aion-chat-page.theme-light .aion-pick-bullets,
html.aion-chat-page.theme-light .aion-pick-bullets li { color: #1e293b; }
html.aion-chat-page.theme-light .aion-pick-bullets li::marker { color: #7c3aed; }
html.aion-chat-page.theme-light .aion-pick-bullets b,
html.aion-chat-page.theme-light .aion-pick-bullets strong,
html.aion-chat-page.theme-light .aion-pick-desc b,
html.aion-chat-page.theme-light .aion-pick-desc strong { color: #0f172a; }
html.aion-chat-page.theme-light .aion-pick-tip { color: #b45309; }

/* Comparison */
html.aion-chat-page.theme-light .aion-comparison {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(15, 23, 42, 0.08);
}
html.aion-chat-page.theme-light .aion-comparison table { color: #334155; }
html.aion-chat-page.theme-light .aion-comparison thead th {
    background: rgba(124, 58, 237, 0.04);
    border-bottom-color: rgba(15, 23, 42, 0.10);
}
html.aion-chat-page.theme-light .aion-comparison thead th:first-child {
    color: #64748b;
    background: transparent;
}
html.aion-chat-page.theme-light .aion-comparison .col-image img {
    background: rgba(15, 23, 42, 0.04);
}
html.aion-chat-page.theme-light .aion-comparison .col-image .col-name { color: #0f172a; }
html.aion-chat-page.theme-light .aion-comparison .col-image .col-meta { color: #64748b; }
html.aion-chat-page.theme-light .aion-comparison tbody td {
    border-bottom-color: rgba(15, 23, 42, 0.05);
}
html.aion-chat-page.theme-light .aion-comparison tbody td:first-child {
    color: #64748b;
    background: rgba(15, 23, 42, 0.02);
}
html.aion-chat-page.theme-light .aion-comparison .stars { color: #d97706; }
html.aion-chat-page.theme-light .aion-comparison .stars .empty { color: rgba(217, 119, 6, 0.25); }
html.aion-chat-page.theme-light .aion-comparison .badge-cell {
    background: rgba(124, 58, 237, 0.10);
    color: #6d28d9;
}
html.aion-chat-page.theme-light .aion-comparison .badge-cell.good {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}
html.aion-chat-page.theme-light .aion-comparison .badge-cell.bad {
    background: rgba(239, 68, 68, 0.10);
    color: #b91c1c;
}

/* Fazit */
html.aion-chat-page.theme-light .aion-fazit {
    background: rgba(124, 58, 237, 0.05);
    border-color: rgba(124, 58, 237, 0.15);
    color: #1e293b;
}
html.aion-chat-page.theme-light .aion-fazit ul,
html.aion-chat-page.theme-light .aion-fazit ul li,
html.aion-chat-page.theme-light .aion-fazit p { color: #1e293b; }
html.aion-chat-page.theme-light .aion-fazit ul li::marker { color: #7c3aed; }
html.aion-chat-page.theme-light .aion-fazit b,
html.aion-chat-page.theme-light .aion-fazit strong { color: #0f172a; }

/* Paragraphs (Steuer/Recht) */
html.aion-chat-page.theme-light .aion-paragraph {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.08);
}
html.aion-chat-page.theme-light .aion-paragraph-ref {
    background: rgba(124, 58, 237, 0.10);
    color: #6d28d9;
}
html.aion-chat-page.theme-light .aion-paragraph-title { color: #0f172a; }
html.aion-chat-page.theme-light .aion-paragraph-body { color: #1e293b; }
html.aion-chat-page.theme-light .aion-paragraph-body b,
html.aion-chat-page.theme-light .aion-paragraph-body strong { color: #0f172a; }
html.aion-chat-page.theme-light .aion-paragraph-source { color: #64748b; }
html.aion-chat-page.theme-light .aion-paragraph-source a { color: #7c3aed; }

/* Calc */
html.aion-chat-page.theme-light .aion-calc {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.10);
}
html.aion-chat-page.theme-light .aion-calc table { color: #334155; }
html.aion-chat-page.theme-light .aion-calc td {
    border-bottom-color: rgba(15, 23, 42, 0.05);
}
html.aion-chat-page.theme-light .aion-calc td:last-child { color: #0f172a; }
html.aion-chat-page.theme-light .aion-calc tr.total td {
    border-top-color: rgba(15, 23, 42, 0.15);
    background: rgba(124, 58, 237, 0.06);
    color: #0f172a;
}
html.aion-chat-page.theme-light .aion-calc tr.total td:last-child { color: #047857; }

/* Warn */
html.aion-chat-page.theme-light .aion-warn {
    background: rgba(251, 191, 36, 0.10);
    border-left-color: rgba(217, 119, 6, 0.6);
    color: #92400e;
}

/* Math sheet */
html.aion-chat-page.theme-light .aion-math-formula,
html.aion-chat-page.theme-light .aion-math-table-wrap {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 23, 42, 0.10);
}
html.aion-chat-page.theme-light .aion-math-label,
html.aion-chat-page.theme-light .aion-math-table th:first-child,
html.aion-chat-page.theme-light .aion-math-table td:first-child {
    color: #6d28d9;
}
html.aion-chat-page.theme-light .aion-math-line,
html.aion-chat-page.theme-light .aion-math-table {
    color: #1e293b;
}
html.aion-chat-page.theme-light .aion-math-eq,
html.aion-chat-page.theme-light .aion-math-note,
html.aion-chat-page.theme-light .aion-math-table-caption {
    color: #64748b;
}
html.aion-chat-page.theme-light .aion-math-table th {
    color: #0f172a;
    background: rgba(124, 58, 237, 0.07);
}
html.aion-chat-page.theme-light .aion-math-table th,
html.aion-chat-page.theme-light .aion-math-table td {
    border-bottom-color: rgba(15, 23, 42, 0.06);
}
html.aion-chat-page.theme-light .aion-math-table tbody tr:hover td {
    background: rgba(124, 58, 237, 0.035);
}
html.aion-chat-page.theme-light .aion-math-check-num {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
}
html.aion-chat-page.theme-light .aion-math-check-title {
    color: #0f172a;
}
html.aion-chat-page.theme-light .aion-math-check-text {
    color: #1e293b;
}
html.aion-chat-page.theme-light .aion-math-summary {
    background: rgba(124, 58, 237, 0.06);
    border-left-color: rgba(124, 58, 237, 0.45);
    color: #5b21b6;
}

/* Concept (Lernen) */
html.aion-chat-page.theme-light .aion-concept {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(59, 130, 246, 0.04));
    border-color: rgba(124, 58, 237, 0.18);
}
html.aion-chat-page.theme-light .aion-concept-label { color: #7c3aed; }
html.aion-chat-page.theme-light .aion-concept-title { color: #0f172a; }
html.aion-chat-page.theme-light .aion-concept-body { color: #1e293b; }
html.aion-chat-page.theme-light .aion-concept-body b,
html.aion-chat-page.theme-light .aion-concept-body strong { color: #0f172a; }

/* Steps */
html.aion-chat-page.theme-light .aion-step-num {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
}
html.aion-chat-page.theme-light .aion-step-title { color: #0f172a; }
html.aion-chat-page.theme-light .aion-step-text { color: #1e293b; }
html.aion-chat-page.theme-light .aion-step-text b,
html.aion-chat-page.theme-light .aion-step-text strong { color: #0f172a; }

/* Example */
html.aion-chat-page.theme-light .aion-example {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.08);
    border-left-color: rgba(59, 130, 246, 0.5);
    color: #1e293b;
}
html.aion-chat-page.theme-light .aion-example b,
html.aion-chat-page.theme-light .aion-example strong { color: #0f172a; }
html.aion-chat-page.theme-light .aion-example-label { color: #2563eb; }

/* Headlines */
html.aion-chat-page.theme-light .aion-headline {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}
html.aion-chat-page.theme-light .aion-headline-thumb {
    background: rgba(15, 23, 42, 0.04);
}
html.aion-chat-page.theme-light .aion-headline-thumb .placeholder-icon { opacity: 0.45; }
html.aion-chat-page.theme-light .aion-headline-title { color: #0f172a; }
html.aion-chat-page.theme-light .aion-headline-meta { color: #64748b; }
html.aion-chat-page.theme-light .aion-headline-meta .src { color: #7c3aed; }
html.aion-chat-page.theme-light .aion-headline-summary { color: #1e293b; }

/* Timeline */
html.aion-chat-page.theme-light .aion-timeline {
    border-left-color: rgba(124, 58, 237, 0.35);
}
html.aion-chat-page.theme-light .aion-timeline-item::before {
    background: #7c3aed;
    border-color: #ffffff;
}
html.aion-chat-page.theme-light .aion-timeline-time { color: #64748b; }
html.aion-chat-page.theme-light .aion-timeline-text { color: #1e293b; }

/* Recipe meta + ingredients */
html.aion-chat-page.theme-light .aion-recipe-meta { color: #1e293b; }
html.aion-chat-page.theme-light .aion-ingredients {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.08);
}
html.aion-chat-page.theme-light .aion-ingredients li {
    color: #1e293b;
    border-bottom-color: rgba(15, 23, 42, 0.06);
}
html.aion-chat-page.theme-light .aion-ingredients li .qty { color: #0f172a; font-weight: 600; }

/* ── Mobile ─────────────────────────────────────────────────────────────── */

/* Tablets / small laptops */
@media (max-width: 768px) {
    .aion-structured { gap: 18px; font-size: 0.93rem; }
    .aion-section + .aion-section { padding-top: 10px; }
    .aion-section + .aion-section.aion-fazit { padding: 11px 14px; }
    .aion-comparison { -webkit-overflow-scrolling: touch; }
    .aion-comparison thead th { min-width: 120px; padding: 10px 12px; }
    .aion-weather-now { padding: 16px 18px; gap: 14px; }
}

/* Phones */
@media (max-width: 600px) {
    .aion-structured { gap: 16px; }
    .aion-pick-row {
        grid-template-columns: 96px 1fr;
        gap: 12px;
    }
    .aion-pick-row.no-image,
    .aion-pick-row:has(.aion-pick-image.og-failed) {
        grid-template-columns: 1fr;
    }
    .aion-pick-image {
        width: 96px;
        height: 84px;
    }
    .aion-pick-title { font-size: 0.95rem; }
    .aion-pick-meta { font-size: 0.82rem; gap: 6px; }
    .aion-pick-meta .meta-sep { display: none; }
    .aion-pick-bullets { font-size: 0.88rem; padding-left: 18px; }

    .aion-comparison thead th { min-width: 110px; padding: 10px 8px; font-size: 0.82rem; }
    .aion-comparison tbody td { padding: 8px 10px; font-size: 0.82rem; }
    .aion-comparison .col-image img { width: 86px; height: 62px; }
    .aion-comparison .col-image .col-name { font-size: 0.84rem; }
    .aion-comparison .col-image .col-meta { font-size: 0.7rem; }

    .aion-math-formula {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 11px 12px;
    }
    .aion-math-note {
        grid-column: 1;
    }
    .aion-math-line {
        font-size: 0.86rem;
    }
    .aion-math-table {
        min-width: 520px;
        font-size: 0.82rem;
    }
    .aion-math-table th,
    .aion-math-table td {
        padding: 8px 10px;
    }

    .aion-headline { grid-template-columns: 70px 1fr; gap: 10px; }
    .aion-headline-thumb { width: 70px; height: 56px; }
    .aion-headline-title { font-size: 0.9rem; }

    /* Weather */
    .aion-weather-now {
        grid-template-columns: auto 1fr;
        padding: 14px 16px;
        gap: 12px 14px;
    }
    .aion-weather-icon { font-size: 2.6rem; }
    .aion-weather-main .temp { font-size: 1.9rem; }
    .aion-weather-main .desc { font-size: 0.85rem; }
    .aion-weather-stats {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, auto);
        justify-content: space-between;
        gap: 4px 10px;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,0.06);
    }
    .aion-weather-stats > span:nth-child(even) { text-align: left; }

    .aion-weather-days {
        grid-template-columns: repeat(7, minmax(54px, 1fr));
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 4px;
    }
    .aion-weather-day { padding: 10px 4px; }
    .aion-weather-day .ic { font-size: 1.4rem; margin: 4px 0; }
    .aion-weather-day .tmax { font-size: 0.88rem; }
    .aion-weather-day .tmin { font-size: 0.76rem; }

    .aion-recipe-meta { gap: 10px; font-size: 0.82rem; }
    .aion-ingredients ul { grid-template-columns: 1fr; gap: 0; }
}

/* Small phones — stack pick image above body for breathing room */
@media (max-width: 420px) {
    .aion-pick-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .aion-pick-row:not(.no-image) .aion-pick-image {
        width: 100%;
        height: 150px;
    }
    .aion-pick-image .placeholder-icon { font-size: 2.6rem; }
    .aion-pick-title { font-size: 0.94rem; }

    /* Weather: stats below in 2 columns instead of 4 */
    .aion-weather-stats {
        grid-template-columns: auto 1fr auto 1fr;
        gap: 4px 8px;
    }
    .aion-weather-icon { font-size: 2.3rem; }
    .aion-weather-main .temp { font-size: 1.7rem; }

    .aion-weather-days {
        grid-template-columns: repeat(7, 56px);
    }

    /* Comparison: visual hint that table scrolls */
    .aion-comparison {
        background-image: linear-gradient(to right, transparent, rgba(var(--aion-accent-rgb), 0.08));
        background-position: right center;
        background-repeat: no-repeat;
        background-size: 24px 100%;
    }
}

/* ═════════════════════════════════════════════════════════════════════════
   LIGHT THEME — Weather
   ═════════════════════════════════════════════════════════════════════════ */
html.aion-chat-page.theme-light .aion-weather-now {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(96, 165, 250, 0.04));
    border-color: rgba(59, 130, 246, 0.22);
}
html.aion-chat-page.theme-light .aion-weather-main .city { color: #475569; }
html.aion-chat-page.theme-light .aion-weather-main .temp { color: #0f172a; }
html.aion-chat-page.theme-light .aion-weather-main .desc { color: #334155; }
html.aion-chat-page.theme-light .aion-weather-stats { color: #334155; }
html.aion-chat-page.theme-light .aion-weather-stats .label { color: #64748b; }
html.aion-chat-page.theme-light .aion-weather-stats > span:nth-child(even) { color: #0f172a; }
html.aion-chat-page.theme-light .aion-weather-day {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.08);
}
html.aion-chat-page.theme-light .aion-weather-day .d { color: #64748b; }
html.aion-chat-page.theme-light .aion-weather-day .tmax { color: #0f172a; }
html.aion-chat-page.theme-light .aion-weather-day .tmin { color: #64748b; }
@media (max-width: 600px) {
    html.aion-chat-page.theme-light .aion-weather-stats {
        border-top-color: rgba(15, 23, 42, 0.08);
    }
}
