@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400..900&display=swap');

:root {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --border-color: #333;
  --accent-color: #4a4a4a;
  --card-bg: #2d2d2d;
  --hover-bg: #3d3d3d;
  --button-border: #555;
}

body {
  font-family: 'Gabarito', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header, footer {
  background: var(--bg-secondary);
  padding: 1.5em;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

footer {
  border-top: 1px solid var(--border-color);
  border-bottom: none;
  margin-top: 2em;
}

main {
  padding: 40px 20px;
  min-height: calc(100vh - 180px);
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: 2.2em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.8em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--border-color);
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 20px 0;
}

.card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  width: 250px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  background: var(--hover-bg);
}

.card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
}

.card:hover img {
  border-color: #666;
  transform: scale(1.05);
}

.card a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: normal;
  display: inline-block;
  margin-top: 15px;
  border: 1px solid var(--button-border);
  padding: 8px 15px;
  transition: all 0.3s ease;
  border-radius: 50px; /* Abgerundete Buttons in den Karten */
  background-color: var(--bg-secondary);
}

.card a:hover {
  color: var(--text-primary);
  border-color: #777;
  background: var(--hover-bg);
}

/* Profile-spezifische Styles */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.profile-header {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.profile-image {
  width: 250px;
  height: 300px;
  object-fit: cover;
  border: 2px solid var(--border-color);
  border-radius: 4px;
}

.profile-info {
  flex: 1;
}

.profile-info h2 {
  margin: 0 0 20px 0;
  color: var(--text-primary);
  font-size: 1.8em;
  border-bottom: none;
  padding-bottom: 0;
}

.bio {
  font-size: 1em;
  line-height: 1.7;
  margin: 0;
  color: var(--text-secondary);
}

.profile-details {
  margin-bottom: 40px;
  padding: 0;
}

.profile-details h3 {
  margin: 0 0 20px 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  font-size: 1.3em;
}

.details-grid {
  display: grid;
  gap: 15px;
}

.detail-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item strong {
  color: var(--text-primary);
  display: inline-block;
  min-width: 100px;
  font-weight: 600;
}

.contact-section {
  padding: 0;
}

.contact-section h3 {
  margin: 0 0 20px 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  font-size: 1.3em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9em;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: 'Gabarito', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95em;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 0 0 2px rgba(100, 100, 100, 0.2);
}

.submit-btn {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--button-border);
  padding: 12px 24px;
  border-radius: 50px; /* Abgerundeter Submit-Button */
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 600;
  transition: all 0.3s ease;
  width: auto;
  align-self: flex-start;
  font-family: 'Gabarito', 'Helvetica Neue', Arial, sans-serif;
}

.submit-btn:hover {
  background: var(--hover-bg);
  border-color: #777;
}

/* Zentrale Navigation Styles für alle Seiten */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 1.5em;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.user-info {
  margin-left: 0;
  order: 1;
  width: 100%;
  color: var(--text-secondary);
  font-size: 0.9em;
}

/* Navigation Links als Buttons - VOLLSTÄNDIG ABGERUNDET */
nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 100%;
  flex-wrap: wrap;
  padding: 10px 0;
}

nav a {
  margin: 0;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95em;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  transition: all 0.3s ease;
  border-radius: 50px; /* Vollständig abgerundete Ecken */
  background: var(--card-bg);
  border: 1px solid var(--button-border);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-weight: 500;
}

nav a:hover {
  color: var(--text-primary);
  background: var(--hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Aktiven Link hervorheben */
nav a.active {
  background: var(--accent-color);
  color: white;
  border-color: #666;
}

/* Spezielle Styles für Logout Button */
nav a.logout-btn {
  color: white !important;
  border: 1px solid #8b4d57 !important;
  background-color: #cf6679 !important;
  border-radius: 50px; /* Auch der Logout-Button ist abgerundet */
}

nav a.logout-btn:hover {
  background: #b45568 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(207, 102, 121, 0.3) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  main h2 {
    text-align: center;
  }
  
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  
  .profile-image {
    width: 200px;
    height: 250px;
  }
  
  .profile-container {
    margin: 10px;
    padding: 20px;
  }
  
  .grid {
    padding: 10px 0;
    gap: 20px;
  }
  
  .card {
    width: 100%;
    max-width: 300px;
  }

  .card img {
    width: 150px;
    height: 150px;
  }

  main {
    padding: 20px 10px;
  }
  
  /* Navigation bleibt horizontal auch auf Mobilgeräten */
  header {
    padding: 1em;
  }
  
  nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 5px;
  }
  
  nav a {
    padding: 8px 15px;
    font-size: 0.85em;
    border-radius: 50px; /* Abgerundet auch auf Mobilgeräten */
  }
  
  .user-info {
    order: 1;
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }
}