/* Frontend-Styling für Blumenwiesen Maps Plugin */

/* Form-Group Layout - Standard block */
.form-group {
    display: block !important;
    //margin-bottom: 10px !important;
    width: 100% !important;
}

/* Formular-Container */
#user-marker-form {
    display: block !important;
    width: 100% !important;
}

/* Sicherstellen dass form-group Divs untereinander stehen */
#user-marker-form .form-group {
    display: block !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    //margin-bottom: 10px !important;
    box-sizing: border-box !important;
}

/* Error-Messages */
.field-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: block !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3) !important;
    border-left: 4px solid #d63031 !important;
    position: relative !important;
    animation: slideInError 0.3s ease-out !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 8px !important;
}


.field-error::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 16px;
}

.field-error::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ff6b6b;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover-Effekt für Fehlermeldungen */
.field-error:hover {
    background: linear-gradient(135deg, #ff5252, #e53935);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4) !important;
    transition: all 0.2s ease;
}

/* Erfolgsmeldungen */
.field-success {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-top: 8px !important;
    display: block !important;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3) !important;
    border-left: 4px solid #00a085 !important;
    position: relative !important;
    animation: slideInSuccess 0.3s ease-out !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.field-success::before {
    content: "✅";
    margin-right: 8px;
    font-size: 16px;
}

@keyframes slideInSuccess {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input-Felder mit Fehlern hervorheben */
.form-group:has(.field-error) input,
.form-group:has(.field-error) textarea,
.form-group:has(.field-error) select {
    border: 2px solid #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
    animation: inputError 0.3s ease-out !important;
}

@keyframes inputError {
    0% {
        border-color: #ff6b6b;
        box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    }
    50% {
        border-color: #ff5252;
        box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.2);
    }
    100% {
        border-color: #ff6b6b;
        box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    }
}

/* Input-Felder mit Erfolg hervorheben */
.form-group:has(.field-success) input,
.form-group:has(.field-success) textarea,
.form-group:has(.field-success) select {
    border: 2px solid #00b894 !important;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1) !important;
}

/* Flower-Selection Layout */
.flower-selection {
    display: block !important;
    margin-bottom: 10px !important;
}

/* Gültigkeitszeitraum Layout - NEUE SAUBERE LÖSUNG */
.date-range-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.date-input-group {
    position: relative !important;
    display: inline-block !important;
    width: auto !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

.date-input-group input[type="date"] {
    padding-right: 35px !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.date-input-group .fa-calendar {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #666 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}

.date-separator {
    color: #666 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    display: inline-block !important;
    margin: 0 8px !important;
    vertical-align: middle !important;
}

.validity-period-select {
    display: inline-block !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background-color: white !important;
    font-size: 14px !important;
    color: #333 !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
    width: auto !important;
    min-width: 130px !important;
    max-width: 150px !important;
    box-sizing: border-box !important;
}

.validity-period-select:focus {
    outline: none !important;
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2) !important;
}

/* Spezielle Styles für Produktauswahl-Fehler */
.flower-selection:has(.field-error) {
    border: 2px solid #ff6b6b !important;
    border-radius: 8px !important;
    padding: 12px !important;
    background: rgba(255, 107, 107, 0.05) !important;
    animation: containerError 0.3s ease-out !important;
}

@keyframes containerError {
    from {
        border-color: transparent;
        background: transparent;
    }
    to {
        border-color: #ff6b6b;
        background: rgba(255, 107, 107, 0.05);
    }
}

/* Responsive Anpassungen für Fehlermeldungen */
@media (max-width: 768px) {
    .field-error,
    .field-success {
        padding: 10px 12px !important;
        font-size: 13px !important;
        margin-top: 6px !important;
    }
    
    .field-error::before,
    .field-success::before {
        font-size: 14px;
    }
    
    /* Gültigkeitszeitraum responsive - ENTFERNT */
    
    .date-input-group {
        margin-right: 6px !important;
    }
    
    .date-input-group input[type="date"] {
        width: 130px !important;
        min-width: 130px !important;
        max-width: 130px !important;
    }
    
    .date-separator {
        margin: 0 6px !important;
        font-size: 14px !important;
    }
    
    .validity-period-select {
        min-width: 110px !important;
        max-width: 130px !important;
        margin-right: 6px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .field-error,
    .field-success {
        padding: 8px 10px !important;
        font-size: 12px !important;
        margin-top: 4px !important;
    }
    
    .validity-period-select {
        min-width: 100px !important;
        max-width: 120px !important;
        margin-right: 4px !important;
        font-size: 12px !important;
        padding: 6px 8px !important;
    }
    
    /* ENTFERNT - Verwirrende Regeln */
}

/* Globale Scroll-Verhinderung */
body {
    overflow-x: hidden !important;
}

/* Responsive Layout für Datumsfelder - NUR bei sehr kleinen Bildschirmen */
@media (max-width: 480px) {
    .date-range-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        white-space: normal !important;
        flex-wrap: wrap !important;
    }
    
    .date-range-container .validity-period-select {
        align-self: flex-start !important;
        margin-bottom: 8px !important;
        width: auto !important;
        max-width: 200px !important;
    }
    
    .date-range-container .date-input-group {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        margin-bottom: 8px !important;
    }
    
    .date-range-container .date-input-group input {
        flex: 1 !important;
        width: auto !important;
        max-width: 100% !important;
    }
}

/* FORCE OVERRIDE - Überschreibt alle anderen Regeln */
@media (min-width: 481px) {
    .date-range-container {
        flex-direction: row !important;
        align-items: center !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
    }
    
    .date-range-container .validity-period-select {
        margin-bottom: 0 !important;
        width: auto !important;
    }
    
    .date-range-container .date-input-group {
        width: auto !important;
        margin-bottom: 0 !important;
        display: inline-flex !important;
    }
    
    .date-range-container .date-input-group input {
        width: 150px !important;
        flex: none !important;
    }
}

/* Responsive Modal Toggle Button */
.toggle-map-view {
    transition: all 0.3s ease !important;
}

/* Einfache Lösung: Datumsfelder bei niedrigen Auflösungen ausblenden */
@media (max-width: 480px) {
    .date-range-container .date-input-group {
        display: none !important;
    }
    
    .date-range-container .validity-period-select {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.toggle-map-view:hover {
    background-color: #45a049 !important;
    transform: scale(1.05) !important;
}

/* Modal im verschobenen Zustand */
.user-marker-modal-shifted {
    transform: translateX(-70%) !important;
    transition: transform 0.3s ease !important;
}

.user-marker-modal-shifted .blumenwiesen-modal-content {
    left: 16.67% !important;
    transform: translate(-50%, -50%) !important;
}

/* Toggle Button im verschobenen Zustand */
.user-marker-modal-shifted .toggle-map-view {
    position: relative !important;
    z-index: 1000000 !important;
    background-color: #45a049 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

/* Responsive Anzeige des Toggle-Buttons */
@media (max-width: 768px) {
    .toggle-map-view {
        display: inline-block !important;
    }
}

@media (min-width: 769px) {
    .toggle-map-view {
        display: none !important;
    }
}


* {
    box-sizing: border-box !important;
}

/* Hauptlayout: 2-Spalten */
.blumenwiesen-layout {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    min-height: 500px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
    flex-wrap: nowrap;
}

/* Linke Spalte: Sidebar (1/3) */
.blumenwiesen-sidebar {
    flex: 0 0 30%;
    min-width: 25%;
    max-width: 25%;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-y: auto;
    max-height: 80vh;
    width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Rechte Spalte: Karte (2/3) */
.blumenwiesen-map-container {
    flex: 0 0 70%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #fff;
    min-height: 500px;
    width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

#blumenwiesen-map {
    border-radius: 8px 8px 0 0;
    min-height: 700px !important;
    height: 700px !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.blumenwiesen-info {
    padding: 0;
    background: transparent;
    border: none;
}

.blumenwiesen-info h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
}

.blumenwiesen-list {
    display: grid;
    gap: 15px;
}

.blumenwiese-item {
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.blumenwiese-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #4CAF50;
}

.blumenwiese-item h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.blumenwiese-item p {
    margin: 0 0 8px 0;
    color: #6c757d;
    line-height: 1.4;
}

.blumenwiese-item small {
    color: #868e96;
    font-size: 0.85em;
}

/* InfoWindow-Styling */
.blumenwiese-info-window {
    max-width: 300px;
    padding: 2px;
    margin: 2px;
    margin-bottom: 10px;
}

.blumenwiese-info-window h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
}

.blumenwiese-info-window p {
    margin: 0 0 10px 0;
    color: #495057;
    line-height: 1.4;
}

.blumenwiese-coordinates {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    margin: 10px 0;
}

.blumenwiese-coordinates small {
    color: #6c757d;
    font-family: monospace;
}

.blumenwiesen-actions {
    margin-top: 10px;
    text-align: center;
}

.blumenwiesen-actions .button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}


.blumenwiesen-actions .button2 {
    background: #f86368;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.blumenwiesen-actions .button:hover {
    background: #45a049;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blumenwiesen-layout {
        gap: 15px;
    }
    
    .blumenwiesen-sidebar {
        min-width: 200px;
        max-width: 300px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .blumenwiesen-layout {
        flex-direction: column;
        gap: 15px;
        margin: 10px 0;
    }
    
    .blumenwiesen-sidebar {
        min-width: auto;
        max-width: none;
        max-height: 500px;
        order: 2;
        padding: 15px;
    }
    
    .blumenwiesen-map-container {
        order: 1;
        min-height: 400px;
    }
    
    #blumenwiesen-map {
        border-radius: 4px 4px 0 0;
        min-height: 400px !important;
        height: 400px !important;
    }
    
    .blumenwiesen-info {
        padding: 0;
    }
    
    .blumenwiesen-info h3 {
        font-size: 1.2em;
    }
    
    .blumenwiese-item {
        padding: 10px;
    }
    
    .blumenwiese-item h4 {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .blumenwiesen-list {
        gap: 10px;
    }
    
    .blumenwiese-item {
        padding: 10px;
    }
    
    .blumenwiesen-info {
        padding: 12px;
    }
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blumenwiese-item {
    animation: fadeIn 0.5s ease-out;
}

.blumenwiese-item:nth-child(1) { animation-delay: 0.1s; }
.blumenwiese-item:nth-child(2) { animation-delay: 0.2s; }
.blumenwiese-item:nth-child(3) { animation-delay: 0.3s; }
.blumenwiese-item:nth-child(4) { animation-delay: 0.4s; }
.blumenwiese-item:nth-child(5) { animation-delay: 0.5s; }

/* Google Maps InfoWindow Anpassungen */
.gm-style-iw {
    border-radius: 8px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
    border-radius: 8px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
}

.gm-style-iw-t {
    border-radius: 8px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
}

/* Marker-Hover-Effekt */
.blumenwiese-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Loading-Zustand */
.blumenwiesen-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.blumenwiesen-loading::before {
    content: "🌸";
    display: block;
    font-size: 2em;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Leere Zustand */
.blumenwiesen-empty {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.blumenwiesen-empty::before {
    content: "🌱";
    display: block;
    font-size: 3em;
    margin-bottom: 15px;
}

.blumenwiesen-empty h3 {
    margin: 0 0 10px 0;
    color: #495057;
}

.blumenwiesen-empty p {
    margin: 0;
    font-style: italic;
}

/* Benutzer-Markierung Controls */
.user-marker-controls {
    background: transparent;
    border: none;
    text-align: center;
    /* margin-bottom: 10px; */
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.user-marker-controls .button {
    background: #F0BE30;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.user-marker-controls .button:hover {
    background: #45a049;
}

/* Modal-Styling für Benutzer */
.blumenwiesen-modal {
    position: fixed !important;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0,0,0,0.7) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.blumenwiesen-modal.show {
    display: flex !important;
}

/* Spezifisches Styling für Marker-Update Modal */
#marker-update-modal {
    position: fixed !important;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0,0,0,0.7) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 20px !important;
}

#marker-update-modal.show {
    display: flex !important;
}

.blumenwiesen-modal-content {
    background-color: #fff !important;
    padding: 30px !important;
    border-radius: 8px !important;
    width: 90% !important;
    max-width: 600px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
    margin: 0 auto !important;
    border: none !important;
    flex-shrink: 0 !important;
    scrollbar-width: thin !important;
}

/* Spezifisches Styling für Marker-Update Modal Content */
#marker-update-modal .blumenwiesen-modal-content {
    background-color: #fff !important;
    padding: 30px !important;
    border-radius: 8px !important;
    width: 90% !important;
    max-width: 500px !important;
    //max-height: 80vh !important;
    overflow-y: auto !important;
    position: relative !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
    margin: 0 !important;
    border: none !important;
    flex-shrink: 0 !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    scrollbar-color: #ccc #f1f1f1 !important;
}

/* Toast-Nachrichten Styling */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.toast.error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fef7f7 100%);
}

.toast.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.toast.info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
    color: #1f2937;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
}

/* Animation für automatisches Schließen */
.toast.auto-close {
    animation: toastAutoClose 5s linear forwards;
}

@keyframes toastAutoClose {
    0% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

/* Scrollbar-Styling für Webkit-Browser */
.blumenwiesen-modal-content::-webkit-scrollbar {
    width: 8px !important;
}

.blumenwiesen-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 4px !important;
}

.blumenwiesen-modal-content::-webkit-scrollbar-thumb {
    background: #ccc !important;
    border-radius: 4px !important;
}

.blumenwiesen-modal-content::-webkit-scrollbar-thumb:hover {
    background: #999 !important;
}

.blumenwiesen-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #E8F5E8;
    cursor: pointer;
    line-height: 1;
}

.blumenwiesen-modal-close:hover {
    color: #45A049;

}

/* Formular-Styling */
.form-group {
    margin-bottom: 10px;
}

/* 2-spaltiges Formular */
.two-column-form {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: start;
}

.two-column-form .form-group {
    display: contents; /* Entfernt die Flexbox-Wrapper */
}

.two-column-form label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
    display: block;
    grid-column: 1;
    align-self: start;
    padding-top: 8px;
}

.two-column-form input,
.two-column-form textarea,
.two-column-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    grid-column: 2;
}

.two-column-form input:focus,
.two-column-form textarea:focus,
.two-column-form select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Blumenauswahl und Preise - volle Breite */
.flower-selection {
    grid-column: 1 / -1;
}

/* Responsive für 2-spaltiges Formular */
@media (max-width: 768px) {
    .two-column-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .two-column-form label,
    .two-column-form input,
    .two-column-form textarea,
    .two-column-form select {
        grid-column: 1;
    }
}

/* Filter-Dropdown */
.flower-filter-dropdown {
    position: relative;
    display: inline-block;
}

.flower-filter-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    padding: 10px;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.flower-filter-content.active {
    display: block;
}

.flower-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.filter-option:hover {
    background-color: #e9e9e9;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
}

.filter-option span {
    font-size: 14px;
    color: #333;
}

/* Filter-Kategorien Styling */
.filter-category-header {
    margin: 15px 0 8px 0;
}

.filter-category-header h6 {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #4CAF50;
    padding-bottom: 3px;
}

.filter-category-header:first-child {
    margin-top: 0;
}

/* Aktive Filter-Anzeige */
.active-filters-display {
    color: #4CAF50;
    font-weight: 600;
    font-size: 12px;
    margin-left: 5px;
}


.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.coordinates-display {
    display: flex;
    gap: 10px;
}

.coordinates-display input {
    flex: 1;
}

.coordinate-input {
    width: 100% !important;
    padding: 8px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    margin-bottom: 5px !important;
}

.coordinate-input::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.coordinate-input:focus {
    outline: none !important;
    border-color: #4CAF50 !important;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3) !important;
}

/* Aktuelle Position Button */
#get-current-location {
    background: #2196F3 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    margin-top: 5px !important;
    transition: background-color 0.3s ease !important;
}

#get-current-location:hover {
    background: #1976D2 !important;
}

/* Blumenauswahl */
.flower-selection {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background: #f9f9f9;
}

/* Hinzufügen-Button Sektion */
.add-flower-section {
    margin: 15px 0;
    text-align: center;
}

.add-flower-section .button {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid #4CAF50;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
    margin: 0 auto;
}

.add-flower-section .button:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.add-flower-section .button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

/* Dynamische Blumenauswahl */
.flower-item.dynamic-flower {
    background: #e3f2fd;
    border: 1px solid #2196F3;
    position: relative;
}

.flower-name-input {
    flex: 1 !important;
    min-width: 0 !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    margin-left: 0 !important;
    outline: none !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

.flower-name-input::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.remove-flower-btn {
    /* position: absolute; */
    right: 5px;
    top: 50%;
    /* transform: translateY(-50%); */
    background: #f44336;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.remove-flower-btn:hover {
    background: #d32f2f;
}

/* .flower-item Definition entfernt - wird weiter unten definiert */

/* .flower-item label und input Regeln entfernt - werden weiter unten definiert */

/* .flower-price Definition entfernt - wird weiter unten definiert */

.total-price {
    margin-top: 15px;
    padding: 10px;
    background: #e8f5e8;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
}

/* Datumsfelder Styling */
.date-range-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.date-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 150px;
}

.date-input-group input[type="date"] {
    width: 100%;
    max-width: 150px;
    padding: 8px 30px 8px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.date-input-group input[type="date"]::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.date-input-group input[type="date"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.date-input-group input[type="date"]:hover {
    border-color: #4CAF50;
}

.date-input-group input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    z-index: 3;
}

/* FontAwesome Calendar Icon für Datumsfelder */
.date-input-group {
    position: relative;
}

.date-input-group .fa-calendar {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #4CAF50;
    pointer-events: none;
    font-size: 14px;
    z-index: 4;
    background: white;
    padding: 2px 4px;
    border-radius: 2px;
}

/* Formular-Aktionen */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.form-actions .button {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.form-actions .button-primary {
    background: #4CAF50;
    color: white;
}

.form-actions .button-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.form-actions .button:not(.button-primary) {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.form-actions .button:not(.button-primary):hover {
    background: #e9e9e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Markierungen Styling - Einheitlich ohne Rahmen */
.blumenwiese-item.user-marker h5 {
    color: #FF9800;
}

.blumenwiese-item.official h5 {
    color: #4CAF50;
}

/* Modal-Overlay */
body.modal-open {
    overflow: hidden !important;
}

/* Zusätzliche Modal-Sicherheit */
#user-marker-modal {
    position: fixed !important;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0,0,0,0.7) !important;
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Alternative Zentrierung mit absoluter Positionierung */
#user-marker-modal .blumenwiesen-modal-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

#user-marker-modal.show {
    display: block !important;
}

/* Responsive Anpassungen für Modal */
@media (max-width: 768px) {
    .blumenwiesen-modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }
    
    .coordinates-display {
        flex-direction: column;
    }
    
    .flower-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .flower-price {
        width: 100% !important;
        margin-top: 5px;
    }
    
    .flower-name-input {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 5px;
    }
    
    .remove-flower-btn {
        position: static !important;
        transform: none !important;
        margin-top: 5px;
        align-self: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
    }

    .bild-text {
        display: inline-flex;
        align-items: center; /* vertikal zentrieren */
        gap: 8px; /* Abstand zwischen Bild und Text */
    }
}

/* Suchleiste und Filter */
.search-filters-container {
    background: #4CAF50;
    padding: 10px;
    margin: 0 -20px 20px -20px; /* Negative Margins für volle Breite */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
    width: calc(100% + 40px); /* Volle Breite des Containers */
    position: relative; /* Für absolute Positionierung des Buttons */
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-filters-content {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap; /* Verhindert Umbruch */
    margin: 0 auto;
    align-items: center;
    justify-content: center; /* Zentriert die Felder horizontal */
    max-width: 1200px;
}

/* Button für neue Markierung */
.add-marker-section {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Button für neue Markierung */
.add-marker-section-sidebar {
    padding-bottom:16px;
    width:100%;
    text-align: center;
}

.add-marker-btn {
    width:250px;
    align-items: center;
    gap: 6px;
    background: #F0BE30;
    color: #000000;
    border: 1px solid #2E7D32;
    padding: 12px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: auto;
}

.add-marker-btn:hover {
    background: #2E7D32;
    color: white;
}

.add-marker-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto; /* Keine Flex-Größe, feste Breite */
    min-width: 200px;
    max-width: 250px;
}

.search-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    text-align: center;
}

.search-label i {
    font-size: 16px;
}

/* PLZ-Suche */
.plz-search-wrapper {
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: center;
}

.plz-input {
    width: 200px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: white;
}

.plz-input:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 5px rgba(46, 125, 50, 0.3);
}

.plz-search-btn {
    background: #2E7D32;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    min-width: 44px;
}

.plz-search-btn:hover {
    background: #1B5E20;
}

/* Umkreis-Filter */
.radius-select {
    width: 200px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    box-sizing: border-box;
}

.radius-select:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 5px rgba(46, 125, 50, 0.3);
}

/* Blumen-Filter Dropdown */
.flower-filter-dropdown {
    position: relative;
}

.flower-filter-btn {
    width: 100%;
    min-width: 200px;
    max-width: 300px;
    background: white;
    border: 1px solid #ddd;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 40px;
}

.flower-filter-btn:hover {
    border-color: #2E7D32;
}

.flower-filter-btn:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 5px rgba(46, 125, 50, 0.3);
}

.flower-filter-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 12px;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 600px;
    width: max-content;
}

.flower-filter-dropdown.active .flower-filter-content {
    display: block !important;
}

.flower-filter-dropdown.active .flower-filter-btn {
    border-radius: 4px 4px 0 0;
    border-bottom: none;
    background: #f8f9fa;
}

.flower-filter-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 12px;
}

.flower-filter-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    padding: 4px 0;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.filter-option:hover {
    color: #2E7D32;
}

.filter-actions {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.clear-filters-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.clear-filters-btn:hover {
    background: #5a6268;
}

/* Blumenauswahl-Formular Verbesserungen */
.flower-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    transition: all 0.2s ease;
    gap: 15px;
    min-height: 60px;
    box-sizing: border-box;
    width: 100%;
}

.flower-item:hover {
    background-color: #f0f0f0;
    border-color: #4CAF50;
}

.flower-item:last-child {
    margin-bottom: 0;
}

/* .flower-item label Definition entfernt - wird weiter unten definiert */

.flower-item input[type="checkbox"] {
    margin-right: 0;
    transform: scale(1.2);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
}

.flower-price {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    padding: 8px 6px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    text-align: right !important;
    box-sizing: border-box !important;
}

.flower-price::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.flower-price:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Icon-Styling für flower-item */
.flower-item label img {
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0;
    margin-right: 0;
}

/* Text-Styling für flower-item */
.flower-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-weight: 500;
    min-width: 0;
    gap: 8px;
    width: calc(100% - 80px - 15px);
    overflow: hidden;
}

.flower-item label > * {
    flex-shrink: 0;
}

.flower-item label > *:last-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive Design für flower-item */
@media (max-width: 768px) {
    .flower-item {
        flex-direction: row; /* Bleibt horizontal */
        align-items: center;
        gap: 8px;
        padding: 12px;
    }
    
    .flower-item label {
        flex: 1;
        gap: 6px;
        min-width: 0;
    }
    
    .flower-item label img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .flower-item input[type="checkbox"] {
        transform: scale(1.1);
    }
    
    .flower-item > div {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    
    .flower-name-input {
        font-size: 16px !important; /* Verhindert Zoom auf iOS */
    }
    
    .flower-price {
        width: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
    }
}

@media (max-width: 480px) {
    .flower-item {
        flex-direction: row; /* Bleibt horizontal auch auf sehr kleinen Bildschirmen */
        padding: 10px;
        gap: 6px;
    }
    
    .flower-item label {
        flex: 1;
        gap: 4px;
        min-width: 0;
    }
    
    .flower-item label img {
        width: 30px !important;
        height: 30px !important;
    }
    
    .flower-item input[type="checkbox"] {
        transform: scale(1.0);
    }
    
    .flower-item > div {
        gap: 4px;
        flex-shrink: 0;
    }
    
    .flower-name-input {
        font-size: 16px !important;
        padding: 8px 6px !important;
    }
    
    .flower-price {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        padding: 8px 4px !important;
        font-size: 14px !important;
    }
}

/* Nur bei sehr kleinen Bildschirmen umbrechen */
@media (max-width: 360px) {
    .flower-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }
    
    .flower-item label {
        width: 100%;
        gap: 4px;
    }
    
    .flower-item > div {
        justify-content: space-between;
    }
}

/* Dynamische Blumenauswahl Layout */
.flower-item.dynamic-flower {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 60px; /* Mindesthöhe für bessere Sichtbarkeit */
}

.flower-item.dynamic-flower label {
    flex: 1;
    margin: 0;
    min-width: 0; /* Verhindert Überlauf */
    display: flex;
    align-items: center;
    gap: 8px;
}

.flower-item.dynamic-flower label input[type="checkbox"] {
    margin-right: 0; /* Margin wird durch gap ersetzt */
    transform: scale(1.2);
    flex-shrink: 0; /* Checkbox darf nicht schrumpfen */
}

.flower-item.dynamic-flower label img {
    flex-shrink: 0; /* Icon darf nicht schrumpfen */
}

.flower-item.dynamic-flower > div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0; /* Verhindert Schrumpfung */
}

/* Responsive Design für dynamic-flower */
@media (max-width: 768px) {
    .flower-item.dynamic-flower {
        flex-direction: row; /* Bleibt horizontal */
        align-items: center;
        gap: 8px;
        padding: 12px;
    }
    
    .flower-item.dynamic-flower label {
        flex: 1;
        gap: 6px;
        min-width: 0;
    }
    
    .flower-item.dynamic-flower label img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .flower-item.dynamic-flower label input[type="checkbox"] {
        transform: scale(1.1);
    }
    
    .flower-item.dynamic-flower > div {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    
    .flower-item.dynamic-flower .flower-name-input {
        font-size: 16px !important; /* Verhindert Zoom auf iOS */
    }
    
    .flower-item.dynamic-flower .flower-price {
        width: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
    }
}

@media (max-width: 480px) {
    .flower-item.dynamic-flower {
        flex-direction: row; /* Bleibt horizontal auch auf sehr kleinen Bildschirmen */
        padding: 10px;
        gap: 6px;
    }
    
    .flower-item.dynamic-flower label {
        flex: 1;
        gap: 4px;
        min-width: 0;
    }
    
    .flower-item.dynamic-flower label img {
        width: 30px !important;
        height: 30px !important;
    }
    
    .flower-item.dynamic-flower label input[type="checkbox"] {
        transform: scale(1.0);
    }
    
    .flower-item.dynamic-flower > div {
        gap: 4px;
        flex-shrink: 0;
    }
    
    .flower-item.dynamic-flower .flower-name-input {
        font-size: 16px !important;
        padding: 8px 6px !important;
    }
    
    .flower-item.dynamic-flower .flower-price {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        padding: 8px 4px !important;
        font-size: 14px !important;
    }
}

/* Nur bei sehr kleinen Bildschirmen umbrechen */
@media (max-width: 360px) {
    .flower-item.dynamic-flower {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }
    
    .flower-item.dynamic-flower label {
        width: 100%;
        gap: 4px;
    }
    
    .flower-item.dynamic-flower > div {
        justify-content: space-between;
    }
}

.remove-flower-btn {
    flex-shrink: 0;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.remove-flower-btn:hover {
    background: #cc3333;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .search-filters-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-field {
        min-width: 100%;
        max-width: none;
    }
    
    .plz-search-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .plz-search-btn {
        width: 100%;
    }
    
    .flower-filter-content {
        position: static;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-top: 8px;
        min-width: auto;
        width: 100%;
    }
    
    .flower-filter-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .flower-filter-dropdown.active .flower-filter-btn {
        border-radius: 4px;
        border-bottom: 1px solid #ddd;
    }
    
    /* Umkreisfilter im Responsive ausblenden */
    #radius-filter-container {
        display: none !important;
    }
    
    /* Button für neue Markierung im Responsive anzeigen (ersetzt Umkreisfilter) */
    .add-marker-section-responsive {
        display: flex !important;
    }
    
    .add-marker-section-responsive .user-marker-controls {
        width: 100%;
        padding: 0;
        border: none;
        margin: 0;
    }
    
    .add-marker-section-responsive .button {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 4px;
        background: #F0BE30;
        color: #000000;
        border: 1px solid #2E7D32;
    }
    
    .add-marker-section-responsive .button:hover {
        background: #2E7D32;
        color: white;
    }
    
    /* Button unter der Karte im Responsive ausblenden */
    .user-marker-controls-below-map {
        display: none !important;
    }
    
    /* Button in der Sidebar im Responsive ausblenden */
    .add-marker-section-sidebar {
        display: none !important;
    }
    
    /* Button für neue Markierung - Mobile */
    .add-marker-section {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .add-marker-btn {
        padding: 6px 10px;
        font-size: 14px;
        gap: 4px;
    }
    
    .add-marker-icon {
        width: 14px;
        height: 14px;
    }
    
    .bild-text {
        display: inline-flex;
        align-items: center; /* vertikal zentrieren */
        gap: 8px; /* Abstand zwischen Bild und Text */
    }
}

/*1*/
/* Bild-Upload Styles */
.image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
}

.image-upload-area.dragover {
    border-color: #007cba;
    background: #f0f8ff;
}

.upload-zone {
    cursor: pointer;
}

.upload-icon {
    font-size: 48px;
    color: #007cba;
    margin-bottom: 15px;
}

.upload-link {
    color: #007cba;
    text-decoration: underline;
    cursor: pointer;
}

.upload-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .remove-image {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Thumbnail Styles für Map Info */
.marker-images {
    margin-top: 15px;
}

.marker-images h4 {
    margin-bottom: 10px;
    color: #333;
}

.image-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.image-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    position: relative;
}

.image-thumbnail:hover {
    border-color: #007cba;
    transform: scale(1.05);
}

.image-thumbnail::after {
    content: '🔍';
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-thumbnail:hover::after {
    opacity: 1;
}

.image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Zoom Modal */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.image-zoom-modal.show {
    display: flex;
}

.image-zoom-content {
    max-width: 95vw;
    max-height: 95vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-zoom-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.image-zoom-content img:hover {
    opacity: 0.9;
}

.image-zoom-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #F0BE30;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
}

.image-zoom-close:hover {
    background: #45a049;
    transform: scale(1.1);
}

/* Karussell Navigation */
.image-zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10002;
}

.image-zoom-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.image-zoom-nav.prev {
    left: 20px;
}

.image-zoom-nav.next {
    right: 20px;
}

.image-zoom-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-zoom-nav:disabled:hover {
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10002;
}

/* Loading Blocker und Progressbar */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(5px);
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.loading-details {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Zahlungsmethoden Styling */
.payment-methods {
    margin: 10px 0;
}

.payment-methods p {
    margin: 5px 0;
    font-size: 14px;
}

.payment-methods i {
    font-size: 16px;
    vertical-align: middle;
}

/* Sidebar List Styling */
.blumenwiese-item, .user-marker-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.blumenwiese-item:hover, .user-marker-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.marker-header h5 {
    color: #4CAF50 !important;
    font-size: 16px;
    font-weight: bold;
}

.payment-methods i {
    font-size: 14px;
    margin-right: 4px;
}

.image-thumbnails .image-thumbnail {
    transition: transform 0.2s ease;
}

.image-thumbnails .image-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-color: #4CAF50;
}

.image-thumbnails .image-thumbnail:active {
    transform: scale(0.95);
}

.route-button, .update-button {
    transition: all 0.3s ease;
}

.route-button:hover {
    background: #45a049 !important;
    transform: translateY(-1px);
}

.update-button:hover {
    background: #e55a5a !important;
    transform: translateY(-1px);
}

/* PLZ Search Styles */
.plz-search-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.plz-search-combined {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
}

.plz-input {
    flex: 1;
    padding: 10px 80px 10px 12px; /* Rechts Platz für beide Buttons */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 0;
    width: 100%;
}

.plz-search-btn {
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    width: 36px;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.plz-search-btn:hover {
    background: #45a049;
}

.plz-search-btn i {
    font-size: 14px;
}

.plz-clear-btn {
    position: absolute;
    right: 40px;
    top: 2px;
    bottom: 2px;
    width: 30px;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: #f44336;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.plz-clear-btn:hover {
    background: #d32f2f;
}

.plz-clear-btn i {
    font-size: 12px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .plz-search-wrapper {
        gap: 6px;
    }

    .plz-input {
        padding: 8px 75px 8px 10px; /* Angepasst für Mobile mit beiden Buttons */
        font-size: 13px;
    }

    .plz-search-btn {
        width: 32px;
        right: 1px;
        top: 1px;
        bottom: 1px;
    }

    .plz-search-btn i {
        font-size: 12px;
    }

    .plz-clear-btn {
        right: 35px;
        width: 25px;
    }

    .plz-clear-btn i {
        font-size: 10px;
    }

    .blumenwiese-item, .user-marker-item {
        transition: all 0.3s ease;
        padding: 12px;
        margin-bottom: 12px;
    }

    .blumenwiese-item:hover, .user-marker-item:hover {
        transform: none !important;
    }

    .marker-header h5 {
        font-size: 14px;
    }

    .image-thumbnails .image-thumbnail {
        width: 35px !important;
        height: 35px !important;
    }

    /* InfoWindow auf Mobile verstecken */
    .gm-style-iw {
        display: none !important;
    }

    /* Google Maps InfoWindow komplett deaktivieren auf Mobile */
    .gm-style-iw-d {
        display: none !important;
    }

    /* PayPal Button im Header auf Mobile ausblenden */
    .paypal-donations-header {
        display: none !important;
    }

    /* Übergeordnetes wp-block-column Div des PayPal Headers auf Mobile ausblenden */
    .wp-block-column:has(.paypal-donations-header) {
        display: none !important;
    }

    /* PayPal Button im Footer auf Mobile einblenden */
    .paypal-donations-footer {
        display: block !important;
    }
}

/* Desktop: PayPal Button im Header anzeigen, Footer ausblenden */
@media (min-width: 769px) {
    .paypal-donations-header {
        display: block !important;
    }

    /* Übergeordnetes wp-block-column Div des PayPal Headers auf Desktop anzeigen */
    .wp-block-column:has(.paypal-donations-header) {
        display: block !important;
    }

    .paypal-donations-footer {
        display: none !important;
    }
}

/* Standard: PayPal Buttons - Header anzeigen, Footer ausblenden */
.paypal-donations-header {
    display: block;
}

.paypal-donations-footer {
    display: none;
}

/* Footer PayPal Button ohne Tooltip */
.paypal-donations-footer .paypal-tooltip {
    display: none !important;
}

.paypal-donations-footer .paypal-tooltip-content {
    display: none !important;
}

/* Tooltip-Container komplett ausblenden um weißen Bereich zu vermeiden */
.paypal-donations-footer .paypal-tooltip,
.paypal-donations-footer .paypal-tooltip-content,
.paypal-donations-footer .paypal-tooltip-trigger {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Zusätzlich: Alle Tooltip-bezogenen Elemente im Footer ausblenden */
.paypal-donations-footer [class*="tooltip"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* PayPal Footer Button Container komplett optimieren */
.paypal-donations-footer {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

.paypal-donations-footer * {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

/* PayPal Button selbst optimieren */
.paypal-donations-footer .paypal-donations {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    display: inline-block !important;
}

/* Alle möglichen PayPal-Container ausblenden */
.paypal-donations-footer div,
.paypal-donations-footer span,
.paypal-donations-footer p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

/* Header Logo responsive anpassen - nur im Header-Bereich */
.site-header .wp-block-site-logo img,
.wp-block-site-logo img:not(.footer-logo) {
    width: 100px !important;
    height: auto !important;
}

/* Desktop: Header Logo größer */
@media (min-width: 769px) {
    .site-header .wp-block-site-logo img,
    .wp-block-site-logo img:not(.footer-logo) {
        width: 150px !important;
        height: auto !important;
    }
}

/* Footer Logo explizit auf 68px setzen und schützen */
.site-footer .wp-block-site-logo img,
.footer .wp-block-site-logo img,
.wp-block-site-logo.footer-logo img {
    width: 68px !important;
    height: auto !important;
}

/* Footer Logo auch auf Desktop bei 68px halten */
@media (min-width: 769px) {
    .site-footer .wp-block-site-logo img,
    .footer .wp-block-site-logo img,
    .wp-block-site-logo.footer-logo img {
        width: 68px !important;
        height: auto !important;
    }
}

/* Modal Collapse Button Styles */
.modal-collapse-btn {
    position: absolute;
    top: 10px;
    right: 60px;
    background: #F0BE30;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
}

.modal-collapse-btn:hover {
    background: #45a049;
    transform: scale(1.1);
}

/* Modal Shifted Styles */
.user-marker-modal-shifted .blumenwiesen-modal-content {
    left: 20% !important;
    transform: translate(-50%, -50%) !important;
    width: 80% !important;
    max-width: 80% !important;
}

/*2*/
/* Info Window Styling */
.blumenwiese-info-window {
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

/* Google Maps InfoWindow Schließen-Button anpassen */
.gm-ui-hover-effect {
    height: 30px !important;
}

/* Zusätzliche Anpassungen für den Schließen-Button */
.gm-ui-hover-effect::before {
    font-size: 16px !important;
    line-height: 25px !important;
}

.info-window-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.info-window-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.info-window-content {
    padding: 0;
}

.blumenwiese-info-window p {
    margin: 4px 0;
    font-size: 14px;
}

.blumenwiese-info-window strong {
    color: #555;
}

.blumenwiese-info-window a {
    color: #0073aa;
    text-decoration: none;
}

.blumenwiese-info-window a:hover {
    text-decoration: underline;
}

.blumenwiese-coordinates {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.blumenwiesen-actions {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.blumenwiesen-actions .button {
    display: inline-block;
    padding: 6px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 8px;
}

.blumenwiesen-actions .button:hover {
    background: #005a87;
}

/* Flower Toggle Styling */
.flower-toggle {
    user-select: none;
}

.flower-toggle:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.flower-details {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toggle-icon {
    transition: transform 0.3s ease, color 0.2s ease;
}

.flower-toggle:hover .toggle-icon {
    color: #0056b3 !important;
}

/*3*/
/* Sidebar Loading-Indikator */
.sidebar-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Update Image Upload Styles */
.update-image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
}

.update-image-upload-area.dragover {
    border-color: #007cba;
    background: #f0f8ff;
}

.update-upload-zone {
    cursor: pointer;
}

.update-image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.update-image-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.update-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-image-preview .remove-image {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Roter linker Rand für Pflichtfelder */
#marker-description,
#user-name,
.coordinates-container,
.date-range-container,
.payment-options,
#flower-selection-container
{
    border-left: 4px solid red !important;
    padding-left: 12px !important;
}

/* Grüner linker Rand für veröffentlichte Felder */
#location-description,
#contact-info,
#website,
#user-email,
#marker-comment,
.image-upload-area {
    border-left: 4px solid #4CAF50 !important;
    padding-left: 12px !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sidebar-loading p {
    margin: 0;
    font-size: 14px;
    color: #666;
}