:root {
  --bg: #f6f7f9; --panel: #ffffff; --ink: #14212f; --muted: #5a6b7a;
  --line: #e3e7ec; --brand: #0e5aa7; --brand-ink: #ffffff;
  --ok: #0f8a4e; --warn: #b25a00; --bad: #c02a2a; --chip: #eef3f9;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.45; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.topbar { background: var(--panel); border-bottom: 1px solid var(--line); padding: 16px 0; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(14,90,167,0.15); }
.brand h1 { margin: 0; font-size: 18px; }
.brand .sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.badges { display: flex; gap: 8px; }
.badge { background: var(--chip); color: var(--brand); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-warn { background: #fff2e0; color: var(--warn); }

main { padding: 24px 0 60px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-head p { margin: 4px 0 14px; color: var(--muted); font-size: 13px; }

.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }

.feld { display: flex; flex-direction: column; gap: 6px; }
.feld > span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.feld input, .feld select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 14px; }
.feld small { color: var(--muted); font-size: 12px; }

.stats-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; font-size: 13px; }
.stats-box .row { display: flex; justify-content: space-between; padding: 6px 10px; background: #f8fafc; border-radius: 6px; }
.stats-box .row strong { color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1px solid var(--line); background: white; padding: 6px 12px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.chip-btn.active { background: var(--brand); color: white; border-color: var(--brand); }

.tabs { display: flex; gap: 6px; margin: 10px 0 14px; border-bottom: 1px solid var(--line); }
.tab { border: none; background: transparent; padding: 8px 14px; font-size: 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.aktionen { display: flex; gap: 8px; margin-top: 14px; }
.btn { border: 1px solid var(--line); background: white; padding: 10px 16px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn.primary { background: var(--brand); color: white; border-color: var(--brand); font-weight: 600; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.deals { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
.deal { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.deal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.deal-head h3 { margin: 0; font-size: 15px; }
.deal-head .platz { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.deal-meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0; color: var(--muted); font-size: 13px; }
.deal-meta strong { color: var(--ink); }
.pill { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--brand); }
.pill.flug { background: #e8f0fc; }
.pill.hotel { background: #f4ecdb; color: var(--warn); }
.pill.anbieter { background: #f0edf9; color: #5a3fb0; }

.score-bar { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.score-bar .bar { height: 8px; background: var(--chip); border-radius: 999px; flex: 1; overflow: hidden; }
.score-bar .bar > span { display: block; height: 100%; background: var(--brand); }
.score-bar .value { font-weight: 700; min-width: 36px; text-align: right; }
.faktoren { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 8px; }
.faktoren .f { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.faktoren .f .name { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .05em; }
.faktoren .f .p { font-weight: 700; font-size: 14px; }
.faktoren .f .g { color: var(--muted); }

.linkbox { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; background: #fafbfd; font-size: 12px; }
.linkbox .lbl { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .05em; }
.linkbox .u { word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin-top: 4px; }
.copy-btn { display: inline-block; margin-top: 8px; font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); background: white; border-radius: 6px; cursor: pointer; }
.empfehlung { margin-top: 10px; padding: 10px 12px; background: #eef4fb; border-left: 3px solid var(--brand); font-size: 13px; border-radius: 4px; }
.raw { background: #0f1720; color: #d3e0ee; padding: 14px; border-radius: 8px; overflow: auto; font-size: 12px; line-height: 1.5; max-height: 320px; }

footer { border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 12px; }
footer code { background: var(--chip); padding: 1px 6px; border-radius: 4px; }
