/**
 * Frontend Styles für Yoga Wandern Reisen
 */

/* ========================================
   Übersichtsliste (Shortcode)
   ======================================== */

.ywr-trips-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ywr-month-section {
    margin-bottom: 60px;
}

.ywr-month-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.ywr-month-divider {
    width: 80px;
    height: 3px;
    background-color: #c44536;
    margin: 0 auto 40px;
}

.ywr-trip-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ywr-trip-item:last-child {
    border-bottom: none;
}

.ywr-trip-date {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 600;
    color: #c44536;
    min-width: 180px;
    text-align: left;
}

.ywr-trip-content {
    flex-grow: 1;
}

.ywr-trip-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.ywr-trip-location {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.ywr-trip-action {
    flex-shrink: 0;
}

.ywr-btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.ywr-btn-info {
    background-color: #fff;
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

.ywr-btn-info:hover {
    background-color: #2c3e50;
    color: #fff;
}

.ywr-btn-primary {
    background-color: #c44536;
    color: #fff;
    border: 2px solid #c44536;
}

.ywr-btn-primary:hover {
    background-color: #a73829;
    border-color: #a73829;
}

.ywr-availability-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    margin-left: 10px;
    letter-spacing: 0.5px;
}

.ywr-badge-few-spots {
    background-color: #fff3cd;
    color: #856404;
}

.ywr-badge-sold-out {
    background-color: #f8d7da;
    color: #721c24;
}

.ywr-badge-waitlist {
    background-color: #cce5ff;
    color: #004085;
}

.ywr-badge-cancelled {
    background-color: #e2e3e5;
    color: #383d41;
}

/* ========================================
   Detailseite (Single Trip)
   ======================================== */

.ywr-single-trip {
    max-width: 1400px;
    margin: 0 auto;
}

.ywr-trip-hero {
    margin-bottom: 40px;
}

.ywr-hero-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.ywr-trip-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 0 20px;
}

.ywr-trip-sidebar {
    position: relative;
}

.ywr-sidebar-sticky {
    position: sticky;
    top: 20px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ywr-logo {
    text-align: center;
    margin-bottom: 25px;
}

.ywr-sidebar-logo {
    max-width: 180px;
    height: auto;
}

.ywr-contact-info {
    margin-bottom: 25px;
}

.ywr-contact-info h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.ywr-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 14px;
}

.ywr-contact-item .dashicons {
    color: #c44536;
    font-size: 18px;
}

.ywr-contact-item a {
    color: #2c3e50;
    text-decoration: none;
}

.ywr-contact-item a:hover {
    color: #c44536;
}

.ywr-btn-book {
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.ywr-location-box {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    border-left: 3px solid #c44536;
}

.ywr-location-box h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
}

.ywr-location-box p {
    margin: 0;
    font-size: 14px;
    color: #2c3e50;
}

.ywr-trip-main {
    padding-bottom: 40px;
}

.ywr-trip-header {
    margin-bottom: 40px;
}

.ywr-trip-meta-top {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ywr-meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ywr-meta-item .dashicons {
    color: #c44536;
    font-size: 20px;
}

.ywr-meta-item span {
    font-size: 13px;
    color: #666;
}

.ywr-meta-item strong {
    font-size: 16px;
    color: #2c3e50;
}

.ywr-trip-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.ywr-trip-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: #c44536;
    font-style: italic;
    margin: 0 0 20px 0;
}

.ywr-trip-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.ywr-trip-content p {
    margin-bottom: 20px;
}

.ywr-services-section,
.ywr-pricing-section,
.ywr-info-section,
.ywr-cancellation-section,
.ywr-travel-info {
    margin: 40px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ywr-services-section h3,
.ywr-pricing-section h3 {
    font-size: 20px;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.ywr-services-list,
.ywr-pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ywr-services-list li,
.ywr-pricing-list li {
    padding: 10px 0 10px 30px;
    position: relative;
}

.ywr-services-list li:before {
    content: "•";
    color: #c44536;
    font-size: 20px;
    position: absolute;
    left: 10px;
    top: 8px;
}

.ywr-price-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

.ywr-cancellation-section h4,
.ywr-travel-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

/* ========================================
   Buchungsformular
   ======================================== */

.ywr-booking-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid #c44536;
}

.ywr-booking-form-wrapper {
    max-width: 1200px;
}

.ywr-alert {
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.ywr-alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.ywr-booking-form {
    background: #fff;
}

.ywr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.ywr-form-section {
    margin-bottom: 40px;
}

.ywr-form-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.ywr-form-group {
    margin-bottom: 20px;
}

.ywr-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.ywr-form-group input[type="text"],
.ywr-form-group input[type="email"],
.ywr-form-group input[type="tel"],
.ywr-form-group select,
.ywr-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.ywr-form-group input:focus,
.ywr-form-group select:focus,
.ywr-form-group textarea:focus {
    outline: none;
    border-color: #c44536;
}

.ywr-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.ywr-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.required {
    color: #c44536;
}

.ywr-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    cursor: pointer;
}

.ywr-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ywr-order-summary {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.ywr-order-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.ywr-order-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ywr-order-item:last-child {
    border-bottom: none;
}

.ywr-order-label {
    font-size: 14px;
    color: #666;
}

.ywr-order-value {
    font-size: 14px;
    color: #2c3e50;
    text-align: right;
}

.ywr-order-trip-title {
    font-size: 14px;
    color: #2c3e50;
    flex: 1;
}

.ywr-order-trip-meta {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.ywr-order-total {
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #2c3e50 !important;
}

.ywr-order-total .ywr-order-label,
.ywr-order-total .ywr-order-value {
    font-size: 16px;
}

.ywr-tax-note {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 400;
    margin-top: 5px;
}

.ywr-payment-info {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 5px;
    border-left: 3px solid #2196f3;
}

.ywr-payment-info h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #1565c0;
}

.ywr-payment-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.ywr-privacy-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.ywr-privacy-text a {
    color: #2196f3;
    text-decoration: none;
}

.ywr-privacy-text a:hover {
    text-decoration: underline;
}

.ywr-btn-submit {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    margin-top: 20px;
}

.ywr-btn-submit:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.ywr-form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.ywr-form-messages.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ywr-form-messages.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .ywr-trip-wrapper {
        grid-template-columns: 1fr;
    }

    .ywr-trip-sidebar {
        order: -1;
    }

    .ywr-sidebar-sticky {
        position: static;
    }

    .ywr-form-row {
        grid-template-columns: 1fr;
    }

    .ywr-order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .ywr-trip-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .ywr-trip-date {
        min-width: auto;
    }

    .ywr-trip-action {
        width: 100%;
    }

    .ywr-btn {
        width: 100%;
    }

    .ywr-trip-meta-top {
        flex-direction: column;
        gap: 20px;
    }

    .ywr-form-row-2 {
        grid-template-columns: 1fr;
    }
}
