*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.78;
  color: #0d3a7a;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

h1 {
  font-family: 'DIN Next Pro Condensed', 'Arial Narrow', sans-serif;
  font-size: 76px;
  font-weight: bold;
  letter-spacing: -1.2px;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  margin: 0 0 40px 0;
  color: #0d3a7a;
  line-height: 1.1;
}

h2 {
  font-family: 'DIN Next Pro Condensed', 'Arial Narrow', sans-serif;
  font-size: 50px;
  font-weight: bold;
  letter-spacing: -0.8px;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  margin: 0 0 30px 0;
  color: #0d3a7a;
  line-height: 1.2;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  color: #0d3a7a;
  margin: 20px 0 15px 0;
}

p {
  margin: 0 0 20px 0;
  max-width: 730px;
}

a {
  color: #1565c0;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0d3a7a;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

header {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
  border-bottom: 1px solid #e3f2fd;
}

header.scrolled {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  max-width: 1880px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #1565c0;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
}

nav a {
  color: #0d3a7a;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

nav a:hover {
  border-bottom-color: #1565c0;
  color: #1565c0;
}

.container {
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 80px;
}

.container-full {
  max-width: 1880px;
  margin: 0 auto;
}

section {
  padding: 140px 0;
  width: 100%;
}

.section-intro {
  background-color: #ffffff;
}

.section-biochemie,
.section-lebensmittel,
.section-pflanzen,
.section-einflussfaktoren {
  background-color: #f8fbfd;
}

.section-abschluss {
  background-color: #e8f4fd;
}

.hero {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(21, 101, 192, 0.3);
  z-index: 1;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
}

.hero-content h1 {
  font-size: 76px;
  color: #ffffff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: 0;
}

.text-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 140px;
}

.text-image-row.image-left {
  grid-template-columns: 1.2fr 0.8fr;
}

.text-image-row.image-right {
  grid-template-columns: 0.8fr 1.2fr;
}

.text-image-row.image-left img {
  transform: translateX(-40px);
}

.text-image-row.image-right img {
  transform: translateX(40px);
}

.text-image-row img {
  border-radius: 4px;
  transition: box-shadow 0.36s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.text-image-row img:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
  transform: scale(1.04);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  background-color: #ffffff;
}

table th {
  background-color: #e3f2fd;
  color: #0d3a7a;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #1565c0;
}

table td {
  padding: 16px;
  border-bottom: 1px solid #e3f2fd;
}

table tr:hover {
  background-color: #f8fbfd;
}

.accordion {
  margin: 30px 0;
}

.accordion-item {
  margin-bottom: 20px;
  border: 1px solid #e3f2fd;
  border-radius: 4px;
  overflow: hidden;
  background-color: #ffffff;
}

.accordion-header {
  background-color: #e3f2fd;
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #0d3a7a;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: #d1e5f5;
}

.accordion-header.active {
  background-color: #1565c0;
  color: #ffffff;
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
  max-height: 1000px;
  padding: 20px;
}

.accordion-content p {
  margin: 0;
}

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

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #0d3a7a;
}

input[type='text'],
input[type='email'],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e3f2fd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  color: #0d3a7a;
  background-color: #f8fbfd;
  transition: border-color 0.3s ease;
}

input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
  outline: none;
  border-color: #1565c0;
  background-color: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  padding: 14px 28px;
  border: none;
  background-color: transparent;
  color: #1565c0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid #1565c0;
  transition: color 0.3s ease, border-color 0.3s ease;
}

button:hover {
  color: #0d3a7a;
  border-bottom-color: #0d3a7a;
}

.disclaimer {
  background-color: #e8f4fd;
  border-left: 4px solid #1565c0;
  padding: 20px;
  margin: 30px 0;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.6;
}

footer {
  background-color: #0d3a7a;
  color: #ffffff;
  padding: 60px 80px;
}

.footer-content {
  max-width: 1540px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: #ffffff;
  margin-top: 0;
}

.footer-section a {
  color: #e3f2fd;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
  display: block;
  margin-bottom: 8px;
}

.footer-section a:hover {
  border-bottom-color: #e3f2fd;
}

.footer-bottom {
  border-top: 1px solid #1565c0;
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
}

.footer-message {
  font-weight: 600;
  color: #e3f2fd;
  margin-bottom: 15px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 4px;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  color: #0d3a7a;
}

.modal-content h2 {
  margin-top: 0;
}

.close-modal {
  color: #1565c0;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  border-bottom: none;
}

.close-modal:hover {
  color: #0d3a7a;
  border-bottom: none;
}

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #0d3a7a;
  color: #ffffff;
  padding: 20px 40px;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-banner.active {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-button {
  padding: 10px 20px;
  border: 1px solid #ffffff;
  background-color: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  border-bottom: none;
}

.cookie-button:hover {
  background-color: #ffffff;
  color: #0d3a7a;
  border-color: #ffffff;
}

.cookie-button.accept {
  background-color: #1565c0;
  border-color: #1565c0;
}

.cookie-button.accept:hover {
  background-color: #ffffff;
  color: #0d3a7a;
}

.checkbox {
  margin-bottom: 15px;
}

.checkbox input[type='checkbox'] {
  margin-right: 10px;
  cursor: pointer;
}

.checkbox label {
  display: inline;
  margin: 0;
}

.info-message {
  background-color: #e8f4fd;
  border: 1px solid #1565c0;
  border-radius: 4px;
  padding: 20px;
  margin: 30px 0;
  color: #0d3a7a;
}

.info-message.success {
  background-color: #e8f5e9;
  border-color: #4caf50;
}

.overview-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0;
}

.overview-item {
  padding: 20px;
  background-color: #f8fbfd;
  border-radius: 4px;
  border-left: 4px solid #1565c0;
}

.overview-item h3 {
  margin-top: 0;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 48px;
    letter-spacing: -0.6px;
  }

  h2 {
    font-size: 36px;
    letter-spacing: -0.4px;
  }

  .navbar {
    padding: 15px 28px;
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .container {
    padding: 0 28px;
  }

  section {
    padding: 80px 0;
  }

  .text-image-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .text-image-row.image-left img,
  .text-image-row.image-right img {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  footer {
    padding: 40px 28px;
  }

  .modal-content {
    max-width: 90%;
    padding: 30px;
  }

  .overview-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cookie-banner.active {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  nav a {
    font-size: 14px;
  }

  button {
    padding: 10px 16px;
    font-size: 14px;
  }

  input[type='text'],
  input[type='email'],
  textarea {
    font-size: 16px;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  table {
    font-size: 14px;
  }

  table th,
  table td {
    padding: 12px;
  }
}
