/* ============================================================
   MaHe LIVE – Fehler melden  |  style.css
   ============================================================ */

/* Wrapper & Trigger-Button */
.mahe-fm-wrap {
    margin: 2em 0 1em;
    text-align: right;
}

.mahe-fm-trigger {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .5em 1.1em;
    background: transparent;
    border: 1.5px solid #c8252d;
    border-radius: 4px;
    color: #c8252d;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, color .18s;
    line-height: 1.4;
}
.mahe-fm-trigger:hover,
.mahe-fm-trigger:focus-visible {
    background: #c8252d;
    color: #fff;
    outline: none;
}
.mahe-fm-trigger svg {
    flex-shrink: 0;
}

/* Overlay */
.mahe-fm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.mahe-fm-overlay[hidden] {
    display: none;
}

/* Modal */
.mahe-fm-modal {
    background: #fff;
    border-radius: 6px;
    padding: 2rem 2rem 1.5rem;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
}

.mahe-fm-close {
    position: absolute;
    top: .75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #555;
    padding: 0;
}
.mahe-fm-close:hover { color: #000; }

.mahe-fm-modal h2 {
    margin: 0 0 .5em;
    font-size: 1.25rem;
}
.mahe-fm-intro {
    margin: 0 0 1.25em;
    font-size: .9rem;
    color: #555;
}

/* Honeypot – komplett unsichtbar */
.mahe-fm-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

/* Felder */
.mahe-fm-field {
    margin-bottom: 1.1em;
}
.mahe-fm-field label {
    display: block;
    font-weight: 600;
    font-size: .875rem;
    margin-bottom: .35em;
}
.mahe-fm-field select,
.mahe-fm-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    padding: .55em .75em;
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .18s;
    background: #fafafa;
    color: #111;
    resize: vertical;
}
.mahe-fm-field select:focus,
.mahe-fm-field textarea:focus {
    outline: none;
    border-color: #c8252d;
    background: #fff;
}
.mahe-fm-counter {
    display: block;
    text-align: right;
    font-size: .78rem;
    color: #888;
    margin-top: .2em;
}
.mahe-fm-counter.warn { color: #c8252d; }

/* Aktionen */
.mahe-fm-actions {
    display: flex;
    gap: .75em;
    margin-top: 1.4em;
}
.mahe-fm-submit {
    padding: .6em 1.4em;
    background: #c8252d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s;
}
.mahe-fm-submit:hover  { background: #a51f26; }
.mahe-fm-submit:disabled { opacity: .6; cursor: not-allowed; }

.mahe-fm-cancel {
    padding: .6em 1.1em;
    background: none;
    border: 1.5px solid #bbb;
    border-radius: 4px;
    font-size: .9rem;
    cursor: pointer;
    color: #444;
    transition: border-color .18s;
}
.mahe-fm-cancel:hover { border-color: #888; }

/* Feedback-Nachricht */
.mahe-fm-message {
    margin-top: 1em;
    padding: .75em 1em;
    border-radius: 4px;
    font-size: .875rem;
}
.mahe-fm-message.success {
    background: #edfaed;
    border: 1px solid #00a32a;
    color: #006816;
}
.mahe-fm-message.error {
    background: #fcf0f1;
    border: 1px solid #c8252d;
    color: #a51f26;
}

/* Responsive */
@media (max-width: 480px) {
    .mahe-fm-modal  { padding: 1.5rem 1.25rem 1.25rem; }
    .mahe-fm-actions { flex-direction: column; }
    .mahe-fm-submit,
    .mahe-fm-cancel { width: 100%; }
    .mahe-fm-wrap   { text-align: left; }
}
