.gfw-plakatportal,
.gfw-plakatportal-admin {
    --gfw-bg: #fffaf1;
    --gfw-text: #231a16;
    --gfw-muted: #66564d;
    --gfw-line: rgba(39, 30, 26, 0.12);
    --gfw-brand: #c95f37;
    --gfw-brand-dark: #942d1d;
    --gfw-accent: #0f8b8d;
    color: var(--gfw-text);
    font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gfw-poster-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: end;
    margin: 0 0 16px;
}

.gfw-poster-hero h1 {
    margin: 0 0 6px;
    font-size: clamp(1.85rem, 3.8vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: 0;
}

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

.gfw-poster-stats,
.gfw-area-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gfw-area-legend {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.gfw-poster-stats span,
.gfw-area-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid var(--gfw-line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.9);
    font-weight: 800;
    white-space: nowrap;
}

.gfw-poster-stats strong {
    font-weight: 800;
}

.gfw-poster-tools {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.gfw-area-filter button,
.gfw-secondary-button,
.gfw-primary-button {
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid var(--gfw-line);
    cursor: pointer;
    font-weight: 800;
}

.gfw-area-filter button {
    padding: 8px 14px;
    background: rgba(255, 253, 248, 0.95);
    color: var(--gfw-muted);
}

.gfw-area-filter button:hover,
.gfw-area-filter button.active {
    border-color: rgba(148, 45, 29, 0.28);
    background: rgba(201, 95, 55, 0.18);
    color: var(--gfw-brand-dark);
}

.gfw-area-legend i {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 50%;
}

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

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

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

.gfw-selected-address {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 139, 141, 0.22);
    border-radius: 8px;
    background: rgba(15, 139, 141, 0.08);
    color: var(--gfw-text);
    font-weight: 800;
    line-height: 1.35;
}

.gfw-poster-form {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--gfw-line);
    background: rgba(255, 250, 241, 0.86);
}

.gfw-password-form {
    display: grid;
    gap: 14px;
    width: min(100%, 430px);
    margin: 48px auto;
    padding: 24px;
    border: 1px solid var(--gfw-line);
    background: rgba(255, 250, 241, 0.92);
}

.gfw-poster-form h2,
.gfw-password-form h2 {
    margin: 0;
    font-size: 1.55rem;
}

.gfw-poster-form label,
.gfw-password-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.gfw-poster-form input,
.gfw-poster-form select,
.gfw-poster-form textarea,
.gfw-password-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(39, 30, 26, 0.16);
    border-radius: 10px;
    background: rgba(255, 253, 248, 0.94);
    color: var(--gfw-text);
    padding: 10px 12px;
    font: inherit;
}

.gfw-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gfw-camera-field {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 2px solid rgba(39, 30, 26, 0.18);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.94);
}

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

.gfw-photo-title {
    margin: 0;
    padding: 0 2px;
    color: var(--gfw-text);
    font-weight: 900;
    font-size: 1.08rem;
    line-height: 1.2;
}

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

.gfw-photo-choice-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 9px 12px;
    border: 2px solid rgba(39, 30, 26, 0.18);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.98);
    color: var(--gfw-text);
    cursor: pointer;
    font-weight: 900;
    text-align: center;
}

.gfw-camera-button {
    border-color: rgba(215, 25, 32, 0.55);
    color: #b71319;
}

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

.gfw-secondary-button {
    align-self: end;
    background: rgba(255, 253, 248, 0.95);
}

.gfw-primary-button {
    background: linear-gradient(135deg, var(--gfw-brand), var(--gfw-brand-dark));
    color: #fff;
}

.gfw-submit-poster-button {
    width: 100%;
    min-height: 50px;
    padding: 10px 12px;
    background: #e60000;
    color: #fff;
    font-size: 1rem;
    font-weight: 950;
    white-space: nowrap;
    line-height: 1;
}

.gfw-primary-button:disabled {
    cursor: wait;
    opacity: 0.68;
}

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

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

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

.gfw-selected-pin span,
.gfw-report-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(35, 26, 22, 0.28);
    transform: rotate(-45deg);
}

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

.gfw-poster-popup {
    display: grid;
    gap: 6px;
    min-width: 220px;
}

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

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

.gfw-remove-poster-button,
.gfw-navigate-poster-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(181, 59, 50, 0.35);
    border-radius: 8px;
    background: rgba(181, 59, 50, 0.1);
    color: #8d2d27;
    cursor: pointer;
    font-weight: 900;
}

.gfw-navigate-poster-button {
    border-color: rgba(15, 139, 141, 0.34);
    background: rgba(15, 139, 141, 0.1);
    color: #0d6f72;
    text-decoration: none;
}

.gfw-remove-poster-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

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

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

.gfw-admin-bulk-action {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 12px;
}

.gfw-admin-bulk-action label {
    font-weight: 700;
}

.gfw-admin-map-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0 10px;
}

.gfw-admin-map {
    width: 100%;
    min-height: 520px;
    margin: 0 0 18px;
    border: 1px solid var(--gfw-line);
    background: #e8efe8;
}

.gfw-plakatportal-admin .check-column {
    width: 3em;
    text-align: center;
}

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

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

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

.gfw-status-removal_pending {
    background: #eadff7;
    color: #6b3fa0;
}

.gfw-status-removed {
    background: #e2e8f0;
    color: #475569;
}

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

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

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

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

    .gfw-poster-hero h1 {
        font-size: 2rem;
    }

    .gfw-poster-hero p {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .gfw-poster-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gfw-poster-stats span {
        justify-content: center;
        padding: 7px 8px;
        font-size: 0.9rem;
    }

    .gfw-area-filter {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
    }

    .gfw-area-filter button {
        min-height: 36px;
        padding: 6px 4px;
        font-size: 0.82rem;
    }

    .gfw-area-legend {
        gap: 4px;
    }

    .gfw-area-legend span {
        justify-content: center;
        gap: 4px;
        padding: 5px 3px;
        font-size: 0.76rem;
    }

    .gfw-area-legend i {
        width: 9px;
        height: 9px;
        flex-basis: 9px;
    }

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

    .gfw-selected-address {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.88rem;
    }

    .gfw-poster-form {
        padding: 16px;
    }

    .gfw-camera-field {
        padding: 10px 12px;
    }

    .gfw-photo-actions {
        gap: 6px;
    }

    .gfw-photo-choice-button {
        min-height: 38px;
        padding: 7px 8px;
        font-size: 0.9rem;
    }

    .gfw-photo-title {
        font-size: 0.96rem;
    }

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