/* Termine – Frontend-Styles
 * Farben lassen sich über CSS-Variablen anpassen, z. B. im Theme:
 * .termine { --termine-gruen: #1f5f3a; }
 */

.termine {
	--termine-gruen: #2f4a1e;
	--termine-gruen-hover: #3a5a26;
	--termine-text: #1d1d24;
	--termine-karte: #f2f2f2;
	--termine-radius: 12px;
	--termine-dauer: 0.35s;

	color: var(--termine-text);
	box-sizing: border-box;
}

.termine *,
.termine *::before,
.termine *::after {
	box-sizing: border-box;
}

.termine [hidden] {
	display: none !important;
}

/* Überschrift / Leiste ------------------------------------------------- */

.termine .termine__titel {
	margin: 0 0 12px;
	color: var(--termine-gruen);
}

.termine .termine__leiste {
	margin: 0 0 12px;
	display: none;
}

.termine .termine__aktuell {
	display: inline-block;
	margin: 0;
	padding: 6px 14px;
	border: 0;
	border-radius: 999px;
	background: #20202a;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
}

.termine .termine__aktuell.is-aktiv {
	cursor: default;
}

.termine .termine__aktuell:hover,
.termine .termine__aktuell:focus-visible {
	background: #20202a;
	color: #fff;
}

.termine .termine__aktuell:not(.is-aktiv):hover {
	background: var(--termine-gruen);
}
span.termine__toggle-titel {
    font-family: "Young Serif";
    letter-spacing: 0.02em;
    font-weight: 100;
	font-size: clamp(17px, 1.5vw + 10px, 25px);
}

.termine .termine__monatsblock {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
span.termine__toggle-datum {
    font-weight: 300;
    color: #CDDC39;
    text-transform: capitalize;
font-size:clamp(16px, 1.5vw + 10px, 18px);
}

.termine .termine__monatszeile {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 7px;
	margin: 0 0 12px;
flex-wrap: wrap;
}

.termine .termine__monat {
	margin: 0 0 12px;
	font-size: clamp(1.4rem, 3.5vw, 1.9rem);
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--termine-text);
}

.termine .termine__monatszeile .termine__monat {
	margin: 0;
}

.termine .termine__pfeile {
	display: flex;
	gap: 8px;
}

.termine .termine__pfeil {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 1px solid #8a8a93;
	border-radius: 50%;
	background: transparent;
	color: var(--termine-text);
	cursor: pointer;
	box-shadow: none;
}

.termine .termine__pfeil:hover:not(:disabled),
.termine .termine__pfeil:focus-visible:not(:disabled) {
	background: var(--termine-gruen);
	border-color: var(--termine-gruen);
	color: #fff;
}

.termine .termine__pfeil:disabled {
	opacity: 0.35;
	cursor: default;
}

.termine .termine__pfeil-icon {
	display: block;
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.termine .termine__pfeil-icon--next {
	transform: rotate(45deg);
	margin-left: -2px;
}

.termine .termine__pfeil-icon--prev {
	transform: rotate(-135deg);
	margin-right: -2px;
}

/* Liste / Akkordeon -------------------------------------------------------- */


.termine .termine__eintrag {
	overflow: hidden;
	border-radius: var(--termine-radius);
	background: var(--termine-gruen);
}

.termine .termine__eintrag.is-open {
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.termine .termine__eintrag.is-past:not(.is-open) {
	opacity: 0.7;
}

.termine .termine__kopf {
	margin: 0;
	padding: 0;
	font: inherit;
}

.termine .termine__toggle {
	display: flex;
	align-items: center;
	gap: 0;
	width: 100%;
	margin: 0;
	padding: 15px 20px;
	border: 0;
	border-radius: 0;
	background: var(--termine-gruen);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: none;
white-space: normal;
}

.termine .termine__toggle:hover,
.termine .termine__toggle:focus-visible {
	background: var(--termine-gruen-hover);
	color: #fff;
}

.termine .termine__toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.termine .termine__chevron {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	margin-right: 4px;
	border-right: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform var(--termine-dauer) ease;
display: none;
}

.termine .termine__toggle[aria-expanded="true"] .termine__chevron {
	transform: rotate(-135deg) translate(-2px, -2px);
}

/* Weiches Auf-/Zuklappen über grid-template-rows */

.termine .termine__panel {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows var(--termine-dauer) ease, visibility 0s linear var(--termine-dauer);
}

.termine .termine__eintrag.is-open .termine__panel {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows var(--termine-dauer) ease, visibility 0s linear 0s;
}

.termine .termine__panel-innen {
	min-height: 0;
	overflow: hidden;
}

.termine .termine__panel-inhalt {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px;
}

/* Karten im aufgeklappten Termin */

.termine .termine__karte {
	padding: 22px 26px;
	border-radius: var(--termine-radius);
	background: var(--termine-karte);
}

.termine .termine__karte-titel {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 5px;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: #333;
}

.termine .termine__icon {
	flex: 0 0 auto;
}

.termine .termine__karte-text {
	padding-left: 34px;
	font-size: 0.95rem;
	line-height: 1.55;
}

.termine .termine__karte-text > :first-child {
	margin-top: 0;
}

.termine .termine__karte-text > :last-child {
	margin-bottom: 0;
}

.termine .termine__karte-text p {
	margin: 0;
}

.termine .termine__karte--kalender {
	padding: 16px 26px;
}

.termine .termine__kalender {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
}

.termine .termine__kalender .termine__icon {
	margin-right: -4px;
}

.termine .termine__kalender-link {
	text-decoration: none;
	color: #333;
	border-bottom: 2px solid transparent;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    
}

.termine .termine__kalender-link:hover,
.termine .termine__kalender-link:focus-visible {
	color: var(--termine-gruen);
	border-bottom-color: currentColor;
}

.termine .termine__leer {
	margin: 0;
	padding: 18px 4px;
	opacity: 0.75;
}

@media (max-width: 600px) {
	.termine .termine__toggle {
		padding: 18px 18px;
	}

	.termine .termine__karte {
		padding: 18px;
	}

	.termine .termine__karte-text {
		padding-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.termine .termine__panel,
	.termine .termine__eintrag.is-open .termine__panel,
	.termine .termine__chevron {
		transition: none;
	}
}

/* Datum und Titel untereinander  */
.termine .termine__toggle-datum,
.termine .termine__toggle-titel {
	display: block;
}

/* Typ-Label über dem Datum  */
.termine .termine__toggle-typ {
    display: block;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 10px;
        background: #fff;
    color: #222;
    padding: 2px 8px 3px 8px;
    width: fit-content;
    border-radius: 15px;
}


/* Vergangene Termine dezent ausgrauen */
.termine .termine__eintrag.is-past .termine__toggle {
    background-color: #e0e0e0;
    
}

.termine .termine__eintrag.is-past .termine__toggle-datum,
.termine .termine__eintrag.is-past .termine__toggle-titel {
    color: #666;
}

/* Typ-Kennzeichnung ebenfalls etwas zurücknehmen */
.termine .termine__eintrag.is-past .termine__toggle-typ {
    opacity: 0.75;
}

/* Geöffnete Details vergangener Termine */
.termine .termine__eintrag.is-past .termine__panel {
    color: #777;
}

.termine .termine__eintrag.is-past .termine__karte {
    background-color: #fafafa;
}

/* Kalender-Abo: "Alle kommenden Termine automatisch im eigenen Kalender" -- */

.termine .termine__abo {
	font-size: 0.95rem;
	
}


.termine .termine__abo-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

/* Buttons */
.termine .termine__abo-link {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 5px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #888;
    text-align: center;
    background: #f3f4ec;
	width: 240px;
	line-height: 1.3;
}

.termine .termine__abo-link:hover,
.termine .termine__abo-link:focus-visible {
	background: #666;
	color: #fff;
}
/* Filterung*/

.termine__filter {
    gap: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
button.termine__filter-btn {
    padding: 8px 10px !important;
    font-weight: 400 !important;
    border-bottom: 1px solid #999 !important;
    border-left: 1px solid #999 !important;
    background: #fff !important;
    color: #666 !important;
    border-top: none !important;
    border-right: none !important;
	font-size: 16px !important;
	width: 230px !important;
}
button.termine__filter-btn:hover {
background: #2f4a1e !important;
color:#fff !important;
}
button.termine__filter-btn.is-aktiv {
    color: #fff!important;
    background: #2f4a1e!important;
	font-size: 16px !important;
}