/* Praxis-Ampel: dezent, sitzt in der Kopfzeile zwischen Logo und Menue auf allen Seiten (2026-11-09) */

.header-ampel { position: relative; text-align: center; z-index: 60; }
.praxis-ampel { display: inline-block; }

/* unter 1100 px ist in der Kopfzeile kein Platz: Ampel als kleines Schild an der Unterkante des Headers */
@media (max-width: 1149px) {
	#header > .row { position: static; }
	.header-ampel { position: absolute; left: 0; right: 0; bottom: -14px; margin: 0 auto; width: max-content; max-width: 100%; }
}

@media (min-width: 1150px) {
	#header > .row { display: flex; align-items: center; }
	#header > .row:before, #header > .row:after { display: none; }
	#header > .row > .span3, #header > .row > .span9 { float: none; flex: none; }
	#header > .row > .header-ampel { flex: 1 1 auto; min-width: 0; padding: 0 20px; }
}

.ampel {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 6px 14px 6px 12px;
	border: 1px solid transparent;
	border-radius: 10px;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.ampel:focus-visible { outline: 3px solid #222324; outline-offset: 3px; }

/* Klick-Hinweis: Pfeil, bei breiten Fenstern zusaetzlich "Sprechzeiten" */
.ampel .pfeil {
	flex: none;
	width: 6px; height: 6px;
	margin: -3px 0 0 1px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: .75;
	transition: transform .2s, opacity .2s, margin .2s;
}
.ampel:hover .pfeil { opacity: 1; margin-top: 0; }
.praxis-ampel.aktiv .ampel .pfeil { transform: rotate(-135deg); margin-top: 3px; }
.ampel .extra { display: none; font-weight: 600; letter-spacing: .06em; text-transform: none; font-size: 13px; }
.ampel .extra::before { content: "·"; margin-right: 8px; opacity: .6; }
@media (min-width: 1300px) { .ampel .extra { display: inline; } }
.ampel:hover .label { text-decoration: underline; text-underline-offset: 3px; }
.ampel.offen:hover { border-color: rgba(79, 154, 91, .70); box-shadow: 0 1px 6px rgba(79, 154, 91, .25); }
.ampel.zu:hover { border-color: rgba(184, 72, 60, .65); box-shadow: 0 1px 6px rgba(184, 72, 60, .25); }

.ampel.offen { background: rgba(79, 154, 91, .10); border-color: rgba(79, 154, 91, .40); color: #2F6B3C; }
.ampel.offen:hover { background: rgba(79, 154, 91, .18); }
.ampel.zu    { background: rgba(184, 72, 60, .09); border-color: rgba(184, 72, 60, .38); color: #8E3A31; }
.ampel.zu:hover { background: rgba(184, 72, 60, .16); }

.ampel .lampe {
	flex: none;
	width: 9px; height: 9px;
	border-radius: 50%;
}
.ampel.offen .lampe { background: #4F9A5B; }
.ampel.zu .lampe    { background: #B8483C; animation: ampel-blink 2.4s ease-in-out infinite; }

@keyframes ampel-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* Info-Feld: oeffnet nur per Klick, liegt mittig im Banner unter der Kopfzeile (Position setzt ampel.js) */
.ampel-tipp {
	position: fixed;
	top: 168px;
	left: 50%;
	z-index: 70;
	box-sizing: border-box;
	width: min(520px, calc(100vw - 32px));
	max-height: 216px;
	overflow-y: auto;
	scrollbar-width: thin;
	padding: 14px 24px 12px;
	border-radius: 12px;
	background: #FBFBF6;
	background: var(--creme, #FBFBF6);
	color: #222324;
	font-size: 15px;
	line-height: 1.5;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
	text-align: left;
	border: 1px solid #E6E7E8;
	box-shadow: 0 12px 34px rgba(34, 35, 36, .22);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.praxis-ampel.aktiv .ampel-tipp { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.ampel-tipp .ampel-x {
	position: absolute;
	top: 8px; right: 10px;
	width: 28px; height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #4A4B4D;
	font: inherit;
	font-size: 20px;
	line-height: 28px;
	text-align: center;
	cursor: pointer;
}
.ampel-tipp .ampel-x:hover { background: #EDEAD0; }
.ampel-tipp .ampel-x:focus-visible { outline: 2px solid #222324; }

.ampel-tipp .kopf {
	display: block;
	margin: 0 28px 8px 0;
	padding-bottom: 6px;
	border-bottom: 3px solid #B5B236;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.ampel-tipp p { margin: 0 0 8px; }
.ampel-tipp p:last-child { margin-bottom: 0; }
.ampel-tipp .vertr {
	padding: 10px 14px;
	border: 0;
	border-radius: 8px;
	background: #EDEAD0;
	color: #222324;
	font-size: 14.5px;
}
.ampel-tipp .gruss { margin-top: 14px; color: #6D6E71; font-style: italic; }
.ampel-tipp a.tel { color: #222324; font-weight: 700; text-decoration: none; border-bottom: 1px solid #B5B236; white-space: nowrap; }
.ampel-tipp a.tel:hover { background: #E9E7A8; }

/* Unsichtbare Bruecke ueber den Spalt zwischen Button und Karte, damit die Maus zum Link wechseln kann */
.ampel-tipp::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }

/* Link unten rechts */
.ampel-fuss { margin-top: 8px; padding-top: 8px; border-top: 1px solid #E6E6E6; text-align: right; }
.ampel-fuss a.ampel-link { color: #222324; font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 2px solid #B5B236; padding-bottom: 1px; }
.ampel-fuss a.ampel-link::after { content: " \2192"; }
.ampel-fuss a.ampel-link:hover { background: #E9E7A8; }

.ampel-zeiten { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; }
.ampel-zeiten li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-top: 1px solid #E6E6E6; }

@media (max-width: 1024px) {
	#header { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
	.ampel.zu .lampe { animation: none; }
}


/* Abwesenheit mit Text (Urlaub, Krank, Fortbildung): groesseres Feld, etwas kleinere Schrift */
.ampel-tipp.gross {
	width: min(660px, calc(100vw - 32px));
	max-height: min(430px, calc(100vh - 190px));
	font-size: 14px;
	line-height: 1.45;
}
.ampel-tipp.gross .vertr { font-size: 13.5px; }
.ampel-tipp .wieder { font-weight: 700; }


/* Offenes Info-Feld: Seite dahinter tritt zurueck, Slider-Punkte liegen nicht mehr im Feld (2026-11-09) */
.ampel-veil {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: -1;
	background: rgba(251, 251, 246, .78);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
}
.praxis-ampel.aktiv .ampel-veil { opacity: 1; visibility: visible; }
.ampel-offen .tp-bullets { visibility: hidden !important; }
