/*
 * Kettinger Öffnungszeiten – Basis-Styles.
 * Farben & Abstände lassen sich im Theme über die CSS-Variablen überschreiben, z. B.:
 *   .koez-box { --koez-accent: #8a1c1c; --koez-radius: 0; }
 */
.koez-box, .koez-line, .koez-single {
	/* Standard: Farben der Kettinger-Website (Elementor-Globalfarben, falls vorhanden) */
	--koez-bg: #fff;
	--koez-border: #ececec;
	--koez-text: var(--e-global-color-text, #5E5E5D);
	--koez-muted: #8a8a89;
	--koez-accent: var(--e-global-color-accent, #FE9B00);
	--koez-open: #20AB4B;
	--koez-closed: #d9342b;
	--koez-today-bg: #FFF4E0;
	--koez-radius: 30px;
	--koez-pad: 22px 24px;
	--koez-shadow: 0 0 10px 0 rgba(0, 0, 0, .33);
	--koez-font: var(--e-global-typography-text-font-family, inherit);
	--koez-heading-font: var(--e-global-typography-primary-font-family, inherit);
	--koez-button-bg: var(--e-global-color-primary, #5E5E5D);
	--koez-button-color: #fff;
}
.koez-box {

	box-sizing: border-box;
	max-width: 460px;
	margin: 0 0 1.5rem;
	padding: var(--koez-pad);
	background: var(--koez-bg);
	color: var(--koez-text);
	border: 0;
	border-radius: var(--koez-radius);
	box-shadow: var(--koez-shadow);
	font-family: var(--koez-font);
	line-height: 1.45;
	font-size: 1rem;
}
.koez-box *, .koez-box *::before, .koez-box *::after { box-sizing: inherit; }

.koez-title { margin: 0 0 .6rem; font-family: var(--koez-heading-font); font-size: 1.2em; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.3; color: var(--koez-text); }

.koez-status { display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 .9rem; }
.koez-dot {
	flex: 0 0 auto; width: .7rem; height: .7rem; margin-top: .38em;
	border-radius: 50%; background: var(--koez-closed);
}
.koez-state-open .koez-dot { background: var(--koez-open); box-shadow: 0 0 0 4px rgba(46,125,50,.15); }
.koez-status-text { display: flex; flex-direction: column; }
.koez-status-label { font-weight: 700; }
.koez-state-open .koez-status-label { color: var(--koez-open); }
.koez-state-closed_now .koez-status-label,
.koez-state-closed_today .koez-status-label,
.koez-state-closed_temp .koez-status-label,
.koez-state-closed_perm .koez-status-label { color: var(--koez-closed); }
.koez-status-detail { color: var(--koez-muted); font-size: .9em; }
.koez-status-detail:empty { display: none; }

.koez-week { width: 100%; border-collapse: collapse; margin: 0; border: 0; font-size: .95em; }
.koez-week th, .koez-week td { padding: .32rem .5rem; border: 0; border-bottom: 1px solid var(--koez-border); text-align: left; vertical-align: top; background: none; }
.koez-week td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.koez-week th { font-weight: 400; }
.koez-week tr:last-child th, .koez-week tr:last-child td { border-bottom: 0; }
.koez-week tr.koez-today th, .koez-week tr.koez-today td { background: var(--koez-today-bg); font-weight: 700; }
/* Zebra-Streifen/Hover vieler Themes (z. B. Hello Elementor) neutralisieren */
.koez-box .koez-week tbody > tr > th, .koez-box .koez-week tbody > tr > td,
.koez-box .koez-week tbody > tr:hover > th, .koez-box .koez-week tbody > tr:hover > td { background-color: transparent; }
.koez-box .koez-week tbody > tr.koez-today > th, .koez-box .koez-week tbody > tr.koez-today > td { background-color: var(--koez-today-bg); }
.koez-closed { color: var(--koez-muted); }

.koez-special { margin-top: 1rem; padding-top: .8rem; border-top: 2px solid var(--koez-border); }
.koez-special-title { margin: 0 0 .4rem; font-family: var(--koez-heading-font); text-transform: uppercase; letter-spacing: .03em; font-size: .95em; color: var(--koez-accent); }
.koez-special ul { list-style: none; margin: 0; padding: 0; font-size: .95em; }
.koez-special li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; margin: 0; }
.koez-special-hours { font-variant-numeric: tabular-nums; white-space: nowrap; }
.koez-special-closed .koez-special-hours { color: var(--koez-closed); }

.koez-link { margin: .9rem 0 0; font-size: .9em; }
.koez-link a { color: var(--koez-accent); }

.koez-details summary { cursor: pointer; color: var(--koez-accent); font-size: .95em; margin-bottom: .4rem; }
.koez-box--kompakt { max-width: none; margin: 0; }
.koez-box--kompakt .koez-status { margin-bottom: .5rem; }

.koez-grid {
	display: grid; gap: 1rem; margin: 0 0 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.koez-box--error p { margin: 0; color: var(--koez-muted); }
.koez-admin-hint { margin-top: .5rem !important; font-size: .85em; color: var(--koez-closed) !important; }

.koez-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 480px) {
	.koez-box { --koez-pad: .9rem 1rem; max-width: none; }
}

/* ---------- v1.1: Statuszeile für Übersichtskarten ---------- */
.koez-line { display: inline-flex; align-items: center; gap: .5em; font-family: var(--koez-font); font-size: .95em; line-height: 1.3; color: var(--koez-closed); }
.koez-line .koez-dot { margin-top: 0; width: .65em; height: .65em; }
.koez-line.koez-state-open { color: var(--koez-open); }
.koez-line.koez-state-open .koez-dot { background: var(--koez-open); box-shadow: 0 0 0 3px rgba(32,171,75,.18); }

/* ---------- v1.1: Filialseite ---------- */
.koez-single { margin: 0 0 2rem; font-family: var(--koez-font); color: var(--koez-text); }
.koez-single .koez-box { max-width: 560px; }
.koez-contact { list-style: none; margin: 0 0 1.4rem; padding: 0; font-size: 1.1em; }
.koez-contact li { display: flex; align-items: center; gap: .75em; margin: 0 0 .6em; padding: 0; }
.koez-contact .koez-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: var(--koez-accent); }
.koez-contact a { color: inherit; text-decoration: none; }
.koez-contact .koez-contact-phone a { color: var(--koez-accent); }
.koez-contact a:hover { text-decoration: underline; }
.koez-review { max-width: 560px; margin: 1.5rem 0 0; text-align: center; }
.koez-single a.koez-button, a.koez-button {
	display: inline-block; padding: 12px 24px; border-radius: 10px;
	background: var(--koez-button-bg); color: var(--koez-button-color);
	font-family: var(--koez-font); font-size: 1.1em; line-height: 1.2; text-decoration: none;
	transition: transform .2s;
}
a.koez-button:hover, a.koez-button:focus { color: var(--koez-button-color); transform: scale(1.05); text-decoration: none; }
