/* Schriften liegen lokal, es wird nichts von Google geladen */
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("assets/fonts/opensans400.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url("assets/fonts/opensans600.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("assets/fonts/opensans700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-display: swap; src: url("assets/fonts/montserrat900.woff2") format("woff2"); }

* { box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.625;
  background: #fff;
  color: #26413a;
}
a { color: #3c5629; }
main { flex: 1 0 auto; width: 100%; margin: 0 auto; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- Balken oben: Menü, Logo, Warenkorb ---------- */
/* Bleibt oben fixiert. Beim Ausblenden wird "top" verschoben statt "transform",
   damit sich Fenster des PayPal-Warenkorbs weiter am Bildschirm ausrichten. */
/* overflow-anchor: sonst verschiebt der Browser beim Ein- und Ausblenden die Scrollposition */
.kopf { position: sticky; top: 0; z-index: 200; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08); transition: top 0.3s ease; overflow-anchor: none; }
.kopf.versteckt { top: -68px; }
html { scroll-padding-top: 60px; }
@media (prefers-reduced-motion: reduce) { .kopf { transition: none; } }
@media print { .kopf { position: static; box-shadow: none; } }
.kopf-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 60px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--rand);
}
.kopf { --rand: 20px; }
.logo img { display: block; width: 199px; height: auto; }

.menu { justify-self: start; }
.menu summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 50px;
  height: 50px;
  list-style: none;
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { width: 24px; height: 2px; background: #26413a; transition: transform 0.2s ease, opacity 0.2s ease; }
/* Geöffnet: aus den drei Strichen wird ein X zum Schließen */
.menu[open] summary span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* Abdunkelung hinter dem geöffneten Menü: Klick darauf schließt es */
.menu[open]::before { content: ""; position: fixed; top: 60px; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.3); }
.menu nav {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  z-index: 100;
  /* linke Kante der Menüpunkte genau unter dem X (16px = Abstand des X vom Rand des Balkeninhalts) */
  padding: 12px var(--rand) 24px calc(max(var(--rand), (100% - 980px) / 2 + var(--rand)) + 16px);
  background: #fff;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
  color: #26413a;
  font-weight: 700;
  font-size: clamp(11px, 3.1vw, 18px); /* so passt die längste Zeile auch am Handy */
  text-align: left;
  text-transform: uppercase;
}
.menu nav a {
  display: block;
  width: fit-content;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
}
.menu-zeile { display: flex; align-items: center; gap: 0.4em; white-space: nowrap; }

/* PayPal-Warenkorbknopf im Stil des Warenkorb-Symbols */
.korb { justify-self: end; }
.korb #cart-btn { padding: 0 8px; background: transparent; color: #26413a; }
.korb #cart-btn svg { width: 28px; height: 28px; }
.korb #cart-btn svg path { fill: #26413a; }

@media (max-width: 480px) {
  .kopf { --rand: 8px; }
  .logo img { width: 171px; }
}

/* ---------- Anfang der Startseite ---------- */
.hero {
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  min-height: clamp(420px, calc(100vh - 60px), 765px);
  padding: 40px 20px;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom center; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.28); } /* damit die weiße Schrift lesbar bleibt */
.hero-inhalt { position: relative; z-index: 1; max-width: 1000px; color: #fff; text-align: center; }
.hero h1 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 8.2vw, 60px);
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero h1 span { display: block; }
.hero a {
  display: inline-block;
  margin-top: 44px;
  padding: 16px 44px;
  background: #3c5629;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
}

.intro { max-width: 980px; margin: 0 auto; padding: 70px 20px 30px; text-align: center; }
.intro img { display: block; width: min(600px, 100%); height: auto; margin: 0 auto 28px; }
.intro p { margin: 0 0 20px; }
.intro .abstand { margin-top: 46px; }
.intro h2 { margin: 20px 0; font-family: "Montserrat", sans-serif; font-weight: 900; font-size: clamp(19px, 5vw, 24px); line-height: 1.5; }

/* ---------- Produkte ---------- */
.shop { max-width: 1100px; padding: 0 20px 60px; }
.shop .shop-titel { margin: 48px 0 32px; font-family: "Montserrat", sans-serif; font-weight: 900; font-size: clamp(40px, 6vw, 56px); line-height: 1.2; letter-spacing: 1px; text-align: center; }
.shop .gruppe {
  margin: 32px 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #758560;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.25;
}
.produkte {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  grid-auto-rows: 1fr; /* alle Karten gleich hoch */
  gap: 20px;
}
.shop article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e2e2de;
  border-radius: 12px;
}

/* Buttons unten bündig. Nutzt Namen aus dem PayPal-Widget:
   ändert PayPal diese, bleiben die Karten trotzdem gleich hoch. */
article paypal-add-to-cart-button,
article [id^="paypal-form-fields-container-"],
article [id^="form-container-"] {
  display: flex;
  flex-direction: column;
  flex: 1;
}
article .item-title { display: block; min-height: 2lh; } /* Platz für 2 Titelzeilen */
/* Platz für 5 Beschreibungszeilen, damit die Karten auch zwischen den Gruppen gleich hoch sind */
article .item-description { flex-grow: 1; min-height: 5lh; }

/* ---------- Abschnitt Amazon ---------- */
.amazon-karte {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, #26413a, #3c5629);
  box-shadow: 0 10px 24px rgba(38, 65, 58, 0.18);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.amazon-karte:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(38, 65, 58, 0.28); }
.amazon-karte:focus-visible { outline: 3px solid #f3a847; outline-offset: 3px; }
/* Logo links und Button rechts sind gleich groß */
.amazon-logo, .amazon-knopf {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 244px;
  height: 68px;
  border-radius: 12px;
}
.amazon-logo { background: #fff; }
.amazon-logo img { display: block; width: 200px; height: auto; }
.amazon-text { flex: 1; }
.amazon-text strong { display: block; margin-bottom: 4px; font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 22px; line-height: 1.3; }
.amazon-text > span { display: block; color: #e4eadd; }
.amazon-knopf { gap: 8px; background: #f3a847; color: #1d1d1b; font-weight: 700; font-size: 22px; white-space: nowrap; }
@media (max-width: 900px) {
  .amazon-karte { flex-direction: column; gap: 18px; padding: 24px 20px; text-align: center; }
  .amazon-logo, .amazon-knopf { width: min(244px, 100%); }
}
@media (prefers-reduced-motion: reduce) { .amazon-karte { transition: none; } }

/* ---------- Textseiten (Impressum, AGB, ...) ---------- */
.text { max-width: 788px; padding: 0 20px 60px; overflow-wrap: anywhere; }
.text h1 {
  margin: 50px 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(23px, 6.4vw, 30px); /* lange Wörter passen auch am Handy */
  line-height: 1.25;
  text-align: center;
  hyphens: auto;
}

.text h2 { margin: 40px 0 12px; font-size: 19px; line-height: 1.35; scroll-margin-top: 20px; }
.text address { font-style: normal; }
.text dt { margin-top: 14px; font-weight: 700; }
.text dd { margin: 0; }
.stand { color: #5f7048; font-size: 14px; text-align: center; }
.inhalt { margin: 28px 0; padding: 8px 20px; background: #f4f6f1; border-radius: 12px; }
.karte { margin: 16px 0; padding: 16px 20px; border: 1px solid #dfe4d8; border-radius: 12px; }
/* ---------- Widerrufsformular ---------- */
.wf { margin-top: 24px; }
.wf-an { margin-bottom: 16px; padding: 14px 20px; background: #f4f6f1; border-radius: 12px; }
.wf fieldset { min-width: 0; margin: 0 0 16px; padding: 4px 20px 20px; border: 1px solid #dfe4d8; border-radius: 12px; }
.wf legend { padding: 0 8px; font-weight: 700; }
.wf fieldset p { margin: 10px 0; }
.wf .titel { display: block; margin: 16px 0 6px; font-weight: 600; }
.wf small { display: block; margin-top: 4px; color: #5f7048; }
.wf input:not([type="radio"]), .wf textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #aab59c;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.wf textarea { field-sizing: content; min-height: 74px; resize: vertical; }
.wf input:focus-visible, .wf textarea:focus-visible { outline: 2px solid #26413a; outline-offset: 1px; }
.wf ::placeholder { color: #8b9481; }

/* Ankreuzfelder als gut anklickbare Flächen */
.wahl { display: flex; flex-wrap: wrap; gap: 10px; }
.wahl label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid #aab59c;
  border-radius: 6px;
  cursor: pointer;
}
.wahl label:has(input:checked) { border-color: #26413a; background: #eef2e9; font-weight: 600; box-shadow: inset 0 0 0 1px #26413a; }
.wahl input { width: 18px; height: 18px; margin: 0; accent-color: #26413a; }

.datumszeile { display: flex; flex-wrap: wrap; gap: 10px; }
.wf .datumszeile input[type="date"] { flex: 1 1 170px; width: auto; }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 20px; align-items: end; }
.wf .linie { height: 46px; border-bottom: 1px solid #758560; }
.pflicht { color: #8a1f11; font-weight: 700; }
.wf .zusatz { color: #5f7048; font-weight: 400; }

.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }
.meldung { color: #8a1f11; font-weight: 700; }
.meldung:empty { display: none; }

@page { margin: 16mm; }
@media print {
  .nicht-drucken { display: none !important; }

  /* Formular im Ausdruck: nur Schreiblinien statt Eingabekästen, passt auf eine A4-Seite */
  .wf { margin-top: 3mm; }
  .wf-an { display: flex; gap: 4mm; margin-bottom: 3mm; padding: 0; background: none; }
  .wf fieldset { margin-bottom: 2.5mm; padding: 0 4mm 3mm; border-radius: 2mm; break-inside: avoid; }
  .wf fieldset p { margin: 1mm 0; }
  .wf .titel { margin: 2mm 0 0; }
  .wf input:not([type="radio"]), .wf textarea {
    min-height: 7mm;
    padding: 0.5mm 0;
    border: 0;
    border-bottom: 1px solid #758560;
    border-radius: 0;
    background: none;
  }
  .wf textarea { min-height: 11mm; resize: none; }
  .wf ::placeholder, .wf input[data-leer], .wf input[data-leer]::-webkit-datetime-edit { color: transparent; }
  .wf input::-webkit-calendar-picker-indicator { display: none; }
  .wahl label, .wahl label:has(input:checked) { min-height: 0; padding: 0.5mm 6mm 0.5mm 0; border: 0; background: none; box-shadow: none; }
  .wf .linie { height: 11mm; }
  .wf .zwei input:not([type="radio"]) { min-height: 11mm; } /* Datum auf gleicher Höhe wie Unterschrift */

  /* Knopf "Formular drucken": alles außer dem Formular ausblenden */
  body.nur-formular { display: block; min-height: 0; font-size: 10.5pt; line-height: 1.35; }
  body.nur-formular .kopf,
  body.nur-formular .fuss,
  body.nur-formular .text > :not(.druckbereich) { display: none; }
  body.nur-formular .text { max-width: none; padding: 0; }
  body.nur-formular .text h2 { margin: 0 0 2mm; }
  body.nur-formular .druckbereich > p { margin: 0; }
}

.text table { width: 100%; border-collapse: collapse; font-size: 15px; overflow-wrap: normal; hyphens: auto; }
.text th, .text td { padding: 10px 8px; border-bottom: 1px solid #dfe4d8; text-align: left; vertical-align: top; }

.knopf {
  display: inline-block;
  padding: 11px 22px;
  border: 0;
  border-radius: 4px;
  background: #26413a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.text a.knopf { color: #fff; }

.falle { position: absolute; left: -10000px; }

/* ---------- Fußzeile ---------- */
.fuss { padding: 40px 0; background: #242424; color: #fff; font-size: 14px; }
.fuss-inner { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss nav a {
  display: block;
  padding: 3px 0;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.fuss .social { display: flex; gap: 20px; margin: 30px 0 10px; }
.fuss p { margin-bottom: 0; }
.fuss a.knopf-hell { background: #fff; color: #242424; }

/* ---------- Anpassungen für Handy und Tablet (muss am Ende stehen) ---------- */
.hero picture { display: contents; }
.hero source { display: none; } /* sonst belegt es eine eigene Zeile und der Titel rutscht nach unten */

/* Handy quer: Titel und Knopf passen ohne Scrollen auf den Bildschirm */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); padding: 12px 20px; }
  .hero h1 { font-size: clamp(20px, 8vh, 40px); }
  .hero a { margin-top: 16px; padding: 10px 32px; font-size: 17px; }
}

/* Eine Produktspalte: Karten nur so hoch wie ihr Inhalt */
@media (max-width: 659.98px) {
  .produkte { grid-auto-rows: auto; }
  article .item-title, article .item-description { min-height: 0; }
}

/* Sehr schmale Handys: Abstand zwischen Logo und Warenkorb */
@media (max-width: 360px) {
  .logo img { width: 146px; }
}

/* Mit dem Finger gut treffbare Links in der Fußzeile */
@media (max-width: 1024px), (pointer: coarse) {
  .fuss nav a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .fuss .social { margin-top: 20px; }
  .fuss .social a { display: inline-flex; align-items: center; min-height: 44px; }
}
