/* ==========================================================================
   DarkUnity – öffentliches Design-System
   Dunkler Gaming-Look, angelehnt an die Gestaltungsrichtung von internet15.cloud
   (große Typografie, klare Flächen, Bento-Kacheln), mit eigenem Branding.
   Die Akzentfarbe kommt aus /theme.css (Admin → Einstellungen).
   ========================================================================== */

:root {
  --bg: #050507;
  --bg-elev: #0a0a0e;
  --surface: #111116;
  --surface-2: #17171e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f4f4f6;
  --text-soft: #c8c8d0;
  --muted: #8e8e9a;

  /* Fallback – wird von /theme.css überschrieben */
  --accent: #8b5cf6;
  --accent-rgb: 139, 92, 246;
  --accent-strong: #9d75f7;
  --accent-text: #a587f8;
  --on-accent: #ffffff;

  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --max: 1120px;
  --narrow: 780px;
  --header-h: 64px;
  --gutter: 20px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter,
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
  outline: none;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.92em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

::selection {
  background: rgba(var(--accent-rgb), 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  flex: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: calc(var(--narrow) + var(--gutter) * 2);
}

/* ------------------------------------------------------------- Typografie */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent-text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

.display {
  font-size: clamp(2.4rem, 6.6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 750;
}

.display--sm {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.display--article {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  margin-top: 18px;
}

.headline {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 720;
  display: flex;
  align-items: center;
  gap: 12px;
}

.headline--sm {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 22px;
}

.lede {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  font-weight: 500;
}

/* ---------------------------------------------------------------- Buttons */

.btn {
  --h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--h);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-lg {
  --h: 54px;
  padding: 0 26px;
  font-size: 1.04rem;
}

.btn-sm {
  --h: 38px;
  padding: 0 15px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), 0.65);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.08);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--surface-2);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.97rem;
  white-space: nowrap;
}

.link-arrow .icon {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.link-arrow--back:hover .icon {
  transform: translateX(-3px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.chip--accent {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-text);
}

a.chip--accent:hover {
  background: rgba(var(--accent-rgb), 0.18);
}

.chip--lg {
  padding: 8px 14px;
  font-size: 0.92rem;
}

/* ----------------------------------------------------------------- Header */

.admin-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px var(--gutter);
  background: #3a2a05;
  color: #fde68a;
  font-size: 0.88rem;
  text-align: center;
}

.admin-banner a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-banner--preview {
  background: #1d1538;
  color: #ddd2ff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 7, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 7, 10, 0.98);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.brand__img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.logo-mark {
  transition: transform 0.4s var(--ease);
}

.brand:hover .logo-mark {
  transform: rotate(-6deg) scale(1.05);
}

.lm-top {
  fill: var(--accent);
}

.lm-left {
  fill: var(--accent);
  opacity: 0.55;
}

.lm-right {
  fill: #1b1b24;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.6;
}

.lm-pixel {
  fill: var(--accent);
  opacity: 0.9;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-link.is-active {
  color: var(--text);
  background: var(--surface-2);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-mobile {
  display: none;
  position: relative;
}

.nav-mobile > summary {
  list-style: none;
}

.nav-mobile > summary::-webkit-details-marker {
  display: none;
}

.nav-mobile__close {
  display: none;
}

.nav-mobile[open] .nav-mobile__close {
  display: block;
}

.nav-mobile[open] .nav-mobile__open {
  display: none;
}

.nav-mobile__panel {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(var(--header-h) + 6px);
  display: grid;
  gap: 2px;
  padding: 10px;
  max-height: calc(100dvh - var(--header-h) - 24px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  animation: menu-in 0.22s var(--ease);
}

.nav-mobile__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 550;
}

.nav-mobile__link .icon {
  opacity: 0.4;
}

.nav-mobile__link:hover,
.nav-mobile__link.is-active {
  background: var(--surface-2);
}

.nav-mobile__panel .btn {
  margin-top: 8px;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll, 0));
}

@supports (animation-timeline: scroll()) {
  .scroll-progress span {
    animation: progress linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ------------------------------------------------------------------- Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 13vh, 150px) 0 clamp(64px, 10vh, 120px);
  border-bottom: 1px solid var(--line);
}

.hero__bg,
.page-hero__bg,
.status-page__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__grid,
.page-hero__bg,
.status-page__bg {
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 30%, transparent 75%);
}

.hero__grid {
  position: absolute;
  inset: 0;
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 8%;
  width: min(900px, 120vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.22), transparent);
  filter: blur(10px);
}

.hero__blocks .block {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.03));
  border-radius: 4px;
  box-shadow: inset 0 0 0 4px rgba(5, 5, 7, 0.35);
  animation: float 9s ease-in-out infinite;
}

.hero__blocks .block::after {
  content: "";
  position: absolute;
  inset: 28%;
  background: rgba(var(--accent-rgb), 0.18);
  border-radius: 2px;
}

.block.b1 { --s: 54px; left: 7%; top: 18%; animation-delay: -1s; }
.block.b2 { --s: 26px; left: 15%; top: 68%; animation-delay: -4s; opacity: 0.7; }
.block.b3 { --s: 38px; right: 9%; top: 22%; animation-delay: -2s; }
.block.b4 { --s: 70px; right: 14%; top: 62%; animation-delay: -6s; opacity: 0.55; }
.block.b5 { --s: 18px; left: 46%; top: 8%; animation-delay: -3s; opacity: 0.6; }
.block.b6 { --s: 30px; left: 30%; bottom: 8%; animation-delay: -5s; opacity: 0.5; }

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(4deg);
  }
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  font-size: clamp(3.4rem, 13vw, 9.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 35%, #9d9daa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.hero__dot {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.hero__slogan {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero__text {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero__address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.hero__address-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Einblendung beim Laden (ohne JS, respektiert reduzierte Bewegung) */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * {
    animation: rise 0.8s var(--ease) both;
  }
  .hero__inner > :nth-child(2) { animation-delay: 0.06s; }
  .hero__inner > :nth-child(3) { animation-delay: 0.12s; }
  .hero__inner > :nth-child(4) { animation-delay: 0.18s; }
  .hero__inner > :nth-child(5) { animation-delay: 0.24s; }
  .hero__inner > :nth-child(6) { animation-delay: 0.3s; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* Scroll-Einblendungen (nur wo Scroll-Timelines unterstützt werden) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main .section .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------- Sektionen */

.section {
  padding: clamp(56px, 9vw, 112px) 0;
}

.section--tight {
  padding: clamp(32px, 5vw, 56px) 0;
}

.section--flush-top {
  padding-top: clamp(28px, 4vw, 48px);
}

.section + .section--tight,
.section--tight + .section--tight {
  padding-top: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(26px, 4vw, 40px);
}

.section-head__text {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 9vw, 104px) 0 clamp(36px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}

.page-hero .display + .lede:empty {
  display: none;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb [aria-current] {
  display: inline-block;
  max-width: 52vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  color: var(--text-soft);
}

.breadcrumb .icon {
  opacity: 0.5;
}

/* --------------------------------------------------------------- Karten */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card-grid > * {
  display: flex;
}

.news-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9);
}

.news-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.news-card:hover .news-card__media img {
  transform: scale(1.035);
}

.news-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(var(--accent-rgb), 0.75);
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.16), transparent 60%);
  background-size: 20px 20px, 20px 20px, 100% 100%;
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 22px;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.news-card__title {
  font-size: 1.22rem;
  line-height: 1.25;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.news-card__title a:hover {
  color: var(--accent-text);
}

.news-card__excerpt {
  color: var(--muted);
  font-size: 0.97rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}

.news-card__author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.news-card__footer .link-arrow {
  margin-left: auto;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(36px, 6vw, 64px) 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.empty-state h2,
.empty-state h3 {
  font-size: 1.35rem;
}

.empty-state p {
  max-width: 50ch;
  color: var(--muted);
}

.empty-state .btn {
  margin-top: 8px;
}

.empty-state__icon,
.status-page__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-text);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}

/* Ankündigung */
.announcement {
  display: flex;
  gap: 20px;
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.02) 70%), var(--surface);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: var(--radius-lg);
}

.announcement__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
}

.announcement__body {
  min-width: 0;
  flex: 1;
}

.announcement__heading {
  margin-bottom: 10px;
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announcement__list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.announcement__list li + li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.announcement__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.announcement__title:hover {
  color: var(--accent-text);
}

.announcement__list p {
  margin-top: 6px;
  color: var(--text-soft);
}

.announcement__meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------ Bento */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 150px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.tile--wide {
  grid-column: span 2;
}

.tile--tall {
  grid-row: span 2;
}

.tile__k {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tile__v {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.tile__v.is-empty,
.copy-field__value.is-empty {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.tile__note {
  color: var(--muted);
  font-size: 0.94rem;
}

.tile__note code {
  color: var(--text-soft);
}

.tile__action {
  align-self: flex-start;
  margin-top: auto;
}

.tile__status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* Status */
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.status__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: currentColor;
}

.status--online {
  color: var(--ok);
}

.status--online .status__dot {
  box-shadow: 0 0 12px currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}

.status--offline {
  color: var(--danger);
}

.status--unknown {
  color: var(--muted);
}

.status__detail {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.status__time {
  color: var(--muted);
  font-size: 0.8rem;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

/* Adresse kopieren */
.copy-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.copy-field__value {
  min-width: 0;
  padding: 9px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.copy-field--empty .copy-field__value {
  border-style: dashed;
}

.btn.is-copied {
  border-color: rgba(52, 211, 153, 0.6);
  color: var(--ok);
}

/* ----------------------------------------------------------- Community */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.feature:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-2px);
}

.feature__num {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: var(--accent-text);
}

.feature__title {
  font-size: 1.2rem;
  font-weight: 680;
}

.feature p {
  color: var(--muted);
  font-size: 0.97rem;
}

.story {
  display: grid;
}

.story__item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
}

.story__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.story__num {
  color: rgba(var(--accent-rgb), 0.7);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 760;
  letter-spacing: -0.05em;
  line-height: 1;
}

.story__title {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 720;
  letter-spacing: -0.035em;
}

.story__content .prose {
  max-width: 64ch;
}

.story__content .btn {
  margin-top: 22px;
}

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(44px, 7vw, 84px) 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.cta::before {
  content: "";
  position: absolute;
  inset: auto -10% -70% -10%;
  height: 120%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.22), transparent);
}

.cta .headline {
  justify-content: center;
}

.cta .lede {
  margin: 16px auto 0;
}

.cta .btn {
  margin-top: 30px;
}

.section--cta {
  padding-top: clamp(24px, 4vw, 48px);
}

/* --------------------------------------------------------- Serverseite */

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

.split > :only-child {
  grid-column: 1 / -1;
}

.panel {
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 1.3rem;
  font-weight: 700;
}

.panel__title .icon {
  color: var(--accent-text);
}

.headline .icon {
  color: var(--accent-text);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  color: var(--text-soft);
}

.check-list .icon {
  margin-top: 4px;
  color: var(--ok);
}

.rule-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-soft);
}

.rule-list__num {
  flex: none;
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --------------------------------------------------------------- News */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.filter-chip {
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 550;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.filter-chip:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--text);
}

.filter-chip.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #0b0b0f;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.pagination__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination__page {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 600;
}

.pagination__page:hover {
  background: var(--surface-2);
}

.pagination__page.is-active {
  background: var(--accent);
  color: var(--on-accent);
}

/* Artikel */
.page-hero--article {
  padding-bottom: clamp(30px, 5vw, 48px);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.article__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article__body {
  padding-top: clamp(28px, 5vw, 48px);
}

.article__figure {
  margin: 0 0 clamp(28px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.article__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article__lede {
  margin-bottom: 26px;
  color: var(--text);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.article__back {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------- Prose */

.prose {
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.prose > * + * {
  margin-top: 1.05em;
}

.prose h2 {
  margin-top: 1.9em;
  color: var(--text);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.prose h3 {
  margin-top: 1.6em;
  color: var(--text);
  font-size: 1.22rem;
}

.prose h4 {
  margin-top: 1.4em;
  color: var(--text);
  font-size: 1.05rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
  margin-top: 0.6em;
}

.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose li::marker {
  color: var(--accent-text);
}

.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text);
}

.prose code {
  padding: 2px 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
}

.prose pre {
  padding: 18px;
  overflow-x: auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose pre code {
  padding: 0;
  background: none;
  border: 0;
}

.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.prose hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose th {
  color: var(--text);
}

/* ---------------------------------------------------------- Rechtliches */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.legal {
  padding: clamp(24px, 5vw, 48px);
}

.legal .prose h2:first-child {
  margin-top: 0;
}

.legal__source,
.legal__stand {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal__stand {
  margin-top: 18px;
}

.legal__original {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.legal__original summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.legal__original[open] summary {
  margin-bottom: 18px;
}

.legal__original .prose {
  font-size: 0.97rem;
}

.placeholder {
  display: inline;
  padding: 2px 7px;
  border: 1px dashed rgba(251, 191, 36, 0.55);
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
  font-size: 0.92em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.97rem;
  text-align: left;
}

.notice .icon {
  margin-top: 3px;
}

.notice--warn {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.06);
  color: #fde68a;
}

.notice a {
  text-decoration: underline;
}

/* -------------------------------------------------------- Status-Seiten */

.status-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(76vh, 760px);
  padding: 72px 0;
}

.status-page__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.status-page__icon {
  margin-bottom: 26px;
  width: 68px;
  height: 68px;
  border-radius: 20px;
}

.status-page__code {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 22vw, 12rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(var(--accent-rgb), 0.7);
}

.status-page .lede {
  margin-left: auto;
  margin-right: auto;
}

.status-page .notice {
  margin-top: 24px;
}

.status-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* ----------------------------------------------------------------- Footer */

.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: 40px;
}

.site-footer__text {
  margin-top: 16px;
  max-width: 40ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer__heading {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__col a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}

.site-footer__col a:hover {
  color: var(--text);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.social-links a:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--text);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.hosting-note a {
  color: var(--text-soft);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.hosting-note a:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
}

/* ------------------------------------------------------------- Responsiv */

@media (max-width: 1000px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 16px;
    --header-h: 60px;
  }

  body {
    font-size: 16px;
  }

  .card-grid,
  .feature-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile--wide {
    grid-column: auto;
  }

  .tile--tall {
    grid-row: auto;
  }

  .tile {
    min-height: 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions {
    flex-direction: column;
    align-self: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__blocks .block:not(.b5) {
    display: none;
  }

  .announcement {
    flex-direction: column;
    gap: 14px;
  }

  .story__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .btn-discord span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .btn-discord {
    width: 44px;
    padding: 0;
  }

  .copy-field {
    width: 100%;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .pagination .btn span,
  .pagination__pages {
    display: none;
  }
}

@media (max-width: 420px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

@media print {
  .site-header,
  .site-footer__grid,
  .hero__bg,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
