/* Grundlayout */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1e293b;
  background: #f5f7fb;
}

/* Layout: linke Sidebar + Inhalt */
.page-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar links */
.sidebar {
  width: 260px;
  background: #0f172a;
  color: #e5e7eb;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
}

.sidebar-header {
  margin-bottom: 2rem;
}

.lab-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.lab-subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* Navigation */
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.side-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.4rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.side-nav a:hover {
  background: #1e293b;
}

.side-nav a.active {
  background: #1d4ed8;
  color: #f9fafb;
}

.side-nav a.nav-survey {
  margin-top: 0.8rem;
  border: 1px solid #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
}

/* Hauptbereich */
.content {
  flex: 1;
  padding: 2rem 3rem;
  max-width: 960px;
}

/* Allgemeine Sections */
.section {
  margin-bottom: 3rem;
  background: #ffffff;
  padding: 1.75rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.section h1,
.section h2 {
  margin-top: 0;
}

.section h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.05rem;
  color: #4b5563;
}

/* Startseite-Layout */
.start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.start-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e5e7eb;
}

.start-card h2 {
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #f9fafb;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-top: 0.3rem;
}

.btn:hover {
  background: #1e40af;
}

/* Aktuelles */
.news-list {
  margin-top: 1rem;
}

.news-item {
  padding: 0.75rem 0;
  border-top: 1px solid #e5e7eb;
}

.news-item:first-child {
  border-top: none;
}

.news-date {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.team-card {
  background: #f9fafb;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.team-name {
  font-weight: 600;
}

.team-role {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

.team-info {
  font-size: 0.9rem;
}

/* Forschung */
.project-list {
  margin-top: 1rem;
}

.project {
  padding: 0.75rem 0;
  border-top: 1px solid #e5e7eb;
}

.project:first-child {
  border-top: none;
}


/* Footer */
.footer {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Responsiv für kleinere Bildschirme */
@media (max-width: 900px) {
  .page-layout {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .content {
    padding: 1.5rem 1.25rem 2rem;
  }
}
