/**
 * KiwiBI Treffs Plugin Styles
 */

/* Einzelner Treff */
.kiwibi-treff {
    margin: 0 auto 2em;
    padding: 2em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kiwibi-treff-title {
    color: #2c3e50;
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
    border-bottom: 3px solid #3498db;
}

.kiwibi-treff-section {
    margin-bottom: 2em;
    padding: 1.5em;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.kiwibi-treff-section h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 0.8em;
    font-weight: 600;
}

.kiwibi-treff-section p {
    margin: 0.5em 0;
    line-height: 1.6;
    color: #555;
}

.kiwibi-treff-address {
    border-left-color: #27ae60;
}

.kiwibi-treff-map-container {
    margin-top: 1.5em;
}

.kiwibi-treff-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 4px;
}

.leaflet-popup-content {
    margin: 0;
    padding: 0.5em;
}

/* Custom Pin Icon Styling */
.kiwibi-custom-pin {
    background: transparent !important;
    border: none !important;
}

.kiwibi-map-info {
    padding: 0.5em;
    line-height: 1.6;
}

.kiwibi-map-info strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.3em;
}

.kiwibi-treff-time {
    border-left-color: #e74c3c;
}

.kiwibi-treff-time p {
    font-size: 1.1em;
    font-weight: 500;
}

.kiwibi-termin-ausnahmen {
    padding: 0.8em;
    background: #f8f9fa;
    border-left: 3px solid #6c757d;
    border-radius: 4px;
    margin-bottom: 1em;
}

.kiwibi-termin-ausnahmen p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.5;
}

.kiwibi-termin-ausnahmen strong {
    color: #495057;
    font-weight: 600;
}

.kiwibi-treff-notes {
    border-left-color: #f39c12;
}

.kiwibi-hinweise-content {
    line-height: 1.6;
}

.kiwibi-hinweise-content p {
    margin: 0.5em 0;
}

.kiwibi-hinweise-content p:first-child {
    margin-top: 0;
}

.kiwibi-hinweise-content p:last-child {
    margin-bottom: 0;
}

.kiwibi-hinweise-content ul,
.kiwibi-hinweise-content ol {
    margin: 0.5em 0;
    padding-left: 2em;
}

.kiwibi-hinweise-content a {
    color: #3498db;
    text-decoration: underline;
}

.kiwibi-hinweise-content a:hover {
    color: #2980b9;
}

.kiwibi-treff-help-needed {
    border-left-color: #9b59b6;
    background: #f4ecf7;
}

.kiwibi-treff-help-needed h3 {
    color: #8e44ad;
}

.kiwibi-treff-formular {
    border-left-color: #16a085;
    text-align: center;
}

.kiwibi-formular-button {
    display: inline-block;
    padding: 1em 2em;
    background: #27ae60;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1em;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kiwibi-formular-button:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.kiwibi-formular-button:active {
    transform: translateY(0);
}

.kiwibi-treff-content {
    border-left-color: #34495e;
}

/* Liste aller Treffs */
.kiwibi-treffs-list {
    display: grid;
    gap: 2em;
    margin: 2em 0;
}

.kiwibi-treff-item {
    padding: 1.5em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kiwibi-treff-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kiwibi-treff-item h3 {
    margin-top: 0;
    margin-bottom: 0.8em;
}

.kiwibi-treff-item h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kiwibi-treff-item h3 a:hover {
    color: #3498db;
}

.kiwibi-treff-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin: 1em 0;
    padding: 0.8em;
    background: #f8f9fa;
    border-radius: 4px;
    align-items: center;
}

.kiwibi-treff-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.4em 0.8em;
    background: #fff;
    border-radius: 4px;
    font-size: 0.9em;
    color: #555;
    white-space: nowrap;
}

.kiwibi-barrierefrei-icon {
    display: inline-flex;
    align-items: center;
    padding: 0.4em 0.6em;
    background: #fff;
    border-radius: 4px;
}

.kiwibi-day {
    font-weight: 600;
    color: #e74c3c !important;
}

.kiwibi-time {
    color: #27ae60 !important;
}

.kiwibi-location {
    color: #3498db !important;
}

.kiwibi-treff-link {
    margin-left: auto;
}

.kiwibi-treff-excerpt {
    margin: 1em 0;
    color: #555;
    line-height: 1.6;
}

.kiwibi-treff-meta .kiwibi-treff-link {
    margin-left: auto;
}

.kiwibi-details-link {
    display: inline-block;
    padding: 0.3em 0.8em;
    background: #3498db;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9em;
    transition: background 0.3s ease, transform 0.2s ease;
}

.kiwibi-details-link:hover {
    background: #2980b9;
    transform: translateX(3px);
}

.kiwibi-details-link:active {
    transform: translateX(1px);
}

.kiwibi-treff-container {
    margin: 0 auto;
    padding: 2em 1em;
}

.kiwibi-treff-navigation {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 1px solid #e0e0e0;
}

.kiwibi-back-link {
    display: inline-block;
    padding: 0.6em 1.2em;
    background: #95a5a6;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.kiwibi-back-link:hover {
    background: #7f8c8d;
}

.kiwibi-treffs-archive {
    margin: 0 auto;
    padding: 2em 1em;
}

.kiwibi-treffs-archive-header {
    margin-bottom: 2em;
    text-align: center;
}

.kiwibi-treffs-archive-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5em;
}

.kiwibi-treffs-archive-description {
    color: #666;
    font-size: 1.1em;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kiwibi-treff {
        padding: 1.5em;
    }
    
    .kiwibi-treff-section {
        padding: 1em;
    }
    
    .kiwibi-treff-meta {
        flex-direction: column;
        gap: 0.5em;
    }
    
    .kiwibi-treff-meta span {
        width: 100%;
    }
    
    .kiwibi-treff-container,
    .kiwibi-treffs-archive {
        padding: 1em;
    }
    
    .kiwibi-treff-map {
        height: 300px;
    }
}
