/* DREICAD Kurse Plugin Styles - Komplett eckiges Design */

/* =========================================================================
   ALLGEMEINE BUTTON STYLES
   ========================================================================= */
.dreicad-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 0; /* Eckig statt rund */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dreicad-button:hover {
    background-color: #e0e0e0;
}

.dreicad-button-primary {
    background-color: #f7a600;
    color: #fff;
}

.dreicad-button-primary:hover {
    background-color: #e69500;
}

/* =========================================================================
   KURS HERO WIDGET STYLES
   ========================================================================= */
.dreicad-kurs-hero {
    position: relative;
    overflow: hidden;
}

.dreicad-kurs-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.dreicad-kurs-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.dreicad-kurs-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.dreicad-kurs-hero-header h1 {
    margin: 0;
    padding: 0;
    color: #fff !important;
}

.dreicad-kurs-hero-logo img {
    max-height: 60px;
    width: auto;
}

.dreicad-kurs-hero-subheading {
    margin: 16px 0 22px;
    color: #fff !important;
}

/* Suche Container */
.dreicad-kurs-hero-search-container {
    max-width: 700px;
    margin: 0 auto;
}

.dreicad-kurs-hero-search {
    position: relative;
    display: flex;
    align-items: center;
}

/* Suchlupen-Icon - KORRIGIERT */
.dreicad-kurs-hero-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
    color: #666;
}

/* Suchfeld Input - ECKIG */
.dreicad-kurs-hero-input {
    width: 100%;
    height: 56px;
    padding: 0 16px 0 48px !important;
    font-size: 16px;
    border: 1px solid rgba(0,0,0,.12);
    outline: none;
    background: #fff;
    border-radius: 0; /* Komplett eckig */
}

/* Placeholder Styling */
.dreicad-kurs-hero-input::placeholder {
    color: rgba(0,0,0,0.5);
    opacity: 1;
}

.dreicad-kurs-hero-input::-webkit-input-placeholder {
    color: rgba(0,0,0,0.5);
    opacity: 1;
}

.dreicad-kurs-hero-input::-moz-placeholder {
    color: rgba(0,0,0,0.5);
    opacity: 1;
}

.dreicad-kurs-hero-input:-ms-input-placeholder {
    color: rgba(0,0,0,0.5);
    opacity: 1;
}

/* Ergebnisse Dropdown */
.dreicad-kurs-hero-results {
    position: relative;
    margin-top: 8px;
}

.dreicad-kurs-hero-results[hidden] {
    display: none;
}

.dreicad-kurs-hero-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    max-height: 420px;
    overflow: auto;
}

.dreicad-kurs-hero-results-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid rgba(0,0,0,.06);
    cursor: pointer;
}

.dreicad-kurs-hero-results-item:first-child {
    border-top: 0;
}

.dreicad-kurs-hero-results-item:hover {
    background: #f8f8f8;
}

.dreicad-kurs-hero-results-thumb {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 28px;
}

.dreicad-kurs-hero-results-title {
    font-weight: 700;
    margin: 0;
    font-size: 14px;
}

.dreicad-kurs-hero-results-meta {
    font-size: 12px;
    opacity: .7;
    margin-left: auto;
}

.dreicad-kurs-hero-results-empty {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
}

/* Button Container */
.dreicad-kurs-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 14px 0;
}

/* Normale Filter-Buttons - ECKIG */
.dreicad-kurs-hero-button {
    display: inline-block !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all .2s !important;
    padding: 14px 22px !important;
    white-space: nowrap !important;
    border-radius: 0px !important; /* Komplett eckig */
    background: #F49E00 !important;
    color: #ffffff !important;
}

.dreicad-kurs-hero-button:hover {
    background: #e69500 !important;
    color: #ffffff !important;
}

/* Highlight Filter-Buttons - ECKIG */
.dreicad-kurs-hero-button-highlight {
    display: inline-block !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all .2s !important;
    padding: 14px 22px !important;
    white-space: nowrap !important;
    border-radius: 0px !important; /* Komplett eckig */
    background: #f7a600 !important;
    color: #0f2946 !important;
}

.dreicad-kurs-hero-button-highlight:hover {
    background: #e69500 !important;
    color: #0f2946 !important;
}

/* Mehr Kurse Button - ECKIG */
.dreicad-kurs-hero-mehr-kurse-container {
    text-align: center;
    margin-top: 18px;
}

.dreicad-kurs-hero-mehr-kurse {
    display: inline-block;
    padding: 14px 28px;
    background: #f7a600;
    color: #0f2946;
    text-decoration: none;
    border-radius: 0; /* Eckig statt rund */
    transition: background .2s;
}

.dreicad-kurs-hero-mehr-kurse:hover {
    background: #e69500;
}

/* =========================================================================
   KURSLISTE STYLES
   ========================================================================= */
.dreicad-kursliste {
    margin-bottom: 40px;
}

.dreicad-kurse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dreicad-kurs-card {
    border: 1px solid #e0e0e0;
    border-radius: 0; /* Eckig statt rund */
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dreicad-kurs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dreicad-kurs-kategorie {
    display: inline-block;
    background-color: #f7a600;
    color: #fff;
    padding: 5px 10px;
    border-radius: 0; /* Eckig statt rund */
    font-size: 0.8em;
    margin-bottom: 10px;
}

.dreicad-kurs-titel {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 15px;
}

.dreicad-kurs-titel a {
    color: #333;
    text-decoration: none;
}

.dreicad-kurs-titel a:hover {
    color: #f7a600;
}

.dreicad-kurs-details {
    margin-bottom: 20px;
}

.dreicad-kurs-detail {
    margin-bottom: 5px;
}

.dreicad-kurs-label {
    font-weight: bold;
    margin-right: 5px;
}

.dreicad-kurs-buttons {
    display: flex;
    gap: 10px;
}

.dreicad-kurs-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 0; /* Eckig statt rund */
    transition: background-color 0.3s ease;
    text-align: center;
    flex: 1;
}

.dreicad-kurs-button:hover {
    background-color: #e0e0e0;
}

.dreicad-kurs-button-primary {
    background-color: #f7a600;
    color: #fff;
}

.dreicad-kurs-button-primary:hover {
    background-color: #e69500;
}

/* =========================================================================
   KURSDETAILS STYLES
   ========================================================================= */
.dreicad-kursdetails {
    max-width: 800px;
    margin: 0 auto;
}

.dreicad-kursdetails-title {
    font-size: 2em;
    margin-bottom: 20px;
}

.dreicad-kursdetails-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 0; /* Eckig statt rund */
}

.dreicad-kursdetails-meta-item {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.dreicad-meta-icon {
    font-size: 1.5em;
    margin-right: 15px;
    color: #f7a600;
}

.dreicad-meta-content h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
    color: #666;
}

.dreicad-meta-content p {
    margin: 0;
    font-weight: bold;
    font-size: 1.1em;
}

.dreicad-kursdetails-description {
    margin-bottom: 30px;
}

.dreicad-kursdetails-zielgruppe {
    margin-bottom: 30px;
}

.dreicad-kursdetails-preis {
    margin-bottom: 30px;
}

.dreicad-preis {
    font-size: 1.5em;
    font-weight: bold;
    color: #f7a600;
}

.dreicad-kursdetails-buttons {
    margin-bottom: 40px;
}

/* =========================================================================
   KURSTERMINE STYLES
   ========================================================================= */
.dreicad-kurstermine {
    margin-bottom: 40px;
}

.dreicad-kurstermine-month {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.dreicad-kurstermin {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 0; /* Eckig statt rund */
    margin-bottom: 15px;
    background-color: #fff;
}

.dreicad-kurstermin-datum {
    flex: 0 0 80px;
    margin-right: 20px;
}

.dreicad-kurstermin-tag {
    text-align: center;
    background-color: #f7a600;
    color: #fff;
    padding: 10px;
    border-radius: 0; /* Eckig statt rund */
}

.dreicad-kurstermin-wochentag {
    display: block;
    font-size: 0.9em;
    font-weight: bold;
}

.dreicad-kurstermin-tag-zahl {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
}

.dreicad-kurstermin-info {
    flex: 1;
}

.dreicad-kurstermin-titel {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.dreicad-kurstermin-uhrzeit {
    margin: 0 0 3px 0;
    color: #f7a600;
    font-weight: bold;
    font-size: 0.95em;
}

.dreicad-kurstermin-ort {
    margin: 0;
    color: #666;
}

.dreicad-kurstermin-status {
    flex: 0 0 120px;
    text-align: center;
}

.dreicad-kurstermin-ausgebucht {
    display: inline-block;
    background-color: #f44336;
    color: #fff;
    padding: 5px 10px;
    border-radius: 0; /* Eckig statt rund */
    font-size: 0.8em;
}

.dreicad-kurstermin-button {
    flex: 0 0 120px;
    text-align: right;
}

/* =========================================================================
   THEMENSCHWERPUNKTE STYLES
   ========================================================================= */
.dreicad-themenschwerpunkte {
    margin-bottom: 40px;
}

.dreicad-themenschwerpunkte-title {
    text-align: center;
    margin-bottom: 10px;
}

.dreicad-themenschwerpunkte-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.dreicad-themenschwerpunkte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.dreicad-themenschwerpunkt {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 0; /* Eckig statt rund */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dreicad-themenschwerpunkt-bild {
    margin-bottom: 20px;
}

.dreicad-themenschwerpunkt-bild img {
    max-width: 100%;
    height: auto;
    border-radius: 0; /* Eckig statt rund */
}

.dreicad-themenschwerpunkt-titel {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* =========================================================================
   VORTEILE STYLES
   ========================================================================= */
.dreicad-vorteile {
    margin-bottom: 40px;
}

.dreicad-vorteile-title {
    text-align: center;
    margin-bottom: 30px;
}

.dreicad-vorteile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.dreicad-vorteil {
    text-align: center;
}

.dreicad-vorteil-icon {
    margin-bottom: 15px;
}

.dreicad-vorteil-icon img {
    max-width: 80px;
    height: auto;
}

.dreicad-vorteil-titel {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* =========================================================================
   KURSSUCHE STYLES
   ========================================================================= */
.dreicad-kurse-suche {
    margin-bottom: 40px;
}

.dreicad-kurse-suche-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 0; /* Eckig statt rund */
    margin-bottom: 30px;
}

.dreicad-kurse-suche-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.dreicad-kurse-suche-feld {
    flex: 1;
    min-width: 200px;
}

.dreicad-kurse-suche-feld label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.dreicad-kurse-suche-feld input,
.dreicad-kurse-suche-feld select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0; /* Eckig statt rund */
}

.dreicad-kurse-suche-buttons {
    display: flex;
    gap: 10px;
}

.dreicad-kurse-suche-ergebnisse {
    margin-top: 30px;
}

/* =========================================================================
   NÄCHSTER TERMIN HIGHLIGHT
   ========================================================================= */
.dreicad-kurs-naechster-termin {
    background-color: #fff3cd;
    padding: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #f7a600;
}

.dreicad-kurs-naechster-termin .dreicad-kurs-label {
    color: #856404;
}

.dreicad-kurs-naechster-termin .dreicad-kurs-value {
    color: #856404;
    font-weight: bold;
}

/* =========================================================================
   BOOKING MODAL STYLES
   ========================================================================= */
.dreicad-booking-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dreicad-booking-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.dreicad-booking-modal-content {
    position: relative;
    z-index: 2;
    background-color: #fff;
    padding: 30px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dreicad-booking-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.dreicad-booking-modal-close:hover {
    color: #000;
}

.dreicad-booking-modal-title {
    margin: 0 0 20px 0;
    font-size: 1.8em;
    color: #333;
}

/* Kurs-Info Section */
.dreicad-booking-kurs-info {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #f7a600;
}

.dreicad-booking-kurs-info h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    color: #333;
}

.dreicad-booking-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.dreicad-booking-detail {
    display: flex;
    gap: 8px;
}

.dreicad-booking-label {
    font-weight: bold;
    color: #666;
}

.dreicad-booking-value {
    color: #333;
}

.dreicad-booking-preis-container {
    grid-column: 1 / -1;
}

.dreicad-booking-preis {
    font-size: 1.3em;
    font-weight: bold;
    color: #f7a600;
}

/* Formular */
.dreicad-booking-form {
    margin-top: 20px;
}

.dreicad-booking-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

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

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

.dreicad-booking-form-field input[type="text"],
.dreicad-booking-form-field input[type="email"],
.dreicad-booking-form-field input[type="tel"],
.dreicad-booking-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.dreicad-booking-form-field input[type="text"]:focus,
.dreicad-booking-form-field input[type="email"]:focus,
.dreicad-booking-form-field input[type="tel"]:focus,
.dreicad-booking-form-field textarea:focus {
    outline: none;
    border-color: #f7a600;
}

.dreicad-booking-form-field textarea {
    resize: vertical;
}

.dreicad-booking-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
}

.dreicad-booking-checkbox input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Formular Nachricht */
.dreicad-booking-form-message {
    padding: 12px;
    margin-bottom: 20px;
    display: none;
    font-weight: bold;
}

.dreicad-booking-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dreicad-booking-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Formular Buttons */
.dreicad-booking-form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.dreicad-booking-cancel {
    background-color: #e0e0e0;
    color: #333;
}

.dreicad-booking-cancel:hover {
    background-color: #d0d0d0;
}

/* Body Klasse wenn Modal offen ist */
body.dreicad-booking-modal-open {
    overflow: hidden;
}

/* =========================================================================
   RESPONSIVE STYLES
   ========================================================================= */
@media (max-width: 768px) {
    /* Hero Header */
    .dreicad-kurs-hero-header {
        flex-direction: column;
        text-align: center;
    }
    
    .dreicad-kurs-hero-logo {
        margin-top: 12px;
    }
    
    /* Kurstermine */
    .dreicad-kurstermin {
        flex-wrap: wrap;
    }
    
    .dreicad-kurstermin-info {
        flex: 1 0 calc(100% - 100px);
        margin-bottom: 15px;
    }
    
    .dreicad-kurstermin-status,
    .dreicad-kurstermin-button {
        flex: 1 0 50%;
        text-align: left;
    }
    
    .dreicad-kurstermin-button {
        text-align: right;
    }
    
    /* Kursdetails Meta */
    .dreicad-kursdetails-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .dreicad-kursdetails-meta-item {
        width: 100%;
    }
    
    /* Hero Buttons */
    .dreicad-kurs-hero-buttons {
        justify-content: center;
    }
    
    .dreicad-kurs-hero-button,
    .dreicad-kurs-hero-button-highlight {
        min-width: calc(50% - 5px);
        text-align: center;
    }
    
    /* Booking Modal */
    .dreicad-booking-modal {
        padding: 10px;
    }
    
    .dreicad-booking-modal-content {
        padding: 20px;
        max-height: 95vh;
    }
    
    .dreicad-booking-modal-title {
        font-size: 1.5em;
        padding-right: 30px;
    }
    
    .dreicad-booking-details-grid {
        grid-template-columns: 1fr;
    }
    
    .dreicad-booking-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .dreicad-booking-form-buttons {
        flex-direction: column;
    }
    
    .dreicad-booking-form-buttons button {
        width: 100%;
    }
}