/* ==========================
   🎨 Grundfarben & Theme
========================== */
:root {
  --bg: #ffffff;
  --text: #1c1c1c;
  --accent: #1e90ff;
  --header-bg: #f5f5f5;
  --sidebar-bg: #f0f0f0;
  --shadow: rgba(0,0,0,0.1);
  --card-bg: #ffffff;
}

[data-theme="dark"] {
  --bg: #1e1e1e;
  --text: #e0e0e0;
  --accent: #40a9ff;
  --header-bg: #2a2a2a;
  --sidebar-bg: #252525;
  --shadow: rgba(0,0,0,0.4);
  --card-bg: #2a2a2a;
}

/* ==========================
   🧱 Grundlayout
========================== */
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

/* ==========================
   🧭 HEADER / NAVBAR
========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 5px var(--shadow);
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 1.3em;
  color: var(--accent);
}

.right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

input[type="text"] {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--shadow);
  background: var(--sidebar-bg);
  color: var(--text);
}

.content {
	position: center;
}

/* ==========================
   📚 SIDEBAR (Regelwerk)
========================== */
#sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 220px;
  height: calc(100vh - 60px);
  background: var(--sidebar-bg);
  padding: 20px;
  overflow-y: auto;
  box-shadow: 2px 0 5px var(--shadow);
}

.rules-content {
  margin-left: 240px;
  padding: 100px 40px 40px 40px;
}

section {
  margin-bottom: 40px;
}

section h2 {
  color: var(--accent);
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  background: var(--header-bg);
}

/* ==========================
   🔘 BUTTONS
========================== */
button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--accent);
  color: white;
  font-weight: 500;
  transition: background 0.25s, transform 0.1s;
  box-shadow: 0 2px 4px var(--shadow);
}

button:hover {
  background: color-mix(in srgb, var(--accent) 80%, white);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Nav Buttons */
.nav-btn {
  margin: 0 4px;
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.nav-btn:hover,
.nav-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Sidebar Buttons */
.rule-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 30px 0;
}

#sidebar button {
  width: 100%;
  text-align: left;
  margin-bottom: 10px;
  background: var(--header-bg);
  color: var(--text);
}

#sidebar button:hover {
  background: var(--accent);
  color: white;
}

/* ==========================
   🌍 TEAM-SEITE DESIGN
========================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px auto;
  max-width: 1100px;
  padding: 20px;
}

.team-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 6px var(--shadow);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.team-card .role {
  font-weight: bold;
  color: var(--accent);
}

.team-card.admin { border-top: 4px solid #ff0000; }
.team-card.mod { border-top: 4px solid #009bff; }
.team-card.support { border-top: 4px solid #9b59b6; }
.team-card.dev { border-top: 4px solid #00fff5; }
.team-card.builder { border-top: 4px solid #f3f226; }

/* ==========================
   📑 ALLGEMEIN
========================== */
main {
  padding-top: 80px;
}

.intro {
  text-align: center;
  margin-top: 100px;
}

.btn {
  margin-top: 20px;
  font-size: 1.1em;
}

mark {
  background-color: #ffeb3b;
  color: black;
  padding: 0 2px;
  border-radius: 3px;
}

/* ==========================
   📰 NEWS CARD DESIGN
========================== */
.news-container {
  max-width: 1000px;
  margin: 100px auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.news-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 6px var(--shadow);
  transition: transform 0.25s, background 0.3s;
  border-left: 5px solid var(--accent);
}

.news-card:hover {
  transform: translateY(-3px);
}

.news-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9em;
  opacity: 0.9;
}

.news-card h2 {
  margin: 8px 0 10px 0;
  font-size: 1.4em;
  font-weight: 600;
}

.news-card p {
  line-height: 1.5em;
}

/* Tags (Farbig vor Titel) */
.tag { padding: 4px 10px; border-radius: 6px; font-size: 0.75em; font-weight: 600; color: white; }
.tag.update { background: #ff9800; }  
.tag.info { background: #2196f3; }    
.tag.event { background: #8e24aa; }  
.tag.alert { background: #e53935; }

.date { opacity: 0.7; }

/* ==========================
   🎮 SERVER INFO SECTION
========================== */
.server-info {
  text-align: center;
  margin: 80px auto;
  max-width: 700px;
  padding: 20px;
}

.ip-box {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 6px var(--shadow);
  margin: 10px 0 16px 0;
  border-left: 5px solid var(--accent);
}

.ip-box p {
  margin: 0;
  font-size: 1.05em;
}

.player-status {
  font-size: 0.95em;
  opacity: 0.85;
}

/* Button kleiner machen */
.btn.small { font-size: 0.85em; padding: 6px 10px; }

/* ==========================
   📰 NEWS PREVIEW (Startseite)
========================== */
.news-preview {
  text-align: center;
  margin: 100px auto;
  max-width: 1100px;
  padding: 20px;
}

.news-preview .news-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px auto 40px auto;
  padding: 0;
  max-width: 900px;
}

.news-preview .news-card {
  border-left-width: 4px;
  padding: 16px 20px;
}

.news-preview h2 { margin-bottom: 10px; }

/* ==========================
   ✨ FEATURES SECTION
========================== */
.features {
  text-align: center;
  margin: 100px auto;
  max-width: 1100px;
  padding: 20px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.feature-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 2px 6px var(--shadow);
  transition: transform 0.25s, background 0.3s;
  border-top: 4px solid var(--accent);
}

.feature-item:hover {
  transform: translateY(-3px);
}

.feature-item h3 { margin-bottom: 10px; font-size: 1.2em; }

/* ==========================
   📱 RESPONSIVE TWEAKS
========================== */
@media (max-width: 600px) {
  .ip-box {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .feature-list { grid-template-columns: 1fr; }

  .news-preview .news-container { padding: 0 10px; }

  main { padding: 120px 10px 40px 10px; }
}

/* ==========================
   ✅ Neue Styles für Join-HTML
========================== */
.problem-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.problem-table th, .problem-table td { border: 1px solid var(--shadow); padding: 12px 10px; text-align: left; }
.problem-table th { background-color: var(--accent); color: white; }

main ul, main ol { margin-left: 20px; margin-bottom: 15px; }
main li { margin-bottom: 8px; }
main a { color: var(--accent); text-decoration: none; }
main a:hover { text-decoration: underline; }
main hr { border: 0; border-top: 1px solid var(--shadow); margin: 30px 0; }

