/**
 * Farben an www.samuelberger.de anpassen:
 * Im Browser auf Ihrer Startseite Rechtsklick → Untersuchen → computed color von Buttons/Header.
 */
:root {
  --brand-dark: #0f2847;
  --brand-mid: #1e4a7a;
  --brand-light: #e8f0fa;
  --brand-accent: #d4a84b;
  --brand-accent-hover: #bf9438;
  --bg: #e4ebf3;
  --card: #ffffff;
  --text: #1a2433;
  --muted: #4d5d73;
  --border: #c5d0de;
  --ok-bg: #e8f5ec;
  --ok-text: #1e5631;
  --err-bg: #fdebec;
  --err-text: #8b1e2b;
  --radius: 12px;
  --shadow: 0 14px 45px rgba(15, 40, 71, 0.12);
  --step-size: 2.25rem;
}

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

body.umzug-body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--sb-cyan, var(--bg));
}

.umzug-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
  transition: max-width 0.25s ease;
}

.umzug-wrap--wide {
  max-width: 1280px;
}

/* Kopf wie Rechner-Seite */
.wz-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 100%);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.5rem 1.25rem 1.35rem;
  text-align: center;
}

.wz-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wz-hero p {
  margin: 0;
  opacity: 0.92;
  font-size: 0.95rem;
}

.umzug-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.wz-progress-wrap {
  padding: 1rem 1.25rem 0.85rem;
  background: linear-gradient(180deg, var(--brand-light) 0%, #f5f8fc 100%);
  border-bottom: 2px solid var(--border);
}

.wz-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--brand-mid);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.wz-progress-meta span:last-child {
  color: var(--brand-accent);
  letter-spacing: 0.03em;
}

.wz-progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.wz-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-accent), #e0c078);
  border-radius: 99px;
  transition: width 0.35s ease;
}

.wz-steps-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0 0;
  list-style: none;
  margin: 0;
}

.wz-steps-nav__item {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.35rem 0.65rem;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 600;
}

.wz-steps-nav__item--active {
  background: var(--brand-mid);
  color: #fff;
  border-color: var(--brand-mid);
  box-shadow: 0 2px 8px rgba(30, 74, 122, 0.35);
}

.wz-steps-nav__item--done {
  background: #f0f6ff;
  color: var(--brand-mid);
  border-color: #a8c4e8;
}

.wz-body {
  padding: 1.25rem 1.25rem 1rem;
}

@media (min-width: 640px) {
  .wz-body {
    padding: 1.75rem 2rem 1.25rem;
  }
}

.wz-step h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--brand-dark);
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--brand-accent);
  display: inline-block;
}

.wz-section-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-mid);
  padding-left: 0.65rem;
  border-left: 4px solid var(--brand-accent);
}

.wz-step .wz-sub {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.umzug-alert {
  margin: 1rem 1.25rem 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
}

.umzug-alert--ok {
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid #b8dfc4;
}

.umzug-alert--err {
  background: var(--err-bg);
  color: var(--err-text);
  border: 1px solid #f0c4c8;
}

/* Karten-Auswahl (Umzugsart) */
.wz-cards {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .wz-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.wz-card-opt {
  position: relative;
  display: block;
  cursor: pointer;
}

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

.wz-card-opt span {
  display: block;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.wz-card-opt input:focus-visible + span {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.wz-card-opt input:checked + span {
  border-color: var(--brand-accent);
  background: #fdf8ee;
  box-shadow: 0 0 0 1px var(--brand-accent);
}

.wz-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .wz-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.wz-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--brand-dark);
}

.wz-field .wz-hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.wz-field input[type="text"],
.wz-field input[type="email"],
.wz-field input[type="tel"],
.wz-field input[type="date"],
.wz-field input[type="number"],
.wz-field select,
.wz-field textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wz-field input:focus,
.wz-field select:focus,
.wz-field textarea:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(44, 74, 110, 0.15);
  outline: none;
}

.wz-field textarea {
  min-height: 110px;
  resize: vertical;
}

.wz-field textarea#gutliste {
  min-height: 180px;
}

.wz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.wz-chips button {
  border: 1px solid var(--border);
  background: #f4f7fb;
  color: var(--brand-dark);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 99px;
  cursor: pointer;
}

.wz-chips button:hover {
  border-color: var(--brand-accent);
  background: #fdf8ee;
}

.wz-check-grid {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 520px) {
  .wz-check-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 820px) {
  .wz-check-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wz-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  background: #fafbfc;
}

.wz-check:has(input:checked) {
  border-color: var(--brand-accent);
  background: #fdf8ee;
}

.wz-check input {
  margin-top: 0.2rem;
  accent-color: var(--brand-accent);
}

.wz-field--sonstige {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1rem 1.1rem;
  background: #fdf8ee;
  border: 2px solid var(--brand-accent);
  border-radius: 10px;
}

.wz-field--sonstige label {
  font-size: 0.95rem;
  color: var(--brand-dark);
}

.wz-field--sonstige .wz-hint {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.wz-field--sonstige textarea {
  min-height: 100px;
  font-size: 1rem;
  border: 1px solid #c5a86a;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(26, 47, 74, 0.06);
}

.wz-field--sonstige textarea:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(200, 162, 78, 0.35);
}

.wz-field--sonstige textarea::placeholder {
  color: #6b7280;
  font-style: italic;
}

.wz-summary-box {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border: 1px solid #b8cce6;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.wz-summary-box strong {
  color: var(--brand-mid);
}

.wz-summary-list {
  margin: 0.35rem 0 0.65rem 1.1rem;
  padding: 0;
  columns: 2;
  column-gap: 1.25rem;
}

.wz-summary-list li {
  margin-bottom: 0.2rem;
  break-inside: avoid;
}

@media (max-width: 560px) {
  .wz-summary-list {
    columns: 1;
  }
}

.wz-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.35rem 1.4rem;
  border-top: 2px solid var(--border);
  background: linear-gradient(180deg, #f5f8fc 0%, var(--brand-light) 100%);
}

.wz-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 0.72rem 1.4rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

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

.wz-btn--ghost {
  background: #fff;
  color: var(--brand-mid);
  border: 2px solid var(--brand-mid);
}

.wz-btn--ghost:hover {
  background: var(--brand-light);
}

.wz-btn--primary {
  background: linear-gradient(180deg, #e4bc62 0%, var(--brand-accent) 100%);
  color: #1a2433;
  border: 1px solid #c49a3a;
  box-shadow: 0 2px 6px rgba(212, 168, 75, 0.45);
}

.wz-btn--primary:hover {
  background: var(--brand-accent-hover);
}

.wz-btn--submit {
  background: linear-gradient(180deg, var(--brand-mid) 0%, var(--brand-dark) 100%);
  color: #fff;
  margin-left: auto;
  box-shadow: 0 3px 10px rgba(15, 40, 71, 0.35);
}

.wz-btn--submit:hover {
  filter: brightness(1.08);
}

.wz-legal {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.umzug-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wz-success {
  padding: 2rem 1.5rem;
  text-align: center;
}

.wz-success h2 {
  color: var(--brand-dark);
  margin: 0 0 0.5rem;
}

/* === Inventar (Möbelliste wie Umzugsrechner) === */
.wz-step--inventar .wz-sub {
  margin-bottom: 1rem;
}

.inv-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .inv-layout {
    grid-template-columns: 1fr minmax(300px, 320px);
    align-items: start;
  }
}

.wz-step--inventar {
  max-width: none;
}

.inv-anmerkungen {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: var(--brand-light);
  border-radius: 8px;
  border: 1px solid #b8cce6;
}

.inv-accordion {
  border: 1px solid #b8cce6;
  border-radius: 10px;
  overflow: hidden;
  background: #e8eef5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.inv-room {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.inv-room:last-child {
  border-bottom: 0;
}

.inv-room[open] .inv-room__title {
  background: linear-gradient(90deg, var(--brand-mid) 0%, #2a5f94 100%);
  color: #fff;
  border-bottom-color: var(--brand-dark);
}

.inv-room__title {
  list-style: none;
  cursor: pointer;
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(90deg, #d5dde8 0%, #e2e9f2 100%);
  color: var(--brand-dark);
  user-select: none;
  border-bottom: 1px solid #b8c5d6;
  transition: background 0.2s, color 0.2s;
}

.inv-room__title:hover {
  background: #c8d6e8;
}

.inv-room__title::-webkit-details-marker {
  display: none;
}

.inv-room__title::after {
  content: "▾";
  float: right;
  font-size: 0.85rem;
  opacity: 0.7;
}

.inv-room:not([open]) .inv-room__title::after {
  content: "▸";
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.75rem;
  background: #e2eaf3;
}

@media (min-width: 640px) {
  .inv-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .umzug-wrap--wide .inv-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    padding: 0.85rem;
  }
}

.inv-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.55rem 0.35rem 0.6rem;
  background: #fff;
  border: 1px solid #c5d0de;
  border-radius: 8px;
  min-height: 152px;
  box-shadow: 0 2px 6px rgba(15, 40, 71, 0.06);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.inv-item:hover {
  border-color: var(--brand-accent);
  box-shadow: 0 4px 12px rgba(15, 40, 71, 0.1);
}

.inv-item__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff 0%, #f0f4f9 100%);
  border: 1px solid #c5d0de;
  border-radius: 6px;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
  padding: 4px;
}

.inv-item__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.inv-item__label {
  font-size: 0.68rem;
  line-height: 1.2;
  color: #333;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.35rem;
  min-height: 3.2em;
  padding: 0 0.15rem;
}

.inv-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #c5ccd4;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  max-width: 88px;
  margin: 0 auto;
}

.inv-qty__btn {
  width: 26px;
  height: 28px;
  border: 0;
  background: var(--brand-light);
  color: var(--brand-mid);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  font-weight: 700;
}

.inv-qty__btn:hover {
  background: #d4e4f7;
  color: var(--brand-dark);
}

.inv-qty__input {
  width: 36px;
  height: 28px;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0;
  -moz-appearance: textfield;
}

.inv-qty__input::-webkit-outer-spin-button,
.inv-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.inv-sidebar {
  position: sticky;
  top: 0.5rem;
}

.inv-truck {
  text-align: center;
  padding: 1.1rem 0.5rem 1rem;
  background: linear-gradient(180deg, #fff 0%, var(--brand-light) 100%);
  border: 2px solid var(--brand-mid);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px rgba(30, 74, 122, 0.15);
}

.inv-truck__icon {
  margin: 0 -0.15rem 0.55rem;
  line-height: 0;
}

.inv-truck__img {
  width: 100%;
  max-width: 220px;
  min-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 899px) {
  .inv-truck__img {
    max-width: min(100%, 260px);
    min-width: 0;
  }
}

.inv-truck__vol {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.1;
  margin-top: 0.15rem;
}

.inv-truck__vol small {
  font-size: 1rem;
  font-weight: 600;
  margin-left: 0.15rem;
}

.inv-truck__hint {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.inv-table th {
  background: var(--brand-mid);
  color: #fff;
  text-align: left;
  padding: 0.45rem 0.5rem;
  font-weight: 600;
}

.inv-table td {
  padding: 0.4rem 0.5rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.inv-table__qty {
  text-align: center;
  width: 3rem;
  font-weight: 700;
}

.inv-table__empty {
  text-align: center;
  color: var(--muted);
  padding: 0.75rem !important;
}

/* === Einbettung auf Startseite (iframe ?embed=1) === */
body.umzug-body--embed {
  background: #fff;
}

body.umzug-body--embed .umzug-wrap {
  max-width: 100%;
  padding: 0.75rem 0.5rem 1rem;
}

body.umzug-body--embed .umzug-card {
  box-shadow: none;
  border: 0;
  padding: 0;
}

body.umzug-body--embed .wz-hero {
  padding-top: 0.25rem;
  padding-bottom: 0.75rem;
}

body.umzug-body--embed .wz-hero h1 {
  font-size: 1.35rem;
}

body.umzug-body--embed .wz-hero p {
  font-size: 0.95rem;
}

body.umzug-body--embed .sb-main--embed {
  padding: 0;
}
