/* ---- Popup Gradienten nach Kategorie ---- */


@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
.font {
  font-family: Arial, Helvetica, sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

#fabAdd {
    border-radius: 1000px!important;
}

.popup-person .leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, #052e16 0%, #1f2937 100%) !important;
    border: 1px solid #166534 !important;
}
.popup-institution .leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, #172554 0%, #1f2937 100%) !important;
    border: 1px solid #1e3a8a !important;
}
.popup-event .leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, #450a0a 0%, #1f2937 100%) !important;
    border: 1px solid #7f1d1d !important;
}
.popup-person .leaflet-popup-tip    { background: #1f2937 !important; }
.popup-institution .leaflet-popup-tip { background: #1f2937 !important; }
.popup-event .leaflet-popup-tip     { background: #450a0a !important; }

/* Leaflet content padding */
.leaflet-popup-content { margin: 10px 12px !important; }

/* Tag Chips im Detail-Modal */
.tag-chip {
    display: inline-block;
    padding: 2px 10px; border-radius: 9999px;
    font-size: 11px; font-weight: 600;
    background: rgba(255,255,255,0.18); color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.25);
}

.cursor-crosshair { cursor: crosshair !important; }
#map { z-index: 0; }
.suggestions-list { max-height: 200px; overflow-y: auto; }

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background-color: #1f2937; color: white;
}
.popup-person .leaflet-popup-content-wrapper,
.popup-person .leaflet-popup-tip {
    background: linear-gradient(145deg, #052e16, #14532d) !important;
    border: 1px solid #166534;
}
.popup-institution .leaflet-popup-content-wrapper,
.popup-institution .leaflet-popup-tip {
    background: linear-gradient(145deg, #0c1a4a, #1e3a8a) !important;
    border: 1px solid #1d4ed8;
}
.popup-event .leaflet-popup-content-wrapper,
.popup-event .leaflet-popup-tip {
    background: linear-gradient(145deg, #2d0a0a, #7f1d1d) !important;
    border: 1px solid #991b1b;
}

/* Range Slider */
input[type=range] {
    -webkit-appearance: none; width: 100%; height: 6px;
    background: #4b5563; border-radius: 3px; outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 18px; width: 18px; border-radius: 50%;
    background: #3b82f6; margin-top: -6px; box-shadow: 0 1px 3px rgba(0,0,0,0.4); transition: transform 0.1s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 6px; cursor: pointer; background: transparent; border-radius: 3px; border: none;
}
input[type=range]::-moz-range-track { width: 100%; height: 6px; background: transparent; border-radius: 3px; }
input[type=range]::-moz-range-thumb { height: 18px; width: 18px; border: none; border-radius: 50%; background: #3b82f6; }

.logo_corner { 
    height: clamp(85px, 12vw, 140px); 
    width: auto; 
    margin-bottom: 10px;
}

.logo_corner_mobile { 
    height: clamp(60px, 8vw, 120px); 
    width: auto; 
    margin-bottom: 10px;
}


/* Tag chips in popups/details */
.tag-chip {
    display: inline-flex; align-items: center; font-size: 10px;
    padding: 2px 8px; border-radius: 9999px;
    background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.9);
}

/* Tag filter chips */
.tag-chip-filter {
    font-size: 11px; padding: 3px 10px; border-radius: 9999px;
    border: 1px solid #4b5563; cursor: pointer; transition: all 0.15s;
    background: transparent; color: #9ca3af;
}
.tag-chip-filter.active { background: #7c3aed; border-color: #7c3aed; color: white; }
.tag-chip-filter:hover:not(.active) { border-color: #7c3aed; color: #c4b5fd; }

#detailMap { z-index: 0; }

/* Cluster-Pin */
.cm-cluster-pin {
    position: relative;
    width: 30px;
    height: 42px;
}
.cm-cluster-pin::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 30px;
    height: 30px;
    background: #6b7280;
    border: 2px solid #374151;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.cm-cluster-bubble {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: 800;
    font-size: 11px;
    font-family: system-ui, sans-serif;
    z-index: 1;
    white-space: nowrap;
}

.pin-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.pin-card:hover {
    transform: translateY(-4px)!important;
    box-shadow: 0 0 18px rgba(255,255,255,0.08), 0 8px 32px rgba(0,0,0,0.4);
}

.active-sort {
    background: #2563eb;
    color: rgb(255, 255, 255);
}

.view-switcher {
    position: relative;
}
.view-switcher-pill {
    position: absolute;
    top: 4px; bottom: 4px;
    width: 50%;
    background: white;
    border-radius: 9999px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}
.dark .view-switcher-pill {
    background: #4b5563;
}
.view-switcher button {
    position: relative;
    z-index: 1;

}


/* Sort-Pill */
.sort-pill-indicator {
    position: absolute;
    top: 4px; bottom: 4px;
    background: white;
    border-radius: 9999px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}
.dark .sort-pill-indicator {
    background: #4b5563;
}
.sort-btn {
    position: relative;
    z-index: 1;
}

.navbar {
    height: 100px;
}

.buttonLabel {
    margin-left: 3px;
}

.pinCardTitle {
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 600;
    color: white;
    hyphens: auto;
}

.pinCardIcon {
    width: clamp(24px, 4vw, 30px);
    height: auto;
}

#addFormInner {
    position: relative;
    transition: background-color 0.8s ease;
}

#addFormInner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, #1a2535 100%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

#addFormInner > * {
    position: relative;
    z-index: 1;
}

/* Karten-Einblend-Animation */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.pin-card {
    animation: cardIn 0.5s ease both;
}
.cat-switcher {
    position: relative;
}
.cat-pill-indicator {
    position: absolute;
    top: 4px; bottom: 4px;
    transform: translateX(-50px);
    border-radius: 9999px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.4s;
    z-index: 0;
}

#submitButton {
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: 0.2s ease;
}

#submitButton:hover {
    background: #1d4ed8;
}

input {
    border-radius: 20px!important;
}

button {
    border-radius: 20px!important;
}

.pill {
    border-radius: 20px!important;
}

.prose-block { text-align: justify; hyphens: auto; font-size: 0.95rem; line-height: 1.8; }
.card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}
.step-num {
    width: 2.2rem; height: 2.2rem;
    background: #2563eb;
    color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
details summary::-webkit-details-marker { display: none; }
details[open] .chevron { transform: rotate(180deg); }
.chevron { transition: transform 0.2s ease; }
.section-title {
    font-size: 1.25rem; font-weight: 800; color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.6rem; margin-bottom: 1.25rem;
}
.img-placeholder {
    border-radius: 0.75rem; height: 10rem;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border: 2px dashed rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02); margin-top: 0.75rem;
}
.desktop-word { display: inline; }
.mobile-word { display: none; }
@media (max-width: 767px) {
    .desktop-word { display: none; }
    .mobile-word { display: inline; }
}




@keyframes pinPopIn {
    0%   { transform: scale(0) translateY(20px); opacity: 0;}
    70%  { transform: scale(1.2) translateY(-4px); opacity: 1;}
    100% { transform: scale(1) translateY(0); opacity: 1; rotate: 0deg;}
}

@keyframes pinPopOut {
    0%   { transform: scale(1) translateY(0); opacity: 1; }
    100% { transform: scale(0) translateY(20px); opacity: 0; }
}

.pin-pop-in {
    animation: pinPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@media (max-width: 768px) {
    .hidden { display: none !important; }
    .view-switcher { scale: 0.85 !important; z-index: 50;}
    .buttonLabel { display: none; }
    .logo_corner { display: none; }
    .logo_corner_mobile { display: block; }
    #helpBtn { display: none; }
}

@media (min-width: 769px) {
    .logo_corner { display: block; }
    .logo_corner_mobile { display: none; }
}


