/* ─────────────────────────────────────────────
   auftrag.css — Fertigungsauftrag erstellen
   Design: Clean, minimal, premium feel
   ───────────────────────────────────────────── */

/* ─── INTRO SECTION ─── */
.ai-section {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: clamp(48px, 8vh, 80px) 24px;
}

.ai-wrap {
    max-width: 560px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.ai-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.65;
    margin: 0 0 20px;
}

.ai-headline {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.05em;
    line-height: 1.04;
    margin: 0 0 20px;
}

.ai-sub {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 400;
    margin: 0 0 36px;
}

.ai-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 100px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

.ai-cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ai-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.ai-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 32px;
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
}

.ai-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.ai-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.03em;
    line-height: 1;
}

.ai-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.ai-stat-div {
    width: 1px;
    height: 32px;
    background: var(--border);
    flex-shrink: 0;
}

/* ─── STEP 0: INTRO CARD ─── */
#step0 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 40px;
    box-sizing: border-box;
    height: 100%;
}

.step0-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 520px;
    width: 100%;
    gap: 0;
}

.step0-logo-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 28px rgba(37,88,121,0.28);
}

.step0-logo-mark img {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(1);
}

.step0-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.7;
    margin: 0 0 14px;
}

.step0-headline {
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.05em;
    line-height: 1.06;
    margin: 0 0 16px;
}

.step0-sub {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 400;
    margin: 0 0 32px;
    max-width: 400px;
}

.step0-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 28px;
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
}

.step0-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.step0-stat-num {
    font-size: 19px;
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.03em;
    line-height: 1;
}

.step0-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.step0-stat-div {
    width: 1px;
    height: 26px;
    background: var(--border);
    flex-shrink: 0;
}



/* ─── PAGE TITLE ─── */
.auftrag-page-title {
    text-align: center;
    margin-bottom: clamp(14px, 2vh, 22px);
    padding: 0;
}

.auftrag-pt-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 8px;
}

.auftrag-pt-h1 {
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.auftrag-pt-sub {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 400;
    line-height: 1.5;
    max-width: 420px;
    margin: 0 auto;
}

/* ─── FORM SECTION ─── */
.auftrag-section {
    background: var(--bg-light);
    min-height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(12px, 2vh, 24px) 20px;
}

.auftrag-wrap {
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
}

/* ─── FORM CARD ─── */
.auftrag-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.05), 0 28px 64px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

/* ─── STEP INDICATOR ─── */
.step-indicator {
    display: flex;
    align-items: center;
    padding: 14px 32px 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(245,245,247,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.si-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.si-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #d1d1d6;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #aeaeb2;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.si-num { transition: opacity 0.3s; }
.si-check {
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

.si-label {
    font-size: 11px;
    font-weight: 500;
    color: #aeaeb2;
    white-space: nowrap;
    transition: color 0.3s;
}

.si-line {
    flex: 1;
    height: 2px;
    background: #e5e5ea;
    margin: 0 12px;
    margin-top: -20px;
    border-radius: 1px;
    position: relative;
    overflow: hidden;
    transition: background 0.4s;
}

.si-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: var(--primary);
    border-radius: 1px;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.si-line.si-done::after { width: 100%; }

.si-item.si-active .si-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(37,88,121,0.3);
}

.si-item.si-active .si-label {
    color: var(--primary);
    font-weight: 600;
}

.si-item.si-done .si-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.si-item.si-done .si-num { opacity: 0; }
.si-item.si-done .si-check { opacity: 1; }
.si-item.si-done .si-label { color: var(--primary); font-weight: 600; }

/* ─── STEPS VIEWPORT ─── */
.steps-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.steps-slider {
    display: flex;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.form-step {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    padding: clamp(20px, 3vh, 32px) 32px 0;
    box-sizing: border-box;
}

.form-step > .step-section:last-child,
.form-step > .step-two-grid > *:last-child,
.form-step > .menge-grid,
.form-step > div:last-child {
    margin-bottom: 0;
}

#step1 {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.5vh, 28px);
    padding-bottom: clamp(20px, 3vh, 32px);
}

#step1 .step-section {
    margin-bottom: 0;
}

/* ─── SECTION LABELS ─── */
.s-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    margin-bottom: 2px;
}

.s-label-intro {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.s-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 400;
}

.req {
    color: #ff3b30;
    font-weight: 700;
}

.step-section {
    margin-bottom: clamp(24px, 3.5vh, 36px);
}

.step-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* ─── PRODUKT + AGGREGATZUSTAND (zwei Spalten) ─── */
.produkt-aggregat-cols {
    display: flex;
    gap: 24px;
    align-items: flex-end;
}

.produkt-col {
    flex: 0 0 62%;
    min-width: 0;
}

.produkt-col .a-input {
    width: 100%;
}

.aggregat-col {
    flex: 1;
    min-width: 0;
}

.aggregat-group {
    display: flex;
    gap: 0;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.aggregat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    color: var(--text-tertiary);
    font-family: var(--font);
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.aggregat-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e5ea;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s ease;
    flex-shrink: 0;
}

.aggregat-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: filter 0.22s ease;
    filter: grayscale(0.2) opacity(0.55);
}

.aggregat-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,30,30,0.88);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.aggregat-btn[data-tooltip]:hover::after {
    opacity: 1;
}

.aggregat-btn:hover .aggregat-circle {
    background: rgba(37,88,121,0.18);
}

.aggregat-btn:hover img {
    filter: grayscale(0) opacity(0.85);
}

.aggregat-btn.aggregat-active .aggregat-circle {
    background: var(--primary);
}

.aggregat-btn.aggregat-active img {
    filter: brightness(0) invert(1);
}

.aggregat-btn.aggregat-active {
    color: var(--primary);
}

/* ─── PROCESS TIMELINE (Fertigungsumfang) ─── */
.process-timeline {
    display: flex;
    align-items: flex-start;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 10px 12px 10px;
    gap: 0;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    position: relative;
}

.process-node {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

.process-line {
    flex: 1;
    height: 2px;
    background: #d1d1d6;
    transition: background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process-line-left  { border-radius: 2px 0 0 2px; }
.process-line-right { border-radius: 0 2px 2px 0; }

.process-step:first-child .process-line-left  { background: transparent !important; }
.process-step:last-child  .process-line-right { background: transparent !important; }

.process-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #d1d1d6;
    background: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.process-num {
    font-size: 11px;
    font-weight: 700;
    color: #aeaeb2;
    transition: color 0.3s;
    line-height: 1;
}

.process-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    padding: 0 6px;
    margin-bottom: 1px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.process-detail {
    font-size: 9px;
    font-weight: 500;
    color: #8e8e93;
    background: rgba(142,142,147,0.1);
    border-radius: 5px;
    padding: 2px 6px;
    margin-bottom: 4px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process-step:has(input:checked) .process-detail {
    color: var(--primary);
    background: rgba(37,88,121,0.08);
}

.process-toggle {
    transform: scale(0.78);
    transform-origin: center top;
    margin-top: 3px;
}

.process-step:has(input:checked) .process-circle {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 3px 12px rgba(37,88,121,0.32);
}

.process-step:has(input:checked) .process-num {
    color: white;
}

.process-step:has(input:checked) .process-name {
    color: var(--primary);
}

.process-step:has(input:checked) .process-line-right {
    background: var(--primary);
}

.process-step:has(input:checked) + .process-step .process-line-left {
    background: var(--primary);
}

/* ─── STEP 2: MENGE FULL-BLEED LAYOUT ─── */
#step2 {
    padding: 0;
}

/* ─── GEBINDEART PANEL ─── */
.gebindeart-panel {
    padding: 20px 28px 16px;
    border-bottom: 1px solid var(--border);
    background: white;
}

.gebindeart-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.gebindeart-panel-header-left {
    flex: 1;
    min-width: 0;
}

.gebindeart-panel-header .s-hint {
    margin-bottom: 0;
}

.ga-view-toggle {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    align-self: center;
    background: rgba(0,0,0,0.07);
    border-radius: 12px;
    padding: 3px;
}

.ga-view-btn {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: #6e6e73;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ga-view-btn svg {
    width: 13px;
    height: 13px;
    pointer-events: none;
}

.ga-view-btn:hover {
    background: rgba(255,255,255,0.7);
    color: #1d1d1f;
}

.ga-view-btn.ga-view-active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.ga-tile-grid {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0 8px;
}

.ga-tile-grid.ga-tiles-visible {
    display: flex;
}

.ga-tile-chip.chip-selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gebindeart-carousel {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ga-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.ga-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(37,88,121,0.15);
}

.ga-arrow:active { transform: scale(0.95); }
.ga-arrow svg { width: 14px; height: 14px; pointer-events: none; }

.ga-track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ga-track {
    display: flex;
    gap: 48px;
    transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.ga-item {
    flex: 0 0 22%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 8px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.38s ease;
    user-select: none;
    transform: scale(0.78);
    opacity: 0.35;
}

.ga-item:hover {
    opacity: 0.6;
}

.ga-item.ga-selected {
    transform: scale(1);
    opacity: 1;
}

.ga-img-wrap {
    width: 100%;
    height: 195px;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.ga-img-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    display: none;
    transform: scale(1.35);
    transform-origin: center center;
}

.ga-img-photo[src]:not([src=""]) {
    display: block;
}

.ga-img-photo[src]:not([src=""]) + .ga-img-placeholder {
    display: none;
}

.ga-img-placeholder {
    width: 92%;
    height: 92%;
    color: var(--primary);
    opacity: 0.35;
    transition: opacity 0.2s;
}

.ga-item.ga-selected .ga-img-placeholder {
    opacity: 0.7;
}

.ga-item.ga-selected .ga-img-wrap {
    background: transparent;
}

.ga-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.01em;
    transition: color 0.2s, font-weight 0.2s;
    white-space: nowrap;
}

.ga-item.ga-selected .ga-label {
    color: var(--primary);
    font-weight: 700;
}

.ga-label-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ga-check {
    position: absolute;
    left: calc(100% + 5px);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.4) rotate(-90deg);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.ga-check svg { width: 10px; height: 10px; }

.ga-item.ga-confirmed .ga-check {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.ga-item.ga-confirmed .ga-img-photo {
    filter: drop-shadow(0 0 4px var(--primary)) drop-shadow(0 0 8px rgba(37,88,121,0.4));
    transition: filter 0.3s ease;
}

/* dot indicator */
.ga-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 6px;
}

.ga-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.25s ease;
    cursor: pointer;
}

.ga-dot.ga-dot-active {
    background: var(--primary);
    width: 16px;
    border-radius: 3px;
}

.menge-fullbleed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 148px;
}

.menge-panel-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 20px 6px;
    border-right: 1px solid var(--border);
}

.menge-panel-left.gbz-panel {
    gap: 5px;
    justify-content: flex-start;
}

.menge-panel-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 20px 6px;
    gap: 5px;
}

.menge-panel-header {
    width: 100%;
    margin-bottom: 4px;
}

.menge-panel-header .s-hint {
    margin-bottom: 0;
}

.menge-panel-right .knob-wrapper {
    flex: 1;
    padding: 6px 0;
    width: 100%;
}

/* ─── UNIT SEGMENTED CONTROL (iOS-style) ─── */
.unit-seg {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(120, 120, 128, 0.12);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
    width: 100%;
}

.unit-seg .unit-pill {
    height: 28px;
    padding: 0;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0;
}

.unit-seg .unit-pill:hover {
    color: var(--primary);
}

.unit-seg .unit-pill.active {
    background: white;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
}

/* ─── GEBINDEGRÖSSE — Apple-style picker ─── */
.gbz-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.gbz-adj-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.gbz-adj-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(37,88,121,0.15);
}

.gbz-adj-btn:active { transform: scale(0.92); }
.gbz-adj-btn svg { width: 14px; height: 14px; pointer-events: none; }

.gbz-center {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.gbz-value-display {
    font-family: var(--font);
    font-size: 23px;
    font-weight: 800;
    color: var(--primary);
    text-align: right;
    min-width: 4ch;
    letter-spacing: -0.05em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.gbz-unit-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 0.06em;
    transition: color 0.25s ease;
    align-self: baseline;
    flex-shrink: 0;
    text-transform: none;
}


.gbz-unit-seg {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(120, 120, 128, 0.12);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
    width: 100%;
    margin-top: auto;
}

.gbz-unit-pill {
    height: 30px;
    padding: 0;
    border-radius: 7px;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gbz-unit-pill:hover { color: var(--primary); }

.gbz-unit-pill.gbz-unit-active {
    background: white;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
}

.gbz-presets-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    width: 100%;
}

.gbz-preset-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    height: 34px;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
}

.gbz-preset-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 88, 121, 0.04);
    transform: scale(1.04);
}

.gbz-preset-chip.gbz-preset-active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37,88,121,0.28);
    transform: scale(1.04);
}

/* ─── GESAMTMENGE LOGARITHMIC SLIDER ─── */
.gm-panel {
    justify-content: flex-start;
}

.gm-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.gm-adj-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.gm-adj-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(37,88,121,0.15);
}

.gm-adj-btn:active { transform: scale(0.92); }
.gm-adj-btn svg { width: 14px; height: 14px; pointer-events: none; }

.gm-center {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.gm-number {
    font-family: var(--font);
    font-size: 23px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.05em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    min-width: 5ch;
    text-align: right;
}

.gm-unit {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 0.06em;
    align-self: baseline;
    flex-shrink: 0;
    text-transform: none;
}

.gm-slider-wrap {
    width: 100%;
    padding: 4px 0;
}

.gm-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    border: none;
    background: linear-gradient(to right, var(--primary) 50%, #e5e5ea 50%);
}

.gm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 2.5px solid var(--primary);
    box-shadow: 0 2px 10px rgba(37,88,121,0.3);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gm-slider::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    box-shadow: 0 4px 18px rgba(37,88,121,0.42);
}

.gm-slider::-webkit-slider-thumb:active {
    transform: scale(1.05);
}

.gm-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 2.5px solid var(--primary);
    box-shadow: 0 2px 10px rgba(37,88,121,0.3);
    cursor: pointer;
}

.gm-scale {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(120, 120, 128, 0.12);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
    width: 100%;
    margin-top: auto;
}

.gm-scale-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0 2px;
    height: 30px;
    border-radius: 7px;
    transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.gm-scale-item.gm-scale-active {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
}

.gm-scale-item.gm-scale-active .gm-scale-val {
    color: var(--primary);
}

.gm-scale-item.gm-scale-active .gm-scale-cat {
    color: var(--text-secondary);
}

.gm-scale-val {
    font-family: var(--font);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.22s ease;
}

.gm-scale-cat {
    font-family: var(--font);
    font-size: 9px;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
    transition: color 0.22s ease;
}

.s-optional {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-tertiary);
    letter-spacing: 0;
}

.mt-section {
    margin-top: 8px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

/* ─── INDUSTRY GRID ─── */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 0;
}

.ind-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.22s ease;
    background: transparent;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2.5px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
}

.ind-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 32px rgba(0,0,0,0.13);
}

.ind-card.ind-selected {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 32px rgba(0,0,0,0.13);
}

.ind-card[data-val="food"].ind-selected    { border-color: var(--primary); }
.ind-card[data-val="pharma"].ind-selected  { border-color: var(--primary); }
.ind-card[data-val="cosmetic"].ind-selected{ border-color: var(--primary); }
.ind-card[data-val="chemie"].ind-selected  { border-color: var(--primary); }

.ind-card {
    pointer-events: auto !important;
}



/* ─── ICON AREA (replaces ind-img-wrap) ─── */
.ind-icon-wrap {
    width: 100%;
    height: clamp(56px, 6.5vh, 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.ind-card[data-val="food"] .ind-icon-wrap {
    background-image: url('https://xkdjylcywxpwdnuupqge.supabase.co/storage/v1/object/public/images/food.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.ind-card[data-val="pharma"] .ind-icon-wrap {
    background-image: url('https://xkdjylcywxpwdnuupqge.supabase.co/storage/v1/object/public/images/pharma.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.ind-card[data-val="cosmetic"] .ind-icon-wrap {
    background-image: url('https://xkdjylcywxpwdnuupqge.supabase.co/storage/v1/object/public/images/cosmetic.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.ind-card[data-val="chemie"] .ind-icon-wrap {
    background-image: url('https://xkdjylcywxpwdnuupqge.supabase.co/storage/v1/object/public/images/chemie.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


.ind-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.4) rotate(-90deg);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.ind-check svg { width: 11px; height: 11px; }

.ind-card.ind-selected .ind-check {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.ind-name {
    display: block;
    text-align: center;
    font-size: clamp(11px, 1.1vw, 13px);
    font-weight: 700;
    color: var(--text-primary);
    padding: clamp(5px, 0.6vh, 7px) 6px clamp(6px, 0.7vh, 8px);
    letter-spacing: 0.005em;
    line-height: 1.2;
    background: transparent;
    width: 100%;
    transition: color 0.2s ease;
}

.ind-card[data-val="food"].ind-selected    .ind-name { color: var(--primary); }
.ind-card[data-val="pharma"].ind-selected  .ind-name { color: var(--primary); }
.ind-card[data-val="cosmetic"].ind-selected .ind-name { color: var(--primary); }
.ind-card[data-val="chemie"].ind-selected  .ind-name { color: var(--primary); }

/* ─── TOGGLE SWITCHES (iOS style) ─── */
.toggle-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: white;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(6px, 0.8vh, 9px) 14px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    gap: 12px;
}

.toggle-row:last-child { border-bottom: none; }

.toggle-row:hover { background: var(--bg-light); }

.toggle-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.toggle-desc {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 400;
    line-height: 1.35;
}

.ios-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
}

.ios-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ios-thumb {
    position: absolute;
    inset: 0;
    background: #e5e5ea;
    border-radius: 14px;
    transition: background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ios-thumb::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ios-toggle input:checked + .ios-thumb {
    background: var(--primary);
}

.ios-toggle input:checked + .ios-thumb::after {
    transform: translateX(20px);
}

/* ─── TEXT INPUTS ─── */
.a-input,
.a-textarea {
    display: block;
    width: 100%;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-light);
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 13px 16px;
    transition: all 0.2s ease;
    outline: none;
    -webkit-user-select: text;
    user-select: text;
    cursor: text;
}

.a-input::placeholder,
.a-textarea::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.a-input:focus,
.a-textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37,88,121,0.1);
}

.a-input.a-error,
.a-textarea.a-error,
.umkreis-location-input.a-error {
    border-color: #ff3b30;
    background: rgba(255,59,48,0.04);
    animation: shake 0.35s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.a-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* ─── KNOB SECTION ─── */
.step-two-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 0;
}

.step-col-left,
.step-col-right {
    display: flex;
    flex-direction: column;
}

.knob-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 4px 0 4px;
    flex: 1;
}

.knob-core {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.knob-el {
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.knob-el:active { cursor: grabbing; }

.knob-svg {
    width: clamp(110px, 12vw, 136px);
    height: clamp(104px, 11.3vw, 128px);
    display: block;
    overflow: visible;
}

.knob-value-text {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 800;
    fill: var(--primary);
    letter-spacing: -0.03em;
}

.knob-label-text {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    fill: var(--text-tertiary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.knob-adj {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.knob-adj:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(37,88,121,0.15);
}

.knob-adj:active { transform: scale(0.95); }

.knob-adj svg { width: 16px; height: 16px; pointer-events: none; }

.unit-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.unit-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.unit-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.unit-pill {
    height: 30px;
    padding: 0 14px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.unit-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.unit-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(37,88,121,0.25);
}

/* ─── STEP 3: FULL-BLEED LAYOUT ─── */
#step3 {
    padding: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

/* ─── UMKREIS PANEL ─── */
.step3-umkreis-panel {
    padding: 12px 28px 14px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.step3-umkreis-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.step3-umkreis-header > div:first-child {
    flex-shrink: 0;
}

.step3-umkreis-header .s-hint {
    margin-bottom: 0;
}

.umkreis-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.umkreis-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 8px 7px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--bg-light);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.umkreis-card:hover {
    border-color: var(--primary);
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 88, 121, 0.1);
}

.umkreis-card.umkreis-active {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 4px 16px rgba(37, 88, 121, 0.25);
    transform: translateY(-1px);
}

.umkreis-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: color 0.2s ease;
}

.umkreis-icon svg {
    width: 22px;
    height: 22px;
}

.umkreis-card.umkreis-active .umkreis-icon {
    color: white;
}

.umkreis-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.umkreis-card.umkreis-active .umkreis-label {
    color: white;
}

.umkreis-sub {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.umkreis-card.umkreis-active .umkreis-sub {
    color: rgba(255, 255, 255, 0.75);
}

.umkreis-location-wrap {
    flex-shrink: 0;
}

.umkreis-location-inner {
    position: relative;
    width: 240px;
}

.umkreis-location-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    color: var(--primary);
    pointer-events: none;
}

.umkreis-location-input {
    width: 100%;
    height: 34px;
    padding: 0 12px 0 30px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--bg-light);
    font-family: var(--font);
    font-size: 12px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    white-space: nowrap;
}

.umkreis-location-input:focus {
    border-color: var(--primary);
    background: white;
}

.step3-fullbleed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    flex-shrink: 0;
    align-items: start;
}

.step3-col-left {
    display: flex;
    flex-direction: column;
    padding: 11px 20px 11px;
    border-right: 1px solid var(--border);
}

.step3-col-right {
    display: flex;
    flex-direction: column;
    padding: 11px 20px 11px;
    min-height: 0;
    overflow: hidden;
}

.step3-col-header {
    margin-bottom: 8px;
    flex-shrink: 0;
}

.step3-col-header .s-hint {
    margin-bottom: 0;
}

.step3-col-left .cal-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* ─── CERT SEARCH ─── */
.cert-search-wrap {
    position: relative;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.cert-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.cert-search-input {
    width: 100%;
    height: 32px;
    padding: 0 10px 0 30px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--bg-light);
    font-family: var(--font);
    font-size: 12px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cert-search-input:focus {
    border-color: var(--primary);
    background: white;
}

/* ─── CERT GRID ─── */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 220px;
    min-height: 0;
    align-content: flex-start;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.cert-grid::-webkit-scrollbar {
    width: 4px;
}

.cert-grid::-webkit-scrollbar-track {
    background: transparent;
}

.cert-grid::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.cert-grid .chip {
    font-size: 11.5px;
    padding: 4px 10px;
    height: auto;
    white-space: nowrap;
}

/* ─── CALENDAR ─── */
.cal-container {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 7px;
    background: white;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cal-month-year {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.cal-nav {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-secondary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.cal-nav:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
    gap: 0;
    padding: 6px;
    flex: 1;
    min-height: 0;
}

.cal-dow {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cal-day {
    height: auto;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.cal-day:hover:not(.cal-past):not(.cal-empty) {
    background: rgba(37,88,121,0.1);
    color: var(--primary);
}

.cal-day.cal-today {
    font-weight: 800;
    color: var(--primary);
}

.cal-day.cal-today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

.cal-day.cal-past {
    color: #c7c7cc;
    cursor: default;
}

.cal-day.cal-empty { cursor: default; }

.cal-day.cal-selected {
    background: var(--primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(37,88,121,0.35);
}

.cal-day.cal-selected.cal-today::after {
    background: rgba(255,255,255,0.7);
}

.cal-selected-info {
    padding: 8px 12px 12px;
    text-align: center;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    min-height: 32px;
    flex-shrink: 0;
}

/* ─── CERTIFICATE CHIPS ─── */
.chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    height: 34px;
    padding: 0 14px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: white;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37,88,121,0.04);
}

.chip.chip-selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(37,88,121,0.25);
    transform: scale(1.04);
}

/* ─── STEP 4: FULL-BLEED LAYOUT ─── */
#step4 {
    padding: 0;
}

.step4-fullbleed {
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 3vh, 32px) 32px clamp(24px, 3.5vh, 40px);
    gap: clamp(20px, 3vh, 32px);
    box-sizing: border-box;
}

.step4-intro {
    padding-bottom: 4px;
}

/* ─── FORM GRID ─── */
.step4-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.step4-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.s4-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.s4-input {
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    background: var(--bg-light);
    font-family: var(--font);
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.s4-input::placeholder {
    color: #c7c7cc;
}

.s4-input:hover {
    border-color: #d1d1d6;
}

.s4-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37,88,121,0.08);
}

.s4-input.a-error {
    border-color: #ff3b30;
    box-shadow: 0 0 0 4px rgba(255,59,48,0.08);
}

/* ─── PREF CARDS ─── */
.pref-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.pref-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    background: white;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: var(--font);
}

.pref-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,88,121,0.1);
}

.pref-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(37,88,121,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s;
}

.pref-card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    pointer-events: none;
}

.pref-card-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.22s;
}

.pref-card.pref-card-active {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 6px 20px rgba(37,88,121,0.28);
    transform: translateY(-2px);
}

.pref-card.pref-card-active .pref-card-icon {
    background: rgba(255,255,255,0.2);
}

.pref-card.pref-card-active .pref-card-icon svg {
    color: white;
}

.pref-card.pref-card-active .pref-card-label {
    color: white;
}

/* ─── BOTTOM BLOCK ─── */
.step4-comment {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 16px;
}

.s4-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg-light);
    font-family: var(--font);
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    resize: vertical;
    min-height: 70px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.s4-textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 88, 121, 0.1);
}

.s4-textarea::placeholder {
    color: var(--text-tertiary);
}

.step4-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.s4-checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.s4-custom-check {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.a-checkbox {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
}

.s4-custom-check::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    border: 1.5px solid #d1d1d6;
    background: var(--bg-light);
    transition: border-color 0.2s, background 0.2s;
}

.a-checkbox:checked ~ .s4-check-icon { opacity: 1; }
.a-checkbox:checked + .s4-custom-check::before,
.s4-custom-check:has(.a-checkbox:checked)::before {
    background: var(--primary);
    border-color: var(--primary);
}

.s4-check-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 0;
}

.s4-custom-check:has(.a-checkbox:checked)::before {
    background: var(--primary);
    border-color: var(--primary);
}

.s4-custom-check:has(.a-checkbox:checked) .s4-check-icon {
    opacity: 1;
}

.a-checkbox.a-error ~ * + .s4-custom-check::before,
.s4-custom-check:has(.a-checkbox.a-error)::before {
    border-color: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255,59,48,0.1);
}

.s4-checkbox-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    -webkit-user-select: none;
    user-select: none;
}

.s4-checkbox-text a {
    color: var(--primary);
    text-decoration: underline;
}

/* ─── TRUST ROW ─── */
.s4-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.s4-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 7px;
    padding: 12px 16px 10px;
    border-radius: 16px;
    background: rgba(37,88,121,0.04);
    border: 1px solid rgba(37,88,121,0.09);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.s4-trust-item:hover {
    background: rgba(37,88,121,0.07);
    border-color: rgba(37,88,121,0.18);
    transform: translateY(-1px);
}

.s4-trust-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37,88,121,0.28);
    flex-shrink: 0;
}

.s4-trust-icon svg {
    width: 16px;
    height: 16px;
    color: white;
}

.s4-trust-title {
    font-size: 12px;
    font-weight: 650;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.s4-trust-desc {
    font-size: 10.5px;
    font-weight: 400;
    color: var(--text-tertiary);
    line-height: 1.3;
    margin-top: -4px;
}

/* ─── NAVIGATION BAR ─── */
.step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(10px, 1.4vh, 16px) 32px clamp(14px, 1.8vh, 20px);
    border-top: 1px solid var(--border);
    background: white;
}

.nav-prev,
.nav-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 20px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
}

.nav-prev {
    background: white;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}

.nav-prev svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.nav-prev:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-next {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(37,88,121,0.3);
}

.nav-next svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.nav-next:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,88,121,0.4);
}

.nav-next:active { transform: translateY(0); }

.nav-prev[disabled],
.nav-prev:disabled {
    opacity: 0;
    pointer-events: none;
}

/* ─── STEP DOTS ─── */
.step-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d1d6;
    transition: all 0.3s ease;
}

.dot.dot-active {
    background: var(--primary);
    width: 20px;
    border-radius: 3px;
}

/* ─── SUCCESS STEP 5 ─── */
#step5 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 40px;
    box-sizing: border-box;
    height: 100%;
}

.success5-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 520px;
    width: 100%;
    flex: 1;
}

.success5-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
}

.success5-icon svg {
    width: 72px;
    height: 72px;
}

.success5-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.7;
    margin: 0 0 12px;
}

.success5-headline {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.05em;
    line-height: 1.06;
    margin: 0 0 28px;
}

.success5-stats {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    margin-bottom: 18px;
}

.success5-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.success5-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.success5-stat-icon svg {
    width: 15px;
    height: 15px;
}

.success5-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: center;
}

.success5-stat-div {
    width: 1px;
    height: 48px;
    background: var(--border);
    flex-shrink: 0;
    align-self: center;
}

.success5-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin: 0;
}

.success5-notice svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.check-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
}

.check-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
}

#step5.step-visible .check-circle {
    animation: drawCircle 0.5s ease 0.1s forwards;
}

#step5.step-visible .check-path {
    animation: drawCheck 0.4s ease 0.5s forwards;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}



/* ─── ERROR MESSAGE ─── */
.field-error {
    font-size: 12px;
    color: #ff3b30;
    font-weight: 500;
    margin-top: 4px;
    display: none;
}

.field-error.visible { display: block; }

/* ─── LOADING STATE ─── */
.nav-next.loading {
    pointer-events: none;
    opacity: 0.7;
}

.nav-next.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── RESPONSIVE: TABLET ─── */
@media (max-width: 860px) {
    .form-step {
        padding: 20px 24px 8px;
    }

    .step-indicator {
        padding: 12px 24px 10px;
    }

    .si-label { display: none; }

    .step-nav {
        padding: 12px 24px 18px;
    }

    .step-two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .step-bottom-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-two-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .industry-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .ind-icon-wrap {
        height: 64px;
    }

    .knob-wrapper {
        padding: 8px 0 8px;
    }
}

/* ─── RESPONSIVE: MENGE FULLBLEED ─── */
@media (max-width: 720px) {
    .menge-fullbleed {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .menge-panel-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 24px 24px 20px;
    }

    .menge-panel-right {
        padding: 20px 24px 24px;
    }

    .gebinde-grid-full {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ─── RESPONSIVE: PROCESS TIMELINE TABLET ─── */
@media (max-width: 640px) {
    .process-timeline {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 10px 12px;
    }

    .process-step {
        flex: 0 0 calc(33.333% - 8px);
    }

    .process-line { display: none; }

    .process-node { justify-content: center; }

    .process-name { font-size: 11px; white-space: normal; }
}

/* ─── RESPONSIVE: MOBILE ─── */
@media (max-width: 600px) {
    .auftrag-hero {
        padding: 60px 20px 52px;
    }

    .auftrag-section {
        padding: 32px 16px 60px;
    }

    .form-step {
        padding: 28px 20px 8px;
    }

    .step-indicator {
        padding: 20px 20px 16px;
        overflow-x: auto;
    }

    .si-circle {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .step-nav {
        padding: 16px 20px 24px;
    }

    .nav-prev,
    .nav-next {
        height: 42px;
        padding: 0 18px;
        font-size: 14px;
    }

    .produkt-aggregat-cols {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .produkt-col {
        flex: none;
        width: 100%;
    }

    .aggregat-col {
        flex: none;
        width: 100%;
    }

    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ind-icon-wrap {
        height: 72px;
    }

    .step-two-col {
        grid-template-columns: 1fr;
    }

    .toggle-row {
        padding: 12px 14px;
    }

    .knob-svg {
        width: 160px;
        height: 150px;
    }

    .chips-wrap { gap: 6px; }
    .chip { height: 32px; font-size: 12px; padding: 0 12px; }

    .step4-fullbleed { padding: clamp(20px, 3vh, 28px) 20px clamp(24px, 3vh, 32px); gap: 20px; }
    .step4-form-grid { grid-template-columns: 1fr; gap: 12px; }
    .s4-trust-row { grid-template-columns: 1fr; gap: 8px; }
    .s4-trust-item { flex-direction: row; text-align: left; padding: 14px 16px; gap: 14px; }
    .s4-trust-icon { width: 38px; height: 38px; flex-shrink: 0; }
    .s4-trust-icon svg { width: 18px; height: 18px; }

    .pref-group { gap: 8px; }
    .pref-btn { height: 40px; padding: 0 16px; font-size: 13px; }

    .success-card {
        padding: 48px 24px 48px;
    }

    .step-two-grid {
        grid-template-columns: 1fr;
    }

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

    .success-actions {
        flex-direction: column;
        align-items: center;
    }

    .ga-item {
        flex: 0 0 100%;
        transform: scale(1);
        opacity: 1;
    }

    .ga-item:not(.ga-selected) {
        opacity: 0;
        pointer-events: none;
    }

    .ga-arrow {
        width: 28px;
        height: 28px;
    }

    .umkreis-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .umkreis-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .step3-umkreis-panel {
        padding: 16px 20px 14px;
    }
}
