/* Küchen-Zwischenschritt beim Seitenstart — Design 1:1 aus apl3/styles.css */

.kitchen-composition-gate {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.kitchen-composition-gate.is-open {
  opacity: 1;
  visibility: visible;
}

.kitchen-composition-gate[hidden] {
  display: none !important;
}

body.kitchen-composition-gate-active {
  overflow: hidden;
}

.kitchen-composition-gate__panel {
  width: min(440px, 100%);
  background: #ffffff;
  border-radius: 14px;
  border-top: 4px solid #e5322d;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  padding: clamp(22px, 4vw, 32px) clamp(20px, 4vw, 28px);
  text-align: center;
}

.kitchen-composition-gate__title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  color: #1f1f1f;
}

.kitchen-composition-gate__subtitle {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.45;
  color: #5a5a5a;
}

.kitchen-composition-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kitchen-composition-gate__btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
  color: #222222;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.kitchen-composition-gate__btn:hover {
  border-color: #e5322d;
  box-shadow: 0 4px 14px rgba(229, 50, 45, 0.18);
}

.kitchen-composition-gate__btn:active {
  box-shadow: none;
}

.kitchen-composition-gate__btn--skip {
  margin-top: 6px;
  background: transparent;
  border-color: transparent;
  color: #666666;
  font-weight: 500;
  font-size: 14px;
  min-height: 40px;
  box-shadow: none;
}

.kitchen-composition-gate__btn--skip:hover {
  color: #e5322d;
  background: rgba(229, 50, 45, 0.06);
  border-color: transparent;
  box-shadow: none;
}

.kitchen-composition-gate__btn--back {
  margin-top: 6px;
  background: transparent;
  border-color: transparent;
  color: #666666;
  font-weight: 500;
  font-size: 14px;
  min-height: 40px;
  box-shadow: none;
}

.kitchen-composition-gate__btn--back:hover {
  color: #e5322d;
  background: rgba(229, 50, 45, 0.06);
  border-color: transparent;
  box-shadow: none;
}

.kitchen-composition-gate__panel--l-form > .kitchen-composition-gate__btn--back {
  margin-top: 16px;
  width: 100%;
}

.kitchen-composition-gate__panel--l-form {
  width: min(720px, 100%);
}

.kitchen-composition-gate__l-options {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
}

.kitchen-composition-gate .l-form-details-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  min-height: 132px;
}

.kitchen-composition-gate .l-form-details-option:hover {
  border-color: #e5322d;
  background: #fff5f5;
  box-shadow: 0 4px 12px rgba(229, 50, 45, 0.15);
}

.kitchen-composition-gate .l-form-details-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #495057;
  transition: color 0.2s ease;
}

.kitchen-composition-gate .l-form-details-option:hover .l-form-details-icon {
  color: #e5322d;
}

.kitchen-composition-gate__l-option {
  flex: 1 1 0;
  min-width: 0;
  max-width: 150px;
  min-height: 120px;
  padding: 16px 10px;
}

@media (max-width: 560px) {
  .kitchen-composition-gate__l-options {
    flex-wrap: wrap;
  }

  .kitchen-composition-gate__l-option {
    flex: 1 1 calc(50% - 8px);
    max-width: none;
  }

  .kitchen-composition-gate__btn {
    font-size: 15px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kitchen-composition-gate {
    transition: none;
  }
}

/* Assistierter-Modus Hub — gleiches Panel wie Küchen-Gate */
.assistant-hub-choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}

.assistant-hub-choice__icon {
  flex-shrink: 0;
  color: #e5322d;
}
