/* ==========================================================
   TmH – Bausteine (Zusatz-CSS)
   Datei:   wp-content/themes/tmh20/tmh/tmh-bausteine.css
   Version: 1.8 · Stand 12.11.2026
   Eingebunden über functions.php (Version = filemtime).
   Gepflegt außerhalb des Grunt-Builds. Neues nur als neuer
   Abschnitt ans Ende, Bestehendes nicht umbauen.
   ========================================================== */


/* ----------------------------------------------------------
   01 Global – Sprunglinks
   Abstand für den fixen Header beim Springen zu #anker
   ---------------------------------------------------------- */
html { scroll-padding-top: 90px; }


/* ----------------------------------------------------------
   02 Veranstalter & Presse – Downloadbereich
   Gruppen-Überschriften und Hinweise (Custom-HTML-Widgets)
   zwischen den Post Loops der Pressedateien
   ---------------------------------------------------------- */
.tmh-dl-gruppe {
	font-size: 22px;
	line-height: 1.3;
	text-align: center;
	margin: 40px 0 20px;
}
.tmh-dl-hinweis {
	text-align: center;
	font-size: 14px;
	margin: 10px 0 30px;
}


/* ----------------------------------------------------------
   03 Produktionsseiten (CPT Musical) – Inhaltsbausteine
   Spieldauer-Box, Besetzungstabelle, Hinweis, Dateiliste
   ---------------------------------------------------------- */
.tmh-spieldauer {
	background: #f3f3f3;
	border-left: 4px solid #7ab317;
	padding: 15px 20px;
	margin: 25px 0;
}
.tmh-besetzung {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0 5px;
}
.tmh-besetzung td {
	padding: 10px 12px;
	border-bottom: 1px solid #e2e2e2;
	vertical-align: top;
}
.tmh-besetzung td:first-child {
	font-weight: 700;
	width: 45%;
}
.tmh-hinweis {
	font-size: 14px;
	font-style: italic;
	margin: 5px 0 25px;
}
.tmh-dateiliste {
	margin: 10px 0 15px;
}

@media (max-width: 600px) {
	.tmh-besetzung td {
		display: block;
		width: 100%;
		padding: 2px 0;
		border: 0;
	}
	.tmh-besetzung td:last-child {
		padding-bottom: 12px;
		border-bottom: 1px solid #e2e2e2;
	}
}


/* ----------------------------------------------------------
   04 Über uns – Team
   Neutrale Fläche mit Initialen für Teammitglieder ohne Foto
   (keine Platzhalterfotos mit falscher Person), Hinweis
   unter der Teamübersicht. Rund wie die Teamfotos.
   EINSTELLUNG: --tmh-foto-breite = Durchmesser der runden
   Teamfotos (wird auf schmalen Spalten automatisch kleiner).
   ---------------------------------------------------------- */
.tmh-person-ohnefoto {
	--tmh-foto-breite: 228px;
	width: var(--tmh-foto-breite);
	max-width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e6e6e6;
	color: #b5b5b5;
	font-size: 36px;
	font-weight: 700;
	letter-spacing: 2px;
	margin-bottom: 15px;
}
.tmh-team-hinweis {
	text-align: center;
	margin: 20px 0 10px;
}


/* ----------------------------------------------------------
   05 Produktion „In 80 Tagen um die Welt“ – Header
   Nur diese Seite (Post-ID 435): höherer Header, Titel unten,
   Gesichter im Foto bleiben frei. Verlauf statt flacher
   50-%-Abdunkelung (oben hell, unten dunkel für die Schrift).
   EINSTELLUNG: Höhe und Bildausschnitt (2. Wert = vertikal,
   kleiner = Bild weiter oben) hier anpassen.
   ---------------------------------------------------------- */
body.postid-435 .musical-header {
	min-height: 540px;
	display: flex;
	align-items: flex-end;
	padding-top: 60px;
	padding-bottom: 45px;
	background-position: 50% 30%;
}
body.postid-435 .musical-header .container {
	width: 100%;
}
body.postid-435 .musical-header .overlay-dark {
	background: linear-gradient(to bottom,
		rgba(0, 0, 0, 0.05) 0%,
		rgba(0, 0, 0, 0.15) 45%,
		rgba(0, 0, 0, 0.65) 100%);
}
body.postid-435 .musical-header .title,
body.postid-435 .musical-header .subtitle {
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
	body.postid-435 .musical-header {
		min-height: 360px;
		padding-bottom: 30px;
		background-position: 45% 30%;
	}
}


/* ----------------------------------------------------------
   06 Produktion „In 80 Tagen um die Welt“ – Inhaltstext
   Nur diese Seite (Post-ID 435): Text linksbündig statt
   zentriert, kleinerer Abstand zwischen Text und Trailer.
   Bausteine im Inhaltstext: .tmh-buttons (Schule/Familie),
   Spieldauer-Box und Besetzungstabelle auf voller Breite,
   Dateiliste ohne Aufzählungspunkte.
   ---------------------------------------------------------- */
body.postid-435 .content {
	text-align: left;
}
body.postid-435 .column > .has-margin-bottom-large {
	margin-bottom: 1.5rem;
}
.content .tmh-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 30px 0;
}
.content .tmh-buttons .button {
	margin: 0;
	flex: 1 1 300px;
	max-width: 370px;
	width: auto;
	min-width: 0;
}
.content .tmh-spieldauer {
	margin: 30px 0;
}
.content .tmh-spieldauer small {
	display: block;
	margin-top: 6px;
	color: #777;
}
.content table.tmh-besetzung {
	margin: 10px 0 5px;
}
.content table.tmh-besetzung td {
	padding: 10px 12px 10px 0;
	border-width: 0 0 1px;
	border-color: #e2e2e2;
}
.content ul.tmh-dateiliste {
	list-style: none;
	margin: 10px 0 15px;
	padding: 0;
}
.content ul.tmh-dateiliste li {
	margin: 0 0 6px;
}

@media (max-width: 600px) {
	.content table.tmh-besetzung td {
		display: block;
		width: 100%;
		padding: 2px 0;
		border: 0;
	}
	.content table.tmh-besetzung td:last-child {
		padding-bottom: 12px;
		border-bottom: 1px solid #e2e2e2;
	}
}


/* ----------------------------------------------------------
   07 Produktion „In 80 Tagen um die Welt“ – Fotogalerie
   Nur diese Seite (Post-ID 435), 5 Fotos:
   Desktop/Tablet alle 5 in einer Reihe (statt 4 bzw. 3),
   Handy erstes Foto groß, darunter 2 × 2 (statt 2+2+1).
   ---------------------------------------------------------- */
body.postid-435 .columns[data-featherlight-gallery] img {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 769px) {
	body.postid-435 .columns[data-featherlight-gallery] > .column {
		flex: 0 0 20%;
		width: 20%;
		max-width: 20%;
	}
}

@media (max-width: 768px) {
	body.postid-435 .columns[data-featherlight-gallery] > .column:first-child {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}
}


/* ----------------------------------------------------------
   08 Galerien – Bildunterschrift für die Lightbox
   Von tmh-script.js (01) neben jedem Galeriefoto eingefügt,
   im Raster unsichtbar; WP Featherlight zeigt sie beim
   Öffnen unter dem großen Foto an.
   ---------------------------------------------------------- */
.tmh-galerie-caption {
	display: none;
}


/* ----------------------------------------------------------
   09 Veranstalter & Presse – externe Download-Karte (Dropbox)
   Karte im Custom-HTML-Widget im Theme-Markup (card is-clickable),
   Link aber mit .tmh-dl-extern-link statt .is-clickable-link,
   damit das Theme-Skript ihn nicht im selben Tab öffnet
   (target="_blank" bleibt wirksam). Ganze Karte klickbar.
   ---------------------------------------------------------- */
.tmh-dl-extern .card {
	position: relative;
}
.tmh-dl-extern-link::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}
