/* ── 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[data-lunex-section="267"] {
  --header-bg: #071d24;
  --header-panel: #102e38;
  --header-text: #ffffff;
  --header-link: #d9e5e9;
  --header-accent: #8c00ff;
  --header-hover: #7200d1;
  --header-focus: #d2a6ff;
  --header-border: #34545b;
  background: var(--header-bg);
  color: var(--header-text);
  padding: 0;
  font-family: inherit;
}

.darktv-header-wrap[data-lunex-section="267"] *,
.darktv-header-wrap[data-lunex-section="267"] *::before,
.darktv-header-wrap[data-lunex-section="267"] *::after {
  box-sizing: border-box;
}

.darktv-header-wrap[data-lunex-section="267"] .darktv-header-main {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.darktv-header-wrap[data-lunex-section="267"] .darktv-header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: min(100%, 82rem);
  min-height: 76px;
  margin-inline: auto;
  padding: .4rem clamp(1rem, 4vw, 2.5rem);
}

.darktv-header-wrap[data-lunex-section="267"] .darktv-brand-link {
  display: block;
  justify-self: start;
  width: clamp(150px, 18vw, 210px);
  max-width: 100%;
  border-radius: .4rem;
}

.darktv-header-wrap[data-lunex-section="267"] .darktv-brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.darktv-header-wrap[data-lunex-section="267"] .darktv-desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.75rem);
}

.darktv-header-wrap[data-lunex-section="267"] :is(.darktv-desktop-nav, .darktv-mobile-panel) a {
  color: var(--header-link);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
}

.darktv-header-wrap[data-lunex-section="267"] :is(.darktv-desktop-nav, .darktv-mobile-panel) a:hover {
  color: var(--header-focus);
}

.darktv-header-wrap[data-lunex-section="267"] a.darktv-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  background: var(--header-accent);
  color: var(--header-text);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.darktv-header-wrap[data-lunex-section="267"] a.darktv-header-cta:hover {
  background: var(--header-hover);
  color: var(--header-text);
}

.darktv-header-wrap[data-lunex-section="267"] :is(a, summary):focus-visible {
  outline: 2px solid var(--header-focus);
  outline-offset: 4px;
}

.darktv-header-wrap[data-lunex-section="267"] .rx-mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .darktv-header-wrap[data-lunex-section="267"] .darktv-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    gap: .75rem;
  }

  .darktv-header-wrap[data-lunex-section="267"] .darktv-brand-link {
    width: 175px;
  }

  .darktv-header-wrap[data-lunex-section="267"] .darktv-desktop-nav,
  .darktv-header-wrap[data-lunex-section="267"] .darktv-header-inner > .darktv-header-cta {
    display: none;
  }

  .darktv-header-wrap[data-lunex-section="267"] .rx-mobile-menu {
    display: block;
  }

  .darktv-header-wrap[data-lunex-section="267"] .rx-mobile-menu summary {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .5rem .7rem;
    border: 1px solid var(--header-border);
    border-radius: .6rem;
    color: var(--header-text);
    font-weight: 600;
    list-style: none;
    cursor: pointer;
  }

  .darktv-header-wrap[data-lunex-section="267"] .rx-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .darktv-header-wrap[data-lunex-section="267"] .rx-mobile-menu[open] .darktv-mobile-panel {
    position: absolute;
    z-index: 30;
    inset-inline-end: 1rem;
    top: calc(100% + .5rem);
    display: grid;
    gap: .25rem;
    width: min(19rem, calc(100% - 2rem));
    padding: .65rem;
    border: 1px solid var(--header-border);
    border-radius: .8rem;
    background: var(--header-panel);
  }

  .darktv-header-wrap[data-lunex-section="267"] .darktv-mobile-panel > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .6rem .75rem;
  }

  .darktv-header-wrap[data-lunex-section="267"] .darktv-mobile-panel > .darktv-header-cta {
    justify-self: stretch;
    margin-top: .25rem;
  }
}

/* ── sectie: Footer (#2) ── */
#darktv-footer-hub {
  --accent: #8c00ff;
  --accent-hover: #7200d1;
  --ink: #071d24;
  --teal: #102e38;
  --mint: #f4eaff;
  --line: #35545e;
  --fg: #ffffff;
  --muted: #c9e2e5;
  --surface: #102e38;
  --soft: #0b2028;
  --link: #d2a6ff;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --radius: .95rem;
  background: #071d24;
  color: var(--fg);
  padding-block: clamp(3rem, 7vw, 6rem);
  font: 400 1rem/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
#darktv-footer-hub *, #darktv-footer-hub *::before, #darktv-footer-hub *::after { box-sizing: border-box; }
#darktv-footer-hub :where(.lx-inner) { width: min(76rem, calc(100% - 2 * var(--gap))); margin-inline: auto; min-width: 0; }
#darktv-footer-hub :where(h1, h2, h3, h4) { font-family: inherit; color: var(--fg); line-height: 1.14; letter-spacing: -.025em; margin: 0 0 .55em; }
#darktv-footer-hub h1 { font-size: clamp(2.3rem, 5.8vw, 4.8rem); }
#darktv-footer-hub h2 { font-size: clamp(1.75rem, 4vw, 3.25rem); }
#darktv-footer-hub h3 { font-size: clamp(1.12rem, 2vw, 1.45rem); }
#darktv-footer-hub :where(p, figure, dl, dd) { margin: 0; }
#darktv-footer-hub p { color: var(--muted); }
#darktv-footer-hub :where(p + p) { margin-top: .75rem; }
#darktv-footer-hub :where(header > p:last-child) { max-width: 66ch; }
#darktv-footer-hub :where(img) { display: block; max-width: 100%; height: auto; }
#darktv-footer-hub svg { max-width: 100%; }
#darktv-footer-hub a { color: var(--link); text-underline-offset: .22em; }
#darktv-footer-hub a:hover { text-decoration-thickness: 2px; }
#darktv-footer-hub :focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
#darktv-footer-hub [hidden] { display: none !important; }
#darktv-footer-hub :is(.lx-label, .nx-eyebrow) { color: var(--link); margin: 0 0 .85rem; font-size: .76rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
#darktv-footer-hub :where(.lx-heading, .nx-heading) { margin-bottom: var(--gap); }
#darktv-footer-hub :where(.lx-actions, .nx-actions) { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.1rem; }
#darktv-footer-hub :where(.lx-panel) { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
#darktv-footer-hub .lx-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; max-width: 100%; padding: .6rem 1.05rem; border: 1px solid transparent; border-radius: .65rem; background: var(--accent); color: #ffffff; font: inherit; font-weight: 750; line-height: 1.3; text-decoration: none; text-align: center; cursor: pointer; }
#darktv-footer-hub .lx-button:hover { background: var(--accent-hover); color: #fff; }
#darktv-footer-hub :where(section[id], article[id], div[id], nav[id], h2[id], h3[id]) { scroll-margin-top: 6rem; }
@media (prefers-reduced-motion: reduce) {
  #darktv-footer-hub *, #darktv-footer-hub *::before, #darktv-footer-hub *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

#darktv-footer-hub { border-top: 3px solid var(--accent); }
#darktv-footer-hub .rx-footer-top { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap: var(--gap); }
#darktv-footer-hub .rx-footer-brand > a:first-child { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; color: var(--fg); text-decoration: none; font-weight: 800; }
#darktv-footer-hub .darktv-footer-logo { width: min(6.5rem, 100%); }
#darktv-footer-hub .rx-footer-brand .lx-label { margin-block: .85rem .3rem; }
#darktv-footer-hub .rx-footer-brand .lx-button { margin-top: .85rem; }
#darktv-footer-hub nav { display: grid; justify-items: start; align-content: start; gap: .25rem; }
#darktv-footer-hub nav h2 { font-size: 1.2rem; }
#darktv-footer-hub nav a { padding-block: .27rem; }
#darktv-footer-hub .rx-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .87rem; }
#darktv-footer-hub .rx-footer-bottom p { margin: 0; }

/* Section composition and interaction states */
#darktv-footer-hub :where(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid #071d24; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
#darktv-footer-hub :where(a, summary) { overflow-wrap: anywhere; }
#darktv-footer-hub :where(summary):hover { text-decoration-thickness: 2px; }
#darktv-footer-hub .rx-footer-top { border-top: 2px solid var(--accent); padding-block-start: clamp(1rem,3vw,1.75rem); }
#darktv-footer-hub nav a { padding-block: .26rem; }
#darktv-footer-hub .rx-footer-brand { min-inline-size: 0; }

/* IPTVUSAX section layout */

#darktv-footer-hub .rx-footer-top { border-block-start: 0; padding-block-start: 0; gap: clamp(1.35rem,4vw,3rem); }

#darktv-footer-hub .rx-footer-top nav { border-inline-start: 1px solid var(--line); padding-inline-start: 1rem; }

#darktv-footer-hub .rx-footer-bottom { padding-block-start: 1rem; }

/* Scoped button states take precedence over the inherited CMS theme. */
#darktv-footer-hub :is(a, button).lx-button {
  background: #8c00ff !important;
  color: #ffffff !important;
}
#darktv-footer-hub :is(a, button).lx-button:hover {
  background: #7200d1 !important;
  color: #ffffff !important;
}

#darktv-footer-hub :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--surface);
}
