/* ==========================================================================
   APRIMUS KONFIGURATOR — CSS
   Nutzt globale Theme-Variablen aus dem Aprimus WordPress-Theme
   Mobil-first, scoped unter .kfg-* um Konflikte zu vermeiden
   ========================================================================== */

/* --------------------------------------------------------------------------
   SCOPED VARIABLEN (erben vom Theme, Fallbacks für Standalone)
   -------------------------------------------------------------------------- */
.kfg-wrap {
    --kfg-accent:       var(--accent, #E30613);
    --kfg-accent-dark:  #b0040f;
    --kfg-bg:           var(--bg-body, #111);
    --kfg-bg-card:      var(--bg-card, #1a1a1a);
    --kfg-bg-alt:       var(--bg-section-alt, #0a0a0a);
    --kfg-text:         var(--text-main, #fff);
    --kfg-muted:        var(--text-muted, #888);
    --kfg-border:       var(--border-color, #2a2a2a);
    --kfg-input-bg:     var(--input-bg, #000);
    --kfg-radius:       14px;
    --kfg-radius-sm:    8px;
    --kfg-font:         var(--font, 'League Spartan', sans-serif);
    --kfg-transition:   0.25s ease;
    --kfg-shadow:       0 4px 24px rgba(0,0,0,0.35);
    --kfg-shadow-card:  0 2px 12px rgba(0,0,0,0.2);

    font-family: var(--kfg-font);
    color: var(--kfg-text);
    padding: 3rem 0 6rem;
    background: var(--kfg-bg);
}

/* --------------------------------------------------------------------------
   PROGRESS BAR (oben, linear)
   -------------------------------------------------------------------------- */
.kfg-progress-bar-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--kfg-bg);
    border-bottom: 1px solid var(--kfg-border);
    padding: 0.75rem 1.5rem;
}

.kfg-progress-track {
    height: 3px;
    background: var(--kfg-border);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.kfg-progress-fill {
    height: 100%;
    background: var(--kfg-accent);
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
    width: 0%;
}

.kfg-step-labels {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.kfg-step-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--kfg-muted);
    transition: color var(--kfg-transition);
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kfg-step-label.active  { color: var(--kfg-accent); }
.kfg-step-label.done    { color: var(--kfg-text); }

@media (max-width: 480px) {
    .kfg-step-label:not(.active):not(.done) { display: none; }
    .kfg-step-label.active { flex: 0 0 auto; }
}

/* --------------------------------------------------------------------------
   CONTAINER & PHASEN
   -------------------------------------------------------------------------- */
.kfg-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.kfg-phase {
    display: none;
    animation: kfg-fadeup 0.35s ease both;
}
.kfg-phase.active { display: block; }

@keyframes kfg-fadeup {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   PHASE HEADER
   -------------------------------------------------------------------------- */
.kfg-phase-header {
    margin: 2rem 0 1.5rem;
}

.kfg-step-counter {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--kfg-accent);
    margin-bottom: 0.4rem;
}

.kfg-phase-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--kfg-text);
}

.kfg-phase-subtitle {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--kfg-muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   CHOICE CARDS (Step 1 + Versand + Ja/Nein)
   -------------------------------------------------------------------------- */
.kfg-choices {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.kfg-choices.cols-2 { grid-template-columns: 1fr 1fr; }
.kfg-choices.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 540px) {
    .kfg-choices.cols-2,
    .kfg-choices.cols-3 { grid-template-columns: 1fr; }
}

.kfg-choice {
    position: relative;
    border: 2px solid var(--kfg-border);
    border-radius: var(--kfg-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: border-color var(--kfg-transition), background var(--kfg-transition), transform var(--kfg-transition);
    background: var(--kfg-bg-card);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.kfg-choice:hover {
    border-color: color-mix(in srgb, var(--kfg-accent) 50%, transparent);
    transform: translateY(-2px);
}

.kfg-choice.selected {
    border-color: var(--kfg-accent);
    background: color-mix(in srgb, var(--kfg-accent) 8%, var(--kfg-bg-card));
}

.kfg-choice.selected::after {
    content: '✓';
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    color: var(--kfg-accent);
    font-weight: 900;
    font-size: 1.1rem;
}

/* Versteckter nativer Input */
.kfg-choice input[type="radio"],
.kfg-choice input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.kfg-choice-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.kfg-choice-title {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kfg-text);
    margin-bottom: 0.3rem;
}

.kfg-choice-desc {
    font-size: 0.85rem;
    color: var(--kfg-muted);
    line-height: 1.45;
}

/* Bild-Karte (Materialien, Sonderleistungen) */
.kfg-choice.has-image {
    padding: 0;
    overflow: hidden;
}

.kfg-choice.has-image .kfg-choice-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    filter: grayscale(40%);
    transition: filter var(--kfg-transition), transform 0.4s ease;
}

.kfg-choice.has-image:hover .kfg-choice-img,
.kfg-choice.has-image.selected .kfg-choice-img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.kfg-choice.has-image .kfg-choice-body {
    padding: 1rem 1.25rem;
}

/* Multi-Select Checkbox-Stil */
.kfg-choice.checkbox-style.selected::after { content: '✓'; }

/* --------------------------------------------------------------------------
   DROPZONE
   -------------------------------------------------------------------------- */
.kfg-dropzone {
    border: 2px dashed var(--kfg-border);
    border-radius: var(--kfg-radius);
    background: var(--kfg-input-bg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--kfg-transition), background var(--kfg-transition);
    position: relative;
    overflow: hidden;
}

.kfg-dropzone:hover,
.kfg-dropzone.dragover {
    border-color: var(--kfg-accent);
    background: color-mix(in srgb, var(--kfg-accent) 5%, var(--kfg-input-bg));
}

.kfg-dropzone.has-file {
    border-style: solid;
    border-color: var(--kfg-accent);
}

/* Echter file input: unsichtbar, deckt gesamte Zone ab */
.kfg-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.kfg-dropzone-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--kfg-muted);
    transition: color var(--kfg-transition);
}

.kfg-dropzone:hover .kfg-dropzone-icon,
.kfg-dropzone.has-file .kfg-dropzone-icon { color: var(--kfg-accent); }

.kfg-dropzone-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--kfg-text);
    margin-bottom: 0.25rem;
}

.kfg-dropzone-hint {
    font-size: 0.8rem;
    color: var(--kfg-muted);
}

.kfg-dropzone-filename {
    display: none;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--kfg-accent);
    word-break: break-all;
}

.kfg-dropzone.has-file .kfg-dropzone-filename { display: block; }

/* --------------------------------------------------------------------------
   LIVE PREVIEW (Step 4C)
   -------------------------------------------------------------------------- */
.kfg-preview-stage {
    border: 1px solid var(--kfg-border);
    border-radius: var(--kfg-radius);
    background: var(--kfg-bg-alt);
    /* Blueprint-Grid */
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin: 1.5rem 0;
}

.kfg-preview-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 2rem;
    max-width: 100%;
    transition: all 0.3s;
}

.kfg-preview-inner.logo-top {
    flex-direction: column;
    text-align: center;
}
.kfg-preview-inner.logo-right { flex-direction: row-reverse; }

#kfg-preview-logo {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
    transition: all 0.3s;
    flex-shrink: 0;
}

#kfg-preview-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--kfg-text);
    white-space: nowrap;
    transition: font-size 0.3s, font-family 0.3s;
    text-transform: uppercase;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.5);
}

.kfg-height-indicator {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.kfg-height-line {
    width: 2px;
    background: var(--kfg-accent);
    height: 60px;
    position: relative;
    transition: height 0.3s;
}

.kfg-height-line::before,
.kfg-height-line::after {
    content: '';
    position: absolute;
    left: -5px;
    width: 12px;
    height: 2px;
    background: var(--kfg-accent);
}
.kfg-height-line::before { top: 0; }
.kfg-height-line::after  { bottom: 0; }

.kfg-height-val {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--kfg-accent);
    white-space: nowrap;
}

/* Preview Controls */
.kfg-preview-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

.kfg-ctrl {
    flex: 1;
    min-width: 140px;
}

.kfg-ctrl label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--kfg-muted);
    margin-bottom: 0.4rem;
}

.kfg-ctrl input[type="text"],
.kfg-ctrl input[type="number"],
.kfg-ctrl select {
    width: 100%;
    background: var(--kfg-bg-card);
    border: 1px solid var(--kfg-border);
    border-radius: var(--kfg-radius-sm);
    padding: 0.6rem 0.8rem;
    font-family: var(--kfg-font);
    font-size: 0.95rem;
    color: var(--kfg-text);
    outline: none;
    transition: border-color var(--kfg-transition);
    -webkit-appearance: none;
}

.kfg-ctrl input:focus,
.kfg-ctrl select:focus { border-color: var(--kfg-accent); }

.kfg-ctrl select option { background: var(--kfg-bg-card); }

.kfg-ctrl input[type="range"] {
    width: 100%;
    accent-color: var(--kfg-accent);
    cursor: pointer;
}

.kfg-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--kfg-text);
    cursor: pointer;
}

/* Toggle Switch */
.kfg-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}
.kfg-toggle input { opacity: 0; width: 0; height: 0; }
.kfg-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--kfg-border);
    border-radius: 99px;
    transition: background 0.2s;
}
.kfg-toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
}
.kfg-toggle input:checked ~ .kfg-toggle-slider { background: var(--kfg-accent); }
.kfg-toggle input:checked ~ .kfg-toggle-slider::before { transform: translateX(18px); }

/* --------------------------------------------------------------------------
   FORM FELDER (Kontaktdaten)
   -------------------------------------------------------------------------- */
.kfg-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 540px) {
    .kfg-form-grid { grid-template-columns: 1fr; }
    .kfg-form-grid.cols-3 { grid-template-columns: 1fr; }
}

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

.kfg-field {
    position: relative;
}

.kfg-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--kfg-muted);
    margin-bottom: 0.4rem;
}

.kfg-field input,
.kfg-field textarea,
.kfg-field select {
    width: 100%;
    background: var(--kfg-bg-card);
    border: 1px solid var(--kfg-border);
    border-radius: var(--kfg-radius-sm);
    padding: 0.75rem 1rem;
    font-family: var(--kfg-font);
    font-size: 1rem;
    color: var(--kfg-text);
    outline: none;
    transition: border-color var(--kfg-transition);
    -webkit-appearance: none;
}

.kfg-field input:focus,
.kfg-field textarea:focus,
.kfg-field select:focus { border-color: var(--kfg-accent); }

.kfg-field textarea { resize: vertical; min-height: 90px; }

.kfg-section-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--kfg-accent);
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--kfg-border);
}

/* --------------------------------------------------------------------------
   NAVIGATION BUTTONS
   -------------------------------------------------------------------------- */
.kfg-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    gap: 1rem;
}

.kfg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 99px;
    font-family: var(--kfg-font);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--kfg-transition);
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.kfg-btn-primary {
    background: var(--kfg-accent);
    color: #fff;
    border-color: var(--kfg-accent);
}
.kfg-btn-primary:hover {
    background: var(--kfg-accent-dark);
    border-color: var(--kfg-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227,6,19,0.3);
}

.kfg-btn-secondary {
    background: transparent;
    color: var(--kfg-text);
    border-color: var(--kfg-border);
}
.kfg-btn-secondary:hover {
    border-color: var(--kfg-text);
}

.kfg-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.kfg-btn-icon { font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   ZUSAMMENFASSUNG MODAL
   -------------------------------------------------------------------------- */
.kfg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.kfg-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.kfg-modal {
    background: var(--kfg-bg-card);
    border: 1px solid var(--kfg-border);
    border-radius: var(--kfg-radius);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.3s;
}

.kfg-modal-overlay.open .kfg-modal { transform: translateY(0); }

.kfg-modal-head {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--kfg-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--kfg-bg-card);
    z-index: 1;
}

.kfg-modal-head h3 {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--kfg-text);
}

.kfg-modal-close {
    background: none;
    border: none;
    color: var(--kfg-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color var(--kfg-transition);
}
.kfg-modal-close:hover { color: var(--kfg-accent); }

.kfg-modal-body { padding: 1.5rem 2rem; }

/* Summary Tabelle */
.kfg-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.kfg-summary-table tr { border-bottom: 1px solid var(--kfg-border); }
.kfg-summary-table tr:last-child { border-bottom: none; }
.kfg-summary-table td {
    padding: 0.65rem 0.5rem;
    vertical-align: top;
}
.kfg-summary-table td:first-child {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--kfg-muted);
    white-space: nowrap;
    width: 38%;
}
.kfg-summary-table td:last-child { color: var(--kfg-text); }

.kfg-summary-section {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--kfg-accent);
    padding: 1rem 0 0.25rem;
}

.kfg-modal-foot {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--kfg-border);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: var(--kfg-bg-alt);
    border-radius: 0 0 var(--kfg-radius) var(--kfg-radius);
}

/* --------------------------------------------------------------------------
   SUCCESS STATE
   -------------------------------------------------------------------------- */
.kfg-success {
    text-align: center;
    padding: 4rem 2rem;
}

.kfg-success-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    animation: kfg-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes kfg-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.kfg-success h3 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--kfg-text);
    margin-bottom: 0.75rem;
}

.kfg-success p { color: var(--kfg-muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   CF7 HIDDEN WRAPPER
   -------------------------------------------------------------------------- */
#kfg-cf7-wrapper {
    display: none !important;
    position: absolute !important;
    pointer-events: none !important;
    aria-hidden: true;
}

/* --------------------------------------------------------------------------
   TOOLSET REPEATER PLATZHALTER (falls leer)
   -------------------------------------------------------------------------- */
.kfg-empty-note {
    border: 1px dashed var(--kfg-border);
    border-radius: var(--kfg-radius-sm);
    padding: 1.5rem;
    text-align: center;
    color: var(--kfg-muted);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   LIGHT THEME OVERRIDES
   -------------------------------------------------------------------------- */
[data-theme="light"] .kfg-wrap {
    --kfg-bg:       #f5f5f5;
    --kfg-bg-card:  #ffffff;
    --kfg-bg-alt:   #ebebeb;
    --kfg-text:     #111111;
    --kfg-muted:    #777777;
    --kfg-border:   #e0e0e0;
    --kfg-input-bg: #ffffff;
}

[data-theme="light"] .kfg-preview-stage {
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

[data-theme="light"] #kfg-preview-text { color: #111; text-shadow: none; }

/* --------------------------------------------------------------------------
   MOBILE FEINTUNING
   -------------------------------------------------------------------------- */
@media (max-width: 540px) {
    .kfg-wrap { padding: 1.5rem 0 5rem; }
    .kfg-phase-title { font-size: 1.5rem; }
    .kfg-btn { padding: 0.8rem 1.4rem; font-size: 0.82rem; }
    .kfg-preview-stage { min-height: 200px; }
    #kfg-preview-text { font-size: 1.6rem; }
    .kfg-modal-head,
    .kfg-modal-body,
    .kfg-modal-foot { padding-left: 1rem; padding-right: 1rem; }
    .kfg-modal-foot { flex-direction: column; }
    .kfg-modal-foot .kfg-btn { width: 100%; justify-content: center; }
    .kfg-nav { flex-direction: column-reverse; }
    .kfg-nav .kfg-btn { width: 100%; justify-content: center; }
    .kfg-preview-controls { flex-direction: column; }
    .kfg-form-grid.plz { grid-template-columns: 1fr 2fr; }
}
/* 1. Alle Input-Felder und Textareas zwingend weiße Schrift */
.kfg-field input, 
.kfg-field textarea,
.app-input-group input,
.app-input-group textarea,
.config-content input[type="text"],
.config-content input[type="email"],
.config-content input[type="tel"],
.config-content input[type="number"] {
    color: #ffffff !important;
}

/* Container für die Trennung von Karte und Button */
.kfg-choice-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kfg-choice-wrapper .kfg-choice {
    flex-grow: 1; /* Lässt alle Karten im Grid gleich hoch werden */
    margin-bottom: 0;
}

/* Styling für den freistehenden Info-Button */
.kfg-info-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    margin-top: 8px; /* Der Abstand ZWISCHEN Karte und Button */
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
    position: relative; /* Wichtig für sauberes Klick-Event */
    z-index: 10;
}

.kfg-info-btn:hover {
    border-color: #E30613;
    background: rgba(227, 6, 19, 0.1);
    color: #E30613;
}
/* ==========================================================================
   KONFIGURATOR CSS PATCH
   Diese Zeilen ans Ende der konfigurator.css hängen (oder in functions.php
   als separates Stylesheet einbinden).
   ========================================================================== */

/* --------------------------------------------------------------------------
   INFO MODAL — open state
   Das Basis-Styling (.kfg-modal-overlay, .kfg-modal) kommt vom bestehenden CSS.
   Hier nur der open-Toggle.
   -------------------------------------------------------------------------- */
#kfg-info-modal.open {
    opacity: 1;
    pointer-events: auto;
}

#kfg-info-modal.open .kfg-modal {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   CHOICE WRAPPER (Karte + Info-Button untereinander)
   -------------------------------------------------------------------------- */
.kfg-choice-wrapper {
    display: flex;
    flex-direction: column;
}

.kfg-choice-wrapper .kfg-choice {
    flex: 1;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   INFO BUTTON (unter den Karten)
   -------------------------------------------------------------------------- */
.kfg-info-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.8rem;
    font-family: var(--kfg-font, 'League Spartan', sans-serif);
    text-align: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.kfg-info-btn:hover {
    background: rgba(227, 6, 19, 0.12);
    border-color: var(--kfg-accent, #E30613);
    color: var(--kfg-accent, #E30613);
}

/* Platzhalter wenn kein Info-Button vorhanden → Karten bleiben gleich hoch */
.kfg-info-btn-placeholder {
    height: 38px;
    margin-top: 8px;
    display: block;
}

/* --------------------------------------------------------------------------
   FORMFELDER — weiße Schrift erzwingen
   -------------------------------------------------------------------------- */
.kfg-field input,
.kfg-field textarea,
.kfg-field select,
.kfg-ctrl input[type="text"],
.kfg-ctrl input[type="number"],
.kfg-ctrl select {
    color: #ffffff;
}
/* ==========================================================================
   KONFIGURATOR CSS PATCH — ans Ende der konfigurator.css hängen
   ========================================================================== */

/* --------------------------------------------------------------------------
   INFO MODAL — weißer Hintergrund, Bild oben randlos
   -------------------------------------------------------------------------- */
#kfg-info-modal.open {
    opacity: 1;
    pointer-events: auto;
}

#kfg-info-modal.open .kfg-modal {
    transform: translateY(0);
}

/* Gesamtes Modal weiß */
#kfg-info-modal .kfg-modal {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}

/* Header */
#kfg-info-modal .kfg-modal-head {
    background: #ffffff;
    border-bottom: 1px solid #ebebeb;
    padding: 1.25rem 1.5rem;
}

#kfg-info-modal .kfg-modal-head h3 {
    color: #111111;
    font-size: 1.15rem;
}

#kfg-info-modal .kfg-modal-close {
    color: #888;
}

#kfg-info-modal .kfg-modal-close:hover {
    color: #E30613;
}

/* Bild: randlos oben, volle Breite */
#kfg-info-modal-img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin: 0;
}

/* Body */
#kfg-info-modal .kfg-modal-body {
    padding: 1.5rem;
    background: #ffffff;
}

/* Text dunkel */
#kfg-info-modal-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #333333 !important;
    margin: 0;
}

/* Produktionsdauer-Badge */
#kfg-info-modal .kfg-info-dauer {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.35rem 0.85rem;
    background: #fff3f3;
    border: 1px solid #fcc;
    border-radius: 99px;
    color: #E30613;
    font-size: 0.8rem;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   CHOICE WRAPPER (Karte + Info-Button als Spalte)
   -------------------------------------------------------------------------- */
.kfg-choice-wrapper {
    display: flex;
    flex-direction: column;
}

.kfg-choice-wrapper .kfg-choice {
    flex: 1;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   INFO BUTTON
   -------------------------------------------------------------------------- */
.kfg-info-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #fff;
    font-size: 0.8rem;
    font-family: var(--kfg-font, 'League Spartan', sans-serif);
    text-align: center;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.kfg-info-btn:hover {
    background: rgba(227,6,19,0.10);
    border-color: var(--kfg-accent, #E30613);
    color: var(--kfg-accent, #E30613);
}

/* Platzhalter wenn kein Info-Button → Karten gleich hoch */
.kfg-info-btn-placeholder {
    height: 38px;
    margin-top: 8px;
    display: block;
}

/* --------------------------------------------------------------------------
   FORMFELDER — weiße Schrift
   -------------------------------------------------------------------------- */
.kfg-field input,
.kfg-field textarea,
.kfg-field select,
.kfg-ctrl input[type="text"],
.kfg-ctrl input[type="number"],
.kfg-ctrl select {
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   LIVE PREVIEW CONTROLS — Layout-Fix
   -------------------------------------------------------------------------- */

/* Erste Zeile: Text, Font, Höhe nebeneinander — Höhe nicht umbrechen */
#step-4c .kfg-preview-controls:first-of-type {
    flex-wrap: nowrap;
    align-items: flex-end;
}

#step-4c .kfg-preview-controls:first-of-type .kfg-ctrl:last-child {
    flex: 0 0 110px;
    min-width: 90px;
    max-width: 130px;
}

/* Zweite Zeile (Toggle, Position, Größe): alle auf einer Linie */
#step-4c .kfg-preview-controls + .kfg-preview-controls {
    align-items: center;
    gap: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Toggle-Zeile: sauber horizontal, kein Wrap */
.kfg-toggle-row {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--kfg-text);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

/* Toggle: inline-block damit es nicht die ganze Zeile nimmt */
.kfg-toggle {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    vertical-align: middle;
}

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

/* Preview Inner: direction per inline style aus JS */
.kfg-preview-inner {
    display: flex !important;
    align-items: center;
    gap: 20px;
    padding: 2rem;
    max-width: 100%;
    transition: flex-direction 0.3s;
}

@media (max-width: 600px) {
    #step-4c .kfg-preview-controls:first-of-type {
        flex-wrap: wrap;
    }
    #step-4c .kfg-preview-controls:first-of-type .kfg-ctrl:last-child {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
/* ==========================================================================
   KONFIGURATOR CSS PATCH — ans Ende der konfigurator.css hängen
   ========================================================================== */

/* --------------------------------------------------------------------------
   INFO MODAL — weißer Hintergrund, Bild oben randlos
   -------------------------------------------------------------------------- */
#kfg-info-modal.open {
    opacity: 1;
    pointer-events: auto;
}

#kfg-info-modal.open .kfg-modal {
    transform: translateY(0);
}

/* Gesamtes Modal weiß */
#kfg-info-modal .kfg-modal {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}

/* Header */
#kfg-info-modal .kfg-modal-head {
    background: #ffffff;
    border-bottom: 1px solid #ebebeb;
    padding: 1.25rem 1.5rem;
}

#kfg-info-modal .kfg-modal-head h3 {
    color: #111111;
    font-size: 1.15rem;
}

#kfg-info-modal .kfg-modal-close {
    color: #888;
}

#kfg-info-modal .kfg-modal-close:hover {
    color: #E30613;
}

/* Bild: randlos oben, volle Breite */
#kfg-info-modal-img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin: 0;
}

/* Body */
#kfg-info-modal .kfg-modal-body {
    padding: 1.5rem;
    background: #ffffff;
}

/* Text dunkel */
#kfg-info-modal-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #333333 !important;
    margin: 0;
}

/* Produktionsdauer-Badge */
#kfg-info-modal .kfg-info-dauer {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.35rem 0.85rem;
    background: #fff3f3;
    border: 1px solid #fcc;
    border-radius: 99px;
    color: #E30613;
    font-size: 0.8rem;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   CHOICE WRAPPER (Karte + Info-Button als Spalte)
   -------------------------------------------------------------------------- */
.kfg-choice-wrapper {
    display: flex;
    flex-direction: column;
}

.kfg-choice-wrapper .kfg-choice {
    flex: 1;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   INFO BUTTON
   -------------------------------------------------------------------------- */
.kfg-info-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #fff;
    font-size: 0.8rem;
    font-family: var(--kfg-font, 'League Spartan', sans-serif);
    text-align: center;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.kfg-info-btn:hover {
    background: rgba(227,6,19,0.10);
    border-color: var(--kfg-accent, #E30613);
    color: var(--kfg-accent, #E30613);
}

/* Platzhalter wenn kein Info-Button → Karten gleich hoch */
.kfg-info-btn-placeholder {
    height: 38px;
    margin-top: 8px;
    display: block;
}

/* --------------------------------------------------------------------------
   FORMFELDER — weiße Schrift
   -------------------------------------------------------------------------- */
.kfg-field input,
.kfg-field textarea,
.kfg-field select,
.kfg-ctrl input[type="text"],
.kfg-ctrl input[type="number"],
.kfg-ctrl select {
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   LIVE PREVIEW CONTROLS — Layout-Fix
   -------------------------------------------------------------------------- */

/* Erste Zeile: Text, Font, Höhe nebeneinander — Höhe nicht umbrechen */
#step-4c .kfg-preview-controls:first-of-type {
    flex-wrap: nowrap;
    align-items: flex-end;
}

#step-4c .kfg-preview-controls:first-of-type .kfg-ctrl:last-child {
    flex: 0 0 110px;
    min-width: 90px;
    max-width: 130px;
}

/* Zweite Zeile (Toggle, Position, Größe): alle auf einer Linie */
#step-4c .kfg-preview-controls + .kfg-preview-controls {
    align-items: center;
    gap: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Toggle-Zeile: sauber horizontal, kein Wrap */
.kfg-toggle-row {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--kfg-text);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

/* Toggle: inline-block damit es nicht die ganze Zeile nimmt */
.kfg-toggle {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    vertical-align: middle;
}

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

/* Preview Inner: direction per inline style aus JS */
.kfg-preview-inner {
    display: flex !important;
    align-items: center;
    gap: 20px;
    padding: 2rem;
    max-width: 100%;
    transition: flex-direction 0.3s;
}

@media (max-width: 600px) {
    #step-4c .kfg-preview-controls:first-of-type {
        flex-wrap: wrap;
    }
    #step-4c .kfg-preview-controls:first-of-type .kfg-ctrl:last-child {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* --------------------------------------------------------------------------
   ZUSAMMENFASSUNG MODAL — weißer Hintergrund
   -------------------------------------------------------------------------- */
#kfg-modal .kfg-modal {
    background: #ffffff;
    border: none;
}

#kfg-modal .kfg-modal-head {
    background: #ffffff;
    border-bottom: 1px solid #ebebeb;
}

#kfg-modal .kfg-modal-head h3 {
    color: #111111;
}

#kfg-modal .kfg-modal-close {
    color: #888;
}

#kfg-modal .kfg-modal-close:hover {
    color: #E30613;
}

#kfg-modal .kfg-modal-body {
    background: #ffffff;
}

#kfg-modal .kfg-modal-foot {
    background: #f5f5f5;
    border-top: 1px solid #ebebeb;
}

/* Summary Tabelle auf weißem Hintergrund */
#kfg-modal .kfg-summary-table td {
    color: #333333;
}

#kfg-modal .kfg-summary-table td:first-child {
    color: #888888;
}

#kfg-modal .kfg-summary-section {
    color: #E30613;
}

#kfg-modal .kfg-summary-table tr {
    border-bottom: 1px solid #eeeeee;
}
/* ==========================================================================
   KONFIGURATOR CSS PATCH — ans Ende der konfigurator.css hängen
   ========================================================================== */

/* --------------------------------------------------------------------------
   INFO MODAL — weißer Hintergrund, Bild oben randlos
   -------------------------------------------------------------------------- */
#kfg-info-modal.open {
    opacity: 1;
    pointer-events: auto;
}

#kfg-info-modal.open .kfg-modal {
    transform: translateY(0);
}

/* Gesamtes Modal weiß */
#kfg-info-modal .kfg-modal {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}

/* Header */
#kfg-info-modal .kfg-modal-head {
    background: #ffffff;
    border-bottom: 1px solid #ebebeb;
    padding: 1.25rem 1.5rem;
}

#kfg-info-modal .kfg-modal-head h3 {
    color: #111111;
    font-size: 1.15rem;
}

#kfg-info-modal .kfg-modal-close {
    color: #888;
}

#kfg-info-modal .kfg-modal-close:hover {
    color: #E30613;
}

/* Bild: randlos oben, volle Breite */
#kfg-info-modal-img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin: 0;
}

/* Body */
#kfg-info-modal .kfg-modal-body {
    padding: 1.5rem;
    background: #ffffff;
}

/* Text dunkel */
#kfg-info-modal-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #333333 !important;
    margin: 0;
}

/* Produktionsdauer-Badge */
#kfg-info-modal .kfg-info-dauer {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.35rem 0.85rem;
    background: #fff3f3;
    border: 1px solid #fcc;
    border-radius: 99px;
    color: #E30613;
    font-size: 0.8rem;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   CHOICE WRAPPER (Karte + Info-Button als Spalte)
   -------------------------------------------------------------------------- */
.kfg-choice-wrapper {
    display: flex;
    flex-direction: column;
}

.kfg-choice-wrapper .kfg-choice {
    flex: 1;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   INFO BUTTON
   -------------------------------------------------------------------------- */
.kfg-info-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #fff;
    font-size: 0.8rem;
    font-family: var(--kfg-font, 'League Spartan', sans-serif);
    text-align: center;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.kfg-info-btn:hover {
    background: rgba(227,6,19,0.10);
    border-color: var(--kfg-accent, #E30613);
    color: var(--kfg-accent, #E30613);
}

/* Platzhalter wenn kein Info-Button → Karten gleich hoch */
.kfg-info-btn-placeholder {
    height: 38px;
    margin-top: 8px;
    display: block;
}

/* --------------------------------------------------------------------------
   FORMFELDER — weiße Schrift
   -------------------------------------------------------------------------- */
.kfg-field input,
.kfg-field textarea,
.kfg-field select,
.kfg-ctrl input[type="text"],
.kfg-ctrl input[type="number"],
.kfg-ctrl select {
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   LIVE PREVIEW CONTROLS — Layout-Fix
   -------------------------------------------------------------------------- */

/* Erste Zeile: Text, Font, Höhe nebeneinander — Höhe nicht umbrechen */
#step-4c .kfg-preview-controls:first-of-type {
    flex-wrap: nowrap;
    align-items: flex-end;
}

#step-4c .kfg-preview-controls:first-of-type .kfg-ctrl:last-child {
    flex: 0 0 110px;
    min-width: 90px;
    max-width: 130px;
}

/* Zweite Zeile (Toggle, Position, Größe): alle auf einer Linie */
#step-4c .kfg-preview-controls + .kfg-preview-controls {
    align-items: center;
    gap: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Toggle-Zeile: sauber horizontal, kein Wrap */
.kfg-toggle-row {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--kfg-text);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

/* Toggle: inline-block damit es nicht die ganze Zeile nimmt */
.kfg-toggle {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    vertical-align: middle;
}

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

/* Preview Inner: direction per inline style aus JS */
.kfg-preview-inner {
    display: flex !important;
    align-items: center;
    gap: 20px;
    padding: 2rem;
    max-width: 100%;
    transition: flex-direction 0.3s;
}

@media (max-width: 600px) {
    #step-4c .kfg-preview-controls:first-of-type {
        flex-wrap: wrap;
    }
    #step-4c .kfg-preview-controls:first-of-type .kfg-ctrl:last-child {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* --------------------------------------------------------------------------
   ZUSAMMENFASSUNG MODAL — weißer Hintergrund
   -------------------------------------------------------------------------- */
#kfg-modal .kfg-modal {
    background: #ffffff;
    border: none;
}

#kfg-modal .kfg-modal-head {
    background: #ffffff;
    border-bottom: 1px solid #ebebeb;
}

#kfg-modal .kfg-modal-head h3 {
    color: #111111;
}

#kfg-modal .kfg-modal-close {
    color: #888;
}

#kfg-modal .kfg-modal-close:hover {
    color: #E30613;
}

#kfg-modal .kfg-modal-body {
    background: #ffffff;
}

#kfg-modal .kfg-modal-foot {
    background: #f5f5f5;
    border-top: 1px solid #ebebeb;
}

/* Summary Tabelle auf weißem Hintergrund */
#kfg-modal .kfg-summary-table td {
    color: #333333;
}

#kfg-modal .kfg-summary-table td:first-child {
    color: #888888;
}

#kfg-modal .kfg-summary-section {
    color: #E30613;
}

#kfg-modal .kfg-summary-table tr {
    border-bottom: 1px solid #eeeeee;
}

/* --------------------------------------------------------------------------
   MODAL FOOTER BUTTONS — explizit rot/dunkel auf weißem Hintergrund
   -------------------------------------------------------------------------- */
#kfg-modal .kfg-modal-foot .kfg-btn-primary {
    background: #E30613 !important;
    color: #ffffff !important;
    border-color: #E30613 !important;
}

#kfg-modal .kfg-modal-foot .kfg-btn-primary:hover {
    background: #b0040f !important;
    border-color: #b0040f !important;
}

#kfg-modal .kfg-modal-foot .kfg-btn-secondary {
    background: transparent !important;
    color: #111111 !important;
    border-color: #cccccc !important;
}

#kfg-modal .kfg-modal-foot .kfg-btn-secondary:hover {
    border-color: #111111 !important;
}

/* Summary-Tabelle — Texte explizit dunkel */
#kfg-modal .kfg-summary-table {
    color: #333333;
}

#kfg-modal .kfg-summary-table td {
    color: #333333 !important;
    border-bottom: 1px solid #eeeeee;
    padding: 0.6rem 0.5rem;
}

#kfg-modal .kfg-summary-table td:first-child {
    color: #888888 !important;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#kfg-modal .kfg-summary-section {
    color: #E30613 !important;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-top: 1rem;
}

/* Logo Preview-Block im kfg-preview-inner — visibility statt display */
#kfg-preview-logo {
    display: block !important;
    flex-shrink: 0;
    transition: visibility 0.2s, opacity 0.2s;
}
/* ==========================================================================
   KONFIGURATOR CSS PATCH — ans Ende der konfigurator.css hängen
   ========================================================================== */

/* --------------------------------------------------------------------------
   INFO MODAL — weißer Hintergrund, Bild oben randlos
   -------------------------------------------------------------------------- */
#kfg-info-modal.open {
    opacity: 1;
    pointer-events: auto;
}

#kfg-info-modal.open .kfg-modal {
    transform: translateY(0);
}

/* Gesamtes Modal weiß */
#kfg-info-modal .kfg-modal {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}

/* Header */
#kfg-info-modal .kfg-modal-head {
    background: #ffffff;
    border-bottom: 1px solid #ebebeb;
    padding: 1.25rem 1.5rem;
}

#kfg-info-modal .kfg-modal-head h3 {
    color: #111111;
    font-size: 1.15rem;
}

#kfg-info-modal .kfg-modal-close {
    color: #888;
}

#kfg-info-modal .kfg-modal-close:hover {
    color: #E30613;
}

/* Bild: randlos oben, volle Breite */
#kfg-info-modal-img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin: 0;
}

/* Body */
#kfg-info-modal .kfg-modal-body {
    padding: 1.5rem;
    background: #ffffff;
}

/* Text dunkel */
#kfg-info-modal-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #333333 !important;
    margin: 0;
}

/* Produktionsdauer-Badge */
#kfg-info-modal .kfg-info-dauer {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.35rem 0.85rem;
    background: #fff3f3;
    border: 1px solid #fcc;
    border-radius: 99px;
    color: #E30613;
    font-size: 0.8rem;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   CHOICE WRAPPER (Karte + Info-Button als Spalte)
   -------------------------------------------------------------------------- */
.kfg-choice-wrapper {
    display: flex;
    flex-direction: column;
}

.kfg-choice-wrapper .kfg-choice {
    flex: 1;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   INFO BUTTON
   -------------------------------------------------------------------------- */
.kfg-info-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #fff;
    font-size: 0.8rem;
    font-family: var(--kfg-font, 'League Spartan', sans-serif);
    text-align: center;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.kfg-info-btn:hover {
    background: rgba(227,6,19,0.10);
    border-color: var(--kfg-accent, #E30613);
    color: var(--kfg-accent, #E30613);
}

/* Platzhalter wenn kein Info-Button → Karten gleich hoch */
.kfg-info-btn-placeholder {
    height: 38px;
    margin-top: 8px;
    display: block;
}

/* --------------------------------------------------------------------------
   FORMFELDER — weiße Schrift
   -------------------------------------------------------------------------- */
.kfg-field input,
.kfg-field textarea,
.kfg-field select,
.kfg-ctrl input[type="text"],
.kfg-ctrl input[type="number"],
.kfg-ctrl select {
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   LIVE PREVIEW CONTROLS — Layout-Fix
   -------------------------------------------------------------------------- */

/* Erste Zeile: Text, Font, Höhe nebeneinander — Höhe nicht umbrechen */
#step-4c .kfg-preview-controls:first-of-type {
    flex-wrap: nowrap;
    align-items: flex-end;
}

#step-4c .kfg-preview-controls:first-of-type .kfg-ctrl:last-child {
    flex: 0 0 110px;
    min-width: 90px;
    max-width: 130px;
}

/* Zweite Zeile (Toggle, Position, Größe): alle auf einer Linie */
#step-4c .kfg-preview-controls + .kfg-preview-controls {
    align-items: center;
    gap: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Toggle-Zeile: sauber horizontal, kein Wrap */
.kfg-toggle-row {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--kfg-text);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

/* Toggle: inline-block damit es nicht die ganze Zeile nimmt */
.kfg-toggle {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    vertical-align: middle;
}

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

/* Preview Inner: direction per inline style aus JS */
.kfg-preview-inner {
    display: flex !important;
    align-items: center;
    gap: 20px;
    padding: 2rem;
    max-width: 100%;
    transition: flex-direction 0.3s;
}

@media (max-width: 600px) {
    #step-4c .kfg-preview-controls:first-of-type {
        flex-wrap: wrap;
    }
    #step-4c .kfg-preview-controls:first-of-type .kfg-ctrl:last-child {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* --------------------------------------------------------------------------
   ZUSAMMENFASSUNG MODAL — weißer Hintergrund
   -------------------------------------------------------------------------- */
#kfg-modal .kfg-modal {
    background: #ffffff;
    border: none;
}

#kfg-modal .kfg-modal-head {
    background: #ffffff;
    border-bottom: 1px solid #ebebeb;
}

#kfg-modal .kfg-modal-head h3 {
    color: #111111;
}

#kfg-modal .kfg-modal-close {
    color: #888;
}

#kfg-modal .kfg-modal-close:hover {
    color: #E30613;
}

#kfg-modal .kfg-modal-body {
    background: #ffffff;
}

#kfg-modal .kfg-modal-foot {
    background: #f5f5f5;
    border-top: 1px solid #ebebeb;
}

/* Summary Tabelle auf weißem Hintergrund */
#kfg-modal .kfg-summary-table td {
    color: #333333;
}

#kfg-modal .kfg-summary-table td:first-child {
    color: #888888;
}

#kfg-modal .kfg-summary-section {
    color: #E30613;
}

#kfg-modal .kfg-summary-table tr {
    border-bottom: 1px solid #eeeeee;
}

/* --------------------------------------------------------------------------
   MODAL FOOTER BUTTONS — explizit rot/dunkel auf weißem Hintergrund
   -------------------------------------------------------------------------- */
#kfg-modal .kfg-modal-foot .kfg-btn-primary {
    background: #E30613 !important;
    color: #ffffff !important;
    border-color: #E30613 !important;
}

#kfg-modal .kfg-modal-foot .kfg-btn-primary:hover {
    background: #b0040f !important;
    border-color: #b0040f !important;
}

#kfg-modal .kfg-modal-foot .kfg-btn-secondary {
    background: transparent !important;
    color: #111111 !important;
    border-color: #cccccc !important;
}

#kfg-modal .kfg-modal-foot .kfg-btn-secondary:hover {
    border-color: #111111 !important;
}

/* Summary-Tabelle — Texte explizit dunkel */
#kfg-modal .kfg-summary-table {
    color: #333333;
}

#kfg-modal .kfg-summary-table td {
    color: #333333 !important;
    border-bottom: 1px solid #eeeeee;
    padding: 0.6rem 0.5rem;
}

#kfg-modal .kfg-summary-table td:first-child {
    color: #888888 !important;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#kfg-modal .kfg-summary-section {
    color: #E30613 !important;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-top: 1rem;
}

/* Logo Preview-Block im kfg-preview-inner — visibility statt display */
#kfg-preview-logo {
    display: block !important;
    flex-shrink: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

/* --------------------------------------------------------------------------
   MOBILE SPERRE — Konfigurator nur auf Desktop
   -------------------------------------------------------------------------- */

/* Konfigurator auf Mobile/Tablet verstecken */
@media (max-width: 1023px) {
    .kfg-desktop-only {
        display: none !important;
    }
    .kfg-mobile-notice {
        display: flex !important;
    }
}

/* Konfigurator auf Desktop: Hinweis verstecken */
@media (min-width: 1024px) {
    .kfg-mobile-notice {
        display: none !important;
    }
}

/* Mobile Hinweis-Box */
.kfg-mobile-notice {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem 1.5rem;
    background: var(--kfg-bg, #111);
}

.kfg-mobile-notice-inner {
    max-width: 420px;
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
}

.kfg-mobile-notice-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.kfg-mobile-notice-inner h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.kfg-mobile-notice-inner p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin-bottom: 2rem;
}

.kfg-mobile-back-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: #E30613;
    color: #fff;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.kfg-mobile-back-btn:hover {
    background: #b0040f;
    color: #fff;
}
/* CF7 Submit-Button verstecken — JS löst ihn aus */
.kfg-submit-hidden { display: none !important; }

/* CF7 file inputs: absolut positioniert über Dropzone */
.kfg-file-input {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
}
.kfg-dropzone { position: relative; overflow: hidden; }