/*
Theme Name: Tanja Steinbach
Theme URI: https://www.tanjasteinbach.de/
Author: huck.one
Author URI: https://huck.one/
Description: Child-Theme von Twenty Twenty-Five. Bildet das bisherige Erscheinungsbild (Zuki) für tanjasteinbach.de nach.
Template: twentytwentyfive
Version: 1.0.8
Requires at least: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: tanja-steinbach
*/

/* ---------- Grundlagen ---------- */
:root {
	--ts-linie: 1px solid var(--wp--preset--color--linie);
	--ts-sans: var(--wp--preset--font-family--karla);
	--ts-serif: var(--wp--preset--font-family--libre-baskerville);
}
body { -webkit-font-smoothing: antialiased; }
.ts-haupt { padding-bottom: 20px; }
.ts-haupt > .alignwide,
.ts-kopf > .alignwide,
.ts-fuss > .alignwide { margin-block-start: 0; }
.wp-block-post-title a,
.ts-karten-titel a { color: inherit; }
img { height: auto; }

/* Rubrik-Überschriften (BÜCHER, ANLEITUNGEN, Widget-Titel) */
.ts-abschnitt,
.ts-abschnitt a {
	font-family: var(--ts-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--wp--preset--color--schwarz);
}
.ts-abschnitt { margin: 0 0 30px; }
.ts-linie { border-top: var(--ts-linie); padding-top: 18px; }

/* ---------- Kopf ---------- */
.ts-kopf { padding-top: 45px; }
.ts-kopf-oben { gap: 30px; align-items: flex-start; }
.ts-marke { width: 476px; max-width: 100%; }
.ts-logo { margin: 0; }
.ts-logo img { width: 476px; max-width: 100%; display: block; }
.ts-tagline {
	margin: 12px 0 0 12px;
	font-family: var(--ts-serif);
	font-style: italic;
	font-size: 11px;
	line-height: 1.4;
}
.ts-tagline::before { content: "—\00a0\00a0\00a0\00a0\00a0"; font-style: normal; }

.ts-nav-oben {
	max-width: 460px;
	padding-top: 2px;
	font-family: var(--ts-sans);
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	line-height: 2.5;
	column-gap: 20px !important;
	row-gap: 0 !important;
}

.ts-nav-haupt {
	margin-top: 32px !important;
	font-family: var(--ts-serif);
	font-size: 23px;
	column-gap: 44px !important;
}
.ts-nav-haupt .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--weiss) !important;
	border: 0 !important;
	padding: 10px 0;
	font-family: var(--ts-sans);
	font-size: 14px;
}
/* Breite nur im geöffneten Zustand, sonst schieben die versteckten Untermenüs die Seite seitlich auf */
.ts-nav-haupt .has-child:hover > .wp-block-navigation__submenu-container,
.ts-nav-haupt .has-child:focus-within > .wp-block-navigation__submenu-container,
.ts-nav-haupt .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
	min-width: 220px !important;
}
.ts-nav-haupt .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 6px 20px !important; }
.ts-nav-haupt .wp-block-navigation__submenu-icon { display: none; }

/* Inhalte filtern */
.ts-filter { margin-top: 16px !important; text-align: center; }
.ts-filter > summary {
	display: inline-block;
	cursor: pointer;
	font-family: var(--ts-sans);
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	list-style: none;
}
.ts-filter > summary::-webkit-details-marker { display: none; }
.ts-filter > summary::before { content: "\25B6\FE0E"; font-size: 8px; margin-right: 6px; vertical-align: 1px; }
.ts-filter[open] > summary::before { content: "\25BC\FE0E"; }
.ts-filter-spalten {
	margin-top: 25px !important;
	padding: 30px;
	background: var(--wp--preset--color--weiss);
	text-align: left;
	font-family: var(--ts-sans);
	font-size: 13px;
}
.ts-filter-spalten ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Slider ---------- */
.ts-slider {
	position: relative;
	margin-top: 36px !important;
	background: var(--wp--preset--color--weiss);
}
.ts-slider .ts-slider-spur {
	display: flex !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	margin: 0;
	padding: 0;
	gap: 0;
}
.ts-slider .ts-slider-spur::-webkit-scrollbar { display: none; }
.ts-slider .ts-slider-spur > li {
	flex: 0 0 100%;
	scroll-snap-align: start;
	margin: 0 !important;
	list-style: none;
}
.ts-slide { display: grid; margin: 0; }
.ts-slide > * { grid-area: 1 / 1; margin: 0 !important; }
.ts-slide-bild img { width: 100%; height: 100%; object-fit: cover; }
/* Ist der Textkasten höher als das Bild (z. B. Tablet quer), wächst das Bild mit statt eine Fläche frei zu lassen */
@media (min-width: 782px) {
	.ts-slide-bild > a { display: block; height: 100%; }
	.ts-slide-bild img { min-height: 100%; }
}
.ts-slide-box {
	justify-self: end;
	align-self: start;
	width: 400px;
	margin: 40px 40px 40px 0 !important;
	padding: 40px 20px 30px;
	background: rgba(255, 255, 255, 0.95);
	position: relative;
	z-index: 1;
}
.ts-slide-titel { margin: 0 0 30px; hyphens: auto; -webkit-hyphens: auto; }
.ts-slide-titel a { color: inherit; }
.ts-slide-box .ts-von { font-family: var(--ts-serif); font-style: italic; font-size: 14px; margin-bottom: 20px; }
.ts-slide-box .ts-anriss { font-size: 12.5px; line-height: 1.65; }
.ts-pfeil {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--schwarz);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.ts-pfeil-zurueck { left: -64px; }
.ts-pfeil-weiter { right: -64px; }

/* ---------- Zwei Spalten (Inhalt + Seitenleiste) ---------- */
.ts-zweispaltig {
	margin-top: 60px !important;
	column-gap: 120px !important;
	align-items: flex-start !important;
}
.ts-hauptspalte { min-width: 0; }
.ts-linie-oben { border-top: var(--ts-linie); padding-top: 30px; }

/* Karten (Anleitungen / Bücher) */
.ts-karten .wp-block-post-template { column-gap: 30px !important; row-gap: 50px !important; }
.ts-karten .wp-block-post-template > li > * { margin-block-start: 0; margin-block-end: 0; }
.ts-karten .wp-block-post-featured-image { margin-bottom: 26px !important; }
.ts-karten-titel {
	font-family: var(--ts-sans);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 10px !important;
	hyphens: auto;
	-webkit-hyphens: auto;
}
.ts-von { gap: 0.3em !important; }
.ts-von p { margin: 0; }
.ts-von-klein { font-family: var(--ts-serif); font-style: italic; font-size: 10.5px; margin-bottom: 20px !important; }
.ts-karten .ts-anriss { font-size: 13px; line-height: 1.6; margin-bottom: 20px !important; }
.ts-anriss p { margin: 0; }
.ts-meta,
.ts-kategorien,
.ts-meta a,
.ts-kategorien a {
	font-family: var(--ts-serif);
	font-style: italic;
	font-size: 11px;
	line-height: 1.5;
	color: var(--wp--preset--color--schwarz);
}
.ts-meta { gap: 0 !important; }
.ts-meta p { margin: 0; }
.ts-meta .wp-block-shortcode,
.ts-meta > p:empty { margin: 0; }
.ts-kommentare::before { content: "\00a0—\00a0"; }

.ts-alle { margin: 50px 0 60px !important; padding-top: 40px; font-size: 17px; }
.ts-alle a { color: inherit; }

.ts-buecher { padding: 20px; margin-top: 0 !important; }
.ts-karten-klein .wp-block-post-template { column-gap: 40px !important; }
.ts-karten-klein .wp-block-post-featured-image { margin-bottom: 16px !important; }
.ts-karten-klein .ts-kategorien { margin-bottom: 2px !important; }
.ts-karten-klein .ts-karten-titel { font-size: 15px; line-height: 1.3; }
.ts-karten-klein .ts-anriss { font-size: 11px; margin-bottom: 12px !important; }

/* ---------- Seitenleiste ---------- */
.ts-seitenleiste { min-width: 0; }
.ts-widget { border-top: var(--ts-linie); padding-top: 15px; margin: 0 0 60px !important; }
.ts-widget .ts-abschnitt { margin-bottom: 30px; }
.ts-widget-suche .wp-block-search__input {
	border: 0;
	background: var(--wp--preset--color--feld);
	padding: 12px 10px;
	font-family: var(--ts-sans);
	font-size: 13px;
	border-radius: 0;
}
.ts-sozial { gap: 8px !important; }
.ts-sozial .wp-social-link { padding: 0 !important; }
.ts-sozial .wp-social-link a { padding: 9px !important; }
.ts-sozial .wp-social-link svg { width: 14px; height: 14px; }
.ts-termine .wp-block-image { margin: 0 0 16px; }
.ts-termine-link { font-family: var(--ts-sans); font-weight: 700; font-size: 13px; line-height: 1.5; margin: 0; }
.ts-termine-link a { color: inherit; }
.ts-liste { padding: 0; margin: 0; list-style: none; font-family: var(--ts-sans); font-size: 13px; line-height: 1.35; }
.ts-liste li { margin-bottom: 10px; }
.ts-liste a { color: inherit; }
.ts-seitenleiste select,
.ts-filter select { font-family: var(--ts-sans); font-size: 13px; max-width: 100%; }

/* ---------- Beitrag, Seite, Archiv ---------- */
.ts-kategorien-oben { margin-bottom: 40px !important; }
.ts-kategorien-oben a { color: inherit; }
.ts-meta-oben { gap: 0.35em !important; margin-bottom: 4px !important; }
.ts-titel { margin: 0 0 20px !important; }
.ts-titel-seite { margin-top: 30px !important; }
.ts-von-sans { font-family: var(--ts-sans); font-size: 13px; margin-bottom: 25px !important; }
.ts-von-sans .wp-block-post-author-name { font-weight: 700; }
.ts-beitragsbild { margin: 0 0 40px !important; }
.ts-beitragsbild img { width: 100%; }
.ts-inhalt { font-size: 15px; line-height: 1.75; }
.ts-inhalt a { border-bottom: 1px solid currentColor; }
.ts-inhalt a:has(img) { border-bottom: 0; }
.ts-inhalt-eingerueckt,
.ts-eingerueckt { padding-left: 40px; max-width: 680px; }
.ts-inhalt h2, .ts-inhalt h3, .ts-inhalt h4 { margin-top: 1.8em; }
.ts-inhalt figcaption { text-align: center; font-size: 12px; }
.ts-schlagwoerter { font-family: var(--ts-sans); font-size: 12px; padding-left: 40px; margin-top: 30px !important; }
.ts-blaettern { border-top: var(--ts-linie); padding-top: 20px; margin-top: 50px !important; font-family: var(--ts-sans); font-size: 13px; }
.ts-kommentarbereich { margin-top: 50px !important; padding-left: 40px; max-width: 680px; }
.ts-kommentar { border-top: var(--ts-linie); padding: 20px 0; font-size: 13px; }
.ts-kommentar .wp-block-comment-author-name { font-family: var(--ts-sans); font-weight: 700; }
.ts-kommentar .wp-block-comment-date { font-style: italic; font-size: 11px; }

.ts-archivtitel { margin-bottom: 40px !important; }
.ts-trenner-oben { margin: 0 0 40px !important; }
.ts-liste-beitraege .ts-eintrag { margin-bottom: 80px; }
.ts-liste-beitraege .ts-meta { margin-top: 25px !important; }
.ts-seiten { font-family: var(--ts-sans); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Fuß ---------- */
.ts-fuss { margin-top: 60px; padding-bottom: 60px; }
.ts-fuss-spalten { max-width: 984px !important; margin-left: auto; column-gap: 30px !important; }
.ts-fuss-spalten > .wp-block-column { margin: 0 !important; }
.ts-fuss .wp-block-latest-posts.ts-liste li { margin-bottom: 6px; }
.ts-nav-liste {
	font-family: var(--ts-sans);
	font-size: 13px;
	line-height: 1.35;
	row-gap: 10px !important;
}
.ts-impressum-zeile { border-top: var(--ts-linie); margin-top: 90px !important; padding-top: 40px; }
.ts-fuss-tagline { font-family: var(--ts-sans); font-weight: 700; font-size: 17px; margin: 0 0 20px; }
.ts-copyright { font-family: var(--ts-sans); font-size: 11px; margin: 0; }
.ts-copyright a { color: inherit; }

/* Fuß-Spalten links bündig wie bisher */
@media (min-width: 782px) {
	.ts-fuss-spalten { margin-left: max(0px, calc((100% - 1200px) / 2)) !important; margin-right: auto !important; }
}

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1340px) {
	.ts-pfeil {
		background: rgba(255, 255, 255, 0.85);
		border-radius: 50%;
	}
	.ts-pfeil-zurueck { left: 10px; }
	.ts-pfeil-weiter { right: 10px; }
}
@media (max-width: 1100px) {
	.ts-zweispaltig { column-gap: 50px !important; }
}
@media (max-width: 781px) {
	.ts-kopf { padding-top: 25px; position: relative; }
	.ts-nav-oben { display: none !important; }
	.ts-nav-haupt { margin-top: 24px !important; font-size: 19px; column-gap: 24px !important; }
	.ts-filter { margin-top: 24px !important; }
	.ts-slide { display: block; }
	.ts-slide-box { display: none; }
	.ts-pfeil { top: 50%; }
	.ts-zweispaltig { margin-top: 40px !important; }
	.ts-hauptspalte, .ts-seitenleiste { flex-basis: 100% !important; }
	.ts-karten .wp-block-post-template { grid-template-columns: 1fr !important; }
	.ts-titel { font-size: 30px !important; }
	.ts-inhalt-eingerueckt, .ts-eingerueckt, .ts-schlagwoerter, .ts-kommentarbereich { padding-left: 0; }
	.ts-fuss-spalten { margin-left: 0 !important; }
}
/* Unter 600 px zeigt WordPress das Menü-Symbol: es sitzt rechts in der Logozeile */
@media (max-width: 599px) {
	.ts-marke { width: calc(100% - 56px); }
	.ts-nav-haupt { position: absolute !important; top: 28px; right: 20px; margin: 0 !important; justify-content: flex-end !important; }
}
