
@media (min-width: 1100px) {
  body.wizard-fokus .wrap.wrap-app { --app-spalte: 960px; }
}

@media (min-width: 641px) {
  body.wizard-fokus .assistent-leiste { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; column-gap: 12px; padding: 10px 0 12px; margin-bottom: 10px; }
  body.wizard-fokus .assistent-leiste > .back-choice { grid-column: 1; grid-row: 1; justify-self: start; margin-top: 3px; }
  body.wizard-fokus .assistent-leiste > .stepper { grid-column: 2; grid-row: 1; }
  body.wizard-fokus .assistent-leiste > .au-chip { grid-column: 3; grid-row: 1; justify-self: end; order: 0; }
}
#stepper { --dot: 28px; gap: 0; align-items: flex-start; }
@media (min-width: 641px) { #stepper { width: 460px; max-width: 100%; } }
body.wizard-fokus .assistent-leiste > .back-choice { white-space: nowrap; }
#stepper .step-dot { position: relative; flex: 0 0 92px; min-width: 0; padding: 0 0 2px; gap: 5px; border-radius: 10px; }
#stepper .step-dot .dot { position: relative; z-index: 1; width: var(--dot); height: var(--dot); font-size: .8rem; }
#stepper .step-dot:disabled { opacity: 1; }
#stepper .step-dot:disabled .dot { background: rgba(120, 120, 128, .14); color: var(--muted); }
#stepper .step-dot:disabled .dot-label { opacity: .7; }
#stepper .step-dot.active .dot { transform: none; box-shadow: 0 0 0 4px var(--accent-tint); }
#stepper .step-dot.done .dot { background: var(--accent); color: #fff; font-size: 0; }
#stepper .dot-label { font-size: .76rem; }
#stepper .step-dot + .step-dot::before { content: ""; position: absolute; top: calc(var(--dot) / 2 - 1px); right: calc(50% + var(--dot) / 2 + 4px); width: calc(100% - var(--dot) - 8px); height: 2px; border-radius: 1px; background: rgba(120, 120, 128, .24); }
#stepper .step-dot.done + .step-dot::before { background: var(--accent); }
#stepper .step-dot.uebersprungen { opacity: .38; }

#stepper .stepper-teil { display: flex; flex: 1 1 100%; flex-wrap: wrap; justify-content: center; gap: 2px 4px; margin: 10px 0 0; }
.teil-chip { min-height: 32px; padding: 3px 11px; border: 0; border-radius: var(--r-pill, 999px); background: transparent; color: var(--muted); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; transition: background var(--dur-hover, .18s), color var(--dur-hover, .18s); }
.teil-chip:hover:not(:disabled) { background: rgba(120, 120, 128, .12); color: var(--ink); }
.teil-chip.an { background: var(--accent-tint); color: var(--accent); }
.teil-chip.an:hover:not(:disabled) { background: var(--accent-tint); color: var(--accent); }
.teil-chip.fertig::before { content: "✓\00a0"; color: var(--accent); }
.teil-chip:disabled { opacity: .55; cursor: default; }
.teil-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

#form .step-panel { --rand-x: 30px; padding: 26px var(--rand-x) 0; }
#form .step-panel.active { display: flex; flex-direction: column; min-height: min(620px, calc(100vh - 215px)); }
#form .step-panel > .teil.an { margin-bottom: 20px; }
#form .step-panel.ls-an > .ls-ansicht, #form .step-panel.nw-an > .nw-ansicht { display: flex; flex-direction: column; flex: 1 1 auto; }
#form .step-panel .step-nav { position: sticky; bottom: 0; z-index: 20; gap: 12px; margin: auto calc(var(--rand-x) * -1) 0; padding: 14px var(--rand-x) calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
#form .step-panel .ls-ansicht .step-nav, #form .step-panel .nw-ansicht .step-nav { margin-top: auto; }
#form .step-panel .ls-ansicht > #lsFrage, #form .step-panel .ls-ansicht > #lsArbeit, #form .step-panel .nw-ansicht > .nw-box { margin-bottom: 20px; }
#form .step-panel .step-nav .btn-primary { margin-left: auto; padding-block: 12px; }
#form .step-panel > :is(.step-msg, .live-cost, #confirmHint, #balanceBox) { margin-top: 0; margin-bottom: 14px; }
#form .step-panel[data-step="4"] > .live-cost { margin-top: auto; padding: 0; background: none; text-align: right; font-size: .86rem; }
#form .step-panel[data-step="4"] > .step-nav { margin-top: 0; }
#form #confirmHint { text-align: left !important; }
body:has(#cookieBar.cb-an) #form .step-panel .step-nav { position: static; }

@media (max-width: 1200px) {
  body.wizard-fokus .lang-switch-float, body.wizard-fokus .idk-knopf { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  body.wizard-fokus .idk-panel { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
}
body.wizard-fokus .lst-erw { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 640px) { body.wizard-fokus .lang-switch-float { display: none; } }

#form .step-panel h2.teil-h, #form .ls-ansicht > h2, #form .nw-ansicht > h2, #form .step-panel[data-step="6"] > h2 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; text-transform: none; color: var(--ink); }
#form .step-panel .teil-lead, #form .ls-unter, #form .nw-unter { margin: 0 0 18px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
#form .step-panel .bilder-kopf { align-items: baseline; gap: 12px; margin: 0; }

#form #photoStepTitle { margin-bottom: 14px; }
#fotoQuelle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
#fotoQuelle > * { grid-column: 1 / -1; min-width: 0; margin-top: 0; }
#fotoQuelle.vneu-an > #vneuKarte { order: -1; }
#fotoQuelle:not(.vneu-an) > #vneuKarte { grid-column: auto; order: 5; }
#fotoQuelle > .buendel-cb { grid-column: auto; order: 6; display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: .88rem; font-weight: 400; }
#fotoQuelle > .buendel-cb input { flex: none; margin-top: 2px; }
#fotoQuelle > .buendel-cb b { display: block; font-size: .92rem; font-weight: 600; }
#fotoQuelle > .buendel-cb small { display: block; margin-top: 1px; color: var(--muted); font-size: .8rem; }
#fotoQuelle > .buendel-cb:has(input:checked) { border-color: var(--accent); }
#fotoQuelle > .buendel-cb:has(input:checked) b { color: var(--accent); }
#fotoQuelle > #vneuKarte { margin: 0; }
#fotoQuelle:not(.vneu-an) > #vneuKarte { padding: 12px 14px; }
#fotoQuelle:not(.vneu-an) > #vneuKarte .vneu-schalter { font-size: .92rem; }
#fotoQuelle:not(.vneu-an) > #vneuKarte .vneu-schalter small { font-size: .8rem; margin-top: 1px; }
#fotoQuelle:not(.vneu-an) > #vneuKarte .vneu-schalter input { width: 17px; height: 17px; }
#form .pack-row { margin-top: 6px; }
#form .pack-row[hidden] + .market-row, #form .step-panel[data-step="2"] .pack-row[hidden] ~ .market-row { margin-top: 6px; }
#form .market-row { margin-top: 22px; max-width: 560px; }

@media (min-width: 861px) { #stilWahl { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 561px) { #anspracheWahl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#form .ansprache-bereich { margin: 0; padding: 0; border: 0; }
#form .gestaltung-extras, #form .step-panel.stil-aus .gestaltung-extras { margin-top: 0; padding-top: 0; border-top: 0; }
#form .gestaltung-extras > .ml-zeile:first-of-type, #form .gestaltung-extras > .ml-zeile[hidden] + .ml-zeile { margin-top: 0; }

#siegelPartner .sa-logo { flex: none; display: grid; place-items: center; padding: 5px 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
#siegelPartner .sa-logo img { display: block; width: auto; height: 34px; }
#siegelPartner .sa-kopf { align-items: center; justify-content: flex-start; }
#siegelPartner .sa-kopf h4 { flex: 1 1 auto; min-width: 0; }
#siegelPartner .sa-quelle { color: var(--muted); }

#form .step-panel[data-step="6"] .recap-markt { flex-wrap: nowrap; margin-bottom: 8px; padding-block: 9px; }
#form .step-panel[data-step="6"] .recap-markt > span { flex: 1 1 auto; min-width: 0; }
#form .step-panel[data-step="6"] .recap-markt > :is(svg, .mk-flag, img) { flex: none; }
@media (min-width: 861px) {
  #form .step-panel[data-step="6"].active { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto auto 1fr auto; column-gap: 26px; align-content: start; }
  #form .step-panel[data-step="6"] > * { grid-column: 1 / -1; }
  #form .step-panel[data-step="6"] > h2 { margin-bottom: 14px; }
  #form .step-panel[data-step="6"] > #summaryRecap { grid-column: 1; grid-row: 2 / span 3; }
  #form .step-panel[data-step="6"] > #costTable { grid-column: 2; grid-row: 2; align-self: start; }
  #form .step-panel[data-step="6"] > #kostenEinzeln { grid-column: 2; grid-row: 3; }
  #form .step-panel[data-step="6"] > #balanceBox { grid-column: 2; grid-row: 4; }
  #form .step-panel[data-step="6"] > #galeriePlan { grid-row: 5; margin-top: 8px; }
  #form .step-panel[data-step="6"] > .step-nav { grid-row: 7; align-self: end; margin-top: 0; }
}

@media (max-width: 640px) {
  #form .step-panel { --rand-x: 18px; padding-top: 20px; }
  #form .step-panel.active { min-height: calc(100vh - 190px); }
  #stepper { --dot: 26px; }
  #stepper .step-dot { flex: 0 0 20%; }
  #stepper .dot-label { font-size: .7rem; white-space: nowrap; }
  #stepper .stepper-teil { margin-top: 6px; }
  .teil-chip { padding-inline: 8px; font-size: .74rem; }
  #fotoQuelle { grid-template-columns: minmax(0, 1fr); }
  #fotoQuelle:not(.vneu-an) > #vneuKarte, #fotoQuelle > .buendel-cb { grid-column: 1 / -1; }
  #form .step-panel h2.teil-h { font-size: 1.2rem; }
  #siegelPartner .sa-text { flex-basis: 100%; }
  #stilWahl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  #stilWahl .stil-karte .sk-sub { display: none; }
  #stilWahl .stil-karte .sk-text { padding: 6px 7px 8px; }
  #stilWahl .stil-karte .sk-name { font-size: .76rem; }
  #stilWahl .stil-neu-paar .stil-neu { flex-direction: column; gap: 2px; padding: 6px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .teil-chip { transition: none; }
}
