
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #1a1a1a;
  background: #f8f6f2;
  line-height: 1.6;
}


/* HEADER & NAVIGATION, Logo, Menü und mobiler Hamburger */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #f8f6f2;
  position: sticky; /* Header bleibt beim Scrollen oben */
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #111;
  font-family: "Playfair Display", serif;
}

.nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #b38b59;
}

.hamburger {
  display: none; /* Wird erst auf kleinen Bildschirmen angezeigt */
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}


/* HERO STARTSEITE, Grosser Startbereich auf index.php */
.hero {
  height: 420px;
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.45)
    ),
    url("alles.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 52px;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero p {
  font-size: 18px;
  opacity: 0.92;
}


/* KLEINER HERO, Unterseiten wie Contact und Action*/

.hero-small {
  height: 260px;
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.45)
    ),
    url("alles.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero-small h1 {
  font-size: 44px;
  font-family: "Playfair Display", serif;
  margin-bottom: 10px;
}

.hero-small p {
  font-size: 16px;
  opacity: 0.9;
}


/* BUTTONS - Wiederverwendbare Button-Styles */

.btn-primary {
  margin-top: 22px;
  padding: 14px 34px;
  border: none;
  background: #b38b59;
  color: white;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #9c7445;
  transform: translateY(-2px);
}

.btn-dark {
  margin-top: 16px;
  width: 100%;
  padding: 13px;
  background: #111;
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-dark:hover {
  background: #b38b59;
}


/*  FEATURES Karten auf der Startseite*/

.features {
  padding: 70px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); /* Automatisch responsive */
  gap: 20px;
}

.feature-card {
  background: white;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card h3 {
  font-family: "Playfair Display", serif;
  margin-bottom: 12px;
  color: #111;
}

.feature-card p {
  color: #666;
}


/* PRODUCTS - Produktbereich auf Startseite und Shop */

.products {
  padding: 70px 24px;
  padding-top: 40px; /* UrsprÃ¼ngliche Shop-Erweiterung bleibt erhalten */
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  color: #111;
}

.view-all {
  text-decoration: none;
  color: #b38b59;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.view-all:hover {
  opacity: 0.7;
}

.product-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); /* Produktkarten passen sich der Breite an */
  gap: 22px;
}

.product-card {
  background: white;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card h4 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 18px;
}

.product-card p {
  color: #666;
}

.product-card .price {
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.product-card .desc {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
  line-height: 1.4;
}

.img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #d9d2c3, #bfa98a);
  border-radius: 14px;
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}


/* STORY SECTION Bild/Text-Bereich auf der Startseite */

.story {
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr; /* Auf kleinen Bildschirmen einspaltig */
  gap: 30px;
  align-items: center;
}

.story-img {
  height: 320px;
  background-image: url("vorstellung.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
}

.story-text h5 {
  letter-spacing: 2px;
  font-size: 12px;
  color: #b38b59;
  margin-bottom: 12px;
}

.story-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin-bottom: 18px;
  color: #111;
}

.story-text p {
  line-height: 1.8;
  color: #555;
}

.learn-more {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
  color: #b38b59;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.learn-more:hover {
  opacity: 0.7;
}


/* CONTACT FORM Kontaktformular und Formularfelder */

.contact {
  padding: 70px 24px;
  padding-top: 40px; /* UrsprÃ¼nglicher Contact-Feinschliff bleibt erhalten */
  text-align: center;
  background: #f8f6f2;
}

.contact h2 {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  margin-bottom: 10px;
  color: #111;
}

.contact p {
  color: #666;
}

.contact-form {
  margin: 30px auto 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.contact-form label {
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-bottom: 16px;
  background: white;
  font-family: inherit;
  transition: border 0.3s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #b38b59;
}


/* FORM VALIDATION - Fehler- und Erfolgszustände für Formularfelder */

.error {
  color: #b00020;
  font-size: 13px;
  margin-top: -10px;
  margin-bottom: 12px;
  display: block;
}

.contact-form input.invalid,
.contact-form textarea.invalid,
.contact-form select.invalid{
  border: 2px solid #b00020;
  background: #fff5f5;
}

.contact-form input.valid,
.contact-form textarea.valid,
.contact-form select.valid{
  border: 2px solid #3c8c5a;
}


/*  CONTACT INFO - Infokarten auf der Kontaktseite */

.contact-info {
  padding: 60px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Karten werden automatisch responsive */
  gap: 20px;
  text-align: center;
}

.info-card {
  background: white;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
}

.info-card h3 {
  font-family: "Playfair Display", serif;
  margin-bottom: 10px;
  color: #111;
}

.info-card p {
  color: #666;
}


/* FAQ - Fragen und Antworten auf der Kontaktseite */

.faq {
  padding: 70px 24px;
  background: white;
  text-align: center;
}

.faq h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  margin-bottom: 30px;
  color: #111;
}

.faq-item {
  max-width: 700px;
  margin: 0 auto 18px;
  background: #f8f6f2;
  padding: 18px 22px;
  border-radius: 14px;
  text-align: left;
  transition: transform 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
}

.faq-item h4 {
  margin-bottom: 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #111;
}

.faq-item p {
  color: #666;
  margin: 0;
}


/*  SHOP HERO Titelbereich der Shop-Seite */

.shop-hero {
  padding: 80px 24px 40px;
  text-align: center;
  background: #f8f6f2;
}

.shop-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 44px;
  margin-bottom: 10px;
  color: #111;
}

.shop-hero p {
  color: #666;
  font-size: 16px;
}


/* SHOP FILTER  Filterbuttons auf der Shop-Seite */

.shop-filter {
  padding: 20px 24px 40px;
  display: flex;
  flex-wrap: wrap; /* Buttons springen auf die nächsten Zeile, wenn wenig Platz ist */
  justify-content: center;
  gap: 12px;
}

.filter-btn {
  padding: 10px 18px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #b38b59;
  color: white;
  border-color: #b38b59;
}


/* SHOP INFO BOXEn - Nachhaltigkeit, Impact und Handmade
 */

.shop-info {
  padding: 70px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive Boxen */
  gap: 20px;
  text-align: center;
}

.info-box {
  background: white;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.info-box:hover {
  transform: translateY(-4px);
}

.info-box h3 {
  font-family: "Poppins", sans-serif;
  margin-bottom: 10px;
  color: #111;
}

.info-box p {
  color: #666;
}


/* ACTION PAGE Impact-Anzeige */

.impact {
  padding: 70px 24px;
  text-align: center;
  background: #f8f6f2;
}

.impact h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  margin-bottom: 30px;
  color: #111;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Impact-Karten responsive */
  gap: 20px;
}

.impact-card {
  background: white;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-4px);
}

.impact-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  margin-bottom: 10px;
  color: #111;
}

.impact-number {
  font-size: 34px;
  font-weight: 700;
  color: #b38b59;
}


/* GAME SECTION Spielfläche und Punkteanzeige */

.game {
  padding: 70px 24px;
  text-align: center;
  background: white;
}

.game h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  margin-bottom: 10px;
  color: #111;
}

.game p {
  color: #666;
  margin-bottom: 30px;
}

.game-container {
  display: grid;
  grid-template-columns: 1fr; /* Standard: einspaltig */
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.game-area::before {
  content: "";

  position: absolute;
  top: 30px;
  left: -100px;

  width: 300px;
  height: 80px;

  background:
    radial-gradient(circle, white 35%, transparent 36%),
    radial-gradient(circle, white 35%, transparent 36%),
    radial-gradient(circle, white 35%, transparent 36%);

  background-size: 80px 80px;
  background-position:
    0 0,
    70px 10px,
    140px 0;

  opacity: 0.8;
} 

.game-area {
  position: relative;
  height: 350px;
  overflow: hidden;

  border-radius: 24px;

  background:
    linear-gradient(
      to bottom,
      #87ceeb 0%,
      #b8e6ff 40%,
      #d8f3dc 75%,
      #cce3b5 100%
    );

  display: flex;
  justify-content: center;
  align-items: center;

  border: 3px solid rgba(255,255,255,0.5);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.12),
    inset 0 -50px 60px rgba(0,0,0,0.08);
}

.game-area::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 90px;

  background:
    linear-gradient(
      to top,
      #6f9e52,
      #88b86a
    );

  border-top: 3px solid rgba(255,255,255,0.4);
}

.game-placeholder {
  color: rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

/* Dino wird per JavaScript erstellt */
/* DINO-SPIELFIGUR */
.dino {
  position: absolute; /* Freie Positionierung innerhalb des Spielbereichs */
  bottom: 85px;       /* 85px Abstand vom unteren Rand */
  left: 60px;         /* 60px Abstand vom linken Rand */
  font-size: 55px;    /* Größe des Dino-Emojis/Textes */
  z-index: 5;         /* Liegt vor Elementen mit kleinerem z-index */
  transition: transform 0.08s linear; /* Weiche Animation bei Änderungen von transform (z.B. beim Springen) */
  filter:
    drop-shadow(0 8px 10px rgba(0,0,0,0.25));   /* Schatten für mehr Tiefenwirkung */
}


/* HINDERNISSE
   Werden per JavaScript erzeugt */
.obstacle {
  position: absolute; /* Freie Positionierung im Spielbereich */
  bottom: 85px;       /* Gleiche Bodenhöhe wie der Dino */
  font-size: 42px;    /* Größe des Hindernisses */
  z-index: 5;         /* Gleiche Ebene wie der Dino */
  filter:
    drop-shadow(0 6px 8px rgba(0,0,0,0.2)); /* Leichter Schatten für einen 3D-Effekt */
}


/* INFO-BEREICH (z.B. Punkte, Highscore) */
.game-info {
  display: flex;   /* Flexbox aktivieren */
 flex-direction: column;   /* Elemente untereinander anordnen */
  gap: 18px; /* Abstand zwischen den Elementen */
  justify-content: center;   /* Vertikale Zentrierung */
  align-items: center;   /* Horizontale Zentrierung */
  background: white;   /* Weißer Hintergrund */
  padding: 30px;   /* Innenabstand */
  border-radius: 24px;   /* Abgerundete Ecken */
  box-shadow:   /* Weicher Schatten um die Box */
    0 15px 30px rgba(0,0,0,0.08);
}


/* ABSÄTZE INNERHALB DER INFO-BOX */
.game-info p {
  margin: 0;   /* Standardabstand von <p>-Elementen entfernen */
  color: #111;  
  font-weight: 500;
}


/*  ACTION INFO  Erklärung unter dem Game */

.action-info {
  padding: 70px 24px;
  text-align: center;
  background: #f8f6f2;
}

.action-info h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  margin-bottom: 12px;
  color: #111;
}

.action-info p {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
  line-height: 1.8;
}


/*  THANK YOU PAGE  Danke-Seite nach Kontaktformular */

.thankyou-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center; /* Box wird vertikal und horizontal zentriert */
  background: #f8f6f2;
  padding: 20px;
}

.thankyou-box {
  background: white;
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.thankyou-box h1 {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  margin-bottom: 15px;
  color: #111;
}

.thankyou-box p {
  color: #666;
  margin-bottom: 30px;
}


/*   FOOTER  */

.footer {
  width: 100%;
  box-sizing: border-box;
  background: #111111;
  color: #f5f5f5;
  padding: 70px 10%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col {
  text-align: center;
}

.footer-col h4 {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #d6b98c;
}

.footer-col a {
  display: block;
  color: #f5f5f5;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-col a:hover {
  color: #d6b98c;
}

.footer-col p {
  font-size: 14px;
  margin: 6px 0;
  color: #cccccc;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(214, 185, 140, 0.2);
  margin-top: 20px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #a8a8a8;
}


/*  RESPONSIVE DESIGN  Anpassungen für grössere und kleinere Bildschirme */

@media (min-width: 900px) {
  .story {
    grid-template-columns: 1fr 1fr; /* Story wird ab 900px zweispaltig */
  }

  .game-container {
    grid-template-columns: 2fr 1fr; /* Game links breiter, Info rechts schmaler */
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 360px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .section-header {
    flex-direction: column;
    gap: 10px;
  }

  .section-header h2,
  .story-text h2,
  .contact h2 {
    font-size: 30px;
  }

  .header {
    position: relative;
  }

  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .nav.active {
    display: flex; /* Wird durch JavaScript beim Klick auf Hamburger aktiviert */
  }

  .nav a {
    margin-left: 14px;
    font-size: 14px;
  }
  .footer {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 50px 24px;
    gap: 32px;
    text-align: center;
  }

  .footer-col {
    width: 100%;
  }
}


@media (max-width: 480px) {
  .contact-form {
    max-width: 100%;
    padding: 22px;
  }
}