/* ═══════════════════════════════════════════════════════════════════
   Grab-Anfrage (Grabpflege und Grabmal) · Startseite, 13.10.2026
   Konfigurator ohne Preise: wenige Fragen, dann holt Memoro bei einem
   familiengeführten Partner ein Angebot ein. Präfix .gk- (eindeutig).
   Helle, deckende Karte (kein Glas auf Papier, Designstandard §9).
   Farbe je Sektion über --gk-1 (Fläche), --gk-2 (Akzent), --gk-3 (Schrift).
   ═══════════════════════════════════════════════════════════════════ */

.grabpflege-bg { --gk-1: var(--t-grabpflege-1); --gk-2: var(--t-grabpflege-2); --gk-3: var(--t-grabpflege-3); }
.grabmal-bg    { --gk-1: var(--t-grabmal-1);    --gk-2: var(--t-grabmal-2);    --gk-3: var(--t-grabmal-3); }

/* ─── Ablauf in der Textspalte ─── */
.gk-ablauf { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: gk; }
.gk-ablauf li { counter-increment: gk; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.gk-ablauf li::before {
  content: counter(gk); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: var(--gk-3); background: color-mix(in srgb, var(--gk-2) 16%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--gk-2) 32%, transparent);
}
.gk-ablauf b { color: var(--ink); font-weight: 600; }

/* ─── Karte ─── */
.gk {
  position: relative; border-radius: 22px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px rgba(46,30,40,.42), 0 2px 8px -4px rgba(46,30,40,.12);
}
.gk-kopf { position: relative; height: 128px; }
.gk-kopf::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,14,10,.06) 0%, rgba(20,14,10,.62) 100%);
}
.gk-kopf-text {
  position: absolute; left: 22px; right: 22px; bottom: 16px; z-index: 1; color: #fff;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  text-shadow: 0 1px 12px rgba(20,10,16,.6);
}
.gk-kopf-text b { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: -.01em; line-height: 1.2; }
.gk-kopf-text span {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(20,14,10,.38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}

/* Fortschritt */
.gk-fortschritt { height: 3px; background: color-mix(in srgb, var(--gk-2) 14%, var(--warm)); }
.gk-fortschritt i {
  display: block; height: 100%; width: 100%; background: var(--gk-2);
  transform-origin: left; transform: scaleX(var(--gk-anteil, .2));
  transition: transform .6s var(--ease-out);
}

.gk-form { padding: 22px 22px 20px; }

/* Schritte. Ohne Skript stehen alle untereinander und das Formular
   sendet klassisch; mit Skript (.gk-js) ist immer nur einer sichtbar. */
.gk-schritt { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.gk-js .gk-schritt { display: none; margin: 0; }
.gk-js .gk-schritt.aktiv { display: block; animation: gk-ein .45s var(--ease-out) both; }
@keyframes gk-ein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.gk-frage {
  display: block; padding: 0; margin: 0 0 4px;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.25; letter-spacing: -.015em; color: var(--ink); outline: none;
}
.gk-hilfe { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0 0 16px; }

/* Antwortkacheln: echte Radios, als Kachel gestaltet */
.gk-wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gk-wahl.einspaltig { grid-template-columns: minmax(0, 1fr); }
.gk-option { position: relative; display: block; cursor: pointer; }
.gk-option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.gk-option span {
  display: flex; flex-direction: column; gap: 3px; height: 100%;
  padding: 14px 16px 14px 44px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s var(--ease-spring);
  position: relative;
}
.gk-option span::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.gk-option b { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.gk-option small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.gk-option:hover span { border-color: color-mix(in srgb, var(--gk-2) 55%, var(--line)); transform: translateY(-1px); }
.gk-option input:checked + span {
  border-color: var(--gk-2); background: color-mix(in srgb, var(--gk-2) 8%, #fff);
  box-shadow: 0 0 0 1px var(--gk-2), 0 10px 22px -16px color-mix(in srgb, var(--gk-3) 70%, transparent);
}
.gk-option input:checked + span::before { border-color: var(--gk-2); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--gk-2); }
.gk-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Kontaktschritt */
.gk-auswahl { list-style: none; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--gk-2) 7%, var(--warm)); display: grid; gap: 6px; }
.gk-auswahl li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; line-height: 1.4; }
.gk-auswahl li span { color: var(--muted); }
.gk-auswahl li b { font-weight: 600; color: var(--ink); text-align: right; }
.gk-js-nur { display: none; }
.gk-js .gk-js-nur { display: grid; }

.gk-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gk-feld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.gk-feld.breit { grid-column: 1 / -1; }
.gk-feld input, .gk-feld textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.gk-feld textarea { min-height: 84px; resize: vertical; }
.gk-feld input:focus, .gk-feld textarea:focus { outline: none; border-color: var(--gk-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gk-2) 22%, transparent); }
.gk-feld input[aria-invalid="true"] { border-color: #b4534f; }

.gk-haken { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.gk-haken input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--gk-2); }
.gk-haken a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.gk-zusage { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Leiste unten */
.gk-leiste { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.gk-schrittzahl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gk-knoepfe { display: flex; gap: 8px; margin-left: auto; }
.gk-zurueck {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.gk-zurueck:hover { border-color: var(--ink); color: var(--ink); }
.gk-weiter { min-height: 44px; border: 0; cursor: pointer; }
.gk-weiter[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.gk-meldung { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: #8f3c39; min-height: 0; }
.gk-meldung:empty { display: none; }

/* Danke */
.gk-danke { display: none; padding: 26px 22px 24px; }
.gk-danke.zeigen { display: block; animation: gk-ein .5s var(--ease-out) both; }
.gk-danke-zeichen {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--gk-2) 16%, var(--paper)); color: var(--gk-3);
}
.gk-danke h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 10px; }
.gk-danke p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-bottom: 10px; }

@media (max-width: 560px) {
  .gk-wahl, .gk-felder { grid-template-columns: minmax(0, 1fr); }
  .gk-form { padding: 18px 16px 16px; }
  .gk-kopf { height: 104px; }
  .gk-kopf-text { left: 16px; right: 16px; flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  .gk-kopf-text span { font-size: 9.5px; padding: 5px 9px; }
  .gk-leiste { flex-wrap: wrap; }
  .gk-knoepfe { width: 100%; }
  .gk-knoepfe .gk-weiter { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .gk-js .gk-schritt.aktiv, .gk-danke.zeigen { animation: none; }
  .gk-fortschritt i { transition: none; }
  .gk-option span { transition: none; }
}
html.sparsam .gk-kopf-text span { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(20,14,10,.62); }

/* Hochkant steht die Erklärung vor der Karte, auch wo die Karte am Desktop links steht */
@media (max-width: 980px) { .theme-grid > .gk { order: 2; } }

/* Sprungziel aus Menü und Unterseiten: Abstand unter der Kopfleiste */
.gk { scroll-margin-top: 96px; }
