/* mod_o3kontaktsimple – Einfaches Kontaktformular */

.o3s-wrap {
    max-width: 720px !important;
    margin: 0 auto !important;
}

/* Heading: KONTAKT with colorful letters */
.o3s-wrap .o3s-heading {
    font-size: 1.8em !important;
    font-weight: 300 !important;
    letter-spacing: 0.15em !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.o3s-wrap .o3s-c1 { color: #e74c3c !important; } /* K - rot */
.o3s-wrap .o3s-c2 { color: #e67e22 !important; } /* O - orange */
.o3s-wrap .o3s-c3 { color: #f1c40f !important; } /* N - gelb */
.o3s-wrap .o3s-c4 { color: #27ae60 !important; } /* T - gruen */
.o3s-wrap .o3s-c5 { color: #3498db !important; } /* A - blau */
.o3s-wrap .o3s-c6 { color: #8e44ad !important; } /* K - lila */
.o3s-wrap .o3s-c7 { color: #e74c3c !important; } /* T - rot */

/* Intro text */
.o3s-wrap .o3s-intro {
    color: #666 !important;
    font-size: 0.95em !important;
    line-height: 1.6 !important;
    margin: 0 0 28px 0 !important;
    padding: 0 !important;
}

/* Form – clean, no border/background */
.o3s-wrap .o3s-form {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Rows */
.o3s-wrap .o3s-row {
    margin-bottom: 20px !important;
}

.o3s-wrap .o3s-row:last-child {
    margin-bottom: 0 !important;
}

.o3s-wrap .o3s-row-2col {
    display: flex !important;
    gap: 20px !important;
}

.o3s-wrap .o3s-full {
    width: 100% !important;
}

.o3s-wrap .o3s-half {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

/* Labels */
.o3s-wrap .o3s-field > label {
    display: block !important;
    float: none !important;
    width: auto !important;
    text-align: left !important;
    color: #555 !important;
    font-weight: normal !important;
    font-size: 0.9em !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
}

.o3s-wrap .o3s-req {
    color: #c0392b !important;
    font-weight: bold !important;
}

/* Inputs & Textarea */
.o3s-wrap .o3s-field input[type="text"],
.o3s-wrap .o3s-field input[type="email"],
.o3s-wrap .o3s-field textarea {
    display: block !important;
    width: 100% !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 12px 14px !important;
    font-size: 1em !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    background: #fff !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    height: auto !important;
    line-height: normal !important;
    color: #333 !important;
}

.o3s-wrap .o3s-field input[type="text"]:focus,
.o3s-wrap .o3s-field input[type="email"]:focus,
.o3s-wrap .o3s-field textarea:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15) !important;
    outline: none !important;
}

.o3s-wrap .o3s-field input::placeholder,
.o3s-wrap .o3s-field textarea::placeholder {
    color: #aaa !important;
}

/* Error state on inputs */
.o3s-wrap .o3s-input-error,
.o3s-wrap input.o3s-input-error,
.o3s-wrap textarea.o3s-input-error {
    border-color: #c0392b !important;
}

/* Tooltip-style error messages */
.o3s-wrap .o3s-tip {
    position: relative;
    background: #c0392b;
    color: #fff !important;
    font-size: 0.82em !important;
    padding: 6px 12px !important;
    border-radius: 5px !important;
    margin-top: 6px !important;
    display: inline-block;
    max-width: 100%;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.o3s-wrap .o3s-tip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 16px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #c0392b;
}

/* Honeypot */
.o3s-wrap .o3s-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* Submit button */
.o3s-wrap .o3s-btn-submit {
    display: inline-block !important;
    background: #555 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 36px !important;
    font-size: 1em !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    font-family: inherit !important;
    text-align: center !important;
    line-height: 1.4 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    letter-spacing: 0.02em !important;
}

.o3s-wrap .o3s-btn-submit:hover {
    background: #333 !important;
}

.o3s-wrap .o3s-btn-submit:disabled {
    opacity: 0.7 !important;
    cursor: wait !important;
}

/* Overlay / Lightbox */
.o3s-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.o3s-overlay-box {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 40px !important;
    max-width: 480px !important;
    width: 100% !important;
    text-align: center !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    animation: o3s-fadeIn 0.3s ease !important;
}

@keyframes o3s-fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.o3s-overlay-title {
    color: #27ae60 !important;
    font-size: 1.6em !important;
    margin: 0 0 12px 0 !important;
}

.o3s-overlay-title.o3s-overlay-error {
    color: #c0392b !important;
}

.o3s-overlay-text {
    color: #555 !important;
    font-size: 1.05em !important;
    margin: 0 0 24px 0 !important;
    line-height: 1.5 !important;
}

.o3s-overlay .o3s-btn-submit {
    display: inline-block !important;
    width: auto !important;
    padding: 12px 40px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .o3s-wrap .o3s-row-2col {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .o3s-wrap .o3s-half {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
}
