/* Theater Booking 1.0.2 — kino-style layout */
.tb-public{max-width:860px;width:100%;font-family:inherit;box-sizing:border-box;color:#24282e}.tb-public *,.tb-admin .tb-map *{box-sizing:border-box}.tb-public h3{margin:0 0 6px;font-size:clamp(20px,3vw,26px);font-weight:500;line-height:1.35}.tb-public>p{margin:4px 0 15px;color:#66717b}.tb-stage{max-width:860px;margin:22px 0 12px;padding:9px 12px;border-radius:9px;background:#e9edf2;text-align:center;color:#65717f;font-size:12px;letter-spacing:.24em;font-weight:700}.tb-map{display:grid;grid-template-columns:minmax(18px,28px) repeat(12,minmax(0,1fr)) minmax(18px,28px);gap:clamp(3px,.65vw,7px);max-width:860px;width:100%;margin:0 0 20px}.tb-row-label{display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:#84909c}.tb-seat{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border:1px solid rgba(0,0,0,.06);border-radius:8px;font-size:clamp(9px,1.4vw,14px);font-weight:500;line-height:1;color:#283226;padding:0;margin:0;min-width:0;min-height:0;box-shadow:inset 0 -2px 0 rgba(0,0,0,.045)}.tb-seat.tb-front,.tb-legend .tb-front{background:#bada55}.tb-seat.tb-back,.tb-legend .tb-back{background:#dd9933}.tb-seat.tb-empty{background:transparent;border:0;box-shadow:none;pointer-events:none}.tb-seat.tb-taken,.tb-legend .tb-taken{background:#d65b55;color:#fff}.tb-seat.tb-selected,.tb-legend .tb-selected{background:#a53030;color:#fff;outline:2px solid #6d1515;outline-offset:-2px}.tb-public button.tb-seat{cursor:pointer;appearance:none;transition:transform .12s,filter .12s}.tb-public button.tb-seat:not(:disabled):hover{filter:brightness(.96);transform:translateY(-1px)}.tb-public button.tb-seat:disabled{cursor:not-allowed;opacity:1}.tb-public button.tb-seat:focus-visible,.tb-edit:focus-within{outline:3px solid #2271b1;outline-offset:1px}.tb-aisle{grid-column:1/-1;display:flex;align-items:center;gap:16px;justify-content:center;margin:15px 0 17px;color:#98a1ab;font-size:11px;letter-spacing:.2em;font-weight:600}.tb-aisle:before,.tb-aisle:after{content:"";height:1px;background:#e6e9ed;flex:1}.tb-legend{display:flex;gap:10px 18px;flex-wrap:wrap;font-size:13px;margin:12px 0}.tb-legend span{display:flex;align-items:center;gap:7px}.tb-legend i{display:inline-block;width:15px;height:15px;border-radius:4px;border:1px solid rgba(0,0,0,.09)}.tb-summary{padding:18px;background:#f5f7f9;border:1px solid #e9edf1;border-radius:16px;margin:16px 0}.tb-summary p{margin:12px 0}.tb-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.tb-stats>div{background:#fff;border:1px solid #e9edf1;border-radius:12px;padding:12px 16px;display:flex;flex-direction:column;gap:4px}.tb-stats small{color:#66717b;font-size:12px}.tb-stats strong{font-size:clamp(22px,4vw,29px);font-weight:600;line-height:1.3}.tb-seat-summary{border-top:1px solid #e1e6eb;padding-top:12px}.tb-seat-summary>strong{display:block;margin-bottom:7px}.tb-selection,.tb-checkout-seats,.tb-done-seats{font-size:14px;line-height:1.8;color:#414c56}.tb-public .tb-step button:not(.tb-seat){padding:11px 18px;cursor:pointer;border-radius:10px;border:1px solid #c8d0d8;background:#fff;color:#26323c;font-weight:500}.tb-public .tb-step .tb-next,.tb-public .tb-step .tb-submit{background:#263e55;color:#fff;border-color:#263e55}.tb-public .tb-step button:disabled{cursor:not-allowed;opacity:.5}.tb-public .tb-step[hidden]{display:none}.tb-public .tb-step-checkout~.tb-message{margin-top:10px}.tb-public:has(.tb-step-checkout:not([hidden])) .tb-map-legend,.tb-public:has(.tb-step-done:not([hidden])) .tb-map-legend{display:none}.tb-public .tb-book-form input:not([type=checkbox]){display:block;width:100%;max-width:440px;padding:11px 12px;margin-top:6px;border:1px solid #cbd2d9;border-radius:9px;background:#fff}.tb-public .tb-book-form p{margin:16px 0}.tb-public .tb-message{color:#9d2d23;min-height:1.5em}.tb-public .tb-timer{color:#875b05;font-size:13px}.tb-admin .tb-map{max-width:860px}.tb-admin .tb-seat{font-size:clamp(9px,1.4vw,14px)}.tb-edit{cursor:pointer;position:relative}.tb-edit input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.tb-edit span{pointer-events:none}.tb-table-scroll{overflow-x:auto}.tb-admin #tb-booking-table{min-width:900px}.tb-admin .tb-sort{cursor:pointer;text-decoration:underline dotted}.tb-admin .tb-row-reserved td{background:#fff6d9}.tb-admin .tb-row-paid td{background:#e3f4e1}.tb-admin .tb-row-cancelled td{background:#fae4e4}.tb-action-form{display:inline-block;margin:2px}.tb-admin #tb-dirty{color:#a34d00;font-weight:600}.tb-event-form{padding:14px 16px;background:#fff;border:1px solid #dce2e8;border-radius:12px;max-width:860px;margin:16px 0}.tb-event-form input{margin:0 10px}
@media(max-width:500px){.tb-map{gap:2px;grid-template-columns:14px repeat(12,minmax(0,1fr)) 14px}.tb-seat{font-size:9px;border-radius:5px}.tb-row-label{font-size:10px}.tb-legend{font-size:12px}.tb-stats{gap:8px}.tb-stats>div{padding:10px}.tb-summary{padding:12px}.tb-aisle{margin:10px 0}}

/* 1.0.3: fixed cart appears only after seat selection */
.tb-public .tb-floating-cart[hidden]{display:none!important}
.tb-public .tb-floating-cart{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:9999;width:min(820px,calc(100vw - 28px));padding:15px 20px;background:rgba(255,255,255,.97);border:1px solid #dfe5eb;border-radius:18px;box-shadow:0 12px 42px rgba(22,33,48,.22);backdrop-filter:blur(14px);color:#26323c;animation:tb-rise .18s ease-out}
.tb-floating-top,.tb-floating-details,.tb-floating-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px}
.tb-floating-top{margin-bottom:8px}.tb-floating-quantity{font-size:13px;color:#627080;background:#eef1f4;border-radius:99px;padding:4px 10px}
.tb-floating-details{padding-bottom:10px;border-bottom:1px solid #e8edf1}.tb-floating-seats{font-size:13px;line-height:1.5;min-width:0;max-height:54px;overflow:auto}.tb-floating-total{font-size:23px;white-space:nowrap}
.tb-floating-bottom{padding-top:10px}.tb-floating-bottom .tb-timer{margin:0}.tb-public .tb-floating-bottom .tb-next{background:#263e55;color:white;border-color:#263e55;white-space:nowrap}
.tb-public:has(.tb-step-map:not([hidden])){padding-bottom:145px}
@keyframes tb-rise{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:520px){.tb-public .tb-floating-cart{padding:12px;border-radius:14px;bottom:max(8px,env(safe-area-inset-bottom))}.tb-floating-total{font-size:19px}.tb-floating-details{align-items:flex-start}.tb-floating-bottom .tb-timer{font-size:11px;line-height:1.35}.tb-public .tb-floating-bottom .tb-next{padding:10px 12px;font-size:12px}}

/* V1.0.4: grouped seating cards on booking step */
.tb-public .tb-checkout-seats{display:flex;flex-wrap:wrap;gap:10px;line-height:1.4}
.tb-public .tb-seat-group{display:flex;flex-direction:column;gap:4px;padding:12px 16px;background:#fff;border:1px solid #e3e8ed;border-radius:12px;min-width:135px}
.tb-public .tb-seat-group small{font-size:12px;color:#66717b}
.tb-public .tb-seat-group strong{font-size:15px;color:#26323c;font-weight:600}

/* 1.0.5 — großzügige WordPress-Administration */
.tb-admin{max-width:1320px;color:#1d2936}.tb-admin h1{font-size:32px;font-weight:650;letter-spacing:-.035em;margin:22px 0}.tb-admin h2{font-size:25px;letter-spacing:-.025em;font-weight:650}.tb-admin h3{letter-spacing:-.02em}.tb-admin .button{border-radius:9px;padding:3px 13px;min-height:36px}.tb-admin .button-primary{background:#233f61;border-color:#233f61}.tb-admin .button-primary:hover{background:#152e4d;border-color:#152e4d}.tb-admin-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:25px 0}.tb-admin-heading h2{margin:0 0 6px;font-size:29px}.tb-admin-heading p{margin:0;color:#697585}.tb-admin .tb-eyebrow{font-size:11px;letter-spacing:.16em;font-weight:700;color:#8290a0;margin:0 0 10px}.tb-event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,500px),1fr));gap:22px;margin-top:22px}.tb-event-card{display:grid;grid-template-columns:180px minmax(0,1fr);background:white;border:1px solid #e0e6ee;border-radius:22px;overflow:hidden;box-shadow:0 8px 30px rgba(20,40,70,.055);min-height:290px}.tb-event-poster{background:#edf1f6;min-height:290px}.tb-poster-image{width:100%;height:100%;object-fit:cover;display:block}.tb-poster-placeholder{height:100%;min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#8693a2;text-align:center;padding:15px}.tb-poster-placeholder .dashicons{font-size:42px;width:42px;height:42px}.tb-event-content{padding:24px;display:flex;flex-direction:column;min-width:0}.tb-event-content h3{font-size:23px;line-height:1.25;margin:0 0 10px;overflow-wrap:anywhere}.tb-event-date{display:flex;align-items:center;gap:6px;color:#687688;margin:0 0 18px}.tb-event-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:auto;padding:17px 0;border-top:1px solid #edf0f3}.tb-event-metrics>div{display:flex;flex-direction:column;gap:3px}.tb-event-metrics strong{font-size:25px;line-height:1.2;font-weight:650}.tb-event-metrics span{color:#788494;font-size:12px}.tb-event-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.tb-event-actions code{font-size:11px;overflow-wrap:anywhere}.tb-empty-events,.tb-admin-panel{background:#fff;border:1px solid #e0e6ee;border-radius:20px;padding:24px;box-shadow:0 5px 22px rgba(20,40,70,.035)}.tb-poster-editor{display:flex;justify-content:space-between;align-items:center;gap:25px;max-width:860px;margin:20px 0}.tb-poster-editor>div:first-child{flex:1}.tb-poster-editor h3{font-size:20px;margin:0 0 8px}.tb-poster-editor p{color:#6c7786}.tb-poster-editor form{display:flex;flex-wrap:wrap;gap:8px}.tb-poster-preview{width:130px;height:175px;flex-shrink:0;overflow:hidden;border-radius:12px;background:#edf1f6}.tb-admin .tb-event-form{padding:24px;border-radius:18px;box-shadow:0 4px 20px rgba(20,40,70,.04)}.tb-admin .tb-table-scroll{border:1px solid #e1e6ed;border-radius:15px;background:#fff}.tb-admin #tb-booking-table{border:0}.tb-admin #tb-booking-table th{padding:13px 11px}.tb-admin #tb-booking-table td{padding:11px}.tb-admin #tb-booking-table tr:last-child td{border-bottom:0}
@media(max-width:750px){.tb-event-card{grid-template-columns:115px minmax(0,1fr);min-height:240px}.tb-event-poster{min-height:240px}.tb-event-content{padding:15px}.tb-event-content h3{font-size:19px}.tb-event-metrics strong{font-size:20px}.tb-admin-heading{align-items:flex-start;flex-direction:column}.tb-poster-editor{align-items:flex-start}.tb-poster-preview{width:95px;height:130px}}@media(max-width:480px){.tb-event-card{grid-template-columns:1fr}.tb-event-poster{height:180px;min-height:0}.tb-poster-image{object-position:center 35%}.tb-poster-editor{flex-direction:column}.tb-event-grid{grid-template-columns:1fr}}

/* V1.0.7 – Event cover and event information above the stage. */
.tb-public .tb-public-hero{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:24px;margin:0 0 22px;padding:18px;background:#f7f8fa;border:1px solid #e8ebef;border-radius:20px;box-sizing:border-box}
.tb-public .tb-public-hero-cover{width:150px;aspect-ratio:3/4;border-radius:14px;overflow:hidden;background:#e9edf2;box-shadow:0 5px 20px rgba(28,42,55,.11)}
.tb-public .tb-public-hero-cover .tb-poster-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
.tb-public .tb-public-hero-info{min-width:0}
.tb-public .tb-public-hero-info h3{font-size:clamp(21px,2.8vw,28px);line-height:1.25;margin:0 0 12px;color:#263441}
.tb-public .tb-public-hero-info .tb-public-date{font-size:15px;color:#5d6b78;margin:0 0 18px}
.tb-public .tb-public-hero-info .tb-legend{margin:0;gap:10px 16px}
.tb-public .tb-public-hero-info .tb-legend span{white-space:nowrap}
@media(max-width:540px){.tb-public .tb-public-hero{grid-template-columns:100px minmax(0,1fr);gap:14px;padding:12px;border-radius:16px}.tb-public .tb-public-hero-cover{width:100px;border-radius:11px}.tb-public .tb-public-hero-info h3{font-size:18px;margin-bottom:7px}.tb-public .tb-public-hero-info .tb-public-date{font-size:13px;margin-bottom:10px}.tb-public .tb-public-hero-info .tb-legend{gap:6px 10px;font-size:11px}.tb-public .tb-public-hero-info .tb-legend i{width:11px;height:11px}}
@media(max-width:360px){.tb-public .tb-public-hero{grid-template-columns:80px minmax(0,1fr)}.tb-public .tb-public-hero-cover{width:80px}}

/* V1.0.8: Frontend without poster, full-width event details. */
.tb-public .tb-public-hero{display:block}
.tb-public .tb-public-hero-info{width:100%}

/* V1.0.9 – wider reservations and consistent settings interface */
.tb-admin.tb-admin-event{max-width:none;margin-right:20px}
.tb-admin-event .tb-reservations-section{width:100%;max-width:none;margin:30px 0 20px}
.tb-admin-event .tb-reservations-section h2{margin-bottom:16px}
.tb-admin-event .tb-reservations-section .tb-table-scroll{width:100%;box-sizing:border-box}
.tb-admin-event #tb-booking-table{width:100%;min-width:1100px;table-layout:auto}
.tb-admin-event #tb-booking-table td,.tb-admin-event #tb-booking-table th{vertical-align:middle}
.tb-admin-event #tb-booking-table td:nth-child(4){min-width:145px}
.tb-admin-event #tb-booking-table td:last-child{min-width:250px}
.tb-reservations-footer{display:flex;justify-content:flex-end;margin:14px 0 0}
.tb-settings-page{max-width:1320px}
.tb-settings-page .tb-admin-heading h1{margin:0 0 9px}
.tb-settings-page .tb-admin-heading{margin:27px 0 22px}
.tb-settings-notice{display:flex;gap:14px;align-items:flex-start;background:#edf4fb;border:1px solid #d7e5f4;border-radius:15px;padding:17px 20px;margin:0 0 22px;color:#23425e}
.tb-settings-notice>.dashicons{font-size:22px;width:22px;height:22px;flex:none}
.tb-settings-notice p{margin:5px 0 0;line-height:1.55}
.tb-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px}
.tb-settings-card{background:#fff;border:1px solid #e0e6ee;border-radius:20px;padding:25px;box-shadow:0 5px 22px rgba(20,40,70,.035);min-width:0}
.tb-settings-card-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:24px}
.tb-settings-card-head h2{font-size:21px;margin:0 0 7px;line-height:1.3}
.tb-settings-card-head p{color:#687688;margin:0;line-height:1.55}
.tb-settings-step{background:#eaf0f7;color:#28435e;border-radius:11px;font-size:14px;font-weight:700;min-width:42px;height:42px;display:flex;align-items:center;justify-content:center}
.tb-settings-card-head>.dashicons{font-size:23px;width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:#eaf0f7;color:#28435e;flex:none}
.tb-settings-field{margin:0 0 20px}
.tb-settings-field:last-child{margin-bottom:0}
.tb-settings-field>label{display:block;font-weight:650;margin-bottom:9px;color:#263441}
.tb-settings-field input,.tb-settings-field textarea{width:100%;max-width:none;box-sizing:border-box;border:1px solid #cfd8e3;border-radius:10px;padding:11px 13px;box-shadow:none;line-height:1.5}
.tb-settings-field textarea{min-height:265px;resize:vertical;font-family:inherit}
.tb-settings-field input:focus,.tb-settings-field textarea:focus{border-color:#557ca7;box-shadow:0 0 0 2px rgba(85,124,167,.14)}
.tb-settings-wide{margin:0 0 20px}
.tb-token-list{display:flex;flex-wrap:wrap;gap:9px}
.tb-token-list code{padding:7px 11px;background:#f0f4f8;border-radius:8px;color:#34516b;font-size:13px}
.tb-settings-email{max-width:500px}
.tb-settings-checkbox{display:flex;align-items:flex-start;gap:11px;padding:15px;background:#f6f8fb;border:1px solid #e7ebf0;border-radius:12px;cursor:pointer}
.tb-settings-checkbox input{margin:3px 0 0}
.tb-settings-checkbox span{display:flex;flex-direction:column;gap:5px}
.tb-settings-checkbox small{font-size:12px;line-height:1.5;color:#687688}
.tb-settings-save{display:flex;justify-content:flex-end;margin:0 0 35px}
.tb-settings-save .button{min-height:42px;padding:6px 20px}
@media(max-width:950px){.tb-settings-grid{grid-template-columns:1fr}}
@media(max-width:600px){.tb-admin.tb-admin-event{margin-right:10px}.tb-settings-card{padding:18px}.tb-settings-card-head{gap:10px}.tb-settings-save{justify-content:stretch}.tb-settings-save .button{width:100%;text-align:center}}

/* V1.0.11 – booking confirmation primary action and back button below */
.tb-public .tb-book-actions{display:flex;flex-direction:column;align-items:flex-start;gap:11px;margin-top:18px}
.tb-public .tb-step .tb-book-actions .tb-submit{background:#39865a;border-color:#39865a;color:#fff;min-width:205px;transition:background-color .15s,border-color .15s}
.tb-public .tb-step .tb-book-actions .tb-submit:hover:not(:disabled){background:#2d704b;border-color:#2d704b;color:#fff}
.tb-public .tb-step .tb-book-actions .tb-submit:focus-visible{outline:3px solid #a6d5b6;outline-offset:3px}
.tb-public .tb-step .tb-book-actions .tb-back-button{background:#fff;border-color:#c8d0d8;color:#26323c}
@media(max-width:500px){.tb-public .tb-book-actions{align-items:stretch}.tb-public .tb-book-actions button{width:100%}}

/* V1.0.12 – Online-Buchung pro Veranstaltung */
.tb-online-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 0;padding:15px 0 0;border-top:1px solid #edf0f3}
.tb-online-label{font-size:13px;font-weight:600;color:#344357;display:flex;flex-direction:column;gap:3px}
.tb-online-label strong{font-size:12px;font-weight:600}
.tb-online-on{color:#257647}.tb-online-off{color:#788494}
.tb-admin .tb-online-switch{appearance:none;border:0;border-radius:30px;background:#cbd3dc;width:49px;height:28px;min-width:49px;cursor:pointer;position:relative;padding:3px;transition:background .18s}
.tb-admin .tb-online-switch.is-on{background:#39865a}
.tb-online-switch span{display:block;background:#fff;width:22px;height:22px;border-radius:50%;box-shadow:0 1px 4px #0002;transition:transform .18s}
.tb-online-switch.is-on span{transform:translateX(21px)}
.tb-online-switch:focus-visible{outline:3px solid #2363a4;outline-offset:3px}
.tb-online-closed .tb-online-notice{background:#f2f5f8;border:1px solid #dfe5ed;border-radius:12px;padding:17px 20px;color:#4b5a6a;margin:18px 0 0}

/* V1.0.13 – Versandoption in Box 01 und E-Mail-Status */
.tb-auto-reserve-setting{margin-top:22px}
.tb-mail-status{font-size:11px;color:#687688;margin:0 0 7px;line-height:1.35}
.tb-mail-status-sent{color:#287a4b}
.tb-mail-status-failed{color:#b42318;font-weight:600}

/* 1.0.14: dreistellige Stuhlnummern */
.tb-public .tb-seat,.tb-admin .tb-seat{font-size:clamp(8px,1.05vw,12px);letter-spacing:-.03em}
.tb-delete-danger{color:#a52b2b!important;border-color:#d7aaaa!important;margin-top:8px!important}
.tb-settings-card .tb-settings-checkbox+.tb-settings-checkbox{margin-top:12px}

/* V1.0.18: keep edited reservation visible after admin-post redirect */
#tb-reservations, [id^="tb-booking-row-"] { scroll-margin-top: 95px; }
