/* ==========================================================================
   tierfreund.de — main stylesheet
   Visual identity of the 2012 site (burgundy #69002c, beige #dddcce,
   rose #ecd8d8, Yanone Kaffeesatz headings), rebuilt responsive and accessible.
   ========================================================================== */

/* Yanone Kaffeesatz — SIL Open Font License 1.1, self-hosted (no Google requests) */
@font-face {
	font-family: "Yanone Kaffeesatz";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/yanone-kaffeesatz-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Yanone Kaffeesatz";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/yanone-kaffeesatz-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--tf-burgundy: #69002c;
	--tf-burgundy-dark: #4e0021;
	--tf-burgundy-mid: #8c3b5d;
	--tf-rose: #ecd8d8;
	--tf-rose-light: #f6ecec;
	--tf-beige: #dddcce;
	--tf-beige-light: #efeee6;
	--tf-beige-dark: #c2c1b7;
	--tf-grey: #4f5659;       /* old #5c6467, darkened to reach 4.5:1 on rose/beige (WCAG AA) */
	--tf-grey-light: #6b7174; /* hints: 5:1 on white */
	--tf-text: #313131;
	--tf-muted: #666b6e;
	--tf-white: #fff;
	--tf-green: #2f6b2a;
	--tf-danger: #a1261f;

	--tf-font: Arial, "Helvetica Neue", Helvetica, sans-serif;
	--tf-font-display: "Yanone Kaffeesatz", "Arial Narrow", Arial, sans-serif;

	--tf-max: 1200px;
	--tf-gap: clamp(1rem, 2.5vw, 1.75rem);
	--tf-radius: 6px;
	--tf-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 4px 14px rgb(0 0 0 / .06);
	--tf-focus: 0 0 0 3px #fff, 0 0 0 5px var(--tf-burgundy);
	color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
	margin: 0;
	font-family: var(--tf-font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--tf-text);
	background: var(--tf-white);
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--tf-burgundy); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--tf-burgundy-mid); }
:focus-visible { outline: none; box-shadow: var(--tf-focus); border-radius: 2px; }
h1, h2, h3, h4 {
	font-family: var(--tf-font-display);
	font-weight: 400;
	color: var(--tf-burgundy);
	line-height: 1.15;
	margin: 1.6em 0 .5em;
	letter-spacing: .005em;
}
h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--tf-beige); margin: 2rem 0; }
blockquote { margin: 1.5em 0; padding: .5em 1.25em; border-left: 4px solid var(--tf-rose); color: var(--tf-grey); font-style: italic; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--tf-beige); padding: .5em .6em; text-align: left; vertical-align: top; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tf-skip-link:focus {
	position: fixed !important; top: .5rem; left: .5rem; width: auto; height: auto; clip: auto;
	padding: .6rem 1rem; background: var(--tf-white); z-index: 1000; box-shadow: var(--tf-shadow);
}
.tf-container { width: 100%; max-width: var(--tf-max); margin-inline: auto; padding-inline: var(--tf-gap); }
.tf-muted { color: var(--tf-muted); font-size: .875rem; }
.tf-main:focus { outline: none; }

/* ---------- Buttons ---------- */
.tf-button {
	display: inline-flex; align-items: center; gap: .4em;
	font: 600 .9375rem/1.2 var(--tf-font);
	padding: .6em 1.1em;
	border: 1px solid var(--tf-beige-dark);
	border-radius: var(--tf-radius);
	background: var(--tf-white);
	color: var(--tf-burgundy);
	text-decoration: none;
	cursor: pointer;
}
.tf-button:hover { background: var(--tf-beige-light); color: var(--tf-burgundy); }
.tf-button--primary { background: var(--tf-burgundy); border-color: var(--tf-burgundy); color: var(--tf-white); }
.tf-button--primary:hover { background: var(--tf-burgundy-dark); color: var(--tf-white); }
.tf-button--danger { color: var(--tf-danger); border-color: currentColor; }
.tf-link-button { background: none; border: 0; padding: 0; font: inherit; font-size: .8125rem; color: var(--tf-burgundy); cursor: pointer; text-decoration: underline; }
.tf-link-button--danger { color: var(--tf-danger); }
.tf-icon-button { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; background: none; color: var(--tf-burgundy); cursor: pointer; border-radius: var(--tf-radius); }
.tf-inline-form { display: inline; }
.tf-badge {
	display: inline-block; min-width: 1.4em; padding: .05em .45em; border-radius: 1em;
	background: var(--tf-burgundy); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; line-height: 1.5;
}
.tf-badge--solved { background: var(--tf-green); }

/* ---------- Top bar ---------- */
.tf-topbar { background: #63696c; color: #fff; font-size: .8125rem; }
.tf-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 2.25rem; gap: 1rem; }
.tf-topbar__brand { font-family: var(--tf-font-display); font-size: 1.35rem; color: #fff; text-decoration: none; letter-spacing: .01em; line-height: 1; }
.tf-topbar__brand span { font-size: .8em; opacity: .85; }
.tf-topbar__account { display: flex; align-items: center; gap: 1rem; }
.tf-topbar__link { color: #fff; text-decoration: none; font-weight: 700; }
.tf-topbar__link:hover { color: #fff; text-decoration: underline; }
.tf-topbar__link--cta { background: var(--tf-burgundy); padding: .25em .8em; border-radius: 1em; }
.tf-account { position: relative; }
.tf-account__toggle {
	display: flex; align-items: center; gap: .5rem; padding: .2rem .4rem; border: 0; border-radius: var(--tf-radius);
	background: none; color: #fff; font: 700 .8125rem var(--tf-font); cursor: pointer;
}
.tf-account__toggle img { width: 24px; height: 24px; border-radius: 50%; }
.tf-account__toggle::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.tf-account__menu {
	position: absolute; right: 0; top: calc(100% + .35rem); z-index: 50; min-width: 15rem;
	margin: 0; padding: .4rem 0; list-style: none; background: #fff; border-radius: var(--tf-radius); box-shadow: var(--tf-shadow), 0 0 0 1px var(--tf-beige);
}
.tf-account__menu a { display: block; padding: .45rem 1rem; color: var(--tf-text); text-decoration: none; font-size: .875rem; }
.tf-account__menu a:hover { background: var(--tf-rose-light); color: var(--tf-burgundy); }
.tf-account__menu li:last-child { border-top: 1px solid var(--tf-beige); margin-top: .3rem; padding-top: .3rem; }

/* ---------- Header / logo ---------- */
.tf-header { background: #fff; }
.tf-header__inner { display: flex; align-items: flex-end; gap: 1.25rem; padding-top: 1.5rem; padding-bottom: .9rem; }
.tf-logo {
	flex: none; font-family: var(--tf-font-display); font-weight: 300;
	font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: .9; text-decoration: none; letter-spacing: -.01em;
}
.tf-logo__tier { color: var(--tf-burgundy); }
.tf-logo__freund { color: var(--tf-grey); }
.tf-logo__tld { color: var(--tf-burgundy); font-weight: 400; font-size: .72em; }
.tf-logo:hover .tf-logo__freund { color: var(--tf-text); }
.tf-header__line { position: relative; flex: 1; height: 1px; background: var(--tf-beige); margin-bottom: .55rem; }
.tf-header__beagle { position: absolute; left: 42%; bottom: 0; width: 52px; height: 77px; }

/* ---------- Main navigation ---------- */
.tf-nav { position: relative; z-index: 40; }
.tf-nav__inner {
	display: flex; align-items: stretch; flex-wrap: wrap;
	background: var(--tf-burgundy); color: #fff;
	border-radius: 0 var(--tf-radius) var(--tf-radius) 0;
	padding-inline: var(--tf-gap);
}
@media (min-width: 1248px) { .tf-nav__inner { padding-inline: 1.75rem; } }
.tf-nav__list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; flex: 1; }
.tf-nav__item { position: relative; display: flex; align-items: center; }
.tf-nav__link {
	display: block; padding: .55rem .75rem; color: #fff; text-decoration: none;
	font-family: var(--tf-font-display); font-size: 1.3rem; line-height: 1.3; letter-spacing: .01em;
}
.tf-nav__item:first-child .tf-nav__link { padding-left: 0; }
.tf-nav__link:hover, .tf-nav__link[aria-current] { color: #fff; text-decoration: none; background: rgb(255 255 255 / .08); }
.tf-nav__link[aria-current] { box-shadow: inset 0 -3px 0 var(--tf-rose); }
.tf-nav__toggle { display: none; }
.tf-nav__sub {
	position: absolute; left: 0; top: 100%; min-width: 15rem; margin: 0; padding: .4rem 0; list-style: none;
	background: #fff; border-radius: 0 0 var(--tf-radius) var(--tf-radius); box-shadow: var(--tf-shadow), 0 0 0 1px var(--tf-beige);
	opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.tf-nav__item:hover > .tf-nav__sub, .tf-nav__item:focus-within > .tf-nav__sub, .tf-nav__sub.is-open { opacity: 1; visibility: visible; transform: none; }
.tf-nav__sub a { display: block; padding: .4rem 1rem; color: var(--tf-text); text-decoration: none; font-size: .875rem; }
.tf-nav__sub a:hover { background: var(--tf-rose-light); color: var(--tf-burgundy); }
.tf-nav__burger { display: none; }

.tf-search { display: flex; align-items: center; margin-left: auto; }
.tf-search__toggle { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; background: none; color: #fff; cursor: pointer; border-radius: var(--tf-radius); }
.tf-search__toggle:hover { background: rgb(255 255 255 / .1); }
.tf-search__form {
	position: absolute; right: var(--tf-gap); top: 100%; z-index: 45; display: flex; gap: .5rem;
	width: min(28rem, calc(100vw - 2 * var(--tf-gap))); padding: .75rem; background: #fff;
	border-radius: 0 0 var(--tf-radius) var(--tf-radius); box-shadow: var(--tf-shadow), 0 0 0 1px var(--tf-beige);
}
.tf-search__form[hidden] { display: none; }
.tf-search__form input { flex: 1; }

/* Sub-navigation row (children of the current top category) */
.tf-subnav { border-bottom: 1px solid var(--tf-beige); background: #fff; }
.tf-subnav ul { display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; margin: 0; padding: .4rem 0; list-style: none; }
.tf-subnav a { display: inline-block; padding: .2rem 0; color: var(--tf-text); text-decoration: none; font-size: .8125rem; }
.tf-subnav a:hover, .tf-subnav a[aria-current] { color: var(--tf-burgundy); }
.tf-subnav a[aria-current] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--tf-burgundy); }

/* Mobile navigation */
@media (max-width: 899px) {
	.tf-header__inner { padding-top: 1rem; }
	.tf-header__beagle { left: auto; right: .5rem; width: 40px; height: 59px; }
	.tf-nav__inner { border-radius: 0; padding-inline: var(--tf-gap); }
	.tf-nav__burger {
		display: flex; align-items: center; gap: .6rem; padding: .6rem 0; border: 0; background: none; color: #fff;
		font: 1.3rem/1 var(--tf-font-display); cursor: pointer;
	}
	.tf-nav__burger-icon, .tf-nav__burger-icon::before, .tf-nav__burger-icon::after {
		display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: "";
	}
	.tf-nav__burger-icon::before { position: absolute; top: -6px; }
	.tf-nav__burger-icon::after { position: absolute; top: 6px; }
	.tf-nav__list { display: none; flex-basis: 100%; order: 3; flex-direction: column; padding-bottom: .75rem; }
	.tf-nav__list.is-open { display: flex; }
	.tf-nav__item { flex-wrap: wrap; border-top: 1px solid rgb(255 255 255 / .15); }
	.tf-nav__item:first-child .tf-nav__link { padding-left: .25rem; }
	.tf-nav__link { flex: 1; padding: .6rem .25rem; }
	.tf-nav__link[aria-current] { box-shadow: inset 3px 0 0 var(--tf-rose); padding-left: .75rem; }
	.tf-nav__toggle {
		display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; background: none; color: #fff; cursor: pointer;
	}
	.tf-nav__toggle::before { content: ""; border: 6px solid transparent; border-top-color: currentColor; margin-top: 6px; transition: transform .15s; }
	.tf-nav__toggle[aria-expanded="true"]::before { transform: rotate(180deg); margin-top: -6px; }
	.tf-nav__sub {
		position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border-radius: var(--tf-radius); margin-bottom: .5rem;
	}
	.tf-nav__sub.is-open { display: block; }
	.tf-nav__item:hover > .tf-nav__sub:not(.is-open), .tf-nav__item:focus-within > .tf-nav__sub:not(.is-open) { display: none; }
	.tf-search { order: 2; }
	.tf-search__form { right: 0; }
	.tf-subnav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: .5rem; }
	.tf-subnav li { flex: none; }
}

/* ---------- Section headings with rule ---------- */
.tf-heading { display: flex; align-items: baseline; gap: .6rem; margin: 2rem 0 1rem; }
.tf-heading__title { margin: 0; font-size: clamp(1.55rem, 2.6vw, 1.9rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80%; }
.tf-heading__title a { color: inherit; text-decoration: none; }
.tf-heading__title a:hover { text-decoration: underline; }
.tf-heading__rule { flex: 1; height: 1px; background: var(--tf-beige); align-self: center; transform: translateY(.35em); min-width: 1rem; }
.tf-heading__hint { flex: none; font-size: .75rem; color: var(--tf-grey-light); }

/* ---------- Layout ---------- */
.tf-layout { display: grid; gap: 0 var(--tf-gap); grid-template-columns: minmax(0, 1fr); padding-bottom: 3rem; }
@media (min-width: 900px) {
	.tf-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
	.tf-layout--wide { grid-template-columns: minmax(0, 1fr); }
}
.tf-grid { display: grid; gap: 0 var(--tf-gap); }
@media (min-width: 640px) {
	.tf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tf-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) { .tf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tf-section { min-width: 0; }

/* ---------- Hero (category panel) + carousel ---------- */
.tf-hero { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 2rem; background: var(--tf-rose); }
@media (min-width: 760px) { .tf-hero { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.tf-hero__media { position: relative; display: block; aspect-ratio: 1200 / 545; overflow: hidden; background: var(--tf-beige); }
.tf-hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Side by side: the image fills the full height of the row, however long the panel's tree is. */
@media (min-width: 760px) {
	.tf-hero__media { aspect-ratio: auto; min-height: 320px; }
	.tf-hero__media img { position: absolute; inset: 0; }
}
.tf-hero__crumbs {
	position: absolute; inset: auto 0 0 0; padding: .45rem .9rem; background: rgb(255 255 255 / .82);
	font-size: .8125rem;
}
.tf-hero__crumbs .tf-breadcrumbs { margin: 0; }
.tf-hero__panel { position: relative; display: flex; flex-direction: column; padding: 0 1.25rem 1rem; min-width: 0; }
.tf-hero__title { margin: -.1em 0 .5rem; font-size: clamp(2rem, 3.4vw, 2.5rem); transform: translateY(-.45em); margin-bottom: -.2em; }
.tf-hero__title a { color: var(--tf-burgundy); text-decoration: none; }
.tf-hero__title { background: linear-gradient(to bottom, #fff 0 50%, transparent 50%); }
.tf-hero .tf-share { margin-top: auto; justify-content: flex-end; }
.tf-hero__intro { font-size: .875rem; color: var(--tf-grey); margin: .25rem 0 .75rem; }

/* Category tree with the old "corner" bullets */
.tf-tree { margin: 0 0 1rem; padding: 0; list-style: none; font-family: var(--tf-font-display); font-size: 1.2rem; line-height: 1.35; }
.tf-tree--nested { margin: .1rem 0 .2rem 1rem; font-size: 1.1rem; }
.tf-tree li { position: relative; padding-left: 1.1rem; }
.tf-tree li::before {
	content: ""; position: absolute; left: 0; top: .32em; width: .45rem; height: .45rem;
	border-left: 2px solid var(--tf-burgundy); border-bottom: 2px solid var(--tf-burgundy);
}
.tf-tree a { color: var(--tf-grey); text-decoration: none; }
.tf-tree a:hover, .tf-tree a[aria-current] { color: var(--tf-burgundy); }
.tf-tree a[aria-current] { font-weight: 600; }

.tf-carousel { position: relative; }
.tf-carousel__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.tf-carousel__track::-webkit-scrollbar { display: none; }
.tf-carousel__slide { scroll-snap-align: start; }
.tf-carousel__dots { position: absolute; top: 2.55rem; right: 1rem; display: flex; gap: .45rem; }
.tf-carousel__dots[hidden] { display: none; }
.tf-carousel__dot { width: .8rem; height: .8rem; padding: 0; border: 0; border-radius: 50%; background: var(--tf-beige); cursor: pointer; }
.tf-carousel__dot[aria-current="true"] { background: var(--tf-burgundy); }
@media (max-width: 759px) { .tf-carousel__dots { top: auto; bottom: .9rem; left: 1.25rem; right: auto; } }
@media (prefers-reduced-motion: reduce) { .tf-carousel__track { scroll-behavior: auto; } }

/* Share links */
.tf-share { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; font-size: .8125rem; }
.tf-share__label { font-family: var(--tf-font-display); font-size: 1.1rem; color: var(--tf-grey); }
.tf-share__link, .tf-share__native { color: var(--tf-burgundy); font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.tf-share__link:hover, .tf-share__native:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.tf-card { margin-bottom: 1.75rem; min-width: 0; }
.tf-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tf-beige-light); border-radius: 2px; }
.tf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tf-card:hover .tf-card__media img { transform: scale(1.03); }
.tf-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--tf-rose-light), var(--tf-beige-light)); }
.tf-card__title { margin: .85rem 0 .4rem; font: 700 1.0625rem/1.3 var(--tf-font); }
.tf-card__title a { color: var(--tf-burgundy); text-decoration: none; }
.tf-card__title a:hover { text-decoration: underline; }
.tf-card__excerpt { font-size: .875rem; line-height: 1.65; color: #555; }
.tf-card__excerpt p { margin: 0; }
.tf-card__meta { font-size: .75rem; color: var(--tf-grey-light); margin-bottom: .25rem; }
.tf-more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.tf-more:hover { text-decoration: underline; }

/* Compact list item (sidebar pets) */
.tf-mini-list, .tf-link-list, .tf-thumbs, .tf-avatars { margin: 0; padding: 0; list-style: none; }
.tf-mini { display: flex; gap: .75rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--tf-beige-light); }
.tf-mini__media { flex: none; width: 56px; height: 56px; border-radius: var(--tf-radius); overflow: hidden; background: var(--tf-beige-light); }
.tf-mini__media img { width: 100%; height: 100%; object-fit: cover; }
.tf-mini__title { font-weight: 700; text-decoration: none; display: block; }
.tf-mini__meta { font-size: .8125rem; color: var(--tf-muted); }
.tf-link-list li { padding: .45rem 0; border-bottom: 1px solid var(--tf-beige-light); font-size: .9375rem; line-height: 1.4; }
.tf-link-list .tf-muted { display: block; font-size: .75rem; }
.tf-link-list .tf-badge { margin-right: .3rem; vertical-align: 1px; }
.tf-date { display: block; font-size: .75rem; color: var(--tf-muted); }

/* ---------- Sidebar boxes ---------- */
.tf-box { margin-bottom: 1.5rem; }
.tf-box .tf-heading { margin-top: 2rem; }
.tf-box__more { margin: .6rem 0 0; font-size: .875rem; font-weight: 700; }
.tf-box__more a { text-decoration: none; }
.tf-box__more a:hover { text-decoration: underline; }
.tf-box--beige > :not(.tf-heading) { background: var(--tf-beige); }
.tf-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.tf-thumbs a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--tf-beige-light); }
.tf-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tf-thumbs a:hover img { transform: scale(1.05); }
.tf-avatars { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem .5rem; text-align: center; }
.tf-avatars a { text-decoration: none; color: var(--tf-text); font-size: .75rem; }
.tf-avatars img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto .3rem; object-fit: cover; }
.tf-avatars__name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Lexikon box (beige, as on the old site) */
.tf-lexbox__form { display: flex; gap: .25rem; padding: .75rem .75rem .6rem; border-bottom: 1px solid #fff; }
.tf-lexbox__form input { flex: 1; border-color: #fff; }
.tf-lexbox__results { margin: 0; padding: 0 .75rem; list-style: none; }
.tf-lexbox__results:empty { display: none; }
.tf-lexbox__results li { padding: .3rem 0; border-bottom: 1px solid var(--tf-beige-light); font-size: .875rem; }
.tf-lexbox__results a { font-weight: 700; text-decoration: none; }
.tf-lexbox__title { margin: 0; padding: .75rem .75rem .25rem; font-size: 1.45rem; }
.tf-lexbox__text { margin: 0; padding: 0 .75rem 1rem; font-size: .8125rem; color: var(--tf-grey); }

/* ---------- Article ---------- */
.tf-article__header .tf-heading { margin-top: 2rem; }
.tf-article__header .tf-heading__title { white-space: normal; max-width: none; font-size: clamp(1.9rem, 3.6vw, 2.4rem); }
.tf-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; font-size: .8125rem; color: var(--tf-muted); margin: -.4rem 0 1.25rem; }
.tf-article__meta a { color: inherit; }
.tf-article__lead { margin: 0 0 1.5rem; }
.tf-article__lead img { width: 100%; border-radius: 2px; }
.tf-prose { font-size: 1rem; line-height: 1.75; overflow-wrap: break-word; }
.tf-prose > :first-child { margin-top: 0; }
.tf-prose h2 { font-size: clamp(1.55rem, 2.8vw, 1.85rem); margin-top: 1.8em; }
.tf-prose h3 { font-size: 1.4rem; }
.tf-prose ul, .tf-prose ol { padding-left: 1.4em; }
.tf-prose li { margin-bottom: .3em; }
.tf-prose img { border-radius: 2px; }
.tf-prose .wp-caption, .tf-prose figure { max-width: 100%; margin: 0 0 1.25rem; }
.tf-prose .wp-caption { padding: .4rem; border: 1px solid var(--tf-beige); background: #f8f8f5; }
.tf-prose .wp-caption-text, .tf-prose figcaption { font-size: .75rem; color: var(--tf-muted); padding: .35rem .1rem 0; line-height: 1.4; }
.tf-prose .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 50%; }
.tf-prose .alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 50%; }
.tf-prose .aligncenter { margin-inline: auto; }
.tf-prose::after { content: ""; display: table; clear: both; }
@media (max-width: 560px) {
	.tf-prose .alignleft, .tf-prose .alignright { float: none; max-width: 100%; margin: 0 0 1rem; }
}
.tf-prose table { font-size: .9375rem; }
.tf-article__footer { clear: both; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0; padding: 1rem 0; border-block: 1px solid var(--tf-beige); }
.tf-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.tf-tags a { display: inline-block; padding: .2em .7em; border-radius: 1em; background: var(--tf-beige-light); color: var(--tf-grey); font-size: .8125rem; text-decoration: none; }
.tf-tags a:hover { background: var(--tf-rose); color: var(--tf-burgundy); }

/* Privacy-friendly embed placeholder */
.tf-embed {
	display: grid; place-items: center; gap: .75rem; aspect-ratio: 16 / 9; max-width: 100%; margin: 1.5rem 0; padding: 1.5rem;
	text-align: center; background: var(--tf-beige-light); border: 1px dashed var(--tf-beige-dark); border-radius: var(--tf-radius);
}
.tf-embed__text { margin: 0; max-width: 32rem; font-size: .875rem; color: var(--tf-grey); }
.tf-embed.is-loaded { padding: 0; border: 0; background: none; display: block; }
.tf-embed iframe { width: 100%; height: 100%; border: 0; border-radius: var(--tf-radius); }

/* Reactions */
.tf-reaction {
	display: inline-flex; align-items: center; gap: .35rem; padding: .35em .85em; border: 1px solid var(--tf-beige-dark); border-radius: 2em;
	background: #fff; color: var(--tf-grey); font: 700 .875rem var(--tf-font); text-decoration: none; cursor: pointer;
}
.tf-reaction:hover { border-color: var(--tf-burgundy); color: var(--tf-burgundy); }
.tf-reaction__icon { font-size: 1.1em; line-height: 1; }
.tf-reaction.is-active { background: var(--tf-rose); border-color: var(--tf-rose); color: var(--tf-burgundy); }
.tf-reaction.is-busy { opacity: .6; pointer-events: none; }

/* Report ("melden") */
.tf-report { display: inline-block; font-size: .75rem; }
.tf-report__toggle { cursor: pointer; color: var(--tf-grey-light); list-style: none; }
.tf-report__toggle::-webkit-details-marker { display: none; }
.tf-report__toggle:hover { color: var(--tf-danger); text-decoration: underline; }
.tf-report[open] .tf-report__toggle { color: var(--tf-danger); }
.tf-report__form {
	position: absolute; z-index: 30; display: grid; gap: .5rem; width: min(20rem, 90vw); margin-top: .3rem; padding: .9rem;
	background: #fff; border-radius: var(--tf-radius); box-shadow: var(--tf-shadow), 0 0 0 1px var(--tf-beige); font-size: .8125rem;
}
.tf-report__form label { display: grid; gap: .2rem; font-weight: 700; }
.tf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Related + A–Z */
.tf-az { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.tf-az a, .tf-az span {
	display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--tf-beige);
	font: 700 1rem var(--tf-font); text-decoration: none; color: var(--tf-burgundy);
}
.tf-az a:hover { background: var(--tf-rose); }
.tf-az span { color: var(--tf-beige-dark); }
.tf-az-group { margin-bottom: 1.5rem; break-inside: avoid; }
.tf-az-group h2 { margin: 0 0 .4rem; font-size: 1.8rem; border-bottom: 1px solid var(--tf-beige); }
.tf-az-group ul { margin: 0; padding: 0; list-style: none; columns: 2 14rem; column-gap: var(--tf-gap); }
.tf-az-group li { padding: .2rem 0; break-inside: avoid; }
.tf-az-group a { text-decoration: none; }
.tf-az-group a:hover { text-decoration: underline; }

/* ---------- Comments ("Diskussionsbereich") ---------- */
.tf-comments { margin-top: 1rem; }
.tf-comments__list, .tf-comments__list .children { list-style: none; margin: 0; padding: 0; }
.tf-comments__list .children { margin-left: clamp(1rem, 4vw, 2.5rem); }
.tf-comment { display: grid; grid-template-columns: 48px 1fr; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--tf-beige-light); }
.tf-comment__avatar img { width: 48px; height: 48px; border-radius: 50%; }
.tf-comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .75rem; font-size: .8125rem; color: var(--tf-muted); }
.tf-comment__author { font-weight: 700; color: var(--tf-text); font-size: .9375rem; }
.tf-comment__body { font-size: .9375rem; margin-top: .3rem; }
.tf-comment__body p:last-child { margin-bottom: 0; }
.tf-comment__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .5rem; font-size: .8125rem; }
.tf-comment__pending { font-size: .8125rem; color: var(--tf-muted); font-style: italic; }
.comment-respond { margin-top: 1.5rem; padding: 1.25rem; background: var(--tf-beige-light); border-radius: var(--tf-radius); }
.comment-reply-title { margin: 0 0 .75rem; font-size: 1.5rem; }
.comment-form { display: grid; gap: .75rem; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-weight: 700; font-size: .875rem; margin-bottom: .25rem; }
.tf-login-hint { padding: 1rem 1.25rem; background: var(--tf-rose-light); border-radius: var(--tf-radius); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], input[type="date"], input[type="tel"], select, textarea {
	width: 100%; padding: .55rem .7rem; border: 1px solid var(--tf-beige-dark); border-radius: var(--tf-radius);
	background: #fff; color: var(--tf-text); font: inherit; font-size: 1rem;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--tf-burgundy); box-shadow: 0 0 0 3px rgb(105 0 44 / .18); }
input[type="file"] { font: inherit; font-size: .875rem; }
.tf-form { display: grid; gap: 1rem; max-width: 44rem; margin-bottom: 2rem; }
.tf-form--danger { margin-top: -1rem; }
.tf-field label { display: block; margin-bottom: .3rem; font-weight: 700; font-size: .9375rem; }
.tf-field label span[aria-hidden] { color: var(--tf-burgundy); }
.tf-field__help { margin: .3rem 0 0; font-size: .8125rem; color: var(--tf-muted); }
.tf-field__preview img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--tf-radius); margin-bottom: .5rem; }
.tf-field-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .tf-field-row { grid-template-columns: 1fr 1fr; } }
.tf-form__actions { margin: 0; }
.tf-notice { margin: 1rem 0; padding: .8rem 1rem; border-radius: var(--tf-radius); border-left: 4px solid; font-size: .9375rem; }
.tf-notice--success { background: #eef6ec; border-color: var(--tf-green); }
.tf-notice--info { background: var(--tf-rose-light); border-color: var(--tf-burgundy-mid); }
.tf-notice--error { background: #fbeceb; border-color: var(--tf-danger); }

/* Filter pills */
.tf-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.tf-filter a { padding: .3em .9em; border-radius: 2em; border: 1px solid var(--tf-beige-dark); text-decoration: none; font-size: .875rem; color: var(--tf-grey); }
.tf-filter a:hover { border-color: var(--tf-burgundy); color: var(--tf-burgundy); }
.tf-filter a.is-active { background: var(--tf-burgundy); border-color: var(--tf-burgundy); color: #fff; }

/* Pagination */
.tf-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0 2rem; }
.tf-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem; border: 1px solid var(--tf-beige); text-decoration: none; font-weight: 700; }
.tf-pagination .page-numbers.current { background: var(--tf-burgundy); border-color: var(--tf-burgundy); color: #fff; }
.tf-pagination a.page-numbers:hover { background: var(--tf-rose-light); }

/* Breadcrumbs */
.tf-breadcrumbs { font-size: .8125rem; color: var(--tf-grey); }
.tf-breadcrumbs a { font-weight: 700; text-decoration: none; }
.tf-breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.tf-footer { margin-top: 2rem; background: var(--tf-beige); color: var(--tf-text); font-size: .8125rem; }
.tf-footer__inner { display: grid; gap: 0 var(--tf-gap); grid-template-columns: minmax(0, 1fr); padding-top: 1rem; padding-bottom: 1.5rem; }
@media (min-width: 760px) { .tf-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tf-footer__title {
	/* The old site had white headings on beige (1.4:1 contrast); burgundy keeps the look legible. */
	display: flex; align-items: baseline; gap: .5rem; margin: 1.5rem 0 1rem; color: var(--tf-burgundy);
	font-size: 1.75rem;
}
.tf-footer__title::after { content: ""; flex: 1; height: 1px; background: #fff; transform: translateY(-.3em); }
.tf-footer__list { margin: 0; padding: 0; list-style: none; line-height: 2; }
.tf-footer__list--strong a { font-weight: 700; }
.tf-footer a { color: var(--tf-text); text-decoration: none; }
.tf-footer a:hover { color: var(--tf-burgundy); text-decoration: underline; }
.tf-footer__address { font-style: normal; line-height: 1.7; }
.tf-footer__address a { color: var(--tf-burgundy); font-weight: 700; }
.tf-footer__copy { margin: 0 auto; padding-top: .9rem; padding-bottom: 1.25rem; border-top: 1px solid rgb(255 255 255 / .6); color: var(--tf-grey); font-size: .75rem; }

/* ---------- Misc pages ---------- */
.tf-page-header { margin-bottom: 1rem; }
.tf-empty { padding: 2rem; text-align: center; background: var(--tf-beige-light); border-radius: var(--tf-radius); }
.tf-404 { text-align: center; padding: 3rem 0; }
.tf-404 img { margin: 0 auto 1rem; }
.tf-search-results .tf-card__meta { text-transform: uppercase; letter-spacing: .05em; }

/* Print */
@media print {
	.tf-topbar, .tf-nav, .tf-subnav, .tf-layout__side, .tf-footer, .tf-share, .tf-comments, .tf-reaction, .tf-report { display: none !important; }
	.tf-layout { display: block; }
	a { color: #000; }
}
