/* ===== Veranstaltungs-Buchung Frontend Styles ===== */

.vbp-event-detail {
    max-width: 1200px;
    margin: 30px auto;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2a2a2a;
    line-height: 1.6;
}

/* ---- Hero ---- */
.vbp-event-hero {
    width: 100%;
    height: 360px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}
.vbp-event-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}
.vbp-event-hero-overlay .vbp-event-title {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.vbp-event-pageheader {
    background: #2C3580;
    color: #fff;
    padding: 60px 40px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.vbp-event-pageheader .vbp-event-title {
    color: #fff;
}
.vbp-event-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vbp-event-section h2 {
    color: #2C3580;
}

/* ---- Zweispalten-Layout ---- */
.vbp-event-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}
@media (max-width: 900px) {
    .vbp-event-layout {
        grid-template-columns: 1fr;
    }
}

.vbp-event-main {
    min-width: 0;
}

.vbp-event-section {
    margin-bottom: 32px;
}
.vbp-event-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f3;
}
.vbp-event-section ul,
.vbp-event-section ol {
    margin: 10px 0 10px 24px;
    padding: 0;
}
.vbp-event-section li {
    margin-bottom: 6px;
}
.vbp-event-intro {
    font-size: 17px;
    color: #444;
}

/* ---- Workshop-Vorschau (auf Detailseite) ---- */
.vbp-workshop-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.vbp-workshop-preview {
    background: #f9fafb;
    border: 1px solid #e5e5e8;
    border-radius: 6px;
    padding: 16px;
}
.vbp-workshop-preview.is-full {
    opacity: .65;
}
.vbp-workshop-preview h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #1a1a2e;
}
.vbp-workshop-preview p {
    margin: 0 0 10px;
    color: #555;
    font-size: 14px;
}
.vbp-workshop-time {
    display: inline-block;
    font-weight: 400;
    color: #888;
    font-size: 12px;
    margin-left: 6px;
}

/* ---- Sidebar (rechte Spalte) ---- */
.vbp-event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.vbp-side-card {
    background: #fff;
    border: 1px solid #e5e5e8;
    border-radius: 8px;
    overflow: hidden;
}
.vbp-side-event .vbp-side-header {
    background: #2C3580;
    color: #fff;
    padding: 18px 22px;
    text-align: center;
}
.vbp-side-event .vbp-side-header h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.85);
}
.vbp-side-date {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}
.vbp-side-body {
    padding: 20px 22px;
}
.vbp-side-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #444;
    border-bottom: 1px solid #f0f0f3;
}
.vbp-side-row:last-of-type {
    border-bottom: none;
    margin-bottom: 14px;
}
.vbp-side-icon {
    flex-shrink: 0;
    font-size: 18px;
    width: 24px;
    text-align: center;
}
.vbp-side-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

/* ---- Ampel-Farben ---- */
.vbp-traffic-green {
    background: #d4edda;
    color: #1d6b3d;
}
.vbp-traffic-yellow {
    background: #fff3cd;
    color: #8a5a00;
}
.vbp-traffic-red {
    background: #f8d7da;
    color: #a02323;
}

/* Legende */
.vbp-traffic-legend {
    padding: 16px 20px;
    background: #fafafa;
}
.vbp-traffic-legend h4 {
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #555;
}
.vbp-traffic-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vbp-traffic-legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
}
.vbp-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ---- Speaker / Dozent ---- */
.vbp-speaker-card {
    padding: 22px;
    text-align: center;
}
.vbp-speaker-card h3 {
    margin: 0 0 14px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    text-align: left;
}
.vbp-speaker-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.vbp-speaker-name {
    margin: 0 0 4px;
    font-size: 16px;
}
.vbp-speaker-role {
    margin: 0 0 14px;
    color: #666;
    font-size: 14px;
}
.vbp-speaker-bio {
    text-align: left;
    color: #555;
    font-size: 14px;
    margin: 14px 0;
}
.vbp-speaker-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f3;
    font-size: 14px;
}
.vbp-speaker-contact a {
    color: #2C3580;
    text-decoration: none;
}
.vbp-speaker-contact a:hover {
    text-decoration: underline;
}

/* ---- Veranstaltungsort ---- */
.vbp-location-card {
    overflow: hidden;
}
.vbp-location-card h3 {
    padding: 18px 22px 8px;
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}
.vbp-location-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.vbp-location-name {
    padding: 16px 22px;
    margin: 0;
}

/* ---- Buttons ---- */
.vbp-btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
    text-align: center;
    font-family: inherit;
}
.vbp-btn-block {
    display: block;
    width: 100%;
}
.vbp-btn-primary {
    background: #2C3580;
    color: #fff;
}
.vbp-btn-primary:hover {
    background: #1f2862;
}
.vbp-btn-disabled {
    background: #ccc;
    color: #fff;
    cursor: not-allowed;
}

.vbp-mobile-cta {
    display: none;
    margin: 30px 0;
}
@media (max-width: 900px) {
    .vbp-mobile-cta {
        display: block;
    }
}

/* ---- Modal mit Anmeldeformular ---- */
.vbp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 20px;
    box-sizing: border-box;
}
.vbp-modal.is-open {
    display: flex;
}
.vbp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    cursor: pointer;
}
.vbp-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 720px;
    width: 100%;
    padding: 40px 40px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    margin: auto;
}
@media (max-width: 600px) {
    .vbp-modal-content {
        padding: 30px 20px 20px;
    }
}
.vbp-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    padding: 6px 10px;
    line-height: 1;
}
.vbp-modal-close:hover {
    color: #1a1a2e;
}
.vbp-modal-content h2 {
    margin: 0 0 10px;
    color: #1a1a2e;
    font-size: 24px;
}
.vbp-modal-title {
    text-align: center;
    border-bottom: 1px solid #e5e5e8;
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.vbp-modal-headline {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a2e;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}
.vbp-modal-headline::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #2C3580;
}
.vbp-modal-intro {
    color: #666;
    margin: 0 0 24px;
    font-size: 14px;
    text-align: center;
}

/* Gestapeltes Formular (untereinander) */
.vbp-form-stacked .vbp-field {
    margin-bottom: 18px;
}
.vbp-form-stacked .vbp-field label:not(.vbp-radio):not(.vbp-checkbox):not(.vbp-group-label) {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

/* Radio-Gruppen */
.vbp-radio-group {
    margin-top: 22px;
}
.vbp-group-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}
.vbp-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}
.vbp-radio input[type=radio] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #2C3580;
}

/* Checkbox-Gruppe (Datenschutz + Newsletter) */
.vbp-checkbox-group {
    margin: 24px 0 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 6px;
}
.vbp-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}
.vbp-checkbox input[type=checkbox] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #2C3580;
}
.vbp-privacy-link {
    color: #2C3580;
    text-decoration: none;
    font-weight: 500;
}
.vbp-privacy-link:hover {
    text-decoration: underline;
}

/* ---- Workshops im Modal ---- */
.vbp-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 24px;
}
.vbp-fieldset legend {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    padding: 0;
}
.vbp-workshops {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vbp-workshop-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e0e3ee;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
}
.vbp-workshop-item:hover:not(.vbp-is-full) {
    border-color: #2C3580;
    background: #fff7f8;
}
.vbp-workshop-item input[type=checkbox] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}
.vbp-workshop-item.vbp-is-full {
    opacity: .55;
    cursor: not-allowed;
    background: #fafafa;
}
.vbp-workshop-body {
    flex: 1;
}
.vbp-workshop-title {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.vbp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.vbp-badge-avail {
    background: #d4edda;
    color: #1d6b3d;
}
.vbp-badge-sold-out {
    background: #f8d7da;
    color: #a02323;
}

/* ---- Form-Felder ---- */
.vbp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.vbp-grid-3 {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 12px;
}
@media (max-width: 600px) {
    .vbp-grid-2, .vbp-grid-3 {
        grid-template-columns: 1fr;
    }
}
.vbp-field {
    margin-bottom: 12px;
}
.vbp-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #333;
    font-size: 13px;
}
.vbp-field input,
.vbp-field textarea,
.vbp-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d3dc;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s;
}
.vbp-field input:focus,
.vbp-field textarea:focus {
    border-color: #2C3580;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44,53,128,.15);
}

.vbp-consent {
    background: #f9fafb;
    padding: 12px 14px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 13px;
}
.vbp-consent label {
    font-weight: 400;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}
.vbp-consent input {
    margin-top: 3px;
}

.vbp-submit-row {
    margin-top: 20px;
}

.vbp-form-message {
    padding: 14px 18px;
    border-radius: 5px;
    margin: 16px 0;
    font-size: 14px;
}
.vbp-form-message.vbp-error {
    background: #f8d7da;
    color: #a02323;
    border: 1px solid #f5c6cb;
}
.vbp-form-message.vbp-success {
    background: #d4edda;
    color: #1d6b3d;
    border: 1px solid #c3e6cb;
}

/* ---- Events-Übersicht (Listenansicht) ---- */
.vbp-events-overview {
    max-width: 1100px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.vbp-event-row {
    display: flex;
    background: #fff;
    border: 1px solid #e5e5e8;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.vbp-event-row:hover {
    border-color: #2C3580;
    box-shadow: 0 6px 20px rgba(44,53,128,.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.vbp-event-row.vbp-is-sold-out {
    opacity: .65;
}
.vbp-event-row.vbp-is-sold-out:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    border-color: #e5e5e8;
}

.vbp-event-date-tile {
    flex-shrink: 0;
    width: 120px;
    background: #2C3580;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    text-align: center;
}

.vbp-event-row-image {
    flex-shrink: 0;
    width: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f3;
}
.vbp-date-day {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}
.vbp-date-month {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 4px;
}
.vbp-date-year {
    font-size: 13px;
    font-weight: 400;
    opacity: .8;
    margin-top: 4px;
}

.vbp-event-row-body {
    flex: 1;
    padding: 22px 28px;
    min-width: 0;
}
.vbp-event-row-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #2C3580;
    line-height: 1.3;
}
.vbp-event-row-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}
.vbp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.vbp-event-row-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 14px;
}
.vbp-event-row-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f3;
}
.vbp-event-row-footer .vbp-side-badge {
    width: auto;
    flex-shrink: 0;
}
.vbp-event-row-link {
    color: #2C3580;
    font-weight: 600;
    font-size: 14px;
}

.vbp-events-empty {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    text-align: center;
    background: #f9fafb;
    border: 1px dashed #d4d4d8;
    border-radius: 8px;
    color: #666;
}

@media (max-width: 600px) {
    .vbp-event-row {
        flex-direction: column;
    }
    .vbp-event-date-tile {
        width: 100%;
        padding: 16px;
        flex-direction: row;
        gap: 14px;
        justify-content: center;
    }
    .vbp-date-day { font-size: 28px; }
    .vbp-date-month { margin-top: 0; }
    .vbp-date-year { margin-top: 0; }
    .vbp-event-row-image {
        width: 100%;
        height: 160px;
    }
}

/* ---- Alte Events-Liste-Klassen (Fallback / Abwärtskompatibilität) ---- */
.vbp-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.vbp-event-card {
    padding: 22px;
    border: 1px solid #e5e5e8;
    border-radius: 8px;
    background: #fff;
}
.vbp-event-card.vbp-sold-out {
    opacity: .65;
}
.vbp-event-card h3 {
    margin: 0 0 8px;
}

/* ---- Cancel page ---- */
.vbp-cancel-form, .vbp-cancel-success, .vbp-cancel-info {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e5e5e8;
    border-radius: 8px;
}
.vbp-cancel-success {
    border-left: 4px solid #1d6b3d;
}

/* ===== Survey ===== */
.vbp-survey {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e5e5e8;
    border-radius: 8px;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.vbp-survey-title {
    margin: 0 0 10px;
    color: #1a1a2e;
}
.vbp-survey-intro {
    color: #555;
    margin-bottom: 24px;
}
.vbp-survey-question {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}
.vbp-survey-question:last-of-type {
    border-bottom: none;
}
.vbp-survey-question-text {
    display: block;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    font-size: 16px;
}
.vbp-q-num {
    display: inline-block;
    color: #2C3580;
    font-weight: 700;
    margin-right: 6px;
}

.vbp-scale-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.vbp-scale-label {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
    max-width: 90px;
}
.vbp-scale {
    display: flex;
    flex: 1;
    gap: 4px;
    flex-wrap: wrap;
}
.vbp-scale-item {
    flex: 1;
    min-width: 36px;
    cursor: pointer;
}
.vbp-scale-item input {
    position: absolute;
    opacity: 0;
}
.vbp-scale-item span {
    display: block;
    text-align: center;
    padding: 10px 4px;
    border: 1px solid #d0d3dc;
    border-radius: 4px;
    background: #f9f9fc;
    font-weight: 600;
    color: #444;
    transition: all .15s;
}
.vbp-scale-item:hover span {
    background: #ebeef7;
    border-color: #2C3580;
}
.vbp-scale-item input:checked + span {
    background: #2C3580;
    color: #fff;
    border-color: #2C3580;
}
.vbp-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d0d3dc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}
.vbp-survey-submit {
    margin-top: 26px;
    text-align: center;
}
.vbp-survey-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 5px;
    background: #d4edda;
    color: #1d6b3d;
    text-align: center;
    font-weight: 500;
}

/* Body scrollen blockieren wenn Modal offen */
body.vbp-modal-open {
    overflow: hidden;
}
