/**
 * Healing Haven Courses - Single Course Styles
 */

/* Reset box-sizing for all elements in plugin */
.hhc-single-course-wrapper *,
.hhc-single-course-wrapper *::before,
.hhc-single-course-wrapper *::after {
    box-sizing: border-box;
}

/* Page Header */
.hhc-page-header {
    padding: 40px 0 40px;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(180deg, #f8f9fa 0%, #e8eaed 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hhc-page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 15px;
    color: #333;
}

.hhc-page-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Wrapper & Container */
.hhc-single-course-wrapper {
    background: #f8f9fa;
    padding: 0;
    min-height: 100vh;
}

.hhc-container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.hhc-single-course-wrapper .hhc-container {
    padding: 30px 20px !important;
}

/* WordPress Theme Override - Container Constraints entfernen */
.entry-content .hhc-container,
.wp-block-post-content .hhc-container,
article .hhc-container,
main .hhc-container {
    max-width: 1200px !important;
    width: 100% !important;
    overflow: visible !important;
}

/* Ensure parent containers don't block sticky */
.entry-content,
.wp-block-post-content,
article,
main {
    overflow: visible !important;
}

/* Verstecke WordPress Standard Breadcrumb und Header-Bereiche */
.wp-block-post-content > p:first-child,
.entry-content > p:first-child,
.wp-block-post-content-breadcrumb,
.rank-math-breadcrumb,
.yoast-breadcrumb,
body .wp-block-post-content > p:first-of-type,
#wp--skip-link--target > div.wp-block-group.has-bg-background-color.has-background.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-7e6a73b0.wp-block-group-is-layout-constrained,
#wp--skip-link--target > div.wp-block-group.alignfull.has-background.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
    display: none !important;
}

/* Entferne Margin/Padding von WordPress Container über dem Breadcrumb */
#wp--skip-link--target > div.wp-block-group.has-bg-background-color.has-background.page-content-wrapper.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-b4c761c0.wp-block-group-is-layout-constrained,
body .page-content-wrapper,
.wp-block-group.page-content-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Entferne auch Abstände von direkten Child-Elementen */
#wp--skip-link--target > div.wp-block-group.has-bg-background-color.has-background.page-content-wrapper.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-b4c761c0.wp-block-group-is-layout-constrained > div,
#wp--skip-link--target > div.wp-block-group.has-bg-background-color.has-background.page-content-wrapper.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-b4c761c0.wp-block-group-is-layout-constrained > div > div {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Breadcrumb über Hero Image - Links ausrichten mit Padding */
#wp--skip-link--target > div.wp-block-group.has-bg-background-color.has-background.page-content-wrapper.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-b4c761c0.wp-block-group-is-layout-constrained > div > div > div > nav {
    padding-left: 20px !important;
    margin-left: 0 !important;
}

/* Breadcrumb WordPress Selektor für große Bildschirme */
@media (min-width: 1240px) {
    #wp--skip-link--target > div.wp-block-group.has-bg-background-color.has-background.page-content-wrapper.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-b4c761c0.wp-block-group-is-layout-constrained > div > div > div > nav {
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
    }
}

/* Breadcrumb */
.hhc-breadcrumb {
    margin-bottom: 20px;
    margin-top: 20px !important;
    padding-top: 0 !important;
    font-size: 14px;
    color: #666;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Breadcrumb Ausrichtung für große Bildschirme (>= 1240px) */
/* Richtet den Breadcrumb links am Hero-Image aus */
@media (min-width: 1240px) {
    .hhc-breadcrumb {
        /* Zentriert wie das Hero-Image in 1200px Container */
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Auch für Theme-Overrides */
    .entry-content .hhc-breadcrumb,
    .wp-block-post-content .hhc-breadcrumb,
    article .hhc-breadcrumb {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.hhc-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.hhc-breadcrumb a:hover {
    color: #333;
}

.hhc-breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

.hhc-breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* Main Layout - Force 2-column grid */
.hhc-single-course-wrapper .hhc-course-main {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* Hero Image - Full Width */
.hhc-course-hero-image {
    position: relative;
    width: calc(100% + 40px) !important;
    max-width: none !important;
    margin: 0 -20px 40px -20px !important;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Theme Override für Hero Image - Full viewport width */
.entry-content .hhc-course-hero-image,
.wp-block-post-content .hhc-course-hero-image,
article .hhc-course-hero-image {
    max-width: none !important;
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-bottom: 40px !important;
}

/* Limit to 1200px on larger screens */
@media (min-width: 1240px) {
    .entry-content .hhc-course-hero-image,
    .wp-block-post-content .hhc-course-hero-image,
    article .hhc-course-hero-image {
        width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        left: auto;
        right: auto;
    }
}

.hhc-hero-image {
    width: 100%;
    height: 500px;
    display: block;
    background-repeat: no-repeat;
}

.hhc-badge-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.hhc-course-hero-image .hhc-badge {
    position: relative;
    top: auto;
    right: auto;
}

/* Left Column - Kursbeschreibung und Inhalt */
.hhc-course-left {
    width: 100%;
    min-width: 0;
}

.hhc-course-info {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 30px;
    overflow: visible;
}

/* Course Images */
.hhc-course-images {
    position: relative;
    width: 100%;
    margin: 0;
}

.hhc-main-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hhc-main-image img {
    width: 100%;
    height: auto;
    display: block;
    /* Zeigt das komplette Bild in voller Breite */
    border-radius: 12px 12px 0 0;
}

/* Badges */
.hhc-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 1;
    white-space: nowrap;
}

.hhc-badge-block {
    background: #4CAF50;
    color: white;
}

.hhc-badge-full {
    background: #f44336;
    color: white;
}

.hhc-badge-limited {
    background: #ff9800;
    color: white;
}

/* Gallery Thumbnails */
.hhc-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 15px 30px;
    background: white;
    overflow-x: auto;
}

.hhc-thumb {
    flex-shrink: 0;
    width: 50px;
    height: 89px; /* 9:16 Aspect Ratio für Thumbnails */
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: #f5f5f5;
}

.hhc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

.hhc-thumb:hover,
.hhc-thumb.active {
    border-color: #2196F3;
    transform: scale(1.05);
}

/* Course Description */
.hhc-course-description {
    padding: 0;
}

/* Display mode specific styles */
.hhc-course-left[data-display-mode="text_only"] .hhc-course-images {
    display: none;
}

.hhc-course-left[data-display-mode="image_only"] .hhc-course-content {
    display: none;
}

.hhc-course-left[data-display-mode="image_only"] .hhc-course-schedule {
    display: none;
}

.hhc-course-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
    line-height: 1.3;
}

/* Taxonomies */
.hhc-course-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.hhc-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hhc-category-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.hhc-category-tag:hover {
    background: #1976d2;
    color: white;
}

.hhc-locations {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.hhc-locations .hhc-icon {
    fill: currentColor;
}

/* Course Highlights */
.hhc-course-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.hhc-highlight {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hhc-highlight .hhc-icon {
    flex-shrink: 0;
    fill: #2196F3;
    margin-top: 2px;
}

.hhc-highlight div {
    flex: 1;
}

.hhc-highlight strong {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.hhc-highlight span {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.hhc-highlight small {
    color: #999;
    font-size: 12px;
}

/* Course Content */
.hhc-course-content {
    margin-top: 30px;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

.hhc-course-content p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.8;
}

.hhc-course-content h2 {
    font-size: 26px;
    color: #333;
    margin: 35px 0 20px;
    font-weight: 600;
}

.hhc-course-content h3 {
    font-size: 22px;
    color: #333;
    margin: 30px 0 15px;
    font-weight: 600;
}

.hhc-course-content ul,
.hhc-course-content ol {
    margin-left: 20px;
    font-size: 16px;
}

.hhc-course-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

/* WordPress Aligned Images */
.hhc-course-content .alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.hhc-course-content .alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.hhc-course-content .aligncenter {
    display: block;
    margin: 20px auto;
}

.hhc-course-content .alignnone {
    display: block;
    margin: 20px 0;
}

/* WordPress Image Captions */
.hhc-course-content .wp-caption {
    max-width: 100%;
    margin: 20px 0;
}

.hhc-course-content .wp-caption img {
    margin: 0;
    max-width: 100%;
    height: auto;
}

.hhc-course-content .wp-caption-text {
    margin: 8px 0 0;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* WordPress Block Images */
.hhc-course-content .wp-block-image {
    margin: 20px 0;
}

.hhc-course-content .wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* Course Schedule */
.hhc-course-schedule {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.hhc-course-schedule h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.hhc-course-schedule h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
}

/* Course Info Box */
.hhc-course-info-box {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.hhc-course-info-box .hhc-course-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
    line-height: 1.3;
}

/* Content Images - Full Width */
.hhc-content-images {
    margin-top: 30px;
}

.hhc-content-image {
    margin: 20px 0;
    width: 100%;
}

.hhc-full-width-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hhc-block-info {
    padding: 15px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Events List */
.hhc-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hhc-event-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.hhc-event-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hhc-event-item.hhc-event-full {
    opacity: 0.7;
    background: #fafafa;
}

.hhc-event-date {
    text-align: center;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 6px;
}

.hhc-date-day {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.hhc-date-month {
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    margin-top: 3px;
}

.hhc-event-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.hhc-event-weekday {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.hhc-event-time,
.hhc-event-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.hhc-event-time .hhc-icon,
.hhc-event-location .hhc-icon {
    fill: currentColor;
    opacity: 0.6;
}

/* Event Availability */
.hhc-event-availability {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    align-items: flex-end;
}

.hhc-available {
    color: #4caf50;
    font-weight: 500;
    font-size: 13px;
}

.hhc-fully-booked {
    color: #f44336;
    font-weight: 500;
    font-size: 13px;
}

.hhc-fully-booked small {
    display: block;
    color: #999;
    font-size: 12px;
    font-weight: normal;
    margin-top: 2px;
}

.hhc-availability-bar {
    width: 120px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.hhc-availability-fill {
    height: 100%;
    background: #4caf50;
    transition: width 0.3s;
}

/* Force Grid Layout for WordPress Theme Compatibility */
.hhc-single-course-wrapper .hhc-course-left {
    grid-column: 1 !important;
    max-width: 100% !important;
}

.hhc-single-course-wrapper .hhc-course-right {
    grid-column: 2 !important;
    max-width: 100% !important;
    /* Sticky positioning für Desktop */
    position: sticky;
    top: 100px; /* Abstand vom oberen Rand (Header-Höhe berücksichtigen) */
    align-self: start; /* Wichtig für sticky in Grid-Layouts */
    height: fit-content;
}

/* Booking Widget */
.hhc-booking-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    overflow: hidden;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.hhc-booking-widget:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.15);
}

/* Widget Thumbnail */
.hhc-widget-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.hhc-widget-thumbnail .hhc-widget-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 250px;
    border-radius: 12px 12px 0 0;
}

.hhc-widget-thumbnail .hhc-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

/* Widget Header */
.hhc-widget-header {
    padding: 25px;
    background: linear-gradient(135deg, #67836c 0%, #4d6756 100%);
    color: white;
}

.hhc-widget-header h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.hhc-widget-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.hhc-price-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.hhc-price-amount {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Booking Form */
.hhc-booking-form {
    padding: 30px;
}

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

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

.hhc-form-group input,
.hhc-form-group select,
.hhc-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fafafa;
}

.hhc-form-group input:hover,
.hhc-form-group select:hover,
.hhc-form-group textarea:hover {
    border-color: #c0c0c0;
    background: #fff;
}

.hhc-form-group input:focus,
.hhc-form-group select:focus,
.hhc-form-group textarea:focus {
    outline: none;
    border-color: #67836c;
    box-shadow: 0 0 0 3px rgba(103, 131, 108, 0.1);
    background: #fff;
}

.hhc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* PLZ/Ort Zeile mit unterschiedlichen Breiten */
.hhc-form-row .hhc-form-group-small {
    flex: 0 0 120px;
    min-width: 100px;
}

.hhc-form-row .hhc-form-group-large {
    flex: 1;
}

/* Spezielle Grid-Aufteilung für PLZ/Ort */
.hhc-form-row:has(.hhc-form-group-small) {
    grid-template-columns: 120px 1fr;
}

.hhc-form-checkboxes {
    margin: 25px 0;
}

.hhc-form-checkbox {
    margin-bottom: 15px;
}

.hhc-form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}

.hhc-form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.hhc-form-checkbox a {
    color: #2196F3;
    text-decoration: underline;
}

/* Alle Termine Liste */
.hhc-all-dates {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
}

.hhc-all-dates h4 {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hhc-dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}

.hhc-date-item {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
    border-left: 2px solid transparent;
}

.hhc-date-item.upcoming {
    background: #f0f7f1;
    border-left-color: #67836c;
}

.hhc-date-item.past {
    background: #fafafa;
    color: #aaa;
    border-left-color: #ddd;
}

.hhc-date-value {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.hhc-date-item.past .hhc-date-value {
    color: #999;
}

.hhc-date-time {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.hhc-date-item.past .hhc-date-time {
    color: #bbb;
}

.hhc-date-status {
    font-size: 10px;
    margin-top: 4px;
    color: #999;
    font-style: italic;
}

.hhc-date-status.past {
    color: #bbb;
}

/* Price Summary */
.hhc-price-summary {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaed 100%);
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #e0e0e0;
}

.hhc-price-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.hhc-price-row span:last-child {
    font-weight: 600;
    color: #333;
}

.hhc-price-row.hhc-total {
    padding-top: 12px;
    border-top: 2px solid #67836c;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-top: 8px;
    margin-bottom: 0;
}

.hhc-price-row.hhc-total .hhc-total-price {
    color: #67836c;
}

/* Buttons */
.hhc-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.hhc-btn-primary {
    background: linear-gradient(135deg, #67836c 0%, #4d6756 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(103, 131, 108, 0.2);
}

.hhc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(103, 131, 108, 0.3);
    background: linear-gradient(135deg, #5A7560 0%, #4A6350 100%);
}

.hhc-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(103, 131, 108, 0.2);
}

.hhc-btn-block {
    display: block;
    width: 100%;
}

.hhc-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
}

/* Login Required */
.hhc-login-required {
    padding: 25px;
    text-align: center;
}

.hhc-login-required p {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

/* No Events */
.hhc-no-events {
    padding: 30px;
    text-align: center;
    color: #999;
}

/* Form Messages */
.hhc-form-messages {
    margin-top: 20px;
}

.hhc-form-messages .success {
    padding: 12px 16px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 6px;
    font-size: 14px;
}

.hhc-form-messages .error {
    padding: 12px 16px;
    background: #ffebee;
    color: #c62828;
    border-radius: 6px;
    font-size: 14px;
}

/* Info Widget */
.hhc-info-widget {
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transition: box-shadow 0.3s ease;
}

.hhc-info-widget:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.15);
}

.hhc-info-widget h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.hhc-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hhc-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.hhc-info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hhc-info-list .hhc-icon {
    fill: #67836c;
    flex-shrink: 0;
}

/* Icons */
.hhc-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hhc-single-course-wrapper .hhc-course-main {
        grid-template-columns: 1fr 350px !important;
    }
}

@media (max-width: 992px) {
    /* Padding oben für Mobile wegen fixiertem Header */
    .hhc-breadcrumb {
        margin-top: 80px !important;
        padding-top: 20px !important;
    }

    /* Einspaltiges Layout für Mobile - KRITISCH */
    .hhc-single-course-wrapper .hhc-course-main {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Booking Widget ans Ende verschieben auf Mobile - FORCE ORDER */
    .hhc-single-course-wrapper .hhc-course-main > .hhc-course-left {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px !important;
        order: 1 !important; /* Beschreibung zuerst */
        display: block !important;
        position: static !important;
    }

    .hhc-single-course-wrapper .hhc-course-main > .hhc-course-right {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px !important;
        order: 2 !important; /* Booking Widget nach unten */
        display: block !important;
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    /* Entferne jegliche Position Sticky auf Mobile */
    .hhc-single-course-wrapper .hhc-course-right,
    .hhc-single-course-wrapper .hhc-booking-widget,
    .hhc-single-course-wrapper .hhc-info-widget,
    body .hhc-course-right,
    .entry-content .hhc-course-right,
    article .hhc-course-right {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    .hhc-booking-widget,
    .hhc-info-widget {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Thumbnail zentriert auf Mobile */
    .hhc-course-image,
    .hhc-thumb {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    .hhc-course-images {
        text-align: center !important;
        padding: 0 !important;
    }

    .hhc-thumbs-grid {
        justify-content: center !important;
    }

    /* Hauptbild zentrieren */
    .hhc-course-image img {
        margin: 0 auto !important;
        display: block !important;
    }

    /* Mobile Anpassungen für neue Terminanzeige */
    .hhc-next-event-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hhc-next-event-date {
        text-align: center;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e0e0e0;
    }
}

@media (max-width: 768px) {
    /* Alle Container auf minimales Padding setzen */
    .hhc-single-course-wrapper .hhc-container,
    body .hhc-single-course-wrapper .hhc-container,
    .entry-content .hhc-container,
    .wp-block-post-content .hhc-container {
        padding: 0 10px !important;
    }

    /* WordPress Container Padding reduzieren - gleich wie im Archiv */
    #wp--skip-link--target > div.wp-block-group.has-bg-background-color.has-background.page-content-wrapper.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-b4c761c0.wp-block-group-is-layout-constrained > div > div > div,
    #wp--skip-link--target > div > div > div > div {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* WICHTIG: Course-Main Margin entfernen - das war das Problem! */
    .hhc-course-main,
    .hhc-single-course-wrapper .hhc-course-main,
    body .hhc-course-main {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Course-Info und Schedule Boxen - weniger Padding */
    .hhc-course-info,
    .hhc-course-schedule {
        padding: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Hero Image */
    .hhc-course-hero-image {
        margin-bottom: 10px;
        border-radius: 8px;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hhc-hero-image {
        max-height: 300px;
    }

    /* Badge Position */
    .hhc-course-hero-image .hhc-badge {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 10px;
    }

    .hhc-course-info {
        padding: 20px;
    }

    .hhc-course-schedule {
        padding: 20px;
        margin-top: 20px;
    }

    .hhc-course-title {
        font-size: 22px;
    }

    .hhc-course-highlights {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }

    .hhc-event-item {
        grid-template-columns: 60px 1fr;
        gap: 10px;
        padding: 12px;
    }

    .hhc-event-availability {
        grid-column: 1 / -1;
        align-items: flex-start;
        margin-top: 10px;
    }

    .hhc-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hhc-form-row:has(.hhc-form-group-small) {
        grid-template-columns: 1fr 2fr;
        gap: 10px;
    }

    .hhc-widget-header {
        padding: 20px;
    }

    .hhc-booking-form {
        padding: 20px;
    }

    .hhc-gallery-thumbs {
        padding: 15px;
    }

    .hhc-thumb {
        width: 60px;
        height: 60px;
    }

    /* Sticky deaktivieren auf Mobile */
    .hhc-single-course-wrapper .hhc-course-right {
        position: static;
        top: auto;
        align-self: auto;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hhc-single-course-wrapper {
        padding: 0;
    }

    .hhc-single-course-wrapper .hhc-container {
        padding: 0 10px !important;
    }

    /* Page Header */
    .hhc-page-header {
        padding: 25px 0;
        margin-bottom: 15px;
    }

    .hhc-page-header h1 {
        font-size: 1.4rem;
    }

    .hhc-page-subtitle {
        font-size: 0.85rem;
    }

    /* Hero Image */
    .hhc-course-hero-image {
        margin-bottom: 15px;
    }

    .hhc-hero-image {
        max-height: 200px;
    }

    /* Course Content */
    .hhc-course-info {
        padding: 15px;
        margin-bottom: 20px;
    }

    .hhc-course-schedule {
        padding: 15px;
    }

    .hhc-course-content {
        font-size: 15px;
    }

    /* Events noch kompakter */
    .hhc-event-item {
        grid-template-columns: 50px 1fr;
        padding: 10px;
    }

    .hhc-date-day {
        font-size: 16px;
    }

    /* Booking Widget */
    .hhc-widget-header,
    .hhc-booking-form,
    .hhc-info-widget {
        padding: 15px;
    }

    .hhc-price-amount {
        font-size: 20px;
    }

    /* Buttons */
    .hhc-btn-lg {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .hhc-course-right,
    .hhc-breadcrumb,
    .hhc-gallery-thumbs {
        display: none;
    }

    .hhc-course-main {
        grid-template-columns: 1fr;
    }

    .hhc-course-left {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* CRITICAL OVERRIDES FOR THEME COMPATIBILITY */
.hhc-single-course-wrapper {
    width: 100% !important;
    max-width: none !important;
}

.hhc-single-course-wrapper .hhc-container {
    display: block !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.hhc-single-course-wrapper .hhc-course-main {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 30px !important;
}

.hhc-single-course-wrapper .hhc-course-left {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.hhc-single-course-wrapper .hhc-course-right {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Neue kompakte Terminanzeige Styles */
.hhc-next-event-info {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    margin-bottom: 15px;
}

.hhc-event-timing h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.hhc-event-timing .hhc-time {
    font-size: 16px;
    color: #666;
    margin: 5px 0;
}

.hhc-event-timing .hhc-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    margin: 5px 0;
}

.hhc-next-event-date {
    text-align: right;
}

.hhc-next-label {
    color: #999;
    font-size: 14px;
    margin: 0 0 5px 0;
}

.hhc-next-date {
    font-size: 18px;
    color: #333;
    margin: 0 0 10px 0;
}

.hhc-availability-info {
    margin: 10px 0 0 0;
}

.hhc-available-badge,
.hhc-full-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.hhc-available-badge {
    background: #d4edda;
    color: #155724;
}

.hhc-full-badge {
    background: #f8d7da;
    color: #721c24;
}

.hhc-more-dates-info {
    color: #666;
    font-style: italic;
    margin: 10px 0;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
}

.hhc-no-events {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    text-align: center;
}

/* Ensure Booking Widget stays in right column */
.hhc-single-course-wrapper .hhc-booking-widget,
.hhc-single-course-wrapper .hhc-sidebar-image {
    width: 100% !important;
}

/* REDUNDANT - Already handled in @media (max-width: 992px) above */
/*
@media screen and (max-width: 992px) {
    body .hhc-single-course-wrapper .hhc-course-main {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        width: 100% !important;
    }

    body .hhc-single-course-wrapper .hhc-course-main .hhc-course-left {
        order: 1 !important;
        width: 100% !important;
        margin-bottom: 40px !important;
    }

    body .hhc-single-course-wrapper .hhc-course-main .hhc-course-right {
        order: 2 !important;
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        margin-top: 0 !important;
    }

    body .hhc-single-course-wrapper .hhc-course-left,
    body .hhc-single-course-wrapper .hhc-course-right {
        grid-column: unset !important;
    }
}
*/

/* WORDPRESS THEME OVERRIDE - Must be at the very end */
/* Override WordPress theme content constraints */
.wp-block-post-content .hhc-single-course-wrapper,
.entry-content .hhc-single-course-wrapper,
.is-layout-constrained .hhc-single-course-wrapper,
article .hhc-single-course-wrapper,
main .hhc-single-course-wrapper,
body .hhc-single-course-wrapper {
    max-width: none !important;
    width: 100% !important;
}

.wp-block-post-content .hhc-container,
.entry-content .hhc-container,
.is-layout-constrained .hhc-container,
article .hhc-container,
main .hhc-container,
body .hhc-container,
body.single-page .hhc-container {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Überschreibe Theme Content-Width komplett */
body .entry-content > .hhc-single-course-wrapper,
body article > .entry-content > .hhc-single-course-wrapper {
    max-width: none !important;
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    overflow: visible !important;
}

/* Force full width for course wrapper children */
.wp-block-post-content .hhc-single-course-wrapper > *,
.entry-content .hhc-single-course-wrapper > *,
.is-layout-constrained .hhc-single-course-wrapper > *,
article .hhc-single-course-wrapper > *,
main .hhc-single-course-wrapper > * {
    max-width: none !important;
}

/* Override any theme max-width on hero image */
.wp-block-post-content .hhc-course-hero-image img,
.entry-content .hhc-course-hero-image img,
.is-layout-constrained .hhc-course-hero-image img,
article .hhc-course-hero-image img,
main .hhc-course-hero-image img {
    max-width: none !important;
    width: 100% !important;
}

/* Ensure course-main uses full available width */
.wp-block-post-content .hhc-course-main,
.entry-content .hhc-course-main,
.is-layout-constrained .hhc-course-main,
article .hhc-course-main,
main .hhc-course-main,
body .hhc-course-main {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 30px !important;
    max-width: 1200px !important;
    width: calc(100% - 40px) !important; /* Minus Padding */
    margin: 0 auto !important;
    padding: 0 !important;
}


/* ============================================
   BUCHUNGSOPTIONEN (Halber/Ganzer Kurs)
   ============================================ */

/* Buchungsoptionen Container */
.hhc-booking-options {
    margin-bottom: 20px;
}

.hhc-booking-options > label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
}

/* Option Cards Container */
.hhc-option-cards {
    display: grid;
    grid-template-columns: 1fr; /* Desktop: Untereinander */
    gap: 15px;
}

/* Individual Option Card */
.hhc-option-card {
    position: relative;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    transition: all 0.3s ease;
    display: block;
}

.hhc-option-card:hover {
    border-color: #9b7653;
    box-shadow: 0 4px 12px rgba(155, 118, 83, 0.15);
    transform: translateY(-2px);
}

/* Selected State */
.hhc-option-card.selected,
.hhc-option-card input[type="radio"]:checked ~ .hhc-option-content {
    border-color: #9b7653;
    background: linear-gradient(135deg, #fff 0%, #faf8f6 100%);
}

.hhc-option-card.selected {
    box-shadow: 0 4px 16px rgba(155, 118, 83, 0.25);
}

/* Hide Radio Button but keep it functional */
.hhc-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom Radio Indicator */
.hhc-option-card::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    background: #fff;
    transition: all 0.3s ease;
}

.hhc-option-card.selected::before,
.hhc-option-card input[type="radio"]:checked ~ .hhc-option-content::before {
    border-color: #9b7653;
    background: #9b7653;
    box-shadow: inset 0 0 0 4px #fff;
}

/* Option Content */
.hhc-option-content {
    padding-right: 30px;
}

.hhc-option-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.hhc-option-sessions {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.hhc-option-price {
    font-size: 24px;
    font-weight: 700;
    color: #9b7653;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hhc-option-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hhc-option-card {
        padding: 16px;
    }

    .hhc-option-title {
        font-size: 16px;
    }

    .hhc-option-price {
        font-size: 20px;
    }

    .hhc-option-card::before {
        top: 16px;
        right: 16px;
        width: 20px;
        height: 20px;
    }
}

/* Price Summary Styles */
#hhc-selected-option {
    font-weight: 600;
    color: #9b7653;
}

#hhc-price-display,
#hhc-total-price {
    font-weight: 700;
}

/* Animation for option change */
@keyframes priceUpdate {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.hhc-price-updating #hhc-price-display,
.hhc-price-updating #hhc-total-price {
    animation: priceUpdate 0.3s ease;
}

/* ========================================
   Multi-Event Selection (Checkboxen)
   ======================================== */

/* ========================================
   Multi-Event Selection (Kompakt)
   ======================================== */

/* Common Info Box (Zeit/Ort die für alle gilt) */
.hhc-events-common-info {
    display: flex;
    gap: 20px;
    padding: 10px 14px;
    background: #f0f5f1;
    border-left: 3px solid #67836c;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #555;
}

.hhc-common-time,
.hhc-common-location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hhc-common-time .hhc-icon,
.hhc-common-location .hhc-icon {
    stroke: #67836c;
    flex-shrink: 0;
}

/* Events List Container - KOMPAKT */
.hhc-events-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding: 4px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Scrollbar Styling */
.hhc-events-list::-webkit-scrollbar {
    width: 6px;
}

.hhc-events-list::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 3px;
}

.hhc-events-list::-webkit-scrollbar-thumb {
    background: #67836c;
    border-radius: 3px;
}

.hhc-events-list::-webkit-scrollbar-thumb:hover {
    background: #556b59;
}

/* Event Checkbox Label - KOMPLETT NEU */
.hhc-event-checkbox {
    display: grid !important;
    grid-template-columns: 20px 1fr !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hhc-event-checkbox * {
    box-sizing: border-box;
}

.hhc-event-checkbox:hover {
    border-color: #67836c;
    box-shadow: 0 1px 4px rgba(103, 131, 108, 0.15);
}

.hhc-event-checkbox.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.hhc-event-checkbox.disabled:hover {
    border-color: #dee2e6;
    box-shadow: none;
}

/* Checkbox Input - LINKS */
.hhc-event-checkbox-input {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
    cursor: pointer;
    accent-color: #67836c;
}

.hhc-event-checkbox-input:disabled {
    cursor: not-allowed;
}

/* Checked State */
.hhc-event-checkbox:has(input:checked) {
    border-color: #67836c;
    background: #f0f5f1;
}

/* Event Content - RECHTS */
.hhc-event-checkbox-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-width: 0;
}

/* Event Date */
.hhc-event-date {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    white-space: nowrap;
}

/* Event Extra Info (nur bei abweichender Zeit/Ort) */
.hhc-event-extra {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

/* Event Status Badge - KOMPAKT */
.hhc-event-status {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.hhc-event-status.available {
    background: #d4edda;
    color: #155724;
}

.hhc-event-status.waitlist {
    background: #fff3cd;
    color: #856404;
}

.hhc-event-status.full {
    background: #f8d7da;
    color: #721c24;
}

/* Form Hint */
.hhc-form-hint {
    margin: 6px 0 0 0;
    font-size: 0.85rem;
    color: #666;
}

/* Validation Message */
.hhc-validation-message {
    margin: 8px 0 0 0;
    padding: 8px 12px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hhc-events-list {
        max-height: 280px;
    }

    .hhc-event-checkbox {
        padding: 8px 10px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 0 10px;
    }

    .hhc-event-checkbox-input {
        grid-column: 1;
        grid-row: 1;
    }

    .hhc-event-checkbox-content {
        grid-column: 2 / 4;
        grid-row: 1;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .hhc-event-date {
        font-size: 0.9rem;
        flex: 0 1 auto;
    }

    .hhc-event-status {
        font-size: 0.75rem;
        padding: 2px 8px;
        flex-shrink: 0;
        margin-left: auto;
    }

    .hhc-event-extra {
        grid-column: 2 / 4;
        grid-row: 2;
        font-size: 0.8rem;
        margin-top: 4px;
    }

    .hhc-events-common-info {
        flex-direction: column;
        gap: 8px;
        font-size: 0.85rem;
    }
}

/* Locked Booking Option Notice */
.hhc-booking-locked-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.hhc-booking-locked-notice svg {
    flex-shrink: 0;
    stroke: #856404;
}

/* Disabled Option Cards */
.hhc-option-cards.disabled .hhc-option-card {
    opacity: 0.6;
    cursor: not-allowed;
}

.hhc-option-cards.disabled .hhc-option-card:not(.selected) {
    opacity: 0.4;
}

.hhc-option-card input[type="radio"]:disabled {
    cursor: not-allowed;
}

/* Already Booked Notice - Vollständige Blockierung */
.hhc-already-booked-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    color: #155724;
    margin-bottom: 20px;
}

.hhc-already-booked-notice svg {
    flex-shrink: 0;
    stroke: #28a745;
    width: 32px;
    height: 32px;
}

.hhc-already-booked-notice strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #155724;
}

.hhc-already-booked-notice p {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hhc-already-booked-notice .hhc-btn {
    display: inline-block;
}

/* Limit Reached - Ausgegraut */
.hhc-event-checkbox.limit-reached {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.hhc-event-checkbox.limit-reached:hover {
    border-color: #dee2e6;
    box-shadow: none;
}

.hhc-event-checkbox.limit-reached .hhc-event-checkbox-input {
    cursor: not-allowed;
}

/* Validation Modal Styles */
.hhc-validation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hhc-validation-modal-overlay.show {
    opacity: 1;
}

.hhc-validation-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.hhc-validation-modal-overlay.show .hhc-validation-modal {
    transform: scale(1);
}

.hhc-validation-modal-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.hhc-validation-modal-header svg {
    color: #d63638;
    margin-bottom: 15px;
}

.hhc-validation-modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.hhc-validation-modal-body {
    padding: 30px;
}

.hhc-validation-modal-body p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

.hhc-validation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hhc-validation-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
    color: #d63638;
    font-weight: 500;
}

.hhc-validation-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.hhc-validation-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.hhc-validation-modal-footer .hhc-btn {
    min-width: 150px;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .hhc-validation-modal {
        width: 95%;
    }

    .hhc-validation-modal-header,
    .hhc-validation-modal-body,
    .hhc-validation-modal-footer {
        padding: 20px;
    }

    .hhc-validation-modal-header h3 {
        font-size: 1.2em;
    }
}

/* =========================
   Gebuchte Termine Anzeige
   ========================= */

.hhc-booked-events-notice {
    background: linear-gradient(135deg, #f5faf5 0%, #fafcfa 100%);
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(76, 175, 80, 0.08);
}

.hhc-notice-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(165, 214, 167, 0.3);
}

.hhc-notice-header svg {
    color: #66bb6a;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.hhc-notice-header h4 {
    margin: 0;
    font-size: 0.85em;
    font-weight: 600;
    color: #4a6f4b;
}

.hhc-booked-events-list {
    list-style: none;
    margin: 0 0 6px 0;
    margin-left: 0 !important;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hhc-booked-events-list li {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: white;
    border-radius: 4px;
    border-left: 2px solid #a5d6a7;
    transition: all 0.2s ease;
}

.hhc-booked-events-list li:hover {
    transform: translateX(2px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-left-color: #81c784;
}

.hhc-booked-events-list .hhc-event-date {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 500;
    color: #333;
    font-size: 0.85em;
    line-height: 1.3;
    text-align: left;
    width: 100%;
}

.hhc-booked-events-list .hhc-event-date small {
    font-weight: 400;
    color: #666;
    font-size: 0.95em;
}

.hhc-booking-status {
    display: none;
}

.hhc-booking-status.hhc-status-confirmed {
    display: none;
}

.hhc-booking-status.hhc-status-pending {
    display: none;
}

.hhc-manage-bookings-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #67836c;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(103, 131, 108, 0.2);
}

.hhc-manage-bookings-link:hover {
    background: #4a7c59;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(103, 131, 108, 0.3);
}

.hhc-manage-bookings-link svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hhc-booked-events-notice {
        padding: 6px 10px;
    }

    .hhc-notice-header h4 {
        font-size: 0.8em;
    }

    .hhc-notice-header svg {
        width: 12px;
        height: 12px;
    }

    .hhc-booked-events-list li {
        padding: 5px 8px;
    }

    .hhc-booked-events-list .hhc-event-date {
        font-size: 0.8em;
    }

    .hhc-manage-bookings-link {
        width: 100%;
        justify-content: center;
        padding: 6px 10px;
        font-size: 0.8em;
    }
}
