:root {
  --bg-primary: #2E2B25;
  --bg-secondary: #3B3A36;
  --text-primary: #DDD8C4;
  --text-secondary: #A6A28C;
  --accent: #4C6B44;
  --inactive: #5B5B5B;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--bg-secondary);
  box-shadow: 0 2px 8px #0004;
  padding: 0;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
}

.main-logo {
  height: 48px;
  width: 48px;
  border-radius: 10px;
  background: #222;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1.5px;
}

nav {
  border-top: 1px solid var(--inactive);
  background: var(--bg-secondary);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 2rem;
  display: flex;
  gap: 2rem;
  justify-content: flex-start;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-size: 1.08rem;
}

nav a.active,
nav a:hover {
  background: var(--accent);
  color: #fff;
}

main {
  flex: 1 0 auto;
  max-width: 1100px;
  margin: 2.5rem auto 0 auto;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 14px;
  box-shadow: 0 4px 24px #0003;
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: #222;
  object-fit: cover;
}

.hero h2 {
  margin-top: 0.5rem;
  font-size: 2rem;
  letter-spacing: 1px;
}

.hero p {
  color: var(--text-secondary);
}

.featured {
  margin-top: 2rem;
}
.featured h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--text-primary);
}

.featured-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: var(--bg-primary);
  border-radius: 10px;
  box-shadow: 0 2px 12px #0002;
  padding: 1.5rem;
  width: 270px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px #0004;
}

.card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: #222;
  object-fit: cover;
}

.card h3 {
  margin: 0.5rem 0 0.7rem 0;
  font-size: 1.2rem;
  color: var(--accent);
}

.card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

footer,
.site-footer {
  background: var(--bg-secondary);
  color: var(--inactive);
  text-align: center;
  padding: 2rem 0 1rem 0;
  margin-top: 3rem;
  font-size: 1rem;
  border-top: 1px solid var(--inactive);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--text-primary, #DDD8C4);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--text-primary, #DDD8C4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent, #4C6B44);
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social img {
  filter: brightness(0.9);
  transition: filter 0.2s;
}
.footer-social img:hover {
  filter: brightness(1.2);
}
.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--inactive, #5B5B5B);
}

.account-nav {
  margin-left: auto;
}

/* Account Popup Styles */
#account-popup {
  position: fixed;
  top: 90px;
  right: 40px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 18px;
  box-shadow: 0 8px 32px #000b, 0 1.5px 8px #4C6B4455;
  padding: 2.2rem 2.5rem 1.7rem 2.5rem;
  z-index: 1002;
  min-width: 260px;
  max-width: 95vw;
  display: block;
  border: 1.5px solid var(--accent);
  animation: popup-fadein 0.18s;
}
#account-popup .popup-content {
  position: relative;
}
#close-popup {
  position: absolute;
  top: -18px;
  right: -18px;
  background: var(--inactive);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #0003;
  transition: background 0.2s;
}
#close-popup:hover {
  background: var(--accent);
}
.popup-btn {
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.8rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}
.popup-btn:hover {
  background: #355a2e;
  box-shadow: 0 4px 16px #0004;
}
#account-popup h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}
#account-popup .popup-content > div {
  text-align: center;
}
.hidden {
  display: none !important;
}

/* Server Status & Discord Button */
.survival-hero { text-align:center; margin:2.5rem 0 1.5rem 0;}
.server-status { margin:1.5rem auto 2rem auto; background:var(--bg-secondary); border-radius:12px; padding:1.2rem 2rem; max-width:400px; box-shadow:0 4px 24px #0003; font-size:1.1rem;}
.server-online { color:#4caf50; font-weight:600;}
.server-offline { color:#e53935; font-weight:600;}
.discord-btn { background:#5865F2; color:#fff; border:none; border-radius:8px; padding:0.7rem 2rem; font-size:1.1rem; cursor:pointer; margin-top:1.2rem;}
.discord-btn:hover { background:#3b47b7; }

/* Tab Navigation */
.tab-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.tab-btn {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1.5px solid var(--accent);
  border-radius: 8px 8px 0 0;
  padding: 0.7rem 2.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--accent);
  color: #fff;
}
.tab-section {
  display: block;
}
.tab-section.hidden {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 700px) {
  main {
    padding: 0.5rem !important;
    border-radius: 0;
    margin: 0;
    max-width: 100vw;
  }
  .featured-cards {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .card {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    padding: 1rem;
  }
  .logo-title {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .tab-nav {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 1rem;
  }
  .tab-btn {
    width: 100%;
    padding: 0.7rem 0.5rem;
    font-size: 1rem;
    border-radius: 8px;
  }
  .server-status {
    padding: 1rem 0.5rem;
    max-width: 100%;
    font-size: 1rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 0 1rem;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  main {
    padding: 1rem !important;
    border-radius: 0;
    margin: 0;
    max-width: 100vw;
  }
  .featured-cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    justify-content: center;
  }
  .card {
    width: 45vw !important;
    min-width: 220px;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 1rem;
  }
  .logo-title {
    flex-direction: row;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .tab-nav {
    flex-direction: row;
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 1rem;
    justify-content: center;
  }
  .tab-btn {
    width: auto;
    min-width: 120px;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    border-radius: 8px 8px 0 0;
  }
  .server-status {
    padding: 1rem 0.5rem;
    max-width: 100%;
    font-size: 1rem;
  }
}

@keyframes popup-fadein {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Cookie-Banner für Eclipse Survival */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-secondary, #3B3A36);
  color: var(--text-primary, #DDD8C4);
  z-index: 9999;
  padding: 1.2rem 0.5rem;
  box-shadow: 0 -2px 12px #0005;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 2px solid var(--accent, #4C6B44);
}
.cookie-banner-content {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
}
.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
}
#cookie-banner button {
  background: var(--accent, #4C6B44);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 600;
}
#cookie-banner button:hover {
  background: #355a2e;
}
#cookie-banner a {
  color: var(--accent, #4C6B44);
  text-decoration: underline;
}
#cookie-banner a:hover {
  color: #355a2e;
}