/* ── sectie: Globale CSS & JS (#3) ── */
/* Globale CSS: gilt für die gesamte Website (nach public/css/global.css).
   IPTV25 Design System – modern, cinematic, responsive. */

:root {
  --color-primary: #6d5dfc;
  --color-secondary: #22d3ee;
  --color-bg: #ffffff;
  --color-surface: #141828;
  --color-text: #eef0f8;
  --color-muted: #a3a9c2;
  --color-accent: #ffb020;

  --iptv25-ink: #111827;
  --iptv25-ink-soft: #334155;
  --iptv25-line: rgba(163, 169, 194, 0.22);
  --iptv25-line-dark: rgba(238, 240, 248, 0.14);
  --iptv25-shadow: 0 18px 55px rgba(20, 24, 40, 0.14);
  --iptv25-shadow-strong: 0 22px 70px rgba(109, 93, 252, 0.28);
  --iptv25-radius-sm: 14px;
  --iptv25-radius-md: 20px;
  --iptv25-radius-lg: 28px;
  --iptv25-radius-pill: 999px;
  --iptv25-container: 1200px;
  --iptv25-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --iptv25-heading-font: Inter, Sora, Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--iptv25-ink);
  font-family: var(--iptv25-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-primary);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.9);
  outline-offset: 4px;
  border-radius: 10px;
}

[id] {
  scroll-margin-top: 96px;
}

::selection {
  background: rgba(109, 93, 252, 0.32);
  color: var(--iptv25-ink);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.55em;
  color: inherit;
  font-family: var(--iptv25-heading-font);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.125rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.875rem);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin-top: 0;
}

strong,
b {
  font-weight: 800;
}

small {
  font-size: 0.875rem;
}

/* Gemeinsames Layout */
.container,
.iptv25-container {
  width: min(100% - 32px, var(--iptv25-container));
  margin-inline: auto;
}

.section,
.iptv25-section {
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
}

.section-light,
.iptv25-section-light {
  background: var(--color-bg);
  color: var(--iptv25-ink);
}

.section-dark,
.iptv25-section-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(109, 93, 252, 0.36), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(34, 211, 238, 0.18), transparent 32%),
    linear-gradient(135deg, #0d1020 0%, var(--color-surface) 56%, #11162a 100%);
  color: var(--color-text);
}

.section-dark::before,
.iptv25-section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(238, 240, 248, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(238, 240, 248, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 78%);
}

.section-dark > *,
.iptv25-section-dark > * {
  position: relative;
  z-index: 1;
}

.card,
.iptv25-card {
  border: 1px solid var(--iptv25-line);
  border-radius: var(--iptv25-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--iptv25-shadow);
}

.section-dark .card,
.section-dark .iptv25-card,
.iptv25-section-dark .card,
.iptv25-section-dark .iptv25-card {
  border-color: var(--iptv25-line-dark);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.gradient-text,
.iptv25-gradient-text {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow,
.iptv25-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(109, 93, 252, 0.24);
  border-radius: var(--iptv25-radius-pill);
  background: rgba(109, 93, 252, 0.1);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-dark .eyebrow,
.section-dark .iptv25-eyebrow,
.iptv25-section-dark .eyebrow,
.iptv25-section-dark .iptv25-eyebrow {
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.08);
  color: var(--color-secondary);
}

.feature-chip,
.iptv25-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--iptv25-line);
  border-radius: var(--iptv25-radius-pill);
  background: rgba(255, 255, 255, 0.78);
  color: var(--iptv25-ink-soft);
  font-size: 0.925rem;
  font-weight: 700;
}

.section-dark .feature-chip,
.section-dark .iptv25-feature-chip,
.iptv25-section-dark .feature-chip,
.iptv25-section-dark .iptv25-feature-chip {
  border-color: var(--iptv25-line-dark);
  background: rgba(255, 255, 255, 0.075);
  color: var(--color-text);
}

/* Buttons und CTAs */
.btn-primary,
.iptv25-btn-primary,
a.btn-primary,
a.iptv25-btn-primary,
button.btn-primary,
button.iptv25-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.875rem 1.55rem;
  border: 0;
  border-radius: var(--iptv25-radius-pill);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(109, 93, 252, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn-primary:hover,
.iptv25-btn-primary:hover,
a.btn-primary:hover,
a.iptv25-btn-primary:hover,
button.btn-primary:hover,
button.iptv25-btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 18px 44px rgba(109, 93, 252, 0.45);
}

.btn-secondary,
.iptv25-btn-secondary,
a.btn-secondary,
a.iptv25-btn-secondary,
button.btn-secondary,
button.iptv25-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.82rem 1.45rem;
  border: 1px solid rgba(34, 211, 238, 0.55);
  border-radius: var(--iptv25-radius-pill);
  background: rgba(255, 255, 255, 0.02);
  color: var(--iptv25-ink);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.section-dark .btn-secondary,
.section-dark .iptv25-btn-secondary,
.iptv25-section-dark .btn-secondary,
.iptv25-section-dark .iptv25-btn-secondary {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover,
.iptv25-btn-secondary:hover,
a.btn-secondary:hover,
a.iptv25-btn-secondary:hover,
button.btn-secondary:hover,
button.iptv25-btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--color-secondary);
  background: rgba(34, 211, 238, 0.1);
  color: var(--color-primary);
}

.section-dark .btn-secondary:hover,
.section-dark .iptv25-btn-secondary:hover,
.iptv25-section-dark .btn-secondary:hover,
.iptv25-section-dark .iptv25-btn-secondary:hover {
  color: #ffffff;
}

/* SEO- und Textbereiche */
.seo-content,
.iptv25-seo-content {
  max-width: 860px;
  color: var(--iptv25-ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.125rem);
}

.section-dark .seo-content,
.section-dark .iptv25-seo-content,
.iptv25-section-dark .seo-content,
.iptv25-section-dark .iptv25-seo-content {
  color: var(--color-muted);
}

.seo-content a,
.iptv25-seo-content a {
  color: var(--color-primary);
  font-weight: 800;
}

.section-dark .seo-content a,
.section-dark .iptv25-seo-content a,
.iptv25-section-dark .seo-content a,
.iptv25-section-dark .iptv25-seo-content a {
  color: var(--color-secondary);
}

/* Medienbehandlung für IPTV-, Filme- und Streaming-Bilder */
.iptv25-media,
.streaming-media,
.movie-media {
  overflow: hidden;
  border-radius: var(--iptv25-radius-lg);
  box-shadow: var(--iptv25-shadow-strong);
}

.iptv25-media img,
.streaming-media img,
.movie-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Häufige Raster */
.iptv25-grid,
.cards-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
}

@media (min-width: 700px) {
  .iptv25-grid,
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .iptv25-grid--3,
  .cards-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .iptv25-grid--4,
  .cards-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Header/Footer Basis-Unterstützung, ohne vorhandene Struktur zu erzwingen */
header,
.site-header {
  backdrop-filter: saturate(140%) blur(14px);
}

.site-header a,
header nav a,
footer a,
.site-footer a {
  transition: color 160ms ease, opacity 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-header img,
.site-footer img,
header img,
footer img {
  max-height: 56px;
  width: auto;
}

/* FAQ/Accordion Basis */
[data-faq] button,
[data-accordion] button {
  min-height: 44px;
}

[hidden] {
  display: none !important;
}

/* Tabellen und Policy-Seiten */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--iptv25-line);
  text-align: left;
  vertical-align: top;
}

/* Responsive Feinheiten */
@media (max-width: 699px) {
  .container,
  .iptv25-container {
    width: min(100% - 32px, var(--iptv25-container));
  }

  .btn-primary,
  .iptv25-btn-primary,
  .btn-secondary,
  .iptv25-btn-secondary,
  a.btn-primary,
  a.iptv25-btn-primary,
  a.btn-secondary,
  a.iptv25-btn-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ── sectie: Header (#1) ── */
.darktv-header-wrap {
  --lx-accent: #00e3cc;
  --lx-hover: #35f5df;
  --lx-navy: #071d24;
  --lx-teal: #102e38;
  --lx-mint: #e8fffb;
  --lx-soft: #f3f8f8;
  --lx-line: #c4dcda;
  --lx-radius: 18px;
  --lx-space: clamp(18px, 3vw, 38px);
  --lx-copy: #34515b;
  --lx-link: #08695e;
  background: var(--lx-bg, #fff);
  color: var(--lx-fg, var(--lx-navy));
  font: 400 16px/1.65 "Manrope", sans-serif;
  overflow-wrap: anywhere;
}
.darktv-header-wrap *, .darktv-header-wrap *::before, .darktv-header-wrap *::after { box-sizing: border-box; }
.darktv-header-wrap [hidden] { display: none !important; }
.darktv-header-wrap :is(.nx-content, .rx-container) {
  max-width: 1204px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 92px) clamp(16px, 3vw, 28px);
}
.darktv-header-wrap :is(h1, h2, h3, p, figure) { margin: 0; }
.darktv-header-wrap :is(h1, h2, h3) {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.darktv-header-wrap h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
.darktv-header-wrap h2 { font-size: clamp(1.8rem, 3.5vw, 3.1rem); }
.darktv-header-wrap h3 { font-size: clamp(1.15rem, 2vw, 1.48rem); }
.darktv-header-wrap :is(h1, h2, h3) + p { margin-top: .65em; }
.darktv-header-wrap p { color: var(--lx-copy); }
.darktv-header-wrap a { color: var(--lx-link); text-underline-offset: .25em; }
.darktv-header-wrap :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--lx-link);
  outline-offset: 3px;
}
.darktv-header-wrap :is(.nx-eyebrow, .rx-eyebrow) {
  color: var(--lx-link);
  margin-bottom: 10px;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.darktv-header-wrap .nx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--lx-accent);
  color: var(--lx-navy);
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.darktv-header-wrap .nx-button:hover { background: var(--lx-hover); border-color: var(--lx-navy); }
.darktv-header-wrap .nx-text-link { font-weight: 800; }
.darktv-header-wrap .nx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.darktv-header-wrap .nx-note { font-size: .875rem; }
.darktv-header-wrap .nx-index { color: var(--lx-link); font-size: .78rem; font-weight: 800; letter-spacing: .09em; }
.darktv-header-wrap img { display: block; max-width: 100%; height: auto; }
.darktv-header-wrap [id] { scroll-margin-top: 105px; }

.darktv-header-wrap {
  position: sticky;
  top: var(--darktv-header-offset, 0px);
  z-index: 1000;
  border-bottom: 1px solid var(--lx-line);
  font-weight: 750;
}
.darktv-header-wrap .darktv-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  max-width: 1204px;
  margin-inline: auto;
  padding: 10px clamp(12px, 3vw, 28px);
  position: relative;
}
.darktv-header-wrap .darktv-brand-logo { width: 174px; }
.darktv-header-wrap .darktv-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: center;
  border-radius: 999px;
  background: var(--lx-soft);
  padding: 4px 7px;
}
.darktv-header-wrap nav a:not(.nx-button) {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--lx-navy);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: .9rem;
}
.darktv-header-wrap nav a:not(.nx-button):hover { background: var(--lx-mint); text-decoration: underline; }
.darktv-header-wrap .rx-mobile-menu { display: none; }
.darktv-header-wrap summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--lx-line);
  border-radius: 12px;
  background: var(--lx-soft);
  cursor: pointer;
  list-style: none;
}
.darktv-header-wrap summary::-webkit-details-marker { display: none; }
.darktv-header-wrap .darktv-mobile-panel {
  position: absolute;
  inset: 100% 0 auto;
  display: grid;
  gap: 3px;
  max-height: calc(100dvh - 100px);
  overflow: auto;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--lx-line);
}
.darktv-header-wrap .darktv-mobile-panel .nx-button { margin-top: 6px; }
@media (max-width: 930px) {
  .darktv-header-wrap .darktv-desktop-nav, .darktv-header-wrap .darktv-header-inner > .nx-button { display: none; }
  .darktv-header-wrap .darktv-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .darktv-header-wrap .rx-mobile-menu { display: block; }
}
@media (max-width: 520px) { .darktv-header-wrap .darktv-brand-logo { width: 126px; } }

/* ── sectie: Footer (#2) ── */
#darktv-footer-hub {
  --lx-accent: #00e3cc;
  --lx-hover: #35f5df;
  --lx-navy: #071d24;
  --lx-teal: #102e38;
  --lx-mint: #e8fffb;
  --lx-soft: #f3f8f8;
  --lx-line: #c4dcda;
  --lx-radius: 18px;
  --lx-space: clamp(18px, 3vw, 38px);
  --lx-copy: #34515b;
  --lx-link: #08695e;
  background: var(--lx-bg, #fff);
  color: var(--lx-fg, var(--lx-navy));
  font: 400 16px/1.65 "Manrope", sans-serif;
  overflow-wrap: anywhere;
}
#darktv-footer-hub *, #darktv-footer-hub *::before, #darktv-footer-hub *::after { box-sizing: border-box; }
#darktv-footer-hub [hidden] { display: none !important; }
#darktv-footer-hub :is(.nx-content, .rx-container) {
  max-width: 1204px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 92px) clamp(16px, 3vw, 28px);
}
#darktv-footer-hub :is(h1, h2, h3, p, figure) { margin: 0; }
#darktv-footer-hub :is(h1, h2, h3) {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  line-height: 1.1;
  letter-spacing: -.035em;
}
#darktv-footer-hub h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
#darktv-footer-hub h2 { font-size: clamp(1.8rem, 3.5vw, 3.1rem); }
#darktv-footer-hub h3 { font-size: clamp(1.15rem, 2vw, 1.48rem); }
#darktv-footer-hub :is(h1, h2, h3) + p { margin-top: .65em; }
#darktv-footer-hub p { color: var(--lx-copy); }
#darktv-footer-hub a { color: var(--lx-link); text-underline-offset: .25em; }
#darktv-footer-hub :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--lx-link);
  outline-offset: 3px;
}
#darktv-footer-hub :is(.nx-eyebrow, .rx-eyebrow) {
  color: var(--lx-link);
  margin-bottom: 10px;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#darktv-footer-hub .nx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--lx-accent);
  color: var(--lx-navy);
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
#darktv-footer-hub .nx-button:hover { background: var(--lx-hover); border-color: var(--lx-navy); }
#darktv-footer-hub .nx-text-link { font-weight: 800; }
#darktv-footer-hub .nx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
#darktv-footer-hub .nx-note { font-size: .875rem; }
#darktv-footer-hub .nx-index { color: var(--lx-link); font-size: .78rem; font-weight: 800; letter-spacing: .09em; }
#darktv-footer-hub img { display: block; max-width: 100%; height: auto; }
#darktv-footer-hub [id] { scroll-margin-top: 105px; }

#darktv-footer-hub { --lx-bg: var(--lx-navy); --lx-fg: #fff; --lx-copy: #d3e9e8; --lx-link: var(--lx-accent); border-top: 4px solid var(--lx-accent); }
#darktv-footer-hub .rx-container { padding-bottom: 20px; }
#darktv-footer-hub .rx-footer-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 32px; }
#darktv-footer-hub .rx-footer-brand {
  grid-row: span 2;
  background: var(--lx-teal);
  border-radius: var(--lx-radius);
  padding: var(--lx-space);
}
#darktv-footer-hub .rx-footer-brand > a:first-child { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 10px; margin-bottom: 12px; }
#darktv-footer-hub .darktv-footer-logo { width: 174px; }
#darktv-footer-hub .rx-footer-brand .nx-button { margin-top: 16px; }
#darktv-footer-hub nav { display: flex; flex-wrap: wrap; align-content: start; gap: 3px 14px; }
#darktv-footer-hub nav h2 { flex-basis: 100%; font-size: 1.2rem; margin-bottom: 5px; }
#darktv-footer-hub nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--lx-copy); }
#darktv-footer-hub nav a:hover { color: var(--lx-accent); }
#darktv-footer-hub .rx-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; margin-top: 22px; border-top: 1px solid #48696f; font-size: .82rem; }
@media (max-width: 690px) { #darktv-footer-hub .rx-footer-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { #darktv-footer-hub .darktv-footer-logo { width: 126px; } }
