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

:root {
  --primary-light: #e8f5e9;
  --primary-accent: #4caf50;
  --dark-green: #1b5e20;
  --white: #ffffff;
  --light-green: #f1f8e9;
  --gray-light: #f5f5f5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto Slab', Georgia, serif;
  background-color: var(--white);
  color: var(--dark-green);
  font-size: 18px;
  line-height: 1.76;
  max-width: 710px;
}

html, body {
  width: 100%;
  height: 100%;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bodoni MT', 'Didot', 'Playfair Display', serif;
  color: var(--dark-green);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: -1.2px;
}

h1 {
  font-size: 74px;
  line-height: 1.2;
  margin-bottom: 30px;
  letter-spacing: -1.4px;
}

h2 {
  font-size: 52px;
  margin-bottom: 24px;
  margin-top: 40px;
  letter-spacing: -1.2px;
}

h3 {
  font-size: 36px;
  margin-bottom: 20px;
  margin-top: 32px;
  letter-spacing: -1.0px;
}

p {
  margin-bottom: 18px;
  line-height: 1.76;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background-color: var(--white);
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 0;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.26s ease;
}

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

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--dark-green);
  text-decoration: none;
  font-family: 'Bodoni MT', serif;
  letter-spacing: -0.8px;
}

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

nav a {
  color: var(--dark-green);
  text-decoration: none;
  margin-left: 32px;
  font-size: 16px;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--primary-accent);
  border-bottom-color: var(--primary-accent);
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 28px;
  }
  
  nav a {
    margin-left: 16px;
    font-size: 14px;
  }
}

/* Main Sections */
.section {
  max-width: 1860px;
  margin: 0 auto;
  padding: 130px 76px;
}

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

@media (max-width: 768px) {
  .section {
    padding: 60px 28px;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  margin-bottom: 210px;
  padding: 0;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
}

.hero-text {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--dark-green);
  max-width: 900px;
  padding: 0 40px;
}

.hero-text h1 {
  font-size: 68px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .hero-section {
    height: 350px;
  }
  
  .hero-text h1 {
    font-size: 42px;
  }
}

/* Content Blocks */
.intro-block, .biochemie-block, .lebensmittel-block, .pflanzen-block, 
.einflussfaktoren-block, .vergleich-block, .faq-block, .hinweis-block, 
.abschluss-block, .uebersicht-block, .kontakt-block {
  margin-bottom: 210px;
}

/* Two-Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 68% 32%;
  gap: 40px;
  align-items: center;
  margin-bottom: 210px;
}

.two-column.reverse {
  grid-template-columns: 32% 68%;
}

.two-column-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 11px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.38s ease, box-shadow 0.38s ease;
}

.two-column-image:hover {
  transform: scale(1.04);
  box-shadow: 0 11px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1024px) {
  .two-column, .two-column.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .two-column.reverse {
    grid-template-columns: 1fr;
  }
}

/* Tabelle */
.table-responsive {
  overflow-x: auto;
  margin: 30px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--light-green);
}

table th {
  background-color: var(--primary-accent);
  color: var(--white);
  padding: 16px;
  text-align: left;
  font-weight: bold;
  border: 1px solid #c8e6c9;
}

table td {
  padding: 14px 16px;
  border: 1px solid #c8e6c9;
}

table tbody tr:nth-child(even) {
  background-color: rgba(76, 175, 80, 0.05);
}

/* Liste */
.lebensmittel-list {
  list-style: none;
  padding: 0;
}

.lebensmittel-list li {
  padding: 14px 0;
  border-bottom: 1px solid #e8f5e9;
  line-height: 1.8;
}

.lebensmittel-list li:last-child {
  border-bottom: none;
}

.lebensmittel-list strong {
  color: var(--primary-accent);
  font-weight: bold;
}

/* FAQ */
.faq-item {
  margin-bottom: 20px;
  border: 1px solid #c8e6c9;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--light-green);
}

.faq-question {
  background-color: var(--primary-accent);
  color: var(--white);
  padding: 16px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  user-select: none;
}

.faq-question:hover {
  background-color: #388e3c;
}

.faq-toggle {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-toggle.active {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 16px;
  display: none;
  background-color: var(--white);
  line-height: 1.76;
}

.faq-answer.active {
  display: block;
}

/* Disclaimer Block */
.hinweis-block {
  background-color: var(--primary-light);
  padding: 30px;
  border-left: 4px solid var(--primary-accent);
  border-radius: 4px;
  margin-bottom: 210px;
}

.hinweis-block h2 {
  margin-top: 0;
}

.hinweis-block p {
  font-size: 16px;
  line-height: 1.7;
}

/* Vergleich */
.vergleich-grid {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 30px;
  margin-bottom: 30px;
}

.vergleich-column {
  background-color: var(--light-green);
  padding: 24px;
  border-radius: 4px;
}

.vergleich-column h3 {
  color: var(--primary-accent);
  margin-top: 0;
}

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

.vergleich-column li {
  padding: 8px 0;
  line-height: 1.6;
}

.vergleich-column li:before {
  content: "✓ ";
  color: var(--primary-accent);
  font-weight: bold;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .vergleich-grid {
    grid-template-columns: 1fr;
  }
}

/* Form */
form {
  max-width: 600px;
  margin: 30px 0;
}

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

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--dark-green);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #c8e6c9;
  border-radius: 4px;
  font-family: 'Roboto Slab', serif;
  font-size: 16px;
  color: var(--dark-green);
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

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

button {
  background-color: var(--primary-accent);
  color: var(--white);
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-family: 'Roboto Slab', serif;
}

button:hover {
  background-color: #388e3c;
  text-decoration: underline;
}

/* Links */
a {
  color: var(--primary-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--light-green);
  padding: 60px 76px;
  border-top: 1px solid #c8e6c9;
  margin-top: 210px;
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 16px;
  margin-top: 0;
}

.footer-column p, .footer-column a {
  font-size: 14px;
  line-height: 1.8;
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid #c8e6c9;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--dark-green);
}

.footer-disclaimer {
  background-color: rgba(76, 175, 80, 0.1);
  padding: 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 20px;
}

@media (max-width: 768px) {
  footer {
    padding: 40px 28px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

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

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

.modal-content {
  background-color: var(--white);
  margin: auto;
  padding: 40px;
  border: 1px solid #c8e6c9;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 4px;
}

.close-modal {
  color: var(--dark-green);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

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

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

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-light);
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

#cookie-banner.hidden {
  display: none;
}

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

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

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.cookie-accept:hover {
  background-color: #388e3c;
}

.cookie-reject {
  background-color: #e0e0e0;
  color: var(--dark-green);
}

.cookie-reject:hover {
  background-color: #bdbdbd;
}

.cookie-more {
  background-color: transparent;
  color: var(--primary-accent);
  border: 1px solid var(--primary-accent);
}

.cookie-more:hover {
  background-color: rgba(76, 175, 80, 0.1);
}

@media (max-width: 768px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    width: 100%;
  }
  
  .cookie-btn {
    flex: 1;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.margin-top-large {
  margin-top: 40px;
}

.margin-bottom-large {
  margin-bottom: 40px;
}

.image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

.info-message {
  background-color: var(--light-green);
  border-left: 4px solid var(--primary-accent);
  padding: 16px;
  margin: 20px 0;
  border-radius: 4px;
  font-size: 16px;
}
