/* ═══════════════════════════════════════════════════════════
   Allgemeine Bestellungen – Frontend Formular
   ═══════════════════════════════════════════════════════════ */

.ab-wrap {
    max-width: 860px;
    margin: 0 auto 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #222;
    font-size: 15px;
}

/* Notices */
.ab-notice { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; font-size: 14px; }
.ab-notice-success { background: #e8f5e9; border-left: 5px solid #2e7d32; color: #2e7d32; }
.ab-notice-error   { background: #ffebee; border-left: 5px solid #c62828; color: #c62828; }

/* Form container */
.ab-form {
    background: #fff;
    border: 1px solid #dde8dd;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    overflow: hidden;
}

/* Section */
.ab-section { padding: 24px 28px; border-bottom: 1px solid #eef5ee; }
.ab-section:last-of-type { border-bottom: none; }

/* Section title */
.ab-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #2e7d32;
    border-bottom: 2px solid #e8f5e9;
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.ab-section-icon { font-size: 18px; line-height: 1; }

/* Grid */
.ab-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-bottom: 16px; }
.ab-row:last-child { margin-bottom: 0; }
.ab-col { display: flex; flex-direction: column; gap: 6px; }
.ab-col-full { grid-column: 1 / -1; }

/* Labels */
.ab-label { font-size: 13px; font-weight: 600; color: #444; display: block; }
.ab-sub { font-weight: 400; color: #888; font-size: 12px; }
.ab-req { color: #c62828; margin-left: 2px; }

/* Inputs – Basis */
.ab-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #c8e6c9;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    background: #f8fbf8;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
}
.ab-input:focus {
    outline: none;
    border-color: #2e7d32;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46,125,50,.13);
}

/* Theme-Override fix: text / tel / number bekommen explizite !important Rahmen */
.ab-wrap input[type="text"].ab-input,
.ab-wrap input[type="tel"].ab-input,
.ab-wrap input[type="number"].ab-input {
    border: 1.5px solid #c8e6c9 !important;
    border-radius: 8px !important;
    background: #f8fbf8 !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #222 !important;
    box-shadow: none !important;
    outline: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.ab-wrap input[type="text"].ab-input:focus,
.ab-wrap input[type="tel"].ab-input:focus,
.ab-wrap input[type="number"].ab-input:focus {
    border-color: #2e7d32 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(46,125,50,.13) !important;
    outline: none !important;
}

select.ab-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232e7d32' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.ab-textarea-lg { min-height: 130px; resize: vertical; line-height: 1.6; }
.ab-textarea-md { min-height: 90px;  resize: vertical; line-height: 1.6; }

/* Radios */
.ab-radios { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 0; }
.ab-radio-lbl { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 14px; font-weight: 500; color: #333; user-select: none; }
.ab-radio-lbl input[type="radio"] { width: 17px; height: 17px; accent-color: #2e7d32; cursor: pointer; flex-shrink: 0; }

/* File upload */
.ab-upload-box { border: 2px dashed #a5d6a7; border-radius: 8px; background: #f1f8f1; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ab-upload-box input[type="file"] { font-size: 13px; cursor: pointer; color: #444; }
.ab-upload-box small { color: #888; font-size: 12px; }
.ab-link { color: #1565c0; text-decoration: underline; font-weight: 500; }

/* Footer info */
.ab-footer-info {
    background: #f1f8e9;
    border-top: 1px solid #e8f5e9;
    padding: 12px 28px;
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: #555;
    flex-wrap: wrap;
}
.ab-footer-info strong { color: #2e7d32; }

/* Buttons */
.ab-buttons {
    background: #f8f8f8;
    border-top: 1px solid #eef5ee;
    padding: 20px 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.ab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .18s, transform .12s, box-shadow .18s;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    line-height: 1;
}
.ab-btn:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.16); text-decoration: none; }
.ab-btn:active { transform: translateY(0); }
.ab-btn-green { background: #2e7d32; color: #fff !important; }
.ab-btn-blue  { background: #1565c0; color: #fff !important; }
.ab-btn-gray  { background: #546e7a; color: #fff !important; }

/* Responsive */
@media (max-width: 640px) {
    .ab-section { padding: 18px 16px; }
    .ab-row { grid-template-columns: 1fr; }
    .ab-col-full { grid-column: 1; }
    .ab-buttons { flex-direction: column; padding: 16px; }
    .ab-btn { justify-content: center; width: 100%; }
    .ab-footer-info { padding: 12px 16px; flex-direction: column; gap: 6px; }
}
