/* =============================================
   DiWiSu Reisen - Kombinierte Frontend Styles
   Version: 1.3 (WordPress Theme Optimiert)
   ============================================= */

/* BASIS-STYLES */
.diwidu-reisen-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.diwidu-reisen-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--wp--preset--color--foreground, #333);
    line-height: 1.6;
}

/* MONATSGRUPPIERUNG */
.reisen-monatsgruppe {
    margin-bottom: 50px;
    animation: fadeIn 0.5s ease-out;
}

.reisen-monatsgruppe h2 {
    font-size: 1.8rem;
    color: var(--wp--preset--color--primary, #2271b1);
    border-bottom: 2px solid var(--wp--preset--color--border-light, #f0f0f0);
    padding-bottom: 10px;
    margin: 40px 0 25px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
}

.reisen-monatsgruppe h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--wp--preset--color--primary, #2271b1);
    position: absolute;
    bottom: -1px;
    left: 0;
}

/* REISE-KARTE */
.reise-card {
    border: 1px solid var(--wp--preset--color--border, #e8e8e8);
    border-radius: 8px;
    overflow: hidden;
    background: var(--wp--preset--color--background, #fff);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.reise-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--wp--preset--color--primary-light, #c5d9ed);
}

.reise-image-link {
    display: block;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.reise-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.reise-card:hover .reise-image {
    transform: scale(1.05);
}

.reise-content {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* DATUM & TITEL */

.reise-dates-next {
    color: var(--wp--preset--color--foreground-light, #666);
	text-align: center;
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: bold;
}

.reise-dates {
    color: var(--wp--preset--color--foreground-light, #666);
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: bold;
}

.reise-title-next {
    font-size: 1.0rem;
	text-align: center;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    color: var(--wp--preset--color--foreground, #333);
}

.reise-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    color: var(--wp--preset--color--foreground, #333);
}

.reise-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.reise-title a:hover {
    color: var(--wp--preset--color--primary, #2271b1);
}

/* PREISBEREICH */
.reise-price-details {
    margin: 6px 0;
    padding-bottom: 6px;
    border-top: 1px solid var(--wp--preset--color--border-light, #f0f0f0);
    padding-top: 15px;
}

.price-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.price-label {
    min-width: 60px;
    color: var(--wp--preset--color--foreground-light, #666);
}

.price-icons {
    margin-right: auto;
    padding: 0 10px;
}

.price-value {
    margin-left: auto;
    font-weight: 600;
    color: var(--wp--preset--color--success, #2a9134);
    white-space: nowrap;
}

/* STATUSBEREICH */
.reise-status {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--wp--preset--color--border-light, #f0f0f0);
}

.status-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-available {
    color: var(--wp--preset--color--success, #2a9134);
    font-weight: 600;
}

.status-sold-out {
    color: var(--wp--preset--color--alert, #d63638);
    font-weight: 600;
}


.reise-status.available {
    background: rgba(42, 145, 52, 0.1);
    color: var(--wp--preset--color--success, #2a9134);
	text-align: center;
	padding-bottom: 15px;
}

.reise-status.sold-out {
    background: rgba(214, 54, 56, 0.1);
    color: var(--wp--preset--color--alert, #d63638);
	text-align: center;
	padding-bottom: 15px;
}


.capacity-count {
    font-size: 0.9em;
    opacity: 0.9;
    margin-left: 5px;
    font-weight: normal;
    color: var(--wp--preset--color--foreground-light, #555);
}

/* KATEGORIEN */
.template-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.template-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--wp--preset--color--primary-light, #f5f9ff);
    border: 1px solid var(--wp--preset--color--primary-light, #d6e4ff);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--wp--preset--color--primary, #1a73e8);
    text-decoration: none;
    transition: all 0.2s;
}



/* In frontend.css */
.template-category.no-link {
    cursor: default;
    pointer-events: none; /* Verhindert alle Klick-Events */
}

.template-category.no-link:hover {
    background: var(--wp--preset--color--primary-light, #f5f9ff);
    color: var(--wp--preset--color--primary, #1a73e8);
    /* Keine Änderung beim Hover - behält originales Aussehen */
    transform: none;
    box-shadow: none;
}

/* KURZINFO */
.reise-kurzinfo {
    margin: 6px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--wp--preset--color--foreground-light, #555);
    flex-grow: 1;
}

.reise-kurzinfo p {
    margin: 0 0 8px 0;
}

/* VIEW SWITCHER */
.view-switcher {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 20px 0;
    gap: 10px;
    align-items: center; /* Buttons gleich hoch */	
}

.view-switcher button {

    border: 1px solid var(--wp--preset--color--border, #ddd);
    color: var(--wp--preset--color--foreground, #333);
	position: relative;
    padding: 7px 12px 9px; /* Oben weniger Platz für optische Zentrierung */
    border: 1px solid var(--wp--preset--color--border, #ddd);
    background: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-height: 32px; /* Feste Höhe */
}

.view-switcher button.active {
    background: var(--wp--preset--color--primary, #2271b1);
    color: white;
    border-color: var(--wp--preset--color--primary, #2271b1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-1px);
	padding-top: 8px; /* Ausgleich für Border-Änderung */
    padding-bottom: 8px;
}

.view-switcher button:hover:not(.active) {
    border-color: var(--wp--preset--color--foreground-light, #999);
    background-color: var(--wp--preset--color--background-alt, #f5f5f5);
}

.view-switcher button:focus {
    outline: 2px solid var(--wp--preset--color--primary, #2271b1);
    outline-offset: 2px;
}

.view-switcher button .dashicons {
	position: relative;
    top: -1px; /* Feinjustierung für optische Zentrierung */
    margin-right: 0px;
    vertical-align: middle;
}

/* LIST VIEW STYLES */
.diwidu-reisen-liste.list-view {
    grid-template-columns: 1fr !important;
    gap: 20px;
}

.diwidu-reisen-liste.list-view .reise-card {
    flex-direction: row;
    height: auto;
    min-height: 200px;
}

.diwidu-reisen-liste.list-view .reise-image-link {
    width: 30%;
    height: auto;
    min-height: 200px;
    max-height: 300px;
}

.diwidu-reisen-liste.list-view .reise-content {
    width: 70%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.diwidu-reisen-liste.list-view .reise-kurzinfo {
    max-height: none;
    overflow: visible;
    margin-bottom: 15px;
}

.diwidu-reisen-liste.list-view .template-categories {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed var(--wp--preset--color--border-light, #eee);
}

.diwidu-reisen-liste.list-view .reise-status {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--wp--preset--color--border-light, #eee);
}

/* Optional scrollable content */
.diwidu-reisen-liste.list-view .reise-kurzinfo.scrollable {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
}

.diwidu-reisen-liste.list-view .reise-kurzinfo::-webkit-scrollbar {
    width: 5px;
}

.diwidu-reisen-liste.list-view .reise-kurzinfo::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--border, #ccc);
    border-radius: 3px;
}

/* PAGINIERUNG */
.diwidu-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 6px;
    flex-wrap: wrap;
}

.diwidu-pagination .page-numbers {
    padding: 8px 12px;
    border: 1px solid var(--wp--preset--color--border, #ddd);
    border-radius: 4px;
    text-decoration: none;
    color: var(--wp--preset--color--primary, #2271b1);
    transition: all 0.3s;
}

.diwidu-pagination .page-numbers.current {
    background: var(--wp--preset--color--primary, #2271b1);
    color: white;
    border-color: var(--wp--preset--color--primary, #2271b1);
}

.diwidu-pagination .page-numbers:hover:not(.current) {
    background: var(--wp--preset--color--primary-light, #f5f9ff);
}

/* VERANSTALTER-STYLES */
.veranstalter-info {
    margin-top: 40px;
    padding: 25px;
    background: var(--wp--preset--color--background-alt, #f9f9f9);
    border-radius: 8px;
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
}

.veranstalter-details {
    margin-top: 15px;
}

.veranstalter-kontakt p {
    margin: 0px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--wp--preset--color--foreground, #333);
}

.veranstalter-social {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s ease;
    color: var(--wp--preset--color--foreground, #333);
}

.social-link:hover {
    transform: translateY(-2px);
}

.facebook-link {
    color: #3b5998 !important;
}

.facebook-link .dashicons-facebook {
    color: #3b5998;
}

.instagram-link {
    color: #e1306c !important;
}

.instagram-link .dashicons-instagram {
    color: #e1306c;
}

.whatsapp-link {
    color: #25D366 !important;
}

.whatsapp-link .dashicons-whatsapp {
    color: #25D366;
}

.zusatzinfo {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--wp--preset--color--border, #ddd);
    color: var(--wp--preset--color--foreground, #333);
}

/* FEHLER & KEINE ERGEBNISSE */
.diwidu-no-results {
    text-align: center;
    padding: 40px 20px;
    background: var(--wp--preset--color--background-alt, #fafafa);
    border-radius: 8px;
    grid-column: 1 / -1;
    color: var(--wp--preset--color--foreground, #333);
}

.diwidu-error {
    padding: 15px;
    background: var(--wp--preset--color--alert-light, #ffebeb);
    border-left: 4px solid var(--wp--preset--color--alert, #d63638);
    margin: 20px 0;
    color: var(--wp--preset--color--alert, #d63638);
    grid-column: 1 / -1;
}

/* GRID-LAYOUT */
.diwidu-reisen-liste {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    animation: fadeIn 0.4s ease-out;
}

@media (min-width: 768px) {
    .diwidu-reisen-liste {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .diwidu-reisen-liste {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* MOBILE STYLES */
@media (max-width: 767px) {
    .reisen-monatsgruppe h2 {
        font-size: 1.5rem;
        margin: 30px 0 20px 0;
    }
    
    .reise-image-link {
        height: 160px;
    }
    
    .diwidu-reisen-liste {
        grid-template-columns: 1fr !important;
    }
    
    .view-switcher {
        display: none;
    }
    
    .diwidu-reisen-liste.list-view .reise-card,
    .diwidu-reisen-liste.grid-view .reise-card {
        flex-direction: column !important;
    }
    
    .diwidu-reisen-liste.list-view .reise-image-link,
    .diwidu-reisen-liste.grid-view .reise-image-link {
        width: 100% !important;
        height: 200px !important;
        max-height: none !important;
    }
    
    .diwidu-reisen-liste.list-view .reise-content,
    .diwidu-reisen-liste.grid-view .reise-content {
        width: 100% !important;
        padding: 15px !important;
    }
    
    .status-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .capacity-count {
        margin-left: 0;
        display: block;
    }
    
    .veranstalter-info {
        padding: 15px;
    }
    
    .veranstalter-kontakt p {
        font-size: 0.9rem;
    }
    
    .veranstalter-social {
        flex-direction: column;
        gap: 10px;
    }
}

/* DRUCKOPTIMIERUNGEN */
@media print {
    .reisen-monatsgruppe {
        page-break-inside: avoid;
    }
    
    .reise-card {
        break-inside: avoid;
        background: #fff !important;
        border: 1px solid #ddd !important;
    }
    
    .view-switcher,
    .veranstalter-social {
        display: none;
    }
    
    .status-available {
        color: #0a7c00 !important;
    }
    
    .status-sold-out {
        color: #d63638 !important;
    }
    
    .reise-title a,
    .template-category {
        color: #000 !important;
    }
}

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



/* KOMMENTARBEREICH */
.diwidu-comments-section.veranstalter-info {
    margin: 50px 0 0;
    padding: 40px 20px 20px;
    border-top: 2px solid var(--wp--preset--color--border-light, #f0f0f0);
}

.diwidu-comments-section .veranstalter-title {
    font-size: 1.8rem;
    color: var(--wp--preset--color--primary, #2271b1);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--wp--preset--color--border-light, #f0f0f0);
    position: relative;
}

.diwidu-comments-section .veranstalter-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--wp--preset--color--primary, #2271b1);
    position: absolute;
    bottom: -1px;
    left: 0;
}

.diwidu-comments-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.diwidu-comment {
    padding: 15px;
    margin-bottom: 20px;
    background: #f5f5f5; /* Grauer Hintergrund bleibt erhalten */
    border-radius: 8px;
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    transition: all 0.3s ease;
}

.diwidu-comment:hover {
    background: #e8e8e8; /* Hover-Effekt bleibt erhalten */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.diwidu-comment .comment-meta {
    margin-bottom: 15px;
    font-size: 0.95em;
}

.diwidu-comment .comment-author {
    font-weight: bold;
    color: var(--wp--preset--color--primary, #2271b1);
    display: inline;
}

.diwidu-comment .comment-date,
.diwidu-comment .comment-time {
    font-weight: bold;
    color: var(--wp--preset--color--foreground, #333);
    display: inline;
}

.diwidu-comment .comment-content {
    line-height: 1.6;
    color: var(--wp--preset--color--foreground, #333);
}

.diwidu-comment .comment-content p {
    margin: 0 0 15px 0;
}

.diwidu-no-comments {
    padding: 20px;
    background: var(--wp--preset--color--background, #fff);
    border-radius: 8px;
    text-align: center;
    color: var(--wp--preset--color--foreground-light, #666);
    border: 1px dashed var(--wp--preset--color--border, #ddd);
}

/* BUTTON */








#load-more-comments {
    background: var(--wp--preset--color--primary, #2271b1);
    color: var(--wp--preset--color--background, #fff);
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#load-more-comments:hover {
    background: var(--wp--preset--color--primary-dark, #135e96);
}


#submit {
    background: var(--wp--preset--color--primary, #2271b1);
    color: var(--wp--preset--color--background, #fff);
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}


#submit:hover {
    background: var(--wp--preset--color--primary-dark, #135e96);
}

/* Sicherstellen dass Dashicons geladen sind */
@font-face {
  font-family: "dashicons";
  src: url("<?php echo includes_url('css/dashicons.woff2'); ?>") format('woff2');
}

/* Mobile Styles für Dashicons */
@media (max-width: 767px) {
    /* Social Media Icons in einer Reihe belassen */
    .veranstalter-social {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 15px;
    }
    
    /* Dashicons Größe und Sichtbarkeit sicherstellen */
    .veranstalter-social .dashicons,
    .veranstalter-kontakt .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
        display: inline-block;
        vertical-align: middle;
    }
    
    /* Social Links mit Icons */
    .social-link {
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }
    
    /* Kontakt-Icons Ausrichtung */
    .veranstalter-kontakt p {
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

.diwidu-formular-input {
    padding: 15px;
    margin-bottom: 20px;
    background: #f5f5f5; /* Grauer Hintergrund bleibt erhalten */
    border-radius: 8px;
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    transition: all 0.3s ease;
}

.diwidu-formular-input:focus {
    background: #e8e8e8; /* Hover-Effekt bleibt erhalten */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}



