:root {
  --primary: #4a6fa5;
  --secondary: #166088;
  --accent: #4fc3f7;
  --light: #f8f9fa;
  --dark: #212529;
  --text-light: #f8f9fa;
  --text-dark: #343a40;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light);
  color: var(--dark);
}

.container {
  display: grid;
  grid-template-columns: 25% 75%;
  min-height: 100vh;
  padding-bottom: 60px; /* Footer height */
}

/* Left Sidebar */
.left-container {
  position: fixed;
  width: 25%;
  height: calc(100vh - 60px);
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  overflow-y: auto; /* Scrollen wenn Inhalt zu lang */
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.nav-logo {
  max-width: 150px;
  border-radius: 100%;
  border: 3px solid var(--accent);
  transition: transform 0.3s;
  margin-bottom: 30px;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 200px;
}

.button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: var(--secondary);
  color: var(--text-light);
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.button:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  color: var(--text-dark);
}

/* Right Content */
.right-container {
  grid-column: 2;
  padding: 2rem;
  background-color: white;
  overflow-y: auto;
  height: calc(100vh - 60px);
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.content-section h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

/* Guestbook styles */
.gaestebuch-container {
  max-width: 700px;
  margin: 0 auto;
}

.entry {
  background: var(--light);
  border-left: 4px solid var(--accent);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0 5px 5px 0;
}

.gaestebuch-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.gaestebuch-form label {
  font-weight: 500;
  color: var(--primary);
}

.gaestebuch-form input,
.gaestebuch-form textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

.gaestebuch-form textarea {
  min-height: 150px;
  resize: vertical;
}

.gaestebuch-form button {
  padding: 12px;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.gaestebuch-form button:hover {
  background-color: var(--accent);
}

.fehler {
  color: #dc3545;
  padding: 10px;
  background-color: #f8d7da;
  border-radius: 5px;
  margin-bottom: 15px;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: var(--primary);
  color: var(--text-light);
  text-align: center;
  padding: 1rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    grid-template-columns: 30% 70%;
  }
}

@media (max-width: 992px) {
  .container {
    grid-template-columns: 35% 65%;
  }
  
  .nav-logo {
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    padding-bottom: 50px;
  }
  
  .left-container {
    position: relative;
    width: 100%;
    height: auto;
    padding: 15px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .logo-container {
    width: 100%;
    text-align: center;
  }
  
  .button-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }
  
  .button {
    flex: 1 1 160px;
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .right-container {
    padding: 1.5rem;
    height: auto;
  }
  
  footer {
    height: 50px;
    padding: 0.8rem;
  }
}

@media (max-width: 576px) {
  .left-container {
    flex-direction: column;
    align-items: center;
  }
  
  .button {
    flex: 1 1 100%;
    max-width: 280px;
  }
  
  .right-container {
    padding: 1rem;
  }
  
  .content-section, .gaestebuch-container {
    padding: 0.5rem;
  }
  
  .gaestebuch-form input,
  .gaestebuch-form textarea {
    padding: 8px;
  }
}

/* Hochformat-Anpassungen für Mobile */
@media (max-width: 400px) and (orientation: portrait) {
  .button {
    font-size: 0.85rem;
    padding: 8px 5px;
  }
  
  .nav-logo {
    max-width: 100px;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  .entry {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

/* Querformat-Optimierungen */
@media (max-height: 500px) and (orientation: landscape) {
  .left-container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  
  .nav-logo {
    max-width: 80px;
    margin-bottom: 15px;
  }
  
  .button {
    padding: 6px;
    font-size: 0.8rem;
  }
}