/* ===========================
   Root Farben & globale Einstellungen
   =========================== */
:root {
  --bg: #1e1e1e;
  --bg-soft: #1e1e1e;
  --accent: #f0ede6;
  --accent-2: #dcd8ce;
  --text: #f0ede6;
  --muted: #f0ede6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ===========================
   User-select deaktivieren
   =========================== */
.navbar, .navbar *, header, header *,
.showcase, .showcase *,
#team-section, #team-section *,
footer, footer * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ===========================
   Navbar
   =========================== */
.navbar {
  position: relative;
  z-index: 1000;
  background: var(--bg-soft);
  border-bottom: 1px solid #444;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-width: 400px;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-shrink: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.6rem;
  opacity: 0.85;
  position: relative;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: opacity .2s ease, color .2s ease, background-color .3s ease;
  display: inline-block;
  text-align: center;
  min-width: 90px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: var(--accent-2);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--accent-2);
  background-color: rgba(255,255,255,0.05);
}

/* ===========================
   Right Icons & Language Selector
   =========================== */
.right-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  flex-shrink: 0;
  min-width: 120px;
  justify-content: flex-end;
}

.discord-icon img {
  display: block;
  transition: transform .2s ease, filter .2s ease;
}

.discord-icon:hover img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px #4DA6FF);
}

.language-selector-wrapper {
  position: relative;
  min-width: 60px;
  display: flex;
  justify-content: flex-start;
}

.language-selector {
  font-size: 1.6rem;
  font-weight: 700;
  background: transparent;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  opacity: 0.85;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: opacity .2s ease, color .2s ease, background-color .3s ease;
}

.language-selector:hover {
  opacity: 1;
  color: var(--accent-2);
  background-color: rgba(255,255,255,0.05);
}

.language-selector .arrow {
  font-size: 1.2rem;
  margin-right: 0.15rem;
}

.language-dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  background-color: var(--bg-soft);
  border-radius: 8px;
  display: none;
  flex-direction: column;
  min-width: 80px;
  z-index: 1000;
  padding: 0.4rem 0;
}

.language-dropdown div {
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
}

.language-dropdown div:hover {
  background-color: rgba(255,255,255,0.1);
}

/* ===========================
   Hintergrund & Fade Overlay
   =========================== */
.main-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/Hintergrund.png") center center / cover no-repeat;
  z-index: -1;
  display: none; /* fix für kurzes Anzeigen beim Reload */
}

.fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(30,30,30,0) 0%, rgba(30,30,30,1) 100%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ===========================
   Main Content / Hero
   =========================== */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-bottom: 4rem;
}

header {
  padding: 4rem 2rem 6rem;
  z-index: 1;
  background-color: transparent;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}

header p {
  margin-top: 1rem;
  color: var(--text);
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.1rem;
}

/* ===========================
   Scroll Indicator
   =========================== */
.scroll-indicator {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  z-index:2;
}

.mouse {
  width: 28px;
  height: 44px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel-move 1.2s infinite;
}

@keyframes wheel-move {
  0% { top:6px; opacity:0; }
  50% { top:18px; opacity:1; }
  100% { top:6px; opacity:0; }
}

.arrow-down {
  width:10px;
  height:10px;
  border-bottom:2px solid var(--accent);
  border-right:2px solid var(--accent);
  transform:rotate(45deg);
  animation: arrow-bounce 1.2s infinite;
  margin-top:2px;
}

@keyframes arrow-bounce {
  0%,20%,50%,80%,100%{transform:translateY(0) rotate(45deg);}
  40%{transform:translateY(4px) rotate(45deg);}
  60%{transform:translateY(2px) rotate(45deg);}
}

/* ===========================
   Showcase Section
   =========================== */
.showcase {
  position: relative;
  background: var(--bg);
  padding: 8rem 2rem 4rem;
}

.main-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 450px;
  background: linear-gradient(to bottom, rgba(30,30,30,0) 0%, rgba(30,30,30,0.2) 25%, rgba(30,30,30,0.6) 60%, #1e1e1e 100%);
  pointer-events: none;
}

.showcase-content {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.showcase-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.showcase-content p {
  color: #ccc;
  margin-bottom: 3rem;
}

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.project-row.reverse { direction: rtl; }
.project-row.reverse > * { direction: ltr; }

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: 600;
}

.project-text { text-align: left; }
.project-text h3 { margin-bottom: 0.8rem; color: var(--accent); }
.project-text p { color: #ccc; }

/* ===========================
   Team Section
   =========================== */
.team-card {
  background: #151515;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.team-card h3 { margin-top: 1rem; color: var(--accent); }
.team-card span { font-size: 0.9rem; color: #aaa; }

.team-avatar {
  width: 64px;
  height: 64px;
  margin-bottom: 0.8rem;
  border-radius: 8px;
  background: #0f0f0f;
  object-fit: cover;
  display: block;
}

/* ===========================
   Footer
   =========================== */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text);
}

.footer-inner {
  background-color: var(--bg-soft);
  padding: 1rem 0;
  border-top: 1px solid #444;
  color: var(--text);
}

.footer-meta { margin-top: 1.2rem; }
.footer-disclaimer { font-size: 0.75rem; color: #aaa; }

/* ===========================
   Footer Links fix
   =========================== */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  opacity: 1;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-2);
}

.footer-links span {
  color: var(--text);
}
