/* IBZ Seminare – Komponenten. Farben/Schriften kommen aus dem Theme (theme.json), mit Fallbacks. */
:root {
	--ibz-navy: var(--wp--preset--color--navy, #1B2838);
	--ibz-blue: var(--wp--preset--color--blue, #2E4560);
	--ibz-slate: var(--wp--preset--color--slate, #465F7B);
	--ibz-red: var(--wp--preset--color--red, #C11718);
	--ibz-mist: var(--wp--preset--color--mist, #F2F4F7);
	--ibz-line: var(--wp--preset--color--line, #D9DEE5);
	--ibz-muted: var(--wp--preset--color--muted, #5A6778);
	--ibz-ok: #1E6B43;
	--ibz-few: #B4540A;
	--ibz-hd: var(--wp--preset--font-family--heading, 'Barlow Semi Condensed', sans-serif);
}

.ibz-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.ibz-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.ibz-notice { padding: 20px 24px; background: var(--ibz-mist); border-left: 3px solid var(--ibz-slate); margin: 0; }
.ibz-link { font-family: var(--ibz-hd); font-weight: 600; font-size: 18px; text-decoration: none; color: var(--ibz-blue); }
.ibz-link:hover { color: var(--ibz-red); }
.ibz-admin-note { font-size: 13px; background: #fff7d6; color: #5a4800; padding: 8px 12px; margin: 0; }

/* Buttons */
.ibz-btn { font-family: var(--ibz-hd); font-weight: 600; font-size: 17px; letter-spacing: .04em; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; cursor: pointer; box-sizing: border-box; text-transform: uppercase; }
.ibz-btn--red { background: var(--ibz-red); color: #fff; }
.ibz-btn--red:hover { background: #9E1213; color: #fff; }
.ibz-btn--dark { background: var(--ibz-navy); color: #fff; }
.ibz-btn--dark:hover { background: var(--ibz-blue); color: #fff; }
.ibz-btn--block { display: flex; width: 100%; min-height: 56px; font-size: 19px; }
.ibz-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Status */
.ibz-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ibz-muted); }
.ibz-status__dot { width: 8px; height: 8px; background: currentColor; display: inline-block; flex: none; }
.ibz-status--ok { color: var(--ibz-ok); }
.ibz-status--few { color: var(--ibz-few); }
.ibz-status--full { color: var(--ibz-red); }

/* Karten */
.ibz-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ibz-card { text-decoration: none; color: var(--ibz-navy); border: 1px solid var(--ibz-line); display: flex; flex-direction: column; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ibz-card:hover { border-color: var(--ibz-slate); box-shadow: 0 6px 20px rgba(27,40,56,.08); color: var(--ibz-navy); }
.ibz-card__img { aspect-ratio: 16/9; background: #E9EDF2; overflow: hidden; }
.ibz-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ibz-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.ibz-card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ibz-muted); }
.ibz-card__title { font-family: var(--ibz-hd); font-size: 22px; line-height: 1.2; font-weight: 700; margin: 0; flex-grow: 1; }
.ibz-card:hover .ibz-card__title { color: var(--ibz-red); }
.ibz-card__date { font-size: 15px; }

/* Online-Zeilen */
.ibz-onlines { display: flex; flex-direction: column; border-top: 1px solid #3A4B60; }
.ibz-online { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid #3A4B60; text-decoration: none; color: #fff; }
.ibz-online:hover { color: #fff; }
.ibz-online:hover .ibz-online__title { text-decoration: underline; text-underline-offset: 4px; }
.ibz-online__date { display: flex; flex-direction: column; }
.ibz-online__day { font-family: var(--ibz-hd); font-size: 24px; font-weight: 700; line-height: 1.1; }
.ibz-online__time, .ibz-online__meta { font-size: 14px; color: #C9D2DD; }
.ibz-online__title { font-family: var(--ibz-hd); font-size: 20px; font-weight: 700; line-height: 1.2; }
.ibz-online__badge { font-family: var(--ibz-hd); font-size: 14px; font-weight: 600; letter-spacing: .08em; border: 1px solid #8FA3B8; padding: 4px 10px; }
.ibz-online-empty { color: #C9D2DD; border-top: 1px solid #3A4B60; padding-top: 20px; }

/* Suche (Hero) */
.ibz-search { background: #fff; padding: 12px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; color: var(--ibz-navy); }
.ibz-search__f { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; color: var(--ibz-muted); font-size: 13px; font-weight: 600; }
.ibz-search__f input, .ibz-search__f select { border: 0; border-bottom: 1px solid var(--ibz-line); font: inherit; font-size: 16px; font-weight: 400; color: var(--ibz-navy); padding: 6px 0; background: #fff; outline: none; border-radius: 0; }
.ibz-search__f input:focus, .ibz-search__f select:focus { border-bottom-color: var(--ibz-red); }
.ibz-search .ibz-btn { min-height: 56px; }

/* Filter + Liste */
.ibz-filter { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) auto auto; gap: 16px; align-items: end; background: #fff; border: 1px solid var(--ibz-line); padding: 20px; }
.ibz-filter__field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ibz-muted); letter-spacing: .02em; }
.ibz-filter__field input, .ibz-filter__field select { font: inherit; font-size: 16px; font-weight: 400; color: var(--ibz-navy); border: 1px solid var(--ibz-line); padding: 0 10px; min-height: 44px; background: #fff; border-radius: 0; box-sizing: border-box; width: 100%; }
.ibz-filter__check { display: flex; gap: 8px; align-items: center; font-size: 15px; min-height: 44px; white-space: nowrap; }
.ibz-filter__check input { width: 18px; height: 18px; }
.ibz-results-head { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 8px; color: var(--ibz-muted); font-size: 15px; }
.ibz-month { font-family: var(--ibz-hd); font-size: 15px !important; font-weight: 700; letter-spacing: .14em; color: var(--ibz-red); margin: 36px 0 0 !important; padding-bottom: 10px; border-bottom: 2px solid var(--ibz-navy); }
.ibz-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 200px; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--ibz-line); text-decoration: none; color: var(--ibz-navy); }
.ibz-row:hover { background: #F7F8FA; color: var(--ibz-navy); }
.ibz-row:hover .ibz-row__title { color: var(--ibz-red); }
.ibz-row__date { display: flex; flex-direction: column; padding-left: 4px; }
.ibz-row__day { font-family: var(--ibz-hd); font-size: 40px; font-weight: 700; line-height: 1; }
.ibz-row__span { font-size: 14px; color: var(--ibz-muted); margin-top: 4px; }
.ibz-row__tags { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--ibz-muted); align-items: center; }
.ibz-tag { font-family: var(--ibz-hd); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ibz-slate); }
.ibz-tag--online, .ibz-tag--tour { background: var(--ibz-navy); color: #fff; padding: 1px 8px; }
.ibz-row__title { font-family: var(--ibz-hd); font-size: 24px !important; line-height: 1.2; font-weight: 700; margin: 6px 0 4px !important; }
.ibz-row__meta { font-size: 15px; color: var(--ibz-muted); }
.ibz-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.ibz-row__more { font-family: var(--ibz-hd); font-weight: 600; color: var(--ibz-blue); }

/* Detail */
.ibz-detail__head { background: var(--ibz-blue); color: #fff; padding: 40px 0 56px; }
.ibz-crumbs { font-size: 14px; color: #C9D2DD; margin-bottom: 28px; }
.ibz-crumbs a { color: #fff; text-decoration: none; }
.ibz-crumbs a:hover { text-decoration: underline; color: #fff; }
.ibz-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ibz-chip { font-family: var(--ibz-hd); font-size: 14px; font-weight: 600; letter-spacing: .1em; border: 1px solid #8FA3B8; color: #fff; padding: 4px 10px; text-decoration: none; }
a.ibz-chip:hover { border-color: #fff; color: #fff; }
.ibz-chip--red { background: var(--ibz-red); border-color: var(--ibz-red); }
.ibz-detail__title { font-family: var(--ibz-hd); font-size: clamp(34px, 4.4vw, 54px) !important; line-height: 1.06 !important; font-weight: 700; margin: 0 0 18px !important; max-width: 980px; color: #fff; }
.ibz-detail__lead { font-size: 20px; line-height: 1.5; color: #E4E9EF; max-width: 860px; margin: 0; }
.ibz-facts { border-bottom: 1px solid var(--ibz-line); background: #fff; }
.ibz-facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ibz-facts__grid > div { padding: 26px 24px 26px 0; }
.ibz-facts__grid > div + div { padding-left: 24px; border-left: 1px solid var(--ibz-line); }
.ibz-facts__k { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--ibz-muted); }
.ibz-facts__v { font-family: var(--ibz-hd); font-size: 24px; font-weight: 700; margin-top: 4px; }
.ibz-facts__v--ok { color: var(--ibz-ok); }
.ibz-facts__v--few { color: var(--ibz-few); }
.ibz-facts__v--full { color: var(--ibz-red); }
.ibz-facts__s { font-size: 14px; color: var(--ibz-muted); }
.ibz-detail__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; padding-top: 56px; padding-bottom: 96px; align-items: start; }
.ibz-detail__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; margin-bottom: 40px; }
.ibz-detail__main h2 { font-family: var(--ibz-hd); font-size: 30px !important; font-weight: 700; margin: 40px 0 14px !important; }
.ibz-detail__main h2:first-of-type { margin-top: 0 !important; }
.ibz-prose { font-size: 18px; line-height: 1.65; color: #26323F; }
.ibz-prose p { margin: 0 0 16px; }
.ibz-prose ul { padding-left: 0; list-style: none; }
.ibz-prose li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.ibz-prose li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; background: var(--ibz-red); }
.ibz-prose a { color: var(--ibz-blue); }
.ibz-speakers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.ibz-speakers li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.ibz-speakers__ini { width: 44px; height: 44px; background: var(--ibz-mist); color: var(--ibz-slate); display: inline-flex; align-items: center; justify-content: center; font-family: var(--ibz-hd); font-weight: 700; font-size: 20px; flex: none; }
.ibz-incl { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.ibz-incl li { position: relative; padding-left: 34px; }
.ibz-incl li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 8px; border-left: 2px solid var(--ibz-slate); border-bottom: 2px solid var(--ibz-slate); transform: rotate(-45deg); }
.ibz-storno { margin-top: 48px; background: var(--ibz-mist); padding: 24px 28px; font-size: 16px; }
.ibz-storno h3 { font-family: var(--ibz-hd); font-size: 20px !important; margin: 0 0 8px !important; }
.ibz-storno p { margin: 0 0 8px; }
.ibz-detail__side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.ibz-pricebox { border: 1px solid var(--ibz-line); background: #fff; }
.ibz-pricebox__head { background: var(--ibz-navy); color: #fff; padding: 20px 24px; }
.ibz-pricebox__title { font-family: var(--ibz-hd); font-size: 24px; font-weight: 700; }
.ibz-pricebox__sub { font-size: 14px; color: #C9D2DD; }
.ibz-pricebox__list { list-style: none; margin: 0; padding: 8px 24px; }
.ibz-pricebox__list li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--ibz-line); }
.ibz-pricebox__list li:last-child { border-bottom: 0; }
.ibz-pricebox__list strong { font-family: var(--ibz-hd); font-size: 24px; white-space: nowrap; }
.ibz-pricebox__text { padding: 16px 24px; font-size: 16px; }
.ibz-pricebox__cta { padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.ibz-pricebox__hint { font-size: 14px; color: var(--ibz-muted); text-align: center; }
.ibz-pricebox__state { padding: 12px 0; }
.ibz-pricebox__phone { font-size: 15px; text-align: center; color: var(--ibz-blue); }
.ibz-infobox { background: var(--ibz-mist); padding: 16px 20px; font-size: 15px; color: #33404F; border-left: 3px solid var(--ibz-slate); }
.ibz-coop { border: 1px solid var(--ibz-line); padding: 20px 24px; }
.ibz-coop__k { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ibz-muted); margin-bottom: 12px; }
.ibz-coop img { max-width: 180px; max-height: 80px; display: block; }
.ibz-coop__name { font-family: var(--ibz-hd); font-weight: 700; font-size: 20px; }
.ibz-detail-missing { max-width: 760px; margin: 80px auto; padding: 0 32px; }
.ibz-mobilebar { display: none; }

/* Sprachumschalter */
.ibz-langs { display: inline-flex; gap: 10px; }
.ibz-lang { color: #C9D2DD; text-decoration: none; }
.ibz-lang:hover { color: #fff; }
.ibz-lang.is-current { color: #fff; font-weight: 700; }

/* Newsletter */
.ibz-nl { display: flex; flex-direction: column; gap: 16px; color: #E4E9EF; }
.ibz-nl__email { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.ibz-nl__email input { font: inherit; font-size: 16px; font-weight: 400; padding: 10px 12px; border: 0; min-height: 48px; box-sizing: border-box; color: var(--ibz-navy); border-radius: 0; }
.ibz-nl__set { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.ibz-nl__set legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.ibz-nl__set label { display: flex; gap: 8px; align-items: center; }
.ibz-nl input[type=radio], .ibz-nl input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ibz-red); }
.ibz-nl__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #C9D2DD; }
.ibz-nl__consent input { flex: none; margin-top: 2px; }
.ibz-nl .ibz-btn { align-self: flex-start; }

@media (max-width: 1100px) {
	.ibz-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ibz-filter__field--q { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
	.ibz-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ibz-search { grid-template-columns: 1fr 1fr; }
	.ibz-search__f--q { grid-column: 1 / -1; }
	.ibz-detail__layout { grid-template-columns: 1fr; gap: 40px; }
	.ibz-detail__side { position: static; }
	.ibz-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ibz-facts__grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
	.ibz-facts__grid > div:nth-child(n+3) { border-top: 1px solid var(--ibz-line); }
}
@media (max-width: 640px) {
	.ibz-wrap { padding: 0 16px; }
	.ibz-cards, .ibz-search, .ibz-filter, .ibz-speakers, .ibz-incl { grid-template-columns: 1fr; }
	.ibz-row { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
	.ibz-row__day { font-size: 30px; }
	.ibz-row__span { display: none; }
	.ibz-row__side { grid-column: 2; align-items: flex-start; flex-direction: row; justify-content: space-between; text-align: left; }
	.ibz-row__title { font-size: 20px !important; }
	.ibz-online { grid-template-columns: 72px minmax(0, 1fr); }
	.ibz-online__badge { display: none; }
	.ibz-facts__v { font-size: 20px; }
	.ibz-facts__grid > div, .ibz-facts__grid > div + div { padding: 18px 12px 18px 0; }
	.ibz-facts__grid > div:nth-child(even) { padding-left: 12px; }
	.ibz-mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--ibz-line); padding: 10px 16px; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -4px 16px rgba(27,40,56,.08); font-weight: 600; }
	body:has(.ibz-mobilebar) { padding-bottom: 72px; }
}
