﻿:root {
  --black: #0d0d0d;
  --white: #ffffff;
  --grey-light: #f4f4f4;
  --grey-mid: #e0e0e0;
  --grey-text: #5a5a5a;
  --accent: #ffd100;
  --accent-dark: #e6bc00;
  --success: #0e9f6e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Barlow", sans-serif;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1280px, calc(100% - 120px));
  margin: 0 auto;
}

.narrow {
  width: min(920px, 100%);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 72px;
  background: var(--white);
  border-bottom: 1px solid var(--grey-mid);
  z-index: 200;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand-logo {
  width: 176px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.step-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-text);
}

.topbar-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.header-inline-cta {
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-inline-cta-short {
  display: none;
}

body[data-page="permit-guide-berlin"] .topbar > .step-label {
  display: none;
}

.page-main {
  padding-top: 72px;
}

.section {
  padding: 100px 0;
}

.section-soft {
  padding: 0 0 100px;
}

.section-dark {
  padding: 100px 0;
  background: var(--black);
}

.eyebrow,
.card-eyebrow {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-title,
.form-copy h2,
.story-card h2,
.summary-heading,
.step-hero-title {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.page-title,
.form-copy h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.page-text,
.story-card p,
.form-copy p,
.summary-box,
.alert-card,
.success-message {
  color: var(--grey-text);
  line-height: 1.72;
}

.step-hero {
  background: var(--black);
  overflow: hidden;
}

/* =============================================================
   Schritt 2 – HR + Design polished mobile
   ============================================================= */

/* Recruiter strip ("Hi Anna" mini bio) */
.recruiter-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 8px 14px 8px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.recruiter-strip-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #15151b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  overflow: hidden;
  flex: 0 0 auto;
}

.recruiter-strip-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.recruiter-strip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.recruiter-strip-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.recruiter-strip-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}

/* Big emoji prefix on each wizard question */
.wizard-emoji {
  display: inline-block;
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 4px 14px rgba(255, 209, 0, 0.18));
  animation: wizard-emoji-pop 0.55s cubic-bezier(0.34, 1.6, 0.64, 1) both;
}

@keyframes wizard-emoji-pop {
  0% { opacity: 0; transform: scale(0.6) rotate(-12deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* Calendar icon left of the bd-trigger label */
.bd-trigger-icon-leading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 4px;
  color: var(--accent);
  flex: 0 0 auto;
}

.bd-trigger {
  gap: 10px;
}

/* Edge-to-edge wizard on Schritt 2 + 3 mobile (no card-in-card) */
@media (max-width: 768px) {
  body[data-page="step2"] .step-hero-form-card,
  body[data-page="step3"] .step-hero-form-card {
    background: transparent;
    border: 0;
    padding: 0;
  }
  body[data-page="step2"] .step-hero-copy .step-hero-title,
  body[data-page="step3"] .step-hero-copy .step-hero-title {
    font-size: clamp(1.6rem, 5.6vw, 2.1rem);
  }
  body[data-page="step2"] .step-hero-text,
  body[data-page="step3"] .step-hero-text {
    font-size: 0.9rem;
    margin-top: 10px;
  }
  body[data-page="step2"] .recruiter-strip,
  body[data-page="step3"] .recruiter-strip {
    margin-top: 18px;
  }
  body[data-page="step2"] .step-hero-split,
  body[data-page="step3"] .step-hero-split {
    padding: 16px 0 28px;
  }
  body[data-page="step2"] .step-hero-split-grid,
  body[data-page="step3"] .step-hero-split-grid {
    gap: 22px;
  }
  body[data-page="step2"] .wizard-question,
  body[data-page="step3"] .employment-options legend {
    font-size: clamp(1.45rem, 5.6vw, 1.85rem);
    line-height: 1.1;
  }
  body[data-page="step2"] .wizard-emoji,
  body[data-page="step3"] .wizard-emoji {
    font-size: 1.9rem;
  }
}

/* Schritt 3 form: drop the inner flow-form card chrome so the options
   sit edge-to-edge like the Schritt 2 wizard slides. */
body[data-page="step3"] #employment-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* Schritt 3 employment options — bigger, friendlier on mobile */
body[data-page="step3"] .employment-options {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body[data-page="step3"] .employment-options legend {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 8px;
  text-align: left;
}

body[data-page="step3"] .employment-options .option-choice {
  min-height: 64px;
  font-size: 1.1rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body[data-page="step3"] .employment-options .option-choice-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

body[data-page="step3"] .employment-options .option-choice-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

body[data-page="step3"] .employment-options .option-choice-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

body[data-page="step3"] .employment-options .option-choice:has(input:checked) .option-choice-meta {
  color: rgba(255, 255, 255, 0.8);
}

body[data-page="step3"] .employment-options .option-choice:hover {
  border-color: rgba(255, 209, 0, 0.5);
  background: rgba(255, 209, 0, 0.04);
  transform: translateY(-2px);
}

body[data-page="step3"] .employment-options .option-choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 209, 0, 0.10);
  box-shadow: 0 0 0 1px rgba(255, 209, 0, 0.4);
  animation: wizard-radio-pop 0.32s cubic-bezier(0.34, 1.6, 0.64, 1);
}

@media (max-width: 480px) {
  body[data-page="step2"] .step-hero-copy .step-hero-title {
    font-size: 1.5rem;
  }
  body[data-page="step2"] .recruiter-strip {
    padding: 6px 12px 6px 6px;
    gap: 10px;
  }
  body[data-page="step2"] .recruiter-strip-avatar {
    width: 32px;
    height: 32px;
  }
  body[data-page="step2"] .recruiter-strip-name {
    font-size: 0.82rem;
  }
}

/* Radio bounce on selection (micro-feedback) */
.wizard-radio-group .option-choice:has(input:checked) {
  animation: wizard-radio-pop 0.32s cubic-bezier(0.34, 1.6, 0.64, 1);
}

@keyframes wizard-radio-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Schritt 2 / 3 / 4 – sanfter, animierter Glow-Layer + Reveal */
body[data-page="step2"] .step-hero,
body[data-page="step3"] .step-hero,
body[data-page="step4"] .step-hero {
  position: relative;
}

body[data-page="step2"] .step-hero::before,
body[data-page="step3"] .step-hero::before,
body[data-page="step4"] .step-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 0;
  width: 60%;
  height: 220%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 209, 0, 0.14),
    transparent 65%
  );
  filter: blur(20px);
  animation: hero-drift 34s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

body[data-page="step2"] .step-hero > .shell,
body[data-page="step3"] .step-hero > .shell,
body[data-page="step4"] .step-hero > .shell {
  position: relative;
  z-index: 1;
}

@keyframes hero-drift {
  0%, 100% { transform: translateX(-25%); }
  50%      { transform: translateX(75%); }
}

/* Soft fade-in for the hero-copy and form-card on Schritt 2 / 3 / 4. */
body[data-page="step2"] .step-hero-copy,
body[data-page="step3"] .step-hero-copy,
body[data-page="step4"] .step-hero-copy {
  animation: step-hero-rise 0.8s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

body[data-page="step2"] .step-hero-form-card,
body[data-page="step3"] .step-hero-form-card,
body[data-page="step4"] .step-hero-form-card {
  animation: step-hero-rise 0.8s 0.18s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes step-hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="step2"] .step-hero::before,
  body[data-page="step3"] .step-hero::before,
  body[data-page="step4"] .step-hero::before {
    animation: none;
    transform: translateX(25%);
  }
  body[data-page="step2"] .step-hero-copy,
  body[data-page="step3"] .step-hero-copy,
  body[data-page="step4"] .step-hero-copy,
  body[data-page="step2"] .step-hero-form-card,
  body[data-page="step3"] .step-hero-form-card,
  body[data-page="step4"] .step-hero-form-card {
    animation: none;
  }
}

.step-hero-grid {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(460px, 620px);
  gap: 24px;
  align-items: stretch;
  position: relative;
  isolation: isolate;
}

.step-hero-compact {
  padding: 56px 0 40px;
  min-height: calc(100vh - 144px);
  display: flex;
  align-items: center;
}

.step-hero-compact > .shell {
  width: 100%;
}

/* Schritt 4 now uses the same dark step-hero-split as Schritt 2/3.
   Override stays minimal: drop the legacy white-hero variant. */

.step-hero-compact .step-hero-title {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.05;
  max-width: 640px;
  margin: 18px 0 0;
}

.step-hero-compact .step-hero-text {
  margin-top: 18px;
  max-width: 560px;
}

.step-hero-split {
  padding: 56px 0 64px;
  min-height: calc(100vh - 144px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-hero-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
  gap: 56px;
  align-items: center;
}

.step-hero-split .step-hero-copy {
  padding: 0;
}

.step-hero-split .step-hero-title {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1.05;
  margin: 18px 0 0;
}

.step-hero-split .step-hero-text {
  margin-top: 18px;
  max-width: 480px;
}

.step-hero-form-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  padding: 32px 28px;
}

.step-hero-form-card .flow-form {
  margin: 0;
}

/* Schritt 2 – größere Form-Card und stärkere Felder (nur auf Desktop) */
@media (min-width: 1025px) {
  body[data-page="step2"] .step-hero-split-grid {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 580px);
    gap: 64px;
  }

  body[data-page="step2"] .step-hero-form-card {
    padding: 44px 40px;
  }
}

body[data-page="step2"] .step-hero-form-card {
  padding: 32px 28px;
}

body[data-page="step2"] .step-hero-form-card .flow-form {
  gap: 22px;
}

body[data-page="step2"] .step-hero-form-card .flow-form .field > span,
body[data-page="step2"] .step-hero-form-card .flow-form .option-group > legend {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
}

body[data-page="step2"] .step-hero-form-card .flow-form .field input:not([type="radio"]),
body[data-page="step2"] .step-hero-form-card .flow-form .field select {
  min-height: 58px;
  font-size: 1rem;
}

body[data-page="step2"] .step-hero-form-card .flow-form .option-choice {
  min-height: 58px;
  font-size: 1rem;
}

/* =============================================================
   Wizard – Frage für Frage (Schritt 2)
   ============================================================= */

/* Override the default 2-column grid so the wizard takes the full
   width of the form-card, and drop the inner card chrome since the
   parent .step-hero-form-card already has the styled container. */
.flow-form.wizard-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.wizard-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wizard-progress-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.wizard-progress-text #wizard-current {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0;
  vertical-align: -1px;
}

.wizard-progress-bar {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.wizard-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: linear-gradient(90deg, var(--accent), #ffe55a);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(255, 209, 0, 0.4);
  transition: width 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.wizard-slides {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: stretch;
}

.wizard-slide {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: wizard-enter 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

/* Stagger: each child of the slide eases in 80ms after the previous one. */
.wizard-slide > * {
  animation: wizard-stagger 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
  opacity: 0;
}

.wizard-slide > *:nth-child(1) { animation-delay: 0.08s; }
.wizard-slide > *:nth-child(2) { animation-delay: 0.18s; }
.wizard-slide > *:nth-child(3) { animation-delay: 0.28s; }
.wizard-slide > *:nth-child(4) { animation-delay: 0.38s; }
.wizard-slide > *:nth-child(5) { animation-delay: 0.48s; }

@keyframes wizard-enter {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    filter: blur(6px);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes wizard-stagger {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-slide[data-leaving="true"] {
  animation: wizard-leave 0.32s cubic-bezier(0.4, 0, 1, 1) both;
}

@keyframes wizard-leave {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-22px) scale(0.97);
    filter: blur(6px);
  }
}

.wizard-question {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--white);
  margin: 0;
}

.wizard-question .accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.wizard-question .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--accent);
  transform-origin: left;
  animation: wizard-underline 0.7s 0.4s cubic-bezier(0.65, 0, 0.35, 1) both;
}

@keyframes wizard-underline {
  from { transform: scaleX(0); opacity: 0.4; }
  to   { transform: scaleX(1); opacity: 1; }
}

.wizard-help {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  max-width: 520px;
}

.wizard-radio-group {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wizard-radio-group .option-choice {
  min-height: 72px;
  font-size: 1.15rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.wizard-radio-group .option-choice:hover {
  border-color: rgba(255, 209, 0, 0.5);
  background: rgba(255, 209, 0, 0.04);
  transform: translateY(-2px);
}

.wizard-radio-group .option-choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 209, 0, 0.10);
  box-shadow: 0 0 0 1px rgba(255, 209, 0, 0.4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.wizard-actions .button {
  flex: 0 0 auto;
  padding: 14px 28px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
}

.wizard-actions .button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.wizard-actions .button:hover::after {
  transform: translateX(100%);
}

.wizard-actions .wizard-next {
  margin-left: auto;
}

.wizard-prev {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 10px 4px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.wizard-prev:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .wizard-slide,
  .wizard-slide[data-leaving="true"],
  .wizard-slide > *,
  .wizard-question .accent::after {
    animation: none;
  }
  .wizard-slide > * { opacity: 1; }
}

/* =============================================================
   Custom Birthdate Picker – premium look, mehr Luft, runde Pills
   ============================================================= */

.bd-field {
  position: relative;
}

.bd-picker {
  position: relative;
  width: 100%;
}

.bd-trigger {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.bd-trigger:hover {
  border-color: rgba(255, 209, 0, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.bd-trigger[aria-expanded="true"] {
  border-color: var(--accent);
  background: rgba(255, 209, 0, 0.05);
}

.bd-trigger-text.is-filled {
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bd-trigger-icon {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), color 0.2s ease;
}

.bd-trigger[aria-expanded="true"] .bd-trigger-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

/* ── Popover ───────────────────────────────────────── */

.bd-popover {
  position: relative;
  margin-top: 12px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 209, 0, 0.06), transparent 55%),
    linear-gradient(180deg, #1c1c1e, #131315);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 24px 60px rgba(0, 0, 0, 0.5);
  animation: bd-pop-in 0.28s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes bd-pop-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ────────────────────────────────────────── */

.bd-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.bd-nav {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bd-nav:hover {
  background: var(--accent);
  color: #15151b;
  transform: scale(1.08);
}

.bd-nav:active {
  transform: scale(0.96);
}

.bd-popover-selectors {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bd-popover-selectors select {
  appearance: none;
  -webkit-appearance: none;
  padding: 6px 22px 6px 10px !important;
  min-height: 0 !important;
  background:
    rgba(255, 255, 255, 0.04)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23FFD100' d='M0 0l5 6 5-6z'/></svg>")
    no-repeat right 8px center !important;
  background-size: 9px 5px !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: var(--white);
  font: inherit;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.bd-popover-selectors select:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.bd-popover-selectors select:focus {
  outline: none;
  background-color: rgba(255, 209, 0, 0.10) !important;
  box-shadow: 0 0 0 1px rgba(255, 209, 0, 0.4) !important;
}

.bd-popover-selectors select option {
  background: #1c1c1e;
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  text-transform: none;
}

/* ── Weekdays + Grid ───────────────────────────────── */

.bd-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 8px;
  padding: 0 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.32);
}

.bd-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.bd-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 42px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.bd-cell:hover:not(.is-disabled):not(.is-selected) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.bd-cell:active:not(.is-disabled):not(.is-selected) {
  transform: scale(0.92);
}

.bd-cell.is-selected {
  background: var(--accent);
  color: #15151b;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 209, 0, 0.35);
}

.bd-cell.is-today:not(.is-selected)::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.bd-cell.is-disabled {
  color: rgba(255, 255, 255, 0.16);
  cursor: not-allowed;
}

.bd-cell.is-disabled:hover {
  background: transparent;
}

.bd-cell-empty {
  visibility: hidden;
}

/* ── Footnote ──────────────────────────────────────── */

.bd-footnote {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .bd-popover,
  .bd-cell { animation: none; transition: none; }
}

@media (max-width: 480px) {
  .bd-popover { padding: 16px 14px 14px; border-radius: 10px; }
  .bd-cell { min-height: 36px; font-size: 0.88rem; }
}

/* Highlighted "Arbeitserlaubnis" field – dezent aber spürbar */
.field-highlight {
  position: relative;
}

.flow-form .field-highlight > .field-highlight-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7) !important;
}

.field-highlight-badge {
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 209, 0, 0.5);
  padding: 2px 6px;
  border-radius: 2px;
}

.flow-form .field-highlight select {
  border-color: rgba(255, 209, 0, 0.35) !important;
}

.flow-form .field-highlight select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(255, 209, 0, 0.15) !important;
}

.field-highlight-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1024px) {
  .step-hero-split {
    padding: 40px 0 56px;
  }
  .step-hero-split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .step-hero-form-card {
    padding: 24px 20px;
  }
}

.step-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 24px 64px 0;
  position: relative;
  z-index: 3;
}

.step-hero-title {
  font-size: clamp(3.3rem, 6vw, 6.2rem);
  line-height: 1;
  color: var(--white);
  max-width: 740px;
}

.step-hero-title .accent {
  color: var(--accent);
}

.step-hero-text {
  max-width: 700px;
  margin: 28px 0 0;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.72;
}

.step-hero-media {
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  position: relative;
  z-index: 1;
  min-height: 100%;
  background: #101010;
}

.step-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.step-hero-caption {
  display: grid;
  gap: 6px;
  padding: 16px 22px 18px;
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.step-hero-caption-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.step-hero-caption strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
}

.step-intro {
  padding: 96px 0;
  background: var(--white);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.story-card,
.summary-box,
.alert-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  padding: 32px;
}

.story-card h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.card-eyebrow {
  color: var(--grey-text);
}

.form-split {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}

.section-dark .form-copy h2,
.section-dark .form-copy p {
  color: var(--white);
}

.form-copy h2 {
  margin-bottom: 22px;
}

.section-dark .form-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.flow-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 32px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.flow-stack {
  grid-template-columns: 1fr;
}

body[data-page="step4"] .step4-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 22px;
}

.step4-layout {
  align-items: start;
}

.step4-form-wrap {
  min-width: 0;
}

.step4-copy {
  position: sticky;
  top: 104px;
}

.step4-copy-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.step4-copy-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step4-copy-dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.step4-copy-item p {
  margin: 0;
}

.step4-stack {
  display: grid;
  gap: 22px;
}

body[data-page="step4"] .step4-overview-card,
body[data-page="step4"] .step4-submit-card,
body[data-page="step4"] .booking-fields,
body[data-page="step4"] #documents-approved-card,
body[data-page="step4"] #ocr-results-card {
  margin: 0;
}

.didit-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
}

.step4-overview-card {
  gap: 18px;
}

.step4-overview-head {
  display: grid;
  gap: 10px;
}

.step4-overview-title {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.step4-overview-text {
  max-width: 56rem;
}

.step4-overview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step4-overview-item {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  background: var(--accent);
  color: var(--black);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.step4-overview-item-optional {
  background: #f3cd1c;
}

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.flow-form .field > span,
.flow-form .option-group > legend {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.flow-form .field input:not([type="radio"]),
.flow-form .field select,
.flow-form .field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 300;
}

.flow-form .field select option {
  color: var(--black);
  background: var(--white);
}

.flow-form .field select option:checked,
.flow-form .field select option:hover {
  background: var(--accent) linear-gradient(0deg, var(--accent), var(--accent));
  color: #111111;
  box-shadow: 0 0 10px 100px var(--accent) inset;
}

.flow-form .field select option:disabled {
  color: var(--grey-text);
}

.flow-form .field input[type="date"],
.flow-form .field input[type="time"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color-scheme: dark;
}

.flow-form .field input[type="date"]::-webkit-calendar-picker-indicator,
.flow-form .field input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.9;
  filter: invert(1);
}

.flow-form .field textarea {
  min-height: 120px;
  resize: vertical;
}

.flow-form .field input:not([type="radio"])::placeholder,
.flow-form .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.flow-form .field input:not([type="radio"]):focus,
.flow-form .field select:focus,
.flow-form .field textarea:focus {
  outline: 2px solid rgba(255, 209, 0, 0.2);
  border-color: var(--accent);
  background: rgba(255, 209, 0, 0.06);
}

.option-group-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-group {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 14px;
}

.flow-form .option-group legend {
  margin-bottom: 8px;
}

.flow-form .option-choice {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 14px;
  margin: 0;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.flow-form .option-choice::before {
  content: "";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  align-self: center;
}

.flow-form .option-choice:hover {
  border-color: rgba(255, 209, 0, 0.45);
  transform: translateY(-1px);
}

.flow-form .option-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.flow-form .option-choice:has(input[type="radio"]:checked) {
  border-color: rgba(255, 209, 0, 0.88);
  background: rgba(255, 209, 0, 0.08);
}

.flow-form .option-choice:has(input[type="radio"]:checked)::before {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 5px var(--accent);
}

.flow-form .field .button,
.flow-form .field-full .button {
  width: 100%;
}

.quiz-progress {
  gap: 12px;
  margin-bottom: 4px;
}

.quiz-progress-step {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
}

.quiz-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.quiz-progress-fill {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.22s ease;
}

.quiz-question {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #191919;
  border-radius: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quiz-question[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quiz-question.is-active {
  border-color: rgba(255, 209, 0, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.quiz-question legend {
  padding: 0;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

.quiz-options {
  display: grid;
  gap: 12px;
}

.quiz-choice {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121212;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quiz-choice::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quiz-choice:hover {
  border-color: rgba(255, 209, 0, 0.45);
  transform: translateY(-1px);
}

.quiz-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-choice:has(input[type="radio"]:checked) {
  border-color: rgba(255, 209, 0, 0.88);
  background: rgba(255, 209, 0, 0.08);
}

.quiz-choice:has(input[type="radio"]:checked)::before {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 5px var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 36px;
  border: none;
  border-radius: 2px;
  background: var(--accent);
  color: var(--black);
  font-family: "Barlow", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease, color 0.25s ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button:disabled,
.button:disabled:hover {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  background: var(--accent);
  color: var(--black);
}

.button-dark {
  background: var(--black);
  color: var(--white);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--white);
}

.button-small {
  min-height: 44px;
  padding: 0 16px;
}

.summary-box {
  margin-top: 24px;
  font-weight: 700;
}

.summary-box-compact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 16px 18px;
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

.permit-guide-intro {
  max-width: 48rem;
  margin: 20px 0 0;
}

.permit-roadmap-section {
  background: var(--white);
  padding-top: 0;
}

.permit-roadmap {
  display: grid;
  gap: 22px;
}

.permit-roadmap-step {
  display: grid;
  gap: 0;
  align-items: start;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.permit-roadmap-step:hover {
  background: #fffdf5;
  border-color: #d7d7d7;
}

.permit-roadmap-body {
  display: grid;
  gap: 18px;
}

.permit-roadmap-body .card-eyebrow,
.permit-roadmap-body h2,
.permit-roadmap-body p {
  margin: 0;
}

.permit-roadmap-body h2 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  line-height: 0.94;
}

.permit-step-note {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--black);
}

.permit-step-button {
  width: min(100%, 360px);
  margin-top: 6px;
}

.quiz-copy h2 {
  max-width: 11ch;
  font-size: clamp(2.25rem, 3.8vw, 3.6rem);
}

.quiz-copy p {
  max-width: 34rem;
}

.quiz-copy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.quiz-copy-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.alert-card {
  margin: 24px 0;
  background: #fff4c3;
  border-color: #f0d58f;
  color: #6a5511;
}

.success-message {
  margin: 0;
  color: #7be0ae;
  font-weight: 700;
}

.quiz-result {
  gap: 18px;
}

.quiz-result-kicker {
  margin: 0;
}

.quiz-result-heading {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.96;
  color: var(--black);
}

.quiz-result-copy {
  margin: 0;
  color: var(--grey-text);
  line-height: 1.72;
}


.verification-card {
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.verification-card span {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.verification-card-approved {
  border-color: rgba(255, 209, 0, 0.28);
  background: rgba(255, 209, 0, 0.06);
}

.verification-card-muted {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.verification-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.72;
}

.verification-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.62;
}

.verification-section {
  display: grid;
  gap: 6px;
  margin-top: 0;
}

.verification-section-title {
  margin: 0;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.verification-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.verification-check {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 209, 0, 0.22);
  border-radius: 999px;
  background: rgba(255, 209, 0, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verification-check-optional {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.64);
}

.verification-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.verification-card input[readonly] {
  color: rgba(255, 255, 255, 0.78);
  background: #161616;
  cursor: default;
}

.ocr-results-list {
  display: grid;
  gap: 14px;
}

.ocr-result-item {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 209, 0, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.ocr-result-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.ocr-result-title {
  margin: 0;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.ocr-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ocr-result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ocr-result-badge.is-strong {
  background: rgba(255, 209, 0, 0.14);
  color: var(--accent);
}

.ocr-result-badge.is-warning {
  background: rgba(255, 244, 195, 0.12);
  color: #ffe49d;
}

.ocr-result-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.ocr-result-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-upload-card {
  display: block;
  padding: 34px;
  border: 1px solid var(--grey-mid);
  border-radius: 0;
  background: var(--white);
}

body[data-page="step4"] .mobile-upload-card {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.mobile-upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 34px;
  align-items: start;
}

body[data-page="step4"] .mobile-upload-panel {
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 18px;
}

.mobile-upload-qr-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--grey-mid);
  background: #fffdf5;
}

body[data-page="step4"] .mobile-upload-qr-shell {
  min-height: 168px;
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.mobile-upload-qr {
  width: min(100%, 220px);
  height: auto;
  display: block;
}

body[data-page="step4"] .mobile-upload-qr {
  width: min(100%, 148px);
}

.mobile-upload-copy {
  display: grid;
  gap: 16px;
}

body[data-page="step4"] .mobile-upload-copy {
  gap: 12px;
}

.mobile-upload-copy .card-eyebrow {
  margin: 0;
  color: var(--accent);
}

.mobile-upload-title {
  margin: 0;
  max-width: 11ch;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.3rem, 3.2vw, 3.6rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--black);
}

body[data-page="step4"] .mobile-upload-title {
  max-width: 9ch;
  font-size: clamp(1.9rem, 2.4vw, 2.9rem);
  line-height: 0.92;
  color: var(--white);
}

.mobile-upload-text {
  max-width: 44rem;
  margin: 0;
  color: var(--grey-text);
  line-height: 1.72;
}

body[data-page="step4"] .mobile-upload-text {
  font-size: 0.96rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.68);
}

.legal-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.legal-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--grey-mid);
  border-radius: 2px;
  background: var(--white);
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-nav-link.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.legal-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-card {
  padding: 32px;
}

.legal-card h2 {
  margin: 0 0 20px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.legal-card h3 {
  margin: 28px 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
}

.legal-card p,
.legal-card li {
  color: var(--grey-text);
  line-height: 1.72;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.legal-list li + li {
  margin-top: 8px;
}

.legal-fact-grid,
.legal-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.legal-fact,
.legal-provider {
  padding: 22px 24px;
  border: 1px solid var(--grey-mid);
  border-radius: 2px;
  background: #fafafa;
}

.legal-fact-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-text);
}

.legal-fact-value,
.legal-provider p {
  color: var(--grey-text);
  line-height: 1.72;
}

.legal-provider h3 {
  margin-top: 0;
}

.legal-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: #fff8d9;
  color: var(--black);
  line-height: 1.65;
}

.mobile-upload-status-line {
  margin: 2px 0 0;
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.6;
}

body[data-page="step4"] .mobile-upload-status-line {
  color: rgba(255, 255, 255, 0.82);
}

.mobile-upload-link {
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.7;
  word-break: break-all;
}

body[data-page="step4"] .mobile-upload-link {
  color: rgba(255, 255, 255, 0.7);
}

.mobile-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body[data-page="step4"] .mobile-upload-actions {
  gap: 10px;
}

.mobile-upload-card .button,
#mobile-upload-empty-state .button {
  width: auto;
}

.mobile-upload-open-button {
  display: none;
}

.mobile-upload-progress {
  display: grid;
  gap: 10px;
}

.mobile-upload-progress-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--grey-mid);
  border-radius: 2px;
  background: #fafafa;
}

body[data-page="step4"] .mobile-upload-progress-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-upload-progress-item.is-ready {
  border-color: #e7d9a1;
  background: #fff9df;
}

body[data-page="step4"] .mobile-upload-progress-item.is-ready {
  border-color: rgba(255, 209, 0, 0.28);
  background: rgba(255, 209, 0, 0.08);
}

.mobile-upload-progress-title {
  margin: 0;
  color: var(--black);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page="step4"] .mobile-upload-progress-title {
  color: var(--white);
}

.mobile-upload-progress-copy {
  margin: 0;
  color: var(--grey-text);
  line-height: 1.6;
}

body[data-page="step4"] .mobile-upload-progress-copy {
  color: rgba(255, 255, 255, 0.6);
}

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

.admin-detail-stack {
  display: grid;
  gap: 22px;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.admin-password-form {
  display: grid;
  gap: 16px;
}

.admin-refresh-button,
.admin-document-button {
  min-width: 0;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-metric-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(255, 209, 0, 0.18);
  background: rgba(255, 209, 0, 0.08);
}

.admin-metric-value {
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 0.92;
}

.admin-metric-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.admin-empty {
  margin-top: 2px;
}

.admin-list-button {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1b1b1b;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.admin-list-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 209, 0, 0.24);
}

.admin-list-button.is-active {
  border-color: rgba(255, 209, 0, 0.28);
  background: rgba(255, 209, 0, 0.08);
}

.admin-list-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.admin-stage-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 209, 0, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-list-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  line-height: 1.6;
}

.admin-detail-hero {
  margin-top: 0;
}

.admin-detail-title {
  margin: 6px 0 10px;
  font-size: clamp(2.3rem, 3vw, 3.2rem);
  line-height: 0.96;
}

.admin-info-card,
.admin-documents-card,
.admin-ocr-card,
.admin-code-card {
  margin: 0;
}

.admin-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
}

.admin-info-row {
  display: grid;
  gap: 4px;
}

.admin-info-row dt {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-info-row dd {
  margin: 0;
  color: var(--white);
  line-height: 1.65;
}

.admin-document-list,
.admin-ocr-list {
  display: grid;
  gap: 12px;
}

.admin-document-item,
.admin-ocr-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.admin-document-copy {
  display: grid;
  gap: 6px;
}

.admin-code-block {
  margin: 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121212;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.booking-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

body[data-page="step3"] .section:first-of-type {
  padding: 72px 0 42px;
}

body[data-page="step3"] .section-soft {
  padding: 0 0 72px;
}

body[data-page="step3"] .section-step3-intro {
  padding: 78px 0 36px;
}

body[data-page="step3"] .step3-intro-shell {
  width: min(1140px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
}

body[data-page="step3"] .page-title {
  max-width: 18ch;
  font-size: clamp(2.6rem, 4.6vw, 4.8rem);
}

body[data-page="step3"] .summary-box-compact {
  margin-top: 22px;
  max-width: min(760px, 100%);
  padding: 14px 24px;
  font-size: 0.96rem;
  text-align: center;
  justify-content: center;
}

body[data-page="step3"] .step3-intro-text {
  max-width: 46rem;
  margin: 24px 0 0;
  color: var(--grey-text);
  font-size: 1.02rem;
  line-height: 1.8;
  text-align: center;
}

body[data-page="step3"] .step3-intro-meta {
  margin-top: 22px;
  justify-content: center;
}

body[data-page="step3"] .step3-quiz-section {
  padding: 0 0 56px;
  background: linear-gradient(180deg, var(--white) 0 44px, var(--grey-light) 44px 100%);
}

body[data-page="step3"] .step3-quiz-shell {
  width: min(980px, 100%);
}

body[data-page="step3"] .step3-quiz-form {
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-page="step3"] .step3-quiz-form .quiz-progress {
  margin: 0;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(13, 13, 13, 0.05);
}

body[data-page="step3"] .step3-quiz-form .quiz-progress-step {
  color: var(--grey-text);
}

body[data-page="step3"] .step3-quiz-form .quiz-progress-bar {
  background: rgba(13, 13, 13, 0.08);
}

body[data-page="step3"] .step3-quiz-form .quiz-question {
  position: relative;
  padding: 24px;
  background: var(--white);
  border: 0;
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px var(--grey-mid),
    0 14px 36px rgba(13, 13, 13, 0.06);
}

body[data-page="step3"] .step3-quiz-form .quiz-question.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(255, 209, 0, 0.9),
    0 18px 44px rgba(13, 13, 13, 0.08);
}

body[data-page="step3"] .step3-quiz-form .quiz-question legend {
  margin: 0;
  padding: 0;
}

body[data-page="step3"] .step3-quiz-form .quiz-question-title {
  margin: 0 0 16px;
  color: var(--black);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
}

body[data-page="step3"] .step3-quiz-form .quiz-options {
  gap: 14px;
}

body[data-page="step3"] .step3-quiz-form .quiz-choice {
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  color: var(--black);
  box-shadow: none;
}

body[data-page="step3"] .step3-quiz-form .quiz-choice::before {
  border-color: rgba(13, 13, 13, 0.22);
}

body[data-page="step3"] .step3-quiz-form .quiz-choice:hover {
  background: rgba(255, 209, 0, 0.06);
  border-color: rgba(255, 209, 0, 0.88);
  transform: none;
}

body[data-page="step3"] .step3-quiz-form .quiz-choice:has(input[type="radio"]:checked) {
  border-color: rgba(255, 209, 0, 0.98);
  background: rgba(255, 209, 0, 0.1);
  color: var(--black);
}

body[data-page="step3"] .step3-quiz-form .quiz-result {
  padding: 28px;
}

body[data-page="step3"] .step3-quiz-form .quiz-result-kicker {
  margin-bottom: 0;
}

body[data-page="step3"] .step3-quiz-form .quiz-result-heading {
  max-width: 12ch;
}

body[data-page="step3"] .step3-quiz-form .quiz-result-copy {
  max-width: 42rem;
}

body[data-page="step3"] .step3-quiz-form .quiz-result .button {
  width: auto;
  min-width: 260px;
  justify-self: start;
}


@media (max-width: 1080px) {
  .step-hero-grid,
  .story-grid,
  .form-split,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .step-hero-grid {
    min-height: auto;
  }

  .step-hero-copy {
    padding: 64px 0 24px;
  }

  .step-hero-media {
    min-height: 520px;
  }

  body[data-page="step4"] .step4-overview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step4-copy {
    position: static;
  }

  body[data-page="step4"] .mobile-upload-panel {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 100%);
  }

  .site-header {
    height: 64px;
  }

  .topbar {
    min-height: 64px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 138px;
  }

  .step-label {
    font-size: 0.6rem;
    letter-spacing: 0.13em;
    white-space: nowrap;
  }

  body[data-page="permit-guide-berlin"] .site-header {
    height: auto;
  }

  body[data-page="permit-guide-berlin"] .page-main {
    padding-top: 112px;
  }

  body[data-page="permit-guide-berlin"] .topbar {
    min-height: auto;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 10px 0;
  }

  body[data-page="permit-guide-berlin"] .topbar > .step-label {
    display: none;
  }

  body[data-page="permit-guide-berlin"] .brand-logo {
    width: 120px;
  }

  body[data-page="permit-guide-berlin"] .topbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  body[data-page="permit-guide-berlin"] .topbar-actions .step-label {
    display: none;
  }

  body[data-page="permit-guide-berlin"] .header-inline-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  body[data-page="permit-guide-berlin"] .header-inline-cta-full {
    display: none;
  }

  body[data-page="permit-guide-berlin"] .header-inline-cta-short {
    display: inline;
  }

  .page-main {
    padding-top: 64px;
  }

  .section,
  .section-dark,
  .step-intro {
    padding: 72px 0;
  }

  .section-soft {
    padding: 0 0 72px;
  }

  body[data-page="step3"] .section-step3-intro {
    padding: 56px 0 28px;
  }

  body[data-page="step3"] .step3-intro-text {
    font-size: 0.98rem;
  }

  .permit-roadmap-step {
    padding: 24px;
  }

  .permit-roadmap-body h2 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .permit-step-button {
    width: 100%;
  }

  .step-hero-title,
  .page-title,
  .form-copy h2 {
    line-height: 0.98;
  }

  .step-hero-media {
    min-height: 420px;
  }

  .flow-form {
    grid-template-columns: 1fr;
  }

  body[data-page="step3"] .step3-quiz-form {
    gap: 16px;
  }

  body[data-page="step3"] .step3-quiz-form .quiz-progress,
  body[data-page="step3"] .step3-quiz-form .quiz-question {
    padding: 20px;
  }

  body[data-page="step3"] .step3-quiz-form .quiz-result {
    padding: 24px;
  }

  body[data-page="step3"] .step3-quiz-form .quiz-result .button {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }


  .booking-fields {
    grid-template-columns: 1fr;
  }

  .verification-subgrid {
    grid-template-columns: 1fr;
  }

  .admin-metrics,
  .admin-info-grid {
    grid-template-columns: 1fr;
  }

  .admin-section-head,
  .admin-list-top,
  .admin-document-item,
  .admin-ocr-item {
    display: grid;
  }

  .step4-overview-list {
    grid-template-columns: 1fr;
  }

  .mobile-upload-panel {
    grid-template-columns: 1fr;
  }

  .mobile-upload-qr-shell {
    min-height: 0;
  }

  .legal-fact-grid,
  .legal-provider-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .button-small {
    width: 100%;
  }

  body[data-page="step4"] .section:first-of-type,
  body[data-page="mobile-upload"] .section:first-of-type {
    padding: 28px 0 14px;
  }

  body[data-page="step4"] .section-soft,
  body[data-page="mobile-upload"] .section-soft {
    padding: 0 0 44px;
  }

  body[data-page="step4"] .section-dark {
    padding: 12px 0 36px;
  }

  body[data-page="step4"] .page-title,
  body[data-page="mobile-upload"] .page-title {
    max-width: none;
    font-size: clamp(1.55rem, 7.9vw, 2.2rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
  }

  body[data-page="step4"] .summary-box,
  body[data-page="mobile-upload"] .summary-box {
    margin-top: 12px;
    padding: 14px;
    font-size: 0.86rem;
    line-height: 1.5;
  }

  body[data-page="step4"] .flow-form,
  body[data-page="mobile-upload"] .flow-form {
    gap: 14px;
  }

  body[data-page="step4"] .step4-copy {
    display: none;
  }

  body[data-page="step4"] .step4-layout {
    display: block;
  }

  body[data-page="step4"] .step4-form-wrap {
    width: 100%;
  }

  .step4-copy-list {
    gap: 12px;
    margin-top: 24px;
  }

  body[data-page="step4"] .step4-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  body[data-page="step4"] .verification-card,
  body[data-page="mobile-upload"] .verification-card {
    padding: 16px;
    border-radius: 2px;
  }

  body[data-page="step4"] .verification-section,
  body[data-page="mobile-upload"] .verification-section {
    gap: 6px;
    margin-top: 0;
  }

  body[data-page="step4"] .verification-section-title,
  body[data-page="mobile-upload"] .verification-section-title {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  body[data-page="step4"] .verification-note,
  body[data-page="mobile-upload"] .verification-note {
    font-size: 0.84rem;
    line-height: 1.52;
  }

  body[data-page="step4"] .verification-subgrid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body[data-page="step4"] .flow-form .field {
    gap: 6px;
  }

  body[data-page="step4"] .flow-form .field input:not([type="radio"]),
  body[data-page="step4"] .flow-form .field select,
  body[data-page="step4"] .flow-form .field textarea {
    min-height: 50px;
    padding: 13px 14px;
    font-size: 0.9rem;
  }

  body[data-page="step4"] .step4-overview-card {
    gap: 14px;
  }

  body[data-page="step4"] .step4-overview-head {
    gap: 8px;
  }

  body[data-page="step4"] .step4-overview-title {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
    line-height: 1;
  }

  body[data-page="step4"] .step4-overview-text {
    display: none;
  }

  body[data-page="step4"] .step4-overview-item {
    min-height: 48px;
    justify-content: flex-start;
    padding: 0 14px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  body[data-page="step4"] .step4-overview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-page="step4"] .step4-card-documents {
    order: 1;
  }

  body[data-page="step4"] .step4-card-personal {
    order: 2;
  }

  body[data-page="step4"] .step4-card-address {
    order: 3;
  }

  body[data-page="step4"] .step4-card-payroll {
    order: 4;
  }

  body[data-page="step4"] .step4-card-ocr {
    order: 5;
  }

  body[data-page="step4"] .step4-card-ocr-results {
    order: 6;
  }

  body[data-page="step4"] .step4-card-submit {
    order: 7;
  }

  body[data-page="step4"] .mobile-upload-card {
    padding: 0;
    border: 0;
    background: transparent;
  }

  body[data-page="step4"] .mobile-upload-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-page="step4"] .mobile-upload-copy {
    gap: 8px;
  }

  body[data-page="step4"] .mobile-upload-title {
    max-width: 12ch;
    font-size: clamp(1.35rem, 7vw, 1.85rem);
    line-height: 0.96;
  }

  body[data-page="step4"] .mobile-upload-text {
    max-width: none;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  body[data-page="step4"] .mobile-upload-status-line {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  body[data-page="step4"] .mobile-upload-link {
    display: none;
  }

  body[data-page="step4"] .mobile-upload-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-page="step4"] .mobile-upload-card .button {
    width: 100%;
  }

  body[data-page="step4"] .mobile-upload-open-button {
    display: inline-flex;
  }

  body[data-page="step4"] #mobile-upload-copy-button {
    display: none;
  }

  body[data-page="step4"] .mobile-upload-qr-shell {
    display: none;
  }

  body[data-page="step4"] .mobile-upload-progress-item,
  body[data-page="mobile-upload"] .mobile-upload-progress-item {
    padding: 10px 12px;
  }

  body[data-page="step4"] .mobile-upload-progress-title,
  body[data-page="mobile-upload"] .mobile-upload-progress-title {
    font-size: 0.76rem;
  }

  body[data-page="step4"] .mobile-upload-progress-copy,
  body[data-page="mobile-upload"] .mobile-upload-progress-copy {
    font-size: 0.8rem;
    line-height: 1.42;
  }

  body[data-page="mobile-upload"] .verification-text {
    font-size: 0.92rem;
    line-height: 1.56;
  }

  body[data-page="mobile-upload"] .verification-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="mobile-upload"] .verification-check {
    min-height: 34px;
    justify-content: center;
    padding: 0 10px;
    font-size: 0.68rem;
    letter-spacing: 0.07em;
  }

  body[data-page="mobile-upload"] #mobile-upload-form > .verification-card {
    gap: 14px;
  }

  body[data-page="mobile-upload"] #mobile-upload-current-card {
    padding: 18px;
  }

  body[data-page="mobile-upload"] #mobile-upload-form-status {
    font-size: 0.88rem;
    line-height: 1.58;
  }
}

/* ─── Site footer (shared across applicant pages) ──────────────────── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--grey-mid);
  min-height: 72px;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
}

.site-footer .footer-logo {
  color: var(--black);
  display: flex;
  align-items: center;
  min-height: 40px;
}

.site-footer .footer-logo-svg {
  width: 184px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.site-footer .footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  min-height: 40px;
}

.site-footer .footer-links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  transition: color 0.2s;
}

.site-footer .footer-links a:hover {
  color: var(--accent-dark, var(--black));
}

.site-footer .footer-copy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
  font-size: 0.72rem;
  color: var(--black);
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .site-footer {
    min-height: 72px;
    padding: 0 24px;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .site-footer {
    min-height: 0;
    padding: 12px 16px;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  /* Logo redundant with header on mobile */
  .site-footer .footer-logo {
    display: none;
  }

  .site-footer .footer-links {
    min-height: 0;
    gap: 14px;
    flex-wrap: wrap;
  }

  .site-footer .footer-copy {
    min-height: 0;
    font-size: 0.62rem;
    text-align: right;
    letter-spacing: 0.04em;
  }
}

/* ─── Schritt 4: Custom appointment picker ──────────────────────────── */
.appt-picker {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  padding: 18px 18px 22px;
  display: grid;
  gap: 18px;
}

.appt-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.appt-month {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.appt-nav {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.appt-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.appt-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.appt-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.appt-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  color: var(--white);
  font-family: "Barlow", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.appt-day:hover:not(.is-disabled) {
  background: rgba(255, 209, 0, 0.10);
  border-color: rgba(255, 209, 0, 0.45);
  transform: translateY(-2px);
}

.appt-day.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.appt-day.is-disabled {
  opacity: 0.32;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}

.appt-day-weekday {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.appt-day.is-active .appt-day-weekday {
  color: rgba(0, 0, 0, 0.55);
}

.appt-day-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.appt-slots-wrap {
  display: grid;
  gap: 10px;
}

.appt-slots-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.appt-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
}

.appt-slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  color: var(--white);
  font-family: "Barlow", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.appt-slot-time {
  font-weight: 700;
  font-size: 1rem;
}

.appt-slot-meta {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.7;
  text-transform: lowercase;
}

.appt-slot:hover {
  background: rgba(255, 209, 0, 0.12);
  border-color: rgba(255, 209, 0, 0.45);
  transform: translateY(-2px);
}

.appt-slot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.appt-confirmation {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 4px;
  background: rgba(255, 209, 0, 0.10);
  border: 1px solid rgba(255, 209, 0, 0.45);
}

.appt-confirmation-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--black);
  font-weight: 800;
  font-size: 1rem;
}

.appt-confirmation-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.appt-confirmation-detail {
  margin-top: 2px;
  font-size: 0.95rem;
  color: var(--white);
}

@media (max-width: 640px) {
  .appt-days { gap: 6px; }
  .appt-day { padding: 8px 4px; }
  .appt-day-num { font-size: 1.2rem; }
  .appt-slots { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
}

/* =============================================================
   Booking-only Schritt 4 layout
   ============================================================= */

.booking-shell {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
}

.booking-form {
  display: grid;
  gap: 24px;
  margin: 0;
}

.booking-form .field-full {
  width: 100%;
}

.booking-form #booking-submit-button {
  width: 100%;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.booking-note {
  margin-top: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.booking-success-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 209, 0, 0.08);
  border: 1px solid rgba(255, 209, 0, 0.4);
  border-radius: 6px;
  padding: 22px 24px;
  color: var(--white);
}

.booking-success-card .appt-confirmation-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #15151b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.booking-success-title {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
}

.booking-success-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

body[data-page="step4"] .section-dark {
  padding: 56px 0 96px;
}

@media (max-width: 720px) {
  .booking-shell {
    width: calc(100% - 32px);
  }
  .booking-success-card {
    flex-direction: column;
    gap: 12px;
  }
}

/* =============================================================
   Mobile-Pass für die Bewerber-Schritte 2 / 3 / 4
   ============================================================= */

@media (max-width: 768px) {
  /* Step Hero / Split layout — beide spalten stacken bereits bei 1024px,
     hier zusätzlich Padding und Typo straffen. */
  .step-hero-split {
    padding: 32px 0 48px;
    min-height: auto;
  }
  .step-hero-split-grid {
    gap: 28px;
  }
  .step-hero-split .step-hero-title {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
    line-height: 1.08;
  }
  .step-hero-split .step-hero-text {
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .step-hero-form-card {
    padding: 22px 18px;
    border-radius: 6px;
  }
  body[data-page="step2"] .step-hero-form-card,
  body[data-page="step3"] .step-hero-form-card {
    padding: 22px 18px;
  }

  /* Wizard – kompakter auf Mobile */
  .flow-form.wizard-form {
    gap: 16px;
  }
  .wizard-progress-text {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }
  .wizard-slides {
    min-height: 0;
  }
  .wizard-slide {
    gap: 12px;
  }
  .wizard-question {
    font-size: clamp(1.25rem, 5vw, 1.6rem);
    line-height: 1.12;
  }
  .wizard-help {
    font-size: 0.82rem;
    line-height: 1.4;
  }
  .wizard-actions {
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
  }
  .wizard-actions .button {
    flex: 1 1 auto;
    width: auto;
    padding: 14px 16px;
    font-size: 0.9rem;
    text-align: center;
  }
  .wizard-prev {
    flex: 0 0 auto;
    padding: 10px 8px;
    font-size: 0.85rem;
  }
  .wizard-radio-group {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .wizard-radio-group .option-choice {
    min-height: 60px;
    font-size: 1rem;
    padding: 12px 14px;
  }

  /* Birthdate-Picker Mobile – richtig kompakt */
  .bd-trigger {
    min-height: 50px;
    padding: 12px 14px;
    font-size: 0.92rem;
  }
  .bd-popover {
    padding: 12px 10px 10px;
    border-radius: 8px;
    margin-top: 8px;
  }
  .bd-popover-header {
    gap: 4px;
    margin-bottom: 8px;
  }
  .bd-nav {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  .bd-popover-selectors {
    gap: 4px;
  }
  .bd-popover-selectors select {
    padding: 3px 14px 3px 6px !important;
    font-size: 0.88rem !important;
    background-size: 7px 4px !important;
    background-position: right 5px center !important;
  }
  .bd-weekdays {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    padding: 0;
    gap: 1px;
  }
  .bd-grid {
    gap: 1px;
  }
  .bd-cell {
    min-height: 0;
    height: 32px;
    aspect-ratio: auto;
    font-size: 0.82rem;
    border-radius: 6px;
  }
  .bd-cell-empty {
    height: 32px;
  }
  .bd-footnote {
    display: none;
  }

  /* Schritt 4 – same edge-to-edge feel as Schritt 2/3 on mobile */
  body[data-page="step4"] .step-hero-form-card {
    background: transparent;
    border: 0;
    padding: 0;
  }
  body[data-page="step4"] #booking-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  body[data-page="step4"] .step-hero-copy .step-hero-title {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
    line-height: 1.08;
  }
  body[data-page="step4"] .step-hero-text {
    font-size: 0.92rem;
  }
  .booking-shell {
    width: calc(100% - 24px);
  }
  .booking-form {
    gap: 18px;
  }
  .booking-note {
    font-size: 0.78rem;
  }

  /* Appointment-Picker auf Schritt 4 */
  .appt-picker {
    padding: 14px 12px 12px;
    border-radius: 10px;
  }
  .appt-picker-header {
    gap: 6px;
  }
  .appt-month {
    font-size: 0.95rem;
  }
  .appt-nav {
    width: 32px;
    height: 32px;
  }
  .appt-days {
    gap: 6px;
  }
  .appt-day {
    padding: 8px 4px;
    border-radius: 8px;
  }
  .appt-day-weekday {
    font-size: 0.6rem;
  }
  .appt-day-num {
    font-size: 1.1rem;
  }
  .appt-slots-label {
    font-size: 0.78rem;
  }
  .appt-slots {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
  }
  .appt-slot {
    padding: 8px 4px;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .step-hero-split {
    padding: 20px 0 32px;
  }
  .step-hero-form-card {
    padding: 16px 12px;
  }
  /* Schritt 2 + 3 stay edge-to-edge on phone (no card-in-card) */
  body[data-page="step2"] .step-hero-form-card,
  body[data-page="step3"] .step-hero-form-card {
    padding: 0;
    background: transparent;
    border: 0;
  }

  .wizard-question {
    font-size: 1.2rem;
    line-height: 1.14;
  }
  .wizard-help {
    font-size: 0.78rem;
    margin-bottom: 0;
  }
  .wizard-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .wizard-actions .button {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
  }
  .wizard-actions .wizard-next {
    margin-left: 0;
  }
  .wizard-prev {
    align-self: flex-start;
    padding: 8px 0;
  }
  .wizard-radio-group .option-choice {
    min-height: 56px;
    font-size: 0.95rem;
  }

  .bd-popover {
    padding: 10px 8px 8px;
  }
  .bd-popover-selectors select {
    font-size: 0.82rem !important;
    padding: 3px 13px 3px 5px !important;
  }
  .bd-weekdays {
    font-size: 0.5rem;
  }
  .bd-cell {
    height: 28px;
    font-size: 0.76rem;
  }
  .bd-cell-empty {
    height: 28px;
  }
  .bd-nav {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  /* Schritt 4 booking */
  .booking-form #booking-submit-button {
    font-size: 0.95rem;
    padding: 14px 16px;
  }
  .appt-slots {
    grid-template-columns: repeat(3, 1fr);
  }
}
