/* ============================================================
   Terminkalender – Frontend-Styles
   ============================================================ */

/* ---------- Terminliste (nach Monaten gruppiert) ---------- */

.tk-liste {
	max-width: 60rem;
}

.tk-monat {
	padding-bottom: 0.3em;
	border-bottom: 2px solid currentColor;
	font-size: 1.35em;
}

.tk-termin {
	margin-bottom: 1.4em;
	scroll-margin-top: 5rem; /* Anker-Sprung aus dem Kalender */
}

/* Zeilenaufbau je Termin:
   1. Datum, Uhrzeit  | 2. Titel | 3. Ort | 4. Informationen
   5. Weitere Infos   | 6. Webadresse / Ticketlink            */

.tk-zeile-datum {
	display: block;
}

.tk-datum {
	font-weight: 700;
	font-size: 1.05em;
}

.tk-uhrzeit {
	font-weight: 400;
}

.tk-titel {
	display: block;
	margin-top: 0.15em;
}

.tk-ort {
	display: block;
}

.tk-info {
	display: block;
	margin-top: 0.15em;
}

.tk-weitere {
	display: block;
	margin-top: 0.15em;
}

.tk-links {
	display: block;
}

.tk-link {
	display: inline-block;
	margin-right: 1em;
}

.tk-ticket {
	display: inline-block;
	font-weight: 600;
}

/* ---------- Horizontales Layout: Felder von links nach rechts ---------- */

.tk-layout-horizontal .tk-termin {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 1.2em;
	row-gap: 0.15em;
}

/* Innenabstände der Zeilen entfallen – der Flex-Abstand übernimmt */
.tk-layout-horizontal .tk-titel,
.tk-layout-horizontal .tk-info,
.tk-layout-horizontal .tk-weitere,
.tk-layout-horizontal .tk-links {
	margin-top: 0;
}

.tk-info p {
	display: inline;
	margin: 0;
}

/* Falls die Info mehrere Absätze enthält, ab dem zweiten normal untereinander */
.tk-info p + p {
	display: block;
	margin-top: 0.4em;
}

.tk-leer {
	font-style: italic;
}

/* ---------- Monatskalender ---------- */

.tk-kalender {
	max-width: 320px;
	margin: 1.5em 0;
	font-size: 0.95em;
	border: 1px solid #d0d0d0;
	border-radius: 8px;
	padding: 0.9em;
	background: #fff;
}

.tk-kal-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.6em;
}

.tk-kal-titel {
	font-weight: 700;
}

.tk-kal-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.8em;
	height: 1.8em;
	border-radius: 50%;
	text-decoration: none;
	font-weight: 700;
	transition: background 0.15s ease;
}

.tk-kal-nav:hover {
	background: rgba(0, 0, 0, 0.07);
}

.tk-kalender table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	text-align: center;
}

.tk-kalender th {
	font-size: 0.75em;
	font-weight: 600;
	color: #777;
	padding: 0.2em 0;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tk-kalender td {
	padding: 0;
	height: 2.1em;
	vertical-align: middle;
}

.tk-kalender td.tk-leer-tag {
	background: transparent;
}

/* Heutiger Tag */
.tk-kalender td.tk-heute {
	color: #b03030;
	font-weight: 700;
}

/* Tage mit Termin */
.tk-kalender td.tk-hat-termin a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.9em;
	height: 1.9em;
	margin: 0 auto;
	border-radius: 50%;
	background: #1d4e89;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s ease;
}

.tk-kalender td.tk-hat-termin a:hover {
	background: #b03030;
}

.tk-kalender td.tk-heute.tk-hat-termin a {
	background: #b03030;
}
