/* SIMUVERSUM – zentrale, aufgeräumte Stylesheet-Datei */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #030619;
  --surface: rgba(12, 18, 43, .78);
  --surface-hover: rgba(18, 28, 62, .92);
  --text: #f6f7ff;
  --muted: #a5aec8;
  --cyan: #00d7e9;
  --blue: #1769ff;
  --purple: #8a20ff;
  --magenta: #d000e8;
  --line: rgba(128, 153, 218, .18);
  --gradient: linear-gradient(105deg, var(--cyan), #1686ff 42%, var(--purple) 72%, var(--magenta));
  --content-width: 900px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .13;
  pointer-events: none;
}
.ambient-one { top: 5rem; left: -20rem; background: var(--blue); }
.ambient-two { top: 15rem; right: -22rem; background: var(--magenta); }

/* Gemeinsame Typografie und Section-Überschriften */
.section-heading { margin-bottom: 30px; text-align: center; }
.section-kicker {
  margin: 0 0 13px;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .19em;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 900px;
  margin: 25px 0 18px;
  font-size: clamp(2.65rem, 7vw, 5.7rem);
  line-height: 1.04;
  letter-spacing: -.065em;
  font-weight: 800;
}
h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.055em; }
.gradient-text {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}
.section-heading > p:last-child {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px 24px;
  text-align: center;
}
.hero-logo {
  display: block;
  width: min(220px, 55vw);
  height: auto;
  margin: 0 auto 25px;
  object-fit: contain;
  filter: drop-shadow(0 8px 25px rgba(23, 105, 255, .2));
}
.hero-copy {
  width: min(100%, 680px);
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  padding: 15px 22px;
  border-radius: 9px;
  color: #030619;
  background: var(--gradient);
  box-shadow: 0 8px 35px rgba(24, 105, 255, .2);
  font-size: .9rem;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 12px 42px rgba(138, 32, 255, .28); }
.hero > :not(.light-particles) { position: relative; z-index: 1; }
.light-particles { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.light-particles span {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
  will-change: transform;
}
@keyframes particle-float {
  0% { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  15% { opacity: .8; }
  50% { transform: translate3d(25px, -45vh, 0) scale(1); opacity: .6; }
  85% { opacity: .5; }
  100% { transform: translate3d(-25px, -100vh, 0) scale(.3); opacity: 0; }
}

/* Einheitliche Breite und Abstände der Inhaltsbereiche */
.discord-section,
.events-section,
.community-highlights,
.community-voices {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto 100px;
}
.discord-section { padding-top: 28px; }
.discord-section .section-heading { margin-bottom: 22px; }

/* Discord-Community-Widget */
.discord-widget-shell {
  width: 100%;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(128, 153, 218, .2);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(13, 21, 49, .96), rgba(7, 12, 31, .96));
  box-shadow: 0 22px 65px rgba(0, 0, 0, .22);
}
.discord-community-header { display: flex; align-items: center; gap: 14px; }
.discord-community-mark {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  overflow: hidden;
  place-items: center;
  padding: 0;
  border-radius: 14px;
  background: var(--gradient);
  box-shadow: 0 7px 25px rgba(23, 105, 255, .2);
}
.discord-community-mark img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.discord-community-title { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.discord-community-title strong { color: var(--text); font-size: .95rem; letter-spacing: .06em; }
.discord-community-title > span { color: var(--muted); font-size: .78rem; }
.discord-join-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding: 11px 16px;
  border-radius: 8px;
  color: #030619;
  background: var(--gradient);
  font-size: .82rem;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}
.discord-join-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(23, 105, 255, .22); }
.discord-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.discord-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(128, 153, 218, .13);
  border-radius: 10px;
  background: rgba(17, 27, 55, .75);
}
.discord-stat-value { color: var(--cyan); font-size: 1.4rem; font-weight: 800; letter-spacing: -.04em; }
.discord-stat-label { color: var(--muted); font-size: .78rem; }
.discord-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 10px rgba(53, 208, 127, .55);
  vertical-align: middle;
}
.discord-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.discord-category {
  display: flex;
  min-width: 0;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(128, 153, 218, .13);
  border-radius: 9px;
  background: rgba(10, 17, 39, .68);
  transition: border-color .2s ease, background .2s ease;
}
.discord-category:hover { border-color: rgba(0, 215, 233, .32); background: rgba(17, 27, 55, .85); }
.discord-category-name { overflow: hidden; color: #d7def2; font-size: .74rem; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; }
.discord-category-count {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 6px;
  color: #9eadd0;
  background: rgba(115, 130, 164, .12);
  font-size: .66rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Events */
.events-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.event-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(128, 153, 218, .15);
  border-radius: 14px;
  background: rgba(13, 22, 47, .75);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.event-card:hover { transform: translateY(-3px); border-color: rgba(0, 215, 233, .4); background: rgba(19, 31, 62, .9); }
.event-card h3 { margin: 0 0 10px; color: var(--text); font-size: 1.12rem; line-height: 1.35; }
.event-description { margin: 0 0 22px; color: #aebbd5; font-size: .87rem; line-height: 1.65; }
.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid rgba(128, 153, 218, .12);
}
.event-date-time { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 7px; color: #aebbd5; font-size: .78rem; line-height: 1.5; }
.event-date-time > span:first-child { color: var(--cyan); font-size: 1rem; }
.event-date-time strong { color: #65dce9; font-weight: 700; }
.event-time-separator { color: #68799e; }
.event-join-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  color: #030619;
  background: var(--gradient);
  font-size: .82rem;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}
.event-join-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(23, 105, 255, .22); }
.events-loading, .events-empty { grid-column: 1 / -1; padding: 24px; color: var(--muted); text-align: center; }
.events-empty { border: 1px dashed rgba(128, 153, 218, .25); border-radius: 12px; }

/* Screenshot der Woche */
.weekly-screenshot {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(13, 21, 49, .96), rgba(7, 12, 31, .96));
  box-shadow: 0 22px 65px rgba(0, 0, 0, .22);
}
.weekly-screenshot img { display: block; width: 100%; max-height: 560px; object-fit: contain; background: rgba(3, 6, 25, .8); }
.screenshot-caption { padding: 20px 24px 22px; background: linear-gradient(135deg, rgba(13, 21, 49, .98), rgba(7, 12, 31, .98)); }
.screenshot-label { color: var(--cyan); font-size: .7rem; font-weight: 800; letter-spacing: .15em; }
.screenshot-caption h3 { margin: 9px 0 0; font-size: 1.08rem; }

/* Stimmen aus der Community – zwei Karten pro Karussell-Seite */
.voices-carousel {
  width: 100%;
}

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

.voice-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgba(128, 153, 218, .17);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(13, 21, 49, .94), rgba(7, 12, 31, .9));
  box-shadow: 0 16px 42px rgba(0, 0, 0, .13);
}

.voice-card[hidden] {
  display: none !important;
}

.voice-quote-mark {
  color: var(--cyan);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: .8;
  opacity: .8;
}

.voice-quote {
  flex: 1;
  margin: 17px 0 25px;
  color: #e5eafa;
  font-size: .98rem;
  line-height: 1.7;
}

.voice-author {
  display: flex;
  align-items: center;
  gap: 11px;
}

.voice-author > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voice-author strong {
  color: var(--text);
  font-size: .82rem;
}

.voice-author small {
  color: #8998ba;
  font-size: .72rem;
}

.voice-author small::before {
  content: "•";
  margin-right: 7px;
  color: var(--cyan);
}

.voices-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.voices-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(12, 18, 43, .8);
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.voices-arrow:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: var(--cyan);
}

.voices-pagination {
  display: flex;
  align-items: center;
  gap: 7px;
}

.voices-pagination button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #566584;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.voices-pagination button.is-active {
  width: 20px;
  border-radius: 5px;
  background: var(--gradient);
}

.voices-pagination button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* Abschließende Discord-Einladung */
.discord-invite {
  position: relative;
  isolation: isolate;
  display: flex;
  width: min(var(--content-width), calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  margin: 8px auto 100px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(92, 129, 218, .22);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(13, 25, 57, .96), rgba(10, 17, 43, .94) 58%, rgba(32, 15, 61, .92));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}
.discord-invite-glow {
  position: absolute;
  z-index: -1;
  top: -150px;
  right: 8%;
  width: 360px;
  height: 240px;
  border-radius: 50%;
  background: rgba(0, 215, 233, .18);
  filter: blur(75px);
  pointer-events: none;
}
.discord-invite-copy { max-width: 530px; }
.discord-invite-copy .section-kicker { margin-bottom: 12px; }
.discord-invite-copy h2 { max-width: 540px; font-size: clamp(1.65rem, 3.5vw, 2.45rem); line-height: 1.12; }
.discord-invite-copy > p:last-child { max-width: 490px; margin: 13px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.7; }
.discord-invite-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  border: 1px solid rgba(117, 178, 255, .3);
  border-radius: 10px;
  color: #f7f9ff;
  background: linear-gradient(110deg, rgba(0, 215, 233, .16), rgba(23, 105, 255, .2), rgba(138, 32, 255, .2));
  font-size: .84rem;
  font-weight: 750;
  white-space: nowrap;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.discord-invite-button:hover { transform: translateY(-2px); border-color: rgba(0, 215, 233, .65); box-shadow: 0 10px 30px rgba(23, 105, 255, .16); }
.discord-invite-icon { color: #7ceafa; font-size: 1.15rem; }
.discord-invite-arrow { color: #91a8d5; font-size: 1rem; }

/* Footer */
.site-footer {
  display: flex;
  width: min(1160px, calc(100% - 48px));
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: #7f8aa8;
  font-size: .78rem;
}
.footer-tagline { font-size: .66rem; letter-spacing: .15em; }

/* Responsive Layout */
@media (max-width: 700px) {
  .discord-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events-grid { grid-template-columns: 1fr; gap: 12px; }
  .discord-invite { width: calc(100% - 32px); flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 72px; }
  .discord-invite-button { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .discord-section, .events-section, .community-highlights, .community-voices { width: calc(100% - 32px); margin-bottom: 72px; }
  .discord-section { padding-top: 18px; }
  .discord-widget-shell { padding: 16px; }
  .discord-community-header { flex-wrap: wrap; }
  .discord-join-button { margin-left: 0; }
  .weekly-screenshot img { max-height: 360px; }
  .screenshot-caption { padding: 17px; }
  .voices-track { gap: 10px; }
  .voice-card { min-height: 235px; padding: 16px; }
  .voice-quote { margin: 13px 0 20px; font-size: .82rem; line-height: 1.55; }
  .voice-author { gap: 8px; }
  .voice-author strong { font-size: .7rem; }
  .voice-author small { font-size: .65rem; }
  .event-card { padding: 18px; }
  .site-footer { width: calc(100% - 32px); }
  .footer-tagline { text-align: right; font-size: .58rem; }
}
@media (max-width: 450px) {
  .discord-channels { grid-template-columns: 1fr; }
  .event-footer { align-items: stretch; flex-direction: column; }
  .event-join-button { width: 100%; }
  .voices-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
