:root {
  --bg: #1e1f22;
  --panel: #2a2a2f;
  --accent: #8b5cf6;
  --accent2: #5e3be6;
  --text: #e6e6ea;
  --muted: #9a98a6;
  --radius: 12px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

header { text-align: center; padding: 20px; }
header h1 { color: var(--accent); font-size: 2.5rem; }
header .subtitle { color: var(--muted); margin-top: 6px; }

.search-filter { display: flex; justify-content: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.search-filter input, .search-filter select {
  padding: 10px 14px;
  border-radius: var(--radius);
  border: none;
  background-color: var(--panel);
  color: var(--text);
  font-size: 1rem;
}

/* Update-Bereich unter der Sidebar */
.updates {
  clear: both;                  /* rutscht unter die Sidebar */
  display: flex;                /* Karten nebeneinander */
  justify-content: center;      /* zentriert */
  flex-wrap: wrap;              /* umbrechen bei wenig Platz */
  gap: 20px;                    /* Abstand zwischen Karten */
  margin-top: 40px;             /* Abstand nach oben zur Sidebar */
  margin-bottom: 40px;          /* Abstand nach unten */
}

/* Update-Karte */
.update-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 200px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s ease;
}

/* Hover-Effekt */
.update-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139,92,246,0.2);
}

/* Titel in Karte */
.update-card h3 {
  color: var(--accent);
  margin-bottom: 6px;
}

/* Text in Karte */
.update-card p {
  color: var(--muted);
}


.slider-container {
  position: relative;
  max-width: 1000px;
  margin: 170px auto 60px auto;  /* oben 100px Abstand, unten 40px */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}


.slider {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease;
}

.card {
  min-width: 280px;
  padding: 16px;
  background-color: var(--panel);
  border: 2px solid var(--accent2);
  border-radius: var(--radius);
  flex-shrink: 0;
  opacity: 0.4;
  transform: scale(0.8);
  transition: transform 0.5s, opacity 0.5s;
  cursor: pointer;
}
.card h4 { color: var(--accent); margin-bottom: 6px; }
.card p { 
  color: var(--muted); 
  font-size: 0.95rem; 
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Zeilenbegrenzung auf 3 Zeilen */
  line-clamp: 3; /* Standard property for compatibility */
  -webkit-box-orient: vertical;
}
.card p {
  max-width: 300px;       /* Text wird nicht breiter als 300px */
  word-wrap: break-word;  /* Lange Wörter umbrechen */
  overflow-wrap: break-word;
  text-align: center;     /* optional, für symmetrisches Aussehen */
  margin: 0 auto;         /* zentriert den Text innerhalb der Card */
}

/* Einheitliche Höhe der Karten */
.card {
  height: 200px;          /* gleiche Höhe für alle Karten */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slider-container {
  position: relative;   /* wichtig für absolute Positionierung der Pfeile */
  max-width: 1000px;   /* oder 90% für responsive Layouts */
  margin: 40px auto;   /* zentriert den Container auf der Seite */
  overflow: hidden;
  display: flex;
  align-items: center; /* vertikal zentriert die Pfeile und Slider */
  justify-content: center;
}

.slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 20px 0;
  scrollbar-width: none; /* Firefox */
  width: 100%;           /* Slider füllt Container */
  justify-content: flex-start;
}


.scroll-btn {
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 10px;
  border-radius: 5px;
  position: absolute;  /* absolute im Slider-Container */
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.scroll-btn.left {
  left: 0; /* linker Rand des Containers */
}

.scroll-btn.right {
  right: 0; /* rechter Rand des Containers */
}




.slider::-webkit-scrollbar { /* Chrome, Safari */
  display: none;
}

/* Cards */
.card {
  min-width: 250px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Schimmer-Effekt für mittlere Karte */
.card.center {
  transform: scale(1.05);
  box-shadow: 0 0 20px #8b5cf6; /* goldener Schimmer */
}

.search-wrapper {
  position: relative;
  display: inline-block;
}

.search-wrapper input {
  width: 250px;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--panel);
  border-radius: var(--radius);
  margin-top: 5px;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  display: none;
  z-index: 10;
}

.suggestions div {
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text);
}

.suggestions div:hover {
  background: var(--accent2);
}


/* Footer */
.footer {
    background-color: var(--panel);
    color: var(--muted);
    padding: 40px 20px;
    margin-top: 150px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-content {
  padding-left: 125px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Gleichmäßiger Abstand um die Spalten */
    align-items: flex-start;
    gap: 30px;
    ;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

/* Anpassungen für die linke und rechte Anordnung */
.important-links {
    flex-grow: 1;
    text-align: center;
}

.social-media-right {
    flex-grow: 1;
    text-align: left;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p, .footer-section ul {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.social-links a {
    color: var(--muted);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
}

.social-links i {
    margin-right: 8px;
    width: 20px;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    .social-media-right, .important-links {
        text-align: center;
    }
    .social-links {
        align-items: center;
    }
}



.login-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.login-btn:hover {
  background: var(--accent2);
  transform: scale(1.05);
}





