.cec-events,
.cec-create-form {
    --cec-blue: #1079F3;
    --cec-purple: #5143e8;
    --cec-border: #9fc0f7;
    --cec-muted: #5c7090;
    --cec-soft: #f6f8ff;
    font-family: inherit;
}

.cec-create-form {
    display: grid;
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
}

.cec-form-box,
.cec-editor-box,
.cec-ticket-box,
.cec-payment-box {
    border: 1px solid #d7e4fb;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.cec-form-top {
    display: grid;
    grid-template-columns: 170px 1fr;
    align-items: center;
    gap: 28px;
}

.cec-image-upload,
.cec-gallery-upload {
    border: 1px dashed #b7cff8;
    background: #f4f7fe;
    border-radius: 100px;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #2f39d7;
    cursor: pointer;
    text-align: center;
}

.cec-gallery-upload {
    border-radius: 10px;
    width: 100%;
    height: 150px;
}

.cec-image-upload input,
.cec-gallery-upload input {
    display: none;
}

.cec-field {
    display: grid;
    gap: 5px;
    color: var(--cec-muted);
    font-size: 13px;
}

.cec-field input,
.cec-field select,
.cec-field textarea {
    width: 100%;
    border: 1px solid var(--cec-border);
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 16px;
    color: #1f2a44;
    background: #fff;
    box-sizing: border-box;
}

.cec-field textarea {
    min-height: 190px;
    resize: vertical;
}

.cec-field input:focus,
.cec-field select:focus,
.cec-field textarea:focus {
    outline: 2px solid rgba(16, 121, 243, .15);
    border-color: var(--cec-blue);
}

.cec-form-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.cec-ticket-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(160px, .8fr) minmax(140px, .7fr) 44px;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}

.cec-toggle-line,
.cec-checkbox-line,
.cec-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    background: var(--cec-soft);
    font-weight: 600;
}

.cec-outline-button,
.cec-button {
    border-radius: 7px;
    border: 1px solid var(--cec-purple);
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cec-outline-button {
    background: #fff;
    color: var(--cec-purple);
    justify-self: start;
}

.cec-button {
    background: var(--cec-purple);
    color: #fff;
}

.cec-icon-button {
    height: 45px;
    border: 0;
    border-radius: 8px;
    background: #fff0f0;
    cursor: pointer;
}

.cec-help {
    color: var(--cec-muted);
}

.cec-location-modal[hidden] {
    display: none;
}

.cec-location-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(16, 29, 61, .42);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cec-location-modal-inner {
    position: relative;
    width: min(560px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    display: grid;
    gap: 14px;
    box-shadow: 0 18px 55px rgba(16, 29, 61, .22);
}

.cec-modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: 0;
    font-size: 28px;
    cursor: pointer;
}

.cec-card {
    display: grid;
    grid-template-columns: 220px 90px 1fr;
    gap: 18px;
    border: 1px solid #d7e4fb;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
}

.cec-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.cec-date {
    display: grid;
    align-content: start;
    gap: 4px;
    color: #1f2a44;
}

.cec-content h3 {
    margin: 0 0 8px;
}

.cec-content h3 a {
    color: #1f2a44;
    text-decoration: none;
}

.cec-meta {
    color: var(--cec-muted);
    margin: 5px 0;
}

.cec-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.cec-gallery-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.cec-success,
.cec-badge {
    padding: 12px 15px;
    border-radius: 8px;
    background: #e9f8ef;
    color: #11672d;
    display: inline-block;
}

.cec-badge-muted {
    background: #f1f3f8;
    color: #59657a;
}

@media (max-width: 900px) {
    .cec-form-top {
        grid-template-columns: 1fr;
    }

    .cec-form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cec-ticket-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) 44px;
    }

    .cec-ticket-row .cec-field:first-child {
        grid-column: 1 / -1;
    }

    .cec-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .cec-form-row,
    .cec-ticket-row {
        grid-template-columns: 1fr;
    }

    .cec-icon-button {
        width: 44px;
    }
}

/* Version 0.5.0 frontend form refinements */
.cec-form-box h3,
.cec-ticket-box h3,
.cec-payment-box h3 {
    margin: 0 0 14px;
    color: #526b91;
    font-size: 18px;
    text-align: left;
}

.cec-hero-box {
    display: grid;
    gap: 14px;
}

.cec-hero-upload {
    position: relative;
    display: block;
    width: 100%;
    min-height: 260px;
    border: 1px dashed #b7cff8;
    border-radius: 12px;
    background: #f4f7fe;
    overflow: hidden;
    cursor: pointer;
}

.cec-hero-upload input,
.cec-media-button input[type="file"],
.cec-media-button input[type="url"] {
    display: none;
}

.cec-hero-upload img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.cec-upload-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2f39d7;
    font-weight: 700;
}

.cec-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cec-media-button {
    border-radius: 8px;
    border: 1px solid var(--cec-purple);
    padding: 11px 18px;
    color: var(--cec-purple);
    font-weight: 700;
    cursor: pointer;
    background: #fff;
}

.cec-gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.cec-gallery-preview img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    border-radius: 10px;
}

.cec-date-row {
    margin-bottom: 12px;
}

.cec-close-date {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cec-close-date[hidden],
.cec-confirm-modal[hidden] {
    display: none;
}

.cec-description-signature {
    margin-top: 12px;
    padding: 14px;
    border-radius: 10px;
    background: #f5f6f9;
    color: #8793a8;
    display: grid;
    gap: 5px;
    max-width: 360px;
}

.cec-description-signature img {
    max-width: 180px;
    opacity: .45;
    margin-top: 5px;
}

.cec-price-type {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.cec-price-type label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
    color: #1f2a44;
}

.cec-total-capacity {
    margin: 14px 0;
    max-width: 340px;
}

.cec-ticket-row {
    grid-template-columns: minmax(260px, 1.3fr) minmax(180px, .7fr) 48px;
}

.cec-icon-button {
    background: #ff6b6b;
    color: #fff;
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cec-icon-button span {
    font-size: 18px;
    filter: brightness(0) invert(1);
}

.cec-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(16, 29, 61, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cec-confirm-inner {
    width: min(460px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 18px 55px rgba(16, 29, 61, .24);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cec-confirm-inner h3,
.cec-confirm-inner p {
    width: 100%;
    margin: 0 0 8px;
}

@media (max-width: 900px) {
    .cec-ticket-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) 48px;
    }
    .cec-ticket-row .cec-field:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .cec-close-date,
    .cec-ticket-row {
        grid-template-columns: 1fr;
    }
}

.cec-event-options-box .cec-option-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cec-goodie-line {
    gap: 10px;
}

.cec-mini-video-button {
    border: 1px solid var(--cec-purple);
    color: var(--cec-purple);
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
}

.cec-accordion {
    display: grid;
    gap: 10px;
}

.cec-accordion-item {
    border: 1px solid #d7e4fb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.cec-accordion-item.is-open {
    box-shadow: 0 8px 22px rgba(16, 121, 243, 0.08);
}

.cec-accordion-head {
    width: 100%;
    border: 0;
    background: #f6f8ff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #1f2a44;
    font-size: 16px;
    font-weight: 800;
    text-align: left;
}

.cec-accordion-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cec-accordion-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eaf2ff;
}

.cec-accordion-arrow {
    font-size: 24px;
    line-height: 1;
    color: var(--cec-purple);
}

.cec-accordion-body {
    padding: 14px;
}

@media (max-width: 640px) {
    .cec-event-options-box .cec-option-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Version 0.8.2 refinements */
.event-image-preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.event-image-preview::before {
    content: "";
    display: block;
    padding-top: 70%;
}

.event-image-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.cec-hero-upload.event-image-preview {
    min-height: 0;
}

.cec-hero-upload.event-image-preview img {
    display: block;
}

.cec-location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.cec-accordion-head {
    background: #f7f9fd !important;
    color: #1f2a44 !important;
    border: 1px solid #dce7fb !important;
    border-radius: 8px !important;
    padding: 13px 14px !important;
}

.cec-accordion-item.is-open .cec-accordion-head {
    background: #eef4ff !important;
}

.cec-accordion-arrow {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #1079F3;
}

.cec-extra-row {
    display: grid;
    grid-template-columns: minmax(170px, .8fr) minmax(240px, 1.3fr) minmax(120px, .5fr) 44px;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}

.cec-trash-button {
    background: #1079F3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cec-trash-button img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    display: block;
}

@media (max-width: 900px) {
    .cec-extra-row {
        grid-template-columns: 1fr 1fr 44px;
    }
    .cec-extra-row .cec-field:nth-child(2) {
        grid-column: 1 / -1;
        order: 3;
    }
    .cec-extra-row .cec-trash-button {
        order: 4;
    }
}

@media (max-width: 560px) {
    .cec-extra-row {
        grid-template-columns: 1fr;
    }
}

/* Google Places Vorschläge über dem Location Popup anzeigen */
.pac-container {
    z-index: 999999 !important;
}

.cec-dashboard-menu{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.cec-tab{display:inline-flex;padding:10px 16px;border:1px solid #d6e4f7;border-radius:10px;text-decoration:none;color:#23384f;background:#fff}.cec-tab.is-active{background:#f3f8ff;border-color:#2f9bd8}.cec-event-overview-card{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}.cec-overview-thumb{width:86px;height:60px;object-fit:cover;border-radius:10px}.cec-overview-main{flex:1;min-width:220px}.cec-overview-actions{display:flex;gap:8px;flex-wrap:wrap}.cec-status-chip{display:inline-flex;padding:3px 8px;border-radius:999px;background:#eef4fb;font-size:12px}.cec-status-published{background:#e8f8ef}.cec-status-cancelled{background:#ffecec}.cec-status-request{background:#fff5df}.cec-danger{border-color:#ffcccc;color:#b90000}.cec-participant-table{overflow:auto}.cec-participant-table table{width:100%;border-collapse:collapse}.cec-participant-table th,.cec-participant-table td{padding:10px;border-bottom:1px solid #edf2f7;text-align:left}


.cec-event-id {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.cec-public-modal[hidden] {
    display: none !important;
}

.cec-public-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cec-public-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
}

.cec-public-modal-box {
    position: relative;
    z-index: 1;
    width: min(720px, 96vw);
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
    padding: 18px;
}

.cec-public-modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 3;
    border: 0;
    background: #fff;
    color: #1f2a44;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.cec-public-modal-body {
    clear: both;
}

.cec-popup-loading,
.cec-popup-error {
    padding: 28px;
    text-align: center;
    color: #334155;
}

body.cec-modal-open {
    overflow: hidden;
}

.cec-overview-actions button.cec-outline-button {
    cursor: pointer;
}

/* Buchungs Popup Mehrseiten Flow */
.cec-public-modal-box{max-width:720px;width:min(94vw,720px);max-height:92vh;overflow:auto;background:#fff;border-radius:14px;box-shadow:0 20px 70px rgba(0,0,0,.22)}
.cec-booking-flow{font-size:15px;color:#4a5568}.cec-flow-page{display:none}.cec-flow-page.is-active{display:block}.cec-flow-event-head{padding:20px 20px 0}.cec-flow-image{max-width:340px;margin:0 auto 18px}.cec-flow-summary-row{display:grid;grid-template-columns:72px 1fr auto;gap:14px;align-items:start}.cec-flow-date span{display:block;font-size:12px;color:#8492a6}.cec-flow-date strong{display:block;font-size:22px;color:#2d3748;line-height:1}.cec-flow-date small{font-size:12px}.cec-flow-main-title h2{font-size:22px;margin:0 0 6px;color:#1f2937}.cec-flow-main-title p{margin:0 0 6px}.cec-status-open{color:#19b56b;font-weight:500}.cec-flow-price{font-size:17px;color:#229fe7;font-weight:600;white-space:nowrap}.cec-flow-tabs{display:flex;gap:20px;border-bottom:1px solid #dce7f3;margin:20px}.cec-flow-tabs button{border:0;background:transparent;padding:0 0 10px;color:#4a5568;cursor:pointer}.cec-flow-tabs button.is-active{color:#229fe7;border-bottom:2px solid #229fe7}.cec-flow-tab-content{padding:0 20px 20px}.cec-popup-section h3{font-size:21px;text-decoration:underline;color:#555;margin:22px 0 8px}.cec-popup-text p,.cec-popup-section p{line-height:1.55}.cec-creator-chip{display:inline-block;background:#35c2dd;color:white;border-radius:3px;padding:1px 5px;font-size:12px}.cec-flow-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid #e5edf6;display:flex;justify-content:flex-end;gap:14px;padding:16px 20px;margin-top:20px}.cec-flow-title{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e5edf6;padding:16px 20px}.cec-flow-title h2{font-size:21px;margin:0;color:#2d3748}.cec-back{width:30px;height:30px;border:1px solid #c9d8e8;background:#fff;border-radius:7px;font-size:22px;line-height:1;cursor:pointer}.cec-ticket-choice-list{padding:0 20px 20px}.cec-ticket-choice{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;border:1px solid #cbd8e6;border-radius:9px;padding:14px;margin:12px 0}.cec-ticket-choice p{margin:3px 0 0;font-size:13px}.cec-ticket-price{font-weight:700;color:#229fe7}.cec-qty{display:flex;border:1px solid #229fe7;border-radius:7px;overflow:hidden}.cec-qty button{border:0;background:#fff;width:34px;font-size:18px;color:#335;cursor:pointer}.cec-qty input{border:0;width:48px;text-align:center;background:#f7fafc}.cec-coupon-inline{display:grid;grid-template-columns:1fr auto;gap:8px;padding:0 20px 10px;align-items:end}.cec-coupon-inline label{display:grid;gap:5px}.cec-coupon-inline input{border:1px solid #229fe7;border-radius:7px;padding:9px}.cec-coupon-inline span{grid-column:1/-1;color:#16885a}.cec-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px}.cec-info-grid .cec-field:nth-child(3){grid-column:1}.cec-member-info{grid-column:2;grid-row:1 / span 2;border:1px solid #229fe7;border-radius:8px;padding:12px;line-height:1.45}.cec-terms-box,.cec-custom-field-box{margin:0 20px 20px}.cec-terms-box{border:1px solid #229fe7;border-radius:8px;padding:12px;max-width:320px}.cec-summary-box{border:1px solid #229fe7;border-radius:8px;margin:0 20px 20px;padding:12px}.cec-summary-box div,.cec-total-line{display:flex;justify-content:space-between;gap:12px}.cec-total-line{padding:0 20px 20px;font-size:18px}.cec-payment-note{text-align:center;color:#6b7280}.cec-congrats{text-align:center;padding:40px 24px}.cec-congrats input{width:100%;max-width:460px;border:1px solid #cbd8e6;border-radius:8px;padding:10px;margin:12px auto;display:block}@media(max-width:640px){.cec-flow-summary-row{grid-template-columns:60px 1fr}.cec-flow-price{grid-column:2}.cec-ticket-choice{grid-template-columns:1fr;}.cec-info-grid{grid-template-columns:1fr}.cec-member-info,.cec-info-grid .cec-field:nth-child(3){grid-column:auto;grid-row:auto}.cec-coupon-inline{grid-template-columns:1fr}.cec-flow-footer{justify-content:stretch}.cec-flow-footer button{flex:1}}

.cec-ticket-live-total{
    margin:14px 20px 20px;
    border:1px solid #d7e5f3;
    border-radius:10px;
    background:#f8fbff;
    padding:12px 14px;
    display:grid;
    gap:8px;
}
.cec-ticket-live-total div{
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:center;
}
.cec-ticket-live-total strong{
    color:#1f2937;
}
.cec-ticket-live-total .is-payable{
    border-top:1px solid #d7e5f3;
    padding-top:8px;
    font-size:17px;
}
.cec-ticket-live-total .is-payable strong{
    color:#229fe7;
}

.cec-my-location-items{display:grid;gap:10px;margin-top:10px}.cec-my-location-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #dbe7f8;border-radius:12px;padding:10px;background:#fff}.cec-my-location-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.cec-my-location-item small{color:#58708f}.cec-location-modal-inner [type="search"]{width:100%}@media(max-width:700px){.cec-my-location-item{display:block}.cec-my-location-actions{margin-top:10px}}

/* 0.9.29 Community Member Preis als Spalte */
.cec-ticket-row-member {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 180px) minmax(170px, 220px) auto;
  gap: 12px;
  align-items: end;
}
.cec-member-price-button {
  border: 1px solid #2f9be0;
  background: #f4fbff;
  color: #0b6fac;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}
.cec-member-price-button small {
  font-size: 11px;
  font-weight: 600;
  opacity: .8;
}
.cec-ticket-choice {
  grid-template-columns: minmax(160px, 1fr) minmax(80px, auto) minmax(145px, auto) auto;
}
.cec-ticket-choice.is-member-selected {
  border-color: #2f9be0;
  background: #f4fbff;
}
.cec-ticket-choice.is-locked-by-member {
  opacity: .45;
}
.cec-ticket-choice.is-locked-by-member .cec-qty,
.cec-ticket-choice.is-locked-by-member .cec-member-price-button {
  pointer-events: none;
}
.cec-member-price-empty {
  color: #9aa6b2;
  text-align: center;
}
@media (max-width: 760px) {
  .cec-ticket-row-member,
  .cec-ticket-choice {
    grid-template-columns: 1fr;
  }
}
