:root {
    --bg: #fbfbfb;
    --surface: #ffffff;
    --ink: #1d1f21;
    --muted: #6b7280;
    --line: #e3e1dc;
    --accent: #1d1f21;
    --error: #a12c2c;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 6px;
}
.brand-text { font-weight: 600; }
.brand-text em { color: var(--muted); font-weight: 400; font-style: normal; }

.page { max-width: 820px; margin: 0 auto; padding: 28px 20px 60px; }

.product {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 22px;
}
.product-media { flex: 0 0 240px; }
.product-media img {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 10px;
    background: #faf9f7;
}
.product-body { flex: 1 1 320px; min-width: 260px; }
.product-body h1 { margin: 4px 0 12px; font-size: 1.7rem; line-height: 1.25; }

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.lead { color: #35383b; margin: 0; }

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 22px;
}
.panel h1 { margin-top: 0; font-size: 1.5rem; }
.panel h2 { margin: 0 0 14px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.facts { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 0; margin: 0; }
.facts dt, .facts dd { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }

/* Der Wrapper scrollt, nicht die Seite. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ai-table { width: 100%; border-collapse: collapse; }
.ai-table th, .ai-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ai-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.ai-table .ai-value { overflow-wrap: anywhere; }
.panel-debug { background: var(--bg); }

.panel-error h1 { color: var(--error); }

.muted { color: var(--muted); font-weight: 400; }

.links { list-style: none; margin: 0; padding: 0; }
.links li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.links li:last-child { border-bottom: 0; }
.links a { color: var(--accent); text-decoration: none; }
.links a:hover { text-decoration: underline; }

.button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.site-footer {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px 40px;
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 560px) {
    .facts { grid-template-columns: 1fr; }
    .facts dd { padding-top: 0; border-top: 0; }
    .facts dt { padding-bottom: 2px; }

    /* AI-Tabelle wird zu gestapelten Blöcken: Kopfzeile aus, Label je Zelle. */
    .ai-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
    .ai-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .ai-table tr:last-child { border-bottom: 0; }
    /* minmax(0, 1fr) statt 1fr: sonst erzwingt langer Inhalt die Spaltenbreite. */
    .ai-table td { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 2px 0; border-bottom: 0; overflow-wrap: anywhere; }
    .ai-table td::before {
        content: attr(data-label);
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--muted);
        line-height: 1.9;
    }
}
