/* Center Ice – opening-hours bar + "Geänderte Öffnungszeiten" popup (inc/opening-popup.php) */

/* ---------- Opening-hours bar (all pages while the notice is active) ---------- */
.ci-notice-bar[hidden] { display: none; }
.ci-notice-bar {
	margin: 0;
	padding: 13px 16px;
	background: var(--ci-blue-dark, #12408f) !important;
	border-bottom: 3px solid var(--ci-blue-light, #8fb8ff);
	color: #ffffff;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 600;
	text-align: center;
}
.ci-notice-bar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: -4px 10px 0 0;
	border-radius: 50%;
	background: #ffffff;
	color: var(--ci-blue-dark, #12408f);
	vertical-align: middle;
}
.ci-notice-bar__icon svg { width: 18px; height: 18px; }
.ci-notice-bar__text strong {
	font-weight: 800;
	white-space: nowrap;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.14);
	border-radius: 3px;
	padding: 0 4px;
}
.ci-notice-bar__dismiss {
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.5;
	display: inline-block;
	margin-left: 10px;
	padding: 1px 10px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 999px;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.ci-notice-bar__dismiss:hover,
.ci-notice-bar__dismiss:focus-visible {
	background: #ffffff;
	color: var(--ci-blue-dark, #12408f);
}
@media (max-width: 781px) {
	.ci-notice-bar { font-size: 14px; padding: 11px 14px; }
	.ci-notice-bar__text strong { white-space: normal; }
}

/* ---------- Popup ---------- */
.ci-op {
	width: min(520px, calc(100vw - 32px));
	max-width: 520px;
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: calc(var(--ci-radius, 6px) * 2);
	background: #ffffff;
	color: var(--ci-text, #3d3d3d);
	font-family: var(--ci-font, 'Open Sans', Helvetica, Arial, sans-serif);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
	overflow: auto;
	overscroll-behavior: contain;
}
.ci-op:not([open]) { display: none; }
.ci-op::backdrop { background: rgba(20, 20, 20, 0.6); }
.ci-op[open] { animation: ci-op-in 0.22s ease-out; }
@keyframes ci-op-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

.ci-op__inner { position: relative; padding: 32px 32px 28px; }
.ci-op__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ci-ink, #1e1e1e);
	cursor: pointer;
}
.ci-op__close:hover { background: var(--ci-soft, #f4f4f4); }
.ci-op__close:focus-visible, .ci-op__ok:focus-visible { outline: 3px solid var(--ci-blue-light, #8fb8ff); outline-offset: 2px; }

.ci-op__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: rgba(26, 86, 196, 0.1);
	color: var(--ci-blue, #1a56c4);
}
.ci-op__title {
	margin: 0 40px 10px 0;
	font-family: var(--ci-display, 'Barlow Condensed', 'Arial Narrow', sans-serif);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--ci-ink, #1e1e1e);
}
.ci-op__text { font-size: 16px; line-height: 1.6; }
.ci-op__text p { margin: 0 0 10px; }
.ci-op__text p:last-child { margin-bottom: 0; }
.ci-op__text strong { color: var(--ci-ink, #1e1e1e); font-weight: 700; }
.ci-op__text a { color: var(--ci-blue, #1a56c4); }

.ci-op__hours {
	margin-top: 18px;
	padding: 12px 16px;
	border: 1px solid var(--ci-line, #e3e3e3);
	border-radius: var(--ci-radius, 6px);
	background: var(--ci-soft, #f4f4f4);
	font-size: 14px;
}
.ci-op__hours-title {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ci-muted, #555555);
}
.ci-op__hours dl { margin: 0; }
.ci-op__hours dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.ci-op__hours dt { font-weight: 600; color: var(--ci-ink, #1e1e1e); }
.ci-op__hours dd { margin: 0; text-align: right; }

.ci-op__ok {
	display: block;
	width: 100%;
	margin-top: 22px;
	padding: 14px 20px;
	border: 0;
	border-radius: var(--ci-radius, 6px);
	background: var(--ci-blue, #1a56c4);
	color: #ffffff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.ci-op__ok:hover { background: var(--ci-blue-dark, #12408f); }

/* Mobile: bottom sheet, page header stays visible above it. */
@media (max-width: 781px) {
	.ci-op {
		width: 100%;
		max-width: 100%;
		max-height: min(66dvh, calc(100dvh - 160px));
		margin: auto 0 0;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
	}
	.ci-op::backdrop { background: linear-gradient(to bottom, rgba(20, 20, 20, 0.12) 0, rgba(20, 20, 20, 0.5) 45%); }
	.ci-op[open] { animation-name: ci-op-up; }
	.ci-op__inner { padding: 26px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
	.ci-op__inner::before {
		content: "";
		position: absolute;
		top: 8px;
		left: 50%;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 2px;
		background: var(--ci-line, #e3e3e3);
	}
	.ci-op__icon { display: none; }
	.ci-op__title { font-size: 26px; margin-top: 6px; }
	.ci-op__hours { margin-top: 14px; padding: 10px 14px; }
	.ci-op__text { font-size: 15px; }
	.ci-op__ok { margin-top: 16px; padding: 13px 20px; }
}
@keyframes ci-op-up { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.ci-op[open] { animation: none; }
}
