/**
 * SH-Beratungsstellen: Detailseite und Karten.
 * Tokens aus sh-design-system.css (Child-Theme), mit Rückfallwerten, falls der Layer fehlt.
 * QR-Etikett übernommen aus style.css des Child-Themes (Stand 23.10.2026).
 */

/* Öffnungszeiten ------------------------------------------------------------------- */
.shberat-oz {
	margin: 0;
	font-size: 1em;
}
.shberat-oz__kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .2rem .8rem;
	min-height: 44px;
	cursor: pointer;
	list-style: none;
}
.shberat-oz__kopf::-webkit-details-marker {
	display: none;
}
.shberat-oz__status {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .2rem .8rem;
}
.shberat-oz__mehr {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .9em;
}
.shberat-oz__mehr::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform var(--sh-dur-fast, .2s) var(--sh-ease, ease);
}
.shberat-oz[open] .shberat-oz__mehr::after {
	transform: rotate(-135deg) translateY(-2px);
}
.shberat-oz__kopf:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}
/* Abstufung ohne opacity: abgeschwächte geerbte Farben lagen auf hellem Grund unter 4,5:1
   (Prüfung 25.10.2026: 2,93 bis 3,55). Geschlossene Tage stattdessen kursiv. */
.shberat-oz__tag.is-zu .shberat-oz__zeiten {
	font-style: italic;
}
.shberat-oz .shberat-oz__woche {
	margin-top: .3rem;
}
/* Terminhinweis: Farbe geerbt (heller Block oben, Navy-Kontaktbereich unten). */
.shberat-oz-hinweis {
	margin: 0;
	padding: 0;
	color: inherit;
}
.shberat-oz + .shberat-oz-hinweis {
	margin-top: .3rem;
}
.shberat-oz__punkt {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-weight: 700;
	color: inherit;
}
.shberat-oz__punkt::before {
	content: "";
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	border-radius: 50%;
	background: currentColor;
}
.shberat-oz__punkt.is-zu::before {
	background: transparent;
	box-shadow: inset 0 0 0 2px currentColor;
}
.shberat-oz__heute {
}
.shberat-oz__woche {
	margin: 0;
	padding: 0;
	list-style: none;
}
.shberat-oz__tag {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	line-height: 1.7;
}
.shberat-oz__name {
	min-width: 2.6em;
}
.shberat-oz__zeiten {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}
.shberat-oz__tag.is-zu .shberat-oz__zeiten {
}
.shberat-oz__tag.is-heute {
	font-weight: 700;
}
.shberat-oz__tag.is-heute .shberat-oz__name {
	opacity: 1;
}

/* Sprachen ------------------------------------------------------------------------- */
.shberat-sprachen ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Karte ---------------------------------------------------------------------------- */
.shberat-karte {
	position: relative;
	width: 100%;
	background: var(--sh-surface-sunken, #e8edf2);
	border-radius: var(--sh-r-img);
	overflow: hidden;
}
.shberat-karte__einwilligung {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .8rem;
	padding: 1.2rem;
	text-align: center;
	color: var(--sh-ink, #1f2d3d);
	background: var(--sh-surface, #f6f8fa);
	z-index: 2;
}
.shberat-karte__einwilligung p {
	max-width: 46ch;
	margin: 0;
	font-size: .92rem;
	line-height: 1.55;
	color: var(--sh-body, #3a4654);
}
.shberat-karte__laden {
	min-height: 44px;
	padding: 0 1.2rem;
	border: 0;
	border-radius: var(--sh-r-btn);
	background: var(--sh-navy, #16395d);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--sh-dur-fast, .2s) ease;
}
.shberat-karte__laden:hover {
	background: var(--sh-navy-deep, #0a4882);
}
.shberat-karte__laden:focus-visible {
	outline: 2px solid var(--sh-navy, #16395d);
	outline-offset: 3px;
}
.shberat-karte__merken {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	min-height: 44px;
	font-size: var(--sh-fs-kicker);
	color: var(--sh-muted, #566273);
	cursor: pointer;
}
.shberat-karte__ohne {
	margin: 0;
}

/* QR-Etikett ----------------------------------------------------------------------- */
.sh-qr-code-label {
	box-sizing: border-box;
	width: auto;
	max-width: 138px;
	margin: 0;
	padding: 0 0 0 2px;
	border-radius: 10px;
	background-color: #000;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.sh-qr-code-label > p {
	box-sizing: border-box;
	margin: 8px 0 0;
	padding: 0;
	text-align: center;
	background: #000;
	color: rgba(255, 255, 255, .5);
	font: bold 12px/15px Helvetica, sans-serif;
	text-transform: uppercase;
}
.sh-qr-code {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	max-width: 134px;
	margin: 0;
	padding: 8px 0 0 2px;
	border: 4px solid #000;
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	cursor: pointer;
}
.sh-qr-code:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.sh-qr-code .qr-code {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 122px;
	margin: 0;
	padding: 0;
	background: #fff;
}
.sh-qr-code .cta {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 5px 12px;
	background: transparent;
	color: #000;
	font: bold 12px/15px Helvetica, sans-serif;
	text-transform: uppercase;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.shberat-karte__laden,
	.shberat-oz__mehr::after {
		transition: none;
	}
}

/* Telefon- und Mail-Links erben die Textfarbe des Umfelds (hell auf Navy, dunkel auf Hell).
   Das Divi-Linkblau lag auf #f6f8fa bei 2,58:1 (Prüfung 25.10.2026). */
a.shberat-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.shberat-karte__fehler {
	margin: 0;
	padding: 1.2rem;
	background: var(--sh-surface, #f6f8fa);
	color: var(--sh-body, #3a4654);
}
.shberat-karte__fehler a {
	color: var(--sh-navy, #16395d);
	text-decoration: underline;
}
