/* ==========================================================================
   EGC Signal Board — Design-Tokens
   Konzept: Live-Sendeleitstand fuer den TeamSpeak-Server, farblich an die
   offizielle TeamSpeak-Marke angelehnt: tiefes Navy als Grund, kraeftiges
   TeamSpeak-Blau als Signalfarbe, gedaempftes Gruen nur fuer "live"/
   "spricht"-Zustaende (wie TeamSpeaks eigener BETA-Tag).
   ========================================================================== */

:root {
  --ink: #0e1520;
  --ink-raised: #121a27;
  --panel: #15202f;
  --panel-raised: #1e2c3f;
  --line: rgba(125, 168, 216, 0.14);
  --line-strong: rgba(135, 178, 226, 0.28);

  --paper: #eef1f5;
  --paper-dim: #b6bdc9;
  --muted: #8b93a3;
  --muted-dim: #576073;

  --blue: #2f90e3;
  --blue-strong: #4fa8ef;
  --blue-soft: rgba(47, 144, 227, 0.16);
  --blue-ink: #ffffff;

  --live: #3dbb6b;
  --live-soft: rgba(61, 187, 107, 0.18);
  --amber: #e2954f;
  --amber-soft: rgba(226, 149, 79, 0.18);
  --warn: #e2604f;
  --warn-soft: rgba(226, 96, 79, 0.16);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  /* Breite Fallback-Kette: Channel-/Nicknamen enthalten oft dekorative Unicode-
     Zeichen (Fancy-Text-Generatoren) - IBM Plex Sans deckt die nicht ab, die
     System-Fallbacks (v.a. Segoe UI Symbol/Emoji unter Windows) schon eher. */
  --font-body: "IBM Plex Sans", "Segoe UI", "Noto Sans", "Segoe UI Symbol", "Segoe UI Emoji", "Apple Color Emoji", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --shell-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--ink);
  background-image: radial-gradient(ellipse 700px 500px at 100% 0%, rgba(61, 187, 107, 0.06), transparent 55%),
    repeating-linear-gradient(0deg, rgba(139, 180, 226, 0.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(60deg, rgba(139, 180, 226, 0.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(120deg, rgba(139, 180, 226, 0.05) 0 1px, transparent 1px 64px);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: var(--blue-soft);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 21, 28, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  margin-right: auto;
}

.brand-logo {
  display: block;
  height: 30px;
  width: auto;
  aspect-ratio: 979 / 370;
  object-fit: contain;
  flex: none;
}

.main-nav {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.main-nav a:hover {
  color: var(--paper);
  background: var(--panel);
}

.main-nav a[aria-current="page"] {
  color: var(--paper);
  background: var(--panel-raised);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease, background-color 0.15s ease;
}

.btn:hover {
  border-color: var(--blue);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(160deg, var(--blue-strong), var(--blue));
  border-color: var(--blue);
  color: var(--blue-ink);
  box-shadow: 0 6px 20px rgba(47, 144, 227, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(160deg, #6cb8f3, var(--blue-strong));
  border-color: var(--blue-strong);
  box-shadow: 0 8px 26px rgba(47, 144, 227, 0.4);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 48px;
  background-image: radial-gradient(
    ellipse 150% 88% at 25% 0%,
    rgba(47, 144, 227, 0.38) 0%,
    rgba(47, 144, 227, 0.2) 35%,
    rgba(47, 144, 227, 0.07) 65%,
    rgba(47, 144, 227, 0) 100%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 40px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid rgba(47, 144, 227, 0.4);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-strong);
  margin-bottom: 24px;
}

.live-pill strong {
  color: var(--paper);
  font-weight: 700;
  font-size: 13.5px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 var(--live-soft);
  animation: pulse 2.2s ease-out infinite;
}

.hero-headline {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.hero-headline em,
.page-title em {
  font-style: normal;
  background: linear-gradient(160deg, #ffffff 0%, var(--blue-strong) 55%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(47, 144, 227, 0.45));
}

.hero-word-mark {
  position: relative;
  z-index: 0;
  padding: 0 2px;
  display: inline-block;
  transition: transform 0.25s ease;
}

.hero-word-mark::before {
  content: "";
  position: absolute;
  inset: 8% -6% 4% -3%;
  background: linear-gradient(95deg, rgba(47, 144, 227, 0.42) 0%, rgba(47, 144, 227, 0.3) 100%);
  transform: skewX(-6deg);
  border-radius: 2px 9px 2px 9px;
  z-index: -1;
  transition: background 0.25s ease, filter 0.25s ease;
}

.hero-word-mark:hover {
  transform: translateY(-2px);
}

.hero-word-mark:hover::before {
  background: linear-gradient(95deg, rgba(47, 144, 227, 0.62) 0%, rgba(79, 168, 239, 0.48) 100%);
  filter: drop-shadow(0 6px 16px rgba(47, 144, 227, 0.55));
}

.hero-quip {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 640px;
  min-height: 44px;
  padding: 9px 14px;
  background: var(--ink-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Auf schmalen Screens brauchen die Sprueche unterschiedlich viele Zeilen (1-3, je nach
   Laenge von Satz + Name) - feste Hoehe statt min-height, damit die Box beim Rotieren
   nicht staendig hin- und herspringt. Fuer den seltenen Fall eines noch laengeren
   Online-Namens faengt overflow:hidden das ab, statt das Layout zu sprengen. */
@media (max-width: 640px) {
  .hero-quip {
    height: 80px;
    overflow: hidden;
  }
}

.hero-quip-icon {
  width: 16px;
  height: 16px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-strong);
}

.hero-quip-icon svg {
  width: 16px;
  height: 16px;
}

.hero-quip-text {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--blue-strong);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.hero-quip-text.is-fading {
  opacity: 0;
}

.hero-quip-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--blue-strong);
  animation: quip-cursor-blink 0.8s steps(1) infinite;
}

@keyframes quip-cursor-blink {
  50% {
    opacity: 0;
  }
}

.hero-visual-card {
  background: linear-gradient(180deg, rgba(30, 44, 63, 0.72) 0%, rgba(21, 32, 47, 0.72) 90px, rgba(21, 32, 47, 0.72) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px -28px rgba(0, 0, 0, 0.6);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Die 4 Leistungen sind nur auf Desktop sichtbar (Platzgrund + der Viewer hat auf Mobil Vorrang). */
@media (max-width: 900px) {
  .hero-visual-card {
    display: none;
  }
}

.hero-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-feature-list li {
  display: flex;
  align-items: center;
  gap: 13px;
}

.hero-feature-list li span:last-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--paper-dim);
}

.hero-feature-icon {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--blue-strong), var(--blue));
  box-shadow: 0 4px 14px rgba(47, 144, 227, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-feature-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.demo-banner {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--warn-soft);
  border: 1px solid rgba(226, 96, 79, 0.35);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #f3b6ac;
}

.demo-banner[hidden] {
  display: none;
}

/* ---------- Layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-top: 32px;
  padding-bottom: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: linear-gradient(180deg, var(--panel-raised) 0%, var(--panel) 90px, var(--panel) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px -28px rgba(0, 0, 0, 0.6);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--blue-strong), var(--blue));
  box-shadow: 0 4px 14px rgba(47, 144, 227, 0.35);
  flex: none;
}

.icon-badge svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--muted-dim);
  cursor: pointer;
  flex: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-btn svg {
  width: 15px;
  height: 15px;
}

.filter-btn:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}

.filter-btn.is-active,
.filter-btn.is-active:hover {
  color: var(--blue-strong);
  border-color: var(--blue);
  background: var(--blue-soft);
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--muted-dim);
  cursor: pointer;
  flex: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.refresh-btn svg {
  width: 15px;
  height: 15px;
}

.refresh-btn.is-ready:hover {
  color: var(--blue-strong);
  border-color: var(--blue);
}

.refresh-btn.is-cooldown,
.refresh-btn.is-cooldown:hover {
  color: var(--muted-dim);
  border-color: var(--line);
  background: var(--panel);
  opacity: 0.5;
  cursor: not-allowed;
}

.refresh-btn.is-refreshing {
  color: var(--blue-strong);
  border-color: var(--blue);
}

.refresh-btn.is-refreshing svg {
  animation: refresh-spin 0.7s linear infinite;
}

@keyframes refresh-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Channel Board (TS6-Client-Anmutung) ---------- */

.board {
  padding: 6px 8px 14px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 4px 6px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label::before,
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.section-label:first-child {
  margin-top: 8px;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  position: relative;
  text-decoration: none;
  color: inherit;
}

a.channel-row {
  cursor: pointer;
}

a.channel-row:hover .channel-name {
  color: var(--blue-strong);
}

.channel-row:hover {
  background: var(--panel-raised);
}

.channel-icon-chip {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-row.has-users .channel-icon-chip {
  background: var(--blue-soft);
  border-color: rgba(47, 144, 227, 0.4);
}

.channel-icon {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--muted-dim);
}

.channel-row.has-users .channel-icon {
  color: var(--blue-strong);
}

.channel-icon-chip .activity-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  border: 2px solid var(--panel);
}

.channel-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--paper-dim);
}

.channel-row.has-users .channel-name {
  color: var(--paper);
  font-weight: 500;
}

.channel-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.channel-lock {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted);
}

.user-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 44px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--paper-dim);
}

.user-row:hover {
  background: var(--panel-raised);
}

.avatar {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar svg {
  width: 20px;
  height: 20px;
  color: var(--paper);
}

.avatar-ring-icon circle {
  fill: #1c293b;
  stroke: #1a76d5;
  stroke-width: 2;
}

.user-row.talking .avatar-ring-icon circle {
  fill: #1a76d5;
}

.user-row.away {
  color: var(--muted);
}

.user-row.away .avatar {
  opacity: 0.55;
}

.user-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-row:hover .user-name {
  color: var(--blue-strong);
}

.user-flag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 6px;
  letter-spacing: 0.04em;
}

.flag-icon {
  width: 17px;
  height: 12px;
  flex: none;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  overflow: hidden;
}

.board-empty {
  padding: 36px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* ---------- Eigenes Tooltip (ersetzt native Browser-Tooltips) ---------- */

.tooltip {
  position: fixed;
  z-index: 200;
  min-width: 160px;
  max-width: 300px;
  background: linear-gradient(180deg, var(--panel-raised) 0%, var(--panel) 60px, var(--panel) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 22px 45px -18px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  pointer-events: none;
  font-size: 12.5px;
}

.tooltip[hidden] {
  display: none;
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.tooltip-avatar {
  width: 28px;
  height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooltip-avatar svg {
  width: 22px;
  height: 22px;
  color: var(--paper);
}

.tooltip-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--paper);
  min-width: 0;
  overflow-wrap: break-word;
}

.tooltip-fields {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tooltip-field {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.tooltip-field-label {
  color: var(--muted);
  white-space: nowrap;
}

.tooltip-field-value {
  color: var(--paper-dim);
  font-weight: 500;
  text-align: right;
}

.tooltip-simple {
  color: var(--paper-dim);
  font-weight: 500;
  font-size: 12.5px;
  white-space: nowrap;
}

.board-empty strong {
  color: var(--paper-dim);
  font-weight: 600;
}

/* ---------- Konsole (Sidebar) ---------- */

.console {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 84px;
}

.console-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.connect-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--ink-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--blue-strong);
}

.connect-address #connect-address-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex: none;
}

.icon-btn:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.icon-btn-label {
  width: auto;
  height: auto;
  gap: 6px;
  padding: 6px 10px;
  border-color: var(--line-strong);
  background: var(--panel);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.icon-btn-label:hover {
  color: var(--blue-strong);
  border-color: var(--blue);
}

.icon-btn-label.is-copied,
.icon-btn-label.is-copied:hover {
  color: var(--live);
  border-color: var(--live);
  background: var(--live-soft);
}

.console-actions {
  display: flex;
  gap: 8px;
}

.console-actions .btn {
  flex: 1;
  justify-content: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stat-tile {
  background: var(--panel);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
}

.sponsor-body {
  padding: 22px 18px 26px;
  text-align: center;
  color: var(--muted);
}

.sponsor-slot {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ink-raised);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sponsor-slot:hover {
  border-color: var(--blue);
  background: var(--panel-raised);
}

.sponsor-logo {
  width: 100%;
  max-width: 168px;
  height: auto;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 0 0 rgba(79, 168, 239, 0));
}

.sponsor-slot:hover .sponsor-logo {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 16px rgba(79, 168, 239, 0.35));
}

.sponsor-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* ---------- SEO-Textblock (Startseite) ---------- */

.seo-section {
  padding-top: 12px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.seo-intro h2,
.seo-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--paper);
}

.seo-intro p {
  margin: 0;
  max-width: 70ch;
  color: var(--paper-dim);
  font-size: 15px;
  line-height: 1.6;
}

.seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .seo-grid {
    grid-template-columns: 1fr;
  }
}

.seo-card {
  background: linear-gradient(180deg, var(--panel-raised) 0%, var(--panel) 90px, var(--panel) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}

.seo-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--paper-dim);
  font-size: 14.5px;
  line-height: 1.55;
}

.seo-steps li strong {
  color: var(--paper);
}

.seo-steps code,
.seo-faq code {
  font-family: var(--font-mono);
  background: var(--ink-raised);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--blue-strong);
  font-size: 0.92em;
}

.seo-faq {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.seo-faq:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.seo-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--paper);
  font-size: 14.5px;
  list-style: none;
}

.seo-faq summary::-webkit-details-marker {
  display: none;
}

.seo-faq summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--blue-strong);
  font-weight: 700;
}

.seo-faq[open] summary::before {
  content: "–";
}

.seo-faq p {
  margin: 10px 0 0 18px;
  color: var(--paper-dim);
  font-size: 14px;
  line-height: 1.55;
}

.seo-faq a {
  color: var(--blue-strong);
}

/* ---------- Regeln-Seite ---------- */

.page-head {
  padding: 56px 0 40px;
  background-image: radial-gradient(
    ellipse 150% 88% at 25% 0%,
    rgba(47, 144, 227, 0.38) 0%,
    rgba(47, 144, 227, 0.2) 35%,
    rgba(47, 144, 227, 0.07) 65%,
    rgba(47, 144, 227, 0) 100%
  );
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid rgba(47, 144, 227, 0.4);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-strong);
  margin-bottom: 18px;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 54px);
  letter-spacing: -0.02em;
  margin: 0;
}

.page-head .shell {
  max-width: 760px;
}

.page-lede {
  color: var(--muted);
  margin: 10px 0 0;
}

.rules {
  padding-top: 36px;
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 760px;
}

.rule-group {
  background: linear-gradient(180deg, var(--panel-raised) 0%, var(--panel) 90px, var(--panel) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}

.rule-group h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.rule-group h2 span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
}

.rule-group ol {
  margin: 14px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-group li {
  padding-left: 4px;
  color: var(--paper-dim);
}

.rule-group li::marker {
  font-family: var(--font-mono);
  color: var(--blue);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--live-soft);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(61, 187, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 187, 107, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
  }
}

@media (max-width: 640px) {
  .site-header .shell {
    height: auto;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 12px;
  }

  .brand {
    margin-right: 0;
  }

  .main-nav {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .header-actions {
    display: none;
  }

}

/* Auf Touchscreens sind die kompakten Icon-Buttons (28px/26px) unter der empfohlenen
   Mindestgroesse fuer Touch-Targets - hier vergroessern, Desktop-Maus bleibt unveraendert. */
@media (pointer: coarse) {
  .refresh-btn,
  .filter-btn,
  .icon-btn:not(.icon-btn-label) {
    width: 36px;
    height: 36px;
  }

  .icon-btn-label {
    padding: 8px 12px;
  }
}
