/*
 * WeltenNET Kanäle – Frontend
 * Farben angelehnt an weltennet.de: Weiß, fast schwarzes Nachtblau, Gelb als Akzent.
 * Alle Werte sind Variablen und lassen sich im Template überschreiben.
 */
.wk {
  --wk-ink: #05050f;
  --wk-ink-2: #3b3b46;
  --wk-muted: #62626e;
  --wk-line: #dcdce2;
  --wk-soft: #f1f1f4;
  --wk-bg: #ffffff;
  --wk-accent: #ffe500;
  --wk-focus: #1d3f8f;
  --wk-radius: 14px;
  --wk-font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --wk-brand: #1d3f8f;

  box-sizing: border-box;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 40px;
  color: var(--wk-ink);
  font-family: var(--wk-font);
  font-size: 15px;
  line-height: 1.5;
}
.wk *, .wk *::before, .wk *::after { box-sizing: border-box; }

.wk-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Template-Deko an externen Links (z. B. „↗“) ausblenden */
.wk a::before, .wk a::after { content: none !important; display: none !important; }

.wk-page-heading { margin: 0 0 12px; font-size: 32px; line-height: 1.2; }
.wk-intro { max-width: 760px; margin-bottom: 32px; color: var(--wk-ink-2); font-size: 17px; }
.wk-intro p { margin: 0 0 12px; }
.wk-empty { color: var(--wk-muted); }

/* ---------- Abschnitte ---------- */
.wk-section + .wk-section { margin-top: 48px; }
.wk-section-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 20px; font-size: 24px; line-height: 1.2; font-weight: 700;
}
.wk-section-title::after {
  content: ""; flex: 1; height: 3px; margin-left: 8px; background: var(--wk-accent); border-radius: 2px;
}
.wk-section-icon { width: 28px; height: 28px; color: #ff0000; flex: none; }

.wk-grid { display: grid; gap: 24px; }
.wk-grid--large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.wk-grid--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }

/* ---------- Karte ---------- */
.wk-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--wk-bg);
  border: 1px solid var(--wk-line);
  border-radius: var(--wk-radius);
  box-shadow: 0 1px 2px rgba(5, 5, 15, .04);
  transition: box-shadow .2s ease, transform .2s ease;
}
.wk-card:hover { box-shadow: 0 10px 28px rgba(5, 5, 15, .12); transform: translateY(-2px); }
.wk-card--small { border-top: 4px solid var(--wk-brand); }

.wk-p-youtube { --wk-brand: #ff0000; }
.wk-p-tiktok { --wk-brand: #010101; }
.wk-p-odysee { --wk-brand: #ef1970; }
.wk-p-x { --wk-brand: #000000; }
.wk-p-twitch { --wk-brand: #9146ff; }
.wk-p-website { --wk-brand: #1d3f8f; }

.wk-banner {
  position: relative;
  aspect-ratio: 5 / 1;
  background: linear-gradient(120deg, var(--wk-ink) 0%, #1d1d3a 55%, var(--wk-brand) 140%);
  overflow: hidden;
}
.wk-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wk-banner--small { aspect-ratio: 4 / 1; }

.wk-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 0 20px 20px; }
.wk-card--small .wk-body { padding-top: 16px; }

.wk-identity { display: flex; align-items: flex-end; gap: 14px; }
.wk-card--small .wk-identity { align-items: center; }

.wk-avatar {
  position: relative;
  z-index: 1;
  flex: none;
  width: 96px; height: 96px;
  margin-top: -40px;
  border: 4px solid var(--wk-bg);
  border-radius: 50%;
  background: var(--wk-soft);
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(5, 5, 15, .15);
}
.wk-avatar--icon { display: grid; place-items: center; color: var(--wk-brand); }
.wk-avatar--icon svg { width: 44px; height: 44px; }
.wk-avatar--small { width: 56px; height: 56px; margin-top: 0; border-width: 0; box-shadow: none; }

.wk-names { min-width: 0; padding-bottom: 4px; }
.wk-title { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.wk-card--small .wk-title { font-size: 18px; }
.wk-title a { color: inherit; text-decoration: none; }
.wk-title a:hover { text-decoration: underline; text-decoration-color: var(--wk-accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.wk-handle { margin: 2px 0 0; color: var(--wk-muted); font-size: 14px; overflow-wrap: anywhere; }

.wk-platform {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 2px; color: var(--wk-brand); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.wk-platform-icon { width: 16px; height: 16px; }
.wk-p-tiktok .wk-platform, .wk-p-x .wk-platform { color: var(--wk-ink); }

.wk-badge {
  display: inline-block; vertical-align: middle;
  margin-left: 6px; padding: 2px 8px;
  background: var(--wk-accent); color: var(--wk-ink);
  border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .02em;
}

.wk-stats {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin: 0; padding: 10px 0; list-style: none;
  border-top: 1px solid var(--wk-line); border-bottom: 1px solid var(--wk-line);
  color: var(--wk-muted); font-size: 14px;
}
.wk-stats strong { color: var(--wk-ink); font-size: 16px; }

.wk-tagline { margin: 0; font-weight: 700; font-size: 16px; color: var(--wk-ink); }

.wk-text { color: var(--wk-ink-2); }
.wk-text p { margin: 0 0 10px; }
.wk-text ul, .wk-text ol { margin: 0 0 10px; padding-left: 22px; }
.wk-text li { margin: 2px 0; }
.wk-text a { color: var(--wk-focus); text-decoration: underline; }
.wk-text > :last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.wk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.wk-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 9px 16px;
  border: 2px solid var(--wk-ink); border-radius: 999px;
  background: var(--wk-bg); color: var(--wk-ink);
  font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.wk-btn:hover { background: var(--wk-soft); color: var(--wk-ink); text-decoration: none; }
.wk-btn--primary { background: var(--wk-ink); color: #fff; }
.wk-btn--primary:hover { background: #1d1d3a; color: #fff; }
.wk-btn--brand { background: var(--wk-brand); border-color: var(--wk-brand); color: #fff; }
.wk-btn--brand:hover { background: var(--wk-ink); border-color: var(--wk-ink); color: #fff; }
.wk-btn--ghost { border-color: var(--wk-line); }
.wk-btn-icon { width: 20px; height: 20px; color: #ff0000; }

.wk a:focus-visible, .wk-btn:focus-visible {
  outline: 3px solid var(--wk-focus); outline-offset: 2px; border-radius: 6px;
}
.wk-btn:focus-visible { border-radius: 999px; }

@media (max-width: 575px) {
  .wk { padding-top: 20px; }
  .wk-page-heading { font-size: 26px; }
  .wk-body { padding: 0 16px 16px; }
  .wk-avatar { width: 76px; height: 76px; margin-top: -30px; }
  .wk-avatar--small { width: 48px; height: 48px; margin-top: 0; }
  .wk-banner { aspect-ratio: 4 / 1; }
  .wk-btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .wk-card, .wk-btn { transition: none; }
  .wk-card:hover { transform: none; }
}
