:root {
  --bg-deep: #0b0d12;
  --panel-bg: rgba(21, 25, 35, 0.75);
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent-emerald: #1eb223;
  --accent-glow: rgba(16, 185, 129, 0.3);
  --accent-cyan: #06b6d4;
  --text-bright: #ffffff;
  --text-dim: #9ca3af;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-deep);
  color: var(--text-bright);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.hero-bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: blur(4px) scale(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 20%,
    var(--bg-deep) 90%
  );
}

/* ========================================
   NAVBAR
======================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 13, 18, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--panel-border);
  padding: 12px 24px;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}

.brand-title {
  font-size: 16px;
  letter-spacing: 1px;
}

.brand-title b {
  color: var(--accent-emerald);
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-login-nav {
  background: var(--accent-emerald) !important;
  color: #022c22 !important;
  font-weight: 700 !important;
}

/* Hamburger standardmäßig versteckt */

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--accent-emerald);
  font-size: 20px;
  line-height: 1;   /* ← hinzufügen */
}

.mobile-menu-btn span {
  display: block;
  width: 21px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ========================================
   MAIN
======================================== */

.main-content {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ========================================
   HERO
======================================== */

.hero-banner {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  font-size: 42px;
  margin: 16px 0;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--accent-emerald),
    var(--accent-cyan)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-dim);
  font-size: 15px;
}

.check-icon {
  color: var(--accent-emerald);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.main-button {
  background: linear-gradient(
    135deg,
    var(--accent-emerald),
    #059669
  );
  color: #022c22;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.main-button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--panel-border);
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.glass-card {
  position: relative;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

.card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.card-overlay {
  position: absolute;
  inset: 0;
  padding: 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8),
    transparent
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-tag {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent-emerald);
  font-weight: 700;
}

.glass-card h3 {
  margin: 4px 0;
  font-size: 18px;
}

.glass-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
}

/* ========================================
   RULES
======================================== */

.rules-container {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 30px;
}

.rules-styled-list {
  list-style: none;
  padding: 0;
}

.rules-styled-list li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--panel-border);
  color: #e5e7eb;
  font-size: 14px;
}

.rules-styled-list .num {
  color: var(--accent-emerald);
  font-weight: 800;
}

.penalty-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 20px;
  margin-top: 30px;
}

.penalty-steps {
  margin: 14px 0;
  font-weight: 700;
  color: var(--text-bright);
}

.penalty-steps .perma {
  color: #ef4444;
}

.hinweis,
.hinweis-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.hinweis-sub a {
  color: var(--accent-emerald);
}

/* ========================================
   FORMS
======================================== */

.form-wrapper {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 600px;
  margin: 0 auto;
}

.anleitung-list {
  color: var(--text-dim);
  margin-bottom: 30px;
  padding-left: 20px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.input-group input[type="text"],
.input-group input[type="url"],
.input-group input[type="email"],
.input-group input[type="password"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--panel-border);
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-emerald);
}

.input-group input::placeholder {
  color: var(--text-dim);
}

.prefix-input {
  display: flex;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
}

.prefix-input .prefix-tag {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 13px;
  white-space: nowrap;
  border-right: 1px solid var(--panel-border);
}

.prefix-input input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  min-width: 0;
}

.prefix-input input:focus {
  outline: none;
}

.prefix-input input::placeholder {
  color: var(--text-dim);
}

.mcname-hint {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
}

.mcname-hint a {
  color: var(--accent-emerald);
}

.checkbox-group {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 24px;
}

.checkbox-group a {
  color: var(--accent-emerald);
}

.full-btn {
  width: 100%;
  text-align: center;
}

/* ========================================
   MEMBERS
======================================== */

.members-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(220px, 1fr)
  );
  gap: 20px;
  margin-top: 24px;
}

.member-card {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-emerald);
}

.member-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px;
  border: 1px solid var(--panel-border);
  margin-bottom: 12px;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  image-rendering: pixelated;
}

.member-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
}

.member-role {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
  margin-bottom: 16px;
}

.member-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
}

.social-btn.twitch:hover {
  background: #9146ff;
  color: #fff;
  border-color: #9146ff;
}

.social-btn.youtube:hover {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
}

.social-btn.tiktok:hover {
  background: #00f2fe;
  color: #000;
  border-color: #00f2fe;
}

.social-btn.discord:hover {
  background: #5865f2;
  color: #fff;
  border-color: #5865f2;
}

/* ========================================
   NEWS
======================================== */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.news-card {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.news-card:hover {
  border-color: var(--accent-emerald);
}

.news-card-image {
  flex: 0 0 220px;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 140px;
}

.news-card-body {
  padding: 20px 24px;
  flex: 1;
  min-width: 0;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.news-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  display: inline-block;
}

.news-card-author {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
}

.news-card-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.news-card-content {
  font-size: 14px;
  color: #e5e7eb;
  line-height: 1.65;
  word-break: break-word;
}

.news-card-content img {
  max-width: 100%;
  border-radius: 8px;
}

/* ========================================
   EVENTS
======================================== */

.events-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 24px 0 20px;
  flex-wrap: wrap;
}

.events-toolbar h3 {
  margin: 0;
  font-size: 18px;
}

.event-day-group {
  margin-bottom: 28px;
}

.event-day-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

/* Horizontale Linie entfernt */

.event-day-heading::after {
  content: none;
}

.event-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.event-card.important {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.18);
}

.event-time-block {
  flex: 0 0 70px;
  text-align: center;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 13px;
}

.event-card.important .event-time-block {
  background: rgba(168, 85, 247, 0.25);
  color: #e9d5ff;
}

.event-info {
  flex: 1;
  min-width: 0;
}

.event-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.event-title-row h4 {
  margin: 0;
  font-size: 16px;
}

.important-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #a855f7;
  color: #fff;
  padding: 3px 9px;
  border-radius: 20px;
}

.event-desc {
  font-size: 13px;
  color: #e5e7eb;
  margin: 6px 0 8px;
  line-height: 1.5;
}

.event-meta-row {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.event-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.event-mark-btn,
.event-delete-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 700;
}

.event-mark-btn:hover {
  border-color: #a855f7;
  color: #e9d5ff;
}

.event-delete-btn:hover {
  border-color: #ef4444;
  color: #fca5a5;
}

.event-form-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: -8px;
  margin-bottom: 16px;
}

.event-error {
  color: #fca5a5;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

/* ========================================
   EVENTS - MOBILE ADD BUTTON
======================================== */

.event-add-section {
  margin-top: 70px;
  margin-bottom: 40px;
}

.event-add-button {
  width: 100%;
  border: none;
  background: var(--accent-emerald);
  color: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

.event-add-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.event-add-button:active {
  transform: translateY(0);
}

#eventFormWrapper {
  display: none;
  margin-top: 18px;
}

#eventFormWrapper.open {
  display: block;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

  .navbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .main-content {
    max-width: 100%;
  }

  .nav-links a {
    padding-left: 10px;
    padding-right: 10px;
  }

}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

  .navbar {
    padding: 10px 14px;
  }

  .nav-container {
    position: relative;
  }

  .brand-logo {
    height: 44px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;

    padding: 10px;

    background: rgba(11, 13, 18, 0.96);
    backdrop-filter: blur(18px);

    border: 1px solid var(--panel-border);
    border-radius: 12px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);

    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      transform 0.2s ease;
  }

  .nav-links.mobile-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    padding: 13px 14px;
    font-size: 14px;
    border-radius: 8px;
  }

  .nav-links .btn-login-nav {
    margin-top: 4px;
    text-align: center;
  }

  /* Hamburger Animation */

  .mobile-menu-btn.mobile-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-btn.mobile-open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.mobile-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* MAIN */

  .main-content {
    margin: 25px auto;
    padding: 0 14px;
  }

  /* HERO */

  .hero-banner {
    padding: 25px 20px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.15;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .main-button,
  .secondary-button {
    width: 100%;
    text-align: center;
  }

  .visual-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* FORM */

  .form-wrapper {
    padding: 24px 18px;
  }

  .rules-container {
    padding: 22px 18px;
  }

  /* MEMBERS */

  .members-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* NEWS */

  .news-card {
    flex-direction: column;
  }

  .news-card-image {
    flex: none;
  }

  .news-card-image img {
    height: 180px;
    min-height: 0;
  }

  .news-card-body {
    padding: 18px;
  }

  .news-card-title {
    font-size: 18px;
  }

  /* EVENTS */

  .event-card {
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }

  .event-time-block {
    width: 100%;
    flex: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 9px;
  }

  .event-info {
    width: 100%;
  }

  .event-actions {
    width: 100%;
    flex-direction: column;
  }

  .event-mark-btn,
  .event-delete-btn {
    width: 100%;
    padding: 9px 10px;
  }

  .event-day-heading {
    font-size: 11px;
  }

  .event-add-section {
    margin-top: 60px;
    margin-bottom: 30px;
  }

  .event-datetime-input {
    min-height: 46px;
  }

  /* RULES */

  .rules-styled-list li {
    gap: 10px;
    font-size: 13px;
  }

}

/* ========================================
   VERY SMALL PHONES
======================================== */

@media (max-width: 400px) {

  .main-content {
    padding: 0 10px;
  }

  .navbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand-logo {
    height: 40px;
  }

  .mobile-menu-btn {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: 28px;
  }

  .hero-banner {
    padding: 22px 16px;
  }

  .rules-container {
    padding: 20px 15px;
  }

}