/* --- Globales Seitenlayout mit Farbverlaufhintergrund --- */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #74ebd5 0%, #acb6e5 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Speziell für die Login-Seite: zentrieren --- */
body.login-page {
  justify-content: center;
  align-items: center;
}

/* --- Header mit Logo und Navigation --- */
header {
  background-color: rgba(44, 62, 80, 0.85);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  height: 50px;
}

/* --- Navigation Links --- */
nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  transition: color 0.3s;
}
nav a:hover {
  color: #74ebd5;
}

/* --- Haupt-Container für Content (nicht Login) --- */
.container {
  flex: 1;
  padding: 2rem;
}

/* --- Card-Elemente --- */
.card {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  margin: 2rem auto;
  animation: fadeInUp 0.8s ease both;
}

/* --- Projekt-Kachel-Grid --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1000px;
}

/* --- Einzelne Projekt-Kachel --- */
.project-tile {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* --- Detail-Ansicht (projekte.php) --- */
#project-detail {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  display: none;
}

/* --- Submenüs (falls verwendet) --- */
.submenu {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(236, 240, 241, 0.9);
  border-radius: 0.5rem;
}

/* --- Globale Button-Stile --- */
button {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* --- Globale Input-Stile --- */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  margin: 0.75rem 0;
  border: 1px solid #dde4ea;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s;
}
input:focus {
  outline: none;
  border-color: #74ebd5;
  box-shadow: 0 0 4px rgba(116, 235, 213, 0.6);
}

/* --- Fehlermeldungen --- */
.error {
  color: #e74c3c;
  text-align: center;
  margin-top: 0.5rem;
}

/* --- Login-spezifisches Card-Layout --- */
.login-container {
  width: 100%;
  max-width: 380px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease both;
}

.login-container h2 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  color: #2c3e50;
  text-align: center;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  margin-bottom: 1rem;
}

.login-container button {
  margin-top: 1rem;
}

/* --- Fade-In Animation für Elemente --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
