/* Reset some default styles */
body, h1, h2, ul, p {
  margin: 0;
  padding: 0;
}

/* Basic styling */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
}

header {
  background-color: #D8CABD; /* Beige background color */
  color: #333;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}


nav a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #e74c3c;
}

.content-container {
  display: flex;
  align-items: flex-start;
}

.image-container {
  flex-basis: 30%; /* Adjust the width of the image container */
  margin-right: 1rem; /* Add margin to the right */
}

.image-container img {
  max-width: 150px; /* Adjust the maximum width as needed */
  height: auto;
}

.text-container {
  flex-grow: 1; /* Allow the text container to take remaining space */
  text-align: left;
}


.section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  margin: 0 auto; /* Add margin to center the section content */
  max-width: 800px; /* Set a maximum width for the section content */
  padding: 2rem;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.section-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.section-content p {
  margin-bottom: 1.5rem;
  color: #666;
}

.author-info {
  display: flex;
  align-items: center;
}

.author-info img {
  max-width: 150px;
  border-radius: 50%;
  margin-right: 1rem;
}

.promo-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #e74c3c;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s;
  align-items: center;
}

.promo-button:hover {
  background-color: #c0392b;
}


.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
  padding: 2rem;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-container h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.contact-form {
  width: 100%;
  max-width: 500px;
  margin-top: 2rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  margin-bottom: 1rem;
}

.contact-form button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #c0392b;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #E3C833;
  color: #333;
  border-top: 1px solid #ddd;
}

/* Header and Menu Positioning */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: #D8CABD;
  color: #333;
  border-bottom: 1px solid #ddd;
}

.header-banner img {
  max-width: 100%;
  height: auto;
}

.header-content {
  display: flex;
  align-items: center;
}

.header-content h1 {
  font-size: 2rem;
  margin-right: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav ul li {
  margin-right: 1rem;
}

nav ul li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #f1c40f; /* Yellow background color */
  color: #e74c3c; /* Red text color with good contrast */
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #d4ac0d; /* Button border color */
  border-radius: 4px; /* Button border radius */
  transition: background-color 0.3s, border-color 0.3s, transform 0.2s, color 0.3s;
}

nav ul li a:hover {
  background-color: #d4ac0d; /* Yellow background color on hover */
  border-color: #f1c40f; /* Button border color on hover */
  color: #fff; /* White text color on hover for contrast */
  transform: translateY(-2px); /* Button hover effect */
}

nav a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #e74c3c;
}


.promo-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  background-color: #e74c3c;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s;
  text-transform: uppercase;
}

.promo-button:hover {
  background-color: #c0392b;
}

.form-group label {
  font-weight: bold;
}

.form-group input[type="file"] {
  padding: 0.8rem;
}

.form-group select {
  padding: 1rem;
  appearance: none;
  background: url('arrow-down.png') no-repeat right #fff;
  background-size: 18px;
}

.success {
  color: #2ecc71;
}

.error {
  color: #e74c3c;
}

.thumbnail {
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
  align-items: top
}

.section-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
  flex-basis: 70%; /* Adjust the width of the text content */
}

.book-info {
  display: flex;
  align-items: center;
}

.book-info img {
  max-width: 40%; /* Adjust the width of the image */
  margin-right: 1rem; /* Add some spacing between the image and text */
}

.impressum-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
  padding: 2rem;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.impressum-container h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.impressum-container p {
  margin: 0.5rem 0;
}

/* Media Query for Mobile Devices */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  nav {
    margin-top: 1rem;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  nav ul li a {
    display: block; /* Ensure menu items are displayed as blocks */
  }
}