/* ═══════════════════════════════════════════════════
   Flora Eistorten-Konfigurator – Conversion Redesign
   ═══════════════════════════════════════════════════ */

.page--eistorte {
  --et-bg: #fff8f2;
  --et-surface: #fff;
  --et-border: rgba(179, 117, 88, 0.16);
  --et-border-strong: rgba(179, 117, 88, 0.38);
  --et-text: #3d2b25;
  --et-muted: #735b52;
  --et-accent: #b66b4f;
  --et-accent-dark: #92543b;
  --et-accent-soft: rgba(234, 193, 176, 0.28);
  --et-ok: #3f7c5c;
  --et-danger: #b64848;
  --et-radius: 18px;
  --et-shadow: 0 12px 32px rgba(137, 83, 58, 0.1);
  overflow-x: hidden;
}

.page--eistorte .page-main {
  gap: clamp(16px, 3vw, 28px);
  padding-bottom: 8rem; /* space for fixed bottom bar */
}

/* ── Buttons ── */

.et-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.et-btn:hover { transform: translateY(-1px); }
.et-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.et-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #d88868, #b46144);
  box-shadow: 0 10px 24px rgba(182, 107, 79, 0.26);
}

.et-btn--secondary {
  color: var(--et-text);
  background: var(--et-surface);
  border: 1px solid var(--et-border);
}

.et-btn--ghost {
  color: var(--et-accent-dark);
  background: rgba(182, 107, 79, 0.08);
  border: 1px solid transparent;
}

.et-btn--sm {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  min-height: 44px;
}

/* ── Hero ── */

.et-hero {
  display: grid;
  gap: 1rem;
  padding: clamp(20px, 5vw, 36px);
  border-radius: var(--et-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 237, 0.92));
  border: 1px solid rgba(255, 222, 209, 0.72);
  box-shadow: var(--et-shadow);
}

.et-hero__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--et-accent-dark);
}

.et-hero__title {
  margin: 0;
  font-size: clamp(1.6rem, 5.5vw, 2.8rem);
  line-height: 1.1;
}

.et-hero__sub {
  margin: 0;
  color: var(--et-muted);
  font-size: clamp(0.92rem, 2.5vw, 1.05rem);
  line-height: 1.55;
  max-width: 560px;
}

.et-hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.et-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.et-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ── Benefits ── */

.et-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.et-benefit {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--et-radius);
  background: var(--et-surface);
  border: 1px solid var(--et-border);
  box-shadow: var(--et-shadow);
}

.et-benefit__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: var(--et-accent-soft);
  color: var(--et-accent-dark);
  font-size: 0.95rem;
}

.et-benefit strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.et-benefit p {
  margin: 0;
  color: var(--et-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* ── Configurator wrapper ── */

.et-configurator {
  display: grid;
  gap: 1rem;
}

.et-configurator__intro {
  text-align: center;
  padding: 0 1rem;
}

.et-configurator__intro h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
}

.et-configurator__intro p {
  margin: 0;
  color: var(--et-muted);
  font-size: 0.92rem;
}

/* ── App layout ── */

.et-app {
  display: grid;
  gap: 1rem;
}

/* ── Progress bar ── */

.et-progress {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.et-progress::-webkit-scrollbar { display: none; }

.et-progress__dot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 2px solid var(--et-border);
  background: var(--et-surface);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--et-muted);
  cursor: pointer;
  transition: all 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.et-progress__dot:disabled { cursor: default; opacity: .5; }

.et-progress__dot.is-active {
  border-color: var(--et-accent);
  background: linear-gradient(180deg, #d69071, #b86749);
  color: #fff;
  transform: scale(1.1);
}

.et-progress__dot.is-done {
  border-color: rgba(63, 124, 92, 0.4);
  background: rgba(63, 124, 92, 0.1);
  color: var(--et-ok);
}

.et-progress__line {
  flex: 1 1 auto;
  min-width: 12px;
  height: 2px;
  background: var(--et-border);
  border-radius: 1px;
}

/* ── Step card ── */

.et-step {
  display: grid;
  gap: 1rem;
  padding: clamp(14px, 3.5vw, 22px);
  border-radius: var(--et-radius);
  background: var(--et-surface);
  border: 1px solid var(--et-border);
  box-shadow: var(--et-shadow);
}

.et-step__head {
  display: grid;
  gap: 0.3rem;
}

.et-step__badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--et-accent-dark);
}

.et-step__title {
  margin: 0;
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
}

.et-step__desc {
  margin: 0;
  color: var(--et-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* step body animation */
.et-step__body { animation: et-fadein 200ms ease; }
@keyframes et-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Option cards ── */

.et-options {
  display: grid;
  gap: 0.65rem;
}

.et-opt {
  position: relative;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.et-opt input { position: absolute; opacity: 0; pointer-events: none; }

.et-opt__body {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1.5px solid var(--et-border);
  background: var(--et-surface);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.et-opt:hover .et-opt__body,
.et-opt input:focus-visible + .et-opt__body {
  border-color: var(--et-border-strong);
}

.et-opt input:checked + .et-opt__body,
.et-opt.is-selected .et-opt__body {
  border-color: var(--et-accent);
  background: linear-gradient(180deg, #fff, rgba(255, 238, 230, 0.95));
  box-shadow: 0 4px 16px rgba(182, 107, 79, 0.12);
}

.et-opt__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.et-opt__label { font-weight: 700; font-size: 0.92rem; }
.et-opt__price { color: var(--et-accent-dark); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.et-opt__meta  { color: var(--et-muted); font-size: 0.82rem; line-height: 1.4; margin: 0; }

.et-opt__badge {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(182, 107, 79, 0.1);
  color: var(--et-accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

.et-opt__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

/* ── Flavor slots ── */

.et-slots { display: grid; gap: 0.65rem; }

.et-slot {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1.5px solid var(--et-border);
  background: var(--et-surface);
}

.et-slot.is-invalid { border-color: rgba(182, 72, 72, 0.45); }

.et-slot__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.et-slot__selected {
  color: var(--et-accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.et-select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1.5px solid var(--et-border);
  background: var(--et-surface);
  font: inherit;
  font-size: 0.9rem;
  color: var(--et-text);
  -webkit-appearance: none;
  appearance: none;
}

.et-select:focus {
  border-color: var(--et-border-strong);
  outline: none;
  box-shadow: 0 0 0 3px rgba(182, 107, 79, 0.1);
}

.et-slot__hint {
  font-size: 0.78rem;
  color: var(--et-muted);
  margin: 0;
}

/* ── Contact form ── */

.et-form { display: grid; gap: 0.75rem; }

.et-form__row {
  display: grid;
  gap: 0.75rem;
}

.et-field {
  display: grid;
  gap: 0.3rem;
}

.et-field label {
  font-size: 0.84rem;
  font-weight: 700;
}

.et-field__hint {
  font-weight: 400;
  color: var(--et-muted);
}

.et-input,
.et-textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1.5px solid var(--et-border);
  background: var(--et-surface);
  font: inherit;
  font-size: 0.9rem;
  color: var(--et-text);
}

.et-textarea {
  min-height: 100px;
  resize: vertical;
}

.et-input:focus,
.et-textarea:focus {
  border-color: var(--et-border-strong);
  outline: none;
  box-shadow: 0 0 0 3px rgba(182, 107, 79, 0.1);
}

.et-field.is-invalid .et-input,
.et-field.is-invalid .et-select,
.et-field.is-invalid .et-textarea {
  border-color: rgba(182, 72, 72, 0.5);
  box-shadow: 0 0 0 3px rgba(182, 72, 72, 0.08);
}

.et-field__error {
  color: var(--et-danger);
  font-size: 0.8rem;
}

/* ── Callout ── */

.et-callout {
  padding: 0.85rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 250, 247, 0.98), rgba(255, 241, 233, 0.95));
  border: 1px solid rgba(182, 107, 79, 0.2);
}

.et-callout strong { display: block; font-size: 0.88rem; margin-bottom: 0.2rem; }
.et-callout p { margin: 0; color: var(--et-muted); font-size: 0.82rem; line-height: 1.4; }

/* ── Review ── */

.et-review { display: grid; gap: 0.65rem; }

.et-review__group {
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--et-border);
  background: var(--et-surface);
}

.et-review__group dl { display: grid; gap: 0.55rem; margin: 0; }
.et-review__group dt { font-weight: 700; font-size: 0.84rem; margin: 0; }
.et-review__group dd { color: var(--et-muted); font-size: 0.84rem; margin: 0; line-height: 1.45; }

.et-review__price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(62, 43, 36, 0.97), rgba(88, 59, 49, 0.95));
  color: #fff;
}

.et-review__price strong { font-size: 1.15rem; }

.et-review__notes {
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--et-border);
  background: var(--et-surface);
}

.et-review__notes strong { display: block; font-size: 0.84rem; margin-bottom: 0.3rem; }
.et-review__notes p { margin: 0; color: var(--et-muted); font-size: 0.82rem; line-height: 1.45; }

/* ── Sidebar (desktop) ── */

.et-sidebar {
  display: none;
}

.et-sidebar__actions {
  display: none;
}

/* ── Bottom action bar (fixed) ── */

.et-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: grid;
  gap: 0.6rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 252, 249, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--et-border);
  box-shadow: 0 -8px 24px rgba(61, 43, 37, 0.08);
}

.et-bar[hidden] { display: none; }

.et-bar__price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--et-muted);
}

.et-bar__price strong {
  color: var(--et-text);
  font-size: 1.05rem;
}

.et-bar__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.et-bar__actions.has-back {
  grid-template-columns: auto 1fr;
}

.et-bar__actions.is-review {
  grid-template-columns: auto 1fr 1fr;
}

/* ── Trust block ── */

.et-trust {
  display: grid;
  gap: 0.75rem;
}

.et-trust__item {
  padding: 1rem;
  border-radius: var(--et-radius);
  background: var(--et-surface);
  border: 1px solid var(--et-border);
}

.et-trust__item strong { display: block; font-size: 0.92rem; margin-bottom: 0.2rem; }
.et-trust__item p { margin: 0; color: var(--et-muted); font-size: 0.84rem; line-height: 1.45; }

/* ═══════════════════════════════
   Tablet (≥ 600px)
   ═══════════════════════════════ */

@media (min-width: 600px) {
  .et-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .et-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .et-form__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .et-trust {
    grid-template-columns: repeat(3, 1fr);
  }

  .et-bar__actions.is-review {
    grid-template-columns: auto 1fr 1fr;
  }
}

/* ═══════════════════════════════
   Desktop (≥ 960px)
   ═══════════════════════════════ */

@media (min-width: 960px) {

  /* -- Constrain page width for readability -- */
  .page--eistorte .page-main {
    max-width: 1180px;
    margin-inline: auto;
    padding-bottom: 2rem; /* no fixed bar on desktop */
  }

  /* -- Hero: 2-column with content left -- */
  .et-hero {
    grid-template-columns: 1fr auto;
    padding: 2rem 2.25rem;
  }

  .et-hero__kicker,
  .et-hero__title,
  .et-hero__sub,
  .et-hero__highlights,
  .et-hero__actions {
    grid-column: 1;
  }

  /* -- Benefits: compact 4-column row -- */
  .et-benefits {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }

  .et-benefit {
    padding: 0.85rem 0.95rem;
  }

  /* -- Configurator intro: tighter on desktop -- */
  .et-configurator__intro {
    margin-bottom: 0.25rem;
  }

  /* -- App: 2-column layout (step left, sidebar right) -- */
  .et-app {
    grid-template-columns: 1fr 320px;
    grid-template-rows: auto 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  /* Progress spans both columns, row 1 */
  .et-progress {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0.5rem 0.75rem;
    background: var(--et-surface);
    border: 1px solid var(--et-border);
    border-radius: 999px;
    justify-content: center;
    gap: 0.5rem;
  }

  .et-progress__dot {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.8rem;
  }

  .et-progress__line {
    min-width: 20px;
    max-width: 48px;
  }

  /* Step card: column 1, row 2 */
  .et-step {
    grid-column: 1;
    grid-row: 2;
    padding: 1.5rem 1.75rem;
  }

  .et-step__title {
    font-size: 1.35rem;
  }

  /* -- Sidebar: column 2, row 2, sticky -- */
  .et-sidebar {
    display: grid;
    grid-column: 2;
    grid-row: 2;
    gap: 0;
    position: sticky;
    top: 6rem;
    border-radius: var(--et-radius);
    background: var(--et-surface);
    border: 1px solid var(--et-border);
    box-shadow: var(--et-shadow);
    overflow: hidden;
    align-self: start;
  }

  /* Price header */
  .et-sidebar__price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.15rem;
    background: linear-gradient(180deg, rgba(62, 43, 36, 0.97), rgba(88, 59, 49, 0.95));
    color: #fff;
  }

  .et-sidebar__price span {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .et-sidebar__price strong {
    font-size: 1.3rem;
  }

  /* Selection details list */
  .et-sidebar__details {
    display: grid;
    gap: 0;
    padding: 0.35rem 1.15rem;
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .et-sidebar__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(179, 117, 88, 0.08);
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .et-sidebar__row:last-child {
    border-bottom: none;
  }

  .et-sidebar__row span:first-child {
    font-weight: 700;
    flex-shrink: 0;
    color: var(--et-text);
  }

  .et-sidebar__row span:last-child {
    color: var(--et-muted);
    text-align: right;
    word-break: break-word;
  }

  .et-sidebar__row.is-set span:last-child {
    color: var(--et-text);
  }

  .et-sidebar__row.is-empty span:last-child {
    font-style: italic;
    opacity: 0.45;
  }

  /* Sidebar action buttons */
  .et-sidebar__actions {
    display: grid;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid var(--et-border);
    background: rgba(255, 248, 242, 0.5);
  }

  .et-sidebar__actions .et-bar__actions {
    display: grid;
    gap: 0.5rem;
  }

  .et-sidebar__actions .et-bar__actions.has-back {
    grid-template-columns: auto 1fr;
  }

  .et-sidebar__actions .et-bar__actions.is-review {
    grid-template-columns: 1fr 1fr;
  }

  .et-sidebar__actions .et-bar__actions.is-review .et-btn--secondary {
    grid-column: 1 / -1;
  }

  /* -- Hide fixed bottom bar on desktop -- */
  .et-bar {
    display: none !important;
  }

  /* -- Trust section: compact row -- */
  .et-trust {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .et-trust__item {
    padding: 0.85rem 1rem;
  }

  /* -- Options: keep 2-col, tighter cards -- */
  .et-opt__body {
    padding: 0.75rem 0.85rem;
  }

  /* -- Flavor slots: side by side where space allows -- */
  .et-slots {
    gap: 0.55rem;
  }

  /* -- Form rows: already 2-col from tablet, tighten gap -- */
  .et-form {
    gap: 0.6rem;
  }

  .et-form__row {
    gap: 0.6rem;
  }
}

/* ═══════════════════════════════
   Wide Desktop (≥ 1200px)
   ═══════════════════════════════ */

@media (min-width: 1200px) {

  .page--eistorte .page-main {
    max-width: 1280px;
  }

  .et-app {
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
  }
}
