/* Stile für das Split-Layout mit fester Navigation */
.split-container {
  display: flex;
  width: 100%;
  gap: 20px;
  height: calc(100vh - 150px);
  overflow: hidden;
}
.nav-column {
  flex: 0 0 200px;
  background-color: rgba(240, 240, 240, 0.9);
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.nav-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.content-column {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  height: 100%;
}
.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-menu li {
  margin-bottom: 15px;
}
.nav-menu a {
  display: block;
  padding: 10px;
  background-color: #e0e0ff;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: all 0.3s;
  text-align: center;
}
.nav-menu a:hover, 
.nav-menu a.active {
  background-color: #c0c0ff;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Stil für Abmelden-Button in der Navigation */
.logout-item {
  margin-bottom: 25px;
}
.logout-link {
  display: block;
  padding: 10px;
  background-color: #f44336;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: all 0.3s;
  text-align: center;
}
.logout-link:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.welcome-content {
  text-align: center;
  padding: 20px;
}
.welcome-image {
  max-width: 80%;
  border-radius: 10px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Zusätzliche Stile für die Login-Form */
.login-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  text-align: center;
}
.login-form input[type="password"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.login-form button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Allgemeine Stile für Content-Card */
.content-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Stile für die Bilder-Seite */
.photo-page {
  padding: 15px;
}

.album-section {
  margin-bottom: 40px;
}

.album-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 1.8rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0ff;
}

.photo-album {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.photo-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  /* Neue Eigenschaften für quadratische Kacheln */
  position: relative;
  padding-bottom: 100%; /* Quadratisches Verhältnis */
  background-color: #f5f5f5; /* Hintergrundfarbe für leere Bereiche */
}

.photo-item img {
  /* Eigenschaften für optimale Bilddarstellung */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-item:hover img {
  transform: scale(1.05);
}

/* Stile für Textseiten */
.text-content {
  padding: 20px;
  line-height: 1.6;
}
.text-content h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 20px;
}
.text-content p {
  margin-bottom: 15px;
}
.text-content .photo-item {
  max-width: 300px;
  margin: 20px auto;
  padding-bottom: 0; /* Deaktiviert das quadratische Verhältnis für Textseiten */
  height: auto;
}
.text-content .photo-item img {
  position: static;
  width: 100%;
  height: auto;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
    height: auto;
  }
  .nav-column {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
  }
  .nav-scrollable {
    overflow-y: visible;
    max-height: none;
  }
  .content-column {
    overflow-y: visible;
  }
  .welcome-image {
    max-width: 100%;
  }
  
  .photo-album {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  
  .text-content .photo-item {
    max-width: 100%;
  }
  
  .logout-item {
    margin-bottom: 15px;
  }
}

/* Verbesserungen für kleine Displays */
@media (max-height: 600px) {
  .split-container {
    height: calc(100vh - 100px);
  }
  .nav-scrollable {
    padding: 15px;
  }
  .nav-menu li {
    margin-bottom: 10px;
  }
}