/* API-Dokumentation */
.api-code {
    background: #111827;
    color: #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-size: 0.8125rem;
    line-height: 1.6;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.api-code code {
    white-space: pre;
}

.api-inline {
    font-size: 0.8125rem;
    background: #f3f4f6;
    color: #374151;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.api-method {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-family: ui-monospace, monospace;
}

.api-method-get { background: #dcfce7; color: #15803d; }
.api-method-post { background: #dbeafe; color: #1d4ed8; }
.api-method-patch { background: #fef3c7; color: #b45309; }
.api-method-delete { background: #fee2e2; color: #b91c1c; }

.api-path {
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
    color: #111827;
}

.api-endpoint {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.api-endpoint:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

/* Footer immer am unteren Bildschirmrand */
.site-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Startseite: Header + Ticker + Karte + Footer ohne Scrollen */
.page-home {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

.page-home .site-header,
.page-home .site-ticker,
.page-home .site-footer {
    flex-shrink: 0;
}

@media (max-width: 1023px) {
    .page-home .site-footer {
        display: none;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer-Navigation als Pills */
.footer-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 9999px;
    transition: background 0.15s, color 0.15s;
}

.footer-pill:hover {
    background: #ffedd5;
    color: #c2410c;
}

/* Warnhinweis */
.site-ticker.ticker-pulse {
    background-color: #fde047;
    border-color: #ca8a04;
    animation: ticker-pulse 2.5s ease-in-out infinite;
}

.ticker-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 2.25rem 0.625rem 1rem;
    text-align: center;
}

.ticker-dismiss {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    font-size: 0.75rem;
    line-height: 1;
    color: #92400e;
    background: rgba(255, 255, 255, 0.45);
    border: 0;
    border-radius: 9999px;
    cursor: pointer;
    opacity: 0.85;
}

.ticker-dismiss:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.7);
}

.site-ticker.is-dismissed {
    display: none;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.ticker-text {
    margin: 0;
    line-height: 1.45;
}

.ticker-text-desktop {
    font-size: 0.875rem;
}

@media (max-width: 1023px) {
    .site-ticker.ticker-pulse {
        animation: none;
        background-color: #fefce8;
        border-color: #fde68a;
    }

    .ticker-inner {
        padding: 0.3rem 2rem 0.3rem 0.75rem;
    }

    .ticker-text-mobile {
        font-size: 0.6875rem;
        font-weight: 500;
        color: #92400e;
        line-height: 1.3;
    }
}

@keyframes ticker-pulse {
    0%, 100% {
        background-color: #fde047;
        border-color: #ca8a04;
        box-shadow: inset 0 0 0 0 rgba(180, 83, 9, 0);
    }
    50% {
        background-color: #facc15;
        border-color: #a16207;
        box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.12);
    }
}

/* 2-Spalten-Layout */
#map-wrapper {
    z-index: 1;
}

#map {
    z-index: 1;
    height: 100%;
}

/* Karten-Skeleton */
.map-skeleton {
    position: absolute;
    inset: 0;
    z-index: 25;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 50%, #f9fafb 100%);
    overflow: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.map-skeleton.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.map-skeleton-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: map-skeleton-shimmer 1.6s ease-in-out infinite;
}

@keyframes map-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.map-skeleton-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.map-skeleton-pin {
    width: 28px;
    height: 28px;
    background: #d1d5db;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    animation: map-skeleton-pulse 1.4s ease-in-out infinite;
}

@keyframes map-skeleton-pulse {
    0%, 100% { opacity: 0.45; transform: rotate(-45deg) scale(1); }
    50% { opacity: 0.85; transform: rotate(-45deg) scale(1.08); }
}

.map-skeleton-text {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

/* Karten-Toolbar */
.map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem 0.875rem;
    padding: 0.75rem 1rem;
    min-height: 3.25rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 30;
    flex-shrink: 0;
    overflow: visible;
}

.map-toolbar-start {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 0 1 auto;
    min-width: 0;
}

.map-toolbar-info {
    flex: 0 1 auto;
    line-height: 1.35;
}

.map-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
    margin-left: auto;
}

.map-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.map-toolbar-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.map-toolbar-btn-locate {
    color: #c2410c;
    border-color: #fed7aa;
    background: #fff7ed;
}

.map-toolbar-btn-locate:hover {
    background: #ffedd5;
}

.map-view-switch {
    display: inline-flex;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.map-view-switch .map-view-btn {
    padding: 0.55rem 0.75rem;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
    color: #4b5563;
    background: #fff;
    border: 0;
    border-right: 1px solid #e5e7eb;
    cursor: pointer;
}

.map-view-switch .map-view-btn:last-child {
    border-right: 0;
}

.map-filter-anchor {
    position: relative;
}

.map-filter-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    padding: 12px 14px;
    z-index: 55;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-filter-dropdown.is-collapsed {
    display: none;
}

.map-filter-dropdown-title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
}

.map-filter-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}

.map-filter-field .map-filter-select {
    width: 100%;
}

.map-filter-chip-block {
    width: 100%;
    justify-content: center;
}

.map-toolbar-btn-filter {
    position: relative;
}

.map-filter-active-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f97316;
    border: 1.5px solid #fff;
    box-shadow: 0 0 0 1px #fed7aa;
}

.map-legend-anchor {
    position: relative;
}

.map-legend-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 250px;
    padding: 12px 14px;
    z-index: 50;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.map-toolbar-btn[aria-expanded="true"] {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.map-legend-dropdown.is-collapsed {
    display: none;
}

@media (min-width: 1024px) {
    .map-toolbar {
        flex-wrap: nowrap;
        padding: 0.875rem 1.125rem;
        min-height: 3.5rem;
        gap: 1rem;
    }
}

@media (max-width: 1023px) {
    .map-toolbar {
        padding: 0.75rem 0.875rem;
        min-height: 3.5rem;
    }

    .map-toolbar-start {
        flex: 1 1 calc(100% - 11.5rem);
    }
}

@media (max-width: 480px) {
    .map-toolbar-start {
        flex-basis: 100%;
    }

    .map-toolbar-actions {
        flex-basis: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
}

/* Leerer Zustand auf der Karte (Pill) */
.map-empty-state {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem 0.75rem 0;
    pointer-events: none;
}

.map-empty-state.hidden {
    display: none;
}

.map-empty-state-card {
    max-width: calc(100% - 1rem);
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(229, 231, 235, 0.65);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-align: left;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.map-empty-state.is-scrolling .map-empty-state-card {
    opacity: 0;
    transform: translateY(-6px);
}

.map-empty-state-icon {
    font-size: 0.875rem;
    margin-bottom: 0;
    opacity: 0.7;
    flex-shrink: 0;
}

.map-empty-state-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0;
    white-space: nowrap;
}

.map-empty-state-text {
    display: none;
}

/* Karten-Legende (Dropdown in Toolbar) */
.map-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.45;
}

.map-legend-item + .map-legend-item {
    margin-top: 10px;
    padding-top: 2px;
}

.map-legend-swatch {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    position: relative;
}

.map-legend-swatch-single {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
}

.map-legend-swatch-trusted {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #22c55e, 0 2px 6px rgba(34, 197, 94, 0.3);
}

.map-legend-swatch-cluster {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
}

.map-legend-swatch-cluster span {
    position: absolute;
    top: -6px;
    right: -10px;
    transform: rotate(45deg);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 12px;
    text-align: center;
    border-radius: 8px;
    border: 1.5px solid #fff;
}

.map-legend-swatch-preview {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.map-legend-swatch-heatmap {
    width: 22px;
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #fde68a, #fb923c, #b91c1c);
    border: 1px solid #e5e7eb;
    align-self: center;
}

/* Präzisions-Cursor – #map ist selbst der leaflet-container */
#map.leaflet-container,
#map.leaflet-grab {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath stroke='%23ffffff' stroke-width='3' stroke-linecap='round' d='M16 2v10M16 20v10M2 16h10M20 16h10'/%3E%3Cpath stroke='%23111111' stroke-width='1.5' stroke-linecap='round' d='M16 2v10M16 20v10M2 16h10M20 16h10'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%23111111' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E") 16 16, crosshair !important;
}

#map.leaflet-dragging {
    cursor: grabbing !important;
}

#map .leaflet-pane,
#map .leaflet-tile,
#map .leaflet-tile-pane,
#map .leaflet-overlay-pane {
    cursor: inherit !important;
}

#map .leaflet-marker-icon {
    cursor: pointer !important;
}

#map .leaflet-control-zoom a,
#map .leaflet-popup,
#map .leaflet-popup-content-wrapper {
    cursor: pointer !important;
}

.photo-dropzone-active {
    border-color: #fb923c !important;
    background-color: #fff7ed !important;
}

.leaflet-container {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Karten-Marker */
.meldefuchs-marker-wrap {
    position: relative;
}

.meldefuchs-marker-wrap--nest {
    width: 28px;
    height: 28px;
}

.meldefuchs-nest-pin {
    width: 20px;
    height: 20px;
    margin: 4px;
    border-radius: 50%;
    background: #f97316;
    border: 2.5px solid #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.28);
}

.meldefuchs-nest-pin--trusted {
    background: #ea580c;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #22c55e, 0 2px 6px rgba(15, 23, 42, 0.22);
}

.meldefuchs-nest-pin--resolved {
    background: #9ca3af;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    position: relative;
}

.meldefuchs-nest-pin--resolved::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.meldefuchs-badge {
    display: inline-block;
    margin-right: 4px;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.meldefuchs-badge--resolved {
    background: #e5e7eb;
    color: #374151;
}

.meldefuchs-badge--resolved-inline {
    display: inline;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 9999px;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 10px;
    font-weight: 600;
}

.meldefuchs-badge--progress {
    background: #dbeafe;
    color: #1d4ed8;
}

.meldefuchs-popup-id {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}

.meldefuchs-popup-share-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.meldefuchs-popup-share-btn:hover {
    border-color: #fdba74;
    color: #c2410c;
    background: #fff7ed;
}

.share-link-card {
    max-width: 26rem;
    text-align: left;
}

.share-link-field-wrap {
    margin-top: 0.25rem;
}

.share-link-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #374151;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.share-link-input:focus {
    outline: 2px solid #fdba74;
    outline-offset: 1px;
    border-color: #f97316;
    background: #fff;
}

.share-link-feedback {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #15803d;
}

.share-link-feedback.hidden {
    display: none;
}

.share-link-card .thank-you-icon {
    margin-left: 0;
    margin-right: auto;
}

.meldefuchs-popup-report-link {
    display: inline-block;
    margin-right: 6px;
    color: #ea580c;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.meldefuchs-popup-report-link:hover {
    text-decoration: underline;
}

.map-legend-swatch-resolved {
    background: #9ca3af;
    position: relative;
}

.map-legend-swatch-resolved::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.meldefuchs-pin {
    width: 18px;
    height: 18px;
    margin: 5px;
    border-radius: 50%;
    background: #f97316;
    border: 2.5px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.24);
}

.meldefuchs-pin--new {
    background: #22c55e;
    animation: pulse-marker 1.5s ease-in-out infinite;
}

.meldefuchs-pin--preview {
    background: #fbbf24;
    animation: pulse-marker 1.2s ease-in-out infinite;
}

.meldefuchs-marker-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    z-index: 2;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #c2410c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 9999px;
    border: 2px solid #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

#stats-map {
    z-index: 0;
}

.map-view-btn.map-view-active {
    background: #fff7ed;
    color: #c2410c;
    font-weight: 600;
}

.meldefuchs-preview-popup-wrapper .leaflet-popup-content-wrapper {
    border-radius: 14px;
    padding: 0;
}

.meldefuchs-preview-popup {
    padding: 14px 16px;
    min-width: 200px;
}

.meldefuchs-preview-popup .preview-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}

.meldefuchs-preview-popup .preview-coords {
    font-size: 11px;
    color: #6b7280;
    font-family: ui-monospace, monospace;
    margin-bottom: 12px;
}

.meldefuchs-preview-popup .preview-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meldefuchs-preview-popup .preview-btn {
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.meldefuchs-preview-popup .preview-btn-confirm {
    background: #f97316;
    color: #fff;
}

.meldefuchs-preview-popup .preview-btn-confirm:hover {
    background: #ea580c;
}

.meldefuchs-preview-popup .preview-btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
}

.meldefuchs-preview-popup .preview-btn-cancel:hover {
    background: #e5e7eb;
}

@keyframes pulse-marker {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.1); }
}

/* Popup-Styling */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 220px;
}

.meldefuchs-popup {
    padding: 16px;
}

.meldefuchs-popup h4 {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}

.meldefuchs-popup p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.meldefuchs-popup .badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 9999px;
    background: #fff7ed;
    color: #c2410c;
    margin-top: 8px;
}

.meldefuchs-popup-location {
    font-size: 13px;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.4;
}

.meldefuchs-popup-location strong {
    font-weight: 700;
}

.meldefuchs-popup-district {
    color: #6b7280;
    font-weight: 500;
}

.meldefuchs-popup-cluster-list {
    margin: 8px 0 0;
    padding-left: 16px;
    max-height: 140px;
    overflow-y: auto;
}

.meldefuchs-popup-cluster-item {
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 4px;
}

.meldefuchs-popup-meta {
    color: #9ca3af;
}

/* Scrollbar für Sidebar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

/* Karten-Overlays – höherer Kontrast */
.map-overlay-panel {
    background: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.map-filter-chip {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    padding: 0.5rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    cursor: pointer;
    white-space: nowrap;
    overflow: visible;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.map-filter-chip[aria-pressed="true"] {
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d;
}

.map-filter-select {
    padding: 0.5rem 0.65rem;
    font-size: 12px;
    line-height: 1.3;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    flex-shrink: 0;
}

/* Echtheits-Info */
.auth-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.auth-info-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.map-legend-item--info {
    align-items: flex-start;
}

.map-legend-item-content {
    flex: 1;
    min-width: 0;
}

.map-legend-item-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.auth-info-inline {
    margin: 6px 0 0;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.45;
    color: #4b5563;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
}

.auth-info-inline.hidden {
    display: none;
}

.meldefuchs-preview-popup .preview-address {
    font-size: 13px;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.4;
}

.meldefuchs-preview-popup .preview-address strong {
    font-weight: 700;
}

.meldefuchs-preview-popup .preview-district {
    color: #6b7280;
    font-weight: 500;
}

.meldefuchs-preview-popup .preview-address-loading {
    color: #6b7280;
    font-style: italic;
}

.meldefuchs-preview-popup .preview-address-muted {
    color: #9ca3af;
}

/* Bottom Sheet (Mobile) */
.report-sheet {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

@media (max-width: 1023px) {
    .home-melden {
        position: relative;
    }

    #karte {
        min-height: calc(100dvh - 7rem);
    }

    .report-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 45;
        max-height: 88dvh;
        background: #fff;
        border-radius: 1.25rem 1.25rem 0 0;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        transform: translateY(calc(100% - 3.25rem));
    }

    .report-sheet.is-expanded {
        transform: translateY(0);
    }

    .report-sheet.is-collapsed {
        transform: translateY(calc(100% - 3.25rem));
    }

    .report-sheet-handle {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0.65rem 1rem 0.5rem;
        border: 0;
        background: #fff;
        border-radius: 1.25rem 1.25rem 0 0;
        cursor: pointer;
        flex-shrink: 0;
        touch-action: none;
    }

    .report-sheet-bar {
        width: 2.5rem;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin-bottom: 0.5rem;
    }

    .report-sheet-title {
        font-size: 0.875rem;
        font-weight: 600;
        color: #111827;
    }

    .report-sheet-chevron {
        display: none;
    }

    .report-panel {
        max-height: calc(88dvh - 3.25rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .fab-melden {
        display: inline-flex;
    }
}

@media (min-width: 1024px) {
    .report-sheet {
        height: 100%;
    }

    .report-sheet-handle {
        display: none;
    }

    .fab-melden {
        display: none !important;
    }
}

/* FAB */
.fab-melden {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 44;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    box-shadow: 0 6px 24px rgba(234, 88, 12, 0.45);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.fab-melden:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(234, 88, 12, 0.5);
}

.report-sheet.is-expanded ~ .fab-melden,
body.sheet-open .fab-melden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

/* Nestgröße visuell */
.nest-size-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.nest-size-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.65rem 0.35rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.nest-size-option:hover {
    border-color: #fdba74;
    background: #fff7ed;
}

.nest-size-option.is-selected {
    border-color: #f97316;
    background: #fff7ed;
    box-shadow: 0 0 0 1px #f97316;
}

.nest-size-icon {
    font-size: 1.125rem;
    line-height: 1;
    color: #ea580c;
}

.nest-size-label {
    font-size: 10px;
    font-weight: 600;
    color: #4b5563;
    text-align: center;
}

.nest-size-option.is-selected .nest-size-label {
    color: #c2410c;
}

.photo-dropzone-prominent {
    border-color: #fed7aa;
}

/* Popup: In der Nähe melden */
.meldefuchs-popup-nearby {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.meldefuchs-popup-nearby-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.meldefuchs-popup-nearby-btn:hover {
    background: #ffedd5;
}

.meldefuchs-popup-removal {
    margin-top: 8px;
}

.meldefuchs-popup-removal-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.meldefuchs-popup-removal-btn:hover:not(:disabled) {
    background: #fee2e2;
}

.meldefuchs-popup-removal-btn.is-done,
.meldefuchs-popup-removal-btn:disabled {
    opacity: 0.75;
    cursor: default;
}

.issue-report-card {
    max-width: 24rem;
    text-align: left;
    padding: 1.5rem;
}

.issue-reason-option {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    transition: border-color 0.15s, background 0.15s;
}

.issue-reason-option:has(input:checked) {
    border-color: #fb923c;
    background: #fff7ed;
}

.issue-reason-option input {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.site-header-inner {
    min-height: 4rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.site-logo-box {
    flex-shrink: 0;
}

.site-logo-img {
    display: block;
}

/* Standort-Validierung im Formular */
.coords-display--checking {
    border-color: #fed7aa;
    background: #fffaf5;
}

.coords-display--valid {
    border-color: #86efac;
    background: #f0fdf4;
}

.coords-display--invalid {
    border-color: #fca5a5;
    background: #fef2f2;
}

.coords-location-status {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    font-weight: 500;
}

.coords-location-checking {
    color: #c2410c;
}

.coords-location-valid {
    color: #15803d;
}

.coords-location-invalid {
    color: #b91c1c;
}

#btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Fehlerseiten */
.error-page-body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: linear-gradient(145deg, #fff7ed 0%, #ffffff 45%, #f0fdf4 100%);
    font-family: Inter, system-ui, sans-serif;
    color: #1f2937;
}

.error-page-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.error-page-card {
    width: 100%;
    max-width: 28rem;
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid #ffedd5;
}

.error-page-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.error-page-logo {
    height: 2.5rem;
    width: auto;
    max-width: 6rem;
    object-fit: contain;
}

.error-page-emoji-brand {
    font-size: 1.75rem;
    line-height: 1;
}

.error-page-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.error-page-brand-name span {
    color: #f97316;
}

.error-page-code {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #fed7aa;
    margin: 0 0 0.25rem;
    letter-spacing: -0.04em;
}

.error-page-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.error-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem;
    line-height: 1.35;
}

.error-page-text {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.error-page-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.error-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border: none;
    cursor: pointer;
    width: 100%;
}

.error-page-btn-primary {
    background: #f97316;
    color: #fff;
}

.error-page-btn-primary:hover {
    background: #ea580c;
}

.error-page-btn-secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.error-page-btn-secondary:hover {
    background: #f9fafb;
}

.error-page-foot {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Danke-Modal */
.thank-you-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.thank-you-modal.hidden {
    display: none;
}

.thank-you-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.thank-you-card {
    position: relative;
    max-width: 22rem;
    width: 100%;
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: thank-you-in 0.35s ease;
}

@keyframes thank-you-in {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.thank-you-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.thank-you-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
    transition: background 0.15s;
}

.thank-you-btn-primary {
    background: #f97316;
    color: #fff;
}

.thank-you-btn-primary:hover {
    background: #ea580c;
}

.thank-you-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: none;
    cursor: pointer;
}

.thank-you-btn-secondary:hover {
    background: #e5e7eb;
}

/* Formular Schritte */
.form-step[data-step="2"] {
    opacity: 0.65;
    transition: opacity 0.25s;
}

.form-step.form-step-active[data-step="2"],
.form-step[data-step="2"].form-step-unlocked {
    opacity: 1;
}
