/* NHZ Mobile Rezeption – Gestaltung
 * Farben: Schieferpetrol (Rahmen), Kalk (Grund), Messing (Buchungsbestätigung, Preise), Ziegelrot (Storno).
 * Schrift: Systemschrift – keine externen Fonts (DSGVO, Ladezeit).
 */
.ibr {
	--ibr-ink: #1F3A3D;
	--ibr-ink-soft: #4B6164;
	--ibr-bg: #F4F6F5;
	--ibr-surface: #FFFFFF;
	--ibr-line: #D5DDDA;
	--ibr-brass: #9C6F1E;
	--ibr-brass-bg: #F6EEDC;
	--ibr-red: #A63A2B;
	--ibr-ok: #2F6B4A;
	--ibr-radius: 10px;
	box-sizing: border-box;
	max-width: 560px;
	margin: 0 auto;
	padding: 0 0 24px;
	color: var(--ibr-ink);
	background: var(--ibr-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.45;
	-webkit-text-size-adjust: 100%;
}
.ibr *, .ibr *::before, .ibr *::after { box-sizing: border-box; }
.ibr.has-tabs { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.ibr p { margin: 0 0 .6em; }
.ibr a { color: inherit; }

@media (prefers-color-scheme: dark) {
	.ibr {
		--ibr-ink: #E6EEEC;
		--ibr-ink-soft: #A9BAB7;
		--ibr-bg: #121A1B;
		--ibr-surface: #1B2627;
		--ibr-line: #2E3D3F;
		--ibr-brass: #D9AE5F;
		--ibr-brass-bg: #2E2718;
		--ibr-red: #E07A69;
		--ibr-ok: #7CC39B;
	}
}

/* Kopf */
.ibr-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 16px 16px 12px;
	border-bottom: 1px solid var(--ibr-line);
}
.ibr-top__hotel { font-weight: 700; font-size: 17px; }
.ibr-top__user { font-size: 14px; color: var(--ibr-ink-soft); white-space: nowrap; }
.ibr-main { padding: 16px; }

/* Schrittanzeige – echte Abfolge, daher als Liste */
.ibr-steps {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	counter-reset: s;
}
.ibr-steps li {
	flex: 1;
	counter-increment: s;
	font-size: 13px;
	color: var(--ibr-ink-soft);
	padding-top: 8px;
	border-top: 3px solid var(--ibr-line);
}
.ibr-steps li::before { content: counter(s) " "; font-weight: 700; }
.ibr-steps li.is-done { border-top-color: var(--ibr-ink-soft); }
.ibr-steps li.is-current { border-top-color: var(--ibr-ink); color: var(--ibr-ink); font-weight: 600; }

/* Aufenthaltsleiste: das prägende Element */
.ibr-stay {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
}
.ibr-stay__day {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 76px;
	padding: 8px 6px 10px;
	border: 1.5px solid var(--ibr-ink);
	border-radius: 38px 38px var(--ibr-radius) var(--ibr-radius);
	background: var(--ibr-surface);
}
.ibr-stay__wd { font-size: 13px; color: var(--ibr-ink-soft); }
.ibr-stay__num { font-size: 34px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ibr-stay__mon { font-size: 14px; }
.ibr-stay__mid { flex: 1; display: flex; align-items: center; gap: 8px; }
.ibr-stay__line { flex: 1; height: 0; border-top: 1.5px dashed var(--ibr-ink-soft); }
.ibr-stay__n { font-size: 15px; font-weight: 600; white-space: nowrap; }
.ibr-stay--small .ibr-stay__day { min-width: 60px; padding: 6px 4px 8px; }
.ibr-stay--small .ibr-stay__num { font-size: 24px; }

/* Karten und Felder */
.ibr-card {
	background: var(--ibr-surface);
	border: 1px solid var(--ibr-line);
	border-radius: var(--ibr-radius);
	padding: 16px;
	margin-bottom: 16px;
}
.ibr-field { display: block; margin: 0 0 14px; }
.ibr-field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ibr input[type="text"], .ibr input[type="email"], .ibr input[type="tel"], .ibr input[type="date"],
.ibr input[type="search"], .ibr input[type="password"], .ibr select, .ibr textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 12px;
	font: inherit;
	font-size: 16px; /* verhindert iOS-Zoom */
	color: var(--ibr-ink);
	background: var(--ibr-surface);
	border: 1.5px solid var(--ibr-line);
	border-radius: 8px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.ibr select {
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
	background-size: 5px 5px;
	background-repeat: no-repeat;
	padding-right: 36px;
}
.ibr textarea { min-height: 88px; resize: vertical; }
.ibr input:focus, .ibr select:focus, .ibr textarea:focus { outline: none; border-color: var(--ibr-ink); }
.ibr :focus-visible { outline: 3px solid var(--ibr-brass); outline-offset: 2px; }
.ibr-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ibr-grid2--zip { grid-template-columns: 2fr 3fr; }
@media (max-width: 360px) { .ibr-grid2 { grid-template-columns: 1fr; } }

.ibr-stepper { display: flex; align-items: stretch; width: max-content; border: 1.5px solid var(--ibr-line); border-radius: 8px; overflow: hidden; }
.ibr-stepper button {
	width: 52px; min-height: 48px; font-size: 22px; line-height: 1;
	border: 0; background: var(--ibr-surface); color: var(--ibr-ink); cursor: pointer;
}
.ibr-stepper button:disabled { opacity: .35; cursor: default; }
.ibr-stepper output { display: flex; align-items: center; justify-content: center; min-width: 56px; font-size: 20px; font-weight: 700; border-left: 1.5px solid var(--ibr-line); border-right: 1.5px solid var(--ibr-line); }

/* Knöpfe */
.ibr-actions { display: flex; gap: 10px; margin-top: 8px; }
.ibr-actions .ibr-btn { flex: 1; }
.ibr-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 12px 18px;
	font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; text-align: center;
	color: #fff; background: var(--ibr-ink);
	border: 1.5px solid var(--ibr-ink); border-radius: 8px;
	cursor: pointer;
}
.ibr-btn:disabled { opacity: .5; cursor: default; }
.ibr-btn--ghost { color: var(--ibr-ink); background: transparent; }
.ibr-btn--brass { background: var(--ibr-brass); border-color: var(--ibr-brass); }
.ibr-btn--danger { background: var(--ibr-red); border-color: var(--ibr-red); }
@media (prefers-color-scheme: dark) {
	.ibr-btn { color: #121A1B; }
	.ibr-btn--ghost { color: var(--ibr-ink); }
}

/* Listen */
.ibr-list { list-style: none; margin: 0 0 12px; padding: 0; }
.ibr-list li { margin: 0 0 10px; }
.ibr-room, .ibr-res {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 12px;
	width: 100%;
	padding: 14px 16px;
	text-align: left;
	font: inherit;
	color: var(--ibr-ink);
	background: var(--ibr-surface);
	border: 1.5px solid var(--ibr-line);
	border-radius: var(--ibr-radius);
	cursor: pointer;
}
.ibr-room:not(.is-off):active, .ibr-res:not(:disabled):active { border-color: var(--ibr-ink); }
.ibr-room__name, .ibr-res__name { font-weight: 700; font-size: 17px; }
.ibr-room__price { font-weight: 700; font-size: 17px; color: var(--ibr-brass); font-variant-numeric: tabular-nums; }
.ibr-room__meta, .ibr-res__meta { grid-column: 1 / -1; font-size: 14px; color: var(--ibr-ink-soft); }
.ibr-res__nr { font-size: 14px; color: var(--ibr-ink-soft); align-self: center; }
.ibr-room.is-off { cursor: default; background: transparent; border-style: dashed; }
.ibr-room.is-off .ibr-room__name { font-weight: 600; color: var(--ibr-ink-soft); }
.ibr-res:disabled { cursor: default; opacity: .7; }

/* Zusammenfassung */
.ibr-sum { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 16px; padding: 16px; background: var(--ibr-surface); border: 1px solid var(--ibr-line); border-radius: var(--ibr-radius); }
.ibr-sum dt { color: var(--ibr-ink-soft); font-size: 14px; padding-top: 1px; }
.ibr-sum dd { margin: 0; font-weight: 600; word-break: break-word; }
.ibr-sum .ibr-sum__total { padding-top: 10px; border-top: 1px solid var(--ibr-line); font-size: 18px; }
.ibr-sum dd.ibr-sum__total { color: var(--ibr-brass); font-weight: 700; }

/* Bestätigung: Messing-Anhänger wie ein Zimmerschlüssel */
.ibr-done {
	margin: 8px auto 20px;
	padding: 24px 20px 20px;
	max-width: 360px;
	text-align: center;
	background: var(--ibr-brass-bg);
	border: 2px solid var(--ibr-brass);
	border-radius: 140px 140px 18px 18px;
}
.ibr-done__label { font-size: 15px; font-weight: 600; color: var(--ibr-brass); margin-bottom: 2px; }
.ibr-done__nr { font-size: 30px; font-weight: 800; margin-bottom: 12px; font-variant-numeric: tabular-nums; }

.ibr-confirm h3 { margin: 0 0 8px; font-size: 19px; }

/* Hinweise */
.ibr-banner { margin: 12px 16px 0; padding: 10px 14px; font-size: 14px; border-radius: 8px; background: var(--ibr-surface); border: 1px solid var(--ibr-line); }
.ibr-main .ibr-banner { margin: 0 0 14px; }
.ibr-banner--warn { border-color: var(--ibr-brass); background: var(--ibr-brass-bg); }
.ibr-banner--ok { border-color: var(--ibr-ok); color: var(--ibr-ok); font-weight: 600; }
.ibr-error { margin: 0 0 14px; padding: 12px 14px; color: var(--ibr-red); background: var(--ibr-surface); border: 1.5px solid var(--ibr-red); border-radius: 8px; font-weight: 600; }
.ibr-muted { color: var(--ibr-ink-soft); }
.ibr-small { font-size: 14px; }
.ibr-empty { padding: 24px 8px; text-align: center; }
.ibr-loading { padding: 32px 16px; text-align: center; color: var(--ibr-ink-soft); }

/* Untere Leiste */
.ibr-tabs {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 9999;
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
	background: var(--ibr-surface);
	border-top: 1px solid var(--ibr-line);
}
.ibr-tabs__btn {
	flex: 1;
	max-width: 268px;
	min-height: 52px;
	font: inherit; font-size: 16px; font-weight: 600;
	color: var(--ibr-ink-soft);
	background: transparent;
	border: 1.5px solid transparent;
	border-radius: 8px;
	cursor: pointer;
}
.ibr-tabs__btn.is-active { color: var(--ibr-ink); border-color: var(--ibr-ink); }

/* Anmeldung */
.ibr-login { padding: 24px 16px; }
.ibr-login__title { margin: 0 0 16px; font-size: 24px; }
.ibr-login form p { margin: 0 0 14px; }
.ibr-login label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ibr-login .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.ibr-login input[type="submit"] {
	width: 100%; min-height: 52px; font: inherit; font-size: 17px; font-weight: 600;
	color: #fff; background: var(--ibr-ink); border: 0; border-radius: 8px; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	.ibr * { transition: none !important; animation: none !important; }
}

/* PIN-Anmeldung: Tastenfeld wie am Zimmersafe */
.ibr-pin { max-width: 320px; margin: 0 auto; padding: 40px 16px 24px; text-align: center; }
.ibr-pin__hotel { font-weight: 700; font-size: 17px; margin-bottom: 28px !important; }
.ibr-pin__title { margin: 0 0 18px; font-size: 20px; font-weight: 600; color: var(--ibr-ink); }
.ibr-pin__dots { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; }
.ibr-pin__dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ibr-ink); }
.ibr-pin__dot.is-set { background: var(--ibr-ink); }
.ibr-pin__msg { min-height: 1.5em; margin-bottom: 18px !important; color: var(--ibr-red); font-weight: 600; font-size: 15px; }
.ibr-pin__pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; justify-items: center; }
.ibr-pin__key {
	width: 76px; height: 76px;
	font: inherit; font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums;
	color: var(--ibr-ink); background: var(--ibr-surface);
	border: 1.5px solid var(--ibr-line); border-radius: 50%;
	cursor: pointer; touch-action: manipulation;
}
.ibr-pin__key:active { background: var(--ibr-ink); color: var(--ibr-surface); border-color: var(--ibr-ink); }
.ibr-pin__key--del { font-size: 24px; border-color: transparent; background: transparent; }
.ibr-pin__key:disabled { opacity: .5; }
.ibr-linkbtn { padding: 0; font: inherit; color: inherit; text-decoration: underline; background: none; border: 0; cursor: pointer; }

/* Schritt 2: Kategorie mit Raten */
.ibr-cat {
	padding: 14px 14px 12px;
	background: var(--ibr-surface);
	border: 1.5px solid var(--ibr-line);
	border-radius: var(--ibr-radius);
}
.ibr-cat.is-off { background: transparent; border-style: dashed; }
.ibr-cat__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.ibr-cat.is-off .ibr-cat__head { margin-bottom: 2px; }
.ibr-cat__name { font-weight: 700; font-size: 17px; }
.ibr-cat.is-off .ibr-cat__name { color: var(--ibr-ink-soft); font-weight: 600; }
.ibr-cat__meta { font-size: 14px; color: var(--ibr-ink-soft); white-space: nowrap; margin: 0; }
.ibr-rates { display: grid; gap: 8px; }
.ibr-rate {
	display: grid;
	grid-template-columns: 22px 1fr auto;
	align-items: center;
	gap: 2px 10px;
	width: 100%;
	min-height: 52px;
	padding: 10px 12px;
	text-align: left;
	font: inherit;
	color: var(--ibr-ink);
	background: var(--ibr-bg);
	border: 1.5px solid transparent;
	border-radius: 8px;
	cursor: pointer;
}
.ibr-rate__radio { width: 20px; height: 20px; border: 2px solid var(--ibr-ink-soft); border-radius: 50%; }
.ibr-rate.is-sel { border-color: var(--ibr-ink); background: var(--ibr-surface); }
.ibr-rate.is-sel .ibr-rate__radio { border-color: var(--ibr-ink); box-shadow: inset 0 0 0 4px var(--ibr-surface); background: var(--ibr-ink); }
.ibr-rate__name { font-weight: 600; }
.ibr-rate__price { font-weight: 700; color: var(--ibr-brass); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ibr-rate__meta { grid-column: 2 / -1; font-size: 13px; color: var(--ibr-ok); font-weight: 600; }
.ibr-rate.is-off { display: flex; justify-content: space-between; gap: 10px; cursor: default; background: transparent; border: 1px dashed var(--ibr-line); }
.ibr-rate.is-off .ibr-rate__name { color: var(--ibr-ink-soft); font-weight: 500; }
.ibr-rate.is-off .ibr-rate__meta { color: var(--ibr-ink-soft); font-weight: 400; text-align: right; }

/* Frühstück-Option */
.ibr-opt {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	padding: 14px 16px;
	background: var(--ibr-surface);
	border: 1.5px solid var(--ibr-line);
	border-radius: var(--ibr-radius);
	cursor: pointer;
}
.ibr-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ibr-opt__box { flex: 0 0 24px; width: 24px; height: 24px; border: 2px solid var(--ibr-ink-soft); border-radius: 6px; }
.ibr-opt.is-on { border-color: var(--ibr-brass); background: var(--ibr-brass-bg); }
.ibr-opt.is-on .ibr-opt__box { border-color: var(--ibr-brass); background: var(--ibr-brass); box-shadow: inset 0 0 0 4px var(--ibr-brass-bg); }
.ibr-opt input:focus-visible + .ibr-opt__box { outline: 3px solid var(--ibr-brass); outline-offset: 2px; }
.ibr-opt__text { flex: 1; display: flex; flex-direction: column; }
.ibr-opt__text small { font-size: 14px; color: var(--ibr-ink-soft); }
.ibr-opt__price { font-weight: 700; color: var(--ibr-brass); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ibr-opt.is-incl { cursor: default; color: var(--ibr-ok); font-weight: 600; font-size: 15px; }

/* Preisaufstellung */
.ibr-sum--price dt small { display: block; font-size: 13px; color: var(--ibr-ink-soft); font-weight: 400; margin-top: 1px; }
.ibr-sum--price dt { color: var(--ibr-ink); font-size: 15px; }
.ibr-sum--price dd { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ibr-sum--big dd.ibr-sum__total { font-size: 22px; }
.ibr-sum dd.ibr-sum__total { margin-left: -16px; padding-left: 16px; }

/* ---------- Belegung ---------- */
.ibr { --ibr-free: #2F6B4A; --ibr-free-bg: #E4F0E8; --ibr-busy: #1F3A3D; --ibr-busy-bg: #DCE6E7; --ibr-arr: #9C6F1E; --ibr-arr-bg: #F6EEDC; --ibr-dep: #7A4B8C; --ibr-dep-bg: #EFE5F3; }
@media (prefers-color-scheme: dark) {
	.ibr { --ibr-free: #7CC39B; --ibr-free-bg: #19302A; --ibr-busy: #CFE0E2; --ibr-busy-bg: #243436; --ibr-arr: #D9AE5F; --ibr-arr-bg: #2E2718; --ibr-dep: #C9A2DA; --ibr-dep-bg: #2C2233; }
}

.ibr-occnav { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ibr-occnav__arrow {
	width: 48px; height: 48px; flex: 0 0 48px;
	font-size: 28px; line-height: 1; color: var(--ibr-ink);
	background: var(--ibr-surface); border: 1.5px solid var(--ibr-line); border-radius: 8px; cursor: pointer;
}
.ibr-occnav__date {
	position: relative; flex: 1; display: flex; align-items: center; justify-content: center;
	min-height: 48px; font-weight: 700; font-size: 17px;
	background: var(--ibr-surface); border: 1.5px solid var(--ibr-line); border-radius: 8px;
}
.ibr-occnav__date input[type="date"] { position: absolute; inset: 0; width: 100%; min-height: 0; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

.ibr-seg { display: flex; gap: 6px; margin-bottom: 14px; }
.ibr-seg button {
	flex: 1; min-height: 44px; font: inherit; font-size: 15px; font-weight: 600;
	color: var(--ibr-ink-soft); background: transparent; border: 1.5px solid var(--ibr-line); border-radius: 8px; cursor: pointer;
}
.ibr-seg button.is-on { color: var(--ibr-surface); background: var(--ibr-ink); border-color: var(--ibr-ink); }

.ibr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.ibr-kpi {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 64px; padding: 6px 4px; font: inherit; color: var(--ibr-ink);
	background: var(--ibr-surface); border: 1.5px solid var(--ibr-line); border-radius: 10px;
}
button.ibr-kpi { cursor: pointer; }
.ibr-kpi strong { font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ibr-kpi span { font-size: 13px; color: var(--ibr-ink-soft); }
.ibr-kpi--free strong { color: var(--ibr-free); }
.ibr-kpi--free.is-on { background: var(--ibr-free-bg); border-color: var(--ibr-free); }
.ibr-kpi--busy.is-on { background: var(--ibr-busy-bg); border-color: var(--ibr-busy); }
.ibr-kpi--arr strong { color: var(--ibr-arr); }
.ibr-kpi--arr.is-on { background: var(--ibr-arr-bg); border-color: var(--ibr-arr); }
.ibr-kpi--dep strong { color: var(--ibr-dep); }
.ibr-kpi--dep.is-on { background: var(--ibr-dep-bg); border-color: var(--ibr-dep); }
.ibr-kpi--plain { background: transparent; border-style: dashed; }
.ibr-btn--block { width: 100%; margin-bottom: 4px; min-height: 48px; font-size: 16px; }

.ibr-cathead { margin: 18px 0 8px; font-size: 14px; font-weight: 700; color: var(--ibr-ink-soft); letter-spacing: .01em; }
.ibr-rooms li { margin-bottom: 6px; }
.ibr-roomrow {
	display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 10px;
	width: 100%; min-height: 56px; padding: 8px 12px 8px 8px; text-align: left;
	font: inherit; color: var(--ibr-ink); background: var(--ibr-surface);
	border: 1.5px solid var(--ibr-line); border-left-width: 5px; border-radius: 8px; cursor: pointer;
}
.ibr-roomrow:disabled { cursor: default; opacity: 1; }
.ibr-roomrow.is-open { border-color: var(--ibr-ink); }
.ibr-roomrow__nr { font-size: 20px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.ibr-roomrow__main { display: flex; flex-direction: column; min-width: 0; }
.ibr-roomrow__line { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibr-roomrow__sub { font-size: 13px; color: var(--ibr-ink-soft); }
.ibr-roomrow.is-free, .ibr-roomrow.is-departure { border-left-color: var(--ibr-free); }
.ibr-roomrow.is-free .ibr-roomrow__line { font-weight: 400; color: var(--ibr-ink-soft); font-size: 14px; }
.ibr-roomrow.is-occupied, .ibr-roomrow.is-inhouse { border-left-color: var(--ibr-busy); }
.ibr-roomrow.is-arrival, .ibr-roomrow.is-change { border-left-color: var(--ibr-arr); }
.ibr-roomrow.is-unassigned { border-left-color: var(--ibr-arr); border-style: dashed; border-left-style: solid; }

.ibr-pill { padding: 4px 10px; font-size: 13px; font-weight: 700; border-radius: 999px; white-space: nowrap; }
.ibr-pill--free { color: var(--ibr-free); background: var(--ibr-free-bg); }
.ibr-pill--occupied, .ibr-pill--inhouse { color: var(--ibr-busy); background: var(--ibr-busy-bg); }
.ibr-pill--arrival, .ibr-pill--change { color: var(--ibr-arr); background: var(--ibr-arr-bg); }
.ibr-pill--departure { color: var(--ibr-dep); background: var(--ibr-dep-bg); }
.ibr-sum--detail { margin: 6px 0 4px; font-size: 15px; }

/* Wochenraster */
.ibr-week { margin: 0 -16px; padding: 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ibr-week__row { display: grid; grid-template-columns: 52px 1fr; align-items: stretch; min-width: 340px; margin-bottom: 4px; }
.ibr-week__nr { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.ibr-week__cells { position: relative; display: grid; grid-template-columns: repeat(var(--ibr-cols, 7), 1fr); grid-template-rows: 40px; column-gap: 2px; }
.ibr-week__bg { grid-row: 1; background: var(--ibr-free-bg); border-radius: 4px; }
.ibr-week__bg.is-today { background: var(--ibr-free-bg); outline: 2px solid var(--ibr-free); outline-offset: -2px; }
.ibr-week__head + .ibr-week__cat { margin-top: 6px; }
.ibr-week__head .ibr-week__cells { grid-template-rows: auto; }
.ibr-week__day { display: flex; flex-direction: column; align-items: center; font-weight: 700; font-size: 15px; padding-bottom: 4px; }
.ibr-week__day small { font-size: 12px; font-weight: 400; color: var(--ibr-ink-soft); }
.ibr-week__day.is-we small { color: var(--ibr-arr); }
.ibr-week__day.is-today { color: var(--ibr-free); }
.ibr-week__cat { margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--ibr-ink-soft); }
.ibr-bar {
	grid-row: 1; z-index: 1; min-width: 0; margin: 3px 1px; padding: 0 8px;
	font: inherit; font-size: 13px; font-weight: 600; text-align: left;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	color: var(--ibr-busy); background: var(--ibr-busy-bg);
	border: 1.5px solid var(--ibr-busy); border-radius: 17px; cursor: pointer;
}
.ibr-bar.is-in { color: var(--ibr-surface); background: var(--ibr-busy); }
.ibr-bar.is-cut-l { border-top-left-radius: 3px; border-bottom-left-radius: 3px; border-left-style: dashed; }
.ibr-bar.is-cut-r { border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-right-style: dashed; }
.ibr-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0; font-size: 13px; color: var(--ibr-ink-soft); }
.ibr-legend__i { display: inline-block; width: 18px; height: 12px; border-radius: 6px; margin-right: -4px; }
.ibr-legend__i.is-booked { background: var(--ibr-busy-bg); border: 1.5px solid var(--ibr-busy); }
.ibr-legend__i.is-in { background: var(--ibr-busy); }
.ibr-legend__i.is-free { background: var(--ibr-free-bg); }
@media (max-width: 360px) { .ibr-kpis { grid-template-columns: repeat(2, 1fr); } }

/* drei Reiter unten */
.ibr-tabs__btn { max-width: 180px; }

/* ---------- Eigenständige App-Seite (ohne Theme) ---------- */
html:has(body.ibr-standalone), body.ibr-standalone { margin: 0; padding: 0; min-height: 100%; background: #F4F6F5; }
@media (prefers-color-scheme: dark) {
	html:has(body.ibr-standalone), body.ibr-standalone { background: #121A1B; color-scheme: dark; }
}
body.ibr-standalone { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
body.ibr-standalone .ibr { min-height: 100vh; min-height: 100dvh; padding-top: env(safe-area-inset-top, 0px); }
body.ibr-standalone .ibr-top { position: sticky; top: 0; z-index: 50; background: var(--ibr-bg); }
@media (min-width: 600px) { body.ibr-standalone .ibr { border-left: 1px solid var(--ibr-line); border-right: 1px solid var(--ibr-line); } }
.ibr-pin__bio { width: 100%; margin-top: 22px; }
.ibr-pin__unpair { display: block; margin: 18px auto 0; font-size: 14px; color: var(--ibr-ink-soft); }
body.ibr-native .ibr { padding-top: env(safe-area-inset-top, 0px); }
