:root {
  --primary-bg: #e3f2fd;
  --primary-accent: #1976d2;
  --primary-dark: #0d47a1;
  --white: #ffffff;
  --light-bg: #e8f4fd;
  --text-dark: #212121;
  --shadow-light: rgba(0, 0, 0, 0.07);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
}

h1 {
  font-size: 74px;
  font-weight: 600;
  letter-spacing: -0.9px;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

h2 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.7px;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

h3 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

p {
  font-size: 18px;
  line-height: 1.8;
  max-width: 740px;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.header-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

section {
  padding: 140px 80px;
  max-width: 1500px;
  margin: 0 auto;
}

.hero {
  background-color: var(--primary-bg);
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 200px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero h1 {
  color: var(--primary-dark);
  font-size: 64px;
  margin-bottom: 1rem;
}

.intro {
  background-color: var(--white);
  padding: 140px 80px;
}

.intro h1 {
  margin-bottom: 2rem;
}

.intro p {
  margin-bottom: 2rem;
}

.biochemie {
  background-color: var(--light-bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.biochemie-text {
  padding: 0;
}

.biochemie-image {
  position: relative;
  left: 40px;
}

.biochemie-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

.tabelle {
  background-color: var(--white);
  padding: 140px 80px;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  margin-bottom: 2rem;
}

table thead {
  background-color: var(--primary-bg);
}

table th,
table td {
  padding: 1rem;
  text-align: left;
  border: 1px solid #e0e0e0;
  font-size: 16px;
}

table th {
  font-weight: 600;
  color: var(--primary-dark);
}

table tr:nth-child(even) {
  background-color: var(--light-bg);
}

.lebensmittel {
  background-color: var(--white);
  padding: 140px 80px;
}

.lebensmittel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.lebensmittel-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.lebensmittel-item img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 0;
}

.lebensmittel-item-text h3 {
  font-size: 24px;
  margin-bottom: 0.5rem;
}

.lebensmittel-item-text p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  max-width: 100%;
}

.einflussfaktoren {
  background-color: var(--light-bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.einflussfaktoren-text {
  padding: 0;
}

.einflussfaktoren-text h2 {
  color: var(--primary-dark);
}

.einflussfaktoren-image {
  position: relative;
  left: -40px;
}

.einflussfaktoren-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

.vergleich {
  background-color: var(--white);
  padding: 140px 80px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.comparison-column {
  padding: 2rem;
  background-color: var(--light-bg);
  border-left: 4px solid var(--primary-accent);
}

.comparison-column h3 {
  color: var(--primary-dark);
  font-size: 24px;
  margin-bottom: 1.5rem;
}

.comparison-column ul {
  list-style: none;
  padding: 0;
}

.comparison-column li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 16px;
}

.comparison-column li:last-child {
  border-bottom: none;
}

.faq {
  background-color: var(--light-bg);
  padding: 140px 80px;
}

.faq-item {
  margin-bottom: 2rem;
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 0;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  border: none;
  width: 100%;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-dark);
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: var(--light-bg);
}

.faq-question::after {
  content: '▼';
  font-size: 12px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 16px;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  max-height: 500px;
}

.hinweis {
  background-color: var(--primary-bg);
  padding: 140px 80px;
  border-left: 6px solid var(--primary-dark);
}

.hinweis h2 {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.hinweis p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}

.abschluss {
  background-color: var(--white);
  padding: 140px 80px;
  text-align: center;
}

.abschluss h2 {
  color: var(--primary-dark);
  margin-bottom: 2rem;
}

.abschluss p {
  display: inline-block;
  margin: 0 auto 2rem;
}

.read-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.read-link {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-accent);
  color: var(--white);
  text-decoration: none;
  border-radius: 0;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 17px;
  position: relative;
  overflow: hidden;
}

.read-link:hover {
  background: linear-gradient(135deg, var(--primary-accent), var(--primary-dark));
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.uebersicht {
  background-color: var(--light-bg);
  padding: 140px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.uebersicht-text {
  padding: 0;
}

.uebersicht-image {
  position: relative;
  left: 40px;
}

.uebersicht-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

.kontakt {
  background-color: var(--white);
  padding: 140px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.kontakt-form {
  padding: 0;
}

.kontakt-form h2 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 17px;
  color: var(--text-dark);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0;
  font-size: 16px;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-disclaimer {
  font-size: 14px;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.form-button {
  padding: 0.75rem 2rem;
  background-color: var(--primary-accent);
  color: var(--white);
  border: none;
  border-radius: 0;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-button:hover {
  background: linear-gradient(135deg, var(--primary-accent), var(--primary-dark));
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kontakt-image {
  position: relative;
  left: -40px;
}

.kontakt-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

footer {
  background-color: var(--light-bg);
  padding: 3rem 80px;
  border-top: 1px solid #e0e0e0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0.5rem 0;
  max-width: 100%;
}

.footer-section a {
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.footer-policies {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 14px;
}

.footer-policies a {
  color: var(--primary-accent);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-policies a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #ddd;
  padding-top: 2rem;
  font-size: 14px;
  color: #666;
}

.footer-disclaimer {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: center;
  margin: 1rem 0;
}

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

.modal.show {
  display: block;
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 3rem;
  border: none;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal-header h2 {
  margin: 0;
  font-size: 48px;
}

.modal-close {
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-dark);
  transition: color 0.2s ease;
  border: none;
  background: none;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--primary-accent);
}

.modal-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}

.modal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 24px;
  color: var(--primary-dark);
}

.modal-body p {
  margin-bottom: 1rem;
  font-size: 16px;
  max-width: 100%;
}

.modal-body ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style-position: inside;
}

.modal-body li {
  margin-bottom: 0.5rem;
  font-size: 16px;
}

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--light-bg);
  padding: 1.5rem 2rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1500;
  border-top: 2px solid var(--primary-accent);
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
}

.cookie-text p {
  margin: 0;
  font-size: 14px;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-accept {
  background-color: var(--primary-accent);
  color: var(--white);
}

.cookie-accept:hover {
  background-color: var(--primary-dark);
}

.cookie-reject {
  background-color: var(--white);
  color: var(--primary-dark);
  border: 1px solid var(--primary-dark);
}

.cookie-reject:hover {
  background-color: var(--primary-bg);
}

.thank-you-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  padding: 3rem;
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 2500;
  text-align: center;
  max-width: 500px;
}

.thank-you-message.show {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.thank-you-message h2 {
  color: var(--primary-accent);
  margin-bottom: 1rem;
  font-size: 36px;
}

.thank-you-message p {
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 28px;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    flex-direction: column;
  }

  section {
    padding: 80px 28px;
  }

  .hero {
    padding: 120px 28px;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 42px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 24px;
  }

  p {
    font-size: 16px;
  }

  .biochemie,
  .einflussfaktoren,
  .uebersicht,
  .kontakt {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .biochemie-image,
  .einflussfaktoren-image,
  .uebersicht-image,
  .kontakt-image {
    left: 0 !important;
  }

  .lebensmittel-grid {
    grid-template-columns: 1fr;
  }

  .lebensmittel-item {
    flex-direction: column;
    gap: 1rem;
  }

  .lebensmittel-item img {
    width: 100%;
    height: auto;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-policies {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-content {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .modal-content {
    width: 95%;
    padding: 2rem;
    margin: 20% auto;
  }

  .thank-you-message {
    width: 90%;
    padding: 2rem;
  }
}
