.startbilder-page {
  padding: calc(var(--nav-height) + 28px) 20px 40px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(15, 80, 126, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 176, 59, 0.18), transparent 26%),
    linear-gradient(180deg, #eef4fa 0%, #f8fbff 100%);
}

.startbilder-head,
.startbilder-layout {
  max-width: 1180px;
  margin: 0 auto;
}

.startbilder-head {
  margin-bottom: 22px;
}

.startbilder-eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #5c7594;
}

.startbilder-head h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #16365f;
}

.startbilder-head p {
  margin: 0;
  color: #446383;
}

.startbilder-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.startbilder-sidebar,
.startbilder-stage {
  border: 1px solid rgba(23, 54, 96, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(15, 43, 76, 0.08);
}

.startbilder-sidebar {
  padding: 18px;
}

.startbilder-sidebar h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: #183863;
}

.startbilder-list {
  display: grid;
  gap: 12px;
}

.startbilder-item {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid #d6e0ea;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  color: #183863;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.startbilder-item:hover {
  transform: translateY(-1px);
  border-color: #99b7d4;
  box-shadow: 0 12px 24px rgba(24, 56, 99, 0.08);
}

.startbilder-item.is-active {
  border-color: #1e6fb9;
  box-shadow: 0 0 0 3px rgba(30, 111, 185, 0.14);
}

.startbilder-item img {
  width: 94px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
  background: #edf3f9;
}

.startbilder-item span {
  font-weight: 600;
}

.startbilder-stage {
  padding: 24px;
}

.startbilder-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.startbilder-stage-label,
.startbilder-current span,
.preview-label-row span:first-child {
  display: block;
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #69829f;
}

.startbilder-stage-head h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  color: #16365f;
}

.startbilder-stage-file {
  margin: 0;
  color: #56708f;
}

.startbilder-current {
  min-width: 170px;
}

.startbilder-current img {
  width: 170px;
  height: 118px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #d7e2ed;
  background: #edf3f9;
}

.startbilder-dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 240px;
  margin-bottom: 20px;
  padding: 28px;
  border: 2px dashed #9db4cc;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(30, 111, 185, 0.06), rgba(255, 255, 255, 0.84)),
    #f9fcff;
  color: #27496f;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.startbilder-dropzone:hover,
.startbilder-dropzone.is-dragover {
  border-color: #1e6fb9;
  transform: translateY(-1px);
}

.startbilder-dropzone input {
  display: none;
}

.dropzone-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.dropzone-text {
  color: #4d6785;
}

.dropzone-hint {
  max-width: 460px;
  font-size: 0.9rem;
  color: #7088a4;
}

.startbilder-preview {
  padding: 18px;
  border: 1px solid #d9e3ee;
  border-radius: 20px;
  background: #fff;
}

.preview-label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pending-file-name {
  margin: 0;
  font-size: 0.92rem;
  color: #4d6785;
}

.preview-canvas {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 270px;
  border-radius: 16px;
  background:
    linear-gradient(45deg, rgba(232, 239, 247, 0.85) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(232, 239, 247, 0.85) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(232, 239, 247, 0.85) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(232, 239, 247, 0.85) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
  overflow: hidden;
}

.preview-canvas img {
  display: none;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.preview-canvas.has-preview img {
  display: block;
}

.preview-canvas.has-preview p {
  display: none;
}

.preview-canvas p {
  margin: 0;
  color: #5f7896;
  text-align: center;
}

.startbilder-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.startbilder-btn {
  min-width: 140px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.startbilder-btn:disabled {
  cursor: default;
  opacity: 0.5;
}

.startbilder-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.startbilder-btn.is-primary {
  background: linear-gradient(135deg, #1e6fb9, #143f71);
  color: #fff;
  box-shadow: 0 14px 30px rgba(20, 63, 113, 0.18);
}

.startbilder-btn.is-secondary {
  background: #eaf0f7;
  color: #21456f;
}

.startbilder-status {
  min-height: 24px;
  margin: 16px 0 0;
  font-weight: 600;
  color: #21456f;
}

.startbilder-status.is-error {
  color: #b0293b;
}

.startbilder-status.is-success {
  color: #1b7a3f;
}

@media (max-width: 940px) {
  .startbilder-layout {
    grid-template-columns: 1fr;
  }

  .startbilder-stage-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .startbilder-page {
    padding: calc(var(--nav-height) + env(safe-area-inset-top, 0px) + 18px) 14px 30px;
  }

  .startbilder-item {
    grid-template-columns: 76px 1fr;
  }

  .startbilder-item img {
    width: 76px;
    height: 54px;
  }

  .startbilder-stage {
    padding: 18px;
  }

  .startbilder-current img {
    width: 100%;
    max-width: 220px;
    height: auto;
  }

  .preview-label-row,
  .startbilder-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .startbilder-btn {
    width: 100%;
  }
}
