/* GS2 (Heike 09.11.2026 abends, C1–C3, C6): der Kaufweg — im Kleid der Studio-Website. Handy: Karte oben (klebt), Schritte
   darunter, „Weiter“ fest unten. PC: Karte links, Schritte rechts. */
.gs-kauf {
  padding-bottom: calc(130px + env(safe-area-inset-bottom));
}
.gs-kauf .gs-stufe {
  scroll-margin-bottom: 120px;
}
.gs-kauf h1,
.gs-start h1,
.gs-fertig h1 {
  margin: 4px 0 6px;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.15;
}
.gs-kauf h2 {
  margin: 4px 0 10px;
  font-size: 20px;
}
.gs-leiste {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.gs-leiste button {
  min-height: 44px;
  padding: 6px 4px;
  border: 0;
  border-bottom: 3px solid #e2d4c2;
  background: none;
  color: #6b5a4c;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.gs-leiste button[aria-current="true"] {
  color: #2b2420;
  border-bottom-color: #2b2420;
}
/* Handy: die Karte klebt nur beim Gestalten (②) und bleibt dort kleiner; sonst steht sie klein oben und scrollt mit —
   sonst deckt sie die Fragen zu */
@media (max-width: 899px) {
  .gs-kauf .buehne-karte {
    position: static;
  }
  .gs-kauf .karte-rahmen {
    width: min(42vw, 180px);
  }
  .gs-kauf[data-stufe="2"] .buehne-karte {
    position: sticky;
    top: 72px;
  }
  .gs-kauf[data-stufe="2"] .karte-rahmen {
    width: min(52vw, 230px);
  }
  .gestalter.gs-kauf.tippen .karte-rahmen {
    width: min(34vw, 150px);
  }
  /* GS4 (Sichtprüfung GS2 Punkt 3): in ① ist die Karte nur ein kleiner Gruß — die Frage steht im ersten Bild */
  .gs-kauf[data-stufe="1"] .karte-rahmen {
    width: min(26vw, 110px);
  }
  .gs-kauf[data-stufe="1"] .buehne-karte {
    padding: 2px 0;
  }
  /* GS4 (Sichtprüfung GS2 Punkt 2): im Schnellweg klebt die Karte beim Tippen von Für/Von oben (klein) */
  .gs-schnell.tippen .buehne-karte {
    position: sticky;
    top: 64px;
    /* GS5 (Prüfer GS4 Punkt 16): der klebende Streifen deckt die ganze Breite, nichts schaut dahinter hervor */
    z-index: 3;
    background: #f5ede2;
    padding: 4px 0 8px;
    box-shadow: 0 0 0 100vmax #f5ede2;
    clip-path: inset(0 -100vmax);
  }
  .gs-leiste button {
    font-size: 13px;
    padding: 4px 2px;
  }
  .gs-kauf > .entwurf-band {
    font-size: 11.5px;
    padding: 4px 8px;
  }
}
.gs-stufe {
  display: grid;
  gap: 12px;
}
.gs-frage {
  margin: 10px 0 0;
  font-weight: 800;
  font-size: 17px;
}
.gs-teil {
  display: grid;
  gap: 10px;
}
.gs-gruppe {
  border: 1.5px solid #e2d4c2;
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
}
.gs-gruppe summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}
.gs-gruppe[open] {
  padding-bottom: 12px;
}
.gs-arten button,
.gs-betraege button {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 96px;
}
.gs-arten button small {
  color: #6b5a4c;
}
.gs-betraege button span {
  font-size: 18px;
  font-weight: 800;
}
.wahl.klein button {
  min-width: 80px;
  justify-content: center;
}
.gs-feld {
  display: grid;
  gap: 4px;
  font-weight: 700;
}
.gs-feld small {
  font-weight: 400;
  color: #6b5a4c;
}
.gs-feld input,
.gs-feld textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid #e2d4c2;
  border-radius: 10px;
  background: #fff;
  color: #2b2420;
  font: inherit;
  font-weight: 400;
  font-size: 16px;
}
.gs-hilfe,
.gs-leise {
  margin: 0;
  color: #6b5a4c;
  font-size: 14px;
}
.gs-hinweis {
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff3e0;
  color: #5a3b14;
}
.gs-hinweis p {
  margin: 4px 0;
}
.gs-radios {
  display: grid;
  gap: 10px;
}
.gs-radio,
.gs-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1.5px solid #e2d4c2;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.gs-radio:has(input:checked),
.gs-check:has(input:checked) {
  border-color: #2b2420;
  box-shadow: 0 0 0 1px #2b2420 inset;
}
.gs-radio input,
.gs-check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: #2b2420;
  flex: none;
}
.gs-radio span,
.gs-check span {
  display: grid;
  gap: 2px;
}
.gs-radio small,
.gs-check small {
  color: #6b5a4c;
}
.gs-summe {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #e2d4c2;
}
.gs-summe .zeile {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}
.gs-summe .zeile span:first-child {
  color: #6b5a4c;
}
.gs-summe .zeile span:last-child {
  text-align: right;
}
.gs-summe .gesamt {
  font-weight: 800;
  font-size: 18px;
}
/* FB1: Zeile des Frühbucher-Nachlasses im Warenkorb */
.gs-summe .nachlass span {
  color: #a6402a;
  font-weight: 700;
}
/* FB1: am Handy brechen die Namen der Zeilen nicht um („Du zahlst“, „Frühbucher −15 % (bis 30.11.)“) */
.gs-summe .gesamt span:first-child,
.gs-summe .nachlass span:first-child {
  white-space: nowrap;
}
@media (max-width: 480px) {
  .gs-summe .nachlass span:first-child {
    font-size: 15px;
  }
}
.gs-zahlung {
  min-height: 120px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
}
.gs-recht {
  margin: 0;
  font-size: 14px;
}
.gs-fehler {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fde8e6;
  color: #8a1f14;
  font-weight: 700;
}
.gs-ok {
  color: #1f6b34;
  font-weight: 700;
}
.knopf {
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  min-height: 46px;
}
.knopf.zweit {
  background: #fff;
  color: #2b2420;
  box-shadow: 0 0 0 1.5px #2b2420 inset;
}
.knopf.gross {
  width: 100%;
  min-height: 54px;
  font-size: 18px;
}
.knopf:disabled {
  opacity: 0.55;
  cursor: progress;
}
.gs-weiter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px max(14px, calc((100vw - 1180px) / 2)) calc(10px + env(safe-area-inset-bottom));
  background: rgba(245, 237, 226, 0.96);
  box-shadow: 0 -4px 14px rgba(60, 40, 20, 0.12);
}
.gs-weiter .knopf {
  flex: 1;
  max-width: 280px;
}
.gs-weiter [data-aktion="weiter"] {
  margin-left: auto;
}
.gs-mitte {
  text-align: center;
}
.gs-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* Schnellweg: nur „Für wen“ und „Deine Worte“ (ohne Gruß) — alles andere ist schön vorgewählt */
.gs-schnell .regler section[data-schritt="anlass"],
.gs-schnell .regler section[data-schritt="motiv"],
.gs-schnell .regler section[data-schritt="zier"],
.gs-schnell .worte label:has([data-feld="gruss"]),
.gs-schnell .worte [data-aktion="vorschlag"] {
  display: none;
}
/* Start mit zwei Einstiegen · Fertig-Seite */
.gs-start,
.gs-fertig {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 14px 40px;
  display: grid;
  gap: 14px;
}
.gs-unter {
  margin: 0;
  font-size: 18px;
}
.gs-einstiege {
  display: grid;
  gap: 12px;
}
.gs-einstieg {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid #e2d4c2;
  color: #2b2420;
  text-decoration: none;
}
.gs-einstieg:hover,
.gs-einstieg:focus-visible {
  border-color: #2b2420;
}
.gs-einstieg svg {
  width: 40px;
  height: 40px;
  flex: none;
}
.gs-einstieg span {
  display: grid;
  gap: 2px;
}
.gs-einstieg strong {
  font-size: 19px;
}
.gs-einstieg small {
  color: #6b5a4c;
}
.gs-umschlag-bild svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(60, 40, 20, 0.18);
}
.gs-aendern {
  display: grid;
  gap: 10px;
}
@media (min-width: 900px) {
  .gs-kauf {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 36px;
  }
  .gs-kauf > .entwurf-band,
  .gs-kauf > .gs-leiste {
    grid-column: 1 / -1;
  }
  .gs-kauf .buehne-karte {
    grid-column: 1;
    top: 88px;
    background: none;
  }
  .gs-kauf .gs-stufen {
    grid-column: 2;
  }
  .gs-kauf .karte-rahmen,
  .gs-kauf[data-stufe="3"] .karte-rahmen,
  .gs-kauf[data-stufe="4"] .karte-rahmen,
  .gestalter.gs-kauf.tippen .karte-rahmen {
    width: min(100%, 460px);
  }
  .gs-einstiege {
    grid-template-columns: 1fr 1fr;
  }
  /* GS4 (Sichtprüfung GS2 Punkt 4): am PC stehen „Zurück/Weiter“ rechts unter dem Schritt — kein Balken quer */
  .gs-kauf {
    padding-bottom: 40px;
  }
  .gs-weiter {
    position: static;
    grid-column: 2;
    padding: 18px 0 0;
    background: none;
    box-shadow: none;
  }
}

/* GE1 (Heike 10.11.2026): Schritt ② mit dem Printuxio-Editor — der Editor IST die Bühne (volle Breite, eigene Leiste);
   in ①/③/④ steht die Vorderseite aus Printuxio als Bild an der Stelle der gezeichneten Karte */
.karte-rahmen img.px-bild {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow:
    0 10px 26px rgba(60, 40, 20, 0.18),
    0 1px 3px rgba(60, 40, 20, 0.12);
}
.gs-px[data-stufe="2"] .buehne-karte {
  display: none;
}
.gs-px-buehne {
  margin: 0 -12px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(60, 40, 20, 0.12);
}
.gs-px-buehne printuxio-editor {
  display: block;
}
.gs-px-fest {
  margin-top: 10px;
}
.gs-px-stand:empty {
  display: none;
}
@media (min-width: 900px) {
  .gs-px[data-stufe="2"] .gs-stufen,
  .gs-px[data-stufe="2"] .gs-weiter {
    grid-column: 1 / -1;
  }
  .gs-px-buehne {
    margin: 0;
  }
}
/* GE3d (Abnahme GE3b Punkt 8): Rückfrage bei leerem „Für“ im Shop statt Browser-Dialog */
.gs-namenfrage {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff8ef;
  box-shadow: 0 0 0 1.5px #c9a76b inset;
}
.gs-namenfrage p {
  margin: 0 0 10px;
}
.gs-namenfrage-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gs-namenfrage-knoepfe .knopf {
  flex: 1 1 160px;
}

/* GE4f (Prüfo PX1 3): am Handy im Vollbild-Editor steht die Namensfrage über ihm, unten am Schirm */
.gs-namenfrage.gs-namenfrage-ueber {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 2147483600;
  margin: 0;
  box-shadow:
    0 0 0 1.5px #c9a76b inset,
    0 10px 30px rgb(0 0 0 / 0.3);
}
/* GE4f (Prüfo PX1 4): der Editor lädt nicht — Satz, „Noch einmal versuchen“, was „Weiter“ tut */
.gs-px-hilfe {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff8ef;
  box-shadow: 0 0 0 1.5px #c9a76b inset;
}
.gs-px-hilfe p {
  margin: 0 0 10px;
}
.gs-px-hilfe p:last-child {
  margin: 10px 0 0;
}

/* ── GE11 (Heike 12.11.2026, nur Entwurf): Vollbild wie Printess — Vorlagen-Startseite, Editor, Kasse ───────────── */
html.gs-voll-an,
html.gs-voll-an body {
  overflow: hidden;
}
.gs-voll-kauf {
  padding: 0;
}
.gs-voll-kauf [hidden] {
  display: none !important;
}
.gs-voll-kopf {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 6px 10px;
  padding-top: max(6px, env(safe-area-inset-top));
  background: #fff;
  border-bottom: 1px solid #e6dccf;
}
.gs-voll-marke {
  color: #c4622d;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.gs-voll-x {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #2b2420;
  cursor: pointer;
}
.gs-voll-x:hover,
.gs-voll-x:focus-visible {
  background: #f5ede2;
}
/* Vorlagen-Startseite und Kasse liegen über der Website (wie der Editor) und rollen in sich */
.gs-wahl,
.gs-kasse {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f4efe8;
  color: #2b2420;
}
.gs-wahl-innen,
.gs-kasse-innen {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 14px calc(40px + env(safe-area-inset-bottom));
}
.gs-wahl h1 {
  margin: 10px 0 6px;
  font-size: clamp(24px, 4.4vw, 36px);
  line-height: 1.15;
  text-align: center;
}
.gs-wahl-unter {
  margin: 0 auto 18px;
  max-width: 40em;
  text-align: center;
  color: #6b5a4c;
}
.gs-bereiche {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
}
.gs-bereich,
.gs-bereich-name {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: #2b2420;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 0 1.5px #e2d4c2 inset;
}
.gs-bereich[aria-current="page"],
.gs-bereich-name {
  background: #c4622d;
  color: #fff;
  box-shadow: none;
}
.gs-bereich-name {
  display: table;
  margin: 0 auto 12px;
}
.gs-anlass-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  justify-content: safe center;
  padding: 2px 2px 8px;
  margin-bottom: 8px;
}
.gs-anlass-filter a {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  color: #6b5a4c;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.gs-anlass-filter a[aria-current="page"] {
  background: #2b2420;
  color: #fff;
}
.gs-wahl-zwischen {
  margin: 22px 0 10px;
  font-size: 18px;
}
.gs-wahl-raster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}
.gs-wahl-kachel a {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}
.gs-wahl-kachel img,
.gs-wahl-kachel svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(90, 45, 15, 0.14);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.gs-wahl-kachel a:hover img,
.gs-wahl-kachel a:hover svg,
.gs-wahl-kachel a:focus-visible img,
.gs-wahl-kachel a:focus-visible svg {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 3px #c4622d,
    0 10px 24px rgba(90, 45, 15, 0.2);
}
@media (min-width: 900px) {
  .gs-wahl-raster {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 26px;
  }
}
/* Meldung über dem Vollbild-Editor (Speichern hakt, Sätze von kauf.js) */
.gs-voll-kauf .gs-px-stand {
  position: fixed;
  left: 50%;
  bottom: max(86px, calc(env(safe-area-inset-bottom) + 86px));
  transform: translateX(-50%);
  z-index: 2147483500;
  margin: 0;
  max-width: min(92vw, 460px);
  padding: 10px 14px;
  border-radius: 12px;
  background: #2b2420;
  color: #fff;
  font-size: 14px;
  text-align: center;
}
/* Editor lädt nicht / Karte startet nicht: Satz über dem ganzen Schirm, mit Weg zurück */
.gs-px-hilfe-voll {
  position: fixed;
  inset: 0;
  z-index: 2147483400;
  display: grid;
  place-content: center;
  margin: 0;
  padding: 24px;
  border-radius: 0;
  background: #f4efe8;
  box-shadow: none;
  text-align: center;
}
.gs-px-hilfe-voll .gs-namenfrage-knoepfe {
  justify-content: center;
}
/* KA1 (Heike 12.11.2026): Kasse im Shop-Stil — PC (ab 960 px) links die Karte groß, rechts der Warenkorb; Handy: Karte
   oben (mittelgroß), darunter alles in einer Spalte. Ruhig und hell wie die Vollbild-Seiten. */
.gs-kasse .buehne-karte {
  position: static;
  padding: 0;
  background: none;
}
.gs-kasse .karte-rahmen {
  width: 100% !important;
}
.gs-shop-raster {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}
.gs-shop-karte {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.gs-shop-karte .buehne-karte {
  width: min(62vw, 270px);
}
.gs-shop-karte p {
  margin: 0;
}
.gs-shop-korb h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 32px);
}
.gs-kasse-teil {
  margin: 0 0 14px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(60, 40, 20, 0.1);
  scroll-margin-top: 72px;
}
.gs-kasse-teil h2 {
  margin: 0 0 4px;
}
/* EINE Reihe: „Piercing deiner Wahl · 70 €“ · 50 € · 100 € · Anderer Betrag (am Handy die erste Wahl über der Reihe) */
.gs-shop-wahl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.gs-shop-wahl button {
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.gs-shop-wahl button:first-child {
  grid-column: 1 / -1;
}
.gs-shop-wahl button span {
  font-size: 15px;
  line-height: 1.2;
}
@media (min-width: 960px) {
  .gs-shop-wahl {
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  }
  .gs-shop-wahl button:first-child {
    grid-column: auto;
  }
}
.gs-link {
  padding: 0;
  border: 0;
  background: none;
  color: #8a4a22;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.gs-link:hover,
.gs-link:focus-visible {
  color: #2b2420;
}
.gs-u18 a {
  color: #8a4a22;
  font-weight: 700;
}
.gs-kasse .gs-hinweis {
  margin: 0;
}
.gs-shop-kaesten {
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .gs-shop-kaesten {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .gs-kasse-innen.gs-shop {
    max-width: 1180px;
    padding-left: 28px;
    padding-right: 28px;
  }
  .gs-shop-raster {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 500px);
    gap: 40px;
    align-items: start;
  }
  /* die Karte bleibt beim Scrollen stehen; die rechte Spalte klebt oben, sobald sie kürzer ist als der Schirm */
  .gs-shop-karte,
  .gs-shop-korb {
    position: sticky;
    top: 76px;
  }
  .gs-shop-karte .buehne-karte {
    width: min(100%, 470px, calc((100vh - 200px) * 0.707));
  }
}
@media (prefers-reduced-motion: reduce) {
  .gs-wahl-kachel img,
  .gs-wahl-kachel svg {
    transition: none;
  }
}
