:root {
  --color-bg: #F3F9F8;
  --color-primary: #406F65;
  --color-accent: #77B7A9;
  --color-gold: #D7C23E;
  --color-white: #FFFFFF;
  --color-dark: #1a1a1a;
  --color-text: #333333;
  --spacing-xl: 200px;
  --spacing-lg: 60px;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Roboto Condensed', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.69;
  font-size: 17px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.4px;
  font-family: 'Roboto Condensed', sans-serif;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 20px;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 30px;
}

h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
  line-height: 1.69;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  width: 100%;
  max-width: 100%;
}

section {
  padding: 100px 20px;
}

section.full-width {
  padding: 0;
  margin-bottom: 100px;
}

header {
  background-color: var(--color-white);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

nav {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.hero {
  height: 100vh;
  background-image: url('images/hero-alpine.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 900px;
  padding: 40px;
  animation: fadeInScale 0.8s ease;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.3rem;
  color: var(--color-white);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

section.staerke,
section.bedeutung,
section.wissenschaft,
section.tabelle,
section.geschichte,
section.faq,
section.hinweis,
section.final {
  background-color: var(--color-white);
  padding: 150px 20px;
}

section.alpenstaerke,
section.alltag,
section.kontakt {
  background-color: var(--color-bg);
  padding: 150px 20px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 0.6s ease;
}

.product-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 40px rgba(64, 111, 101, 0.2);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.product-card-content {
  padding: 30px;
}

.product-card h3 {
  color: var(--color-primary);
  margin-bottom: 15px;
}

.product-card p {
  color: var(--color-text);
  font-size: 0.95rem;
}

.infographic {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 60px 40px;
  border-radius: var(--radius);
  margin: 40px 0;
  text-align: center;
}

.infographic h3 {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: 20px;
}

.nutrients-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  background: var(--color-white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.nutrients-table thead {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.nutrients-table th,
.nutrients-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.nutrients-table tbody tr:hover {
  background-color: var(--color-bg);
}

.faq-section {
  margin: 40px 0;
}

.faq-item {
  background: var(--color-bg);
  padding: 30px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-gold);
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.faq-item.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.faq-item.active h3 {
  color: var(--color-gold);
}

.faq-item h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-item h3::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active h3::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 20px;
}

.faq-answer p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.disclaimer {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 25px;
  margin: 40px 0;
  border-radius: var(--radius);
}

.disclaimer h3 {
  color: #856404;
}

.disclaimer p {
  color: #856404;
  font-size: 0.95rem;
}

.contact-form {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 40px auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-primary);
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(64, 111, 101, 0.1);
}

.form-disclaimer {
  background: #e8f4f8;
  border-left: 4px solid var(--color-accent);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--color-text);
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--color-white);
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(64, 111, 101, 0.3);
}

.btn:active {
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 20px 40px;
  margin-top: 100px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--color-gold);
  margin-bottom: 20px;
}

.footer-section p {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.4s ease;
}

.cookie-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 250px;
}

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

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cookie-btn.accept {
  background-color: var(--color-gold);
  color: var(--color-primary);
}

.cookie-btn.accept:hover {
  background-color: #c9b01a;
}

.cookie-btn.decline {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

.cookie-btn.decline:hover {
  background-color: rgba(255,255,255,0.1);
}

.cookie-btn.learn {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.cookie-btn.learn:hover {
  background-color: #66a198;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: var(--color-white);
  margin: auto;
  padding: 40px;
  border-radius: var(--radius);
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: slideDown 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 20px;
}

.modal-header h2 {
  color: var(--color-primary);
  margin: 0;
}

.close-modal {
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--color-text);
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
}

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

.modal-body h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.modal-body p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.modal-body ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.modal-body li {
  margin-bottom: 8px;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.success-message {
  display: none;
  background-color: #d4edda;
  color: #155724;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border-left: 4px solid #28a745;
}

.success-message.show {
  display: block;
  animation: slideDown 0.3s ease;
}

.section-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 60px 0;
}

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

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

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 60px 20px;
  }

  nav {
    gap: 15px;
  }

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

  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

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

  .modal-content {
    padding: 25px;
    width: 95%;
  }

  nav {
    display: none;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}
