/* Zitadelle Buchung
   Alles lässt sich im Elementor Widget (Stil Tab) überschreiben, das hier sind die Standardwerte im Zitadelle Stil.
   Nur Buttons und Chips sind rund, alles andere hat bewusst keinen Eckenradius. */

.zb {
	--zb-accent: #E10600;
	--zb-text: #202020;
	--zb-muted: #7A7A7A;
	--zb-line: #D9D9D9;
	--zb-gap: 2px;
	--zb-dim: .2;
	--zb-selected: #E10600;
	--zb-free: #E10600;
	--zb-free-bg: #FFFFFF;
	--zb-free-hover: #FFFFFF;
	--zb-slot-style: dashed;
	--zb-slot-bw: 2px;
	--zb-taken: #BDBDBD;
	--zb-taken-text: #FFFFFF;
	--zb-step-active: #E10600;
	--zb-step-done: #202020;
	--zb-gutter: 64px;
	--zb-circle: 56px;
	--zb-sum-width: 360px;
	--zb-list-time: 100px;
	font-family: 'Saira', sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: var(--zb-text);
	width: 100%;
	position: relative;
}
.zb *, .zb *::before, .zb *::after { box-sizing: border-box; }
.zb [hidden] { display: none !important; }
.zb [role="button"] { cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.zb [role="button"]:focus-visible { outline: 2px solid var(--zb-accent); outline-offset: 3px; }
.zb .is-disabled { opacity: .3; cursor: default !important; pointer-events: none; }
.zb h2, .zb h3, .zb p { margin-top: 0; }
.zb-loading-text, .zb-empty { color: var(--zb-muted); }
.zb-empty { padding: 24px 0; margin: 0; }
.zb-warn { background: #FFF4E5; border-left: 3px solid #FF9800; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; color: #202020; }

/* ---------------- Buttons (einzige runde Elemente) ---------------- */
.zb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 28px; border: 3px solid var(--zb-accent); border-radius: 100px;
	font-family: 'Saira', sans-serif; font-size: 15px; font-weight: 600; font-style: italic; text-transform: uppercase; letter-spacing: .5px; line-height: 1.2;
	transition: background-color .2s, color .2s, border-color .2s;
}
.zb-btn-today { background: transparent; color: var(--zb-text); }
.zb-btn-today:hover, .zb .zb-btn-today.is-current { background: var(--zb-accent); border-color: var(--zb-accent); color: #FFFFFF; }

.zb-navbtn {
	--zb-size: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	width: var(--zb-size); height: var(--zb-size); flex: 0 0 var(--zb-size);
	border: 2px solid var(--zb-text); border-radius: 50%; color: var(--zb-text); background: transparent;
	transition: background-color .2s, color .2s, border-color .2s;
}
.zb-navbtn:hover { background: var(--zb-accent); border-color: var(--zb-accent); color: #FFFFFF; }
.zb-navbtn span { display: inline-flex; }

.zb-chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 18px; border: 2px solid var(--zb-line); border-radius: 100px; background: transparent; color: var(--zb-text);
	font-family: 'Saira', sans-serif; font-size: 14px; font-weight: 600; font-style: italic; text-transform: uppercase; letter-spacing: .5px; line-height: 1.2;
	transition: background-color .2s, color .2s, border-color .2s;
}
.zb-chip:hover { border-color: var(--zb-accent); }
.zb-chip.is-active { background: var(--zb-accent); border-color: var(--zb-accent); color: #FFFFFF; }
.zb-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

/* Textlink mit Unterstrich (Zurück, Termin ändern) */
.zb-link {
	display: inline-block; margin-bottom: 20px; padding-bottom: 4px;
	border-bottom: 3px solid var(--zb-accent); color: var(--zb-text);
	font-family: 'Saira', sans-serif; font-size: 15px; font-weight: 600; font-style: italic; text-transform: uppercase; letter-spacing: .5px; line-height: 1.2;
	transition: color .2s;
}
.zb-link:hover { color: var(--zb-accent); }

/* ---------------- Toolbar ---------------- */
.zb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.zb-nav { display: flex; align-items: center; gap: 10px; }
.zb-week-label { font-family: 'Saira', sans-serif; font-size: 22px; font-weight: 600; font-style: italic; line-height: 1.2; }
.zb-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.zb-filters:empty { display: none; }

/* ---------------- Zeitraster (Desktop) ---------------- */
.zb-grid-head, .zb-grid-body { display: grid; grid-template-columns: var(--zb-gutter) repeat(7, minmax(0, 1fr)); }
.zb-grid-head { border-bottom: 1px solid var(--zb-line); }
.zb-dh { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 14px; border-left: 1px solid var(--zb-line); }
.zb-dh-name { font-family: 'Saira', sans-serif; font-size: 16px; font-weight: 600; font-style: italic; }
.zb-dh-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: var(--zb-circle); height: var(--zb-circle); padding: 0; border-radius: 50%;
	font-family: 'Aero', sans-serif; font-size: 30px; line-height: 1;
}
.zb-dh.is-today .zb-dh-num { background: var(--zb-accent); color: #FFFFFF; }

.zb-hours { position: relative; }
.zb-hour { position: absolute; right: 12px; transform: translateY(-50%); font-size: 13px; white-space: nowrap; }
.zb-hour:first-child { transform: none; }
.zb-col {
	position: relative; border-left: 1px solid var(--zb-line);
	background-image: linear-gradient(to bottom, var(--zb-line) 1px, transparent 1px);
	background-repeat: repeat-y;
}
.zb-col:last-child { border-right: 1px solid var(--zb-line); }

/* ---------------- Einheiten ---------------- */
.zb-ev {
	--ev-bg: #202020; --ev-fg: #FFFFFF;
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
	padding: 6px 10px; border-radius: 0;
	background-color: var(--ev-bg); color: var(--ev-fg); text-align: left; overflow: hidden;
	transition: opacity .2s, box-shadow .2s, filter .2s;
}
.zb-grid .zb-ev { position: absolute; }
.zb-ev-time { font-size: 13px; line-height: 1.2; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.zb-ev-title { font-size: 15px; font-weight: 600; font-style: italic; line-height: 1.2; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; word-break: break-word; }
.zb-ev-level { font-size: 13px; font-weight: 600; opacity: .95; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.zb-ev-sub { font-size: 12px; opacity: .85; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.zb-ev.is-short { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 6px; padding-top: 3px; padding-bottom: 3px; }
.zb-ev.is-short .zb-ev-sub, .zb-ev.is-short .zb-ev-level { display: none; }
/* Hover und Auswahl: einheitlich roter Rahmen, kein Schatten. Hover nur mit Maus, sonst bleibt er am Handy hängen */
@media (hover: hover) { .zb-ev[role="button"]:hover { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 5px var(--zb-selected); z-index: 4; } }
.zb-ev.is-selected { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 5px var(--zb-selected); z-index: 4; }

.zb-badge {
	margin-top: auto; align-self: flex-start;
	padding: 2px 9px; border-radius: 100px; background-color: #FFFFFF; color: #202020;
	font-size: 12px; font-weight: 600; line-height: 1.4;
}
.zb-grid .zb-badge { position: absolute; right: 8px; bottom: 6px; margin: 0; }
.zb-ev.is-short .zb-badge { bottom: auto; top: 50%; transform: translateY(-50%); }
.zb-badge.is-full { background-color: #202020; color: #FFFFFF; }

.zb-ev.is-dim { opacity: var(--zb-dim); }
.zb-ev.is-off { opacity: calc(var(--zb-dim) + .2); }
.zb-ev.is-past { opacity: .35; }
.zb-ev.is-filtered { opacity: .08; pointer-events: none; }
.zb-ev.is-ft { opacity: .5; }

/* Trainerbild */
.zb-av {
	--zb-av: 24px;
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 var(--zb-av);
	width: var(--zb-av); height: var(--zb-av); border-radius: 50%; overflow: hidden;
	background: #FFFFFF; color: #202020; box-shadow: 0 0 0 var(--zb-av-ring-w, 1.5px) var(--zb-av-ring, #FFFFFF);
}
.zb-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; } /* oben mittig, damit das Gesicht sichtbar ist */
.zb-av-ini { font-size: 10px; font-weight: 700; font-style: normal; letter-spacing: .3px; line-height: 1; }
.zb-grid .zb-ev-av { position: absolute; right: 8px; bottom: 8px; }
.zb-grid .zb-ev.has-av .zb-ev-level, .zb-grid .zb-ev.has-av .zb-ev-sub { max-width: calc(100% - 36px); }
.zb-grid .zb-ev.is-short .zb-ev-av { --zb-av: 22px; bottom: auto; top: 50%; transform: translateY(-50%); }

/* Anklickbare Einheiten im Trainingskalender */
.zb-ev.is-open { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 5px var(--zb-selected); z-index: 4; }

/* Detailfenster */
.zb-grid-body { position: relative; }
.zb-info {
	--ev-bg: #202020;
	position: absolute; z-index: 20; width: 320px; max-width: 100%;
	padding: 22px 22px 20px; background: #FFFFFF; color: #202020;
	border-top: 6px solid var(--ev-bg); box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
	text-align: left; animation: zb-in .2s ease-out;
}
.zb-info.is-inline { position: relative; width: 100%; margin: -4px 0 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
/* Heute Ansicht am Desktop: Eckdaten, Trainer und Beschreibung nebeneinander */
@media (min-width: 768px) {
	.zb-mode-today .zb-info.is-inline { display: grid; grid-template-columns: max-content; column-gap: 0; align-items: center; padding: 22px 56px 22px 28px; }
	.zb-mode-today .zb-info.is-inline.cols-2 { grid-template-columns: max-content minmax(0, 1fr); }
	.zb-mode-today .zb-info.is-inline.cols-3 { grid-template-columns: max-content max-content minmax(0, 1fr); }
	.zb-mode-today .zb-info.is-inline > .zb-info-who,
	.zb-mode-today .zb-info.is-inline > .zb-info-body { align-self: stretch; display: flex; flex-direction: column; justify-content: center; margin-left: 32px; padding-left: 32px; border-left: 1px solid #E5E5E5; }
	.zb-mode-today .zb-info.is-inline .zb-info-coach { margin: 0; padding: 0; border: 0; }
	.zb-mode-today .zb-info.is-inline .zb-info-title { margin-right: 0; }
	.zb-mode-today .zb-info.is-inline .zb-info-time { margin-bottom: 6px; }
	.zb-mode-today .zb-info.is-inline .zb-info-desc { margin-top: 0; font-size: 16px; max-width: 70ch; }
	.zb-mode-today .zb-info.is-inline .zb-info-link { align-self: flex-start; margin-top: 12px; }
	.zb-mode-today .zb-info.is-inline .zb-info-close { top: 50%; right: 14px; transform: translateY(-50%); }
}
/* Editor: Elementors Leer Markierung nie auf unserem Widget anzeigen */
.elementor-element.elementor-widget-zb_kalender.elementor-widget-empty { background-color: transparent !important; display: block !important; }
.elementor-widget-zb_kalender .elementor-widget-empty-icon { display: none !important; }
.zb-info-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; opacity: .55; }
.zb-info-close:hover { opacity: 1; }
.zb-info-close span { display: inline-flex; }
.zb-info-title { font-size: 22px; font-weight: 600; font-style: italic; line-height: 1.15; margin: 0 30px 10px 0; }
.zb-info-date { font-weight: 700; }
.zb-info-time { margin-bottom: 8px; }
.zb-info-level { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 100px; background: var(--ev-bg); color: #FFFFFF; font-size: 13px; font-weight: 600; }
.zb-info-coach { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #E5E5E5; }
.zb-info-av { --zb-av: 48px; --zb-av-ring: #E5E5E5; }
.zb-info-av .zb-av-ini { font-size: 16px; }
.zb-info-coach-txt { display: flex; flex-direction: column; line-height: 1.25; }
.zb-info-by { font-size: 12px; color: #7A7A7A; }
.zb-info-name { font-weight: 600; font-style: italic; font-size: 17px; }
.zb-info-desc { margin-top: 14px; font-size: 15px; line-height: 1.5; }
.zb-info-desc > :last-child { margin-bottom: 0; }
.zb-info-link { margin: 16px 0 0; text-decoration: none; }

/* Linie aktuelle Uhrzeit */
.zb { --zb-now: #E10600; --zb-now-w: 2px; }
.zb-now { position: absolute; left: var(--zb-gutter); right: 0; height: 0; border-top: var(--zb-now-w) solid var(--zb-now); z-index: 6; pointer-events: none; }
.zb-now::before { content: ''; position: absolute; left: -5px; top: calc(-5px - var(--zb-now-w) / 2); width: 10px; height: 10px; border-radius: 50%; background: var(--zb-now); }
.zb-now-t { position: absolute; right: calc(100% + 8px); top: 0; transform: translateY(-50%); padding: 1px 6px; background: var(--zb-now); color: #FFFFFF; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.zb-now-list { position: relative; height: 0; margin: 2px 0 2px 10px; border-top: var(--zb-now-w) solid var(--zb-now); }
.zb-now-list::before { content: ''; position: absolute; left: -10px; top: calc(-5px - var(--zb-now-w) / 2); width: 10px; height: 10px; border-radius: 50%; background: var(--zb-now); }
.zb-now-list .zb-now-t { left: auto; right: 0; }
.zb-list .zb-ev.has-now { position: relative; overflow: visible !important; }
.zb-now-in { position: absolute; left: 0; right: 0; height: 0; border-top: var(--zb-now-w) solid var(--zb-now); z-index: 4; pointer-events: none; transform: translateY(calc(var(--zb-now-w) / -2)); }
.zb-now-in::before { content: ''; position: absolute; left: -5px; top: calc(-5px - var(--zb-now-w) / 2); width: 10px; height: 10px; border-radius: 50%; background: var(--zb-now); }
.zb-now-in .zb-now-t { left: auto; right: 0; }

/* Schließtage */
.zb-ev-closed {
	background: repeating-linear-gradient(135deg, #F4F4F4 0, #F4F4F4 10px, #EAEAEA 10px, #EAEAEA 20px);
	color: #7A7A7A; justify-content: center; align-items: center; text-align: center;
}
.zb-ev-closed .zb-ev-title { font-size: 18px; -webkit-line-clamp: 3; }

/* Privattraining Slots */
.zb-ev-slot { z-index: 2; }
.zb-ev-slot.is-free { background-color: var(--zb-free-bg); color: var(--zb-free); border: var(--zb-slot-bw) var(--zb-slot-style) var(--zb-free); }
@media (hover: hover) { .zb-ev-slot.is-free[role="button"]:hover { background-color: var(--zb-free); color: var(--zb-free-hover); border-style: solid; } }
.zb-ev-slot.is-selected { background-color: var(--zb-free); color: var(--zb-free-hover); border-style: solid; }
.zb-ev-slot.is-taken { background-color: var(--zb-taken); color: var(--zb-taken-text); }
.zb-ev-slot.is-off { opacity: .45; }

/* Legende */
.zb-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; font-size: 14px; color: var(--zb-muted); }
.zb-legend:empty { display: none; }
.zb-lg { display: inline-flex; align-items: center; gap: 8px; }
.zb-lg::before { content: ''; width: 14px; height: 14px; }
.zb-lg-book::before { background: var(--zb-accent); }
.zb-lg-off::before { background: var(--zb-accent); opacity: .4; }
.zb-lg-free::before { border: 2px var(--zb-slot-style) var(--zb-free); }
.zb-lg-taken::before { background: var(--zb-taken); }

.zb.is-loading .zb-cal { opacity: .4; pointer-events: none; transition: opacity .2s; }

/* ---------------- Buchungsablauf ---------------- */
.zb-progress { display: flex; gap: 10px; margin: 0 0 40px; }
.zb-progress-step {
	flex: 1; display: flex; align-items: center; gap: 10px;
	padding: 0 0 12px; border-bottom: 3px solid #D9D9D9; color: #9A9A9A;
	font-size: 14px; font-weight: 600; font-style: italic; text-transform: uppercase; letter-spacing: .5px;
	transition: color .2s, border-color .2s;
}
.zb-progress-num {
	--zb-size: 32px;
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 var(--zb-size);
	width: var(--zb-size); height: var(--zb-size); border-radius: 50%; border: 2px solid currentColor; font-style: normal;
}
.zb-progress-step.is-active { color: var(--zb-step-active); border-bottom-color: var(--zb-step-active); }
.zb-progress-step.is-active .zb-progress-num { background: var(--zb-step-active); border-color: var(--zb-step-active); color: #FFFFFF; }
.zb-progress-step.is-done { color: var(--zb-step-done); border-bottom-color: var(--zb-step-done); }
.zb-progress-step.is-done .zb-progress-num { background: var(--zb-step-done); border-color: var(--zb-step-done); color: #FFFFFF; }
.zb-progress-step.is-link { cursor: pointer; }
.zb-progress-step.is-link:hover .zb-progress-label { text-decoration: underline; }

.zb-step { animation: zb-in .3s ease-out; }
@keyframes zb-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.zb-h { display: block; font-family: 'Aero', sans-serif; font-size: 36px; font-weight: 400; line-height: 1.1; margin: 0 0 24px; color: var(--zb-text); }
.zb-hint { color: var(--zb-muted); margin: -8px 0 24px; }

.zb-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.zb-choices.has-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zb-choices.has-1 { grid-template-columns: minmax(0, 560px); }
.zb-choice {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
	padding: 32px 88px 32px 32px; border: 3px solid transparent; border-radius: 0;
	background-color: #F4F4F4; text-align: left;
	transition: border-color .2s, background-color .2s, transform .2s;
}
.zb-choice:hover { border-color: var(--zb-accent); }
.zb-choice-title { font-family: 'Saira', sans-serif; font-size: 26px; font-weight: 600; font-style: italic; line-height: 1.15; color: var(--zb-text); }
.zb-choice-text { color: #3A3A3A; font-size: 17px; line-height: 1.45; }
.zb-choice-arrow {
	--zb-size: 48px;
	position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center;
	width: var(--zb-size); height: var(--zb-size); border-radius: 50%; background-color: var(--zb-accent); color: #FFFFFF;
	transition: transform .2s;
}
.zb-choice:hover .zb-choice-arrow { transform: translate(4px, -50%); }

.zb-details { display: grid; grid-template-columns: var(--zb-sum-width) minmax(0, 1fr); gap: 32px; align-items: start; }
.zb-summary { padding: 28px; border-radius: 0; background-color: #F4F4F4; border-left: 4px solid var(--zb-accent); position: sticky; top: 120px; }
.zb-sum-type { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--zb-accent); margin-bottom: 6px; }
.zb-sum-title { font-weight: 600; font-style: italic; font-size: 24px; line-height: 1.2; margin-bottom: 6px; }
.zb-sum-level { display: inline-block; margin: 2px 0 12px; padding: 2px 10px; border-radius: 100px; background: var(--ev-bg, #202020); color: var(--ev-fg, #FFFFFF); font-size: 13px; font-weight: 600; line-height: 1.5; }
.zb-sum-date { font-size: 18px; font-weight: 700; margin-top: 4px; }
.zb-sum-time { font-size: 16px; }
.zb-sum-coach { display: flex; align-items: center; gap: 10px; font-weight: 600; font-style: italic; font-size: 17px; }
.zb-sum-av { --zb-av: 44px; --zb-av-ring: #E5E5E5; }
.zb-sum-av .zb-av-ini { font-size: 14px; }
/* Trainer Pill: Abstand oben, unten und links gleich, important weil Elementor Widget Abstände sonst gewinnen */
.zb .zb-chip.zb-chip-coach { padding: 3px 18px 3px 3px !important; }
.zb-chip-av { --zb-av: 26px; --zb-av-ring: transparent; }
.zb-chip-av .zb-av-ini { font-size: 11px; }
.zb-sum-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--zb-line); }
.zb-sum-price .zb-sum-label { margin: 0; }
.zb-sum-price-val { font-size: 24px; font-weight: 600; font-style: italic; }
.zb-sum-label { margin: 20px 0 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--zb-muted); }
.zb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.zb-sum-note { margin: 16px 0 0; font-size: 14px; color: var(--zb-muted); }

/* Formular Check (nur Redakteure) */
.zb-check { margin: 0 0 24px; border: 2px solid #D9D9D9; border-left-width: 6px; background: #FFFFFF; color: #202020; font-size: 14px; }
.zb-check.is-bad { border-color: #D63638; }
.zb-check.is-warn { border-color: #DBA617; }
.zb-check.is-ok { border-color: #00873E; }
.zb-check summary { cursor: pointer; padding: 10px 14px; list-style: revert; }
.zb-check-note { float: right; color: #7A7A7A; font-size: 12px; }
.zb-check-body { padding: 0 14px 14px; overflow-x: auto; }
.zb-check-body p { color: #555; margin: 0 0 10px; }
.zb-check-table { width: 100%; border-collapse: collapse; }
.zb-check-table th, .zb-check-table td { padding: 6px 8px; border-bottom: 1px solid #EEE; text-align: left; vertical-align: top; }
.zb-check-table th small { display: block; font-weight: 400; color: #7A7A7A; }
.zb-check-table td:not(:first-child), .zb-check-table th:not(:first-child) { text-align: center; }
.zb-check-table code { font-size: 12px; background: #F4F4F4; padding: 1px 4px; }
.zb-check-table em { color: #D63638; font-style: normal; font-size: 12px; }
.zb-c-ok { color: #00873E; font-weight: 700; }
.zb-c-bad { color: #FFFFFF; background: #D63638; font-weight: 700; }
.zb-c-warn { color: #202020; background: #FBE7A1; font-weight: 700; }
.zb-c-opt, .zb-c-na { color: #AAAAAA; }
.zb-chk-bad, .zb-chk-ok { position: relative; }
.elementor-editor-active .zb-chk-bad, .zb-form-mount .zb-chk-bad { outline: 3px dashed #D63638; outline-offset: 6px; }
.elementor-editor-active .zb-chk-bad::before, .elementor-editor-active .zb-chk-ok::before {
	content: attr(data-zb-check); display: block; margin-bottom: 10px; padding: 6px 10px; font-size: 13px; font-weight: 600; color: #FFFFFF; background: #D63638;
}
.elementor-editor-active .zb-chk-ok::before { background: #00873E; }

/* Elementor Formular: erst im Schritt 3 sichtbar */
/* Formulare erst zeigen, wenn das Script sie in den Buchungsablauf gesetzt hat. Nur auf Seiten mit Buchungskalender */
body:has(.zb-mode-booking) :is(.zb-booking-form, .zb-kids-form, .zb-private-form):not(.is-mounted) { display: none; }
html.zb-is-editor :is(.zb-booking-form, .zb-kids-form, .zb-private-form),
body.elementor-editor-active :is(.zb-booking-form, .zb-kids-form, .zb-private-form) { display: block !important; }

.zb-done { text-align: center; max-width: 600px; margin: 0 auto; padding: 24px 0; }
.zb-done-icon {
	--zb-size: 88px;
	display: inline-flex; align-items: center; justify-content: center;
	width: var(--zb-size); height: var(--zb-size); border-radius: 50%; background-color: #00873E; color: #FFFFFF; margin-bottom: 24px;
	animation: zb-pop .4s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes zb-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.zb-done .zb-h { margin-bottom: 12px; }
.zb-done-text { font-size: 18px; margin: 0 0 8px; }
.zb-done-sum { color: var(--zb-muted); font-weight: 600; font-style: italic; margin: 0; }

/* ---------------- Liste (Handy und Heute Ansicht) ---------------- */
.zb-list { display: flex; flex-direction: column; gap: 8px; }
.zb-mobile .zb-list { min-height: 200px; }
.zb-list-day { font-weight: 600; font-style: italic; margin-bottom: 4px; }
.zb-list .zb-ev {
	width: 100%; min-height: 64px; padding: 14px 16px;
	display: grid; grid-template-columns: var(--zb-list-time) minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
}
.zb-list .zb-ev-time { font-size: 15px; opacity: 1; white-space: normal; align-self: center; }
.zb-list .zb-ev-main { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; align-self: stretch; }
.zb-list .zb-ev-title { font-size: 17px; }
.zb-list .zb-ev-aside { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.zb-list .zb-ev-av { --zb-av: 40px; }
.zb-list .zb-badge { margin: 0; font-size: 14px; padding: 4px 10px; }
.zb-list .zb-ev-closed { grid-template-columns: 1fr; text-align: center; }
.zb-list .zb-ev.is-dim, .zb-list .zb-ev.is-ft { opacity: .6; }
.zb-list .zb-ev.is-past { opacity: .4; }

/* ---------------- Heute (Startseite) ---------------- */
.zb-today-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 16px; }
.zb-today-title { font-family: 'Aero', sans-serif; font-size: 32px; line-height: 1.1; }
.zb-today-date { font-weight: 600; font-style: italic; font-size: 18px; }
.zb-mode-today .zb-empty { padding: 16px 0; }

/* ---------------- Tablet und Handy: Tagesansicht ---------------- */
.zb-tabs { display: none; }

@media (max-width: 1024px) {
	.zb-choices.has-3 { grid-template-columns: 100%; }
	.zb-toolbar { flex-direction: column-reverse; align-items: stretch; }
	.zb-nav { justify-content: space-between; }
	.zb-nav .zb-btn-today { flex: 1; }
	.zb-week-label { text-align: center; }
	.zb-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
	.zb-filters::-webkit-scrollbar { display: none; }
	.zb-filters .zb-chip { flex: 0 0 auto; }

	.zb-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
	.zb-tab {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
		padding: 10px 2px; border: 2px solid #D9D9D9; border-radius: 0; background-color: transparent; color: var(--zb-text);
		transition: background-color .2s, color .2s, border-color .2s;
	}
	.zb-tab-d { font-weight: 600; font-style: italic; font-size: 14px; line-height: 1.2; }
	.zb-tab-n { font-family: 'Aero', sans-serif; font-size: 22px; line-height: 1; }
	.zb-tab.is-active { background-color: #202020; border-color: #202020; color: #FFFFFF; }
	.zb .zb-tab.is-today { background-color: var(--zb-accent); border-color: var(--zb-accent); color: #FFFFFF; }
	.zb-tab.is-empty:not(.is-active) { opacity: .4; }


	.zb-details { grid-template-columns: 100%; gap: 24px; }
	.zb-summary { position: static; }
	.zb-h { font-size: 30px; }
}

@media (max-width: 767px) {
	.zb-progress { margin-bottom: 28px; gap: 6px; }
	.zb-progress-step { flex-direction: column; gap: 6px; font-size: 11px; text-align: center; }
	.zb-choices { grid-template-columns: 100%; }
	.zb-choice { padding: 24px 76px 24px 20px; }
	.zb-choice-title { font-size: 24px; }
	.zb-h { font-size: 26px; margin-bottom: 18px; }
}

.zb-check-desc { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: #7A7A7A; }

/* Vergangenes nie kräftiger als ausgegrautes Zukünftiges */
.zb-ev.is-dim.is-past { opacity: var(--zb-dim); }
.zb-list .zb-ev.is-dim.is-past { opacity: .4; }
/* Überschrift bekommt beim Schrittwechsel den Fokus, ohne Rahmen */
.zb .zb-h:focus { outline: none; }
/* Sehr schmale Handys: Silbentrennung statt Wortbruch, schmalere Zeitspalte */
.zb-list .zb-ev-title { word-break: normal; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 360px) {
	.zb-list .zb-ev { grid-template-columns: minmax(64px, 76px) minmax(0, 1fr) auto; column-gap: 10px; padding: 12px; }
	.zb-list .zb-ev-time { font-size: 14px; }
}

/* Kursiver Titel: Platz rechts, sonst schneidet overflow den letzten Buchstaben ab (NoGi, Boxen) */
.zb-ev-title { padding-right: .2em; }

/* ---------------- Skeleton beim Laden ---------------- */
.zb, .zb-sk-wrap { --zb-sk: #EEEEEE; --zb-sk-hi: #F7F7F7; }
.zb-sk-bar, .zb-sk-item, .zb-sk-block, .zb-sk-tab, .zb-sk-card, .zb-sk-round, .zb-sk-pill, .zb-sk-dh i, .zb-sk-dh b, .zb .zb-week-label.is-sk {
	background: linear-gradient(90deg, var(--zb-sk) 0%, var(--zb-sk-hi) 40%, var(--zb-sk) 80%); background-size: 200% 100%;
	animation: zb-sk 1.4s ease-in-out infinite;
}
@keyframes zb-sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .zb-sk-wrap *, .zb .zb-week-label.is-sk { animation: none !important; } }
.zb-sk-bar { display: block; height: 18px; width: 100%; }
.zb-sk-w40 { width: 40%; } .zb-sk-w25 { width: 25%; }
.zb-sk-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.zb-sk-round { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 48px; }
.zb-sk-pill { width: 116px; height: 44px; border-radius: 999px; }
.zb-sk-right { margin-left: auto; height: 22px; }
.zb .zb-week-label.is-sk { display: inline-block; min-width: 220px; height: 22px; color: transparent; }
@media (max-width: 1024px) { .zb .zb-week-label.is-sk { align-self: center; } }
.zb-sk-grid { display: grid; grid-template-columns: var(--zb-gutter) repeat(7, minmax(0, 1fr)); grid-template-rows: 84px 520px; column-gap: 0; border-bottom: 1px solid var(--zb-line); }
.zb-sk-dh { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-left: 1px solid var(--zb-line); border-bottom: 1px solid var(--zb-line); }
.zb-sk-dh i { display: block; width: 26px; height: 12px; } .zb-sk-dh b { display: block; width: 34px; height: 34px; border-radius: 50%; }
.zb-sk-col { position: relative; border-left: 1px solid var(--zb-line); background: #FAFAFA; }
.zb-sk-block { position: absolute; left: 4px; right: 4px; }
.zb-sk-list { display: none; flex-direction: column; gap: 8px; }
.zb-sk-list.is-on { display: flex; }
.zb-sk-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.zb-sk-head .zb-sk-bar { height: 26px; }
.zb-sk-tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 10px; }
.zb-sk-tab { display: block; height: 58px; }
.zb-sk-item { display: block; height: 68px; }
.zb-sk-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 48px; }
.zb-sk-progress .zb-sk-bar { height: 34px; }
.zb-sk-title { height: 36px; margin-bottom: 28px; }
.zb-sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.zb-sk-card { display: block; height: 160px; }
.zb.is-loading .zb-cal.has-sk { opacity: 1; }
/* Server Platzhalter: Handy zeigt Liste statt Raster */
.zb-mode-today .zb-sk-list { display: flex; }
@media (max-width: 1024px) {
	.zb-sk-grid:not(.is-on) { display: none; }
	.zb-mode-plan .zb-sk-list { display: flex; }
	.zb-sk-cards { grid-template-columns: 100%; }
	.zb-sk-card { height: 110px; }
	.zb-sk-toolbar .zb-sk-right { display: none; }
}

/* ---------------- Freund einladen ---------------- */
.zb-invite { margin: 32px auto 0; max-width: 560px; padding: 24px; background: var(--zb-light, #EEEEEE); text-align: center; }
.zb-invite-title { font-family: 'Saira', sans-serif; font-size: 20px; font-weight: 600; font-style: italic; margin-bottom: 6px; }
.zb-invite-text { margin: 0 0 16px; }
.zb-invite-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.zb .zb-btn.zb-invite-share { background: var(--zb-accent); color: #FFFFFF; }
.zb-note-invite { margin: 0 0 14px; padding: 10px 14px; background: #E8F4EC; color: #00873E; font-weight: 600; }

/* ---------------- Schritt 4: Du bist dabei + Ticket ---------------- */
.zb { --zb-tk-stub: #E10600; --zb-tk-stub-c: #FFFFFF; --zb-tk-bg: #EEEEEE; --zb-tk-c: #202020; --zb-tk-cut: #FFFFFF; --zb-done-bg: #E10600; }
.zb .zb-done { max-width: none; padding: 8px 0 0; display: flex; flex-direction: column; align-items: center; }
.zb .zb-done-icon { --zb-size: var(--zb-done-size, 56px); background-color: var(--zb-done-bg); margin-bottom: 18px; }
.zb .zb-done-icon svg { width: 52%; height: 52%; }
.zb .zb-done .zb-h { margin-bottom: 14px; }
.zb .zb-done-text { white-space: pre-line; line-height: 1.5; margin: 0; }
.zb-done-ticket { width: 100%; display: flex; justify-content: center; margin-top: 32px; }
.zb-ticket { display: flex; width: 100%; max-width: 800px; min-height: 120px; text-align: left; color: var(--zb-tk-c); }
.zb-tk-date { position: relative; flex: 0 0 136px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--zb-tk-stub); color: var(--zb-tk-stub-c); }
.zb-tk-date::before, .zb-tk-date::after { content: ''; position: absolute; right: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--zb-tk-cut); z-index: 1; }
.zb-tk-date::before { top: -6px; } .zb-tk-date::after { bottom: -6px; }
.zb-tk-day { font-family: 'Aero', 'Saira', sans-serif; font-size: 44px; line-height: 1; }
.zb-tk-dm { display: flex; flex-direction: column; line-height: 1; }
.zb-tk-wd { font-size: 12px; font-weight: 600; font-style: italic; text-transform: uppercase; letter-spacing: 1.5px; }
.zb-tk-mon { font-family: 'Aero', 'Saira', sans-serif; font-size: 18px; letter-spacing: 1px; }
.zb-tk-body {
	flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 24px; padding: 18px 26px 18px 28px;
	background: var(--zb-tk-bg); border-left: 2px dashed #9A9C9E;
	/* geriffelter Rand rechts */
	-webkit-mask: linear-gradient(#000 0 0) left / calc(100% - 6px) 100% no-repeat, conic-gradient(from -135deg at right, #0000, #000 1deg 89deg, #0000 90deg) right / 6px 8px repeat-y;
	mask: linear-gradient(#000 0 0) left / calc(100% - 6px) 100% no-repeat, conic-gradient(from -135deg at right, #0000, #000 1deg 89deg, #0000 90deg) right / 6px 8px repeat-y;
}
.zb-tk-main { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.zb-tk-kicker { font-size: 10px; font-weight: 600; font-style: italic; text-transform: uppercase; letter-spacing: 1.5px; color: var(--zb-accent); line-height: 1; }
.zb-tk-title { font-family: 'Aero', 'Saira', sans-serif; font-size: 30px; line-height: 1; }
.zb-tk-badge { font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 100px; background: #202020; color: #FFFFFF; }
.zb-tk-sep { flex: 0 0 1px; align-self: stretch; margin: 8px 0; background: #C9CACC; }
.zb-tk-info { display: flex; flex-direction: column; gap: 6px; font-size: 14px; white-space: nowrap; }
.zb-tk-row { display: flex; align-items: center; gap: 8px; }
.zb-tk-row b { font-weight: 600; }
.zb-tk-row > span:first-child { display: inline-flex; }
.zb-tk-coach { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.zb-tk-coach b { font-weight: 600; }
.zb-tk-av { --zb-av: 32px; --zb-av-ring: #202020; }
/* Tablet und schmale Spalten: kompakter, damit Kurs, Zeit und Trainer nebeneinander Platz haben */
@media (min-width: 768px) {
	.zb-done-ticket { container-type: inline-size; }
	@container (max-width: 799px) {
		.zb-tk-date { flex-basis: 124px; }
		.zb-tk-day { font-size: 42px; }
		.zb-tk-body { gap: 18px; padding: 18px 22px; }
		.zb-tk-title { font-size: 26px; }
		.zb-tk-info, .zb-tk-coach { font-size: 13px; }
		.zb-tk-av { --zb-av: 30px; }
	}
	@container (max-width: 680px) {
		.zb-tk-body { flex-wrap: wrap; row-gap: 12px; }
		.zb-tk-info, .zb-tk-coach { white-space: normal; }
		.zb-tk-sep2 { display: none; }
	}
}
@media (max-width: 767px) {
	.zb-ticket { flex-direction: column; }
	.zb-tk-date { flex: 0 0 auto; justify-content: flex-start; padding: 16px 22px; }
	.zb-tk-date::before, .zb-tk-date::after { top: auto; bottom: -6px; }
	.zb-tk-date::before { left: -6px; right: auto; }
	.zb-tk-body {
		flex-direction: column; align-items: stretch; gap: 16px; padding: 22px 22px 28px;
		border-left: 0; border-top: 2px dashed #9A9C9E;
		/* geriffelter Rand unten */
		-webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 8px 6px repeat-x;
		mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 8px 6px repeat-x;
	}
	.zb-tk-sep { flex: 0 0 1px; margin: 0; height: 1px; align-self: stretch; }
	.zb-tk-info { white-space: normal; }
}
/* Eigener Elementor Container "Freund einladen": vor dem Einsetzen verstecken, im Editor zeigen */
body:has(.zb-mode-booking) :is(.zb-invite-box, #zb-invite-box):not(.is-mounted) { display: none; }
html.zb-is-editor :is(.zb-invite-box, #zb-invite-box), body.elementor-editor-active :is(.zb-invite-box, #zb-invite-box) { display: flex !important; }
.zb-done .zb-invite-box { margin-top: 44px; width: 100%; text-align: left; }
.zb-done .zb-invite { margin-top: 44px; }

/* Versteckte Felder bleiben versteckt, auch wenn Elementor dort eine Fehlermeldung anhängt (sonst verschiebt sich das Formular) */
:is(.zb-booking-form, .zb-kids-form, .zb-private-form) .elementor-field-type-hidden { display: none !important; }
.zb .zb-fail { margin: 0 0 16px; }

.zb-testmode { order: -1; margin: 0 0 16px; padding: 8px 14px; background: #FFF4E5; border-left: 4px solid #FF9800; font-size: 14px; }
