:root {
  --bg: #070910;
  --card: rgba(14, 18, 30, 0.88);
  --card-soft: rgba(10, 14, 24, 0.74);
  --text: #f4f7ff;
  --muted: #9da8bd;
  --cyan: #00f7ff;
  --purple: #a855f7;
  --border: rgba(0, 247, 255, 0.22);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 28px 24px 50px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.16), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(0, 247, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #05070c, #0a0d17 55%, #05070c);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.container {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 34px;
  padding: 7px;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(8, 11, 18, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 38px rgba(0,0,0,0.28);
}

.topnav a {
  display: block;
  padding: 10px 17px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.topnav a:hover,
.topnav a.active {
  color: #061014;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(0,247,255,.18);
}

header {
  text-align: center;
  margin-bottom: 42px;
}

.logo {
  margin: 0 0 8px;
  font-size: clamp(2rem, 7vw, 4.4rem);
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(0,247,255,.7),
    0 0 24px rgba(0,247,255,.4),
    0 0 45px rgba(168,85,247,.35);
}

.logo span { color: var(--cyan); }

.subtitle {
  margin: 0 auto;
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card,
.post,
.article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow:
    0 16px 50px rgba(0,0,0,.38),
    inset 0 0 30px rgba(255,255,255,.018);
}

.card {
  padding: 32px 26px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,247,255,.5);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 30px rgba(0,247,255,.08);
}

.card.youtube:hover { border-color: rgba(168,85,247,.55); }

.icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 2rem;
  background: rgba(0,247,255,.08);
  border: 1px solid rgba(0,247,255,.25);
}

.youtube .icon {
  background: rgba(168,85,247,.08);
  border-color: rgba(168,85,247,.25);
}

h2, h3 { margin-top: 0; }

.description {
  color: var(--muted);
  line-height: 1.55;
  min-height: 48px;
  margin-bottom: 22px;
}

.server-address {
  margin: 0 0 18px;
  padding: 11px 12px;
  overflow-wrap: anywhere;
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(0,247,255,.05);
  border: 1px solid rgba(0,247,255,.12);
  font-family: Consolas, Monaco, monospace;
  font-size: .92rem;
}

.button {
  display: inline-block;
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--cyan);
  border-radius: 12px;
  color: #061014;
  background: var(--cyan);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 0 20px rgba(0,247,255,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover { transform: scale(1.02); box-shadow: 0 0 30px rgba(0,247,255,.38); }

.youtube .button {
  color: white;
  border-color: var(--purple);
  background: var(--purple);
  box-shadow: 0 0 20px rgba(168,85,247,.2);
}

.news-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.news-head h2 { margin: 0; font-size: 1.8rem; }
.news-count { color: var(--muted); font-size: .9rem; }
.news-grid { display: grid; gap: 18px; }

.post {
  padding: 24px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.post:hover {
  transform: translateY(-2px);
  border-color: rgba(0,247,255,.45);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 30px rgba(0,247,255,.08);
}

.post-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}

.post h3 { margin: 0; font-size: 1.25rem; }
.post h3 a { color: var(--text); text-decoration: none; }
.post h3 a:hover { color: var(--cyan); }

.date {
  color: var(--cyan);
  font-size: .85rem;
  white-space: nowrap;
  font-family: Consolas, Monaco, monospace;
}

.post-body,
.article-body {
  color: #cbd3e1;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.read-more {
  display: inline-block;
  margin-top: 17px;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

.article { padding: clamp(24px, 5vw, 42px); }
.article h2 { margin-bottom: 10px; font-size: clamp(1.8rem, 5vw, 2.7rem); }
.article .date { display: block; margin-bottom: 28px; }
.article-body { white-space: pre-wrap; }

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}
.back-link:hover { text-decoration: underline; }

.empty {
  padding: 34px;
  text-align: center;
  border: 1px dashed rgba(0,247,255,.25);
  border-radius: 16px;
  color: var(--muted);
  background: var(--card-soft);
}

footer {
  margin-top: 42px;
  text-align: center;
  color: #687286;
  font-size: .85rem;
}

footer a { color: #9da8bd; text-decoration: none; }
footer a:hover { color: var(--cyan); }

@media (max-width: 700px) {
  body { padding: 20px 16px 36px; }
  .link-grid { grid-template-columns: 1fr; }
  .description { min-height: auto; }
  .news-head, .post-top { align-items: start; flex-direction: column; }
  .date { white-space: normal; }
  .topnav { width: 100%; }
  .topnav a { flex: 1; text-align: center; padding-inline: 10px; }
}


/* ------------------------------------------------------------
   Videoseite
   Nutzt bewusst die bestehenden Feed-/Post-Karten als Grundlage.
   ------------------------------------------------------------ */

.video-grid {
  display: grid;
  gap: 18px;
}

.video-post {
  padding: 0;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020306;
  border-bottom: 1px solid rgba(0,247,255,.12);
}

.video-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-content {
  padding: 24px;
}

.video-description {
  margin-bottom: 18px;
}

.video-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.video-options label {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.quality-select {
  min-width: 130px;
  padding: 10px 12px;
  border: 1px solid rgba(0,247,255,.22);
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(0,247,255,.05);
  font-family: Consolas, Monaco, monospace;
  font-size: .9rem;
  outline: none;
  cursor: pointer;
}

.quality-select:hover,
.quality-select:focus {
  border-color: rgba(0,247,255,.5);
  box-shadow: 0 0 18px rgba(0,247,255,.08);
}

.quality-select option {
  color: var(--text);
  background: #0e121e;
}

@media (max-width: 700px) {
  .video-content {
    padding: 20px;
  }

  .video-options {
    align-items: stretch;
    flex-direction: column;
  }

  .quality-select {
    width: 100%;
  }
}
