/* Tierhilfe 1.0.0-beta.12: Kern (style.css) + Bausteine titelbild, hero-bloecke, toc, favoriten, oben. Automatisch zusammengefügt (inc/bausteine.php), bitte in style.css bzw. css/ ändern. */
/*
Theme Name: Tierhilfe
Theme URI: https://github.com/Aleeeb/schlanke-amazon-box-
Author: Alexander (1AB)
Description: Schlankes,klassisches Theme für die acht Tierhilfe-Seiten. Leitfarbe je Seite,Design-Werte als CSS-Variablen,ohne jQuery.
Version: 1.0.0-beta.12
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tierhilfe
*/

/* Tierhilfe – Kern-CSS (Ziel ≤ 20 KB). Bausteine (nur bei Bedarf geladen) liegen in css/, siehe inc/bausteine.php und DESIGN.md. Klassen beginnen mit th-. */

/* ===== 1 Werte (Standard; der Customizer überschreibt sie inline in :root) ===== */
:root {
	--th-leit:#1d6b4a;--th-leit-text:#fff;--th-akzent:#f2b84b;--th-akzent-text:#2a1f00;
	--th-hintergrund:#fffcf7;--th-flaeche:#f4efe4;--th-flaeche-2: #e7efe7;
	--th-text:#1f2a24;--th-text-leise:#545e58;--th-linie:#e2dccf;
	--th-fuss:#173f30;--th-fuss-text:#e7f0ea;
	--th-schrift-text:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--th-schrift-titel:var(--th-schrift-text);
	--th-schrift-groesse:18px;--th-schrift-groesse-desktop:19px;--th-zeilenhoehe:1.65;--th-titel-gewicht:700;
	--th-breite-seite:1200px;--th-lesebreite:68ch;--th-breite-seitenleiste:320px;
	--th-radius:16px;--th-radius-klein:10px;--th-abstand:24px;--th-uebergang:180ms;
	--th-logo-breite:180px;--th-hero-hoehe:62vh;--th-hero-abdunklung:55%;
	/* Abgeleitet */
	--th-leit-hell:color-mix(in srgb,var(--th-leit) 12%, var(--th-hintergrund));
	--th-leit-dunkel:color-mix(in srgb,var(--th-leit) 78%, #000);
	--th-schatten:0 10px 28px rgb(20 40 30 / .12);
	--th-rand:max(16px,calc(var(--th-abstand) * .75));
	--th-tipp:44px;
	--th-welle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 9'%3E%3Cpath d='M1 5c4.5-4 8.5-4 13 0s8.5 4 13 0 8.5-4 13 0 8.5 4 13 0' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ===== 2 Grundlagen ===== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:5rem}
body{margin:0;background:var(--th-hintergrund);color:var(--th-text);font-family:var(--th-schrift-text);font-size:var(--th-schrift-groesse);line-height:var(--th-zeilenhoehe);overflow-wrap:break-word}
@media (min-width: 960px){body{font-size:var(--th-schrift-groesse-desktop)}}
html,body{overflow-x:clip}
img,video,svg,iframe{max-width:100%;height:auto}
img:is([sizes="auto" i],[sizes^="auto," i]){contain-intrinsic-size:3000px 1500px}
h1,h2,h3,h4,h5,h6{font-family:var(--th-schrift-titel);font-weight:var(--th-titel-gewicht);line-height:1.2;margin:1.6em 0 .5em;text-wrap:balance}
h1{font-size:clamp(1.9rem,5.5vw,2.9rem)} h2{font-size:clamp(1.45rem,3.6vw,1.95rem)} h3{font-size:1.3rem} h4{font-size:1.1rem}
p,ul,ol,dl,figure,blockquote,pre,table{margin:0 0 1.1em}
a{color:var(--th-leit);text-underline-offset:.18em;text-decoration-thickness:1px;transition:color var(--th-uebergang)}
a:hover{color:var(--th-leit-dunkel);text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--th-leit);outline-offset:2px;border-radius:4px}
.th-sprunglink{position:absolute;left:1rem;top:-10rem;z-index:100;padding:.7rem 1.1rem;background:var(--th-leit);color:var(--th-leit-text);border-radius:var(--th-radius-klein);font-weight:600}
.th-sprunglink:focus{top:1rem;color:var(--th-leit-text)}
.screen-reader-text{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
hr,.wp-block-separator{border:0;height:2px;background:var(--th-linie);margin:2.2em auto}
.th-symbol{width:1.25em;height:1.25em;flex:none}
.th-knopf,.wp-block-button__link,.wp-element-button,button.th-knopf{justify-content:center;gap:.5em;padding:.6em 1.4em;border:2px solid var(--th-leit);border-radius:999px;background:var(--th-leit);color:var(--th-leit-text);font:inherit;font-weight:600;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:background var(--th-uebergang), box-shadow var(--th-uebergang), transform var(--th-uebergang)}
.th-knopf:hover,.wp-block-button__link:hover,.wp-element-button:hover{background:var(--th-leit-dunkel);border-color:var(--th-leit-dunkel);color:var(--th-leit-text);box-shadow:var(--th-schatten);transform:translateY(-1px);text-decoration:none}
.is-style-outline > .wp-block-button__link,.wp-block-button__link.is-style-outline{background:transparent;color:var(--th-leit)}
.is-style-outline > .wp-block-button__link:hover{background:var(--th-leit-hell);color:var(--th-leit)}
.th-knopf--akzent,.th-knopf--akzent:hover{background:var(--th-akzent);border-color:var(--th-akzent);color:var(--th-akzent-text)}
.th-knopf--akzent:hover{filter:brightness(1.06)}
.th-knopf--hell{background:transparent;border-color:rgb(255 255 255 / .85);color:#fff}
.th-knopf--hell:hover{background:rgb(255 255 255 / .14);border-color:#fff;color:#fff}

/* Tippflächen mindestens 44 px (Bausteine in css/ ergänzen ihre eigenen) */
.th-knopf,.wp-block-button__link,.wp-element-button,button.th-knopf,
.th-marke__name,
.page-numbers,
.tagcloud a,.wp-block-tag-cloud a,
.th-suche__knopf,.wp-block-search__button,
.th-fuss__menue a{display:inline-flex;align-items:center;min-height:var(--th-tipp)}

/* ===== 3 Rahmen (Breite, Spalten, Seitenleiste) ===== */
.th-breit{width:100%;max-width:var(--th-breite-seite);margin-inline:auto;padding-inline:var(--th-rand)}
.th-rahmen{display:grid;grid-template-columns:minmax(0,1fr);gap:calc(var(--th-abstand) * 2);padding-block:calc(var(--th-abstand) * 1.5) calc(var(--th-abstand) * 2.5)}
.th-spalte{min-width:0}
@media (min-width: 960px) {
	.th-sl-rechts .th-rahmen{grid-template-columns:minmax(0,1fr) var(--th-breite-seitenleiste)}
	.th-sl-links .th-rahmen{grid-template-columns:var(--th-breite-seitenleiste) minmax(0,1fr)}
	.th-sl-links .th-seitenleiste{order:-1}
}
.th-sl-aus .th-spalte > *{margin-inline:auto}
.th-sl-aus .th-artikel{max-width:calc(var(--th-lesebreite) + 2rem);margin-inline:auto}
.th-titel{margin:0 0 .4em}

/* ===== 4 Kopf und Menü ===== */
.th-kopf{position:relative;z-index:40;background:var(--th-hintergrund);border-bottom:1px solid var(--th-linie);transition:box-shadow var(--th-uebergang)}
.th-kopf-mitlaufend .th-kopf{position:sticky;top:0}
.admin-bar.th-kopf-mitlaufend .th-kopf{top:var(--wp-admin--admin-bar--height, 32px)}
@media (max-width: 600px){.admin-bar.th-kopf-mitlaufend .th-kopf{top:0}}
.th-kopf.ist-gescrollt{box-shadow:0 6px 20px rgb(20 40 30 / .08)}
.th-kopf__innen{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.25rem;min-height:4.25rem;padding-block:.5rem}
.th-marke{margin-right:auto;flex:none;display:flex;align-items:center;min-height:var(--th-tipp)}
.th-marke .custom-logo-link{display:block;transform-origin:left center;transition:transform var(--th-uebergang)}
.th-marke .custom-logo{display:block;width:var(--th-logo-breite);max-width:60vw;height:auto}
.th-kopf.ist-gescrollt .custom-logo-link{transform:scale(.86)}
.th-marke__name{font-family:var(--th-schrift-titel);font-size:1.3rem;font-weight:var(--th-titel-gewicht);color:var(--th-leit);text-decoration:none;letter-spacing:-.01em}
.th-menue-knopf{display:none;align-items:center;gap:.45rem;min-height:var(--th-tipp);min-width:var(--th-tipp);padding:.4rem .9rem;border:2px solid var(--th-linie);border-radius:999px;background:var(--th-hintergrund);color:var(--th-text);font:inherit;font-weight:600;cursor:pointer}
.th-menue,.th-menue ul{list-style:none;margin:0;padding:0}
.th-menue a{display:flex;align-items:center;min-height:var(--th-tipp);padding:.35rem .7rem;color:var(--th-text);font-weight:600;text-decoration:none;border-radius:var(--th-radius-klein)}
.th-menue a:hover,.th-menue .current-menu-item > a,.th-menue .current-menu-ancestor > a{color:var(--th-leit);background:var(--th-leit-hell)}
.th-menue li{position:relative}
.th-unter-knopf{display:none;align-items:center;justify-content:center;width:var(--th-tipp);height:var(--th-tipp);padding:0;border:0;border-radius:var(--th-radius-klein);background:transparent;color:var(--th-text);cursor:pointer}
.th-unter-knopf:hover{background:var(--th-leit-hell)}
.th-unter-knopf .th-symbol{transition:transform var(--th-uebergang)}
.ist-offen > .th-unter-knopf .th-symbol{transform:rotate(180deg)}
.th-js .th-unter-knopf{display:inline-flex}

/* Handy und Tablet: ausfahrbare Leiste. Ohne JavaScript steht das Menü offen. */
@media (max-width: 1099px) {
	.th-js .th-menue-knopf{display:inline-flex}
	.th-nav{flex-basis:100%;padding-bottom:.75rem}
	.th-js .th-nav{display:none}
	.th-js .th-kopf.ist-offen .th-nav{display:block;animation:th-ausfahren var(--th-uebergang) ease-out}
	.th-kopf-mitlaufend .th-kopf.ist-offen .th-nav{max-height:calc(100vh - 5rem);overflow-y:auto}
	.th-menue > li{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--th-linie)}
	.th-menue > li > a{flex:1}
	.th-menue .sub-menu{flex-basis:100%;padding:0 0 .5rem 1rem}
	.th-js .th-menue .sub-menu{display:none}
	.th-js .th-menue .ist-offen > .sub-menu{display:block}
	.th-kopf__suche{margin-top:.75rem}
	.th-kopf__knopf{margin-top:.75rem;width:100%}
}
@keyframes th-ausfahren{from{opacity:0;transform:translateY(-8px)}}

/* Desktop: Menü in einer Zeile, Untermenü als Klappliste (Zeigen, Tab-Fokus oder Knopf) */
@media (min-width: 1100px) {
	.th-kopf__innen{flex-wrap:nowrap}
	.th-nav{display:flex;flex:1 1 0;min-width:0;justify-content:flex-end;align-items:center;gap:.5rem 1rem;flex-wrap:wrap}
	.th-nav{flex-wrap:nowrap}
	.th-menue{flex-wrap:nowrap}
	.th-menue a{white-space:nowrap;font-size:.95rem;padding:.35rem .6rem}
	.th-menue > li > .th-unter-knopf{width:1.5rem;margin-left:-.5rem}
	.th-marke .custom-logo{width:min(var(--th-logo-breite),250px)}
	.th-kopf__suche{position:relative;flex:none;width:2.9rem;height:var(--th-tipp)}
	.th-kopf__suche .th-suche{position:absolute;right:0;top:0;width:2.9rem;z-index:45;transition:width var(--th-uebergang)}
	.th-kopf__suche .th-suche:hover,.th-kopf__suche .th-suche:focus-within{width:14rem}
	.th-kopf__suche .th-suche__feld{padding-inline:0;min-width:0}
	.th-kopf__suche .th-suche:hover .th-suche__feld,.th-kopf__suche .th-suche:focus-within .th-suche__feld{padding-inline:1rem}
	.th-kopf-unten .th-nav{flex-basis:100%;justify-content:flex-start;padding-bottom:.4rem}
	.th-kopf-unten .th-kopf__suche{margin-left:auto}
	.th-menue{display:flex;flex-wrap:wrap;align-items:center;gap:.15rem}
	.th-menue > li{display:flex;align-items:center}
	.th-menue > li > .th-unter-knopf{margin-left:-.7rem}
	.th-menue .sub-menu{position:absolute;left:0;top:100%;z-index:50;min-width:15rem;max-width:22rem;padding:.45rem;background:var(--th-hintergrund);border:1px solid var(--th-linie);border-radius:var(--th-radius);box-shadow:var(--th-schatten);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity var(--th-uebergang), transform var(--th-uebergang)}
	.th-menue li:hover > .sub-menu,.th-menue li:focus-within > .sub-menu,.th-menue .ist-offen > .sub-menu{opacity:1;visibility:visible;transform:none}
	.th-menue .sub-menu a{font-weight:500}
	.th-menue > li:nth-last-child(-n+2) > .sub-menu{left:auto;right:0}
}

/* ===== 5 Wellenkante (Hero und Footer; der Hero selbst steht in css/hero.css) ===== */
.th-welle{position:absolute;left:0;width:100%;height:48px;display:block;pointer-events:none}
.th-welle--fuss{top:-47px;fill:var(--th-fuss)}

/* ===== 6 Seitenzahlen (Karten: css/karten.css, Startseite: css/start.css) ===== */
.th-seitenzahlen{margin-top:calc(var(--th-abstand) * 1.5)}
.nav-links{display:flex;flex-wrap:wrap;gap:.4rem}
.page-numbers{justify-content:center;min-width:var(--th-tipp);padding:0 .8rem;border-radius:999px;background:var(--th-flaeche);color:var(--th-text);text-decoration:none;font-weight:600}
.page-numbers.current{background:var(--th-leit);color:var(--th-leit-text)}
a.page-numbers:hover{background:var(--th-leit-hell)}

/* ===== 7 Inhalt (Lesespalte, breite Blöcke) ===== */
.th-artikel__kopf{max-width:var(--th-lesebreite);margin-bottom:1.25rem}
.th-infos{display:flex;flex-wrap:wrap;align-items:center;gap:0 .6rem;margin:0;color:var(--th-text-leise);font-size:.9em}
.th-infos a{display:inline-block;padding:.7rem .15rem;color:inherit}
.th-inhalt > *{max-width:var(--th-lesebreite)}
.th-inhalt > .alignwide{max-width:none}
.th-sl-aus .th-inhalt > .alignwide{width:min(100vw - 2 * var(--th-rand), var(--th-breite-seite) - 2 * var(--th-rand));margin-left:50%;transform:translateX(-50%)}
.th-inhalt > .alignfull{max-width:none;width:100vw;margin-inline:calc(50% - 50vw)}
.th-sl-rechts .th-spalte .alignfull,.th-sl-links .th-spalte .alignfull{width:auto;margin-inline:0}
.th-leinwand > *{max-width:none}
.th-leinwand{padding-bottom:calc(var(--th-abstand) * 2)}
.th-inhalt h2{margin-top:1.9em}
.th-inhalt h2::after{content:"";display:block;width:3.4rem;height:.55rem;margin-top:.35rem;background:var(--th-akzent);-webkit-mask:var(--th-welle) center / 100% 100% no-repeat;mask:var(--th-welle) center / 100% 100% no-repeat}
.th-inhalt h3{color:var(--th-leit-dunkel)}
.th-inhalt :is(ul,ol){padding-left:1.3em}
.th-inhalt li{margin-bottom:.35em}
.th-inhalt li::marker{color:var(--th-leit)}
.th-inhalt img{border-radius:var(--th-radius-klein)}
.th-inhalt figcaption,.wp-caption-text{margin-top:.45rem;font-size:.85em;color:var(--th-text-leise);text-align:center}
.wp-caption{max-width:100%;width:auto !important}
.alignleft{float:left;margin:.3em 1.5em 1em 0} .alignright{float:right;margin:.3em 0 1em 1.5em} .aligncenter{display:block;margin-inline:auto}
@media (max-width: 600px){.alignleft, .alignright{float:none;margin:1em auto}}
.th-inhalt blockquote,.wp-block-quote{margin-inline:0;padding:1rem 1.35rem;background:var(--th-flaeche-2);border-left:4px solid var(--th-leit);border-radius:0 var(--th-radius) var(--th-radius) 0}
blockquote cite{display:block;margin-top:.5rem;font-size:.85em;font-style:normal;color:var(--th-text-leise)}
pre{overflow-x:auto}
mark{background:color-mix(in srgb,var(--th-akzent) 45%, #fff);color:inherit}
.th-seitenlinks{margin:1.5rem 0;display:flex;gap:.4rem;align-items:center}
.th-weiter{margin-top:calc(var(--th-abstand) * 2)}
.th-weiter .nav-links{display:grid;gap:var(--th-abstand)}
@media (min-width: 700px){.th-weiter .nav-links{grid-template-columns:1fr 1fr} .th-weiter .nav-next{text-align:right}}
.th-weiter a{display:block;height:100%;padding:1rem 1.2rem;background:var(--th-flaeche);border-radius:var(--th-radius);color:var(--th-text);font-weight:600;text-decoration:none;transition:box-shadow var(--th-uebergang)}
.th-weiter a:hover{box-shadow:var(--th-schatten)}
.th-weiter__hinweis{display:block;font-size:.8em;font-weight:400;color:var(--th-text-leise)}

/* ===== 8 Block-Grundlagen (Ersatz für das Inline-CSS „global-styles“) ===== */
.is-layout-flex{display:flex;flex-wrap:wrap;align-items:center;gap:.75em}
.is-layout-flex > *{margin:0}
.is-layout-flex.is-vertical{flex-direction:column;align-items:flex-start}
.is-layout-flex.is-nowrap{flex-wrap:nowrap}
.is-content-justification-center{justify-content:center} .is-content-justification-right{justify-content:flex-end} .is-content-justification-space-between{justify-content:space-between}
.is-layout-grid{display:grid;gap:1.2em}
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){margin-inline:auto}
.is-layout-flow > *,.is-layout-constrained > *{margin-block:0 1em}
.is-layout-flow > :last-child,.is-layout-constrained > :last-child{margin-bottom:0}
.wp-block-columns{gap:var(--th-abstand)}
.wp-block-group.has-background,.wp-block-column.has-background{padding:1.25rem 1.4rem;border-radius:var(--th-radius)}
.has-text-align-center{text-align:center} .has-text-align-right{text-align:right}
.has-small-font-size{font-size:.85em} .has-medium-font-size{font-size:1.15em} .has-large-font-size{font-size:1.45em} .has-x-large-font-size{font-size:1.9em}

/* ===== 9 Seitenleiste und Widgets ===== */
.th-widget{padding:1.15rem 1.25rem;background:var(--th-flaeche);border-radius:var(--th-radius)}
.th-widget > :last-child,.th-widget .wp-block-group > :last-child{margin-bottom:0}
.th-widget__titel,.th-widget .wp-block-heading{margin:0 0 .6rem;font-size:1.1rem;color:var(--th-leit-dunkel)}
.th-widget ul,.th-widget ol{list-style:none;margin:0;padding:0}
.th-widget li{border-bottom:1px solid var(--th-linie)}
.th-widget li:last-child{border-bottom:0}
.th-widget li a{display:flex;align-items:center;min-height:var(--th-tipp);padding:.4rem 0;color:var(--th-text);text-decoration:none;line-height:1.4}
.th-widget li a:hover{color:var(--th-leit)}
.th-widget .sub-menu,.th-widget .children{padding-left:1rem;border-top:1px solid var(--th-linie)}
.th-widget .post-date,.wp-block-latest-posts__post-date{display:block;margin-top:-.4rem;padding-bottom:.5rem;font-size:.82em;color:var(--th-text-leise)}
.th-widget img{border-radius:var(--th-radius-klein)}
.widget_search,.widget_block:has(.wp-block-search){padding:.6rem}
.tagcloud,.wp-block-tag-cloud{display:flex;flex-wrap:wrap;gap:.4rem}
.tagcloud a,.wp-block-tag-cloud a{padding:0 .9rem;border-radius:999px;background:var(--th-hintergrund);color:var(--th-text);font-size:.9rem !important;text-decoration:none}

/* Suche */
.th-suche,.wp-block-search__inside-wrapper{display:flex;align-items:stretch;background:var(--th-hintergrund);border:2px solid var(--th-linie);border-radius:999px;overflow:hidden;transition:border-color var(--th-uebergang)}
.th-suche:focus-within,.wp-block-search__inside-wrapper:focus-within{border-color:var(--th-leit)}
.th-suche__feld,.wp-block-search__input{flex:1;min-width:0;min-height:var(--th-tipp);padding:.5rem 1rem;border:0 !important;background:transparent;color:var(--th-text);font:inherit;outline:0}
.th-suche__knopf,.wp-block-search__button{justify-content:center;min-width:var(--th-tipp);margin:0 !important;padding:0 .9rem;border:0;border-radius:0 999px 999px 0;background:var(--th-leit);color:var(--th-leit-text);font:inherit;font-weight:600;cursor:pointer}
.th-suche__knopf:hover,.wp-block-search__button:hover{background:var(--th-leit-dunkel)}

/* ===== 10 Footer ===== */
.th-fuss{position:relative;margin-top:calc(var(--th-abstand) * 3);padding-block:calc(var(--th-abstand) * 1.5) 1.25rem;background:var(--th-fuss);color:var(--th-fuss-text);font-size:.94em}
.th-fuss a{color:var(--th-fuss-text)}
.th-fuss a:hover{color:#fff}
.th-fuss :focus-visible{outline-color:var(--th-fuss-text)}
.th-fuss__spalten{display:grid;gap:calc(var(--th-abstand) * 1.25)}
@media (min-width: 700px){.th-fuss__spalten--2, .th-fuss__spalten--3, .th-fuss__spalten--4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width: 1000px){.th-fuss__spalten--3{grid-template-columns:repeat(3,minmax(0,1fr))} .th-fuss__spalten--4{grid-template-columns:repeat(4,minmax(0,1fr))}}
.th-fuss .th-widget{padding:0;background:none;margin-bottom:1.25rem}
.th-fuss .th-widget__titel,.th-fuss .wp-block-heading{color:#fff;font-size:1.05rem}
.th-fuss .th-widget li{border-color:rgb(255 255 255 / .14)}
.th-fuss .th-widget li a{color:var(--th-fuss-text)}
.th-fuss__name{font-family:var(--th-schrift-titel);font-size:1.35rem;font-weight:var(--th-titel-gewicht);color:#fff;margin:0 0 .3rem}
.th-fuss__leiste{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1.5rem;margin-top:calc(var(--th-abstand) * 1.25);padding-top:1rem;border-top:1px solid rgb(255 255 255 / .16)}
.th-fuss__menue{display:flex;flex-wrap:wrap;gap:0 1.1rem;list-style:none;margin:0;padding:0}
.th-fuss__copyright{margin:0;opacity:.9}

/* ===== 11 Formulare (Kommentare: css/kommentare.css) ===== */
input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"],input[type="number"],textarea,select{width:100%;max-width:100%;min-height:var(--th-tipp);padding:.55rem .85rem;border:2px solid var(--th-linie);border-radius:var(--th-radius-klein);background:#fff;color:var(--th-text);font:inherit}
.th-suche input[type="search"],.wp-block-search input[type="search"]{border:0;background:transparent;border-radius:0}
input:focus,textarea:focus,select:focus{border-color:var(--th-leit);outline:0}

/* ===== 12 Bewegung ===== */
@media (prefers-reduced-motion: reduce) {
	*,*::before,*::after{animation:none !important;transition:none !important;scroll-behavior:auto !important}
}

/* Titelbild oben im Beitrag und auf Seiten: breit, weich abgerundet, mit sanftem Schatten und Rahmenlicht. */
.th-artikel__bild{margin:0 0 2rem;position:relative}
.th-artikel__bild img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:calc(var(--th-radius) * 1.5);box-shadow:0 14px 34px -16px rgba(40,60,45,.45),0 0 0 1px rgba(40,60,45,.08)}
@media (max-width:600px){.th-artikel__bild{margin-inline:-.25rem;margin-bottom:1.5rem}.th-artikel__bild img{border-radius:var(--th-radius)}}

/* Tierhilfe – Baustein hero-bloecke.css: Hero-Blöcke im Inhalt: fh- (Federhilfe), mh- (Maulwurfhilfe), al- (Aide-Limaces).
   Geladen von inc/bausteine.php nur, wenn der Baustein auf der Seite vorkommt. Übersicht: DESIGN.md, Abschnitt 5. */

:is(.fh-hero,.mh-hero,.al-hero) a:is([class*="btn"],[class*="button"]){display:inline-flex;align-items:center;min-height:var(--th-tipp)}
:is(.fh-hero, .mh-hero, .al-hero){max-width:none;margin:0 0 2em;padding:clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);overflow:hidden;border-radius:var(--th-radius);background-color:var(--th-flaeche-2);background-size:cover}
:is(.fh-hero, .mh-hero, .al-hero) :is(h1, h2){margin-top:0}
:is(.fh-hero, .mh-hero, .al-hero) h2::after{display:none}
:is(.fh-hero, .mh-hero, .al-hero) a:is([class*="btn"], [class*="button"]){padding:0 1.3em;border-radius:999px;font-weight:600;text-decoration:none}
:is([class^="fh-"], [class^="mh-"], [class^="al-"]){max-width:100%}

/* Tierhilfe – Baustein toc.css: Inhaltsverzeichnis von Table of Contents Plus (toc_*), nach dem Vorbild von Wikipedia: hellgraues Kästchen, zentrierter Titel mit [hide],
   hängende Nummern (umbrochene Zeilen beginnen unter dem Text, nicht unter der Nummer), blaue Links. Geladen von inc/bausteine.php nur, wenn der Baustein vorkommt. Übersicht: DESIGN.md, Abschnitt 5. */

#toc_container,.toc_widget{--toc-link:#0645ad;--toc-besucht:#54479b;display:table;width:auto !important;max-width:100%;box-sizing:border-box;margin:0 0 1.6em;padding:.85rem 1.4rem 1rem 1.1rem;background:#f8f9fa !important;border:1px solid #c8ccd1 !important;border-radius:8px;font-size:.93em;line-height:1.45}
.toc_widget{display:block;width:100% !important}
.toc_title{margin:0 0 .35rem;font-size:1.05em;font-weight:700;text-align:center !important}
.toc_toggle{font-size:.88em;font-weight:400}
#toc_container ul,.toc_widget_list{list-style:none;margin:0;padding:0}
#toc_container ul ul{padding-left:1.3rem}
#toc_container li,.toc_widget_list li{margin:0}
#toc_container a,.toc_widget_list a{display:block;padding:.18rem 0 .18rem 2.25em;text-indent:-2.25em;color:var(--toc-link);text-decoration:none}
#toc_container a:visited,.toc_widget_list a:visited{color:var(--toc-besucht)}
#toc_container a:hover,.toc_widget_list a:hover{text-decoration:underline}
#toc_container a:focus-visible,.toc_widget_list a:focus-visible{outline:2px solid var(--toc-link);outline-offset:1px;border-radius:2px}
.toc_number{display:inline-block;min-width:2em;margin:0;text-indent:0;color:#202122}
#toc_container .toc_toggle a{display:inline;padding:.5rem .1rem;text-indent:0;color:var(--toc-link)}
@media (pointer:coarse){#toc_container a,.toc_widget_list a{padding-block:.5rem}}

/* Tierhilfe – Baustein favoriten.css: Widget „Lieblingsartikel“ (th-favoriten): kleine runde Vorschaubilder neben dem Titel, wie in den Fußzeilen der Schwesterseiten.
   Geladen von inc/bausteine.php nur, wenn das Widget aktiv ist. Übersicht: DESIGN.md, Abschnitt 9. */

.th-fav{list-style:none;margin:0;padding:0}
.th-widget .th-fav li{border:0}
.th-widget .th-fav li + li{margin-top:.2rem}
.th-widget .th-fav a{display:flex;align-items:center;gap:.85rem;min-height:var(--th-tipp);padding:.35rem 0;line-height:1.35;text-decoration:none}
.th-widget ul.th-fav li > a::after{content:none}
.th-fav__bild{flex:0 0 60px;width:60px;height:60px;object-fit:cover;border-radius:10px;background:color-mix(in srgb,var(--th-leit) 18%,var(--th-hintergrund))}
.th-widget .th-fav img.th-fav__bild{border-radius:10px}
.th-fav__titel{min-width:0;font-size:.97rem;font-weight:500;transition:color var(--th-uebergang)}
.th-fav a:hover .th-fav__titel,.th-fav a:focus-visible .th-fav__titel{text-decoration:underline;text-underline-offset:3px}
.th-fav a:hover .th-fav__bild{filter:brightness(1.06)}
@media (prefers-reduced-motion:reduce){.th-fav__titel{transition:none}}

/* Tierhilfe – Baustein oben.css: kleiner „Nach oben“-Link (th-oben), unauffällig: 44 px Tippfläche, halbtransparent, unten rechts, am Handy wie am Desktop.
   js/th-oben.js blendet ihn nur beim Hochscrollen ein (nie beim Lesen nach unten). Geladen von inc/bausteine.php, wenn die Einstellung an ist. Übersicht: DESIGN.md, Abschnitt 9. */

.th-oben{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:30;display:flex;align-items:center;justify-content:center;width:var(--th-tipp);height:var(--th-tipp);border:1px solid color-mix(in srgb,var(--th-leit) 22%,#fff);border-radius:999px;background:color-mix(in srgb,#fff 90%,var(--th-leit));color:var(--th-leit-dunkel);box-shadow:0 3px 12px rgb(20 40 30 / .14);text-decoration:none;visibility:hidden;opacity:0;transform:translateY(10px);transition:opacity var(--th-uebergang),transform var(--th-uebergang),visibility var(--th-uebergang),background var(--th-uebergang),color var(--th-uebergang);-webkit-tap-highlight-color:transparent}
.th-oben.ist-sichtbar{visibility:visible;opacity:.9;transform:none}
.th-oben:hover,.th-oben:active{opacity:1;background:var(--th-leit);border-color:var(--th-leit);color:var(--th-leit-text)}
.th-oben:focus-visible{opacity:1;outline:3px solid color-mix(in srgb,var(--th-akzent) 75%,#fff);outline-offset:2px}
.th-oben svg{display:block}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
@media (prefers-reduced-motion:reduce){.th-oben{transition:none;transform:none}}
@media print{.th-oben{display:none}}

