/* ==========================================================================
   Nordic-TV.de — Design System
   Premium, modern, Scandinavian/German quality style
   ========================================================================== */

:root {
  --color-bg: #FFFFFF;
  --color-yellow: #F4B400;
  --color-yellow-dark: #D89E00;
  --color-heading: #111827;
  --color-text: #1F2937;
  --color-muted: #6B7280;
  --color-card: #FFF8E1;
  --color-border: #E5E7EB;
  --color-success: #16A34A;

  --container: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 48px rgba(17, 24, 39, 0.12);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space: clamp(3.5rem, 8vw, 6.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-yellow-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-heading); }
ul, ol { padding-left: 1.25rem; }

h1, h2, h3, h4 { color: var(--color-heading); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin-bottom: 1rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: var(--space) 0; }
.section--tint { background: linear-gradient(180deg, #FFFDF5 0%, #FFFFFF 100%); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--color-muted); font-size: 1.125rem; margin-top: .75rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--color-yellow-dark);
  background: var(--color-card); padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-weight: 700; font-size: 1rem; padding: .9rem 1.6rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
}
.btn--primary { background: var(--color-yellow); color: var(--color-heading); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-yellow-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: #fff; color: var(--color-heading); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-yellow); color: var(--color-heading); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--color-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--color-heading); letter-spacing: -0.02em; }
.brand:hover { color: var(--color-heading); }
.brand-mark { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; padding: 0; }
.nav-links a { color: var(--color-text); font-weight: 600; font-size: .98rem; padding: .55rem .8rem; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-heading); background: var(--color-card); }
.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--color-border); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--color-border); padding: 1rem; gap: .25rem;
    box-shadow: var(--shadow-md); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem 1rem; }
  .nav-cta { margin: .5rem 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) 0 var(--space); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(1000px 500px at 80% -10%, rgba(244,180,0,.18), transparent 60%),
              radial-gradient(700px 400px at -10% 20%, rgba(244,180,0,.10), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero-lead { font-size: 1.2rem; color: var(--color-muted); margin-bottom: 2rem; max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.75rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--color-muted); font-size: .95rem; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust svg { width: 18px; height: 18px; color: var(--color-success); }
.hero-visual img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card--tint { background: var(--color-card); border-color: #F2E4B8; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--color-muted); margin-bottom: 0; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; background: var(--color-card);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; color: var(--color-yellow-dark);
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Feature list ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .85rem; color: var(--color-text); }
.checklist svg { width: 22px; height: 22px; color: var(--color-success); flex-shrink: 0; margin-top: 2px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-num { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; color: var(--color-yellow-dark); letter-spacing: -0.03em; }
.stat-label { color: var(--color-muted); font-weight: 600; font-size: .95rem; }
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.price-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); position: relative; }
.price-card--featured { border: 2px solid var(--color-yellow); box-shadow: var(--shadow-md); }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--color-yellow); color: var(--color-heading); font-weight: 700; font-size: .8rem; padding: .35rem 1rem; border-radius: 999px; }
.price-name { font-weight: 700; font-size: 1.15rem; color: var(--color-heading); }
.price-value { font-size: 2.75rem; font-weight: 800; color: var(--color-heading); letter-spacing: -0.03em; margin: .5rem 0; }
.price-value small { font-size: 1rem; font-weight: 600; color: var(--color-muted); }
.price-note { color: var(--color-muted); font-size: .95rem; margin-bottom: 1.25rem; }
.price-card .btn { width: 100%; margin-top: 1.25rem; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--color-border); }
thead th { background: var(--color-card); color: var(--color-heading); font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }
td svg { width: 20px; height: 20px; color: var(--color-success); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem; align-items: start; }
.step-num {
  counter-increment: step; width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-yellow); color: var(--color-heading); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--color-muted); margin-bottom: 0; }

/* ---------- Tabs (install guides) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.tab-btn {
  background: #fff; border: 1px solid var(--color-border); border-radius: 999px; padding: .6rem 1.1rem;
  font-weight: 600; font-size: .95rem; color: var(--color-text); cursor: pointer; transition: all .2s ease;
}
.tab-btn:hover { border-color: var(--color-yellow); }
.tab-btn[aria-selected="true"] { background: var(--color-yellow); border-color: var(--color-yellow); color: var(--color-heading); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: .85rem;
  background: #fff; overflow: hidden;
}
.faq details[open] { border-color: var(--color-yellow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.35rem; font-weight: 700; color: var(--color-heading);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--color-yellow-dark); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 1.35rem 1.25rem; color: var(--color-muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #111827 0%, #1F2937 100%); border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4rem); text-align: center; color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D1D5DB; max-width: 540px; margin: 1rem auto 2rem; font-size: 1.1rem; }

/* ---------- Devices ---------- */
.devices { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
@media (max-width: 760px) { .devices { grid-template-columns: repeat(3, 1fr); } }
.device { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 1.25rem .75rem; text-align: center; transition: all .2s ease; }
.device:hover { border-color: var(--color-yellow); transform: translateY(-3px); }
.device svg { width: 38px; height: 38px; margin: 0 auto .6rem; color: var(--color-heading); }
.device span { font-weight: 600; font-size: .9rem; color: var(--color-text); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .9rem; color: var(--color-muted); padding: 1.25rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: .5rem; color: var(--color-border); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--color-muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--color-yellow-dark); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 920px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-yellow-dark); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.post-card h3 a { color: var(--color-heading); }
.post-card h3 a:hover { color: var(--color-yellow-dark); }
.post-card p { color: var(--color-muted); font-size: .96rem; flex: 1; }
.post-meta { color: var(--color-muted); font-size: .85rem; margin-top: 1rem; display: flex; gap: .75rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 3.5rem; flex-wrap: wrap; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 1rem; border: 1px solid var(--color-border); border-radius: 10px; font-weight: 700; color: var(--color-heading); background: #fff; transition: all .2s ease; }
.page-link:hover { border-color: var(--color-yellow); color: var(--color-heading); transform: translateY(-2px); }
.page-link.is-current { background: var(--color-yellow); border-color: var(--color-yellow); color: var(--color-heading); }
.page-link.is-disabled { opacity: .4; pointer-events: none; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article-hero img { border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 1.5rem 0; }
.article-meta { color: var(--color-muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .5rem; }
.article-body { font-size: 1.1rem; }
.article-body h2 { margin: 2.5rem 0 1rem; padding-top: .5rem; }
.article-body h3 { margin: 1.75rem 0 .75rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol { margin-bottom: 1.2rem; }
.article-body li { margin-bottom: .5rem; }
.article-body img { border-radius: var(--radius-sm); margin: 1.5rem 0; box-shadow: var(--shadow-sm); }
.toc { background: var(--color-card); border: 1px solid #F2E4B8; border-radius: var(--radius); padding: 1.5rem 1.75rem; margin: 2rem 0; }
.toc strong { display: block; color: var(--color-heading); margin-bottom: .75rem; font-size: 1.05rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .4rem; }
.toc a { color: var(--color-text); font-weight: 600; }
.callout { background: var(--color-card); border-left: 4px solid var(--color-yellow); border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; margin: 1.75rem 0; }
.callout p:last-child { margin-bottom: 0; }
.inline-cta { background: linear-gradient(135deg, #FFFDF5, #FFF8E1); border: 1px solid #F2E4B8; border-radius: var(--radius); padding: 1.75rem; text-align: center; margin: 2.5rem 0; }
.inline-cta h3 { margin-bottom: .5rem; }
.inline-cta p { color: var(--color-muted); margin-bottom: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0F1623; color: #9CA3AF; padding: var(--space) 0 2rem; margin-top: var(--space); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: #fff; margin-bottom: 1rem; }
.site-footer p { color: #9CA3AF; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; letter-spacing: .02em; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: #9CA3AF; font-size: .95rem; }
.footer-col a:hover { color: var(--color-yellow); }
.footer-bottom { border-top: 1px solid #1F2937; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.footer-bottom a { color: #9CA3AF; }
.footer-bottom a:hover { color: var(--color-yellow); }

/* ---------- Utilities ---------- */
.text-center { text-center: center; text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.disclaimer { font-size: .85rem; color: var(--color-muted); background: #F9FAFB; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
