 :root {
  --background: #f1f9fb;
  --surface: #ffffff;
  --surface-muted: #f3f4f6;
  --primary: #0f4f68;
  --primary-strong: #0f4f68;
  --text-main: #0f172a;
  --text-muted: #6b7280;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
  background-color: #f1f9fb;
}

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
}

.hero-wrapper {
  position: relative;
  /*
   * NICHT overflow-x: hidden + overflow-y: visible — das verwandelt y in „auto“ (Scroll-Container).
   * Dann scrollt die Seite „doppelt“ und klemmt oft bei der breiten Bettschutzeinlage-Zeile.
   */
  overflow-x: clip;
  overflow-y: visible;
  background: #f1f9fb;
}

@supports not (overflow: clip) {
  .hero-wrapper {
    overflow-x: visible;
  }
}

/*
 * Site-Iframe (?embed=1): Next setzt feste Iframe-Höhe (Viewport − Header).
 * Scroll nur in .hero-wrapper → position:sticky für „Meine Pflegebox“ (Desktop) und Budget‑% (Mobile).
 */
html.kfg-embed {
  height: 100%;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Sonst unten Weiß, wenn das Dokument höher als der sichtbare Inhalt ist */
  background-color: #f1f9fb;
}

html.kfg-embed::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html.kfg-embed body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: #f1f9fb;
}

html.kfg-embed body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/*
 * Kein flex-grow: sonst füllt .hero-wrapper die Iframe-Höhe und unter dem Footer bleibt
 * sichtbarer Leerraum (gleiche Hintergrundfarbe). Höhe der Iframe steuert die Next-Seite per postMessage.
 */
html.kfg-embed .hero-wrapper {
  flex: 0 1 auto;
  flex-grow: 0;
  min-height: 0;
  max-height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f1f9fb;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.kfg-embed .hero-wrapper::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Breite Bettschutzeinlage: horizontales Scroll nur im linken Panel (Balken unsichtbar) */
html.kfg-embed .layout > .panel:first-of-type {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.kfg-embed .layout > .panel:first-of-type::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Optische Größe wie früher nur im Embed (globalen zoom entfernt wegen Karten-Verzerrung) */
html.kfg-embed .hero-overlay {
  zoom: 0.823;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: min(100%, 1282px);
  margin: 0 auto;
  /* Symmetrisches Inline-Padding: vermeidet nach rechts verschobenes Layout (früher größeres padding-left). */
  padding-top: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  padding-inline: clamp(16px, 3.5vw, 40px);
}

.header {
  margin-top: max(0.75rem, 2.5vh);
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 20px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 0 6px;
}

.steps::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 2px;
  background: #0f4f68;
  transform: translateY(-50%);
  z-index: 0;
}

.step {
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #0f4f68;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 82.5%;
  box-sizing: border-box;
}

.step:first-child {
  justify-self: start;
}

.step:nth-child(2) {
  justify-self: center;
}

.step:last-child {
  justify-self: end;
}

.step:not(:last-child)::after {
  display: none;
}

.step-title {
  font-size: 1.4rem;
  color: #0f4f68;
}

.step--active {
  background: #0f4f68;
  box-shadow: none;
}

.step--active .step-title {
  color: #ffffff;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.76fr) minmax(0, 1.2fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
}

/* Desktop: „Meine Pflegebox“-Spalte bleibt beim Scrollen sichtbar */
@media (min-width: 901px) {
  .layout > .panel:last-of-type {
    position: sticky;
    top: max(1rem, env(safe-area-inset-top, 0px));
    align-self: start;
    z-index: 5;
  }

  /* Kein zusätzliches padding nur links — sonst wirkt das Raster zum Viewport versetzt. */
  .layout > .panel:first-of-type {
    padding-left: 0;
  }
}

.panel {
  padding: 12px clamp(12px, 1.25vw, 18px);
}

.panel h2 {
  margin: 0;
  font-size: 2rem;
  color: #0f4f68;
}

.layout > .panel:first-of-type > h2 {
  min-height: 141px;
  display: flex;
  align-items: center;
}

.panel-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.item-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 3%;
  align-items: start;
  /* Platz für Karten-Schatten, damit unten nichts abgeschnitten wird */
  padding-bottom: 12px;
}

/* Rechtliche Kurzlinks unter der Produktliste (nur Konfigurator, kein Site-Footer) */
.kfg-mini-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(15, 79, 104, 0.14);
  font-size: 0.82rem;
  line-height: 1.4;
}

.kfg-mini-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.kfg-mini-footer a:hover,
.kfg-mini-footer a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.kfg-mini-footer a:focus-visible {
  box-shadow: 0 0 0 2px rgba(15, 79, 104, 0.35);
  border-radius: 4px;
}

.kfg-mini-footer-sep {
  color: var(--text-muted);
  user-select: none;
  font-weight: 400;
}

/* Rechtliches + Copyright unter beiden Spalten (kein riesiger Leerraum durch leere Warenkorb-Spalte auf Mobil) */
.kfg-site-footer {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  padding-bottom: 0;
  margin-bottom: max(0.1rem, env(safe-area-inset-bottom, 0px));
}

.kfg-site-footer .kfg-mini-footer {
  margin-top: 0;
}

.kfg-mini-footer-copy {
  margin: 0.55rem 0 0;
  padding: 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Volle Zeile, Höhe = Breite → Fläche wie 2×2 Einzelkarten (ohne riesige Karte) */
.item.item--double-width {
  grid-column: span 2;
  aspect-ratio: 1;
  max-height: none;
  /* Sehr dezenter Schatten am ganzen Kasten */
  box-shadow:
    0 1px 4px rgba(15, 79, 104, 0.045),
    0 2px 10px rgba(15, 79, 104, 0.04);
}

.item.item--double-width:hover {
  box-shadow:
    0 2px 8px rgba(15, 79, 104, 0.06),
    0 3px 14px rgba(15, 79, 104, 0.05);
}

.item {
  position: relative;
  min-width: 0;
  width: 100%;
  align-self: start;
  aspect-ratio: 1;
  /* visible: Karten-Schatten und Button-Schatten werden nicht unten abgeschnitten */
  overflow: visible;
  border-radius: 20px;
  padding: 8px 10px 10px;
  border: 1px solid rgba(15, 79, 104, 0.12);
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 79, 104, 0.06), 0 2px 8px rgba(15, 23, 42, 0.035);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    border-color 0.12s ease-out,
    background 0.15s ease-out;
}

.item-inner {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.item:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 79, 104, 0.24);
  box-shadow: 0 12px 34px rgba(15, 79, 104, 0.1), 0 4px 14px rgba(15, 23, 42, 0.05);
}

.item-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

/*
 * Bildbereich füllt den Platz in der quadratischen Karte; Bild zentriert, object-fit: contain (keine Verzerrung).
 */
.item-image-frame {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  flex: 1 1 0;
  min-height: 0;
  margin: 0 0 6px;
  border-radius: 14px;
  background: #ffffff;
  border: none;
  overflow: hidden;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-image-frame .item-image {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Wiederverwendbare Bettschutzeinlage: gleicher Bildbereich wie Einzelkarten (flex), füllt das Quadrat proportional */
.item--double-width .item-image-frame {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.item--double-width .item-name {
  font-size: clamp(0.98rem, 2.95vw, 1.32rem);
  -webkit-line-clamp: 2;
}

.item--double-width .item-description {
  font-size: 0.96rem;
  font-weight: 600;
  -webkit-line-clamp: 3;
  line-height: 1.4;
}

.item-name {
  font-weight: 700;
  font-size: clamp(0.85rem, 2.28vw, 1.16rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--primary);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.item-description {
  font-size: 0.81rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
}

.item-meta-row {
  font-size: 0.93rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.item-size-select {
  margin-top: 4px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  padding: 3px 8px;
  font-size: 0.83rem;
  background: #ffffff;
  align-self: flex-start;
}

.item-qty-row {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 79, 104, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

.item-qty-btn {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  border-radius: 16px;
  border: 2px solid rgba(15, 79, 104, 0.88);
  background: #ffffff;
  color: #0f4f68;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 79, 104, 0.1);
  transition:
    background 0.15s ease-out,
    color 0.15s ease-out,
    transform 0.1s ease-out,
    box-shadow 0.15s ease-out,
    border-color 0.15s ease-out;
}

.item-qty-btn:hover:not(.item-qty-btn--disabled):not(:disabled) {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 79, 104, 0.28);
}

.item-qty-btn:active:not(.item-qty-btn--disabled):not(:disabled) {
  transform: translateY(0);
}

.item-qty-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.item-qty-btn--disabled,
.item-qty-btn:disabled {
  border-width: 2px;
  border-color: rgba(148, 163, 184, 0.55);
  color: rgba(148, 163, 184, 0.95);
  background: #f1f5f9;
  box-shadow: none;
  cursor: not-allowed;
}

.item-qty-value {
  min-width: 2.25rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.item-inner-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.item-unavailable .item-inner-content {
  filter: blur(3px);
}

.item-unavailable .item-qty-row {
  position: relative;
  z-index: 1;
}

.item-unavailable-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #c2410c;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  max-width: 92%;
  text-align: center;
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.95),
    0 0 6px rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.item-limit-message {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.45);
  color: #9a3412;
  font-size: calc(1.05rem * 1.25);
  font-weight: 700;
  line-height: 1.4;
}

.handschuh-size-btn.ml-variant-btn {
  display: flex;
  min-width: 4.25rem;
  flex: 0 0 auto;
  min-height: 3.85rem;
  padding: 10px 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.ml-variant-btn-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.1;
}

.ml-variant-num {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ml-variant-unit {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.handschuh-size-row--ml-sizes {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.handschuh-size-btn--disabled,
.handschuh-size-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.handschuh-dialog--ml-variant .handschuh-dialog-title {
  text-align: center;
  width: 100%;
  margin-right: 0;
  padding: 0 2.75rem 0 0.5rem;
  box-sizing: border-box;
}

.handschuh-dialog--ml-variant .handschuh-dialog-lead {
  text-align: center;
  width: 100%;
}

.handschuh-dialog--ml-variant .handschuh-dialog-actions--centered .handschuh-btn-primary--prominent,
.handschuh-dialog--ml-variant .handschuh-dialog-actions--centered .handschuh-btn-secondary {
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.bettschutz-hint-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f4f68;
  background: linear-gradient(
    135deg,
    rgba(15, 79, 104, 0.1) 0%,
    rgba(15, 79, 104, 0.06) 45%,
    rgba(247, 143, 46, 0.08) 100%
  );
  border: 1px solid rgba(15, 79, 104, 0.14);
  box-shadow: 0 4px 14px rgba(15, 79, 104, 0.08);
  overflow: hidden;
  text-align: center;
  flex-wrap: wrap;
}

.bettschutz-hint-chip-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 120deg,
    transparent,
    rgba(15, 79, 104, 0.14),
    rgba(247, 143, 46, 0.08),
    transparent 45%
  );
  animation: bettschutz-chip-shimmer 4s linear infinite;
  opacity: 0.28;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .bettschutz-hint-chip-glow {
    animation: none;
    opacity: 0.12;
  }
}

@keyframes bettschutz-chip-shimmer {
  to {
    transform: rotate(360deg);
  }
}

.bettschutz-hint-chip-label {
  position: relative;
  z-index: 1;
}

.bettschutz-hint-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
}

.handschuh-dialog.handschuh-dialog--bettschutz-hint .bettschutz-hint-hero .handschuh-dialog-title {
  font-size: 1.24rem;
  line-height: 1.28;
  margin: 0 0 0.5rem;
  padding: 0 2.25rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.bettschutz-hint-figure {
  margin: 0 auto 0.35rem;
  max-width: 168px;
  width: 100%;
  text-align: center;
  flex-shrink: 0;
  padding: 2px 0 0;
}

.bettschutz-hint-img {
  display: block;
  width: 100%;
  max-width: 168px;
  height: auto;
  max-height: min(28dvh, 150px);
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 79, 104, 0.12);
  object-fit: contain;
  background: #f8fafc;
  box-sizing: border-box;
  /* wie Startseite: drop-shadow auf Produktfotos */
  filter: drop-shadow(0 10px 22px rgba(15, 79, 104, 0.2)) drop-shadow(0 4px 12px rgba(15, 79, 104, 0.12));
}

@keyframes bettschutz-img-pulse {
  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 10px 22px rgba(15, 79, 104, 0.2)) drop-shadow(0 4px 12px rgba(15, 79, 104, 0.12));
    box-shadow: 0 0 0 0 rgba(15, 79, 104, 0.12);
  }
  50% {
    opacity: 0.96;
    filter: drop-shadow(0 12px 26px rgba(15, 79, 104, 0.22)) drop-shadow(0 5px 14px rgba(15, 79, 104, 0.13));
    box-shadow: 0 6px 20px rgba(15, 79, 104, 0.14);
  }
}

.bettschutz-hint-img.bettschutz-hint-img--pulse {
  animation: bettschutz-img-pulse 0.75s ease-in-out 3;
}

@media (prefers-reduced-motion: reduce) {
  .bettschutz-hint-img.bettschutz-hint-img--pulse {
    animation: none;
  }
}

.bettschutz-hint-qty-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 79, 104, 0.1);
}

.bettschutz-hint-qty-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

.bettschutz-hint-qty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bettschutz-hint-qty-value {
  min-width: 2.25rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

.bettschutz-hint-qty-btn {
  flex-shrink: 0;
}

/* Im Modal keine 58px-Kacheln — kompakt, passt in niedrige Iframes */
.bettschutz-hint-qty-row .item-qty-btn.bettschutz-hint-qty-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 12px;
  font-size: 1.45rem;
}

.bettschutz-hint-qty-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.bettschutz-hint-body {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--text-main);
  text-align: center;
}

.bettschutz-hint-body p {
  margin: 0 0 0.5rem;
}

.bettschutz-hint-body p:last-child {
  margin-bottom: 0;
}

.handschuh-dialog-actions--bettschutz-hint {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  padding-top: 0.55rem;
  padding-bottom: 0.1rem;
}

.handschuh-dialog-actions--bettschutz-hint .handschuh-btn-secondary {
  flex: 1 1 clamp(140px, 42%, 100%);
  order: 1;
  min-height: 44px;
  padding: 10px 12px;
  line-height: 1.28;
  font-size: 0.88rem;
  text-align: center;
  white-space: normal;
}

.handschuh-dialog-actions--bettschutz-hint .handschuh-btn-primary--prominent {
  flex: 1 1 clamp(140px, 42%, 100%);
  order: 2;
  min-height: 44px;
  padding: 10px 12px;
  line-height: 1.28;
  font-size: 0.92rem;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .handschuh-dialog-actions--bettschutz-hint .handschuh-btn-primary--prominent {
    white-space: normal;
  }
}

.cart {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
  padding: 8px 0 2px;
  border-radius: 10px;
  background: #ffffff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-next-step {
  display: block;
  width: 100%;
  margin-top: 5%;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-next-step:hover {
  background: #0a3d52;
}

.btn-next-step:active {
  transform: scale(0.98);
}

.btn-next-step:disabled,
.btn-next-step[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  background: #64748b;
  transform: none;
}

.btn-next-step:disabled:hover,
.btn-next-step[disabled]:hover {
  background: #64748b;
}

.btn-next-step[hidden] {
  display: none !important;
}

.cart-empty {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--primary);
  padding: 0.5rem 0.75rem;
}

/* Leerer Warenkorb: Hinweis mittig im weißen Bereich */
.cart:has(> .cart-empty:only-child) {
  min-height: 168px;
  justify-content: center;
  align-items: stretch;
}

.cart-item {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-radius: 10px;
  background: #ffffff;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cart-item-image-frame {
  width: 52px;
  height: 52px;
  min-width: 52px;
  flex-shrink: 0;
  margin-right: 6px;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  align-self: center;
}

.cart-item-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.cart-item-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-name {
  font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #0f4f68;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cart-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-qty-row {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
}

/* Kompakter als Produktkacheln: passt in eine Zeile mit Budget-Balken-Breite */
.cart-qty-row .item-qty-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  font-size: 1.35rem;
  box-shadow: 0 2px 6px rgba(15, 79, 104, 0.08);
}

.cart-qty-value {
  min-width: 1.75rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

.cart-item-remove {
  border: none;
  background: transparent;
  font-size: 1.65rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  flex-shrink: 0;
  filter: invert(16%) sepia(99%) saturate(4000%) hue-rotate(350deg) brightness(90%) contrast(95%);
  -webkit-text-stroke: 1.2px rgba(0, 0, 0, 0.35);
}

.cart-item-remove:hover {
  filter: invert(12%) sepia(99%) saturate(5000%) hue-rotate(350deg) brightness(75%) contrast(95%);
}

.box-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}

.box-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 141px;
}

.box-icon-wrapper {
  position: relative;
  margin-left: 0;
  flex-shrink: 0;
}

.box-icon {
  width: 141px;
  height: 141px;
  object-fit: contain;
  display: block;
}

.box-icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}

.budget-progress {
  margin: 4px 0 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.budget-progress-bar {
  position: relative;
  width: 100%;
  height: 36px;
  border-radius: 999px;
  background: rgba(15, 79, 104, 0.12);
  overflow: hidden;
}

.budget-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 999px;
  background: #0f4f68;
  transition: width 0.15s ease-out;
}

.budget-progress-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.budget-progress-mobile-wrapper {
  display: none;
}

.budget-progress-mobile {
  display: none;
}

.btn-primary {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  background: #0f4f68;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-small {
  font-size: 0.85rem;
  padding: 6px 14px;
}

.admin-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  padding: 4px 10px;
  font-size: 0.78rem;
  background: #ffffff;
  cursor: pointer;
}

/* Modals außerhalb .hero-overlay — jeweils per ID, damit display:none greift (sonst sofort sichtbar im Iframe) */
#glove-modal.handschuh-dialog-backdrop,
#ml-variant-modal.handschuh-dialog-backdrop,
#bettschutz-hint-modal.handschuh-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  /* flex-start + scroll: bei hohem Inhalt (z. B. Bettschutz) nichts durch vertikales Zentrieren abschneiden */
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#glove-modal.handschuh-dialog-backdrop.is-open,
#ml-variant-modal.handschuh-dialog-backdrop.is-open,
#bettschutz-hint-modal.handschuh-dialog-backdrop.is-open {
  display: flex;
}

#bettschutz-hint-modal.handschuh-dialog-backdrop.is-open {
  z-index: 210;
}

.handschuh-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: min(90dvh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: auto;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 79, 104, 0.14);
  background: #ffffff;
  box-shadow:
    0 4px 20px rgba(15, 79, 104, 0.08),
    0 20px 50px rgba(15, 23, 42, 0.18);
  font-family: inherit;
}

/* ML-Größen: Schatten der runden Buttons nicht durch overflow:hidden abschneiden */
.handschuh-dialog.handschuh-dialog--ml-variant {
  overflow-x: hidden;
  overflow-y: visible;
  max-height: none;
}

.handschuh-dialog.handschuh-dialog--ml-variant .handschuh-dialog-body {
  overflow: visible;
  padding-top: 6px;
  padding-bottom: 18px;
}

/* Nach .handschuh-dialog: höhere Spezifität, damit overflow/padding nicht wieder von .handschuh-dialog überschrieben werden */
.handschuh-dialog.handschuh-dialog--bettschutz-hint {
  max-width: min(calc(100vw - 24px), 420px);
  /* Höhe nicht kappen: Backdrop scrollt — vermeidet abgeschnittenen Inhalt im Iframe */
  max-height: none;
  overflow-x: hidden;
  overflow-y: visible;
  margin-top: max(8px, env(safe-area-inset-top, 0px));
  margin-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  padding: 1.45rem 1.1rem 1rem;
  gap: 0.5rem;
}

.handschuh-dialog.handschuh-dialog--bettschutz-hint .handschuh-dialog-close {
  top: max(8px, env(safe-area-inset-top, 0px));
  right: max(8px, env(safe-area-inset-right, 0px));
}

.handschuh-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(241, 249, 251, 0.95);
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.handschuh-dialog-close:hover {
  background: rgba(15, 79, 104, 0.12);
}

.handschuh-dialog-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.handschuh-dialog-title {
  margin: 0 2.25rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.handschuh-dialog-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.handschuh-dialog-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 2px;
  margin-top: 0.25rem;
}

.handschuh-fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.handschuh-legend {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.handschuh-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.handschuh-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid rgba(15, 79, 104, 0.18);
  background: #fafcfd;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.handschuh-option.handschuh-option--checked {
  border-color: var(--primary);
  background: rgba(15, 79, 104, 0.06);
  box-shadow: 0 2px 10px rgba(15, 79, 104, 0.12);
}

.handschuh-option input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.handschuh-size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.handschuh-size-btn {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 3.25rem;
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(15, 79, 104, 0.85);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  background: #ffffff;
  color: var(--primary);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.handschuh-size-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(15, 79, 104, 0.15);
}

.handschuh-size-btn.is-selected {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(15, 79, 104, 0.28);
}

.handschuh-size-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.handschuh-dialog-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 79, 104, 0.1);
}

/* Nur Größe: alles mittig, primärer Button oben */
.handschuh-dialog--size-only .handschuh-dialog-title {
  text-align: center;
  width: 100%;
  margin-right: 0;
  padding: 0 2.75rem 0 0.5rem;
  box-sizing: border-box;
}

.handschuh-dialog--size-only .handschuh-dialog-lead {
  text-align: center;
  width: 100%;
}

.handschuh-legend--centered {
  text-align: center;
}

.handschuh-size-row--centered {
  justify-content: center;
}

.handschuh-dialog-actions--centered {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.handschuh-dialog--size-only .handschuh-btn-primary--prominent,
.handschuh-dialog--size-only .handschuh-btn-secondary {
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.handschuh-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 79, 104, 0.28);
  transition: background 0.15s ease, transform 0.1s ease;
}

.handschuh-btn-primary:hover:not(:disabled) {
  background: #0a3d52;
}

.handschuh-btn-primary:active:not(:disabled) {
  transform: scale(0.99);
}

.handschuh-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.handschuh-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  background: #ffffff;
  color: var(--text-main);
  cursor: pointer;
}

.handschuh-btn-secondary:hover {
  background: #f8fafc;
}

@media (min-width: 480px) {
  .handschuh-dialog {
    padding: 1.5rem 1.5rem 1.35rem;
  }

  .handschuh-dialog-title {
    font-size: 1.65rem;
  }

  .handschuh-dialog:not(.handschuh-dialog--size-only) .handschuh-dialog-actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .handschuh-dialog:not(.handschuh-dialog--size-only) .handschuh-btn-primary,
  .handschuh-dialog:not(.handschuh-dialog--size-only) .handschuh-btn-secondary {
    width: auto;
    min-width: 140px;
  }

  .handschuh-dialog:not(.handschuh-dialog--size-only) .handschuh-btn-primary {
    order: 1;
  }

  .handschuh-dialog:not(.handschuh-dialog--size-only) .handschuh-btn-secondary {
    order: 0;
  }
}

/* Pflegeboxi-Chat (unten rechts) vorerst ausgeblendet */
#box-chatbot {
  display: none !important;
}

.box-chatbot {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(56px, env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-height: calc(100vh - 80px);
  max-width: calc(100% - 24px);
}

.box-chatbot--expanded {
  right: 0;
  bottom: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  box-sizing: border-box;
  isolation: isolate;
}

.box-chatbot--expanded::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.box-chatbot-close {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: 318px;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #0f4f68;
  background: #ffffff;
  color: #0f4f68;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 16px rgba(15, 79, 104, 0.35);
  -webkit-text-stroke: 1.5px #0f4f68;
}

.box-chatbot-close:hover {
  background: #0f4f68;
  color: #ffffff;
}

.box-chatbot--expanded .box-chatbot-close {
  display: flex;
}

.box-chatbot--expanded .box-chatbot-avatar {
  order: 0;
}

.box-chatbot--expanded .box-chatbot-window {
  order: 2;
}

.box-chatbot--expanded .box-chatbot-avatar,
.box-chatbot--expanded .box-chatbot-window {
  position: relative;
  z-index: 1;
}

.box-chatbot--expanded .box-chatbot-image {
  width: 225px;
  height: 225px;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));
}

.box-chatbot--expanded .box-chatbot-window {
  width: min(600px, calc(100% - 48px));
  max-height: min(788px, calc(100vh - 220px));
  flex-shrink: 1;
  min-height: 0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.45), 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.3);
}

.box-chatbot--expanded .box-chatbot-messages {
  max-height: min(220px, 28vh);
  flex-shrink: 0;
}

.box-chatbot-avatar {
  position: relative;
  cursor: pointer;
}

.box-chatbot-bubble-wrap {
  position: absolute;
  bottom: 100%;
  right: 0;
  transform: translate(0, -8px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: min(280px, 85vw);
  min-width: 160px;
  z-index: 5;
  pointer-events: none;
}

.box-chatbot-bubble-wrap .box-chatbot-dismiss {
  pointer-events: auto;
}

.box-chatbot-dismiss {
  position: relative;
  top: auto;
  right: auto;
  z-index: 4;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #0f4f68;
  background: #ffffff;
  color: #0f4f68;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 12px rgba(15, 79, 104, 0.28);
  -webkit-tap-highlight-color: transparent;
}

.box-chatbot-dismiss:hover {
  background: #0f4f68;
  color: #ffffff;
}

.box-chatbot-dismiss:focus-visible {
  outline: 2px solid #f78f2e;
  outline-offset: 2px;
}

.box-chatbot--expanded .box-chatbot-dismiss {
  display: none;
}

.box-chatbot--expanded .box-chatbot-bubble-wrap {
  display: none;
}

.box-chatbot-image {
  width: clamp(56px, 12vh, 130px);
  height: clamp(56px, 12vh, 130px);
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 20px rgba(15, 79, 104, 0.25));
}

@media (min-width: 901px) {
  .box-chatbot-image {
    width: clamp(62px, 13.2vh, 143px);
    height: clamp(62px, 13.2vh, 143px);
  }

  .box-chatbot--expanded .box-chatbot-image {
    width: 248px;
    height: 248px;
    filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.65)) drop-shadow(0 10px 28px rgba(15, 79, 104, 0.22));
  }
}

.box-chatbot-avatar:hover .box-chatbot-image {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 24px rgba(15, 79, 104, 0.35));
}

/* Pflegeboxi vor Freude hüpfen, wenn geöffnet und angeklickt */
@keyframes pflegeboxi-jump {
  0%, 100% { transform: translateY(0) scale(1); }
  20% { transform: translateY(-28px) scale(1.08); }
  40% { transform: translateY(0) scale(1.02); }
  55% { transform: translateY(-14px) scale(1.04); }
  70% { transform: translateY(0) scale(1.01); }
  85% { transform: translateY(-6px) scale(1.02); }
}

.box-chatbot-image.pflegeboxi-jump {
  animation: pflegeboxi-jump 0.7s ease-out;
}

.box-chatbot-bubble-over {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 10px 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 2px solid #0f4f68;
  font-size: 0.9rem;
  color: #0f4f68;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  min-width: 0;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 6px 20px rgba(15, 79, 104, 0.14);
  pointer-events: none;
}

.box-chatbot-bubble-over::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 40px;
  left: auto;
  transform: translateX(50%);
  border-width: 10px 12px 0;
  border-style: solid;
  border-color: #0f4f68 transparent transparent;
}

.box-chatbot-bubble-over::before {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 40px;
  left: auto;
  transform: translateX(50%);
  border-width: 8px 10px 0;
  border-style: solid;
  border-color: #ffffff transparent transparent;
  z-index: 1;
}

.box-chatbot--hidden {
  display: none !important;
}

.box-chatbot-window {
  position: relative;
  width: 400px;
  max-height: 525px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.45);
  display: none;
  flex-direction: column;
  min-height: 0;
}

.box-chatbot--expanded .box-chatbot-window {
  display: flex;
}

.box-chatbot-messages {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.box-chatbot-message .bubble {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.box-chatbot-message.bot .bubble {
  background: #0f4f68;
  color: #ffffff;
}

.box-chatbot-reply-bubble {
  display: block;
  max-width: 100%;
  line-height: 1.45;
}

@keyframes box-chatbot-reply-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(247, 143, 46, 0);
    filter: brightness(1);
  }
  35% {
    box-shadow:
      0 0 0 3px rgba(247, 143, 46, 0.55),
      0 0 28px rgba(247, 143, 46, 0.45);
    filter: brightness(1.18);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(247, 143, 46, 0);
    filter: brightness(1);
  }
}

.box-chatbot-reply-bubble--flash {
  animation: box-chatbot-reply-flash 0.62s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .box-chatbot-reply-bubble--flash {
    animation: none;
  }
}

.box-chatbot-reply-q {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.box-chatbot-reply-a {
  margin: 0;
  font-weight: 500;
}

.box-chatbot-reply-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.box-chatbot-inline-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.box-chatbot-inline-link:hover {
  color: #f78f2e;
}

.box-chatbot-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
  padding: 6px 12px 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  max-height: 280px;
  align-content: start;
}

.box-chatbot--expanded .box-chatbot-topics {
  max-height: min(42vh, 360px);
}

.box-chatbot-topic-btn {
  width: 100%;
  min-width: 0;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(15, 79, 104, 0.35);
  background: #f2f9fa;
  color: #0f4f68;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
  line-height: 1.3;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.box-chatbot-topic-btn:hover {
  background: #e2f0f3;
  border-color: rgba(15, 79, 104, 0.55);
}

.box-chatbot-topic-btn:focus-visible {
  outline: 2px solid #f78f2e;
  outline-offset: 2px;
}

.box-chatbot-panel-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  flex-shrink: 0;
  text-align: center;
}

.box-chatbot-panel-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f4f68;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.box-chatbot-panel-link:hover {
  color: #f78f2e;
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg) translateX(0);
  }
  20% {
    transform: rotate(-4deg) translateX(-1px);
  }
  40% {
    transform: rotate(4deg) translateX(1px);
  }
  60% {
    transform: rotate(-3deg) translateX(-1px);
  }
  80% {
    transform: rotate(3deg) translateX(1px);
  }
  100% {
    transform: rotate(0deg) translateX(0);
  }
}

.wiggle {
  animation: wiggle 0.5s ease-in-out;
}

@media (max-width: 900px) {
  /* Nur Mobil/Tablet schmal: Schrittzeile „1. Produktauswahl …“ ausblenden (Desktop ≥901px unverändert) */
  .hero-overlay .header {
    display: none;
  }

  .layout {
    grid-template-columns: 1fr;
    padding-top: 64px;
    gap: 14px;
  }

  .box-title-row {
    min-height: 0;
    max-height: none;
  }

  .box-icon {
    width: auto;
    height: clamp(88px, 22vw, 120px);
    max-width: none;
  }

  .layout > .panel:first-of-type > h2 {
    min-height: 0;
    font-size: clamp(1.2rem, 5.2vw, 1.75rem);
    margin-bottom: 0.35rem;
  }

  .panel {
    padding: 12px 12px;
  }

  .panel h2 {
    font-size: clamp(1.25rem, 5vw, 1.85rem);
  }

  .item-list {
    gap: 12px;
    margin-top: 2%;
  }

  .layout > .panel:last-of-type {
    padding-bottom: 12px;
  }

  /* Nur wenn mindestens ein Artikel: fixierter Button + Abstand unten */
  .layout > .panel:last-of-type.panel--next-step-visible {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  /* Kein 100vw: mit vertikaler Scrollbar ist 100vw > Layoutbreite → horizontaler Scrollbalken unten */
  .btn-next-step {
    position: fixed;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    margin: 0;
    transform: none;
    z-index: 40;
    box-shadow: 0 8px 28px rgba(15, 79, 104, 0.22);
  }

  .header {
    margin: 16px auto 12px;
    padding: 14px 16px;
  }

  .header .steps {
    padding: 0 4px;
    gap: 0;
  }

  .header .steps .step {
    padding: 8px 6px;
    max-width: 92%;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header .steps .step .step-title {
    font-size: 0.8rem !important;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    word-break: break-word;
  }

  @media (max-width: 600px) {
    .header .steps .step .step-title {
      font-size: 0.7rem !important;
    }
    .header .steps .step {
      padding: 6px 4px;
      min-height: 2.4em;
    }
  }

  .budget-progress-mobile-wrapper {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 30;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 12px;
    padding-right: 12px;
    background: rgba(241, 249, 251, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(15, 79, 104, 0.12);
    grid-column: 1 / -1;
  }

  .budget-progress-mobile {
    display: block;
    margin: 0;
  }

  .layout > .panel:last-of-type .budget-progress {
    display: none;
  }

  .item-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .item.item--double-width {
    grid-column: span 2;
  }

  /* Mobil: gleiche Kartenhöhe pro Zeile (höchster Kasten bestimmt); kein Quadrat */
  .item {
    aspect-ratio: unset;
    min-height: 0;
    border-radius: 20px;
    align-self: stretch;
    width: 100%;
    height: auto;
  }

  .item.item--double-width {
    aspect-ratio: unset;
    align-self: stretch;
  }

  .item .item-inner {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .item .item-inner-content {
    overflow: visible;
    flex: 0 1 auto;
    min-height: 0;
  }

  /* Bildbereich: genug Höhe, nichts abschneiden */
  .item .item-image-frame {
    flex: 0 0 auto;
    min-height: clamp(132px, 42vw, 240px);
    overflow: visible;
    border-radius: 14px;
  }

  .item .item-image-frame .item-image {
    max-height: none;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .item .item-name {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .item.item--double-width .item-image-frame {
    min-height: clamp(140px, 40vw, 250px);
  }

  .item.item--double-width .item-name {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  /* Embed: zunächst normal im Dokumentfluss; beim Scrollen blendet JS eine kompakte Floating-Leiste ein */
  html.kfg-embed .layout {
    padding-top: 0;
  }

  html.kfg-embed .budget-progress-mobile-wrapper {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    backdrop-filter: none;
    box-shadow: none;
  }

  html.kfg-embed.kfg-embed-mobile-progress-floating .budget-progress-mobile-wrapper {
    position: fixed;
    top: max(8px, env(safe-area-inset-top, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    width: auto;
    z-index: 30;
    border-radius: 18px;
    background: rgba(241, 249, 251, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 22px rgba(15, 79, 104, 0.16);
  }

  html.kfg-embed .kfg-site-footer {
    display: none;
  }

  .box-chatbot {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(88px, calc(env(safe-area-inset-bottom, 0px) + 72px));
  }

  .box-chatbot-image {
    width: clamp(56px, 14vh, 100px);
    height: clamp(56px, 14vh, 100px);
    filter: drop-shadow(0 5px 14px rgba(15, 79, 104, 0.32));
    -webkit-filter: drop-shadow(0 5px 14px rgba(15, 79, 104, 0.32));
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
  }

  .box-chatbot-avatar:hover .box-chatbot-image {
    filter: drop-shadow(0 7px 18px rgba(15, 79, 104, 0.38));
    -webkit-filter: drop-shadow(0 7px 18px rgba(15, 79, 104, 0.38));
  }

  .box-chatbot-bubble-wrap {
    transform: translate(0, -8px) translateZ(0);
    -webkit-transform: translate(0, -8px) translateZ(0);
  }

  .box-chatbot-bubble-over {
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.06),
      0 6px 20px rgba(15, 79, 104, 0.16),
      0 12px 32px rgba(15, 79, 104, 0.1);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .box-chatbot--expanded .box-chatbot-image {
    width: 140px;
    height: 140px;
    filter: drop-shadow(0 6px 16px rgba(15, 79, 104, 0.28));
    -webkit-filter: drop-shadow(0 6px 16px rgba(15, 79, 104, 0.28));
  }

  .box-chatbot--expanded .box-chatbot-window {
    width: 92%;
    max-width: 380px;
    max-height: 65vh;
    box-shadow:
      0 20px 44px rgba(0, 0, 0, 0.38),
      0 8px 20px rgba(0, 0, 0, 0.18);
  }

  .box-chatbot--expanded .box-chatbot-messages {
    max-height: min(200px, 26vh);
  }

  .box-chatbot--expanded .box-chatbot-topics {
    max-height: 38vh;
  }

  .box-chatbot-close {
    left: auto;
    right: 12px;
    top: 12px;
    margin-left: 0;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

}

/* Mehrschritt-Flow & Pflegebox-Abschluss */
.flow-step-wrap {
  width: 100%;
}

.layout--single {
  max-width: 640px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.konfig-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-error-text {
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.75rem 0 0;
}

.form-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.25rem;
  align-items: center;
  justify-content: flex-start;
}

.inline-link {
  color: #0f4f68;
  font-weight: 700;
  text-decoration: underline;
}

.panel--success .panel-subtitle {
  margin-bottom: 1rem;
}

.text-muted {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Pflegebox Wizard (Modal) – Markenfarben, zentrierter Kopfbereich */
body.pflege-wizard-open {
  overflow: hidden;
}

/* Wie Startseite „Passende Hilfe finden“: leichte Petrol-Tönung, wenig Blur (Seite bleibt erkennbar) */
.pflege-wizard-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  background: rgba(15, 79, 104, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Ohne !important gewinnt display:flex gegen das native [hidden]-Verhalten → Dialog war beim Laden sichtbar. */
.pflege-wizard-backdrop[hidden] {
  display: none !important;
}

.pflege-wizard-modal {
  position: relative;
  width: 100%;
  max-width: min(40rem, calc(100% - 2rem));
  margin: 0.75rem auto 2rem;
  border-radius: 1.25rem;
  --wiz-band: #f2f9fa;
  --wiz-mid: #fafbfc;
  background: var(--wiz-mid);
  border: 1px solid rgba(15, 79, 104, 0.14);
  box-shadow: 0 12px 40px -12px rgba(15, 79, 104, 0.25);
  padding: 0;
  overflow: hidden;
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: var(--text-main);
}

@media (max-width: 640px) {
  .pflege-wizard-backdrop {
    padding: 0.35rem;
    padding-top: max(0.35rem, env(safe-area-inset-top));
    align-items: stretch;
  }

  /* Ein durchgängiger Scroll: Weiter/Abbrechen liegen unter den Feldern, nicht darüber */
  .pflege-wizard-modal {
    display: block;
    margin: 0 auto 0.5rem;
    max-width: 100%;
    max-height: min(96dvh, calc(100vh - 0.5rem));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 1rem;
  }

  .pflege-wizard-boxi {
    flex-shrink: 0;
    padding: 0.45rem 2.65rem 0.35rem 0.75rem;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .pflege-wizard-boxi-img {
    width: 64px;
    height: 64px;
  }

  .pflege-wizard-boxi-bubble {
    font-size: 0.84rem;
    padding: 0.55rem 0.75rem;
    line-height: 1.4;
  }

  .pflege-wizard-heading {
    flex-shrink: 0;
    padding: 0.6rem 0.85rem 0.15rem;
  }

  .pflege-wizard-section {
    font-size: clamp(1.2rem, 5vw, 1.55rem) !important;
    margin-bottom: 0.3rem !important;
  }

  .pflege-wizard-body {
    flex: none;
    min-height: 0;
    overflow: visible;
    padding: 0.45rem 0.85rem 0.85rem;
  }

  .pflege-wizard-error {
    margin: 0.35rem 0.85rem 0;
    flex-shrink: 0;
    font-size: 0.85rem;
  }

  .pflege-wizard-nav {
    position: static;
    flex-shrink: 0;
    margin-top: 0.35rem;
    padding: 0.75rem 0.85rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .pflege-wizard-nav .admin-btn,
  .pflege-wizard-nav .btn-primary {
    width: 100%;
    justify-content: center;
    min-height: 3rem;
  }

  .pflege-wizard-close {
    top: 0.35rem;
    right: 0.35rem;
    width: 2.45rem;
    height: 2.45rem;
    font-size: 1.2rem;
  }

  .pflege-wizard-sig-layer {
    padding: 0.35rem;
    align-items: stretch;
  }

  .pflege-wizard-sig-panel {
    width: 100%;
    max-height: min(92dvh, 100%);
    padding: 0.75rem 0.85rem;
    gap: 0.55rem;
  }

  .pflege-wizard-sig-canvas-wrap {
    max-height: min(36dvh, 260px);
    min-height: 150px;
    aspect-ratio: 4 / 3;
  }

  .pflege-wizard-sig-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    align-items: stretch;
  }

  .pflege-wizard-sig-actions-trail {
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: 0.5rem;
  }

  .pflege-wizard-sig-actions .admin-btn,
  .pflege-wizard-sig-actions .btn-primary,
  .pflege-wizard-sig-actions-trail .admin-btn,
  .pflege-wizard-sig-actions-trail .btn-primary {
    width: 100%;
    justify-content: center;
    min-height: 3rem;
  }

  .pflege-wizard-modal.pflege-wizard-modal--success-final {
    display: block;
    min-height: auto;
  }

  .pflege-wizard-modal--success-final .pflege-wizard-body--success-step {
    flex: none;
    min-height: auto;
    justify-content: flex-start;
  }
}

/* Pflegeboxi + Sprechblase (aktueller Schritt) */
.pflege-wizard-boxi {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 3.35rem 0.35rem 1.35rem;
  border-bottom: 1px solid rgba(15, 79, 104, 0.08);
  background: var(--wiz-band);
}

.pflege-wizard-boxi-figure {
  flex-shrink: 0;
  line-height: 0;
}

.pflege-wizard-boxi-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(15, 79, 104, 0.15));
}

/* Nach erfolgreichem Schritt: mehrfach hüpfen (Keyframes wie Chatbot-Pflegeboxi) */
.pflege-wizard-boxi-img.pflege-wizard-boxi-hop {
  animation: pflegeboxi-jump 0.7s ease-out 2;
}

@media (prefers-reduced-motion: reduce) {
  .pflege-wizard-boxi-img.pflege-wizard-boxi-hop {
    animation: none;
  }
}

.pflege-wizard-boxi-bubble {
  position: relative;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.7rem 0.95rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 2px 10px rgba(15, 79, 104, 0.1);
}

/* Schwanz mittig an der linken Kante (zeigt zur rechten Mitte von Pflegeboxi) */
.pflege-wizard-boxi-bubble::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  margin-top: -7px;
  border-width: 7px 10px 7px 0;
  border-style: solid;
  border-color: transparent var(--primary) transparent transparent;
}

.pflege-wizard-boxi-bubble::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  margin-top: -5px;
  border-width: 5px 7px 5px 0;
  border-style: solid;
  border-color: transparent #ffffff transparent transparent;
  z-index: 1;
}

@media (max-width: 380px) {
  .pflege-wizard-boxi {
    padding-right: 3.1rem;
    padding-left: 1rem;
  }

  .pflege-wizard-boxi-img {
    width: 72px;
    height: 72px;
  }

  .pflege-wizard-boxi-bubble {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }
}

/* Erfolgsschritt: Kopfzeile nur Überschrift; Freude-Bild + Sprechblase im Body */
.pflege-wizard-boxi--success-head {
  justify-content: center;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.pflege-wizard-success-headline {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(1.2rem, 4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.25;
}

.pflege-wizard-modal--success-final .pflege-wizard-heading {
  display: none;
}

/* Erfolg: Modal als Spalte, mittlerer Bereich vertikal zentriert */
.pflege-wizard-modal.pflege-wizard-modal--success-final {
  display: flex;
  flex-direction: column;
  min-height: min(52dvh, 420px);
}

.pflege-wizard-modal--success-final .pflege-wizard-boxi {
  flex-shrink: 0;
}

.pflege-wizard-modal--success-final .pflege-wizard-body--success-step {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 1.25rem 1.35rem 1.5rem;
}

.pflege-wizard-modal--success-final .pflege-wizard-nav {
  flex-shrink: 0;
}

.wiz-success-celebration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.35rem 0 0.5rem;
  box-sizing: border-box;
}

/* Mini-Feuerwerk: mittig oberhalb des Pflegeboxi-Bilds (+25 % Größe ggü. vorheriger Version) */
.wiz-success-fireworks {
  position: absolute;
  left: 50%;
  bottom: 100%;
  top: auto;
  width: 0;
  height: 0;
  margin-bottom: 2px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.wiz-success-fireworks__spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  opacity: 0;
  transform: translate(0, 0) scale(0.44);
  animation: wiz-success-firework-float 2.4s ease-out infinite;
}

.wiz-success-fireworks__spark--a {
  background: #f78f2e;
  box-shadow: 0 0 5px rgba(247, 143, 46, 0.55);
  animation-delay: 0s;
  --fw-tx: -17.5px;
  --fw-ty: 27.5px;
}

.wiz-success-fireworks__spark--b {
  background: #0f4f68;
  box-shadow: 0 0 4px rgba(15, 79, 104, 0.45);
  animation-delay: 0.35s;
  --fw-tx: 20px;
  --fw-ty: 25px;
}

.wiz-success-fireworks__spark--c {
  background: #f78f2e;
  box-shadow: 0 0 5px rgba(247, 143, 46, 0.4);
  animation-delay: 0.7s;
  --fw-tx: -27.5px;
  --fw-ty: 15px;
}

.wiz-success-fireworks__spark--d {
  background: #5cb3c9;
  box-shadow: 0 0 4px rgba(92, 179, 201, 0.5);
  animation-delay: 1.05s;
  --fw-tx: 27.5px;
  --fw-ty: 17.5px;
}

.wiz-success-fireworks__spark--e {
  background: #f78f2e;
  animation-delay: 1.35s;
  --fw-tx: 0px;
  --fw-ty: 32.5px;
}

.wiz-success-fireworks__spark--f {
  background: #0f4f68;
  animation-delay: 1.65s;
  --fw-tx: -10px;
  --fw-ty: 22.5px;
}

@keyframes wiz-success-firework-float {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.44);
  }
  18% {
    opacity: 0.55;
  }
  42% {
    opacity: 0.35;
    transform: translate(var(--fw-tx, 0), var(--fw-ty, 22.5px)) scale(1.19);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--fw-tx, 0) * 1.12), calc(var(--fw-ty, 22.5px) * 1.08)) scale(0.62);
  }
}

.wiz-success-celebration__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  margin-top: 2%;
}

@keyframes wiz-success-box-hop {
  0% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-20px) scale(1.06);
  }
  55% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes wiz-success-bubble-in {
  from {
    opacity: 0;
    transform: translate(-8px, 6px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.wiz-success-celebration__figure {
  position: relative;
  flex-shrink: 0;
  line-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  transform-origin: center bottom;
  animation: wiz-success-box-hop 0.7s ease-out forwards;
}

.wiz-success-celebration .pflege-wizard-boxi-img {
  width: 150px;
  height: 150px;
  display: block;
}

.wiz-success-celebration__bubble {
  flex: 0 1 auto;
  max-width: min(100%, 24rem);
  min-width: 0;
  font-size: calc(0.9rem * 1.1);
  padding: calc(0.7rem * 1.1) calc(0.95rem * 1.1);
  opacity: 0;
  animation: wiz-success-bubble-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.72s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .wiz-success-celebration__figure {
    animation: none;
  }

  .wiz-success-celebration__bubble {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .wiz-success-fireworks__spark {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .wiz-success-celebration__inner {
    flex-direction: column;
  }

  .wiz-success-celebration__bubble::after,
  .wiz-success-celebration__bubble::before {
    display: none;
  }
}

/* Abbruch-Bestätigung (über dem Wizard) */
.pflege-wizard-cancel-layer[hidden] {
  display: none !important;
}

.pflege-wizard-cancel-layer {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  background: rgba(15, 79, 104, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.pflege-wizard-cancel-dialog {
  width: 100%;
  max-width: 22rem;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid rgba(15, 79, 104, 0.16);
  box-shadow: 0 20px 50px -12px rgba(15, 79, 104, 0.35);
}

.pflege-wizard-cancel-title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
}

.pflege-wizard-cancel-text {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-main);
}

.pflege-wizard-cancel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.pflege-wizard-cancel-actions .admin-btn {
  min-height: 2.65rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-color: rgba(15, 79, 104, 0.22);
  color: var(--primary);
}

.pflege-wizard-cancel-actions .btn-primary {
  min-height: 2.65rem;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  background: var(--primary);
  border: none;
  color: #fff;
}

.pflege-wizard-cancel-actions .btn-primary:hover {
  background: #0c4258;
  filter: none;
}

.pflege-wizard-cancel-actions .btn-primary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Erfolg: letzter Wizard-Schritt (Freude-Bild + Sprechblase im Body) */
.wiz-success-summary {
  margin: 0;
  padding: 0.5rem 0 0.25rem;
  text-align: center;
}

.wiz-success-summary__main {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-main);
}

.wiz-success-summary__ref {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

.pflege-wizard-body--success-step {
  min-height: 0;
}

/* Vollbild-Unterschrift (ca. 2/3 der Viewport-Höhe) */
.pflege-wizard-sig-layer[hidden] {
  display: none !important;
}

.pflege-wizard-sig-layer {
  position: fixed;
  inset: 0;
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.pflege-wizard-sig-panel {
  width: min(920px, 100%);
  max-height: min(94dvh, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 1.05rem;
  background: var(--surface);
  border: 1px solid rgba(15, 79, 104, 0.14);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.38);
}

.pflege-wizard-sig-lead {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--primary);
}

.pflege-wizard-sig-canvas-wrap {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  min-height: 200px;
  max-height: min(40dvh, 360px);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 12px rgba(15, 79, 104, 0.08);
  touch-action: none;
}

.wiz-signature-canvas--overlay {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  cursor: crosshair;
  vertical-align: middle;
}

.pflege-wizard-sig-error {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
  text-align: center;
}

.pflege-wizard-sig-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.pflege-wizard-sig-actions-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  align-items: center;
  flex: 1 1 auto;
  min-width: min(100%, 14rem);
}

.pflege-wizard-sig-actions .admin-btn {
  min-height: 2.75rem;
  font-weight: 600;
}

.pflege-wizard-sig-actions .btn-primary {
  min-height: 2.75rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
}

/* Sende-Overlay: Pflegeboxi + schnell drehende Uhr unten mittig auf dem Bild */
.pflege-wizard-order-load-layer[hidden] {
  display: none !important;
}

.pflege-wizard-order-load-layer {
  position: fixed;
  inset: 0;
  z-index: 10006;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pflege-wizard-order-load-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.35rem 1.2rem;
  max-width: min(92vw, 280px);
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid rgba(15, 79, 104, 0.14);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.28);
  text-align: center;
}

.pflege-wizard-order-load-boxi-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  flex-shrink: 0;
}

.pflege-wizard-order-load-img {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.pflege-wizard-order-load-clock {
  position: absolute;
  left: 50%;
  bottom: 2px;
  top: auto;
  width: 40px;
  height: 40px;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.pflege-wizard-order-load-clock-rotor {
  transform-origin: 20px 20px;
  animation: pflege-wizard-order-clock-spin 0.48s linear infinite;
}

@keyframes pflege-wizard-order-clock-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pflege-wizard-order-load-clock-rotor {
    animation-duration: 1.6s;
  }
}

.pflege-wizard-order-load-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary);
}

.wiz-open-sig-btn {
  display: block;
  margin: 0.55rem auto 0;
  min-height: 3.35rem;
  padding: 0.85rem 2.25rem;
  font-size: 1.12rem;
  font-weight: 700;
  width: auto;
  min-width: min(18rem, 100%);
  max-width: calc(100% - 0.5rem);
}

.wiz-sig-step-intro {
  margin: 0 0 0.35rem;
  text-align: center;
}

.pflege-wizard-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(15, 79, 104, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(15, 79, 104, 0.08);
}

.pflege-wizard-close:hover {
  background: rgba(15, 79, 104, 0.05);
  border-color: rgba(15, 79, 104, 0.22);
  box-shadow: 0 4px 16px rgba(15, 79, 104, 0.1);
}

.pflege-wizard-close:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 79, 104, 0.2);
}

.pflege-wizard-close:active {
  transform: scale(0.96);
}

.pflege-wizard-heading {
  text-align: center;
  padding: 1.15rem 2.85rem 0.35rem 1.35rem;
  background: var(--wiz-mid);
}

.pflege-wizard-section {
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--primary);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.pflege-wizard-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.65rem;
  line-height: 1.35;
}

.pflege-wizard-motivation {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 26rem;
  line-height: 1.55;
}

.pflege-wizard-motivation[hidden] {
  display: none !important;
}

.pflege-wizard-boxi-bubble[hidden] {
  display: none !important;
}

.pflege-wizard-body {
  min-height: 4rem;
  padding: 0.5rem 1.35rem 0.25rem;
  background: var(--wiz-mid);
}

.pflege-wizard-body--sig-step {
  min-height: 0;
  padding-top: 0.75rem;
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pflege-wizard-body .wiz-field {
  margin-bottom: 1rem;
}

.pflege-wizard-body .wiz-field label,
.pflege-wizard-body .wiz-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.pflege-wizard-body .wiz-field input[type="text"],
.pflege-wizard-body .wiz-field input[type="email"],
.pflege-wizard-body .wiz-field input[type="tel"],
.pflege-wizard-body .wiz-field input[type="date"],
.pflege-wizard-body .wiz-field select,
.pflege-wizard-body .wiz-field textarea {
  width: 100%;
  border: 1px solid rgba(15, 79, 104, 0.18);
  border-radius: 0.75rem;
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pflege-wizard-body .wiz-field input[type="text"]:focus-visible,
.pflege-wizard-body .wiz-field input[type="email"]:focus-visible,
.pflege-wizard-body .wiz-field input[type="tel"]:focus-visible,
.pflege-wizard-body .wiz-field input[type="date"]:focus-visible,
.pflege-wizard-body .wiz-field select:focus-visible,
.pflege-wizard-body .wiz-field textarea:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 79, 104, 0.16);
}

/* Schritt Kontakt: E-Mail / Telefon */
.wiz-kontakt-panel {
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 79, 104, 0.14);
  box-shadow: 0 4px 18px rgba(15, 79, 104, 0.07);
}

.wiz-kontakt-panel .wiz-kontakt-intro {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.wiz-field-group--kontakt .wiz-label {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.wiz-radio-col--kontakt {
  gap: 0.65rem;
}

.wiz-kontakt-choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(15, 79, 104, 0.16);
  background: rgba(241, 249, 251, 0.65);
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.wiz-kontakt-choice.wiz-kontakt-choice--checked {
  border-color: var(--primary);
  background: rgba(15, 79, 104, 0.08);
}

.wiz-kontakt-choice input {
  accent-color: var(--primary);
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.pflege-wizard-body .wiz-field--kontakt-input {
  margin-bottom: 0.35rem;
}

.pflege-wizard-body .wiz-field--kontakt-input label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(15, 79, 104, 0.95);
  margin-bottom: 0.45rem;
}

.pflege-wizard-body .wiz-field--kontakt-input input[type="email"],
.pflege-wizard-body .wiz-field--kontakt-input input[type="tel"] {
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  border-radius: 0.85rem;
  border: 2px solid rgba(15, 79, 104, 0.22);
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pflege-wizard-body .wiz-field--kontakt-input input[type="email"]:focus-visible,
.pflege-wizard-body .wiz-field--kontakt-input input[type="tel"]:focus-visible {
  border-color: var(--primary);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.04),
    0 0 0 3px rgba(15, 79, 104, 0.2);
}

/* Beihilfe nur bei Privatversichert */
.wiz-beihilfe-block[hidden] {
  display: none !important;
}

.wiz-beihilfe-block {
  margin-bottom: 1.1rem;
}

.wiz-beihilfe-inner {
  margin-bottom: 0;
  padding: 0.95rem 1.05rem;
  border-radius: 0.95rem;
  background: rgba(15, 79, 104, 0.06);
  border: 1px solid rgba(15, 79, 104, 0.12);
}

.wiz-beihilfe-inner .wiz-label {
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.wiz-beihilfe-hint {
  margin: 0 0 0.65rem !important;
  font-size: 0.8rem;
  line-height: 1.45;
}

.wiz-beihilfe-inner .wiz-radio-row input {
  accent-color: var(--primary);
}

.wiz-birth-fieldset {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

.wiz-birth-fieldset legend {
  padding: 0;
  margin-bottom: 0.5rem;
}

.wiz-birth-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 0.85rem;
  align-items: end;
}

@media (max-width: 520px) {
  .wiz-birth-grid {
    grid-template-columns: 1fr;
  }
}

.wiz-field--birth select {
  font-size: 1.1rem;
  min-height: 3.1rem;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
}

.wiz-label--prominent {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.65rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.wiz-privat-wrap {
  margin-bottom: 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: rgba(15, 79, 104, 0.07);
  border: 1px solid rgba(15, 79, 104, 0.14);
}

.wiz-radio-row--emphasis {
  justify-content: center;
  gap: 1.75rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
}

.wiz-radio-row--emphasis label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.wiz-radio-row--emphasis input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--primary);
}

.wiz-gkv-block[hidden] {
  display: none !important;
}

.pflege-wizard-body .wiz-field-row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .pflege-wizard-body .wiz-field-row {
    grid-template-columns: 1fr 1fr;
  }
  .pflege-wizard-body .wiz-field--narrow {
    max-width: 8rem;
  }
}

.pflege-wizard-body .wiz-radio-row,
.pflege-wizard-body .wiz-radio-col {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.pflege-wizard-body .wiz-radio-col {
  flex-direction: column;
}

.pflege-wizard-body .wiz-field-group {
  margin-bottom: 1rem;
}

.pflege-wizard-body .wiz-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

.pflege-wizard-body .wiz-check-row {
  margin-bottom: 0.85rem;
}

.pflege-wizard-body .wiz-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #334155;
}

.pflege-wizard-body .wiz-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.wiz-partner-msg {
  color: #b42318;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.35rem 0 0;
}

.wiz-partner-prominent {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(15, 79, 104, 0.09) 0%, rgba(15, 79, 104, 0.04) 100%);
  border: 1px solid rgba(15, 79, 104, 0.22);
  box-shadow: 0 4px 20px rgba(15, 79, 104, 0.08);
}

.wiz-partner-prominent__main {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--primary);
}

.wiz-partner-prominent__hint {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
}

.pflege-wizard-error {
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0.65rem 1.35rem 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(180, 35, 24, 0.06);
  text-align: center;
}

.pflege-wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem 1.35rem 1.35rem;
  border-top: 1px solid rgba(15, 79, 104, 0.1);
  background: var(--wiz-band);
}

.pflege-wizard-nav .admin-btn {
  border-color: rgba(15, 79, 104, 0.22);
  color: var(--primary);
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  min-height: 2.75rem;
}

.pflege-wizard-nav .admin-btn:hover {
  background: rgba(15, 79, 104, 0.06);
  border-color: rgba(15, 79, 104, 0.35);
}

.pflege-wizard-nav .btn-primary {
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  font-weight: 700;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 79, 104, 0.22);
}

.pflege-wizard-nav .btn-primary:hover {
  background: #0c4258;
  filter: none;
}

.pflege-wizard-nav .btn-primary:active {
  transform: scale(0.98);
}

.pflege-wizard-nav .btn-primary:disabled {
  opacity: 0.65;
  transform: none;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}

.wiz-sig-wrap {
  border: 1px solid rgba(15, 79, 104, 0.2);
  border-radius: 0.95rem;
  overflow: hidden;
  background: #fafbfc;
  touch-action: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 28px rgba(15, 79, 104, 0.1);
}

.wiz-signature-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  cursor: crosshair;
  vertical-align: middle;
}

/* Overlay-Canvas füllt den weißen Rahmen; Basis-Regel max-height:200px würde sonst die Fläche kappen */
.wiz-signature-canvas.wiz-signature-canvas--overlay {
  max-height: none;
  height: 100%;
}

.wiz-sig-clear {
  margin-top: 0.65rem;
}

