/* Styling for the 1x1-Slider-Generator (/1x1-slider) */

.slider-counter {
  margin: 0 0 14px !important;
  color: #164f9d !important;
  line-height: 1.35 !important;
}
.slider-counter strong {
  display: inline-block;
  font-size: 17px !important;
  font-weight: 800;
  color: #164f9d;
}
.slider-counter span {
  display: block;
  font-size: 11.5px;
  color: #506780;
  margin-top: 2px;
}

.slider-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.slider-hero-badges span {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #c6ddd2;
  background: #ffffffd9;
  color: #1f4f45;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 0 #e2ece6;
}

.slider-hero-demo {
  flex: none;
  width: 216px;
  display: flex;
  justify-content: center;
}
.hero-slider-body {
  position: relative;
  width: 196px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 2.5px solid #164f9d;
  background: linear-gradient(165deg, #eaf4ff 0%, #ffffff 55%, #e6f7f1 100%);
  box-shadow: 0 10px 22px #17324d1f, 0 4px 0 #bad1ea;
  transform: rotate(2.5deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.hero-slider-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #164f9d;
  background: #dcebff;
  padding: 2px 8px;
  border-radius: 99px;
}
.hero-slider-slit {
  width: 152px;
  height: 4px;
  border-radius: 99px;
  background: #17324d;
  box-shadow: 0 0 0 2px #fff;
}
.hero-slider-window {
  width: 144px;
  height: 52px;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid #164f9d;
  background: #fff;
  box-shadow: inset 0 2px 5px #17324d18;
}
.hero-slider-track {
  display: flex;
  flex-direction: column;
  animation: heroSliderSlide 7.2s ease-in-out infinite;
}
.hero-slider-cell {
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-sizing: border-box;
  border-bottom: 1px dashed #b9cad8;
}
.hero-slider-cell small {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #5b768f;
}
.hero-slider-cell strong {
  font-size: 18px;
  font-weight: 800;
  color: #17324d;
  line-height: 1.1;
}
.hero-slider-cell.is-answer {
  background: #e6f8f1;
}
.hero-slider-cell.is-answer small {
  color: #0b7a6e;
}
.hero-slider-cell.is-answer strong {
  color: #087064;
}
.hero-slider-hint {
  font-size: 10.5px;
  font-weight: 700;
  color: #365978;
}

@keyframes heroSliderSlide {
  0%, 18% { transform: translateY(0); }
  25%, 45% { transform: translateY(-52px); }
  52%, 70% { transform: translateY(-104px); }
  77%, 94% { transform: translateY(-156px); }
  100% { transform: translateY(0); }
}

.slider-row-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Motif selection grid */
.slider-motif-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.slider-motif-option {
  position: relative;
  margin: 0 !important;
  cursor: pointer;
  display: flex;
}
.slider-motif-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.slider-motif-card {
  flex: 1;
  width: 100%;
  min-height: 98px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px 9px;
  border-radius: 12px;
  border: 1.5px solid #b5c7d9;
  background: #fff;
  color: #2c4c6b;
  text-align: center;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.slider-motif-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  display: block;
}
.slider-motif-card svg {
  width: 30px;
  height: 30px;
  color: #164f9d;
}
.slider-motif-card strong {
  font-size: 12px;
  line-height: 1.15;
}
.slider-motif-option input:checked + .slider-motif-card {
  border-color: #164f9d;
  background: #eaf3ff;
  color: #113a73;
  box-shadow: 0 3px 0 #bfd5ee;
  transform: translateY(-1px);
}
.slider-motif-option input:focus-visible + .slider-motif-card {
  outline: 3px solid #09849d;
  outline-offset: 2px;
}

/* Interactive Simulator Card */
.slider-sim-card {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1.5px solid #cfe0ec;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fd 100%);
  box-shadow: 0 8px 22px #17324d0d;
}
.slider-sim-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.slider-strip-Tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.slider-strip-tab {
  min-height: 32px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid #b5c7d9;
  background: #fff;
  color: #2f5070;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.slider-strip-tab.is-active {
  background: #164f9d;
  border-color: #164f9d;
  color: #fff;
}
.slider-sim-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff5d6;
  border: 1px solid #ebd089;
  color: #6b4c08;
  font-size: 12.5px;
  font-weight: 800;
}
.slider-sim-status.is-answer {
  background: #dff6ee;
  border-color: #97d8c3;
  color: #0b6358;
}

/* Stage where the strip threads through the elongated slider template */
.slider-stage {
  position: relative;
  height: 432px;
  border-radius: 14px;
  border: 1px dashed #bfd2e2;
  background: radial-gradient(circle, #bdd2e4 1.2px, transparent 1.5px) 0 0 / 16px 16px, #eef5fb;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  box-sizing: border-box;
  user-select: none;
}

/* Background strip: clipped strictly to the upper area so upcoming tasks NEVER peek out at the bottom */
.sim-strip-back-viewport {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 130px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.sim-strip-column {
  width: 176px;
  transition: transform .34s cubic-bezier(.22, .9, .32, 1);
  will-change: transform;
}
.sim-strip-column.is-behind {
  opacity: .42;
  filter: saturate(.75);
}
.sim-strip-cap {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1.5px solid #2b547e;
  background: #dbeaff;
  color: #163d6b;
  box-sizing: border-box;
}
.sim-strip-cap.is-top {
  height: 96px;
  align-items: flex-start;
  padding-top: 10px;
  border-radius: 10px 10px 0 0;
  border-bottom: 0;
}
.sim-strip-cap.is-bottom {
  border-radius: 0 0 10px 10px;
  border-top: 0;
  background: #e6f4ee;
  color: #16594f;
}
.sim-strip-cell {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-left: 1.5px solid #2b547e;
  border-right: 1.5px solid #2b547e;
  border-bottom: 1px solid #b8cadb;
  background: #fff;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 800;
  color: #17324d;
}
.sim-strip-cell.is-answer-row {
  background: #e7f8f2;
  color: #096d60;
  border-bottom: 1.5px solid #2b547e;
}
.sim-cell-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #627d96;
}
.sim-strip-cell.is-answer-row .sim-cell-tag {
  color: #0c786a;
}
.sim-cell-main {
  font-size: 17px;
  font-weight: 800;
}
.sim-strip-cell.is-split {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  padding: 0;
}
.sim-split-left,
.sim-split-right {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}
.sim-split-left {
  border-right: 1px dashed #9ab1c5;
  color: #17324d;
  background: #fff;
}
.sim-split-right {
  color: #096d60;
  background: #e7f8f2;
}

/* Foreground Elongated Slider Holder Card (covers bottom of strip completely) */
.sim-holder {
  position: relative;
  z-index: 2;
  width: 256px;
  height: 366px;
  border-radius: 22px;
  border: 2.5px solid #173854;
  background: linear-gradient(175deg, #dff0ff 0%, #ffffff 38%, #eef8ff 72%, #e3f6ef 100%);
  box-shadow: 0 12px 28px #17324d29, 0 4px 0 #9ab8d6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 13px;
  box-sizing: border-box;
  cursor: pointer;
}
.sim-holder.is-motif-rocket {
  background: linear-gradient(175deg, #fff1d6 0%, #ffffff 38%, #fffaf0 72%, #e6f2ff 100%);
}
.sim-holder.is-motif-owl {
  background: linear-gradient(175deg, #f7ecd8 0%, #fffdf8 38%, #fbf6ec 72%, #e5f5ec 100%);
}
.sim-holder.is-motif-classic {
  background: linear-gradient(175deg, #ffe9d6 0%, #ffffff 38%, #fff8f0 72%, #e7f5ee 100%);
}
.sim-holder.is-outline {
  background: #ffffff !important;
  box-shadow: 0 10px 22px #17324d1a;
}

.sim-holder-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
}
.sim-holder-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #173854;
}
.sim-holder-sub {
  font-size: 9.5px;
  font-weight: 700;
  color: #516d86;
}

/* The active window where the strip comes to the front between two slits */
.sim-window-assembly {
  position: relative;
  width: 196px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sim-slit-bar {
  width: 192px;
  height: 5px;
  border-radius: 99px;
  background: #173854;
  box-shadow: 0 0 0 2px #fff;
  position: relative;
  z-index: 3;
}
.sim-slit-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #516d86;
  margin: 2px 0;
}

/* Elongated Lower Cover Shield (Sichtschutz) with Mascot Illustration */
.sim-holder-shield {
  flex: 1;
  width: 100%;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.sim-holder-mascot-frame {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  background: #ffffff;
  border: 1.5px solid #cbdceb;
  box-shadow: 0 4px 12px #17324d12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-sizing: border-box;
  overflow: hidden;
}
.sim-holder-mascot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sim-holder.is-outline .sim-holder-mascot {
  filter: grayscale(1) contrast(1.38) brightness(1.06);
}
.sim-guide-slit {
  width: 174px;
  border-top: 2px dashed #7f9ab2;
  padding-top: 2px;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: #58748d;
}
.sim-holder-foot {
  font-size: 10.5px;
  font-weight: 800;
  color: #1d4973;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
}
.sim-holder-foot small {
  font-size: 9.2px;
  font-weight: 700;
  color: #52708a;
}

/* 1-Window Step Mode Viewport */
.sim-front-window {
  width: 176px;
  height: 44px;
  overflow: hidden;
  background: #fff;
  border-left: 2px solid #164f9d;
  border-right: 2px solid #164f9d;
  box-shadow: 0 3px 10px #17324d1f;
  position: relative;
  z-index: 2;
}

/* 2-Window Offset Mode Viewport */
.sim-offset-windows {
  position: relative;
  width: 176px;
  height: 88px;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid #173854;
  background: #fff;
  box-shadow: 0 3px 10px #17324d1f;
}
.sim-offset-mask-top-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 56.8%;
  height: 44px;
  background: #eef5fb;
  border-right: 2px solid #173854;
  border-bottom: 2px solid #173854;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #486581;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-sizing: border-box;
}
.sim-offset-mask-bottom-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 43.2%;
  height: 44px;
  background: #eef5fb;
  border-left: 2px solid #173854;
  border-top: 2px solid #173854;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  color: #486581;
  text-align: center;
  padding: 2px 4px;
  box-sizing: border-box;
}

.sim-holder-foot {
  font-size: 11px;
  font-weight: 700;
  color: #365875;
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-sim-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.slider-ctrl-btn {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid #a8bbce;
  background: #fff;
  color: #17324d;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.slider-ctrl-btn:hover:not(:disabled) {
  border-color: #164f9d;
  color: #164f9d;
  background: #f2f7fc;
}
.slider-ctrl-btn.is-primary {
  flex: 1;
  background: #164f9d;
  border-color: #164f9d;
  color: #fff;
  box-shadow: 0 3px 0 #103870;
}
.slider-ctrl-btn.is-primary:hover:not(:disabled) {
  background: #123f7c;
  color: #fff;
}
.slider-ctrl-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.slider-sim-explain {
  margin-top: 12px;
  font-size: 13.5px;
}

/* Schematic A4 Sheet Preview */
.slider-sheet-preview-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #d5e2ee;
  background: #f7fafd;
}
.slider-sheet-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.slider-sheet-preview-head h3 {
  margin: 0;
  font-size: 16px;
  color: #17324d;
}
.slider-sheet-badge {
  font-size: 12px;
  font-weight: 700;
  color: #0b6b5f;
  background: #e2f5ee;
  padding: 3px 10px;
  border-radius: 99px;
}
.slider-sheet-preview {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #bccle0;
  background: #fff;
  box-shadow: 0 4px 12px #17324d0d;
}
.sheet-mini-holders {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sheet-mini-holder {
  flex: 1;
  border: 1.5px solid #35587a;
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: linear-gradient(180deg, #f3f9ff 0%, #ffffff 55%, #edf8f3 100%);
  text-align: center;
}
.sheet-mini-holder strong {
  font-size: 11px;
  color: #17324d;
}
.sheet-mini-mascot {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d2e0ee;
  padding: 3px;
}
.sheet-mini-window {
  width: 82%;
  padding: 5px 4px;
  border-top: 2px dashed #164f9d;
  border-bottom: 2px dashed #164f9d;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  color: #164f9d;
}
.sheet-mini-strip {
  border: 1.5px solid #4a6b8a;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sheet-mini-strip-head {
  background: #dcebff;
  color: #163d6b;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  padding: 4px;
  border-bottom: 1px solid #9ab4ce;
}
.sheet-mini-strip-row {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 6px;
  border-bottom: 1px dashed #d0dde8;
  display: flex;
  justify-content: space-between;
  color: #17324d;
}
.sheet-mini-strip-row.is-ans {
  background: #eaf8f3;
  color: #0b6b5f;
  border-bottom-style: solid;
}

@media (max-width: 640px) {
  .slider-motif-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .slider-sheet-preview {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider-track,
  .sim-strip-column {
    animation: none !important;
    transition: none !important;
  }
}
