* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
}

#map {
    width: 100%;
    height: 100vh;
    z-index: 1;
}

/* Floating Action Button (+ oben rechts in Anthrazit) */
.fab-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    background-color: #2b2b2b; /* Anthrazit */
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    line-height: 52px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.fab-btn:hover, .fab-btn:active {
    background-color: #1a1a1a;
}

/* Modals Overlay (Versteckt per Default) */
.modal {
    display: none !important; /* Sicherheit, dass es beim Laden ausgeblendet ist */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

/* Wird per JS aufgerufen */
.modal.is-visible {
    display: block !important;
}

.modal-content {
    background-color: #ffffff;
    margin: 8% auto;
    padding: 24px;
    width: 90%;
    max-width: 440px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    max-height: 85vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

h2 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: #222;
    line-height: 1.2;
}

h2 small, label small, p small {
    font-weight: normal;
    color: #666;
    font-size: 0.85em;
}

label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.search-box {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.search-box button {
    padding: 10px 14px;
    background: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.submit-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.primary-btn {
    background-color: #2b2b2b;
    color: white;
}

.secondary-btn {
    background-color: #e9ecef;
    color: #2b2b2b;
    border: 1px solid #ccc;
}

.delete-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.pin-box {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 6px;
    text-align: center;
    background: #f8f9fa;
    padding: 12px;
    margin: 15px 0;
    border: 2px dashed #2b2b2b;
    border-radius: 8px;
    color: #2b2b2b;
}

.warning-text {
    color: #d9534f;
    font-size: 0.85rem;
    line-height: 1.4;
}

.info-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 6px;
}

.popup-edit-btn {
    margin-top: 8px;
    background: #555;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
}
/* Link unten rechts in transparent-anthrazit */
.imprint-link {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 1000;
    background-color: rgba(43, 43, 43, 0.65); /* Transparentes Anthrazit */
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-decoration: none;
    backdrop-filter: blur(3px);
    transition: background-color 0.2s ease;
}

.imprint-link:hover, .imprint-link:active {
    background-color: rgba(43, 43, 43, 0.95);
    color: #ffffff;
}
