/* Store Locator CSS */

/* === STATISTIK DASHBOARD === */
.store-stats-dashboard {
    margin: 20px 0;
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: bold;
}

.stat-card p {
    margin: 0;
    color: #666;
    font-weight: 600;
}

.stat-total h3 { color: #0073aa; }
.stat-approved h3 { color: #28a745; }
.stat-pending h3 { color: #ffc107; }
.stat-standplatz h3 { color: #6f42c1; }

.pending-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.pending-notice p {
    margin: 0;
    color: #856404;
}

/* === STATUS ANZEIGEN === */
.status-yes { color: green; font-weight: bold; }
.status-no { color: #999; }
.status-unknown { color: #999; }
.status-pending { color: orange; font-weight: bold; }
.status-approved { color: green; font-weight: bold; }

.no-stores {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* === EINSTELLUNGEN === */
.settings-stats {
    margin: 20px 0;
}

.pin-colors-table .color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    margin-left: 10px;
    vertical-align: middle;
}

.shortcode-info {
    max-width: none;
}

.shortcode-info ul {
    list-style-type: disc;
    margin-left: 20px;
}

.shortcode-info ul li {
    margin-bottom: 5px;
}

.privacy-notice {
    margin: 15px 0;
}

.css-classes ul {
    list-style-type: disc;
    margin-left: 20px;
}

.css-classes ul li {
    margin-bottom: 5px;
}

/* === FRONTEND KARTE === */
#store-locator-container {
    max-width: 100%;
    margin: 20px 0;
}

#store-map {
    border: 1px solid #ddd;
    border-radius: 4px;
}

#store-list {
    margin-top: 20px;
}

#store-list h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

.store-list-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.store-list-item:hover {
    background: #e9e9e9;
    border-color: #0073aa;
}

.store-list-item h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 1.1em;
}

.store-list-item p {
    margin: 5px 0;
    font-size: 0.95em;
    line-height: 1.4;
}

.pin-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin-right: 10px;
    flex-shrink: 0;
}

/* === POPUP STYLES === */
.store-popup h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
}

.store-popup p {
    margin: 5px 0;
    line-height: 1.4;
}

.leaflet-popup-content {
    min-width: 200px;
}

/* === KATEGORIE TAGS === */
.category-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin: 2px 2px 2px 0;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

/* === MEHRFARBIGE PINS === */
.custom-marker {
    border: none !important;
    background: transparent !important;
}

/* Verbessertes Styling für mehrfarbige Indikatoren */
.pin-indicator {
    position: relative;
    overflow: hidden;
}

/* Fallback für Browser ohne conic-gradient Support */
@supports not (background: conic-gradient(red, blue)) {
    .pin-indicator {
        background: #e74c3c !important; /* Fallback-Farbe */
    }
}

/* === ANMELDEFORMULAR === */
#store-registration-container {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

#store-registration-container h3 {
    margin-top: 0;
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.form-row {
    display: block;
    margin-bottom: 15px;
}

.form-row .form-field {
    margin-bottom: 15px;
}

.form-field {
    margin-bottom: 15px;
}

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

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

.form-field select[multiple] {
    height: 120px;
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

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

.form-field label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.field-description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 0;
}

.submit-button {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* === NACHRICHTEN === */
#registration-message {
    margin-top: 15px;
}

#registration-message .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 4px;
}

#registration-message .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 4px;
}

#registration-message .loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    padding: 12px;
    border-radius: 4px;
}

/* === LEGENDE FÜR MEHRFARBIGE PINS === */
.color-legend {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-top: 10px;
    font-size: 12px;
}

.color-legend h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #333;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 6px;
    border: 1px solid #ddd;
}

.legend-text {
    font-size: 11px;
    color: #666;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-card {
        margin-bottom: 10px;
    }
    
    #store-registration-container {
        padding: 15px;
    }
    
    .form-field select[multiple] {
        height: 100px;
    }
    
    .category-tag {
        font-size: 10px;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .stat-card h3 {
        font-size: 2em;
    }
    
    .store-list-item {
        padding: 10px;
    }
    
    .pin-indicator {
        width: 12px;
        height: 12px;
    }
}

/* === ADMIN STYLES === */
.form-table th {
    width: 200px;
}

.code {
    font-family: Consolas, Monaco, monospace;
}

.card {
    max-width: none;
}

.card ul {
    list-style-type: disc;
    margin-left: 20px;
}

.card ul li {
    margin-bottom: 5px;
};
    flex-shrink: 0;
}

/* === POPUP STYLES === */
.store-popup h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
}

.store-popup p {
    margin: 5px 0;
    line-height: 1.4;
}

.leaflet-popup-content {
    min-width: 200px;
}

/* === KATEGORIE TAGS === */
.category-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin: 2px 2px 2px 0;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

/* === MEHRFARBIGE PINS === */
.custom-marker {
    border: none !important;
    background: transparent !important;
}

/* Verbessertes Styling für mehrfarbige Indikatoren */
.pin-indicator {
    position: relative;
    overflow: hidden;
}

/* Fallback für Browser ohne conic-gradient Support */
@supports not (background: conic-gradient(red, blue)) {
    .pin-indicator {
        background: #e74c3c !important; /* Fallback-Farbe */
    }
}

/* === ANMELDEFORMULAR === */
#store-registration-container {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

#store-registration-container h3 {
    margin-top: 0;
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.form-row {
    display: block;
    margin-bottom: 15px;
}

.form-row .form-field {
    margin-bottom: 15px;
}

.form-field {
    margin-bottom: 15px;
}

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

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

.form-field select[multiple] {
    height: 120px;
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

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

.form-field label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.field-description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 0;
}

.submit-button {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* === NACHRICHTEN === */
#registration-message {
    margin-top: 15px;
}

#registration-message .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 4px;
}

#registration-message .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 4px;
}

#registration-message .loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    padding: 12px;
    border-radius: 4px;
}

/* === LEGENDE FÜR MEHRFARBIGE PINS === */
.color-legend {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-top: 10px;
    font-size: 12px;
}

.color-legend h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #333;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 6px;
    border: 1px solid #ddd;
}

.legend-text {
    font-size: 11px;
    color: #666;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-card {
        margin-bottom: 10px;
    }
    
    #store-registration-container {
        padding: 15px;
    }
    
    .form-field select[multiple] {
        height: 100px;
    }
    
    .category-tag {
        font-size: 10px;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .stat-card h3 {
        font-size: 2em;
    }
    
    .store-list-item {
        padding: 10px;
    }
    
    .pin-indicator {
        width: 12px;
        height: 12px;
    }
}

/* === ADMIN STYLES === */
.form-table th {
    width: 200px;
}

.code {
    font-family: Consolas, Monaco, monospace;
}

.card {
    max-width: none;
}

.card ul {
    list-style-type: disc;
    margin-left: 20px;
}

.card ul li {
    margin-bottom: 5px;
};
    flex-shrink: 0;
}

/* === POPUP STYLES === */
.store-popup h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
}

.store-popup p {
    margin: 5px 0;
    line-height: 1.4;
}

.leaflet-popup-content {
    min-width: 200px;
}

/* === ANMELDEFORMULAR === */
#store-registration-container {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

#store-registration-container h3 {
    margin-top: 0;
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.form-row {
    display: block;
    margin-bottom: 15px;
}

.form-row .form-field {
    margin-bottom: 15px;
}

.form-field {
    margin-bottom: 15px;
}

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

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

.form-field select[multiple] {
    height: 120px;
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

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

.form-field label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.field-description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 0;
}

.submit-button {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* === NACHRICHTEN === */
#registration-message {
    margin-top: 15px;
}

#registration-message .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 4px;
}

#registration-message .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 4px;
}

#registration-message .loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    padding: 12px;
    border-radius: 4px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-card {
        margin-bottom: 10px;
    }
    
    #store-registration-container {
        padding: 15px;
    }
    
    .form-field select[multiple] {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .stat-card h3 {
        font-size: 2em;
    }
    
    .store-list-item {
        padding: 10px;
    }
}

/* === ADMIN STYLES === */
.form-table th {
    width: 200px;
}

.code {
    font-family: Consolas, Monaco, monospace;
}

.card {
    max-width: none;
}

.card ul {
    list-style-type: disc;
    margin-left: 20px;
}

.card ul li {
    margin-bottom: 5px;
}