/* Grundlayout */
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f7;
  color: #1d1d1f;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: #1a1a2e;
  color: #fff;
  padding: 2rem 1rem;
  height: 100vh;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

/* Benutzerinfo */
.sidebar .user-info {
  text-align: center;
  margin-bottom: 2rem;
}
.sidebar .user-info .avatar {
  font-size: 3rem;
  color: #0071e3;
}
.sidebar .user-info h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.2rem;
}
.sidebar .user-info .role {
  font-size: 0.9rem;
  color: #aaa;
}

/* Navigationslinks */
.sidebar .menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0.25rem 0;
  text-decoration: none;
  color: #ccc;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}
.sidebar .menu a.active,
.sidebar .menu a:hover {
  background-color: #0071e3;
  color: #fff;
}

/* Hauptinhalt */
.main {
  margin-left: 240px;
  padding: 2rem;
  flex: 1;
}

/* Karten-Design */
.card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  animation: fadeIn 0.4s ease;
}

/* Buttons */
.button-green {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.button-red {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.button-blue {
  background-color: #0071e3;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Sidebar & Layout */
.sidebar-toggle {
  display: none;
  background: #0071e3;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  position: fixed;
  top: 1rem;
  left: 1rem;
  border-radius: 0.5rem;
  z-index: 1000;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    height: 100%;
    width: 240px;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
    padding: 1rem;
  }

  .sidebar-toggle {
    display: block;
  }
}

.profile-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  border: 1px solid #e0e0e0;
}

.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  background: #0071e3;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-header h2 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.6rem;
  color: #1d1d1f;
}

.role-pill {
  background: #e4b44c;
  color: #1d1d1f;
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.profile-content {
  padding: 0 1rem;
}

.profile-row {
  margin-bottom: 1rem;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
}

.profile-row a {
  color: #0071e3;
  text-decoration: none;
}

.profile-row a:hover {
  text-decoration: underline;
}

.bio p {
  margin-top: 0.5rem;
  line-height: 1.6;
}