/* Reset und Basis-Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Navigation */
header {
  background-color: #f5f5f5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mobile-menu-toggle {
  display: none;
  background-color: #6d4c41;
  border: none;
  cursor: pointer;
  padding: 15px 20px;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.main-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  flex-wrap: wrap;
  margin-left: -3px;
}

.nav-link {
  background-color: #6d4c41;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 14px;
  border-right: 1px solid #5d3c31;
  transition: background-color 0.3s;
  display: inline-block;
}

.nav-link:first-child {
  border-radius: 5px 0 0 5px;
}

.nav-link:last-child {
  border-radius: 0 5px 5px 0;
  border-right: none;
}

.nav-link:hover {
  background-color: #8d6e63;
}

/* Main Layout */
main {
  display: flex;
  min-height: calc(100vh - 141px);
  background-color: #f8f8f8;
}

/* Sidebar */
.sidebar {
  width: 300px;
  background-color: #c94a36;
  color: white;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: fit-content;
  min-height: calc(100vh - 60px - 82px);
  position: sticky;
  top: 0;
  overflow: visible;
  align-self: flex-start;
}

.sidebar-header {
  padding: 40px 30px 30px;
  text-align: center;
  flex-shrink: 0;
  background-color: #c94a36;
}

.sidebar-header h1 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 1px;
}

.sidebar-content {
  padding: 0 30px 30px;
  text-align: center;
  overflow: visible;
  flex: 1 1 auto;
  min-height: 0;
  background-color: #c94a36;
}

.sidebar-content p {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.6;
}

.sidebar-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  flex-grow: 0;
  background-color: #6d4c41;
}

.sidebar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-footer {
  background-color: #b8857a;
  padding: 30px;
  text-align: center;
  flex-shrink: 0;
  flex-grow: 0;
}

.sidebar-footer h2 {
  font-size: 21px;
  font-weight: bold;
  color: #7f1200;
}

/* Main Content */
.main-content {
  flex: 1;
  background-color: #f8f8f8;
  overflow-y: auto;
}

.hero-section {
  max-width: 900px;
  margin: 0 auto;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 60px;
  background-color: white;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.content-box h2 {
  text-align: center;
  color: #8d6e63;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 30px;
  padding: 20px 0;
  font-family: Georgia, serif;
}

.main-text-content {
  margin-bottom: 40px;
}

.main-text-content p {
  margin-bottom: 15px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}

.main-text-content .intro-text {
  text-align: center;
  margin-bottom: 30px;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.intro-text {
  text-align: center;
  margin-bottom: 30px;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.text-content {
  margin-bottom: 40px;
}

.text-content p {
  margin-bottom: 15px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}

/* Quote Section */
.quote-section {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  padding: 30px;
  background-color: #fafafa;
  border-radius: 8px;
}

.quote-image {
  flex-shrink: 0;
}

.quote-image img {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quote-text {
  flex: 1;
}

.quote {
  font-size: 16px;
  line-height: 1.7;
  color: #6d4c41;
  margin-bottom: 15px;
  font-weight: 500;
}

.quote-author {
  font-size: 15px;
  color: #8d6e63;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: #6d4c41;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* Kontaktformular */
.contact-form-wrapper {
  margin-top: 40px;
}

.contact-intro {
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8d6e63;
}

.form-group textarea {
  resize: vertical;
}

.submit-button {
  background-color: #6d4c41;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.submit-button:hover {
  background-color: #8d6e63;
}

.form-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 20px;
}

.form-success p {
  margin: 0 0 10px 0;
}

.form-success p:last-child {
  margin-bottom: 0;
}

.form-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

.form-error p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  main {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    max-height: none;
    position: relative;
    order: 2;
    background: #c94a36;
  }
  
  .sidebar-header {
    background: #c94a36;
  }
  
  .sidebar-content {
    padding-bottom: 40px;
  }
  
  .main-content {
    order: 1;
  }

  .sidebar-image {
    display: none;
  }
  
  .sidebar-footer {
    display: none;
  }
  
  .content-box {
    padding: 30px 40px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    width: 100%;
    text-align: left;
    border-radius: 0;
  }
  
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #f5f5f5;
    margin-left: 0;
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid #5d3c31;
    border-radius: 0 !important;
    padding: 15px 20px;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .hero-section {
    height: 150px;
  }
  
  .sidebar-image {
    display: none;
  }
  
  .sidebar-footer {
    display: none;
  }
  
  .quote-section {
    flex-direction: column;
  }
  
  .quote-image img {
    width: 100%;
    max-width: 300px;
  }
  
  .content-box {
    padding: 20px;
  }
  
  .content-box h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  /* Mobile Navigation bereits bei 768px aktiviert */
}
