/* ==========================================================================
   Grünes Herz – Typografie (optional)
   Schriftgrößen und Zeilenabstände. Die Schrift selbst (Source Sans Pro)
   kommt aus gh-fonts.css und gilt immer, auch ohne diese Vorlage.

   Fließtext 18 px auf allen Bildschirmbreiten. Überschriften voll erreicht
   ab 1000 px Fensterbreite; darunter skalieren sie per clamp() bis 375 px
   herunter.
   ========================================================================== */

:root {
	--gh-fs-body:  1.125rem;                                         /* 18 px */
	--gh-fs-small: 1rem;
	--gh-fs-h1:    clamp(1.75rem, 1.2250rem + 2.2400vw, 2.625rem);  /* 28 -> 42 px */
	--gh-fs-h2:    clamp(1.5rem, 1.2000rem + 1.2800vw, 2rem);       /* 24 -> 32 px */
	--gh-fs-h3:    clamp(1.3125rem, 1.1250rem + 0.8000vw, 1.625rem); /* 21 -> 26 px */
	--gh-fs-h4:    clamp(1.1875rem, 1.0750rem + 0.4800vw, 1.375rem); /* 19 -> 22 px */
	--gh-fs-h5:    clamp(1.125rem, 1.0500rem + 0.3200vw, 1.25rem);  /* 18 -> 20 px */
	--gh-lh-body:  1.5;
	--gh-lh-head:  1.2;
	--gh-lh-head-lg: 1.1;   /* H1/H2: große Grade brauchen engeren Durchschuss */

	--th-body-font-size: var(--gh-fs-body);
	--th-body-line-height: var(--gh-lh-body);
}

/* --------------------------------------------------------------------------
   Überschriften (Schrift selbst: gh-fonts.css)
   -------------------------------------------------------------------------- */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
	line-height: var(--gh-lh-head);
}

/* Lange deutsche Komposita ("Landesverwaltungsamt") laufen bei großer Schrift
   sonst über schmale Spalten/Karten hinaus -> Silbentrennung (benötigt lang="de") */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6,
.th-card p, .th-txt p, [class*="col-"] p {
	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: break-word;
	hyphenate-limit-chars: 10 4 4;
}

/* --------------------------------------------------------------------------
   Größen
   -------------------------------------------------------------------------- */
body {
	font-size: var(--gh-fs-body);
	line-height: var(--gh-lh-body);
}

h1, .h1 { font-size: var(--gh-fs-h1); line-height: var(--gh-lh-head-lg); }
h2, .h2 { font-size: var(--gh-fs-h2); line-height: var(--gh-lh-head-lg); padding-bottom: 1.2rem; }
h3, .h3 { font-size: var(--gh-fs-h3); margin-bottom: .5rem; }
h4, .h4 { font-size: var(--gh-fs-h4); }
h5, .h5 { font-size: var(--gh-fs-h5); }

.small, small { font-size: var(--gh-fs-small); }

/* Slider */
.th-slider .th-txt h2 {
	font-size: clamp(1.25rem, 1.0250rem + 0.9600vw, 1.625rem);   /* 20 -> 26 px */
	padding-bottom: .5rem;
}
.th-slider .th-txt h3,
.th-slider .th-txt h4,
.th-slider .th-txt h5,
.th-slider .th-txt h6 {
	font-size: clamp(1.125rem, 0.9750rem + 0.6400vw, 1.375rem);  /* 18 -> 22 px */
}

/* Kleinere Texte in Teasern / Social Wall */
#post-container p,
.th-txt p a,
.th-weather-head {
	font-size: clamp(1rem, 0.8800rem + 0.5120vw, 1.2rem);
}

.news-list-view .th-txt h3 {
	font-size: clamp(1.25rem, 1.0400rem + 0.8960vw, 1.6rem);
}
.news-list-view .th-txt .th-mta {
	margin-bottom: .3rem;
}

.btn-primary {
	font-size: clamp(1rem, 0.8800rem + 0.5120vw, 1.2rem);
	padding: 8px 16px;
}

/* Teaser/Vorspann (z. B. News-/Veranstaltungs-Detail): fett, Fließtextgröße */
.lead,
.news-single .lead {
	font-family: var(--gh-font-bold);
	font-weight: 700;
	font-size: var(--gh-fs-body);
	line-height: var(--gh-lh-body);
}

/* Akkordeon-Titel: 17–20px, fett – passend zum Fließtext (18px) */
.accordion-button {
	font-family: var(--gh-font-bold);
	font-weight: 700;
	font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
	line-height: 1.35;
}

/* Schmale Spalten (Seitenspalten, Karten in 3/12 und 4/12): Text 18px,
   Überschriften 20-22px, damit lange Wörter nicht mehrfach umbrechen */
@media (min-width: 768px) {
	:is([class*="col-md-3"], [class*="col-lg-3"], [class*="col-md-4"], [class*="col-lg-4"]) {
		--th-body-font-size: 1.125rem;
		font-size: 1.125rem;
	}
	:is([class*="col-md-3"], [class*="col-lg-3"], [class*="col-md-4"], [class*="col-lg-4"]) :is(p, li, dd, dt, td, th, .th-lst-body a, .th-lst-body li) {
		font-size: 1.125rem;
	}
	:is([class*="col-md-3"], [class*="col-lg-3"], [class*="col-md-4"], [class*="col-lg-4"]) :is(h2, .h2, h3, .h3, h4, .h4) {
		font-size: clamp(1.25rem, 1.0400rem + 0.4480vw, 1.375rem);
	}
	:is([class*="col-md-3"], [class*="col-lg-3"], [class*="col-md-4"], [class*="col-lg-4"]) :is(h5, .h5, h6, .h6) {
		font-size: 1.25rem;
	}
}

/* Seitenspalte (Seitenlayout mit rechter Spalte, .th-cols-hi): Text und
   Linklisten einheitlich 18px */
.th-content.th-cols-hi > .th-container > .th-box:last-child:not(:first-child) {
	--th-body-font-size: 1.125rem;
	font-size: 1.125rem;
}
.th-content.th-cols-hi > .th-container > .th-box:last-child:not(:first-child) :is(p, li, dd, dt, td, th, .th-lst-body > li > a) {
	font-size: 1.125rem;
}
.th-content.th-cols-hi > .th-container > .th-box:last-child:not(:first-child) :is(h2, .h2, h3, .h3, h4, .h4) {
	font-size: clamp(1.25rem, 1.0400rem + 0.4480vw, 1.375rem);
}
/* Linklisten in schmalen Spalten wie der Text daneben */
@media (min-width: 768px) {
	:is([class*="col-md-3"], [class*="col-lg-3"], [class*="col-md-4"], [class*="col-lg-4"]) .th-lst-body > li > a {
		font-size: 1.125rem;
	}
}

/* Footer: 16px unabhängig von der Fließtextgröße */
.th-footer {
	--th-body-font-size: 1rem;
	font-size: 1rem;
}
.th-footer :is(p, li, a):not(.h2) {
	font-size: 1rem;
}
