/* Aiory 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;
}
/* Clickable comparison header: image + name link straight to the shop */
.aion-comparison .col-image .col-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s ease, opacity 0.12s ease;
}
.aion-comparison .col-image .col-link:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}
.aion-comparison .col-image .col-link:hover .col-name {
    text-decoration: underline;
    text-underline-offset: 2px;
}
/* Media wrapper only exists to carry the og:image fetch hook — no box of its own */
.aion-comparison .col-image .col-image-media { display: contents; }
.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);
}
/* Sticky Label-Spalte: bleibt beim Horizontal-Scrollen stehen.
   Braucht deckenden Hintergrund, sonst scheinen die Zellen durch. */
.aion-comparison thead th:first-child,
.aion-comparison tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #10131f;
}
html.aion-chat-page.theme-light .aion-comparison thead th:first-child,
html.aion-chat-page.theme-light .aion-comparison tbody td:first-child {
    background: #f8fafc;
}
.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-recipe-body { color: #cbd5e1; margin: 4px 0 0; }
html.aion-chat-page.theme-light .aion-recipe-body { color: #334155; }

.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; }
    /* Visueller Hinweis, dass die Tabelle horizontal scrollt
       (vorher erst ab 420px — die Lücke 421–600px hatte keinen) */
    .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%;
    }

    .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);
    }
}

/* ═════════════════════════════════════════════════════════════════════════
   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);
    }
}

/* ============================================================
   PICKS / COMPARISON / FAZIT REDESIGN (2026-07)
   Single consolidated shopping look; applies to every structured
   answer (shopping, coins, knowledge …). Overrides earlier rules.
   ============================================================ */
.aion-picks { gap: 10px; }
.aion-pick {
    position: relative;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
    padding: 13px 15px;
    transition: border-color .16s ease, background .16s ease;
}
.aion-pick:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.045); }
.aion-pick--best { border-color: rgba(16,185,129,0.4); }
.aion-pick--best::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 3px;
    border-radius: 14px 0 0 14px; background: #10b981;
}
.aion-pick-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
    color: #cbd5e1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px; padding: 3px 9px; margin: 0 0 10px;
}
.aion-pick--best .aion-pick-badge { color: #a7f3d0; background: rgba(16,185,129,0.14); border-color: rgba(16,185,129,0.4); }
.aion-pick-row { grid-template-columns: 78px 1fr; gap: 14px; align-items: center; }
.aion-pick-row.no-image { grid-template-columns: 1fr; }
.aion-pick-row.has-side { grid-template-columns: 78px 1fr auto; }
.aion-pick-row.no-image.has-side { grid-template-columns: 1fr auto; }
.aion-pick-row:has(.aion-pick-image.og-failed) { grid-template-columns: 1fr auto; }
.aion-pick-image { width: 78px; height: 78px; border-radius: 11px; }
.aion-pick-image img { padding: 6px; }
.aion-pick-body { gap: 4px; }
.aion-pick-title { font-size: 0.94rem; font-weight: 600; }
.aion-pick-title a { color: #e8eef7; font-weight: 600; border-bottom: none; }
.aion-pick-title a:hover { color: #fff; border-bottom: none; }
.aion-pick-meta { font-size: 0.78rem; color: #94a3b8; gap: 8px; }
.aion-pick-desc { color: #94a3b8; font-size: 0.83rem; margin: 1px 0 0; }
.aion-pick-bullets {
    margin: 6px 0 0; padding: 0; list-style: none;
    display: flex; flex-wrap: wrap; gap: 5px; color: inherit; font-size: inherit;
}
.aion-pick-bullets li {
    margin: 0; font-size: 0.72rem; color: #b9c6d8;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px; padding: 2px 8px;
}
.aion-pick-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: 0 0 auto; white-space: nowrap; }
.aion-pick-price { font-size: 1.12rem; font-weight: 800; color: #6ee7b7; line-height: 1; }
.aion-pick-go {
    font-size: 0.72rem; font-weight: 700; color: #7dd3fc;
    border: 1px solid rgba(56,189,248,0.4); background: rgba(56,189,248,0.1);
    border-radius: 999px; padding: 5px 11px; text-decoration: none;
}
.aion-pick:hover .aion-pick-go { background: rgba(56,189,248,0.22); }

/* Einheitliche Kartenhoehen (18.07.): lange Titel/Beschreibungen werden
   geklammert, Meta 1 Zeile, Bullet-Chips 1 Reihe — sonst sind einzelne
   Karten sichtbar hoeher als der Rest und die Liste wirkt unruhig. */
.aion-pick-title a,
.aion-pick-title > span {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.aion-pick-desc {
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    overflow: hidden;
}
.aion-pick-meta { max-height: 1.5em; overflow: hidden; }
.aion-pick-bullets { max-height: 24px; overflow: hidden; }
/* Kompakte Karten nicht einfallen lassen: gemeinsame Grundhoehe
   (Inhalt zentriert dank align-items:center auf der Row). */
.aion-pick-row { min-height: 96px; }

.aion-comparison tbody tr:hover td { background: rgba(255,255,255,0.03); }
.aion-comparison tbody tr:hover td:first-child { background: rgba(20,26,40,0.96); }

.aion-fazit {
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(6,24,20,0.5), rgba(10,16,28,0.7));
    padding: 14px 16px;
}

@media (max-width: 560px) {
    .aion-pick-row.has-side { grid-template-columns: 64px 1fr; }
    .aion-pick-row.no-image.has-side { grid-template-columns: 1fr; }
    .aion-pick-image { width: 64px; height: 64px; }
    .aion-pick-side {
        grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center;
        width: 100%; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 9px; margin-top: 3px;
    }
}

/* seller + price-level + button (2026-07 shop fix) */
.aion-pick-source { font-size: 0.72rem; color: #64748b; font-weight: 600; text-align: right; }
.aion-pick-price--level {
    font-size: 0.72rem; font-weight: 700; color: #cbd5e1; text-transform: capitalize;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px; padding: 2px 9px; line-height: 1.3;
}
/* comparison header: hide the 🔹 placeholder when there is no product image */
.aion-comparison .col-image .placeholder-icon { display: none; }
@media (max-width: 560px) {
    .aion-pick-side .aion-pick-source { order: 3; text-align: left; }
}

/* badge pills must never stretch (chat CSS forces p{display:flex;width:100%}) */
.aion-structured .aion-pick-badge {
    display: inline-flex !important;
    width: fit-content !important;
    max-width: 100%;
}

/* Picks: Titel weiss, Hover lila wie normale Chat-Links (20260714pickwhite1) */
.aion-picks .aion-pick-title a,
.aion-comparison .aion-pick-title a {
    color: #f1f5f9;
    border-bottom: none;
}
.aion-picks .aion-pick-title a:hover,
.aion-comparison .aion-pick-title a:hover {
    color: #a78bfa;
    border-bottom: none;
}

/* ============================================================
   SHOPPING PICKS — geraeteabhaengiges Layout (2026-07-19)
   Mobile (<600px): kompakte Zeilen (Bild links) = platzsparend.
   Tablet/Desktop (>=600px): Kachel-Grid (Bild oben), mehrere nebeneinander.
   ============================================================ */
@media (min-width: 600px) {
    .aion-structured .aion-picks {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
        align-items: stretch;
    }
    /* Section-Header ("Top-Picks") ueber die GANZE Reihe, sonst belegt er als
       Grid-Item die erste Zelle und nimmt der ersten Karte den Platz weg. */
    .aion-structured .aion-picks > .aion-section-header,
    .aion-structured .aion-picks > .aion-section-sub { grid-column: 1 / -1; margin-bottom: 0; }
    .aion-structured .aion-pick {
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow: hidden;
    }
    /* Best-Akzent als obere Kante statt linker Balken */
    .aion-structured .aion-pick--best::before {
        top: 0; left: 0; right: 0; bottom: auto;
        width: auto; height: 3px; border-radius: 14px 14px 0 0;
    }
    /* Badge als Overlay auf dem Bild (oben links) */
    .aion-structured .aion-pick-badge {
        position: absolute; top: 8px; left: 8px; z-index: 2; margin: 0;
        background: rgba(10,14,22,0.72); backdrop-filter: blur(4px);
    }
    /* Zeile -> vertikale Kachel (Bild oben, Body, Preis/CTA unten) */
    .aion-structured .aion-pick-row,
    .aion-structured .aion-pick-row.has-side,
    .aion-structured .aion-pick-row.no-image,
    .aion-structured .aion-pick-row.no-image.has-side,
    .aion-structured .aion-pick-row:has(.aion-pick-image.og-failed) {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 0;
        align-items: stretch;
        min-height: 0;
    }
    .aion-structured .aion-pick-image {
        width: 100%; height: auto; aspect-ratio: 4 / 3;
        border-radius: 0; min-height: 0;
        background: linear-gradient(155deg, rgba(32,34,48,0.92), rgba(20,24,36,0.86));
    }
    .aion-structured .aion-pick-image img { padding: 12px; object-fit: contain; }
    .aion-structured .aion-pick-image .placeholder-icon { font-size: 2.2rem; opacity: 0.5; }
    .aion-structured .aion-pick-body { padding: 10px 13px 8px; gap: 5px; flex: 1 1 auto; min-width: 0; }
    .aion-structured .aion-pick-title { font-size: 0.9rem; }
    .aion-structured .aion-pick-desc { -webkit-line-clamp: 2; }
    .aion-structured .aion-pick-bullets { max-height: 24px; }
    /* Preis + CTA als Fussleiste, Verkaeufer in die Body-Meta gewandert */
    .aion-structured .aion-pick-side {
        flex-direction: row; align-items: center; justify-content: space-between;
        gap: 8px; padding: 8px 13px 12px; margin-top: auto;
        border-top: 1px solid rgba(255,255,255,0.07);
        white-space: normal; flex: 0 0 auto;
    }
    /* Verkaeufer auf der schmalen Kachel-Fussleiste ausblenden (sonst "G."-Rest);
       Preis + "Zum Shop" reichen, der Shop steht ohnehin hinter dem Button. */
    .aion-structured .aion-pick-side .aion-pick-source { display: none; }
    .aion-structured .aion-pick-price { font-size: 1.05rem; white-space: nowrap; }
    .aion-structured .aion-pick-price--level { font-size: 0.7rem; }
    .aion-structured .aion-pick-go { flex: 0 0 auto; }
}

/* Enges Tablet / kleine Fenster: 2 Spalten stabil halten */
@media (min-width: 600px) and (max-width: 820px) {
    .aion-structured .aion-picks { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ============================================================
   "AIORY ARBEITET"-INDIKATOR (19.07.) — ersetzt die Skelett-Ladekarten,
   die vor dem Eintreffen der Ergebnisse wie leere Fake-Karten wirkten.
   ============================================================ */
.aion-structured-working {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 2px; color: #9fb0c9; font-size: 0.9rem; font-weight: 500;
}
.aion-working-orb {
    width: 15px; height: 15px; border-radius: 50%; flex: 0 0 auto;
    border: 2px solid rgba(56,189,248,0.25); border-top-color: #38bdf8;
    animation: aion-working-spin 0.7s linear infinite;
}
@keyframes aion-working-spin { to { transform: rotate(360deg); } }
.aion-working-dots { display: inline-flex; gap: 3px; align-items: center; margin-left: 1px; }
.aion-working-dots span {
    width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.4;
    animation: aion-working-dot 1.2s ease-in-out infinite;
}
.aion-working-dots span:nth-child(2) { animation-delay: 0.2s; }
.aion-working-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aion-working-dot { 0%,70%,100% { opacity: 0.3; } 35% { opacity: 1; } }

/* =====================================================================
   PREMIUM CARD-STAGE: Skeleton -> Reveal (19.07.2026)
   Karten (Shopping-Picks + Urlaubskacheln) zeigen waehrend des Streamings
   ein stabiles Skeleton mit fester Hoehe. Beim Abschluss werden alle Bilder
   vorgeladen und die fertigen Karten AUF EINMAL sanft eingeblendet.
   ===================================================================== */
.aion-cardstage { position: relative; }
/* Waehrend "loading": echte Karten unsichtbar & aus dem Fluss (Skeleton
   bestimmt die Hoehe -> waehrend des Streamings kein Layout-Sprung). */
.aion-cardstage[data-stage="loading"] > .aion-cardstage-real {
    position: absolute; left: 0; top: 0; width: 100%;
    opacity: 0; pointer-events: none;
}
.aion-cardstage[data-stage="ready"] > .aion-cardstage-skel { display: none; }
.aion-cardstage[data-stage="ready"] > .aion-cardstage-real {
    position: static; opacity: 1;
    animation: aion-stage-in 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes aion-stage-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.aion-skel-head { display: flex; align-items: center; gap: 9px; padding: 2px 2px 12px; color: #9fb0c9; font-size: 0.9rem; }
.aion-skel-orb { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(56,189,248,0.25); border-top-color: #38bdf8; animation: aion-working-spin 0.7s linear infinite; flex: 0 0 auto; }
.aion-skel-grid { display: grid; gap: 12px; }
.aion-skel-card { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); }
.aion-skel-img { width: 100%; border-radius: 10px; min-height: 70px; }
.aion-skel-lines { display: flex; flex-direction: column; gap: 7px; }
.aion-skel-line { height: 10px; border-radius: 5px; }
.aion-skel-line--foot { height: 15px; margin-top: 5px; }
.aion-skel-shimmer {
    background: linear-gradient(100deg, rgba(255,255,255,0.045) 30%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.045) 70%);
    background-size: 480px 100%;
    animation: aion-shimmer 1.25s linear infinite;
}
@keyframes aion-shimmer { 0% { background-position: -240px 0; } 100% { background-position: 480px 0; } }

/* Shopping-Skeleton spiegelt .aion-picks (Zeilen-Layout < 600px, Kacheln ab 600px) */
.aion-skel-grid--pick { grid-template-columns: 1fr; }
.aion-skel-card--pick { flex-direction: row; align-items: center; }
.aion-skel-card--pick .aion-skel-img { width: 120px; height: 100px; flex: 0 0 auto; }
.aion-skel-card--pick .aion-skel-lines { flex: 1; }
@media (min-width: 600px) {
    .aion-skel-grid--pick { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .aion-skel-card--pick { flex-direction: column; align-items: stretch; }
    .aion-skel-card--pick .aion-skel-img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
}
@media (min-width: 600px) and (max-width: 820px) {
    .aion-skel-grid--pick { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .aion-skel-shimmer, .aion-skel-orb { animation: none; }
    .aion-cardstage[data-stage="ready"] > .aion-cardstage-real { animation-duration: 0.01s; }
}

/* Vergleich-Skeleton (19.07.2026): eine breite Platzhalter-Flaeche, kompakter als
   die Produkt-Kacheln - zieht unter den frueh eingeblendeten Picks nach. */
.aion-skel-grid--cmp { grid-template-columns: 1fr; }
.aion-skel-card--cmp { flex-direction: column; padding: 14px; gap: 12px; }
.aion-skel-card--cmp .aion-skel-img { aspect-ratio: auto; height: 140px; width: 100%; }
