/* ============================================================
   Gutscheine (27.10.2026) – nur auf /gutscheine/ geladen
   (seite.php fügt gutscheine-inhalt.html ein). Farben und
   Schrift kommen aus main.css (:root).
   ============================================================ */

/* Auf dieser Seite nur Seitenkopf und Gutscheine zeigen */
html[data-seite="gutscheine"] body > section:not(.seitenkopf):not(#gutscheine),
html[data-seite="gutscheine"] #plan-leiste,
html[data-seite="gutscheine"] .sprung-menue,
html[data-seite="gutscheine"] .wa-knopf {
  display: none !important;
}

.gs {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  color: var(--txt-color);
  font-family: var(--font-family);
}
.gs [hidden] { display: none !important; }

.gs-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .gs-raster { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
}

/* ---------- Vorschau-Karte ---------- */
.gs-links { position: sticky; top: calc(var(--header-hoehe) + 1.25rem); }
@media (max-width: 860px) { .gs-links { position: static; } }

.gs-karte {
  position: relative;
  aspect-ratio: 210 / 148;
  border-radius: 14px;
  background: #fbfaf5;
  color: #1f1d1a;
  padding: 7% 8% 6%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(150, 191, 12, 0.35);
}
.gs-karte-band {
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: var(--accents);
}
.gs-karte::after {
  /* dezenter grüner Bogen rechts unten */
  content: "";
  position: absolute;
  right: -18%;
  bottom: -38%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 14px solid rgba(150, 191, 12, 0.18);
}
.gs-karte-logo { width: 34%; height: auto; margin-bottom: auto; }
.gs-karte-titel {
  margin: 0;
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #4d6a0c;
}
.gs-karte-betrag {
  margin: 0.1em 0 0.15em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 1;
  font-weight: 700;
}
.gs-karte-text {
  margin: 0 0 0.6em;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  font-style: italic;
  max-width: 85%;
  overflow-wrap: anywhere;
  min-height: 1.3em;
}
.gs-karte-fuss { margin: 0; font-size: clamp(0.65rem, 1.8vw, 0.8rem); color: #5e5a52; }

.gs-vorteile {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.gs-vorteile li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 1rem;
  line-height: 1.45;
}
.gs-vorteile li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.32em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 3px solid var(--accents);
  border-bottom: 3px solid var(--accents);
  transform: rotate(-45deg);
}
.gs-hinweis {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: var(--bg-cards);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Formular ---------- */
.gs-form {
  background: var(--bg-cards);
  border: 1px solid rgba(150, 191, 12, 0.35);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1rem;
}
@media (max-width: 520px) { .gs-form { padding: 1.25rem 1rem 0.75rem; } }

.gs-block { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.gs-legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  margin-bottom: 0.9rem;
  font-weight: var(--weight-headlines);
  font-size: 1.1rem;
}
.gs-schritt {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--cta-color);
  color: var(--cta-text);
  font-size: 0.9rem;
}
.gs-optional { font-weight: 400; font-size: 0.85rem; opacity: 0.75; }

/* Betrags-Kacheln */
.gs-betraege {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.gs-chip { position: relative; cursor: pointer; }
.gs-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gs-chip span {
  display: grid;
  place-items: center;
  min-height: 3rem;
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(250, 250, 247, 0.25);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  transition: border-color 0.15s, background-color 0.15s;
}
.gs-chip-anders { grid-column: span 3; }
.gs-chip-anders span { font-weight: 600; font-size: 0.95rem; min-height: 2.6rem; }
.gs-chip:hover span { border-color: var(--accents); }
.gs-chip input:checked + span { background: var(--cta-color); color: var(--cta-text); border-color: var(--cta-color); }
.gs-chip input:focus-visible + span,
.gs-option input:focus-visible + .gs-option-text { outline: 2px solid var(--hover-color); outline-offset: 2px; }
.gs-anders { margin: 0.9rem 0 0; }

/* Anzahl */
.gs-anzahl { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }
.gs-anzahl > label { font-size: 0.95rem; }
.gs-zaehler { display: flex; align-items: center; }
.gs-zaehler input {
  width: 3.4rem;
  height: 2.6rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--txt-color);
  background: var(--bg-color);
  border: 1px solid rgba(250, 250, 247, 0.25);
  border-left: 0;
  border-right: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.gs-zaehler input::-webkit-outer-spin-button,
.gs-zaehler input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gs-zaehler-btn {
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--txt-color);
  background: var(--bg-color);
  border: 1px solid rgba(250, 250, 247, 0.25);
  cursor: pointer;
}
.gs-zaehler-btn:first-child { border-radius: 8px 0 0 8px; }
.gs-zaehler-btn:last-child { border-radius: 0 8px 8px 0; }
.gs-zaehler-btn:hover { border-color: var(--accents); color: var(--accents); }

/* Versand-Optionen */
.gs-versand { display: grid; gap: 0.6rem; }
.gs-option { position: relative; display: block; cursor: pointer; }
.gs-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gs-option-text {
  display: block;
  padding: 0.8rem 1rem 0.8rem 2.9rem;
  border-radius: 8px;
  border: 1px solid rgba(250, 250, 247, 0.25);
  position: relative;
  transition: border-color 0.15s;
}
.gs-option-text::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: -0.55rem;
  border-radius: 50%;
  border: 2px solid rgba(250, 250, 247, 0.5);
}
.gs-option-text strong { display: block; font-size: 1rem; }
.gs-option-text small { display: block; font-size: 0.85rem; opacity: 0.8; margin-top: 0.15rem; }
.gs-option:hover .gs-option-text { border-color: var(--accents); }
.gs-option input:checked + .gs-option-text { border-color: var(--accents); background: rgba(150, 191, 12, 0.1); }
.gs-option input:checked + .gs-option-text::before { border-color: var(--accents); background: radial-gradient(circle, var(--accents) 0 45%, transparent 50%); }

.gs-empfaenger { margin-top: 1rem; }
.gs-empfaenger-felder, #gs-empfaenger-felder { margin-top: 0.9rem; }

.gs-check { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; font-size: 0.95rem; line-height: 1.45; }
.gs-check input { width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; flex: 0 0 auto; accent-color: var(--accents); }
.gs-check a { color: var(--accents); }

.gs-zeichen { margin: 0.1rem 0 0; font-size: 0.8rem; opacity: 0.7; text-align: right; }

/* Summe */
.gs-summe {
  border-top: 1px solid rgba(250, 250, 247, 0.2);
  padding-top: 1rem;
  margin: 0 0 1.25rem;
}
.gs-summe-zeile { display: flex; justify-content: space-between; gap: 1rem; font-size: 1rem; margin-bottom: 0.35rem; }
.gs-summe-klein { font-size: 0.9rem; opacity: 0.8; }
.gs-summe-gesamt {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(250, 250, 247, 0.2);
}
.gs-summe-gesamt span:last-child { color: var(--accents); }
.gs-summe-info { font-size: 0.88rem; line-height: 1.5; opacity: 0.9; margin: 0.75rem 0 0; }

.gs-zustimmung { margin-bottom: 0.5rem; }
.gs-form .formular-hinweis a { color: var(--accents); }
.gs-fehler {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: rgba(242, 139, 130, 0.12);
  border: 1px solid #f28b82;
  color: #ffd2cd;
  font-size: 0.92rem;
}
.gs-feld-fehler { border-color: #f28b82 !important; }
.gs-absenden { width: 100%; text-align: center; border: 0; cursor: pointer; font-family: var(--font-family); margin: 1rem 0 0.75rem; }
.gs-absenden:hover { background-color: var(--hover-color); }
.gs-absenden[disabled] { opacity: 0.6; cursor: wait; }

/* Bedingungen / Widerruf */
.gs-texte { margin-top: 2.5rem; display: grid; gap: 0.75rem; }
.gs-details {
  background: var(--bg-cards);
  border-radius: 10px;
  padding: 0.2rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
}
.gs-details summary {
  cursor: pointer;
  padding: 0.9rem 0;
  font-weight: 700;
  font-size: 1rem;
  list-style-position: inside;
}
.gs-details[open] { padding-bottom: 1rem; }
.gs-details h3 { font-size: 1rem; margin: 1.1rem 0 0.4rem; }
.gs-details ul { padding-left: 1.2rem; margin: 0; display: grid; gap: 0.5rem; }
.gs-details a { color: var(--accents); }
.gs-formular-muster { padding: 0.9rem 1rem; border: 1px dashed rgba(250, 250, 247, 0.3); border-radius: 8px; }

/* Danke */
.gs-danke {
  max-width: 640px;
  margin: 1rem auto 0;
  text-align: center;
  background: var(--bg-cards);
  border: 1px solid rgba(150, 191, 12, 0.45);
  border-radius: 14px;
  padding: 2.25rem 1.5rem 1rem;
  line-height: 1.55;
}
.gs-danke-kicker { color: var(--accents); letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.85rem; font-weight: 700; margin: 0; }
.gs-danke-titel { font-size: 1.6rem; margin: 0.4rem 0 1rem; }
.gs-danke strong { color: var(--accents); }
.gs-danke-klein { font-size: 0.88rem; opacity: 0.8; }
.gs-danke-klein a { color: var(--accents); }
