/* app/static/css/main.css */

/* === Zentrales Styling für GarageSales === */

/* Grundlayout */
body {
    font-family: "Segoe UI", sans-serif;
    background-color: #f9f9f9;
    line-height: 1.6;
    color: #333;
}

/* === Headerbild-Styling === */
.site-header img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}
@media (max-width: 768px) {
    .site-header img {
        max-height: 250px;
    }
}

/* === Karten, Schattenboxen === */
.header-card,
.navbar-custom {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}
.header-card:hover,
.navbar-custom:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* === Navigation === */
.navbar-nav .nav-link {
    font-size: 1.1rem;
    margin-right: 20px;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover {
    color: #007bff;
}

/* === Formular & Buttons === */
.login-form {
    display: flex;
    gap: 0.5rem;
}
.login-form input {
    height: 38px;
}
.btn-primary {
    transition: background-color 0.3s, transform 0.3s;
}
.btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Accordion */
.accordion-button {
    font-weight: 600;
}

.accordion-body {
    padding: 1.5rem;
}

/* Karten-Overlay */
/* Karten-Overlay */
.map-overlay {
    pointer-events: auto; /* ✅ Mausinteraktionen zulassen */
    cursor: pointer;

    background-color: rgba(255, 255, 255, 0.20);

    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;

    z-index: 500; /* über der Karte, aber unter Hinweis-Boxen */
    transition: opacity 0.3s ease-in-out;
}

.bounce {
    animation: bounce 1s infinite alternate;
}
@keyframes bounce {
    from { transform: translateY(0); }
    to   { transform: translateY(-5px); }
}

/* Shadow-Cards */
.custom-card-shadow {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
}
/* Hover-Cards */
.custom-card-shadow:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

/* 📍 Marker-Hervorhebung (Standard-Klasse aus deinen Templates/JS) */
.leaflet-marker-icon.marker-highlight {
  transform: scale(1.3);
  filter: drop-shadow(0 0 5px gold);
  z-index: 1000;
}

/* 📍 Alias: falls irgendwo noch leaflet-marker-highlight genutzt wird */
.leaflet-marker-icon.leaflet-marker-highlight {
  transform: scale(1.3);
  filter: drop-shadow(0 0 5px gold);
  z-index: 1000;
}

/* Pagination */
.pagination .page-link {
    color: #333;
}
.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Formulare */
.form-label {
    font-weight: 500;
}
.form-control {
    border-radius: 0.375rem;
}

/* Kartenplatzhalter */
.map-placeholder {
    height: 500px;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Newsletter Accordion Box */
.newsletter-box {
    font-size: 0.9rem;
    color: #666;
}

/* Fehlermeldung unter Checkboxen */
.form-text.text-danger {
    font-size: 0.875em;
    margin-top: 0.25rem;
}

/* Allgemein */
h1, h2, h3 {
    font-weight: 700;
}