/* dealskoenig.de – Neubau. Keine externen Schriften (Datenschutz + Tempo). */
:root {
  --bg: #f5f5f8; --surface: #fff; --surface2: #efeff4; --line: #e3e3eb;
  --text: #16161f; --muted: #6a6a7e; --accent: #ff5a1f; --accent-ink: #c93d08; --accent-soft: #fff1ea;
  --gold: #f2a900; --green: #138a42; --tg: #229ed9; --radius: 14px;
  --shadow: 0 1px 2px rgba(20,20,40,.05), 0 4px 14px rgba(20,20,40,.06);
  --shadow-hi: 0 2px 4px rgba(20,20,40,.06), 0 12px 28px rgba(20,20,40,.12);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c12; --surface: #15151e; --surface2: #1e1e2a; --line: #2a2a39;
    --text: #f1f1f6; --muted: #9d9db3; --accent-ink: #ff8352; --accent-soft: #2b170f;
    --green: #3ccf7a; --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-hi: 0 10px 30px rgba(0,0,0,.45);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Kopfbereich */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.brand b { color: var(--accent); }
.search { flex: 1; position: relative; max-width: 560px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: var(--muted); }
.search input {
  width: 100%; height: 42px; padding: 0 14px 0 42px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface2); border: 1px solid transparent; border-radius: 999px; outline: none;
}
.search input:focus { border-color: var(--accent); background: var(--surface); }
.top-links { display: flex; gap: 8px; margin-left: auto; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.hscroll { position: relative; max-width: 1240px; margin: 0 auto; }
.hs-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow-hi);
  font: 700 22px/1 inherit; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px;
}
.hs-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.hs-btn[hidden] { display: none; }
.hs-prev { left: 6px; }
.hs-next { right: 6px; }
.rail + .hs-btn, .hscroll .rail ~ .hs-btn { top: calc(50% - 7px); }
.chips--wrap { flex-wrap: wrap; padding: 0; overflow: visible; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.chip small { color: var(--muted); font-size: 12px; font-weight: 600; }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip.is-active { background: var(--text); color: var(--surface); border-color: var(--text); }
.chip.is-active small { color: inherit; opacity: .7; }
.chip--hot { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); font-weight: 600; }
.chip--small { font-size: 13px; padding: 4px 10px; }

/* ---------- Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px;
  border-radius: 999px; font: 600 14px/1.2 inherit; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn .ico { width: 18px; height: 18px; fill: currentColor; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--tg { background: var(--tg); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--soft { background: var(--surface2); color: var(--text); }
.btn--xl { width: 100%; padding: 16px 22px; font-size: 17px; border-radius: 12px; box-shadow: 0 6px 18px rgba(255,90,31,.3); }
.linkbtn { background: none; border: 0; color: var(--accent-ink); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- Kopf der Seite */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 8px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.hero .lead { color: var(--muted); margin: 8px 0 0; max-width: 680px; font-size: 17px; }
.hero .lead b { color: var(--text); }
.hero--small { padding-top: 12px; }
.stats { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; min-width: 96px; }
.stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stats span { font-size: 12px; color: var(--muted); }

.crumbs { font-size: 13px; color: var(--muted); padding-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-current] { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

.block { padding-top: 28px; }
.block > h2, .block-head h2 { font-size: 22px; font-weight: 800; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head a { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ---------- Filter */
.filters { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-bottom: 6px; }
.fgroup { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fgroup > span, .fgroup label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 2px; }
.fgroup button {
  font: 500 13px/1 inherit; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer;
}
.fgroup button:hover { border-color: var(--accent); }
.fgroup button.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fgroup--sort { margin-left: auto; }
.fgroup select { font: 500 14px inherit; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.resultline { font-size: 14px; color: var(--muted); margin: 8px 0 14px; }

/* ---------- Karten */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.card.is-more, .card.is-hidden { display: none; }
.card-main { color: var(--text); display: flex; flex-direction: column; flex: 1; }
.card-main:hover { text-decoration: none; }
.card-main:hover h3 { color: var(--accent-ink); }
.card-img { position: relative; aspect-ratio: 1; background: #fff; padding: 14px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.noimg { display: grid; place-items: center; height: 100%; font-size: 48px; }
.disc {
  position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px;
  padding: 4px 9px; border-radius: 8px; letter-spacing: -.01em;
}
.disc--big { font-size: 20px; padding: 6px 12px; top: 14px; left: 14px; border-radius: 10px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px 0; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.tag--best { background: #fff4d1; color: #8a5a00; }
.tag--coupon { background: #e3f6ea; color: #0d6b33; }
.tag--old { background: var(--surface2); color: var(--muted); }
@media (prefers-color-scheme: dark) {
  .tag--best { background: #3a2c05; color: #ffd257; }
  .tag--coupon { background: #0f2e1c; color: #6fe3a0; }
}
.card h3 {
  font-size: 14px; font-weight: 600; line-height: 1.35; padding: 8px 12px 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { padding: 8px 12px 12px; margin-top: auto; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.price s, .price .ref { color: var(--muted); font-size: 13px; }
.price--big strong { font-size: 38px; color: var(--accent-ink); }
.price--big s, .price--big .ref { font-size: 17px; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.card-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-amz {
  display: flex; justify-content: center; gap: 4px; margin-top: 10px; padding: 8px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px;
}
.card-amz:hover { background: var(--accent); color: #fff; text-decoration: none; }

.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.card--compact { flex: none; width: 196px; scroll-snap-align: start; }
.card--compact .card-amz { display: none; }

.more { text-align: center; margin-top: 22px; }
.more .btn { padding: 12px 26px; }
.empty { text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px 18px; }
.empty p { margin: 0 0 14px; color: var(--muted); }

/* ---------- Werbeflächen für eigene Kanäle */
.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.promo-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-radius: var(--radius); color: #fff; }
.promo-item h2 { font-size: 19px; font-weight: 800; }
.promo-item p { margin: 4px 0 0; opacity: .92; font-size: 14px; }
.promo-item--tg { background: linear-gradient(135deg, #1d8fcb, #2aabee); }
.promo-item--alarm { background: linear-gradient(135deg, #ff5a1f, #ff8a3d); }
.promo-item .btn { background: #fff; color: #16161f; flex: none; }
.promo-item--alarm .btn { color: var(--accent-ink); }
.promo-item--tg .btn { color: #1678ad; }

/* ---------- Textbereiche */
.seo { max-width: 860px; }
.seo h2 { font-size: 20px; margin: 26px 0 8px; }
.seo p { color: var(--muted); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 14px; color: var(--muted); }
.prose { max-width: 780px; padding-top: 24px; padding-bottom: 20px; }
.prose h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 12px; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose h3 { font-size: 17px; margin: 20px 0 6px; }
.prose .lead { font-size: 18px; color: var(--muted); }
.legal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px clamp(18px, 4vw, 40px); margin-top: 24px; }
.legal address { font-style: normal; }
.legal .page-subtitle { color: var(--muted); margin-top: 0; }
.legal .hint { background: var(--surface2); padding: 12px 14px; border-radius: 10px; margin-top: 24px; }
.legal ul { padding-left: 22px; }
.legal code { font-size: 14px; }

/* ---------- Deal-Seite */
.deal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; padding-top: 18px; align-items: start; }
.deal-img { position: sticky; top: 140px; background: #fff; border-radius: 20px; border: 1px solid var(--line); padding: 28px; aspect-ratio: 1; }
.deal-img img { width: 100%; height: 100%; object-fit: contain; }
.deal-info h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin: 12px 0 4px; }
.deal-info .tags { padding: 8px 0 0; }
.deal-info .price { margin: 16px 0 4px; }
.stand { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.deal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.deal-actions .btn { flex: 1; }
.notice { background: #fff4d1; color: #6b4600; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .notice { background: #3a2c05; color: #ffd257; } }
.hints { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; }
.hints h2 { font-size: 15px; margin-bottom: 8px; }
.hints ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 2px dashed var(--green); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.code span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.code code { font: 800 18px/1 ui-monospace, Consolas, monospace; color: var(--green); flex: 1; }
.aff { font-size: 12px; color: var(--muted); margin-top: 16px; }
.bullets { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0 0; padding: 18px 18px 18px 36px; max-width: 900px; }
.bullets li { margin: 6px 0; }

/* ---------- Fuß */
.foot { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0 24px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.foot-grid > div:last-child ul { columns: 1; }
.foot li { margin: 0 0 6px; }
.foot li a { color: var(--text); }
.foot p { color: var(--muted); margin: 10px 0 0; }
.brand--foot { font-size: 19px; }
.foot-note { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; }
.foot-note p { font-size: 12px; }

/* ---------- Handy */
@media (max-width: 860px) {
  .deal { grid-template-columns: 1fr; gap: 18px; }
  .deal-img { position: relative; top: 0; max-width: 440px; width: 100%; margin: 0 auto; padding: 18px; }
  .promo { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 12px; }
  .top { position: relative; }
  .top-row { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .top-links .btn span { display: none; }
  .top-links .btn { padding: 9px 11px; }
  .chips { padding-top: 8px; }
  .hero { padding-top: 18px; }
  .stats { width: 100%; }
  .stats li { flex: 1; min-width: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card h3 { font-size: 13px; padding: 6px 10px 0; }
  .card-foot { padding: 6px 10px 10px; }
  .card-img { padding: 8px; }
  .price strong { font-size: 18px; }
  .filters { gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .filters::-webkit-scrollbar { display: none; }
  .fgroup { flex-wrap: nowrap; flex: none; }
  .fgroup--sort { margin-left: 0; }
  .promo-item { flex-direction: column; align-items: flex-start; }
  .card--compact { width: 160px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
