/* ======== MODAL LAYER ======== */
#report-issue-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* über allem, auch Header-Menü */
}

/* ======== POPUP-INHALT ======== */
/* Popup-Container: weniger hoch, etwas breiter, kein globaler Scrollbar */
.report-issue-content {
    background: #fff;
    padding: 20px 22px;          /* etwas kleinere Polsterung */
    width: 520px;                /* ein Tick breiter */
    max-width: 94%;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    position: relative;
    max-height: calc(100vh - 120px); /* bleibt 120px unterhalb der Viewporthöhe */
    overflow: visible;           /* wichtig: kein eigener Scrollbar */
    font-family: system-ui, sans-serif;
}

/* ======== TITEL UND BUTTONS ======== */
.report-issue-content h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Schließen-Button oben rechts */
#report-issue-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #eee;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
}
#report-issue-close:hover {
    background: #ccc;
}

/* ======== FORM ======== */
#report-issue-form label {
    display: block;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 3px;
}
#report-issue-form input,
#report-issue-form textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
}
#report-issue-form textarea {
    resize: vertical;
    min-height: 70px;            /* kürzer => weniger Platzbedarf */
    max-height: 180px;           /* begrenzt, verhindert extremes Wachsen */
    overflow: auto;              /* nur im textarea evtl. scrollbar */
}
#report-issue-form .button {
    margin-top: 15px;
    padding: 10px 18px;
    border-radius: 6px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
#report-issue-form .button:hover {
    background-color: #005d87;
}

/* ======== ERFOLGSMELDUNG ======== */
#report-issue-success {
    background-color: #e6ffed;
    border: 1px solid #2ecc71;
    color: #2b7a2b;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: none;
    font-size: 0.9rem;
    white-space: pre-line;
}

/* ======== HIDDEN STATE ======== */
.hidden {
    display: none !important;
}
