.gfw-meldungsportal,
.gfw-meldungsportal-admin {
    --gfw-meldung-bg: #f7f8f5;
    --gfw-meldung-text: #1d2522;
    --gfw-meldung-muted: #5d6964;
    --gfw-meldung-line: rgba(29, 37, 34, 0.14);
    --gfw-meldung-green: #16745b;
    --gfw-meldung-red: #e60000;
    --gfw-meldung-blue: #0054a6;
    color: var(--gfw-meldung-text);
    font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gfw-meldung-hero,
.gfw-meldung-auth {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.gfw-meldung-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.gfw-meldung-hero h1,
.gfw-meldung-auth h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.gfw-meldung-hero p,
.gfw-meldung-auth p,
.gfw-meldung-form p {
    margin: 0;
    color: var(--gfw-meldung-muted);
    line-height: 1.55;
}

.gfw-meldung-form .gfw-meldung-photo-required {
    padding: 10px 12px;
    border: 1px solid rgba(230, 0, 0, 0.2);
    border-radius: 8px;
    background: rgba(230, 0, 0, 0.06);
    color: #9b0000;
    font-weight: 900;
}

.gfw-meldung-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
    gap: 20px;
    align-items: start;
}

.gfw-meldung-public-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px;
    min-height: 52px;
    padding: 12px 16px;
    border: 2px solid var(--gfw-meldung-blue);
    border-radius: 8px;
    background: var(--gfw-meldung-blue);
    color: #fff;
    font-weight: 950;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.gfw-meldung-map-panel {
    display: grid;
    gap: 8px;
}

.gfw-meldung-map-legend {
    padding: 10px 12px;
    border: 1px solid rgba(0, 84, 166, 0.22);
    border-radius: 8px;
    background: rgba(0, 84, 166, 0.08);
    color: var(--gfw-meldung-blue);
    font-weight: 900;
    line-height: 1.35;
}

.gfw-meldung-category-filter {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--gfw-meldung-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
}

.gfw-meldung-category-filter legend {
    padding: 0 4px;
    color: var(--gfw-meldung-text);
    font-weight: 950;
}

.gfw-meldung-category-filter > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gfw-meldung-category-filter label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 84, 166, 0.18);
    border-radius: 999px;
    background: rgba(0, 84, 166, 0.06);
    color: var(--gfw-meldung-blue);
    font-weight: 900;
}

.gfw-meldung-category-filter input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.gfw-meldung-map {
    min-height: 720px;
    overflow: hidden;
    border: 1px solid var(--gfw-meldung-line);
    border-radius: 14px;
    background: #e4ebe5;
}

.gfw-meldung-public-map {
    min-height: 76vh;
}

.gfw-meldung-privacy {
    display: grid;
    gap: 10px;
    max-width: 860px;
    line-height: 1.6;
}

.gfw-meldung-privacy h1,
.gfw-meldung-privacy h2,
.gfw-meldung-privacy p {
    margin: 0;
}

.gfw-meldung-privacy h2 {
    margin-top: 10px;
}

.gfw-meldung-address {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(22, 116, 91, 0.24);
    border-radius: 8px;
    background: rgba(22, 116, 91, 0.08);
    font-weight: 850;
    line-height: 1.35;
}

.gfw-meldung-form,
.gfw-meldung-auth-grid form,
.gfw-meldung-reset-form {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--gfw-meldung-line);
    background: rgba(255, 255, 255, 0.86);
}

.gfw-meldung-form h2,
.gfw-meldung-auth-grid h2,
.gfw-meldung-reset-form h2 {
    margin: 0;
    font-size: 1.4rem;
}

.gfw-meldung-form label,
.gfw-meldung-auth-grid label,
.gfw-meldung-reset-form label {
    display: grid;
    gap: 7px;
    font-weight: 850;
}

.gfw-meldung-form small,
.gfw-meldung-auth-grid small,
.gfw-meldung-reset-form small {
    color: var(--gfw-meldung-muted);
    font-weight: 700;
}

.gfw-meldung-form input,
.gfw-meldung-form select,
.gfw-meldung-form textarea,
.gfw-meldung-auth-grid input,
.gfw-meldung-reset-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(29, 37, 34, 0.16);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--gfw-meldung-text);
    padding: 10px 12px;
    font: inherit;
    font-size: 1.04rem;
}

.gfw-meldung-photo-field {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 2px solid rgba(29, 37, 34, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
}

.gfw-meldung-photo-title {
    font-weight: 950;
    font-size: 1.05rem;
    line-height: 1.2;
}

.gfw-meldung-photo-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.gfw-meldung-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.gfw-meldung-photo-actions label,
.gfw-meldung-secondary,
.gfw-meldung-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 2px solid rgba(29, 37, 34, 0.18);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 950;
    text-align: center;
}

.gfw-meldung-photo-actions label {
    background: rgba(255, 255, 255, 0.98);
}

.gfw-meldung-secondary {
    background: #fff;
    color: var(--gfw-meldung-text);
    font-size: 1.05rem;
}

.gfw-meldung-submit {
    width: 100%;
    background: var(--gfw-meldung-red);
    color: #fff;
    border-color: var(--gfw-meldung-red);
    font-size: 1.08rem;
    white-space: nowrap;
}

.gfw-meldung-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.gfw-meldung-logout {
    min-height: 42px;
    padding: 8px 14px;
    border: 2px solid rgba(29, 37, 34, 0.16);
    border-radius: 8px;
    background: #fff;
    color: var(--gfw-meldung-text);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.gfw-meldung-logout:disabled {
    cursor: wait;
    opacity: 0.7;
}

.gfw-meldung-photo-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--gfw-meldung-line);
}

.gfw-meldung-message {
    min-height: 22px;
    color: var(--gfw-meldung-muted);
    font-weight: 800;
}

.gfw-meldung-message.success {
    color: #126a47;
}

.gfw-meldung-message.error {
    color: #9b2d25;
}

.gfw-meldung-char-counter {
    color: var(--gfw-meldung-muted);
    font-size: 0.88rem;
    font-weight: 850;
    text-align: right;
}

.gfw-meldung-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.gfw-meldung-reset-form {
    margin: 12px 0 4px;
}

.gfw-meldung-selected-pin span,
.gfw-meldung-pin span {
    display: block;
    width: 24px;
    height: 24px;
    margin: 2px auto 0;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 8px 18px rgba(29, 37, 34, 0.25);
    transform: rotate(-45deg);
}

.gfw-meldung-selected-pin span {
    width: 30px;
    height: 30px;
    background: var(--gfw-meldung-blue);
}

.gfw-meldung-popup {
    display: grid;
    gap: 6px;
    min-width: 230px;
}

.gfw-meldung-popup img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.gfw-meldung-popup-image {
    display: block;
}

.gfw-meldung-popup p {
    margin: 0;
}

.gfw-meldung-flag-toggle {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gfw-meldung-red);
    cursor: pointer;
    font: inherit;
    font-weight: 950;
    text-decoration: underline;
}

.gfw-meldung-modal-open {
    overflow: hidden;
}

.gfw-meldung-flag-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.48);
}

.gfw-meldung-flag-modal[hidden] {
    display: none;
}

.gfw-meldung-flag-dialog {
    position: relative;
    display: grid;
    gap: 10px;
    width: min(520px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.gfw-meldung-flag-dialog h2,
.gfw-meldung-flag-dialog p {
    margin: 0;
}

.gfw-meldung-flag-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(29, 37, 34, 0.08);
    color: var(--gfw-meldung-text);
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
}

.gfw-meldung-idle-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.45);
}

.gfw-meldung-idle-modal[hidden] {
    display: none;
}

.gfw-meldung-idle-dialog {
    display: grid;
    gap: 12px;
    width: min(420px, 100%);
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    color: var(--gfw-meldung-text);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.gfw-meldung-idle-dialog strong {
    font-size: 1.1rem;
    line-height: 1.35;
}

.gfw-meldung-idle-dialog span {
    color: var(--gfw-meldung-red);
    font-weight: 950;
}

.gfw-meldung-idle-dialog button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--gfw-meldung-blue);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 950;
}

.gfw-meldung-flag-form {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--gfw-meldung-line);
}

.gfw-meldung-flag-form[hidden] {
    display: none;
}

.gfw-meldung-flag-form label {
    display: grid;
    gap: 5px;
    font-weight: 850;
}

.gfw-meldung-flag-form textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    border: 1px solid rgba(29, 37, 34, 0.18);
    border-radius: 8px;
    padding: 8px;
    font: inherit;
}

.gfw-meldung-flag-form input {
    width: 100%;
    min-height: 36px;
    border: 1px solid rgba(29, 37, 34, 0.18);
    border-radius: 8px;
    padding: 7px 8px;
    font: inherit;
}

.gfw-meldung-flag-form small {
    color: var(--gfw-meldung-muted);
}

.gfw-meldung-flag-form button {
    min-height: 36px;
    border: 0;
    border-radius: 8px;
    background: var(--gfw-meldung-red);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 950;
}

.gfw-meldung-flag-form button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.gfw-meldung-flag-message {
    min-height: 18px;
    color: var(--gfw-meldung-muted);
    font-size: 0.85rem;
    font-weight: 850;
}

.gfw-meldung-flag-message.success {
    color: #126a47;
}

.gfw-meldung-flag-message.error {
    color: #9b2d25;
}

.gfw-meldung-admin-thumb {
    width: 130px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.gfw-meldung-admin-action {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.gfw-meldung-admin-filters,
.gfw-meldung-admin-sort,
.gfw-meldung-bulk-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 12px 0;
}

.gfw-meldung-admin-sort label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
}

.gfw-meldungsportal-admin .gfw-meldung-reported-row td,
.gfw-meldungsportal-admin .gfw-meldung-reported-row th {
    background: #ffe5e5;
}

.gfw-meldung-reported-label {
    display: inline-block;
    margin: 4px 0;
    color: #b00000;
    font-weight: 950;
}

.gfw-meldung-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-weight: 850;
}

.gfw-meldung-status-pending {
    background: #f8e4c8;
    color: #8b4d12;
}

.gfw-meldung-status-approved {
    background: #d9f1e7;
    color: #126a47;
}

.gfw-meldung-status-blocked {
    background: #f3d5d2;
    color: #8d2d27;
}

@media (max-width: 980px) {
    .gfw-meldung-grid,
    .gfw-meldung-auth-grid {
        grid-template-columns: 1fr;
    }

    .gfw-meldung-map {
        min-height: 62vh;
    }
}

@media (max-width: 640px) {
    .gfw-meldungsportal {
        font-size: 15px;
    }

    .gfw-meldung-hero {
        grid-template-columns: 1fr;
    }

    .gfw-meldung-map {
        min-height: 54vh;
        border-radius: 10px;
    }

    .gfw-meldung-form,
    .gfw-meldung-auth-grid form,
    .gfw-meldung-reset-form {
        padding: 16px;
    }

    .gfw-meldung-submit,
    .gfw-meldung-secondary,
    .gfw-meldung-public-notice {
        min-height: 52px;
        font-size: 1.08rem;
    }

    .gfw-meldung-flag-modal {
        align-items: stretch;
        padding: 10px;
    }

    .gfw-meldung-flag-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 18px 14px;
    }

    .gfw-meldung-flag-form input,
    .gfw-meldung-flag-form textarea,
    .gfw-meldung-flag-form button {
        min-height: 46px;
        font-size: 1rem;
    }
}
