/* ============================
   Farben vom Logo
   ============================ */
:root {
  --dark-green: #2f4f4f;
  --forest-green: #3b6e4d;
  --brown: #8b5a2b;
  --beige: #f5f5dc;
  --white: #fff;
  --hellgrün: #28a745;
/*  --übelstes hellgrün: #eaf2e0
   --pastellgrün: #E9F5E1
   -- mintgrün: #D5E8D4
   -- hellbeige: #F4ECE2
   -- sandbeige: #E3D5C3
   -- ockerbeige: #D2C1AE
   -- kaki: #BDB76B
   -- grau: #D6D6D6
   -- dunkelorange: #FF8C00
   */
}

/* ============================
   Reset
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

/* ============================
   Header fixiert
   ============================ */
header {
  position: fixed;      /* immer oben kleben */
  top: 0;
  left: 0;
  width: 100%;          /* volle Breite */
  background: var(--dark-green);
  color: var(--white);
  padding: 0.5rem 0;
  z-index: 1000;

  /* Rechteckige Einbuchtung unten in der Mitte */
  clip-path: polygon(
     0 0, 
    100% 0, 
    100% 90%, 
    calc(88% - 50px) 90%, 
    78% 35%, 
    18% 35%, 
    calc(9% + 50px) 90%, 
    0 90%
  );
}

/* Platzhalter, damit der Inhalt nicht unter dem Header rutscht */
body {
  font-family: Arial, sans-serif;
  background: var(--beige);
  color: var(--dark-green);
  line-height: 1.6;
  padding-top: 80px; /* Höhe vom Header ausgleichen */
}

/* Mobile: ohne Einbuchtung */
@media (max-width: 650px) {
  header {
    clip-path: none;
  }
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* wichtig für absolute Platzierung vom Burger */
}

.logo img {
  display: flex;
  width: 120px;
  height: auto;
  padding-left: 15px; /* Abstand links */
}

.cart-btn {
  flex: 0 !important;
  display: inline-block;
  width: auto;
  margin-right: 15px; /* Abstand rechts */
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.45),
    inset 0 3px 6px rgba(255,255,255,0.6);
}

/* ============================
   Navigation Desktop
   ============================ */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--white);
  font-weight: bold;
  transition: color 0.3s;
  display: inline-block;
  line-height: 1;

  position: relative;
  top: -40px; /* Desktop: hochschieben */
}

nav ul li a:hover {
  color: var(--brown);
}

/* ============================
   Burger Standard
   ============================ */
.burger {
  display: none; /* erst im Mobile sichtbar */
  cursor: pointer;
  user-select: none;

  position: absolute;   /* absolute Zentrierung */
  left: 50%;
  transform: translateX(-50%);

  font-size: 2.5rem; /* Größe einstellen */
  line-height: 1;    /* vertikale Zentrierung */
}

/* ============================
   Responsive Navigation
   ============================ */
@media (max-width: 550px) {
  /* Normale Nav ausblenden */
  nav ul {
    display: none;
    flex-direction: column;
    background: #f5f5dc;
    position: absolute;
    top: 100%;               /* direkt unter Burger */
    left: 50%;               /* horizontal zentrieren */
    transform: translateX(-50%);
    min-width: 180px;        /* Breite flexibel, aber nicht zu klein */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 10px;
    z-index: 999;
  }

  nav ul.nav-active {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
    text-align: center; /* zentrierte Links */
  }

  nav ul li a {
    top: 0; /* Mobile: NICHT hochschieben */
    color: var(--dark-green);
  }

  .burger {
    display: flex; /* hier wird er aktiv */
  }
}


/* ============================ 
Hero Section (Startseite) 
============================ */ 

.hero { background: url("assets/wald.jpg") 
   no-repeat center center/cover; 
       color: var(--white); 
       text-align: center; 
       min-height: 100vh; /* mindestens volle Höhe */ 
       height: auto; /* wächst mit Inhalt */ 
       display: flex; 
       align-items: center; 
       justify-content: center; 
       position: relative; 
       margin-top: -40px; /* Höhe des Headers */ 
      }
}
.hero::after { 
   content: ""; 
   position: absolute; 
   top: 0; 
   left: 0; 
   width: 100%; 
   height: 100%; 
   background: rgba(47, 79, 79, 0.6); 
} 
.hero-content { 
   position: relative; 
   z-index: 1; 
} 
.hero h1 { 
   font-size: 3rem; 
   margin-bottom: 1rem; 
} 
.hero p { 
   font-size: 1.2rem; 
   margin-bottom: 2rem; 
} 
.hero-logo { 
   max-width: 300px; 
   margin-top: 3rem; /* schiebt das Logo nach unten */ 
   margin-bottom: 0rem; /* falls du Abstand nach unten brauchst */ 
   filter: drop-shadow(0 0 10px rgba(0,0,0,0.7)); 
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;          /* Optional, falls du es zentriert willst */
  text-align: center;
  margin: 0;
  padding: 0;
}

.hero-big {
  font-size: 2.5rem;            /* große H1-Schrift */
  font-weight: 700;
}

.hero-small {
  font-size: 1.5rem;              /* kleinere Schrift */
  font-weight: 400;
}

/* ============================
   Anpassung für Handy-Querformat
   ============================ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 140vh; /* mehr Platz geben */
  }

  .hero h1 {
    font-size: 2rem; /* Schrift verkleinern */
  }

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

  .hero-logo {
    max-width: 200px;
    margin-top: 3rem;
  }
}

.saubere-liste {
  list-style-position: outside;    /* Bullet bleibt außerhalb des Textblocks */
  margin-left: 1.2em;              /* Abstand links */
  padding-left: 0;                 /* Verhindert doppelte Einrückung */
}

.saubere-liste li {
  margin-bottom: 0.5em;            /* Optional: Abstand zwischen den Punkten */
}

/* ============================
   Allgemeine Buttons
   ============================ */
.btn {
  background: var(--forest-green);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
  cursor: pointer;
  border: none;
    box-shadow: 
    0 8px 16px rgba(0,0,0,0.45),
    inset 0 3px 6px rgba(255,255,255,0.6);
}

.btn:hover {
  background: #28a745;
}

.pay-btn {
  width: 100%;
  background-color: #FF7000; /* dunkleres Orange */
  color: white;
  display: block;
  padding: 14px;
  font-size: 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.45),
    inset 0 3px 6px rgba(255,255,255,0.6);
  transition: background 0.3s;
}

.pay-btn:hover {
  background-color: #FF7000; /* gleiches dunkles Orange beim Hover */
}
.pay-btn {
  width: 100%;
  background-color: #B33A00 !important; /* dunkleres Orange */
  color: white !important;
  display: block;
  padding: 14px;
  font-size: 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.45),
    inset 0 3px 6px rgba(255,255,255,0.6);
  transition: background 0.3s;
}

.pay-btn:hover {
  background-color: #FF7000 !important; /* gleiches dunkles Orange beim Hover */
}


/* 🟠 Warenkorb Button */
.cart-btn {
  background-color: orange;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.cart-btn:hover {
  background-color: darkorange;
}

/* 🟢 Add-to-Cart Buttons */
.add-btn {
  background-color: #3b6e4d;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 8px;
}

.add-btn:hover {
  background-color: #28a745;
}

.btn {
  background: var(--forest-green);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn:hover {
  background: #28a745;
}

.cta {
  text-align: center;    /* zentriert den Button */
  margin-top: 20px;      /* Abstand nach oben */
}

/* rotes X oben rechts im Warenkorb */
.cart-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
  color: #d00000;
  font-weight: bold;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cart-close:hover {
  color: #ff0000;
  transform: scale(1.15);
}

/* wichtig, damit absolute Positionierung im Container funktioniert */
#cart {
  position: relative;
}

.back-home-btn {
    position: absolute;
    top: 20px;       /* Abstand vom oberen Rand */
    left: 20px;      /* Abstand vom linken Rand */
    z-index: 9999;   /* damit er über allem liegt */
}

/* ============================
   Footer
   ============================ */
footer {
  background: var(--dark-green);
  color: var(--white);
  text-align: center;
  padding: 20px 10px;
  margin-top: 40px;
  width: 100%; /* immer über gesamte Breite */
}

footer a {
  color: var(--white);
  text-decoration: underline;
}

/* Body als Flex-Container */
html, body {
  height: 100%;             /* Höhe auf ganze Seite */
  margin: 0;
  display: flex;
  flex-direction: column;   /* Header, Main, Footer untereinander */
}

/* Main soll den restlichen Platz füllen */
main {
  flex: 1;
}

/* ============================
   Kontakt-Seite
   ============================ */
.kontakt-section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.kontakt-section h1 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--dark-green);
}

.kontakt-info {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.kontakt-info a {
  color: var(--forest-green);
  text-decoration: none;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kontakt-form input,
.kontakt-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.kontakt-form button {
  background: var(--forest-green);
  color: white;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.kontakt-form button:hover {
  background: #28a745;
}

.kontakt-title {
  text-align: center;
  color: var(--dark-green);
  margin-top: 4rem;
  margin-bottom: -2rem;
  font-size: 2.5rem; /* optional, damit es wie eine H1 wirkt */
}

.danke-section {
  min-height: 70vh; /* oder 100vh, wenn du die Seite komplett füllen willst */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

/* ============================
   Zusatzinfos auf Kurse-Seite
   ============================ */
.preis-info {
  margin-top: 3rem;
  background: #eaf2e0;
  padding: 2rem;
  border-radius: 12px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.preis-info h2 {
  margin-bottom: 1rem;
  color: var(--forest-green);
}

.preis-info ul {
  list-style: none;
  padding: 0;
}

.preis-info ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ccc;
}

.preis-info ul li:last-child {
  border-bottom: none;
}

/* ============================
   Shop-Seite
   ============================ */
.shop-section {
 max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
}

.shop-section h1 {
  margin-bottom: 2rem;
  color: var(--dark-green);
}

.terminfenster {
  background-color: #fff;
  border: 1px solid #A8C4AE;
  padding: 8px;
  border-radius: 6px;
  color: #000;
  width:100%; 
  max-width:320px;
}

.terminfenster option:hover {
  background-color: #D5E8D4;
}

.terminfenster option:checked {
  background-color: #28a745;
  color: #000;
}

/* Farbe der aktuell ausgewählten Option */
.terminfenster option:checked {
  background-color: #C1D7C4 !important;  /* sanftes Grün */
  color: #000;
}

/* Entfernt die Standard-Markierung in Firefox */
.terminfenster {
  color: #000;
  appearance: none;
}

.product-kitpic img {
  display: block;
  width: 80%;
  max-width: 100%;
  height: auto;
  margin: 0 !important;       /* überschreibt .product img */
  margin-left: 0 !important;  /* sicherstellen */
  margin-right: auto !important;
}
/* ============================
   Inhaltsboxen
   ============================ */

.product {
  margin-top: 3rem;
  background: #eaf2e0;
  padding: 2rem;
  border-radius: 12px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  scroll-margin-top: 80px; /* Höhe deines Headers */
}

.product img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-voucherpic img {
  display: block;
  width: 50%;
  max-width: 100%;
  height: auto;
  margin: 0 !important;       /* überschreibt .product img */
  margin-left: 0 !important;  /* sicherstellen */
  margin-right: auto !important;
}

.product-figure figcaption {
  font-size: 0.7rem;
  color: #555;
  margin-top: 0.0rem;
  font-style: italic;
}
.product h2 {
  margin-bottom: 1rem;
  color: var(--dark-green);
}

.product p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.product input {
  padding: 0.5rem;
  margin: 0.5rem 0 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100px;
  text-align: center;
}
/* Highlight-Effekt für angesprungene Kurs-Blöcke */
.product:target {
  animation: highlight 1.5s ease;
}

@keyframes highlight {
  0%   { box-shadow: 0 0 20px rgba(40, 167, 69, 0.8); }
  100% { box-shadow: none; }
}


/* Buttons für Kurse nebeneinander ohne Umbruch */
.kurs-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: nowrap;         /* niemals umbrechen */
}

.kurs-buttons .btn {
  white-space: nowrap;       /* Buttontext bleibt in einer Zeile */
  flex: 0 0 auto;            /* Button schrumpft nicht */
}

/* =========================================================
   ➕➖ Warenkorb-Layout (NEU)
   ========================================================= */
.cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.cart-item span {
  white-space: pre-line;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-controls button {
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px 8px;
  font-size: 14px;
  line-height: 1;
}
.cart-controls button:hover {
  background: #ddd;
}

.cart-qty {
  min-width: 24px;
  text-align: center;
  font-weight: bold;
}

.cart-price {
  min-width: 70px;
  text-align: right;
  font-weight: bold;
  color: var(--dark-green);
}

.cart-total {
  text-align: right;
  font-weight: bold;
  margin-top: 8px;
}

.paypal-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 1.5rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--forest-green);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  font-family: inherit;
  z-index: 999999;
}

.paypal-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

.paypal-banner a {
  color: var(--forest-green);
  text-decoration: underline;
  font-weight: 500;
}

.paypal-banner button {
  background: var(--forest-green);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 0.95rem;
}

.paypal-banner button:hover {
  background: var(--dark-green);
}
/* ============================
   Warenkorb Button Animation
   ============================ */
@keyframes cart-bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.2); }
  50%  { transform: scale(0.9); }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

   #cart-toggle.bounce {
  animation: cart-bounce 0.6s ease;
}

.cart-btn.added {
  animation: cart-bounce 0.4s ease;
}
.kurs-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;   /* ❌ kein Umbruch */
}

.kurs-buttons .btn {
  white-space: nowrap; /* Buttontext bleibt in einer Zeile */
  flex: 0 0 auto;      /* Button schrumpft nicht */
}

.cart-discount {
  margin-top: 1rem;
  padding: 0.5rem;
  border-top: 1px solid #ddd;
}

.cart-discount label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.cart-discount input {
  padding: 0.4rem;
  width: 60%;
  max-width: 200px;
  margin-right: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.cart-discount button {
  background: var(--forest-green);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
}

.cart-discount button:hover {
  background: var(--dark-green);
}

#voucherMessage {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.hidden {
    display: none !important;
}


/* ================================
   🛒 Warenkorb Design & Animation
   ================================ */
#cart {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 340px;
  max-width: 90vw;
  max-height: 80vh;
  background: white;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  padding: 16px;
  z-index: 1000;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#cart.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#cart h3 {
  margin: 0 0 10px 0;
}

#cart ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

#cart .close-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
}

#voucherMessage.success {
  background: #e6f9e6;
  border: 1px solid #7ac97a;
  color: #3b6e4d;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 500;
}

.agb-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.agb-container .agb-title {
  font-size: clamp(1.2rem, 5vw, 2rem);
  line-height: 1.25;
  overflow-wrap: anywhere; /* verhindert Textüberlauf */
  word-break: break-word;
}
