/* ═══════════════════════════════════════════════════════════════════
   Schank Forms – Base Styles
   REGEL: Nur Layout !important. Farbe/Schrift/Abstände OHNE !important
   damit Divi-generierte Styles immer gewinnen.
   ═══════════════════════════════════════════════════════════════════ */

.sf-wrap {
    font-family: inherit;
    font-size: 14px;
    color: #333333;
    width: 100% !important;
    box-sizing: border-box !important;
}
.sf-wrap *, .sf-wrap *::before, .sf-wrap *::after { box-sizing: inherit !important; }

.sf-fields-wrap { width: 100% !important; }

.sf-field {
    display: block !important;
    width: 100% !important;
    margin-bottom: 10px;
}

.sf-field > label:not(.sf-dsgvo-label):not(.sf-cb-label),
.sf-legend { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }

/* Eingabefelder – Layout !important, Farbe/Schrift OHNE !important */
.sf-wrap .sf-field input[type=text],
.sf-wrap .sf-field input[type=email],
.sf-wrap .sf-field input[type=tel],
.sf-wrap .sf-field input[type=number],
.sf-wrap .sf-field input[type=date],
.sf-wrap .sf-field input[type=time],
.sf-wrap .sf-field input[type=url],
.sf-wrap .sf-field select,
.sf-wrap .sf-field textarea {
    display: block !important;
    width: 100% !important;
    padding: 16px 20px;
    background-color: #cccccc;
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
    border-radius: 0;
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px;
    font-family: inherit !important;
    color: #333333;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: background 0.2s;
}
.sf-field input::placeholder,
.sf-field textarea::placeholder { color: #333333; opacity: 1; }
.sf-field input:focus,
.sf-field select:focus,
.sf-field textarea:focus { background-color: #bbbbbb; }
.sf-field textarea { min-height: 130px !important; resize: vertical !important; }

/* DSGVO */
.sf-dsgvo-wrap { margin: 10px 0; }
.sf-dsgvo-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-weight: 400;
    cursor: pointer !important;
    font-size: 13px;
    line-height: 1.5;
    opacity: 1;
}
.sf-dsgvo-label input[type=checkbox] { width:16px !important; height:16px !important; flex-shrink:0 !important; margin-top:2px !important; }
.sf-dsgvo-label a { color: #333333; text-decoration: underline; }
.sf-required { opacity: 1; margin-left: 2px; }

/* Submit */
.sf-submit-wrap { display: flex !important; justify-content: flex-end !important; padding-top: 10px; }
.sf-submit {
    background-color: transparent;
    color: #333333;
    border: 2px solid #333333;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer !important;
    font-family: inherit !important;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
}
.sf-submit:hover { background-color: rgba(0,0,0,0.08); }
.sf-submit:disabled { opacity: 1 !important; cursor: not-allowed !important; }

/* Erfolg / Fehler */
.sf-success { padding: 18px 20px; line-height: 1.6; background-color: rgba(0,0,0,0.05); }
.sf-error { color: #991b1b; padding: 12px 0; font-size: 0.9em; }

/* Sektions-Titel */
.sf-section-title { font-weight: 700 !important; border-bottom: 1px solid rgba(0,0,0,0.15) !important; padding-bottom: 5px; margin: 16px 0 10px; opacity: 0.7; }
.sf-divider { border: none !important; border-top: 1px solid rgba(0,0,0,0.1) !important; margin: 10px 0; }

/* Spinner */
.sf-spinner { width:14px !important; height:14px !important; border:2px solid rgba(255,255,255,.4) !important; border-top-color:#fff !important; border-radius:50% !important; display:inline-block !important; animation:sf-spin .6s linear infinite !important; }
@keyframes sf-spin { to { transform: rotate(360deg); } }

/* Produkte */
.sf-products { width:100% !important; margin-bottom:10px; }
.sf-product-row { display:flex !important; align-items:center !important; justify-content:space-between !important; padding:10px 0; border-bottom:1px solid rgba(0,0,0,0.1); gap:12px; }
.sf-product-row:last-child { border-bottom:none; }
.sf-product-info { flex:1 !important; display:flex !important; flex-direction:column !important; gap:2px; }
.sf-product-price { font-size:0.85em; font-weight:600; }
.sf-product-controls { display:flex !important; flex-direction:column !important; align-items:flex-end !important; gap:4px; }
.sf-qty-wrap { display:flex !important; align-items:center !important; }
.sf-qty-btn { width:30px !important; height:30px !important; border:1px solid rgba(0,0,0,0.2) !important; background-color:transparent; font-size:16px; cursor:pointer !important; display:flex !important; align-items:center !important; justify-content:center !important; color:inherit; }
.sf-qty-input { width:44px !important; height:30px !important; border:1px solid rgba(0,0,0,0.2) !important; border-left:none !important; border-right:none !important; text-align:center !important; font-size:0.9em; background-color:transparent; color:inherit; -moz-appearance:textfield !important; }
.sf-qty-input::-webkit-outer-spin-button, .sf-qty-input::-webkit-inner-spin-button { -webkit-appearance:none !important; }
.sf-total-price { padding:10px 0; font-weight:600; border-top:1px solid rgba(0,0,0,0.1); border-bottom:1px solid rgba(0,0,0,0.1); margin-top:8px; }
.sf-product-row:has(+ .sf-product-options) { border-bottom: none; }
.sf-product-options { padding:8px 14px 10px; display:flex; flex-wrap:wrap; align-items:center; gap:12px; border-bottom:1px solid rgba(0,0,0,0.1); }
.sf-product-opts-title { font-size:0.9em; font-weight:600; }
.sf-product-opt-label { display:flex; align-items:center; gap:6px; font-size:0.9em; cursor:pointer; }
.sf-field-desc { font-size:0.78em; opacity:0.6; margin-top:4px; }
.sf-recaptcha-notice { font-size:0.75em; opacity:0.5; margin:4px 0 10px; }
.sf-recaptcha-notice a { color:inherit; }

@media (max-width:480px) {
    .sf-submit-wrap { justify-content:stretch !important; }
    .sf-submit { width:100% !important; }
}
