/* TIBA OxyCare – Online-Services (Modul oxy-online-services.php)
   Header-Button (ab 1025 px) und Leiste unten (bis 1024 px). Abgeleitet aus dem Prototyp vom 12.11.2026. */

.oxy-os {
	--oxs-navy: var(--e-global-color-primary, #173377);
	--oxs-navy-d: var(--e-global-color-c1dfb3b, #003478);
	--oxs-yellow: var(--e-global-color-secondary, #FFF200);
	--oxs-blue: #2b4a96;
	--oxs-line: #dfe3ee;
	--oxs-muted: #5b6478;
	--oxs-paper: #f6f7fb;
	--oxs-lav: var(--e-global-color-4eeac20, #E4E6F7);
	--oxs-shadow: 0 24px 48px -20px rgba(14, 35, 87, .55);
}

.oxy-os .oxs [hidden],
.oxy-os .oxs[hidden] { display: none !important; }

.oxs-i { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.oxs button { font-family: inherit; }
.oxs-si { display: block; width: 32px; height: 32px; object-fit: contain; flex: 0 0 auto; }
.oxs-si--light { filter: brightness(0) invert(1); }

/* ---------- Gemeinsame Bausteine (Fenster) ---------- */
.oxs-panel__head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; margin-bottom: 12px; }
.oxs-panel__title { grid-column: 1; margin: 0; font: 700 20px/1.2 var(--e-global-typography-primary-font-family, inherit), system-ui, sans-serif; color: var(--oxs-navy); }
.oxs-panel__sub { grid-column: 1; margin: 0; font-size: 14px; line-height: 1.35; color: var(--oxs-muted); }
.oxy-os .oxs .oxs-panel__head .oxs-x { grid-row: 1 / 3; grid-column: 2; }
.oxy-os .oxs .oxs-x { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--oxs-paper); color: var(--oxs-navy); }
.oxy-os .oxs .oxs-x:hover { background: var(--oxs-lav); }
.oxy-os .oxs .oxs-x:focus-visible { outline: 3px solid var(--oxs-navy); outline-offset: 2px; }
.oxy-os .oxs .oxs-x .oxs-i { width: 20px; height: 20px; }

.oxs-panel__rows { display: grid; gap: 8px; }
.oxs-row { display: grid; grid-template-columns: 50px 1fr 18px; gap: 12px; align-items: center; min-height: 66px; padding: 10px 12px; border: 1px solid var(--oxs-line); border-radius: 14px; background: #fff; color: var(--oxs-navy); text-decoration: none !important; transition: border-color .15s, background-color .15s; }
.oxs-row:hover { border-color: var(--oxs-navy); background: #fbfbfe; }
.oxs-row:focus-visible { outline: 3px solid var(--oxs-navy); outline-offset: 2px; }
.oxs-row__ic { width: 50px; height: 50px; border-radius: 12px; background: var(--oxs-yellow); color: var(--oxs-navy); display: grid; place-items: center; }
.oxs-row__ic .oxs-si { width: 36px; height: 36px; }
.oxs-row__tx b { display: block; font-weight: 800; font-size: 15.5px; line-height: 1.2; color: var(--oxs-navy); }
.oxs-row__tx small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--oxs-muted); }
.oxs-row__chev { color: var(--oxs-navy); display: grid; }
.oxs-row__chev .oxs-i { width: 18px; height: 18px; }

.oxs-all { display: flex; justify-content: center; align-items: center; gap: 4px; min-height: 44px; margin-top: 8px; font-weight: 800; font-size: 14.5px; color: var(--oxs-navy) !important; text-decoration: underline; text-underline-offset: 3px; }
.oxs-all .oxs-i { width: 18px; height: 18px; }
.oxs-all:focus-visible { outline: 3px solid var(--oxs-navy); outline-offset: 2px; border-radius: 8px; }

.oxs-toggle__car { display: grid; transition: transform .2s; }
.oxs-toggle__car .oxs-i { width: 16px; height: 16px; transform: rotate(90deg); }
.oxs-toggle[aria-expanded="true"] .oxs-toggle__car { transform: rotate(180deg); }

/* ---------- Desktop/Laptop (ab 1025 px): Button neben dem Telefon ---------- */
@media (max-width: 1024px) {
	.oxs--desktop { display: none !important; }
}
@media (min-width: 1025px) {
	.oxs--bottom { display: none !important; }

	.oxy-os .oxy-head__contact { position: relative; }
	.oxy-os .oxy-head__os { width: max-content; }
	.oxs--desktop { position: static; }

	.oxy-os .oxs .oxs-toggle--d { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; height: 39px; padding: 0 14px 0 6px; border-radius: 12px; background: var(--oxs-navy); color: #fff; font-weight: 700; font-size: 17px; line-height: 1; white-space: nowrap; transition: background-color .2s ease; }
	.oxy-os .oxs .oxs-toggle--d:hover, .oxy-os .oxs .oxs-toggle--d[aria-expanded="true"] { background: var(--oxs-navy-d); }
	.oxy-os .oxs .oxs-toggle--d:focus-visible { outline: 3px solid var(--oxs-navy); outline-offset: 3px; }
	.oxy-os .oxs .oxs-toggle--d .oxs-toggle__ic { width: 28px; height: 28px; border-radius: 9px; background: var(--oxs-yellow); color: var(--oxs-navy); display: grid; place-items: center; }
	.oxy-os .oxs .oxs-toggle--d .oxs-toggle__ic .oxs-si { width: 20px; height: 20px; }

	.oxs-panel--d { position: absolute; top: calc(100% + 12px); right: 0; z-index: 1000; width: min(700px, calc(100vw - 48px)); padding: 22px; border-radius: 20px; background: #fff; box-shadow: var(--oxs-shadow), 0 0 0 1px var(--oxs-line); text-align: left; }
	.oxs-panel--d .oxs-panel__rows { grid-template-columns: 1fr 1fr; gap: 10px; }
	.oxs-panel--d .oxs-panel__title { font-size: 22px; }
	.oxs-panel--d .oxs-row { min-height: 74px; }
}
@media (min-width: 1025px) and (max-width: 1499px) {
	.oxy-os .oxs .oxs-toggle--d { height: 33px; font-size: 15px; padding: 0 12px 0 4px; gap: 7px; }
	.oxy-os .oxs .oxs-toggle--d .oxs-toggle__ic { width: 25px; height: 25px; border-radius: 8px; }
}
@media (min-width: 1150px) and (max-width: 1249px) {
	/* wenig Platz: nur „Services“ (Telefon bleibt unverändert) */
	.oxy-os .oxs .oxs-toggle--d .oxs-toggle__tx { font-size: 0; }
	.oxy-os .oxs .oxs-toggle--d .oxs-toggle__tx::after { content: "Services"; font-size: 15px; }
}
@media (min-width: 1025px) and (max-width: 1149px) {
	/* sehr wenig Platz: nur Icon, Text bleibt für Screenreader */
	.oxy-os .oxs .oxs-toggle--d { padding: 0 4px; gap: 0; }
	.oxy-os .oxs .oxs-toggle--d .oxs-toggle__tx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.oxy-os .oxs .oxs-toggle--d .oxs-toggle__car { display: none; }
}

/* ---------- Smartphone + Tablet (bis 1024 px): Leiste unten ---------- */
@media (max-width: 1024px) {
	/* alte Leiste aus (zusätzlich zur Template-Einstellung) – nur wenn die neue Leiste auf der Seite steht */
	.oxy-os:has(.oxs-bb) .elementor-element-a485b88 { display: none !important; }
	.oxy-os:has(.oxs-bb) { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

	.oxs-bb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 995; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0 4px env(safe-area-inset-bottom, 0px); background: var(--oxs-yellow); border-radius: 20px 20px 0 0; box-shadow: 0 -8px 24px -12px rgba(14, 35, 87, .45); }
	.oxy-os .oxs .oxs-bb__it { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 66px; padding: 6px 2px; color: var(--oxs-navy) !important; text-decoration: none !important; font-weight: 800; font-size: 12px; line-height: 1.1; text-align: center; -webkit-tap-highlight-color: rgba(23, 51, 119, .12); }
	.oxy-os .oxs .oxs-bb__it .oxs-si { width: 28px; height: 28px; }
	.oxy-os .oxs .oxs-bb__it:focus-visible { outline: 3px solid var(--oxs-navy); outline-offset: -4px; border-radius: 14px; }
	.oxs-bb__dot { width: 34px; height: 34px; margin-top: -2px; border-radius: 50%; background: var(--oxs-navy); display: grid; place-items: center; }
	.oxs-bb__dot .oxs-si { width: 22px !important; height: 22px !important; filter: brightness(0) invert(1); }
	.oxs-bb__it--svc[aria-expanded="true"] .oxs-bb__dot { background: var(--oxs-blue); }

	.oxs--bottom .oxs-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(14, 35, 87, .45); }
	.oxs-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain; padding: 10px 14px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -20px 40px -20px rgba(14, 35, 87, .6); text-align: left; }
	.oxs-sheet__grab { width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: #cfd4e4; }
	.oxs-call { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--oxs-navy); color: #fff !important; text-decoration: none !important; font-weight: 800; font-size: 16px; line-height: 1.25; }
	.oxs-call small { display: block; font-weight: 600; font-size: 12.5px; color: #c9d0ea; }
	.oxs-call .oxs-si { width: 28px; height: 28px; }
	.oxs-call:focus-visible { outline: 3px solid var(--oxs-navy); outline-offset: 2px; }

	body.oxs-lock { overflow: hidden; }
}

/* Tablet (768–1024) */
@media (min-width: 768px) and (max-width: 1024px) {
	.oxs-sheet .oxs-panel__rows { grid-template-columns: 1fr 1fr; gap: 12px; }
	.oxs-bb { left: 50%; right: auto; width: min(640px, 100%); transform: translateX(-50%); }
	.oxy-os .oxs .oxs-bb__it { min-height: 76px; font-size: 13px; }
	.oxy-os:has(.oxs-bb) { padding-bottom: 82px; }
	.oxs-sheet { left: 50%; right: auto; width: min(680px, 100%); transform: translateX(-50%); padding: 12px 22px 26px; }
}

/* Barrierefreiheits-Werkzeug (z-index 9999) nicht über Fenster legen */
.oxy-os.oxs-open #pojo-a11y-toolbar { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
	.oxs-toggle__car, .oxs-row, .oxy-os .oxs .oxs-toggle--d { transition: none !important; }
}
