/* ═══════════════════════════════════════════════════════════════
   Olio Sardelia – Kontaktformular CSS v1.2
═══════════════════════════════════════════════════════════════ */

.osk-hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Wrapper ─────────────────────────────────────────────── */
.osk-wrapper {
    max-width: 760px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #2f2f2f;
    line-height: 1.75;
}

/* ── Header ──────────────────────────────────────────────── */
.osk-eyebrow {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a4f1d;
}

.osk-heading {
    margin: 0 0 14px;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    line-height: 1.15;
    color: #2f2a1f;
}

.osk-intro {
    margin: 0 0 32px;
    font-size: 1.05rem;
    color: #4a4338;
}

/* ── Formular-Box ────────────────────────────────────────── */
.osk-form {
    background: #fbfaf7;
    border: 1px solid #e6ddcf;
    border-radius: 18px;
    padding: 30px 28px;
}

/* ── Grid ────────────────────────────────────────────────── */
.osk-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}
.osk-grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ── Felder ──────────────────────────────────────────────── */
.osk-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.osk-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #2f2a1f;
}

.osk-required { color: #8b1e1e; margin-left: 2px; }
.osk-optional { font-weight: 400; color: #6a5c49; font-size: 0.88rem; }

.osk-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d8c9b4;
    border-radius: 12px;
    background: #ffffff;
    color: #2f2f2f;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
}

.osk-input:focus {
    outline: none;
    border-color: #9b6a2f;
    box-shadow: 0 0 0 3px rgba(155,106,47,.18);
}

/* ── Placeholder dunkel genug ────────────────────────────── */
.osk-input::placeholder {
    color: #7a6a56;
    opacity: 1;
}

.osk-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.osk-textarea::placeholder {
    color: #7a6a56;
    opacity: 1;
}

/* ── Select ──────────────────────────────────────────────── */
.osk-select-wrap {
    position: relative;
    display: block;
}

.osk-select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 40px 12px 14px !important;
    height: auto !important;
    line-height: 1.5 !important;
    min-height: 46px !important;
    border: 1px solid #d8c9b4;
    border-radius: 12px;
    background: #ffffff;
    color: #7a6a56;
    font-size: 1rem;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.osk-select.osk-selected {
    color: #2f2f2f;
}

.osk-select:focus {
    outline: none;
    border-color: #9b6a2f;
    box-shadow: 0 0 0 3px rgba(155,106,47,.18);
}

.osk-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #9b6a2f;
    font-size: 1rem;
}

/* ── Checkboxen ──────────────────────────────────────────── */
.osk-fieldset {
    border: 1px solid #e2d4bd;
    border-radius: 14px;
    padding: 20px 22px;
    margin: 0 0 18px;
    background: #f6f1e8;
}

.osk-fieldset legend.osk-label {
    padding: 0 6px;
    color: #2f2a1f;
}

.osk-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 20px;
    margin-top: 12px;
}

.osk-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #352d22;
    font-size: 0.95rem;
    line-height: 1.4;
}

.osk-checkbox {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #9b6a2f;
    cursor: pointer;
}

.osk-checkbox-text {
    display: block;
}

/* ── Datenschutz ─────────────────────────────────────────── */
.osk-datenschutz {
    background: #f6f1e8;
    border: 1px solid #e2d4bd;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.osk-datenschutz-label {
    font-weight: 400 !important;
}

.osk-datenschutz a {
    color: #7a4f1d;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Submit ──────────────────────────────────────────────── */
.osk-submit-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.osk-btn {
    display: inline-block;
    background: #2f2a1f;
    color: #f6f1e8;
    border: 2px solid #2f2a1f;
    border-radius: 999px;
    padding: 13px 28px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    letter-spacing: 0.02em;
}

.osk-btn:hover,
.osk-btn:focus {
    background: #9b6a2f;
    border-color: #9b6a2f;
    color: #ffffff;
    outline: none;
}

.osk-pflicht-hinweis {
    margin: 0;
    font-size: 0.88rem;
    color: #6a5c49;
}

/* ── Alerts ──────────────────────────────────────────────── */
.osk-alert {
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.6;
    border: 1px solid transparent;
}

.osk-alert--success {
    background: #edf7ed;
    border-color: #7dba84;
    color: #1e4d21;
}

.osk-alert--error {
    background: #fdf2f2;
    border-color: #e0a0a0;
    color: #7a1e1e;
}

/* ── Rechenaufgabe ───────────────────────────────────────── */
.osk-captcha-field {
    background: #f6f1e8;
    border: 1px solid #e2d4bd;
    border-left: 5px solid #9b6a2f;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 18px;
}

.osk-captcha-input {
    max-width: 100% !important;
    width: 100% !important;
    text-align: left;
    font-size: 1rem !important;
    font-weight: 400;
    color: #2f2f2f;
}

.osk-captcha-input::placeholder {
    color: #7a6a56;
    opacity: 1;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 560px) {
    .osk-form { padding: 22px 16px; }
    .osk-checkbox-grid { grid-template-columns: 1fr; }
    .osk-submit-row { flex-direction: column; align-items: flex-start; }
}

/* Select-Farbe nach Auswahl via JS-Klasse */
.osk-select.osk-has-value {
    color: #2f2f2f;
}
