/* dealfenster Design 2 – ersetzt auf dem Frontend das newsup-CSS (siehe inc/v2.php). */
:root {
  --navy: #1a1a40;
  --blue: #1151d3;
  --blue-dark: #0d41ad;
  --red: #e5322d;
  --red-soft: #fdecea;
  --green: #12805c;
  --ink: #1a1a2e;
  --text: #3d4152;
  --muted: #6b6f80;
  --line: #e7e8ee;
  --bg: #f4f5f8;
  --card: #ffffff;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.df2 { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.df2 a { color: inherit; text-decoration: none; }
.df2 img { max-width: 100%; height: auto; }
.df2 h1, .df2 h2, .df2 h3 { font-family: Montserrat, Inter, sans-serif; color: var(--ink); }
.df-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.df-sr, .df-skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.df-skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.df2 :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Header ---------- */
.df-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.admin-bar .df-header { top: 32px; }
.df-head { display: flex; align-items: center; gap: 24px; height: 68px; }
.df-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.df-brand .df-logo { width: 40px; height: 40px; border-radius: 9px; }
.df-brand b { font: 800 22px/1 Montserrat, sans-serif; color: var(--navy); letter-spacing: -.5px; }
.df-search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; height: 42px; color: var(--muted); margin: 0; }
.df-search:focus-within { border-color: var(--blue); background: #fff; }
.df-search svg { flex-shrink: 0; }
.df-search input { border: 0; background: transparent; font: inherit; width: 100%; outline: none; color: var(--ink); padding: 0; height: 100%; }
.df-promise { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.df-promise strong { color: var(--red); }
.df-cats { border-top: 1px solid var(--line); }
.df-cats .df-wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.df-cats .df-wrap::-webkit-scrollbar { display: none; }
.df-cats li { list-style: none; display: contents; }
.df-cats a { display: block; padding: 11px 14px; font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.df-cats a.on, .df-cats .current-menu-item > a { color: var(--ink); border-bottom-color: var(--red); }
.df-cats a:hover { color: var(--ink); }

/* ---------- Layout ---------- */
.df-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-top: 24px; padding-bottom: 48px; align-items: start; }
.df-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.df-toolbar h1 { font-weight: 800; font-size: 22px; line-height: 1.2; margin: 0; letter-spacing: -.3px; }
.df-toolbar h1 span { color: var(--muted); font: 500 14px Inter, sans-serif; letter-spacing: 0; margin-left: 6px; }
.df-tabs { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.df-tabs a { font: 600 13px Inter, sans-serif; color: var(--muted); padding: 7px 14px; border-radius: 7px; white-space: nowrap; }
.df-tabs a.on { background: var(--navy); color: #fff; }
.df-intro { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; color: var(--text); font-size: 14px; }
.df-intro p { margin: 0; }
.df-note { color: var(--muted); font-size: 13px; margin: -4px 0 12px; }

/* ---------- Deal-Karte ---------- */
.df-deal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 216px; gap: 20px; padding: 16px; margin-bottom: 12px;
  transition: box-shadow .15s, transform .15s; }
.df-deal:hover { box-shadow: 0 6px 24px rgba(26, 26, 64, .08); transform: translateY(-1px); }
.df-pic { position: relative; background: #fff; border-radius: 10px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.df-pic img { max-width: 88%; max-height: 88%; object-fit: contain; }
.df-off { position: absolute; top: 0; left: 0; background: var(--red); color: #fff; font: 800 15px/1 Montserrat, sans-serif; padding: 7px 9px; border-radius: 8px; }
.df-body { min-width: 0; display: flex; flex-direction: column; }
.df-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.df-meta a:hover { color: var(--ink); }
.df-shop { font-weight: 600; color: var(--ink); }
.df-dot { opacity: .5; }
.df-flag { font-size: 11.5px; font-weight: 700; color: #fff; background: #6b6f80; border-radius: 6px; padding: 1px 8px; }
.df-flag-old { background: #eceef3; color: var(--muted); }
.df-deal h2 { font-weight: 700; font-size: 18px; line-height: 1.3; margin: 6px 0; letter-spacing: -.2px; }
.df-deal h2 a:hover { color: var(--blue); }
.df-teaser { color: var(--text); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.df-facts { margin-top: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.df-facts b { color: var(--ink); }
.df-stars { color: #f5a623; letter-spacing: 1px; }
.df-tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #eef3ff; color: var(--blue); }
.df-tag.hot { background: var(--red-soft); color: var(--red); }
.df-tag.fav { background: #fff4dc; color: #a86b00; }
.df-buy { display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid var(--line); padding-left: 20px; gap: 6px; }
.df-price { font: 800 28px/1 Montserrat, sans-serif; color: var(--red); letter-spacing: -.5px; }
.df-was { font-size: 13px; color: var(--muted); margin-top: 4px; }
.df-was s { color: var(--muted); }
.df-save { color: var(--green); font-weight: 600; margin-left: 4px; }
.df-spark svg { display: block; width: 100%; height: 34px; }
.df-spark small { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }
.df2 .df-cta { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--blue); color: #fff; font-weight: 700;
  font-size: 14px; border-radius: 10px; min-height: 42px; padding: 0 12px; text-align: center; white-space: nowrap; transition: background .15s; }
.df2 .df-cta:hover { background: var(--blue-dark); color: #fff; }
.df-ad { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.4; margin: 0; }
.df-buy .df-ad { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.df-buy .df-ad > span:first-child { margin-right: 0; }
.df-ad > span:first-child { border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-right: 5px; }
.df-expired, .df-old { background: #fbfbfc; }
.df-expired .df-pic img, .df-expired .df-price { opacity: .55; }
.df-expired .df-off { background: #9aa0ae; }
.df-expired .df-price, .df-old .df-price { color: var(--muted); }
.df-expired .df-cta, .df-old .df-cta { background: #fff; color: var(--blue); border: 1px solid var(--line); }
.df-expired .df-cta:hover, .df-old .df-cta:hover { background: #f4f6fd; color: var(--blue); }

/* Pagination */
.df2 .pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 22px 0 6px; }
.df2 .pagination .page-numbers { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--text); }
.df2 .pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.df2 .pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.df2 .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.df-empty { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.df-empty .df-cta { display: inline-flex; margin-top: 8px; }

/* ---------- Seitenleiste ---------- */
.df-aside { position: sticky; top: 130px; }
.df-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.df-aside h3 { font-weight: 800; font-size: 15px; line-height: 1.2; margin: 0 0 12px; }
.df-top { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.df-top li { display: grid; grid-template-columns: 22px 48px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); counter-increment: n; }
.df-top li:first-child { border-top: 0; padding-top: 0; }
.df-top li::before { content: counter(n); font: 800 15px Montserrat, sans-serif; color: var(--muted); }
.df-top img { width: 48px; height: 48px; object-fit: contain; }
.df-top a { font-size: 13px; font-weight: 600; line-height: 1.3; }
.df-top a:hover { color: var(--blue); }
.df-top small { display: block; color: var(--red); font-weight: 700; font-size: 13px; }
.df-how { background: var(--navy); color: #fff; border: 0; }
.df-aside .df-how h3 { color: #fff; }
.df-how ol { margin: 0; padding-left: 18px; color: #d6d8e8; font-size: 13.5px; }
.df-how li { margin-bottom: 6px; }
.df-catlist { display: flex; flex-wrap: wrap; gap: 6px; }
.df-catlist a { font-size: 13px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.df-catlist a:hover { border-color: var(--blue); color: var(--blue); }
.df-catlist span { color: var(--muted); margin-left: 3px; }

/* ---------- Deal-Seite ---------- */
.df-single { padding-top: 18px; padding-bottom: 48px; }
.df-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.df-crumbs a:hover { color: var(--ink); }
.df-product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px; margin-bottom: 18px; }
.df-pic-lg { aspect-ratio: 1; }
.df-pic-lg .df-off { font-size: 18px; padding: 9px 11px; }
.df-product h1 { font-weight: 800; font-size: 26px; line-height: 1.25; margin: 8px 0 10px; letter-spacing: -.4px; }
.df-product .df-facts { margin: 0 0 14px; }
.df-alert { background: #f1f2f6; border-radius: 10px; padding: 10px 14px; color: var(--text); font-size: 14px; margin: 0 0 14px; }
.df-alert-old { background: #fff8e1; }
.df-pricebox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.df-pricebox .df-price { font-size: 34px; }
.df-ref { font-size: 12px; color: var(--muted); margin-top: 6px; max-width: 280px; }
.df-chart b { font-size: 12px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 4px; }
.df-chart .df-spark svg { height: 70px; }
.df-cta-lg { min-height: 50px !important; font-size: 16px !important; max-width: 420px; }
.df-product .df-ad { text-align: left; margin-top: 8px; max-width: 520px; }
.df-single-cols { display: grid; gap: 16px; }
.df-prose { color: var(--text); font-size: 16px; line-height: 1.7; }
.df-prose > *:first-child { margin-top: 0; }
.df-prose h1 { font-size: 26px; margin: 0 0 14px; }
.df-prose h2 { font-size: 21px; margin: 26px 0 10px; }
.df-prose h3 { font-size: 18px; margin: 22px 0 8px; }
.df-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.df-prose ul, .df-prose ol { padding-left: 22px; }
.df-prose img { border-radius: 10px; }
.df-prose figure { margin: 16px 0; }
.df-prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.df-prose th, .df-prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.df-edit { font-size: 13px; }
.df2 .wpulike { display: none; } /* falls WP ULike den Button doch einfügt */
.df-comments textarea { min-height: 110px; height: 110px; }
.df-more { margin-top: 26px; }
.df-more h2 { font-size: 20px; margin: 0 0 12px; }
.df-page { padding-top: 24px; padding-bottom: 48px; max-width: 860px; }
.df-comments { font-size: 14px; color: var(--text); }
.df-comments h4, .df-comments h3 { font-size: 17px; }
.df-comments ol, .df-comments ul { list-style: none; padding-left: 0; }
.df-comments textarea, .df-comments input[type=text], .df-comments input[type=email], .df-comments input[type=url] {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; }
.df-comments input[type=submit], .df-comments button { background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.df-comments .avatar { display: none; }

/* ---------- Footer ---------- */
.df-footer { background: #fff; border-top: 1px solid var(--line); padding: 26px 0 30px; font-size: 13px; color: var(--muted); }
.df-footer .df-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.df-foot-brand { display: flex; flex-direction: column; gap: 4px; }
.df-foot-brand b { color: var(--ink); font-family: Montserrat, sans-serif; }
.df-foot-brand a, .df-foot-legal a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.df-foot-legal .dealfenster-affiliate-notice { margin-bottom: 8px; }
.df-foot-legal .dealfenster-legal-links { line-height: 1.9; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .df-layout { grid-template-columns: 1fr; }
  .df-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .df-aside .df-box { margin: 0; }
  .df-promise { display: none; }
  .df-product { grid-template-columns: 1fr; }
  .df-pic-lg { max-width: 360px; width: 100%; margin: 0 auto; }
  .df-footer .df-wrap { grid-template-columns: 1fr; }
}
/* ---------- Mobil ---------- */
@media (max-width: 680px) {
  .df-wrap { padding: 0 16px; }
  .df-head { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  .df-brand b { font-size: 20px; }
  .df-search { order: 3; flex-basis: 100%; height: 40px; max-width: none; }
  .df-header { position: static; }
  .df-layout { padding-top: 16px; }
  .df-toolbar h1 { font-size: 19px; }
  .df-toolbar h1 span { display: block; margin: 2px 0 0; }
  .df-tabs { width: 100%; }
  .df-tabs a { flex: 1; text-align: center; padding: 7px 6px; }
  .df-deal { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .df-deal h2 { font-size: 15.5px; }
  .df-teaser { font-size: 13.5px; -webkit-line-clamp: 3; }
  .df-off { font-size: 12.5px; padding: 5px 7px; }
  .df-deal .df-facts { display: none; }
  .df-buy { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 10px;
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; }
  .df-price { font-size: 24px; }
  .df-buy .df-spark { grid-column: 2; }
  .df-buy .df-cta, .df-buy .df-ad { grid-column: 1 / -1; }
  .df-aside { grid-template-columns: 1fr; }
  .df-product { padding: 14px; gap: 16px; }
  .df-product h1 { font-size: 21px; }
  .df-pricebox { grid-template-columns: 1fr; gap: 12px; }
  .df-pricebox .df-price { font-size: 30px; }
  .df-cta-lg { max-width: none; }
  .df-prose { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .df-deal, .df-cta { transition: none; }
  .df-deal:hover { transform: none; }
}
