/*
 * Tierseiten Manufaktur Basis – Element-CSS
 * Ausschließlich Variablen; keine Farb- oder Maßwerte fest codiert (Ausnahme: technische Werte wie 0, 1px, %).
 * Layout-Klassen (tsm-container, tsm-abschnitt, tsm-karte, tsm-raster-*, tsm-hero …) liegen als
 * GenerateBlocks-Pro-Global-Styles in der Datenbank.
 */

/* ---------- Schriften ---------- */
body,
button,
input,
select,
textarea {
	font-family: var(--schrift-text);
}
h1, h2, h3, h4, h5, h6,
.site-title {
	font-family: var(--schrift-ueberschrift);
}
h1, h2, h3, h4, h5, h6 {
	font-weight: var(--ueberschrift-gewicht);
}

/* ---------- Kopfbereich an Containerbreite ausrichten ---------- */
.site-header .inside-header.grid-container,
.main-navigation .inside-navigation.grid-container {
	max-width: calc(var(--container-standard) + 2 * var(--seitenrand));
	padding-left: var(--seitenrand);
	padding-right: var(--seitenrand);
}

.site-branding-container {
	flex-wrap: wrap;
	max-width: 100%;
	min-width: 0;
}
.site-branding,
.main-title {
	min-width: 0;
	overflow-wrap: anywhere;
}
@media (max-width: 767px) {
	.site-header .header-image {
		width: var(--logo-breite-mobil);
	}
}

/* ---------- Links im Inhalt ---------- */
.entry-content a:not(.wp-element-button):not(.wp-block-button__link) {
	text-decoration: var(--link-dekoration);
	text-underline-offset: 0.18em;
}

/* ---------- Buttons ---------- */
.wp-block-button__link,
.wp-element-button,
a.button,
button:not(.menu-toggle):not(.dropdown-menu-toggle):not(.search-item),
input[type="submit"] {
	border-radius: var(--radius-button);
	font-weight: var(--button-gewicht);
	padding: var(--button-innen);
}
.wp-block-buttons {
	gap: 12px 16px;
}
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background: transparent;
	color: var(--primaer);
	border: var(--button-rahmen) solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus {
	background: var(--primaer);
	border-color: var(--primaer);
	color: var(--weiss);
}
.wp-block-button.is-style-tsm-hell > .wp-block-button__link {
	background: var(--weiss);
	color: var(--primaer-dunkel);
}

/* ---------- Fokus (Barrierearmut) ---------- */
:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--primaer);
	outline-offset: 2px;
}
.tsm-flaeche-primaer :where(a, button, summary):focus-visible {
	outline-color: var(--weiss);
}

/* ---------- Bilder ---------- */
.tsm-bild img,
.wp-block-image.tsm-bild img {
	border-radius: var(--radius-bild);
	display: block;
	height: auto;
	width: 100%;
}
.tsm-hero-bild {
	margin: 0;
	height: 100%;
}
.tsm-hero-bild img {
	border-radius: var(--radius-bild);
	height: 100%;
	min-height: var(--hero-bild-hoehe);
	object-fit: cover;
	width: 100%;
}
@media (max-width: 767px) {
	.tsm-hero-bild img {
		aspect-ratio: var(--bild-verhaeltnis-mobil);
		min-height: 0;
	}
}

/* ---------- Kurzfassung / Hinweis ---------- */
.tsm-hinweis .tsm-hinweis-titel,
.tsm-karte .tsm-hinweis-titel {
	font-family: var(--schrift-text);
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-hell);
}

/* ---------- Checkliste ---------- */
ul.is-style-tsm-checkliste {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}
ul.is-style-tsm-checkliste > li {
	position: relative;
	padding-left: 1.8em;
	margin-bottom: 0.5em;
}
ul.is-style-tsm-checkliste > li::before {
	content: "";
	position: absolute;
	left: 0.15em;
	top: 0.35em;
	width: 0.9em;
	height: 0.5em;
	border-left: 2px solid var(--primaer);
	border-bottom: 2px solid var(--primaer);
	transform: rotate(-45deg);
}

/* ---------- Quellen ---------- */
.tsm-quellen {
	font-size: 0.9em;
	color: var(--text-hell);
}

/* ---------- FAQ (core/details, ohne JavaScript) ---------- */
.wp-block-details.is-style-tsm-faq {
	border-bottom: 1px solid var(--rahmen);
	padding: 0.9em 0;
	margin: 0;
}
.wp-block-details.is-style-tsm-faq:first-of-type {
	border-top: 1px solid var(--rahmen);
}
.wp-block-details.is-style-tsm-faq > summary {
	cursor: pointer;
	font-weight: var(--button-gewicht);
	list-style-position: outside;
}
.wp-block-details.is-style-tsm-faq > summary + * {
	margin-top: 0.75em;
}
.wp-block-details.is-style-tsm-faq > :last-child {
	margin-bottom: 0;
}

/* ---------- Kundenstimmen ---------- */
.wp-block-quote.is-style-tsm-stimme {
	border-left: 0;
	margin: 0;
	padding: 0;
	font-style: normal;
}
.wp-block-quote.is-style-tsm-stimme cite {
	display: block;
	margin-top: 0.75em;
	font-style: normal;
	font-size: 0.9em;
	color: var(--text-hell);
}

/* ---------- Kontaktdaten, Social, Menüs aus Shortcodes ---------- */
.tsm-kontaktdaten p:last-child {
	margin-bottom: 0;
}
.tsm-social,
.tsm-menue ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tsm-social li,
.tsm-menue li {
	margin: 0 0 0.4em;
}
.tsm-redaktion-hinweis {
	border: 1px dashed var(--akzent);
	padding: 0.5em 0.75em;
	font-size: 0.9em;
}
