/**
 * TTH Nachtschicht — Stylesheet
 *
 * Dunkler Grund, Saira Condensed als Display-Schrift, IBM Plex für Text und
 * Daten. Tiefe entsteht über abgesetzte Flächen und Haarlinien, nicht über
 * Schatten. Rot bleibt Signalfarbe für Handlungen, Blau und Grün trennen die
 * Disziplinen.
 *
 * Abstände kommen ausnahmslos aus den Tokens in inc/dynamic-css.php:
 * --tth-sp-1..8 innerhalb eines Bauteils, --tth-section-y, --tth-gutter,
 * --tth-card-pad und --tth-head-gap für alles darüber.
 */

/* ---------------------------------------------------------------- Basis */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--tth-dark);
	color: var(--tth-text);
	font-family: var(--tth-ff-body);
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

img {
	height: auto;
	max-width: 100%;
}

a {
	color: var(--tth-primary);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--tth-text);
	font-family: var(--tth-ff-heading);
	letter-spacing: 0.005em;
	line-height: 0.98;
	margin: 0;
	text-transform: uppercase;
	text-wrap: balance;
}

p {
	margin: 0 0 var(--tth-sp-4);
}

p:last-child {
	margin-bottom: 0;
}

:focus-visible {
	outline: 2px solid var(--tth-accent-1);
	outline-offset: 3px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	background: var(--tth-primary);
	color: #0b0f11;
	left: 0;
	padding: var(--tth-sp-3) var(--tth-sp-5);
	position: absolute;
	top: -100px;
	z-index: 999;
}

.skip-link:focus {
	top: 0;
}

.tth-container {
	margin: 0 auto;
	max-width: var(--tth-container, 1280px);
	padding: 0 clamp(18px, 4.5vw, 56px);
	width: 100%;
}

.tth-icon {
	height: 1em;
	width: 1em;
}

.tth-post-meta,
.tth-member-role,
.tth-fact-label,
.tth-step-number,
.tth-card-link,
.tth-section-note,
.tth-day-name,
.tth-unit-time,
.tth-unit-note,
.tth-copyright,
.tth-footer .widget-title {
	font-family: var(--tth-ff-mono);
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------- Buttons */

.tth-button {
	border: 1px solid transparent;
	border-radius: var(--tth-radius, 0);
	cursor: pointer;
	display: inline-block;
	font-family: var(--tth-ff-heading);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	line-height: 1;
	padding: var(--tth-control-py) var(--tth-control-px);
	text-transform: uppercase;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.tth-button:hover,
.tth-button:focus {
	text-decoration: none;
}

.tth-button-primary {
	background: var(--tth-primary);
	border-color: var(--tth-primary);
	color: #0b0f11;
}

.tth-button-primary:hover,
.tth-button-primary:focus {
	background: var(--tth-primary-dark);
	border-color: var(--tth-primary-dark);
	color: #0b0f11;
}

.tth-button-ghost {
	background: transparent;
	border-color: var(--tth-rule-strong);
	color: var(--tth-text);
}

.tth-button-ghost:hover,
.tth-button-ghost:focus {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--tth-text);
	color: var(--tth-text);
}

/* ---------------------------------------------------------------- Header */

.tth-header {
	background: var(--tth-dark);
	border-bottom: 1px solid var(--tth-rule);
	position: relative;
	z-index: 100;
}

.has-sticky-header .tth-header {
	position: sticky;
	top: 0;
}

.has-transparent-header .tth-header {
	background: transparent;
	border-bottom-color: transparent;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.has-transparent-header.has-sticky-header .tth-header {
	position: fixed;
}

.has-transparent-header .tth-header.is-stuck {
	background: rgba(11, 15, 17, 0.92);
	backdrop-filter: blur(12px);
	border-bottom-color: var(--tth-rule);
}

.tth-header-inner {
	align-items: center;
	display: flex;
	gap: clamp(14px, 3vw, 36px);
	justify-content: space-between;
	min-height: 66px;
}

.tth-branding {
	flex-shrink: 0;
	line-height: 0;
}

.tth-branding img,
.custom-logo {
	display: block;
	height: var(--tth-logo-h, 64px);
	object-fit: contain;
	width: auto;
}

.tth-site-title {
	color: var(--tth-text);
	display: block;
	font-family: var(--tth-ff-heading);
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1;
	text-transform: uppercase;
}

.tth-site-title:hover {
	text-decoration: none;
}

.tth-nav {
	margin-left: auto;
}

.tth-menu {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(12px, 2vw, 26px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.tth-menu a {
	color: var(--tth-muted);
	display: block;
	font-family: var(--tth-ff-heading);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.07em;
	padding: 6px 0;
	text-transform: uppercase;
}

.tth-menu a:hover,
.tth-menu a:focus,
.tth-menu .current-menu-item > a,
.tth-menu a.is-current-section {
	color: var(--tth-text);
	text-decoration: none;
}

.tth-menu li {
	position: relative;
}

.tth-menu .sub-menu {
	background: var(--tth-light-bg);
	border: 1px solid var(--tth-rule);
	display: none;
	list-style: none;
	margin: 0;
	min-width: 200px;
	padding: var(--tth-sp-2) 0;
	position: absolute;
	z-index: 20;
}

.tth-menu li:hover > .sub-menu,
.tth-menu li:focus-within > .sub-menu {
	display: block;
}

.tth-menu .sub-menu a {
	padding: var(--tth-sp-2) var(--tth-sp-4);
}

.tth-header-actions {
	align-items: center;
	display: flex;
	gap: var(--tth-sp-1);
}

.tth-icon-button {
	background: none;
	border: 0;
	color: var(--tth-muted);
	cursor: pointer;
	display: inline-flex;
	font-size: 20px;
	padding: 10px;
}

.tth-icon-button:hover {
	color: var(--tth-text);
}

.tth-menu-toggle {
	display: none;
}

.tth-search-panel,
.tth-mobile-nav {
	background: var(--tth-light-bg);
	border-bottom: 1px solid var(--tth-rule);
	padding: var(--tth-sp-4) 0;
}

.tth-mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0 clamp(18px, 4.5vw, 56px);
}

.tth-mobile-menu a {
	border-bottom: 1px solid var(--tth-rule);
	color: var(--tth-text);
	display: block;
	font-family: var(--tth-ff-heading);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: var(--tth-sp-3) 0;
	text-transform: uppercase;
}

.tth-mobile-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 var(--tth-sp-4);
}

.tth-submenu-toggle {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	float: right;
	padding: var(--tth-sp-3);
}

@media (max-width: 1040px) {
	.tth-nav {
		display: none;
	}

	.tth-menu-toggle {
		display: inline-flex;
	}

	.tth-header-inner {
		min-height: 60px;
	}
}

/* ------------------------------------------------------------------ Hero */

.tth-hero {
	align-items: flex-end;
	background-color: #08191f;
	background-position: var(--tth-hero-pos, center center);
	background-repeat: no-repeat;
	background-size: cover;
	border-bottom: 1px solid var(--tth-rule);
	display: flex;
	min-height: var(--tth-hero-h, 66vh);
	position: relative;
}

.tth-hero.no-image {
	background-image: linear-gradient(115deg, #07161c 0%, #0d2a35 52%, #123c46 100%);
}

.tth-hero-overlay {
	background: linear-gradient(90deg, rgba(11, 15, 17, 0.94) 0%, rgba(11, 15, 17, 0.6) 55%, rgba(11, 15, 17, 0.32) 100%);
	inset: 0;
	opacity: var(--tth-hero-overlay, 0.5);
	position: absolute;
}

.tth-hero-inner {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	padding-bottom: clamp(40px, 7vw, 76px);
	padding-top: clamp(110px, 15vw, 180px);
	position: relative;
	z-index: 1;
}

.tth-hero-title {
	color: var(--tth-text);
	font-size: clamp(2.8rem, 10vw, 7.4rem);
	font-weight: 800;
	letter-spacing: -0.005em;
	line-height: 0.9;
	margin: 0;
	max-width: 13ch;
	text-transform: uppercase;
}

.tth-hero-subtitle {
	color: #fff;
	font-family: var(--tth-ff-mono);
	font-size: clamp(0.68rem, 1.5vw, 0.82rem);
	letter-spacing: 0.26em;
	margin: 0 0 var(--tth-sp-5);
	order: -1;
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
	text-transform: uppercase;
}

.tth-hero-inner .tth-button {
	margin-top: var(--tth-sp-6);
}

/* -------------------------------------------------------------- Sektionen */

.tth-section {
	border-bottom: 1px solid var(--tth-rule);
	padding: var(--tth-section-y) 0;
}

/* Flächenwechsel: „weiß" ist hier die Grundfläche, „hell" die abgesetzte. */
.is-bg-white {
	background: var(--tth-surface);
}

.is-bg-light {
	background: var(--tth-light-bg);
}

.is-bg-tinted {
	background: var(--tth-tinted);
}

.is-bg-dark,
.tth-section.is-dark {
	background: var(--tth-sunk);
}

.is-bg-accent {
	background: var(--tth-primary);
	color: #0b0f11;
}

.is-bg-accent h1,
.is-bg-accent h2,
.is-bg-accent h3,
.is-bg-accent .tth-section-note {
	color: #0b0f11;
}

.tth-section-head {
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	gap: var(--tth-sp-3) var(--tth-sp-6);
	justify-content: space-between;
	margin-bottom: var(--tth-head-gap);
}

.tth-section-title {
	font-size: clamp(2rem, 5.2vw, 3.8rem);
	font-weight: 800;
}

.tth-section-note {
	color: var(--tth-faint);
	font-size: 0.68rem;
	margin: 0;
	padding-bottom: 4px;
}

.tth-section-lead {
	color: var(--tth-muted);
	font-size: 1.05rem;
	margin: calc(var(--tth-head-gap) * -0.5) 0 var(--tth-head-gap);
	max-width: 62ch;
}

.tth-section-foot {
	margin-top: var(--tth-sp-7);
}

/* --------------------------------------------------------- Trainingswoche */

/* grid-auto-flow: column statt fester Spaltenzahl — dadurch bestimmt die
   Zahl der SICHTBAREN Tage die Spalten. Werden unten leere Tage ausgeblendet,
   verbreitern sich die übrigen, statt Lücken zu lassen. */
.tth-week {
	background: var(--tth-rule);
	border: 1px solid var(--tth-rule);
	display: grid;
	gap: 1px;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
}

.tth-day {
	background: var(--tth-light-bg);
	display: flex;
	flex-direction: column;
	min-height: 200px;
}

.is-bg-white .tth-day,
.is-bg-dark .tth-day {
	background: var(--tth-surface);
}

.tth-day-name {
	border-bottom: 1px solid var(--tth-rule);
	color: var(--tth-faint);
	font-family: var(--tth-ff-mono);
	font-size: 0.66rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	margin: 0;
	padding: var(--tth-sp-3);
}

.tth-day.is-weekend .tth-day-name {
	color: var(--tth-muted);
}

.tth-day-empty {
	align-items: center;
	color: var(--tth-faint);
	display: flex;
	flex: 1;
	font-family: var(--tth-ff-mono);
	justify-content: center;
	margin: 0;
	opacity: 0.45;
}

.tth-unit {
	border-bottom: 1px solid var(--tth-rule);
	border-left: 3px solid transparent;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: var(--tth-sp-3);
}

.tth-unit:last-child {
	border-bottom: 0;
}

.tth-unit-time {
	color: var(--tth-text);
	font-size: 0.84rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.06em;
}

.tth-unit-disc {
	font-family: var(--tth-ff-heading);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.tth-unit-place {
	color: var(--tth-muted);
	font-size: 0.82rem;
	line-height: 1.35;
}

.tth-unit-note {
	color: var(--tth-faint);
	font-size: 0.58rem;
}

.tth-unit.is-swim {
	border-left-color: var(--tth-accent-1);
}

.tth-unit.is-swim .tth-unit-disc {
	color: var(--tth-accent-1);
}

.tth-unit.is-run {
	border-left-color: var(--tth-accent-2);
}

.tth-unit.is-run .tth-unit-disc {
	color: var(--tth-accent-2);
}

.tth-unit.is-bike {
	border-left-color: var(--tth-primary);
}

.tth-unit.is-bike .tth-unit-disc {
	color: var(--tth-primary);
}

.tth-unit.is-other {
	border-left-color: var(--tth-rule-strong);
}

/* Sieben Spalten brauchen Platz. Reicht er nicht, fallen zuerst die
   trainingsfreien Tage weg — fünf belegte Tage nebeneinander sind nützlicher
   als sieben, von denen zwei nur einen Gedankenstrich zeigen. Erst danach
   wird die Woche zur Liste. */
@media (max-width: 1280px) {
	.tth-day.is-empty {
		display: none;
	}

	.tth-unit,
	.tth-day-name {
		padding: var(--tth-sp-2);
	}
}

@media (max-width: 720px) {
	.tth-week {
		grid-auto-flow: row;
	}

	.tth-day {
		min-height: 0;
	}
}

/* Angebote ohne festen Wochentag. */
/* Gleiches Prinzip wie oben: eine Spalte je Angebot, keine Geisterspalte —
   auto-fit legte bei manchen Breiten einen leeren Track samt Trennlinie an. */
.tth-offers {
	background: var(--tth-rule);
	border: 1px solid var(--tth-rule);
	border-top: 0;
	display: grid;
	gap: 1px;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
}

@media (max-width: 720px) {
	.tth-offers {
		grid-auto-flow: row;
	}
}

.tth-offer {
	background: var(--tth-tinted);
	display: flex;
	flex-direction: column;
	gap: var(--tth-sp-2);
	padding: var(--tth-card-pad);
}

.tth-offer-icon {
	align-items: center;
	color: var(--tth-faint);
	display: flex;
	font-size: 24px;
	height: 24px;
}

.tth-offer-title {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.tth-offer-text {
	color: var(--tth-muted);
	font-size: 0.9rem;
	margin: 0;
}

.tth-accent-1 .tth-offer-icon,
.tth-accent-1 .tth-offer-title {
	color: var(--tth-accent-1);
}

.tth-accent-2 .tth-offer-icon,
.tth-accent-2 .tth-offer-title {
	color: var(--tth-primary);
}

.tth-accent-3 .tth-offer-icon,
.tth-accent-3 .tth-offer-title {
	color: var(--tth-accent-2);
}

/* ----------------------------------------------------------- Neuigkeiten */

.tth-news-grid {
	background: var(--tth-rule);
	border: 1px solid var(--tth-rule);
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(3, 1fr);
}

.tth-news-grid .tth-card {
	background: var(--tth-surface);
	display: flex;
	flex-direction: column;
	transition: background-color 0.16s ease;
}

.is-bg-light .tth-news-grid .tth-card {
	background: var(--tth-light-bg);
}

.tth-news-grid .tth-card:hover {
	background: var(--tth-tinted);
}

/* Der jüngste Beitrag läuft über die volle Breite und stellt sein Bild
   daneben — die übrigen bleiben Karten. */
.tth-news-grid .tth-card:first-child {
	flex-direction: row;
	grid-column: 1 / -1;
}

.tth-card-media {
	background: var(--tth-tinted);
	display: block;
	overflow: hidden;
}

.tth-news-grid .tth-card:first-child .tth-card-media {
	flex: 0 0 44%;
	width: 44%;
}

.tth-news-grid .tth-card:not(:first-child) .tth-card-media {
	aspect-ratio: 16 / 9;
}

.tth-card-media img {
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	width: 100%;
}

.tth-card:hover .tth-card-media img {
	transform: scale(1.03);
}

.tth-card-placeholder {
	background: linear-gradient(135deg, var(--tth-tinted) 0%, var(--tth-sunk) 100%);
	display: block;
	height: 100%;
	min-height: 160px;
	width: 100%;
}

.tth-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--tth-sp-2);
	padding: var(--tth-card-pad);
}

.tth-news-grid .tth-card:first-child .tth-card-body {
	justify-content: center;
	padding: clamp(20px, 3vw, 40px);
}

.tth-card-title {
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
	font-weight: 700;
	line-height: 1.05;
}

.tth-news-grid .tth-card:first-child .tth-card-title {
	font-size: clamp(1.5rem, 3.4vw, 2.4rem);
}

.tth-card-title a {
	color: inherit;
}

.tth-card-title a:hover {
	text-decoration: none;
}

.tth-post-meta {
	align-items: center;
	color: var(--tth-faint);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.63rem;
	gap: var(--tth-sp-2);
	margin: 0;
	order: -1;
}

.tth-post-meta .tth-icon {
	opacity: 0.6;
}

.tth-card-excerpt {
	color: var(--tth-muted);
	font-size: 0.88rem;
	margin: 0;
}

.tth-card-link {
	align-items: center;
	color: var(--tth-primary);
	display: inline-flex;
	font-size: 0.64rem;
	gap: var(--tth-sp-2);
	margin-top: auto;
	padding-top: var(--tth-sp-3);
}

.tth-card-link:hover {
	text-decoration: none;
}

@media (max-width: 1000px) {
	.tth-news-grid {
		grid-template-columns: 1fr;
	}

	.tth-news-grid .tth-card:first-child {
		flex-direction: column;
		grid-column: auto;
	}

	.tth-news-grid .tth-card:first-child .tth-card-media {
		aspect-ratio: 16 / 9;
		flex: auto;
		width: 100%;
	}
}

/* ------------------------------------------------------------ Instagram */

.tth-instagram-feed img {
	display: block;
}

/* ------------------------------------------------------------- Vorstand */

/* Zeilen statt Kacheln: Der Vorstand ist eine Liste von Menschen mit
   Zuständigkeit, keine Galerie. Wird im Customizer eine feste Spaltenzahl
   gewählt, schaltet dynamic-css.php auf Kacheln um. */
.tth-board-grid {
	border-top: 1px solid var(--tth-rule);
	display: grid;
	grid-template-columns: 1fr;
}

/* Vier Elemente (Foto, Name, Rolle, Text) auf drei Spalten: Name und Rolle
   stapeln sich in Spalte zwei, Foto und Text laufen über beide Zeilen. */
.tth-member {
	border-bottom: 1px solid var(--tth-rule);
	column-gap: clamp(16px, 3vw, 34px);
	display: grid;
	grid-template-columns: 88px 210px minmax(0, 1fr);
	grid-template-rows: auto auto;
	padding: var(--tth-sp-4) 0;
}

.tth-member-photo {
	align-self: center;
	grid-column: 1;
	grid-row: 1 / 3;
}

.tth-member-name {
	align-self: end;
	grid-column: 2;
	grid-row: 1;
}

.tth-member-role {
	align-self: start;
	grid-column: 2;
	grid-row: 2;
}

.tth-member-desc {
	align-self: center;
	grid-column: 3;
	grid-row: 1 / 3;
}

.tth-member-photo {
	background: var(--tth-tinted);
	border-radius: 50%;
	height: 88px;
	overflow: hidden;
	position: relative;
	width: 88px;
}

.tth-member-photo img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.tth-member-initials {
	align-items: center;
	border: 1px dashed var(--tth-rule-strong);
	border-radius: 50%;
	color: var(--tth-faint);
	display: flex;
	font-family: var(--tth-ff-heading);
	font-size: 1.3rem;
	font-weight: 700;
	inset: 0;
	justify-content: center;
	position: absolute;
}

.tth-member-name {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0;
}

.tth-member-role {
	color: var(--tth-primary);
	font-size: 0.63rem;
	margin: 4px 0 0;
}

.tth-member-desc {
	color: var(--tth-muted);
	font-size: 0.9rem;
	margin: 0;
}

@media (max-width: 860px) {
	.tth-member {
		grid-template-columns: 72px minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		row-gap: var(--tth-sp-3);
	}

	.tth-member-photo {
		align-self: start;
		height: 72px;
		width: 72px;
	}

	.tth-member-desc {
		grid-column: 1 / -1;
		grid-row: 3;
	}
}

/* -------------------------------------------------------------- Über uns */

.tth-about-columns {
	display: grid;
	gap: var(--tth-sp-6);
}

.tth-about-columns.is-bilingual {
	gap: clamp(24px, 5vw, 64px);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tth-about-text > *:first-child {
	margin-top: 0;
}

.tth-about-columns.is-bilingual > *:last-child {
	color: var(--tth-muted);
	font-size: 0.94rem;
}

@media (max-width: 860px) {
	.tth-about-columns.is-bilingual {
		grid-template-columns: 1fr;
	}
}

/* Datenband zwischen Überschrift und Text: oben und unten abgesetzt, die
   Werte in gleich breiten Feldern mit Trennlinie. Zahl über Bezeichnung —
   nebeneinander laufen die gesperrten Mono-Labels zu weit. */
.tth-facts {
	border-block: 1px solid var(--tth-rule);
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	margin: 0 0 var(--tth-head-gap);
}

.tth-fact {
	display: flex;
	flex-direction: column;
	gap: var(--tth-sp-2);
	padding: var(--tth-sp-5) var(--tth-sp-5) var(--tth-sp-5) 0;
}

.tth-fact + .tth-fact {
	border-left: 1px solid var(--tth-rule);
	padding-left: var(--tth-sp-5);
}

.tth-fact-value {
	color: var(--tth-text);
	font-family: var(--tth-ff-heading);
	font-size: clamp(2.2rem, 4.5vw, 3.4rem);
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 0.9;
}

.tth-fact-label {
	color: var(--tth-faint);
	font-size: 0.64rem;
	line-height: 1.3;
}

/* Auf schmalen Geräten untereinander, dann trennt die Linie waagerecht. */
@media (max-width: 640px) {
	.tth-facts {
		grid-auto-flow: row;
	}

	.tth-fact {
		padding-right: 0;
	}

	.tth-fact + .tth-fact {
		border-left: 0;
		border-top: 1px solid var(--tth-rule);
		padding-left: 0;
	}
}

/* ------------------------------------------------------------- Mitmachen */

.tth-steps {
	background: var(--tth-rule);
	border: 1px solid var(--tth-rule);
	counter-reset: tth-step;
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tth-step {
	background: var(--tth-surface);
	counter-increment: tth-step;
	display: flex;
	flex-direction: column;
	padding: var(--tth-card-pad);
}

.is-bg-light .tth-step {
	background: var(--tth-light-bg);
}

.tth-step-number {
	color: var(--tth-primary);
	font-size: 0.68rem;
	margin-bottom: var(--tth-sp-3);
}

.tth-step-title {
	font-size: 1.5rem;
	font-weight: 700;
}

.tth-step-text {
	color: var(--tth-muted);
	font-size: 0.92rem;
	margin: var(--tth-sp-2) 0 0;
}

.tth-join-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tth-sp-3);
	margin-top: var(--tth-sp-7);
}

/* ------------------------------------------------------------------- FAQ */

/* Die FAQ ist der ruhige Abschluss und steht als einzige Sektion mittig —
   sonst bliebe auf breiten Schirmen rechts neben der Liste eine tote Fläche.
   Die Überschrift zieht mit, damit Titel und Liste dieselbe Achse haben. */
.tth-faq-list {
	border-top: 1px solid var(--tth-rule);
	margin-inline: auto;
	max-width: 90ch;
}

.tth-section-faq .tth-section-head {
	justify-content: center;
	text-align: center;
}

.tth-faq-item {
	border-bottom: 1px solid var(--tth-rule);
}

.tth-faq-question {
	align-items: center;
	background: none;
	border: 0;
	color: var(--tth-text);
	cursor: pointer;
	display: flex;
	font-family: var(--tth-ff-heading);
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
	font-weight: 700;
	gap: var(--tth-sp-4);
	line-height: 1.2;
	padding: var(--tth-sp-5) 0;
	text-align: left;
	text-transform: uppercase;
	width: 100%;
}

.tth-faq-question::after {
	border-bottom: 2px solid var(--tth-primary);
	border-right: 2px solid var(--tth-primary);
	content: "";
	flex: 0 0 auto;
	height: 10px;
	margin-left: auto;
	transform: rotate(45deg);
	transition: transform 0.18s ease;
	width: 10px;
}

.tth-faq-item.is-open .tth-faq-question::after {
	transform: rotate(225deg);
}

.tth-faq-answer {
	color: var(--tth-muted);
	max-width: 66ch;
	padding: 0 0 var(--tth-sp-5);
}

.tth-faq-answer > *:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------ Newsletter */

.tth-newsletter-inner {
	align-items: end;
	display: grid;
	gap: var(--tth-gutter);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tth-newsletter-text {
	color: var(--tth-muted);
	margin: 0;
	max-width: 52ch;
}

.is-bg-accent .tth-newsletter-text {
	color: rgba(11, 15, 17, 0.78);
}

@media (max-width: 860px) {
	.tth-newsletter-inner {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------- Kontakt */

.tth-contact-grid {
	align-items: start;
	display: grid;
	gap: clamp(26px, 5vw, 64px);
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.tth-contact-info {
	color: var(--tth-muted);
}

.tth-contact-mail {
	color: var(--tth-accent-1);
	display: inline-block;
	font-family: var(--tth-ff-mono);
	font-size: 1rem;
	margin-top: var(--tth-sp-5);
}

.tth-notice {
	border-left: 3px solid var(--tth-primary);
	color: var(--tth-muted);
	font-size: 0.92rem;
	margin-top: var(--tth-sp-5);
	padding-left: var(--tth-sp-4);
}

@media (max-width: 860px) {
	.tth-contact-grid {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------- Formulare */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="date"],
select,
textarea {
	background: var(--tth-sunk);
	border: 1px solid var(--tth-rule);
	border-radius: var(--tth-radius, 0);
	color: var(--tth-text);
	font-family: var(--tth-ff-body);
	font-size: 0.98rem;
	padding: var(--tth-field-py) var(--tth-field-px);
	width: 100%;
}

input::placeholder,
textarea::placeholder {
	color: var(--tth-faint);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--tth-accent-1);
	outline: none;
}

textarea {
	min-height: 140px;
	resize: vertical;
}

label {
	display: block;
	font-family: var(--tth-ff-mono);
	font-size: 0.63rem;
	letter-spacing: 0.14em;
	margin-bottom: var(--tth-sp-2);
	text-transform: uppercase;
}

button,
input[type="submit"],
.wpcf7-submit {
	background: var(--tth-primary);
	border: 0;
	border-radius: var(--tth-radius, 0);
	color: #0b0f11;
	cursor: pointer;
	font-family: var(--tth-ff-heading);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	padding: var(--tth-control-py) var(--tth-control-px);
	text-transform: uppercase;
	width: auto;
}

button:hover,
input[type="submit"]:hover,
.wpcf7-submit:hover {
	background: var(--tth-primary-dark);
}

.wpcf7-form p {
	display: flex;
	flex-direction: column;
	margin: 0 0 var(--tth-sp-4);
}

.wpcf7-form p:last-child {
	margin-bottom: 0;
}

.wpcf7 .wpcf7-not-valid-tip {
	color: var(--tth-primary);
	font-size: 0.85rem;
	margin-top: var(--tth-sp-2);
}

.wpcf7 form .wpcf7-response-output {
	border: 1px solid var(--tth-rule-strong);
	font-size: 0.9rem;
	margin: var(--tth-sp-4) 0 0;
	padding: var(--tth-sp-3) var(--tth-sp-4);
}

.tth-search-form {
	display: flex;
	gap: var(--tth-sp-2);
}

.tth-search-submit {
	flex-shrink: 0;
}

.post-password-form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tth-sp-3);
	max-width: 60ch;
}

.post-password-form p {
	margin: 0;
	width: 100%;
}

/* ---------------------------------------------------------------- Footer */

.tth-footer {
	background: var(--tth-sunk);
	color: var(--tth-muted);
	padding-top: var(--tth-section-y);
}

.tth-footer a {
	color: var(--tth-muted);
}

.tth-footer a:hover {
	color: var(--tth-primary);
}

.tth-footer-widgets {
	display: grid;
	gap: var(--tth-gutter);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tth-footer .widget-title {
	color: var(--tth-faint);
	font-family: var(--tth-ff-mono);
	font-size: 0.64rem;
	font-weight: 400;
	margin: 0 0 var(--tth-sp-4);
}

.tth-footer .widget {
	font-size: 0.92rem;
}

.tth-footer .widget + .widget {
	margin-top: var(--tth-sp-6);
}

.tth-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tth-footer li + li {
	margin-top: var(--tth-sp-2);
}

.tth-socials {
	display: flex;
	gap: var(--tth-sp-3);
	margin-top: var(--tth-sp-4);
}

.tth-socials a {
	align-items: center;
	border: 1px solid var(--tth-rule-strong);
	display: inline-flex;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.tth-socials a:hover {
	background: var(--tth-primary);
	border-color: var(--tth-primary);
	color: #0b0f11;
}

.tth-socials .tth-icon {
	font-size: 18px;
}

.tth-footer-bottom {
	align-items: baseline;
	border-top: 1px solid var(--tth-rule);
	display: flex;
	flex-wrap: wrap;
	gap: var(--tth-sp-3) var(--tth-sp-6);
	justify-content: space-between;
	margin-top: var(--tth-section-y);
	padding: var(--tth-sp-5) 0;
}

.tth-copyright,
.tth-copyright-text {
	color: var(--tth-faint);
	font-size: 0.64rem;
	margin: 0;
}

.tth-footer-nav ul,
.tth-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tth-sp-3) var(--tth-sp-5);
	list-style: none;
	margin: 0;
	padding: 0;
}

.tth-footer-nav li + li {
	margin-top: 0;
}

.tth-footer-menu a {
	font-family: var(--tth-ff-mono);
	font-size: 0.64rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* --------------------------------------------------- Seiten und Archive */

.tth-page-head {
	border-bottom: 1px solid var(--tth-rule);
	padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 48px);
}

.tth-page-title {
	font-size: clamp(2rem, 5vw, 3.8rem);
	font-weight: 800;
	line-height: 0.98;
}

.tth-page-head .tth-section-lead,
.tth-page-head .archive-description {
	color: var(--tth-muted);
	margin: var(--tth-sp-4) 0 0;
	max-width: 62ch;
}

.tth-page-content {
	padding: var(--tth-section-y) 0;
}

.tth-archive-grid {
	background: var(--tth-rule);
	border: 1px solid var(--tth-rule);
	display: grid;
	gap: 1px;
	grid-template-columns: 1fr;
}

.tth-archive-grid .tth-card {
	background: var(--tth-surface);
	display: flex;
	flex-direction: column;
}

.tth-archive-grid .tth-card-media {
	aspect-ratio: 16 / 9;
	display: block;
	overflow: hidden;
}

/* --------------------------------------------------------- Einzelbeitrag */

.tth-single-cover {
	align-items: flex-end;
	background: var(--tth-sunk);
	background-position: center;
	background-size: cover;
	display: flex;
	min-height: 46vh;
	position: relative;
}

.tth-single-cover-overlay {
	background: linear-gradient(180deg, rgba(7, 10, 11, 0.35) 0%, rgba(7, 10, 11, 0.88) 100%);
	inset: 0;
	position: absolute;
}
/* Das Beitragsbild kommt aus dem Template als <img>, nicht als Hintergrund.
   Ohne diese Regel wird es zum Flex-Element und schiebt den Titelblock aus
   dem sichtbaren Bereich — die Seite scrollt dann seitwärts. */
.tth-single-cover > img {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}


.tth-single-cover-inner {
	flex: 1;
	padding-bottom: clamp(32px, 5vw, 56px);
	padding-top: clamp(96px, 14vw, 160px);
	position: relative;
	z-index: 1;
}

.tth-single-title {
	font-size: clamp(1.9rem, 5vw, 3.6rem);
	font-weight: 800;
	line-height: 0.98;
	max-width: 22ch;
}

.tth-single-cover .tth-post-meta {
	color: var(--tth-muted);
	margin-top: var(--tth-sp-4);
}

.tth-single-layout {
	display: grid;
	gap: clamp(32px, 5vw, 72px);
	grid-template-columns: minmax(0, 1fr);
	padding: var(--tth-section-y) 0;
}

.has-sidebar .tth-single-layout {
	grid-template-columns: minmax(0, 1fr) 300px;
}

@media (max-width: 900px) {
	.has-sidebar .tth-single-layout {
		grid-template-columns: 1fr;
	}
}

.tth-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tth-sp-2);
	margin-top: var(--tth-sp-7);
}

.tth-tags a {
	border: 1px solid var(--tth-rule-strong);
	color: var(--tth-muted);
	font-family: var(--tth-ff-mono);
	font-size: 0.64rem;
	letter-spacing: 0.1em;
	padding: 5px 10px;
	text-transform: uppercase;
}

.tth-tags a:hover {
	background: var(--tth-primary);
	border-color: var(--tth-primary);
	color: #0b0f11;
	text-decoration: none;
}

.tth-post-nav {
	border-top: 1px solid var(--tth-rule);
	display: grid;
	gap: var(--tth-gutter);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-top: var(--tth-sp-7);
	padding-top: var(--tth-sp-5);
}

.tth-post-nav a {
	color: var(--tth-text);
	font-family: var(--tth-ff-heading);
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
}

.tth-post-nav-next {
	text-align: right;
}

/* ------------------------------------------------------------- Sidebar */

.tth-sidebar .widget + .widget {
	margin-top: var(--tth-sp-7);
}

.tth-sidebar .widget-title {
	font-family: var(--tth-ff-mono);
	font-size: 0.64rem;
	font-weight: 400;
	letter-spacing: 0.14em;
	margin: 0 0 var(--tth-sp-4);
	text-transform: uppercase;
}

.tth-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tth-sidebar li {
	border-bottom: 1px solid var(--tth-rule);
	padding: var(--tth-sp-2) 0;
}

.tth-sidebar a {
	color: var(--tth-muted);
	font-size: 0.92rem;
}

/* ----------------------------------------------------------- Fließtext */

.tth-prose {
	max-width: 72ch;
}

.tth-prose > * + * {
	margin-top: var(--tth-sp-4);
}

.tth-prose h2 {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin-top: var(--tth-sp-7);
}

.tth-prose h3 {
	font-size: 1.3rem;
	margin-top: var(--tth-sp-6);
}

.tth-prose ul,
.tth-prose ol {
	padding-left: 1.3em;
}

.tth-prose li + li {
	margin-top: var(--tth-sp-2);
}

.tth-prose blockquote {
	border-left: 3px solid var(--tth-primary);
	color: var(--tth-muted);
	font-size: 1.05rem;
	margin: var(--tth-sp-6) 0;
	padding-left: var(--tth-sp-5);
}

.tth-prose a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tth-prose table {
	border-collapse: collapse;
	width: 100%;
}

.tth-prose th,
.tth-prose td {
	border-bottom: 1px solid var(--tth-rule);
	padding: var(--tth-sp-3);
	text-align: left;
}

.alignwide,
.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
}
/*
 * Randlose Blöcke (alignwide/alignfull) ziehen sich auf Fensterbreite. Neben
 * der Seitenleiste ist der Textbereich aber nur rund 690 px breit — so ein
 * Block liefe quer über die Seite und schöbe seinen Inhalt nach links aus dem
 * Text heraus. Beiträge aus der Otter-Zeit enthalten genau solche Blöcke
 * („Advanced Columns" mit alignfull), deshalb hier begrenzen.
 */
.tth-single-layout.has-sidebar .alignwide,
.tth-single-layout.has-sidebar .alignfull {
	margin-left: 0;
	margin-right: 0;
	max-width: 100%;
	width: auto;
}


/* ------------------------------------------------- Blätternavigation */

.page-numbers {
	border: 1px solid var(--tth-rule-strong);
	color: var(--tth-text);
	display: inline-flex;
	font-family: var(--tth-ff-mono);
	font-size: 0.78rem;
	padding: 9px 14px;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--tth-primary);
	border-color: var(--tth-primary);
	color: #0b0f11;
	text-decoration: none;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tth-sp-2);
	margin-top: var(--tth-sp-7);
}

/* ------------------------------------------------------------------- 404 */

.tth-404 {
	padding: clamp(64px, 12vw, 140px) 0;
}

.tth-404 .tth-search-form {
	margin-top: var(--tth-sp-6);
	max-width: 420px;
}

/* ------------------------------------------------------------ Bewegung */

/* theme.js vergibt .tth-animate erst zur Laufzeit und .is-visible beim
   Eintreten in den Viewport. Ohne JS bleibt daher alles sichtbar. */
.tth-anim .tth-animate {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.tth-anim .tth-animate.is-visible {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------- Lesbarkeit auf Handys */

/*
 * Die gesperrten Mono-Auszeichnungen sind am Schreibtisch feine Beschriftung,
 * auf dem Handy landen sie bei 9-10 px und werden unleserlich. Hier bekommen
 * sie eine Untergrenze. Ebenso die Antippfläche des Menüknopfs: 40 px waren
 * knapp unter dem, was sich zuverlässig treffen lässt.
 */
@media (max-width: 782px) {
	.tth-post-meta,
	.tth-member-role,
	.tth-fact-label,
	.tth-card-link,
	.tth-section-note,
	.tth-day-name,
	.tth-unit-note,
	.tth-tags a,
	.tth-footer-menu a,
	.tth-copyright,
	.tth-copyright-text,
	.tth-footer .widget-title,
	.tth-sidebar .widget-title,
	.tth-step-number,
	label {
		font-size: 0.74rem;
	}

	.tth-icon-button {
		min-height: 44px;
		min-width: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.tth-header,
	.tth-footer,
	.tth-hero,
	.tth-sidebar {
		display: none;
	}
}
