/* ZERKOM® Pre-Check – Optik wie „ZERKOM® Precheck - Kopie“ (Liquid Glass / zk-lime) */

:root {
  --zk-bg: #0f172a;
  --zk-lime: #bef264;
}

html {
  min-height: 100%;
  background-color: var(--zk-bg);
}

body.zk-precheck-body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #fff;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

/* Dezentes „Ambient“ wie bei Bild-Hintergrund */
body.zk-precheck-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(190, 242, 100, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(30, 58, 138, 0.25), transparent 50%);
}

/* Honeypot: nicht display:none – einige Bots ignorieren versteckte Felder sonst */
.zk-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  margin: 0;
  padding: 0;
}

#zk-app-root {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.zk-boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 32%, rgba(190, 242, 100, 0.14), transparent 34%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  /* Sicherheitsnetz: falls das Overlay aus irgendeinem Grund stehen bleibt,
     darf es nicht dauerhaft Klicks auf die Buttons blockieren (iOS Chrome). */
  pointer-events: none;
}

body.zk-booting .zk-boot-overlay {
  display: grid;
  pointer-events: auto;
}

/* Hard-Failsafe: nach 9 s spätestens darf das Overlay keine Klicks mehr blockieren. */
@keyframes zkBootHardRelease {
  to { pointer-events: none; opacity: 0; visibility: hidden; }
}
body.zk-booting .zk-boot-overlay {
  animation: zkBootHardRelease 0.2s linear 9s forwards;
}

/* Während der initialen JS-Boot-Phase nur den ersten Schritt anzeigen,
   damit nie zwei Schritte gleichzeitig sichtbar sind (iOS Chrome Slow-Boot). */
body.zk-booting .form-step:not([data-step-key="auswahl_zertifikat"]):not([data-step-key="zugang_landing"]) {
  display: none !important;
}

.zk-boot-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(190, 242, 100, 0.28);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 0 36px rgba(190, 242, 100, 0.12);
}

.zk-boot-spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: #bef264;
  box-shadow: 0 0 18px rgba(190, 242, 100, 0.25);
  animation: zkSpin 0.9s linear infinite;
}

.zk-boot-eyebrow {
  margin: 6px 0 0;
  color: #bef264;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.zk-boot-title {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.zk-boot-copy {
  max-width: 32ch;
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.55;
}

@keyframes zkSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Zurück: ausgegraut bei „nicht bestanden“ – kein filter: grayscale (verursacht in Chrome/Edge oft unsichtbaren Label-Text bis Repaint/Hover) */
.glass-btn.zk-prev-muted {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.07);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  cursor: pointer;
}

.glass-btn.zk-prev-muted:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.liquid-glass {
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(12px) saturate(100%);
  backdrop-filter: blur(12px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  border-radius: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(12px) saturate(100%);
  backdrop-filter: blur(12px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
  border-radius: 16px;
  min-height: 3.25rem;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.glass-input:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(190, 242, 100, 0.35);
}

.glass-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(190, 242, 100, 0.55);
  box-shadow: 0 0 20px rgba(190, 242, 100, 0.12);
}

/* Freitext-/Zahleneingabe: klar als beschreibbares Feld erkennbar (Select bleibt unverändert) */
input.glass-input {
  caret-color: #bef264;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11), 0 6px 24px rgba(0, 0, 0, 0.22);
}

input.glass-input::placeholder {
  color: rgba(148, 163, 184, 0.88);
  font-weight: 400;
}

input.glass-input:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 6px 24px rgba(0, 0, 0, 0.22);
}

input.glass-input:focus {
  box-shadow: inset 0 0 0 1px rgba(190, 242, 100, 0.5), 0 0 0 1px rgba(190, 242, 100, 0.15), 0 0 28px rgba(190, 242, 100, 0.14);
}

/* Select: Chevron als HTML-Icon (dreht sich), kein background-image – vermeidet Flackern/„Einfliegen“ durch background-Transition */
.zk-select-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.zk-select-wrap select.glass-input {
  appearance: none;
  background-image: none;
  padding-right: 2.75rem;
}

.zk-select-chevron {
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.58);
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 0.25s ease, color 0.2s ease;
}

.zk-select-wrap:hover .zk-select-chevron,
.zk-select-wrap:focus-within .zk-select-chevron {
  transform: rotate(180deg);
  color: rgba(190, 242, 100, 0.9);
}

select.glass-input option {
  background: #1e293b;
  color: #f8fafc;
}

.glass-btn {
  position: relative;
  isolation: isolate;
  /* eigener Compositing-Layer: beugt vor, dass Label-Text bei backdrop-filter bis zum Hover unsichtbar bleibt (Windows/Chrome) */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  background-color: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px) saturate(100%);
  backdrop-filter: blur(12px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
  color: #f8fafc;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.glass-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(190, 242, 100, 0.35);
}

/* Label eigene Ebene: Text bleibt sichtbar trotz backdrop-filter (Chrome/Edge-Compositor) */
.glass-btn .zk-btn-label {
  position: relative;
  z-index: 1;
  color: #f1f5f9;
}

.glass-btn.zk-prev-muted .zk-btn-label {
  color: rgba(203, 213, 225, 0.98);
}

.glass-btn.zk-prev-muted:hover .zk-btn-label {
  color: #f8fafc;
}

/* Ja/Nein – gewählter Zustand (zk-lime wie im React-Projekt .glass-btn.active-zk) */
.zk-option-btn {
  display: inline-block;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(12px) saturate(100%);
  backdrop-filter: blur(12px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  transition: all 0.25s ease;
}

.zk-option-btn:hover {
  border-color: rgba(190, 242, 100, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

input.peer:checked + .zk-option-btn {
  background: rgba(190, 242, 100, 0.35);
  border-color: rgba(190, 242, 100, 0.55);
  box-shadow: 0 0 16px rgba(190, 242, 100, 0.25);
  color: rgba(255, 255, 255, 0.98);
  font-weight: 700;
}

.gradient-precheck {
  font-weight: 900;
  letter-spacing: -0.02em;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, #64a20d 0%, #bef264 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.zk-progress-track {
  height: 0.35rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.zk-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #84cc16, #bef264);
  box-shadow: 0 0 12px rgba(190, 242, 100, 0.35);
  transition: width 0.35s ease;
}

/* Ampel wie in globals.css / TrafficLight.tsx */
.traffic-light-container {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  display: inline-flex;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.traffic-bulb {
  opacity: 0.3;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.traffic-bulb.red.active {
  opacity: 1;
  background-color: #ef4444;
  transform: scale(1.1);
  box-shadow: 0 0 25px #ef4444, inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.traffic-bulb.yellow.active {
  opacity: 1;
  background-color: #fbbf24;
  transform: scale(1.1);
  box-shadow: 0 0 25px #fbbf24, inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.traffic-bulb.green.active {
  opacity: 1;
  background-color: #bef264;
  transform: scale(1.1);
  box-shadow: 0 0 25px #bef264, inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

/* Ampel-Ergebniskarte: dezente Status-Akzente */
.zk-ampel-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.55) 0%, rgba(0, 0, 0, 0.28) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.zk-ampel-panel--fail {
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(165deg, rgba(127, 29, 29, 0.28) 0%, rgba(15, 23, 42, 0.5) 52%, rgba(0, 0, 0, 0.3) 100%);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.12), 0 16px 48px -12px rgba(220, 38, 38, 0.18), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.zk-ampel-panel--warn {
  border-color: rgba(250, 204, 21, 0.38);
  background: linear-gradient(165deg, rgba(113, 63, 18, 0.22) 0%, rgba(15, 23, 42, 0.52) 55%, rgba(0, 0, 0, 0.28) 100%);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.1), 0 14px 40px -14px rgba(180, 110, 0, 0.12), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.zk-ampel-panel--ok {
  border-color: rgba(52, 211, 153, 0.38);
  background: linear-gradient(165deg, rgba(6, 78, 59, 0.24) 0%, rgba(15, 23, 42, 0.52) 55%, rgba(0, 0, 0, 0.28) 100%);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.1), 0 14px 40px -14px rgba(16, 185, 129, 0.12), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.zk-ampel-title {
  display: inline-block;
  padding: 0.5rem 1.35rem;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.zk-ampel-title-fail {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.42);
  border: 1px solid rgba(252, 165, 165, 0.55);
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.zk-ampel-title-warn {
  color: #fef08a;
  background: rgba(113, 63, 18, 0.4);
  border: 1px solid rgba(253, 224, 71, 0.45);
  box-shadow: 0 0 24px rgba(234, 179, 8, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.zk-ampel-title-ok {
  color: #d1fae5;
  background: rgba(6, 78, 59, 0.42);
  border: 1px solid rgba(110, 231, 183, 0.45);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.zk-ampel-subline {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.6875rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.52);
}

.zk-ampel-panel--fail .zk-ampel-subline {
  color: rgba(254, 202, 202, 0.75);
}

.zk-ampel-panel--warn .zk-ampel-subline {
  color: rgba(253, 230, 138, 0.72);
}

.zk-ampel-panel--ok .zk-ampel-subline {
  color: rgba(167, 243, 208, 0.72);
}

.zk-ampel-grund {
  color: rgba(255, 255, 255, 0.74);
  transition: color 0.25s ease;
}

.zk-ampel-grund--fail {
  color: rgba(254, 226, 226, 0.95);
}

.zk-ampel-grund--warn {
  color: rgba(254, 243, 199, 0.95);
}

.zk-ampel-grund--ok {
  color: rgba(209, 250, 229, 0.95);
}

.zk-abschluss-hint {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.zk-abschluss-hint.zk-abschluss-disclaimer {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(203, 213, 225, 0.72);
}

.zk-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.zk-status-msg {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.zk-status-msg--loading {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-width: 1px;
  box-shadow: 0 12px 35px rgba(14, 165, 233, 0.18), 0 0 0 1px rgba(186, 230, 253, 0.08) inset;
}

.zk-status-msg--loading::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.05rem;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid rgba(224, 242, 254, 0.35);
  border-top-color: #bef264;
  animation: zkSpin 0.9s linear infinite;
}

.zk-check-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
}

input[type="checkbox"].zk-check {
  accent-color: #bef264;
}

/* ZERKOM® Website Design Alignment */
:root {
  --zk-primary: #bef264;
  --zk-primary-dark: #a3e635;
  --zk-text-body: #cbd5e1;
  --zk-bg-dark: #0f172a;
  --zk-bg-dark-soft: #1e293b;
  --zk-card-bg: rgba(15, 23, 42, 0.56);
  --zk-card-border: rgba(255, 255, 255, 0.14);
}

body.zk-precheck-body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background-color: var(--zk-bg-dark);
  background-image: radial-gradient(circle at 50% -10%, rgba(190, 242, 100, 0.18) 0%, rgba(190, 242, 100, 0) 35%),
    radial-gradient(circle at 0% 100%, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0) 45%),
    linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
}

.liquid-glass {
  background: var(--zk-card-bg);
  border: 1px solid var(--zk-card-border);
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

#zk-app-root main > .liquid-glass {
  max-width: 760px;
}

.gradient-precheck {
  color: var(--zk-primary);
  text-wrap: balance;
}

.glass-input {
  min-height: 3.35rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.glass-input:hover {
  border-color: rgba(190, 242, 100, 0.36);
}

.glass-input:focus {
  border-color: rgba(190, 242, 100, 0.62);
  box-shadow: 0 0 0 3px rgba(190, 242, 100, 0.14), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.zk-option-btn {
  border-radius: 999px;
  padding-left: 2rem;
  padding-right: 2rem;
  min-height: 2.9rem;
  font-size: 1rem;
}

input.peer:checked + .zk-option-btn {
  color: #0f172a;
  background: var(--zk-primary);
  border-color: rgba(190, 242, 100, 0.85);
  box-shadow: 0 10px 24px -6px rgba(190, 242, 100, 0.42);
}

.glass-btn,
#nextBtn,
#submitBtn {
  border-radius: 999px !important;
  min-height: 2.85rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.glass-btn:hover,
#nextBtn:hover,
#submitBtn:hover {
  transform: translateY(-2px);
}

#prevBtn,
#restartBtn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

#prevBtn:hover,
#restartBtn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

#nextBtn,
#submitBtn {
  color: #0f172a !important;
  background: var(--zk-primary) !important;
  box-shadow: 0 10px 20px -3px rgba(190, 242, 100, 0.42) !important;
}

#nextBtn:hover,
#submitBtn:hover {
  background: var(--zk-primary-dark) !important;
}

#nextBtn:disabled,
#nextBtn.zk-next-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  background: rgba(190, 242, 100, 0.35) !important;
  color: rgba(15, 23, 42, 0.55) !important;
}

#nextBtn:disabled:hover,
#nextBtn.zk-next-disabled:hover {
  transform: none !important;
  background: rgba(190, 242, 100, 0.35) !important;
}

.zk-zugang-consent a {
  font-weight: 600;
}

.zk-progress-track {
  background: rgba(255, 255, 255, 0.12);
}

.zk-progress-fill {
  background: linear-gradient(90deg, #84cc16, #bef264);
}

.zk-check-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.42);
}

.zk-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile first optimization */
@media (max-width: 767px) {
  .zk-brand-logo img {
    height: 2.2rem !important;
    max-width: 9.5rem !important;
  }

  #zk-app-root header {
    gap: 0.75rem;
    padding: 0.85rem 0.8rem 0.85rem;
  }

  #zk-app-root main {
    padding: 0.35rem 0.7rem 6.5rem !important;
  }

  #zk-app-root main > .liquid-glass {
    border-radius: 1rem;
    padding: 1rem 0.95rem 1.1rem !important;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
  }

  .gradient-precheck {
    font-size: clamp(1.35rem, 6.6vw, 1.72rem) !important;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .form-step {
    gap: 0.9rem !important;
  }

  .form-step > .grid > span,
  .form-step label > span {
    font-size: 1rem !important;
    line-height: 1.35;
  }

  .glass-input {
    min-height: 3rem;
    padding: 0.78rem 0.95rem;
    font-size: 1rem;
    border-radius: 0.8rem;
  }

  .zk-select-wrap select.glass-input {
    padding-right: 2.5rem;
  }

  .zk-select-chevron {
    right: 0.8rem;
  }

  .zk-option-btn {
    width: 100%;
    min-width: 0 !important;
    min-height: 3rem;
    padding: 0.7rem 0.95rem !important;
    font-size: 0.98rem !important;
  }

  .form-step [role="radiogroup"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem !important;
    width: 100%;
    margin-bottom: 0.95rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .form-step [role="radiogroup"] > label {
    width: 100%;
  }

  .zk-check-card {
    padding: 0.9rem !important;
    gap: 0.75rem !important;
  }

  .zk-check-card span {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
  }

  .traffic-light-container {
    padding: 0.65rem;
    gap: 0.6rem;
  }

  .traffic-bulb {
    width: 2rem;
    height: 2rem;
  }

  .zk-ampel-title {
    font-size: 0.95rem;
    padding: 0.42rem 1rem;
  }

  .zk-ampel-grund {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  #statusMessage {
    font-size: 0.86rem;
    padding: 0.7rem 0.8rem !important;
  }

  #precheckForm > .flex.flex-wrap.items-center.justify-between.gap-3 {
    position: sticky;
    bottom: 0.45rem;
    z-index: 30;
    margin-top: 1.1rem;
    padding-top: 1rem !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.92) 28%, rgba(15, 23, 42, 0.97) 100%);
    border-top: 1px solid rgba(190, 242, 100, 0.28);
    box-shadow: 0 -10px 30px rgba(2, 6, 23, 0.42);
  }

  #precheckForm > .flex.flex-wrap.items-center.justify-between.gap-3 > .flex.items-center.gap-3 {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.6rem !important;
  }

  #prevBtn,
  #restartBtn,
  #nextBtn,
  #submitBtn {
    width: 100%;
    min-height: 3.05rem;
    font-size: 0.95rem !important;
    padding: 0.75rem 1rem !important;
  }

  #nextBtn,
  #submitBtn {
    order: -1;
  }

  .zk-footer {
    padding-top: 0.9rem !important;
    padding-bottom: 1rem !important;
  }
}

@media (max-width: 420px) {
  #stepLabel {
    font-size: 0.58rem !important;
  }

  #progressLabel {
    font-size: 0.65rem !important;
  }

  .form-step [role="radiogroup"] {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem !important;
  }
}

/* Final pass: 1:1 closer to zerkom.de */
:root {
  --zk-lime-50: #f7fee7;
  --zk-lime-100: #ecfccb;
  --zk-lime-400: #a3e635;
  --zk-lime-500: #84cc16;
  --zk-lime-600: #65a30d;
  --zk-slate-100: #f1f5f9;
  --zk-slate-300: #cbd5e1;
  --zk-slate-400: #94a3b8;
  --zk-slate-800: #1e293b;
  --zk-slate-900: #0f172a;
}

html,
body.zk-precheck-body {
  min-height: 100%;
}

body.zk-precheck-body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background-color: var(--zk-slate-900);
  background-image: linear-gradient(rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.9)),
    url("./assets/bg-hero.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}

body.zk-precheck-body::before {
  background: radial-gradient(circle at 50% 0%, rgba(190, 242, 100, 0.12) 0%, transparent 48%);
}

#zk-app-root main > .liquid-glass {
  max-width: 780px;
  border-radius: 1.25rem;
}

.liquid-glass {
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 55px -14px rgb(0 0 0 / 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.gradient-precheck {
  background: linear-gradient(135deg, #bef264 0%, #a3e635 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

#stepLabel {
  color: var(--zk-slate-100) !important;
}

.glass-input {
  background-color: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* No inner containers: keep steps visually clean */
.form-step {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.glass-input::placeholder {
  color: var(--zk-slate-400);
}

.glass-input:focus {
  border-color: rgba(163, 230, 53, 0.72);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.14);
}

.zk-option-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}

input.peer:checked + .zk-option-btn {
  background: linear-gradient(180deg, #bef264 0%, #a3e635 100%);
  color: #0f172a;
  border-color: rgba(190, 242, 100, 0.9);
}

#nextBtn,
#submitBtn {
  background: linear-gradient(180deg, #bef264 0%, #a3e635 100%) !important;
  color: #0f172a !important;
}

#nextBtn:hover,
#submitBtn:hover {
  background: linear-gradient(180deg, #a3e635 0%, #84cc16 100%) !important;
}

#prevBtn,
#restartBtn {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.zk-progress-track {
  background: rgba(255, 255, 255, 0.15);
}

.zk-progress-fill {
  background: linear-gradient(90deg, #65a30d 0%, #bef264 100%);
}

@media (max-width: 767px) {
  #zk-app-root {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    height: 100dvh;
  }

  .zk-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    /* Voll opak gegen Overscroll-„blauer-Balken"-Durchscheinen auf iOS */
    background: #0f172a;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding-top: 0.7rem !important;
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Auf Mobile: html + body einheitlich vollopak dunkelblau, damit iOS-Rubber-Band
     keinen helleren Gradient-Bereich freigibt. Plus overscroll-contain als Bonus
     für iOS 16+ (kann Rubber-Band auf html-Ebene reduzieren). */
  html,
  body.zk-precheck-body {
    background: #0f172a !important;
    background-image: none !important;
    background-attachment: scroll !important;
    overscroll-behavior-y: contain;
  }

  body.zk-precheck-body::before {
    display: none !important;
  }

  #zk-app-root main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 0.7rem 0.7rem calc(0.7rem + 4.4rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  #zk-app-root main > .liquid-glass {
    border-radius: 1rem;
    margin: 0 auto;
  }
}

/* Welcome screen redesign */
.form-step[data-step-key="willkommen"],
.form-step[data-step-key="kompost_intro"] {
  min-height: 18rem;
}

.zk-welcome {
  position: relative;
  border: 1px solid rgba(190, 242, 100, 0.2);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.62) 0%, rgba(30, 41, 59, 0.4) 100%);
  border-radius: 1rem;
  padding: 1.1rem;
  box-shadow: 0 10px 26px -16px rgba(0, 0, 0, 0.45);
}

.zk-welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 0% 0%, rgba(190, 242, 100, 0.12) 0%, transparent 42%);
}

.zk-welcome-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(190, 242, 100, 0.3);
  color: #bef264;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.28rem;
}

.zk-welcome-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.zk-welcome-text {
  margin: 0;
  color: rgba(241, 245, 249, 0.88);
  font-size: 1.03rem;
  line-height: 1.6;
  max-width: 68ch;
}

.zk-welcome-points {
  display: grid;
  gap: 0.46rem;
}

.zk-welcome-points p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: start;
  margin: 0;
  padding: 0.52rem 0.62rem;
  border-radius: 0.66rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(241, 245, 249, 0.88);
  font-size: 0.9rem;
  line-height: 1.5;
}

.zk-welcome-points span {
  display: inline-flex;
  min-width: 1.25rem;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #0f172a;
  background: #bef264;
  border-radius: 999px;
  padding: 0.12rem 0.28rem;
}

/* Cooler welcome look without outer box */
.zk-welcome-content {
  padding: 0.15rem 0.05rem;
}

.zk-welcome-content .zk-welcome-title {
  background: linear-gradient(135deg, #ffffff 0%, #dbe7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zk-welcome-content .zk-welcome-points p {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
}

/* Welcome-only green gradient blob */
.form-step[data-step-key="willkommen"],
.form-step[data-step-key="kompost_intro"] {
  position: relative;
  overflow: visible;
  border-radius: 1rem;
  isolation: isolate;
}

.form-step[data-step-key="willkommen"]::before,
.form-step[data-step-key="kompost_intro"]::before {
  content: "";
  position: absolute;
  right: -170px;
  top: -170px;
  width: 380px;
  height: 380px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(190, 242, 100, 0.13) 0%, rgba(190, 242, 100, 0.045) 34%, rgba(190, 242, 100, 0.012) 55%, transparent 72%);
  filter: blur(12px);
  z-index: 0;
}

.form-step[data-step-key="willkommen"] .zk-welcome-content,
.form-step[data-step-key="kompost_intro"] .zk-welcome-content {
  position: relative;
  z-index: 1;
}

/* Smoother question-step transitions */
@keyframes zkStepEnter {
  0% {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.form-step.zk-step-enter {
  animation: zkStepEnter 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Typo angle from verify-seite */
.form-step > .grid > span,
.form-step label > span {
  letter-spacing: -0.01em;
  line-height: 1.34;
}

#progressLabel {
  font-weight: 700;
  letter-spacing: 0.02em;
}

#statusMessage,
.zk-abschluss-hint,
.zk-ampel-grund {
  line-height: 1.55;
}

@media (max-width: 767px) {
  .zk-welcome {
    padding: 0.95rem;
  }

  .zk-welcome-text {
    font-size: 0.95rem;
  }

  .zk-welcome-points p {
    padding: 0.5rem 0.58rem;
    font-size: 0.84rem;
  }
}

/* Local fonts (downloaded into ./fonts) */
@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("./fonts/roboto-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body.zk-precheck-body,
.zk-abschluss-hint,
.zk-ampel-grund,
.zk-welcome-text,
.zk-welcome-points p,
.glass-input,
select.glass-input {
  font-family: "Roboto", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Source Han Sans CN", sans-serif;
}

h1,
h2,
#stepLabel,
#progressLabel,
.zk-welcome-title,
.zk-welcome-eyebrow,
.zk-btn-label,
#nextBtn,
#submitBtn,
#prevBtn,
#restartBtn {
  font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Source Han Sans CN", sans-serif;
}

/* Final typo fix: stable title size + lighter weight */
.zk-form-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.1vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.zk-form-title {
  text-align: left;
}

.zk-title-white {
  color: #ffffff;
}

.zk-title-gradient {
  background: linear-gradient(135deg, #bef264 0%, #a3e635 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (max-width: 767px) {
  .zk-form-title {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
    line-height: 1.14;
  }

  #zk-app-root main {
    justify-content: center;
  }
}

/* Welcome step CTA full width */
#nextBtn.zk-btn-full {
  width: 100%;
}

#formActionButtons.zk-actions-full {
  width: 100%;
}

/* Intro heading row with TECHUM logo beside title */
.zk-intro-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.zk-intro-head__text {
  min-width: 0;
}

.zk-intro-head__techum {
  height: 4.1rem;
  width: auto;
  max-width: 11.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

/* Logos inside question container */
.zk-brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.zk-brand-row__techum {
  height: 3rem;
  width: auto;
  max-width: 14rem;
  object-fit: contain;
}

@media (min-width: 640px) {
  .zk-intro-head__techum {
    height: 4.8rem;
    max-width: 13rem;
  }

  .zk-welcome-eyebrow {
    margin-bottom: 0.72rem;
  }

  .zk-brand-row__techum {
    height: 3.8rem;
    max-width: 18rem;
  }
}

.zk-header-zerkom {
  display: inline-flex;
  align-items: center;
}

.zk-header-zerkom__img {
  height: 2.4rem;
  width: auto;
  max-width: 11.5rem;
  object-fit: contain;
}

@media (min-width: 640px) {
  .zk-header-zerkom__img {
    height: 2.8rem;
    max-width: 13rem;
  }
}

@media (max-width: 767px) {
  .zk-intro-head__techum {
    height: 3.2rem;
    max-width: 9.5rem;
  }

  .zk-header-zerkom__img {
    height: 2.1rem;
    max-width: 9.5rem;
  }

  .zk-brand-row__techum {
    height: 3.2rem;
    max-width: 15rem;
  }
}

.zk-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.zk-langswitch {
  position: relative;
}

.zk-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.62rem 0.46rem 0.55rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.56);
  color: #e2e8f0;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.16s ease, background 0.18s ease;
}

.zk-lang-trigger:hover {
  border-color: rgba(190, 242, 100, 0.45);
  background: rgba(15, 23, 42, 0.82);
  transform: translateY(-1px);
}

.zk-lang-trigger:focus-visible,
.zk-lang-option:focus-visible {
  outline: 2px solid rgba(190, 242, 100, 0.7);
  outline-offset: 2px;
}

.zk-flag {
  display: inline-block;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.zk-flag::before {
  content: none;
}

.zk-lang-trigger .zk-flag {
  width: 24px;
  height: 16px;
}

.zk-lang-chevron {
  width: 11px;
  height: 11px;
  transition: transform 0.2s ease;
}

.zk-langswitch.is-open .zk-lang-chevron {
  transform: rotate(180deg);
}

.zk-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 80;
  margin: 0;
  padding: 5px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.zk-langswitch.is-open .zk-lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.zk-lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.zk-lang-option:hover {
  background: rgba(190, 242, 100, 0.14);
  border-color: rgba(190, 242, 100, 0.4);
}

.zk-lang-option .zk-flag {
  width: 28px;
  height: 19px;
}

@media (max-width: 767px) {
  .zk-topbar-right {
    gap: 0.45rem;
  }

  .zk-lang-trigger {
    padding: 0.4rem 0.52rem 0.4rem 0.46rem;
  }

  .zk-lang-trigger .zk-flag {
    width: 22px;
    height: 15px;
  }
}

/* Question card look (aligned to screenshot style) */
.zk-question-card {
  border: 1px solid rgba(190, 242, 100, 0.28);
  border-radius: 1.35rem;
  padding: 1.1rem 1.1rem 1rem;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.74) 0%, rgba(15, 23, 42, 0.54) 60%, rgba(0, 0, 0, 0.3) 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(190, 242, 100, 0.06);
}

.zk-question-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.zk-question-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #bef264;
  text-transform: uppercase;
}

.zk-question-title {
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 2.55rem);
  line-height: 1.05;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.zk-question-subtitle {
  margin: 0;
  max-width: 40rem;
  color: rgba(226, 232, 240, 0.78);
  font-size: 1rem;
  line-height: 1.45;
}

.form-step[data-step-key^="frage"] [role="radiogroup"] {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.7rem !important;
}

.form-step[data-step-key^="frage"] [role="radiogroup"] > label {
  width: 100%;
}

.form-step[data-step-key^="frage"] .zk-option-btn {
  width: 100%;
  justify-content: flex-start;
  border-radius: 0.95rem;
  min-height: 3.2rem;
  padding-left: 1.15rem !important;
  padding-right: 1.15rem !important;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.form-step[data-step-key^="frage"] input.peer:checked + .zk-option-btn {
  background: linear-gradient(180deg, rgba(190, 242, 100, 0.32) 0%, rgba(163, 230, 53, 0.24) 100%);
  border-color: rgba(190, 242, 100, 0.62);
  color: #ecfccb;
  box-shadow: 0 0 0 1px rgba(190, 242, 100, 0.25), 0 10px 22px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
  .zk-question-card {
    border-radius: 1rem;
    padding: 0.95rem 0.9rem 0.88rem;
  }

  .zk-question-title {
    font-size: clamp(1.45rem, 6.8vw, 1.9rem);
  }

  .zk-question-subtitle {
    font-size: 0.96rem;
  }
}

/* =========================
   Mobile FINAL (priorisiert über alle vorherigen Mobile-Regeln)
   Ziel: kein Scrollen, kein Abschneiden, Buttons fix unten nebeneinander.
   ========================= */
@media (max-width: 767px) {
  /* Safe-Area oben respektieren */
  body.zk-precheck-body {
    padding-top: env(safe-area-inset-top, 0px);
    background-attachment: scroll;
  }

  /* WICHTIG: backdrop-filter und filter erstellen einen 'containing block'
     für position:fixed-Kinder. Das verschiebt die fixed Bottom-Bar innerhalb
     der Card. Auf Mobile deshalb entfernen, damit Bottom-Bar wirklich am
     Viewport-Rand klebt und die Pills nicht überlappt. */
  body.zk-precheck-body,
  body.zk-precheck-body::before,
  .liquid-glass,
  .glass-input,
  .glass-btn,
  .zk-question-card,
  .traffic-light-container,
  .zk-status-msg {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .form-step.zk-step-enter {
    animation: none !important;
  }

  .form-step,
  .form-step[data-step-key="willkommen"],
  .form-step[data-step-key="kompost_intro"] {
    transform: none !important;
    filter: none !important;
    isolation: auto !important;
  }

  .form-step[data-step-key="willkommen"]::before,
  .form-step[data-step-key="kompost_intro"]::before {
    display: none !important;
  }

  /* Outer Card etwas opaker, damit der fehlende Blur kompensiert wird */
  #zk-app-root main > .liquid-glass {
    background: rgba(15, 23, 42, 0.78) !important;
  }

  /* Header sehr kompakt */
  #zk-app-root header.zk-topbar {
    padding: 0.6rem 0.7rem 0.5rem !important;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .zk-header-zerkom {
    flex: 0 1 auto;
    min-width: 0;
  }

  .zk-header-zerkom__img {
    height: 1.75rem !important;
    max-width: 7rem !important;
    object-fit: contain;
  }

  .zk-topbar-right {
    flex: 0 0 auto;
    gap: 0.4rem;
  }

  .zk-progress-pill {
    padding: 0.34rem 0.6rem !important;
    gap: 0.4rem !important;
  }

  #progressWord {
    font-size: 0.6rem !important;
  }

  #stepLabel {
    font-size: 0.62rem !important;
  }

  /* Großer „Pre-Check Datenerfassung“-Block braucht mobil keinen Platz —
     der Header zeigt bereits den aktuellen Schritt. */
  #formIntroBlock {
    display: none !important;
  }

  /* Progress-Block ultra-flach */
  #formProgressBlock {
    margin-bottom: 0.85rem !important;
  }

  #formProgressBlock .text-\[11px\] {
    font-size: 0.65rem !important;
  }

  .zk-progress-track {
    height: 0.28rem;
  }

  /* Hauptcontainer (Card) kompakter, vertikal zentriert */
  #zk-app-root main {
    padding: 0.55rem 0.7rem calc(4.7rem + env(safe-area-inset-bottom, 0px)) !important;
    align-items: stretch;
    justify-content: safe center;
  }

  #zk-app-root main > .liquid-glass {
    padding: 0.85rem 0.85rem 0.95rem !important;
    border-radius: 0.95rem;
  }

  #precheckForm {
    --zk-form-gap: 0.9rem;
  }

  #precheckForm.space-y-8 > * + * {
    margin-top: var(--zk-form-gap) !important;
  }

  /* Frage-Card kompakt – nichts darf abschneiden */
  .zk-question-card {
    padding: 0.85rem 0.85rem 0.85rem !important;
    border-radius: 0.85rem;
  }

  .zk-question-head {
    margin-bottom: 0.35rem;
    gap: 0.2rem;
  }

  .zk-question-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .zk-question-title {
    font-size: clamp(1.25rem, 6vw, 1.55rem);
    line-height: 1.1;
  }

  .zk-question-subtitle {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  /* Optionen: vertikal, kompaktere Höhe (statt 3.2rem zu hoch) */
  .form-step[data-step-key^="frage"] [role="radiogroup"] {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .form-step[data-step-key^="frage"] .zk-option-btn {
    min-height: 2.7rem !important;
    border-radius: 0.85rem !important;
    padding: 0.55rem 0.95rem !important;
    font-size: 0.95rem !important;
    text-align: left;
  }

  /* Eingabefelder iOS-zoomfest */
  .glass-input {
    font-size: 16px !important;
    min-height: 2.85rem;
    padding: 0.6rem 0.85rem !important;
    border-radius: 0.7rem;
  }

  /* Welcome-Block: Title + TECHUM-Logo stapeln */
  .form-step[data-step-key="willkommen"] .zk-intro-head,
  .form-step[data-step-key="kompost_intro"] .zk-intro-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .zk-intro-head__techum {
    height: 2.4rem !important;
    max-width: 8rem !important;
  }

  .zk-welcome-title {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem) !important;
    line-height: 1.15;
  }

  .zk-welcome-text {
    font-size: 0.9rem !important;
    line-height: 1.45;
  }

  .zk-welcome-points p {
    padding: 0.42rem 0.55rem !important;
    font-size: 0.82rem !important;
    line-height: 1.35;
  }

  /* === Bottom-Bar: Zurück + Weiter NEBENEINANDER, fix unten === */
  #precheckForm > .flex.flex-wrap.items-center.justify-between.gap-3 {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding: 0.6rem 0.7rem calc(0.6rem + env(safe-area-inset-bottom, 0px)) !important;
    border-top: 1px solid rgba(190, 242, 100, 0.3);
    background: #0f172a !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 -10px 26px rgba(2, 6, 23, 0.55);
    z-index: 100;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem !important;
    align-items: stretch;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  /* Opaker Vorhang UNTER der Bottom-Bar: Auf iOS bouncen fixed-Elemente
     beim Rubber-Band-Scroll mit dem Viewport mit. Dieser Pseudo-Element
     hängt als Kind direkt am Bottom-Bar und deckt den Bereich darunter ab,
     egal wie weit iOS den Viewport nach oben schiebt. */
  #precheckForm > .flex.flex-wrap.items-center.justify-between.gap-3::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: calc(env(safe-area-inset-bottom, 0px) + 8px);
    background: #0f172a;
    pointer-events: none;
  }

  #precheckForm > .flex.flex-wrap.items-center.justify-between.gap-3 > #prevBtn {
    grid-column: 1;
  }

  #precheckForm > .flex.flex-wrap.items-center.justify-between.gap-3 > #formActionButtons {
    grid-column: 2;
    width: 100%;
    display: block !important;
    gap: 0 !important;
  }

  #formActionButtons > * {
    width: 100% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #formActionButtons > .hidden {
    display: none !important;
  }

  /* Wenn nur ein Button (Welcome / Result-nicht-bestanden ohne prev) → volle Breite */
  #formActionButtons.zk-actions-full,
  #precheckForm > .flex.flex-wrap.items-center.justify-between.gap-3 > #prevBtn.hidden + #formActionButtons {
    grid-column: 1 / -1 !important;
  }

  /* Buttons selbst */
  #prevBtn,
  #restartBtn,
  #nextBtn,
  #submitBtn {
    width: 100% !important;
    min-height: 2.95rem !important;
    font-size: 0.95rem !important;
    padding: 0.65rem 0.9rem !important;
    order: initial !important;
    border-radius: 999px !important;
  }

  /* Footer auf Mobile aus dem Weg – Bottom-Bar übernimmt das */
  .zk-footer {
    display: none !important;
  }

  /* Sprachschalter-Menu sicher in Sicht */
  .zk-lang-menu {
    right: 0;
    transform-origin: top right;
  }

  /* Step-Animation darf keine Höhe verzerren */
  .form-step.zk-step-enter {
    animation-duration: 220ms;
  }
}

/* Sehr schmal (≤ 380 px) */
@media (max-width: 380px) {
  #progressWord {
    display: none !important;
  }

  #stepLabel {
    font-size: 0.7rem !important;
  }

  .zk-header-zerkom__img {
    height: 1.65rem !important;
    max-width: 6.5rem !important;
  }

  .zk-lang-trigger {
    padding: 0.32rem 0.42rem 0.32rem 0.4rem;
  }

  .zk-lang-trigger .zk-flag {
    width: 18px;
    height: 13px;
  }

  .zk-question-title {
    font-size: clamp(1.15rem, 7.2vw, 1.45rem) !important;
  }

  .zk-question-subtitle {
    font-size: 0.8rem !important;
  }

  .form-step[data-step-key^="frage"] .zk-option-btn {
    min-height: 2.55rem !important;
    font-size: 0.9rem !important;
  }
}

/* Landscape-Phone */
@media (max-width: 767px) and (orientation: landscape) and (max-height: 480px) {
  #zk-app-root main {
    padding-top: 0.4rem !important;
  }

  .zk-question-title {
    font-size: 1.25rem !important;
  }

  .form-step[data-step-key^="frage"] .zk-option-btn {
    min-height: 2.45rem !important;
  }
}

/* Question heading should stay below main form title */
.zk-question-title {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem) !important;
  line-height: 1.15 !important;
}

@media (max-width: 767px) {
  .zk-question-title {
    font-size: clamp(1.12rem, 5.2vw, 1.45rem) !important;
  }
}

/* ===== Mini-Polish 2026-05-06 (Formular) ===== */
#zk-app-root main > .liquid-glass {
  position: relative;
  overflow: hidden;
}

#zk-app-root main > .liquid-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(190, 242, 100, 0.95), rgba(74, 222, 128, 0.9));
  box-shadow: 0 0 18px rgba(190, 242, 100, 0.35);
  pointer-events: none;
}

#zk-app-root main > .liquid-glass:hover {
  border-color: rgba(190, 242, 100, 0.3);
  box-shadow: 0 28px 58px -14px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#statusMessage {
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

#nextBtn,
#submitBtn,
#prevBtn,
#restartBtn {
  position: relative;
  overflow: hidden;
}

#nextBtn::after,
#submitBtn::after,
#prevBtn::after,
#restartBtn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.24) 45%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

#nextBtn:hover::after,
#submitBtn:hover::after,
#prevBtn:hover::after,
#restartBtn:hover::after {
  transform: translateX(120%);
}

/* Startseite: ohne Hauptcontainer, mit eigener Auswahlkarte */
#formShell.zk-start-layout {
  max-width: 920px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding-top: 0.4rem !important;
}

#formShell.zk-start-layout::before {
  display: none !important;
}

.zk-start-screen {
  display: grid;
  gap: 1.25rem;
}

.zk-start-hero {
  display: grid;
  gap: 0.55rem;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  justify-items: center;
}

.zk-start-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
}

.zk-start-subtitle {
  margin: 0;
  color: rgba(226, 232, 240, 0.8);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 64ch;
}

.zk-start-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

/* Zwei Kacheln: mobil untereinander, nebeneinander ab ausreichend Viewport-Breite */
.zk-start-options.zk-start-options--dual {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .zk-start-options.zk-start-options--dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.zk-start-option {
  display: block;
}

.zk-start-option-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  min-height: 12.5rem;
  padding: 1.3rem 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-top: 2px solid rgba(163, 230, 53, 0.95);
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.46) 0%, rgba(30, 41, 59, 0.62) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 0 40px -15px rgba(163, 230, 53, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 30px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.zk-start-option-card:hover {
  transform: translateY(-2px);
  border-color: rgba(190, 242, 100, 0.42);
  border-top-color: rgba(163, 230, 53, 1);
  box-shadow: 0 0 44px -14px rgba(163, 230, 53, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 34px rgba(0, 0, 0, 0.34);
}

.zk-start-option-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.42;
  mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), transparent 85%);
}

.zk-start-option-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse farthest-side at 50% 0%, rgba(163, 230, 53, 0.12) 0%, transparent 70%);
  opacity: 0.95;
}

.zk-start-option-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  display: contents;
}

.zk-start-option-logo {
  position: absolute;
  top: 1.25rem;
  left: 1.1rem;
  height: 1.7rem;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
  filter: none;
  z-index: 2;
}

.zk-start-option-copy {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.zk-start-option-text {
  font-size: 1.55rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.98);
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.zk-start-option-desc {
  font-size: 0.94rem;
  line-height: 1.45;
  color: rgba(161, 161, 170, 0.92);
}

.zk-start-option input.peer:checked + .zk-start-option-card {
  border-color: rgba(63, 63, 70, 0.98);
  border-top-color: rgba(163, 230, 53, 1);
  box-shadow: 0 0 0 1px rgba(163, 230, 53, 0.22), 0 0 44px -14px rgba(163, 230, 53, 0.28), 0 16px 32px rgba(0, 0, 0, 0.34);
}

@media (max-width: 1199px) {
  .zk-start-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zk-start-option-card {
    min-height: 11.6rem;
  }

  .zk-start-option-text {
    font-size: 1.4rem;
  }
}

@media (max-width: 767px) {
  #formShell.zk-start-layout {
    padding-top: 0 !important;
  }

  .zk-start-screen {
    gap: 1rem;
  }

  .zk-start-title {
    text-wrap: balance;
    font-size: clamp(1.45rem, 7vw, 1.9rem);
    line-height: 1.16;
  }

  .zk-start-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 34ch;
  }

  .zk-start-option-card {
    min-height: 10.6rem;
    border-radius: 0.85rem;
    padding: 1rem 0.85rem 0.92rem;
    box-shadow: 0 0 30px -16px rgba(163, 230, 53, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 20px rgba(0, 0, 0, 0.24);
  }

  .zk-start-options,
  .zk-start-options.zk-start-options--dual {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .zk-start-option-logo {
    top: 0.9rem;
    left: 0.85rem;
    height: 1.4rem;
  }

  .zk-start-option-text {
    font-size: 1.2rem;
    line-height: 1.15;
  }

  .zk-start-option-desc {
    font-size: 0.86rem;
    line-height: 1.45;
  }
}

@media (max-width: 420px) {
  .zk-start-screen {
    gap: 0.85rem;
  }

  .zk-start-title {
    font-size: clamp(1.3rem, 7.2vw, 1.7rem);
    text-wrap: balance;
  }

  .zk-start-subtitle {
    font-size: 0.85rem;
  }

  .zk-start-option-card {
    min-height: 9.8rem;
    padding: 0.92rem 0.78rem 0.84rem;
  }

  .zk-start-option-logo {
    top: 0.78rem;
    left: 0.78rem;
    height: 1.2rem;
  }

  .zk-start-option-text {
    font-size: 1.05rem;
  }

  .zk-start-option-desc {
    font-size: 0.8rem;
  }
}

/* Ergebnis: aufklappbare Antwort-Zusammenfassung */
.zk-summary-details {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.zk-summary-details__summary {
  list-style: none;
}

.zk-summary-details__summary::-webkit-details-marker {
  display: none;
}

.zk-summary-details__summary::after {
  content: "";
  float: right;
  margin-top: 0.2em;
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.zk-summary-details[open] .zk-summary-details__summary::after {
  transform: rotate(-135deg);
  margin-top: 0.35em;
}

.zk-summary-details__body {
  max-height: min(55vh, 28rem);
  overflow-y: auto;
}

.zk-sum-pair {
  display: grid;
  gap: 0.15rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 480px) {
  .zk-sum-pair {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
  }
}

.zk-sum-pair:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.zk-sum-pair__dt {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.48);
}

.zk-sum-pair__dd {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  word-break: break-word;
}

/* Start-Auswahl: gleiche Glaseffekt-/Hover-Logik wie zk-option-btn / Formular-Kacheln */
.zk-start-option-pane {
  position: relative;
  display: grid;
  gap: 0.5rem;
  width: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(12px) saturate(100%);
  backdrop-filter: blur(12px) saturate(100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease,
    background-color 0.25s ease;
}

.zk-start-option-pane:hover {
  border-color: rgba(190, 242, 100, 0.35);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 22px rgba(190, 242, 100, 0.14);
  transform: translateY(-2px);
}

.zk-start-option-pane--techum,
.zk-start-option-pane--kompost {
  border-top: 2px solid rgba(190, 242, 100, 0.65);
}

.zk-start-option input.peer:checked + .zk-start-option-pane {
  border-color: rgba(190, 242, 100, 0.55);
  background: rgba(190, 242, 100, 0.14);
  box-shadow: 0 0 26px rgba(190, 242, 100, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.zk-start-option-pane__title {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}

.zk-start-option-pane__hook {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(190, 242, 100, 0.95);
  position: relative;
  z-index: 1;
}

.zk-start-option-pane__desc {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.82);
  position: relative;
  z-index: 1;
}

#nextBtn.zk-next-as-primary {
  box-shadow: 0 0 32px rgba(190, 242, 100, 0.38);
}

#nextBtn.zk-next-as-primary:hover {
  box-shadow: 0 10px 34px -5px rgba(190, 242, 100, 0.48);
}

/* =========================================================================
   Mini-Polish 2026-05-15 (additiv) – subtile Konsistenz & Wertigkeit
   Nur Optik. Keine Layout-/Logik-Änderungen.
   ========================================================================= */

/* Konsistente Akzentfarbe für alle Checkboxen (auch Standard-Checkboxen) */
.zk-precheck-body input[type="checkbox"] {
  accent-color: #bef264;
}

/* Eingabe-Felder: leichter „Lift“ im Fokus für mehr Wertigkeit */
.glass-input {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease,
    transform 0.2s ease;
}

.glass-input:focus {
  transform: translateY(-1px);
}

/* Bestätigungs-Card – Header wirkt jetzt als feines Eyebrow */
.zk-check-card > p:first-child {
  margin-bottom: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(190, 242, 100, 0.92);
}

/* Welcome-Schritte: Nummerierte Bullets als saubere Kreis-Badges */
.zk-welcome-points span {
  align-self: start;
  flex-shrink: 0;
  margin-top: 0.18rem;
  width: 1.4rem;
  height: 1.4rem;
  min-width: 1.4rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(190, 242, 100, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Kompost-Material-Liste: stimmiger Hover + dezenter Lime-Glow bei Auswahl */
.form-step[data-step-key="kompost_materialien"] label {
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.form-step[data-step-key="kompost_materialien"] label:hover {
  background-color: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.form-step[data-step-key="kompost_materialien"] label:has(input:checked) {
  background-color: rgba(190, 242, 100, 0.08);
  box-shadow: 0 0 18px rgba(190, 242, 100, 0.14),
    inset 0 0 0 1px rgba(190, 242, 100, 0.22);
}

/* Kompost-Kategorie-Kacheln: gleicher Lift-/Glow-Stil wie restliche Optionen */
.form-step[data-step-key="kompost_kategorie"] [role="radiogroup"] label {
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.form-step[data-step-key="kompost_kategorie"] [role="radiogroup"] label:hover {
  transform: translateY(-1px);
  background-color: rgba(255, 255, 255, 0.04);
}

.form-step[data-step-key="kompost_kategorie"] [role="radiogroup"] label:has(input:checked) {
  box-shadow: 0 0 20px rgba(190, 242, 100, 0.18),
    inset 0 0 0 1px rgba(190, 242, 100, 0.3);
}

/* Antwort-Zusammenfassung: feiner Hover + saubere Trennung im offenen Zustand */
.zk-summary-details__summary {
  transition: background-color 0.2s ease, color 0.2s ease;
  border-radius: inherit;
}

.zk-summary-details__summary:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.zk-summary-details[open] .zk-summary-details__summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* CTA-Buttons: feines Letter-Spacing für Premium-Anmutung */
#nextBtn,
#submitBtn,
#prevBtn,
#restartBtn {
  letter-spacing: 0.01em;
}

/* Ampel-Container: dezenter Inset-Top-Light für mehr Tiefe */
.traffic-light-container {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.025) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Boot-Overlay: leiser Lime-Schimmer auf dem Eyebrow */
.zk-boot-eyebrow {
  text-shadow: 0 0 18px rgba(190, 242, 100, 0.32);
}

/* Footer-Trennzeichen rendern sich auf Mobile sonst eng – Lesefluss verbessern */
.zk-footer .opacity-40 {
  user-select: none;
  letter-spacing: 0.06em;
}

/* Progress-Bar: ganz dezenter Shimmer (rein dekorativ, hardware-leicht) */
@keyframes zkProgressShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.zk-progress-fill {
  background-image: linear-gradient(90deg, #65a30d 0%, #bef264 50%, #84cc16 100%);
  background-size: 200% 100%;
  animation: zkProgressShimmer 6s linear infinite;
}

/* Reduced-Motion respektieren */
@media (prefers-reduced-motion: reduce) {
  .zk-progress-fill {
    animation: none;
  }

  .glass-input:focus {
    transform: none;
  }

  .form-step[data-step-key="kompost_materialien"] label:hover,
  .form-step[data-step-key="kompost_kategorie"] [role="radiogroup"] label:hover {
    transform: none;
  }
}

/* Mobile-Feinschliff: Welcome-Bullets etwas kompakter, Progress-Pill kontrastreicher */
@media (max-width: 767px) {
  .zk-welcome-points span {
    width: 1.3rem;
    height: 1.3rem;
    min-width: 1.3rem;
    margin-top: 0.14rem;
    font-size: 0.66rem;
  }

  .zk-check-card > p:first-child {
    font-size: 0.68rem;
  }

  .zk-progress-pill {
    border-color: rgba(190, 242, 100, 0.32) !important;
  }
}

/* =========================================================================
   Layout-Polish 2026-05-15c – größere Logos, Card-Steps, Radius-Fix, Mobile-Scroll
   ========================================================================= */

/* --- Startseite: Logos größer, mehr Atmen, Hero-Eyebrow + Helper-Copy ------ */
.zk-start-screen {
  gap: 1.65rem;
}

.zk-start-hero {
  gap: 0.85rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.zk-start-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(190, 242, 100, 0.32);
  background: rgba(190, 242, 100, 0.08);
  color: #bef264;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zk-start-helper {
  margin: 0.2rem 0 0;
  max-width: 60ch;
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Logo-Bereich in den Auswahl-Kacheln */
.zk-start-option-pane {
  padding: 1.7rem 1.4rem 1.55rem;
  gap: 0.55rem;
}

.zk-start-option-pane__logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 4.6rem;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.zk-start-option-pane__logo-img {
  height: 100%;
  width: auto;
  max-height: 4.6rem;
  max-width: 13.5rem;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.zk-start-option-pane__logo-img--kompost {
  max-width: 10.5rem;
  max-height: 4.8rem;
}

.zk-start-option-pane__title {
  margin-top: 0;
  font-size: 1.18rem;
}

.zk-start-option-pane__hook {
  font-size: 0.88rem;
  line-height: 1.45;
}

.zk-start-option-pane__desc {
  font-size: 0.84rem;
  line-height: 1.5;
}

/* --- Intro-Logo (oberhalb des Fragebogens): TECHUM/Kompost größer --------- */
.zk-intro-head__techum {
  height: 5rem;
  max-width: 14rem;
}

@media (min-width: 640px) {
  .zk-intro-head__techum {
    height: 6.2rem;
    max-width: 17rem;
  }
}

.zk-intro-head__techum--kompost {
  /* Kompost-Logo hat etwas mehr Whitespace im Original – minimal größer skalieren */
  height: 5.6rem;
  max-height: 5.6rem;
}

@media (min-width: 640px) {
  .zk-intro-head__techum--kompost {
    height: 6.8rem;
    max-height: 6.8rem;
    max-width: 15.5rem;
  }
}

/* --- Welcome-Logos (in willkommen / kompost_intro Step) ------------------- */
#zkIntroLogo,
#zkWelcomeLogo,
#zkKompostWelcomeLogo {
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.4));
}

/* --- Zugang-Landing (1. Zahlung) - eigene Premium-Card -------------------- */
.zk-zugang-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.2rem;
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(190, 242, 100, 0.28);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(190, 242, 100, 0.16) 0%, transparent 55%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.52) 60%, rgba(0, 0, 0, 0.36) 100%);
  box-shadow:
    0 22px 50px -18px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(190, 242, 100, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.zk-zugang-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), transparent 80%);
  opacity: 0.55;
}

.zk-zugang-card > * {
  position: relative;
  z-index: 1;
}

.zk-zugang-card__head {
  display: grid;
  gap: 0.5rem;
}

.zk-zugang-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(190, 242, 100, 0.32);
  background: rgba(190, 242, 100, 0.08);
  color: #bef264;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zk-zugang-title {
  margin: 0.25rem 0 0;
  color: #ffffff;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.zk-zugang-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-top: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(190, 242, 100, 0.22);
  background: rgba(190, 242, 100, 0.05);
  width: fit-content;
}

.zk-zugang-price__amount {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #bef264 0%, #a3e635 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.zk-zugang-price__meta {
  font-size: 0.78rem;
  color: rgba(203, 213, 225, 0.8);
  letter-spacing: 0.02em;
}

.zk-zugang-lead {
  margin: 0;
  color: rgba(241, 245, 249, 0.9);
  font-size: 1rem;
  line-height: 1.6;
}

.zk-zugang-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.zk-zugang-bullets li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(241, 245, 249, 0.92);
  font-size: 0.94rem;
  line-height: 1.5;
}

.zk-zugang-bullets__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #bef264 0%, #a3e635 100%);
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(190, 242, 100, 0.28);
}

.zk-zugang-footnote {
  margin: 0;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(203, 213, 225, 0.7);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* --- Portal-Angebot (nach 2. Zahlung): Container drumherum ---------------- */
.zk-portal-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.1rem;
  padding: 1.5rem 1.45rem 1.35rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(190, 242, 100, 0.28);
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(190, 242, 100, 0.13) 0%, transparent 55%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.52) 60%, rgba(0, 0, 0, 0.36) 100%);
  box-shadow:
    0 22px 50px -18px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(190, 242, 100, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.zk-portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), transparent 80%);
  opacity: 0.45;
}

.zk-portal-card > * {
  position: relative;
  z-index: 1;
}

.zk-portal-card__head {
  display: grid;
  gap: 0.45rem;
  text-align: center;
  margin-bottom: 0.2rem;
}

.zk-portal-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bef264;
}

.zk-portal-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.zk-portal-body {
  margin: 0;
  color: rgba(241, 245, 249, 0.9);
  font-size: 0.96rem;
  line-height: 1.6;
  display: grid;
  gap: 0.7rem;
}

.zk-portal-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.zk-portal-bullets li {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.6rem 0.85rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(241, 245, 249, 0.92);
  font-size: 0.92rem;
  line-height: 1.5;
}

.zk-portal-bullets li::before {
  content: "";
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #bef264 0%, #a3e635 100%);
  box-shadow: 0 0 12px rgba(190, 242, 100, 0.45);
}

.zk-portal-footer {
  margin: 0;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(203, 213, 225, 0.7);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

/* --- Ja/Nein-Buttons: Label-Wrapper bekommt SAME radius wie Inner-Pill ---- */
.form-step [role="radiogroup"] > label {
  display: inline-flex;
  border-radius: 999px;
}

/* In den Fragen ist der Optionsbutton kein Pill, sondern rounded 0.95rem. */
.form-step[data-step-key^="frage"] [role="radiogroup"] > label {
  border-radius: 0.95rem;
  width: 100%;
}

/* Startseite (Zertifikatsauswahl): Label-Radius muss zum rechteckigen Pane
   passen – nicht zum allgemeinen Pill-Default. Höhere Spezifität sticht
   den `.form-step [role="radiogroup"] > label`-Default. */
.form-step[data-step-key="auswahl_zertifikat"] [role="radiogroup"] > label.zk-start-option {
  border-radius: 1rem !important;
  display: block;
}

/* --- Mobile: Scrolling + Overscroll-Fix ---------------------------------- */
@media (max-width: 767px) {
  html,
  body.zk-precheck-body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    touch-action: pan-y;
  }

  #zk-app-root {
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
  }

  #zk-app-root main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: safe center !important;
    overflow-y: visible !important;
    padding: 0.9rem 0.75rem calc(5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  #zk-app-root main:has(#restartBtn:not(.hidden)) {
    padding-bottom: calc(6.4rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  #zk-app-root main > .liquid-glass {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Mobile-Anpassungen Zugang-/Portal-Card */
@media (max-width: 767px) {
  .zk-zugang-card,
  .zk-portal-card {
    padding: 1.1rem 1rem 1rem;
    border-radius: 1rem;
  }

  .zk-zugang-price {
    padding: 0.45rem 0.78rem;
  }

  .zk-zugang-price__amount {
    font-size: 1.55rem;
  }

  .zk-zugang-bullets li,
  .zk-portal-bullets li {
    padding: 0.55rem 0.7rem;
    font-size: 0.88rem;
  }

  .zk-start-option-pane {
    padding: 1.25rem 1rem 1.1rem;
  }

  .zk-start-option-pane__logo {
    height: 3.5rem;
    margin-bottom: 0.45rem;
  }

  .zk-start-option-pane__logo-img {
    max-height: 3.5rem;
    max-width: 10rem;
  }

  .zk-start-option-pane__logo-img--kompost {
    max-width: 8rem;
    max-height: 3.6rem;
  }

  .zk-start-option-pane__title {
    font-size: 1.05rem;
  }

  .zk-start-option-pane__hook {
    font-size: 0.82rem;
  }

  .zk-start-option-pane__desc {
    font-size: 0.8rem;
  }

  .zk-start-helper {
    font-size: 0.82rem;
  }

  /* Welcome-Step-Logos auf Mobile (überschreibt die alten Mobile-FINAL-Regeln) */
  .zk-intro-head__techum {
    height: 3.6rem !important;
    max-width: 11rem !important;
  }

  .zk-intro-head__techum--kompost {
    height: 4rem !important;
    max-height: 4rem !important;
    max-width: 10rem !important;
  }
}

/* =========================================================================
   Mobile: 3-Button-Layout (Ergebnis-Step mit "Neu starten" sichtbar)
   Zurück + Neu starten klein in Zeile 1, CTA volle Breite + prominent unten.
   Nutzt :has() (Chrome 105+, Safari 15.4+, Firefox 121+).
   ========================================================================= */
@media (max-width: 767px) {
  #precheckForm > .flex.flex-wrap.items-center.justify-between.gap-3:has(#restartBtn:not(.hidden)) {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 0.5rem 0.55rem !important;
  }

  /* formActionButtons wird transparent – seine Kinder werden direkte Grid-Kinder */
  #precheckForm > .flex.flex-wrap.items-center.justify-between.gap-3:has(#restartBtn:not(.hidden)) > #formActionButtons {
    display: contents !important;
  }

  /* Zurück: Zeile 1, Spalte 1 – sekundär (kleiner) */
  #precheckForm > .flex.flex-wrap.items-center.justify-between.gap-3:has(#restartBtn:not(.hidden)) > #prevBtn {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 2.7rem !important;
    font-size: 0.88rem !important;
    padding: 0.55rem 0.7rem !important;
  }

  /* Neu starten: Zeile 1, Spalte 2 – sekundär (kleiner) */
  #precheckForm > .flex.flex-wrap.items-center.justify-between.gap-3:has(#restartBtn:not(.hidden)) #restartBtn:not(.hidden) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-height: 2.7rem !important;
    font-size: 0.88rem !important;
    padding: 0.55rem 0.7rem !important;
  }

  /* Weiter/Submit: Zeile 2, volle Breite – PRIO/CTA */
  #precheckForm > .flex.flex-wrap.items-center.justify-between.gap-3:has(#restartBtn:not(.hidden)) #nextBtn:not(.hidden),
  #precheckForm > .flex.flex-wrap.items-center.justify-between.gap-3:has(#restartBtn:not(.hidden)) #submitBtn:not(.hidden) {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    min-height: 3.3rem !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 12px 28px -6px rgba(190, 242, 100, 0.55), 0 0 24px rgba(190, 242, 100, 0.32) !important;
  }
}

/* =========================================================================
   Tablet-Optimierung (additiv, ohne Mobile/Desktop zu verändern)
   Zielbereich: 768px bis 1024px
   ========================================================================= */
@media (min-width: 768px) and (max-width: 1024px) {
  html,
  body.zk-precheck-body,
  #zk-app-root {
    overflow-x: hidden;
  }

  #zk-app-root header.zk-topbar {
    padding: 0.95rem 1rem 0.95rem !important;
  }

  #zk-app-root main {
    padding: 0.8rem 1rem 5.75rem !important;
  }

  #zk-app-root main > .liquid-glass {
    width: 100%;
    max-width: 940px;
    padding: 1.2rem 1.2rem 1.35rem !important;
  }

  #formIntroBlock {
    margin-bottom: 1.55rem !important;
  }

  .zk-form-title {
    font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  }

  .form-step {
    gap: 1rem !important;
  }

  .zk-question-card {
    padding: 1rem 1rem 0.95rem;
  }

  .zk-question-title {
    font-size: clamp(1.2rem, 2.5vw, 1.55rem) !important;
  }

  .zk-question-subtitle,
  #statusMessage,
  .zk-abschluss-hint {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  /* Zwei Zertifikats-Karten: gleiche Höhe bei Nebeneinander-Darstellung */
  .zk-start-options.zk-start-options--dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.95rem;
  }

  .zk-start-options.zk-start-options--dual > .zk-start-option {
    display: flex;
    min-height: 100%;
  }

  .zk-start-options.zk-start-options--dual > .zk-start-option > .zk-start-option-pane {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: 1.3rem 1.05rem 1.05rem;
    gap: 0.5rem;
  }

  .zk-start-option-pane__logo {
    height: 3.95rem;
    margin-bottom: 0.48rem;
  }

  .zk-start-option-pane__logo-img {
    max-height: 3.95rem;
    max-width: 11.4rem;
  }

  .zk-start-option-pane__logo-img--kompost {
    max-height: 3.95rem;
    max-width: 9.4rem;
  }

  .zk-start-option-pane__title {
    font-size: 1.02rem;
    line-height: 1.22;
  }

  .zk-start-option-pane__hook {
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .zk-start-option-pane__desc {
    font-size: 0.82rem;
    line-height: 1.44;
    overflow-wrap: anywhere;
  }

  #precheckForm > .flex.flex-wrap.items-center.justify-between.gap-3 {
    gap: 0.7rem !important;
    padding-top: 1rem !important;
  }
}

/* =========================================================================
   Zertifikats-Auswahl: dynamische Equal-Height-Logik (global)
   Gilt auf allen Breakpoints, sobald beide Karten nebeneinander stehen.
   ========================================================================= */
.zk-start-options.zk-start-options--dual {
  align-items: stretch;
}

.zk-start-options.zk-start-options--dual > .zk-start-option {
  display: flex;
  min-height: 100%;
}

.zk-start-options.zk-start-options--dual > .zk-start-option > .zk-start-option-pane {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  width: 100%;
  min-height: 100%;
  height: 100%;
}

