/* tierheim.de Gestaltung, Claude 28.11.2026, Nachtrag 01.12.2026. Eins zu eins übernehmen; Abweichungen nur in einer eigenen Zusatzdatei. */

/* Schriften: selbst ausgeliefert (Inter, Nunito, SIL OFL), nie von Google laden. Dateien aus @fontsource/inter und @fontsource/nunito. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("schriften/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("schriften/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("schriften/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("schriften/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("schriften/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --surface-muted: #F1EFE7;
  --placeholder: #E6E2D6;
  --text: #1C2321;
  --text-2: #2E3633;
  --text-muted: #4B5552;
  --text-faint: #5E6662;
  --border: #E3E1DA;
  --border-strong: #C9C6BC;
  --accent: #23613F;
  --accent-hover: #174A2F;
  --accent-soft: #EEF5F0;
  --accent-soft-border: #C9DED1;
  --ki: #1F4D35;
  --ki-field: #9DBFAA;
  --ok-bg: #E4F0E8;
  --ok-text: #1F4D35;
  --warn-bg: #FFF4E5;
  --warn-text: #7A3E12;
  --done-bg: #ECEAE4;
  --dark: #1C2321;
  --on-dark: #E9E6DD;
  --on-dark-muted: #C9C6BC;
  --dogvers: #2F520B;
  --dogvers-soft: #E0EFD0;
  --dogvers-cta: #FEA401;
  --dogvers-cta-text: #262C31;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Nunito", "Inter", system-ui, sans-serif;
  --gutter: 24px;
}

/* Grundlage */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Lange Wörter (Nachtrag 01.12.): Zusammensetzungen, Mailadressen und Wortketten mit Schrägstrich brechen um, statt die Seite zu verbreitern. Silbentrennung auf dem Handy unten. */
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-text); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.site-header--admin :focus-visible, .site-footer :focus-visible, .dogvers-card:focus-visible { outline-color: var(--dogvers-cta); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Rahmen */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 1080px; }
.page { padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 22px; }
.page--tight { padding-top: 20px; gap: 24px; }
.page--form { padding-top: 28px; }
.page--entry { padding-top: 48px; padding-bottom: 64px; gap: 28px; }
.page--article { padding-top: 24px; gap: 32px; }
.page--list { padding-top: 40px; gap: 24px; }
.page--search { padding-top: 28px; padding-bottom: 48px; }
.stack-xs { display: flex; flex-direction: column; gap: 4px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-md { display: flex; flex-direction: column; gap: 18px; }
.center { display: flex; justify-content: center; }

/* Kopf */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header__inner { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand__mark { width: 30px; height: 30px; color: var(--accent); flex: 0 0 auto; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 22px; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-weight: 500; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav a:not(.btn)[aria-current="page"] { font-weight: 600; }
.nav__name { color: var(--text-muted); }
.site-header__inner > .nav { margin-left: auto; }
.site-header__action { flex: 0 0 auto; margin-left: 10px; }
.site-header--admin { background: var(--dark); border-bottom: 0; color: #FFFFFF; }
.admin-brand { font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.site-header--admin .nav { gap: 6px 20px; }
.site-header--admin .nav a:not(.btn) { color: var(--on-dark); }
.site-header--admin .nav a:not(.btn):hover { color: #FFFFFF; }
.site-header--admin .nav a:not(.btn)[aria-current="page"] { color: #FFFFFF; font-weight: 500; text-decoration: underline; }

/* Fuß */
.site-footer { background: var(--dark); color: var(--on-dark); }
.site-footer__inner { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #FFFFFF; }
.site-footer__note { width: 100%; font-size: 14px; color: var(--on-dark-muted); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--text); border-color: var(--text-muted); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #FFFFFF; }
.btn--lg { min-height: 48px; padding: 0 22px; border-radius: 12px; }
.btn--xl { min-height: 52px; padding: 0 26px; border-radius: 12px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 15px; font-weight: 400; }
.btn--nav { padding: 0 16px; font-weight: 500; }
.btn--search { padding: 0 24px; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* Überschriften und Text */
.h-hero { font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; max-width: 760px; }
.h-page { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
.h-page-md { font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1.2; }
.h-page-sm { font-family: var(--font-head); font-weight: 800; font-size: 32px; line-height: 1.2; }
.h-list { font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 4.5vw, 46px); line-height: 1.15; }
.h-section { font-family: var(--font-head); font-weight: 800; font-size: 26px; line-height: 1.25; }
.h-panel { font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1.25; }
.h-box { font-size: 18px; font-weight: 700; }
.h-box-lg { font-size: 20px; font-weight: 700; }
.lead { font-size: 18px; color: var(--text-muted); max-width: 680px; }
.lead--hero { font-size: 19px; max-width: 640px; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; color: var(--text-muted); }
.hint { font-size: 13px; color: var(--text-muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.section-head__side { font-size: 15px; color: var(--text-muted); }
.link-strong { font-weight: 600; }
.back-link { font-size: 15px; }

/* Startseite */
.hero { background: var(--surface-muted); }
.hero__inner { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 22px; }
.search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.search__group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.search__legend { font-size: 14px; font-weight: 600; color: var(--text-muted); padding: 0; margin-bottom: 6px; }
.band { background: var(--surface); border-top: 1px solid var(--border); }
.band__inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }

/* Auswahl als Knopfgruppe */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; }
.pill:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.pill--ki:has(input:checked) { border-color: var(--ki-field); box-shadow: inset 0 0 0 1px var(--ki-field); }
.pill input { margin: 0; accent-color: var(--accent); }

/* Filterchips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 15px; text-decoration: none; cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--text-muted); }
.chip[aria-pressed="true"], .chip[aria-current="true"], .chip.is-active { background: var(--accent); border-color: var(--accent); color: #FFFFFF; font-weight: 600; }

/* Karten */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.grid-cards--wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-teasers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.animal-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; color: var(--text); text-decoration: none; }
.animal-card:hover { color: var(--text); border-color: var(--border-strong); }
.animal-card__photo { display: block; width: 100%; height: 190px; object-fit: cover; }
.animal-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.animal-card__name { font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.animal-card__meta { font-size: 15px; color: var(--text-muted); }
.article-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; color: var(--text); text-decoration: none; }
.article-card:hover { color: var(--text); border-color: var(--border-strong); }
.article-card__photo { display: block; width: 100%; height: 170px; object-fit: cover; }
.article-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.article-card__cat { font-size: 13px; font-weight: 600; color: var(--accent); }
.article-card__title { font-weight: 700; font-size: 18px; line-height: 1.3; }
.article-card__teaser { font-size: 15px; color: var(--text-muted); }
.teaser { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--text); text-decoration: none; }
.teaser:hover { color: var(--text); border-color: var(--border-strong); }
.teaser__title { font-weight: 600; font-size: 17px; }
.teaser__meta { font-size: 15px; color: var(--text-muted); }
.badge-ad { align-self: flex-start; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface-muted); color: var(--text-2); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0.05em; text-transform: uppercase; }
.badge-ad--lg { padding: 3px 10px; font-size: 13px; }

/* DOGVERS-Karte: schmal, so breit wie das Bild */
.dogvers-card { width: 100%; max-width: 300px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 20px 22px; border-radius: 20px; background: var(--dogvers); color: #FFFFFF; text-decoration: none; text-align: center; }
.dogvers-card:hover { color: #FFFFFF; }
.dogvers-card__kicker { font-size: 15px; font-weight: 600; color: var(--dogvers-soft); }
.dogvers-card__logo { width: 210px; max-width: 100%; height: auto; }
.dogvers-card__claim { font-size: 14px; color: var(--dogvers-soft); }
.dogvers-card__image { width: 100%; height: auto; }
.dogvers-card__cta { align-self: stretch; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; background: var(--dogvers-cta); color: var(--dogvers-cta-text); font-weight: 700; }
.dogvers-card--center { align-self: center; margin-top: 16px; }
.dogvers-card--side { flex: 0 0 300px; max-width: 100%; }
.dogvers-card--fill { max-width: none; }
.dogvers-card--fill .dogvers-card__image { max-width: 280px; }

/* Tierseite */
.breadcrumbs { font-size: 15px; color: var(--text-muted); }
.breadcrumbs--trail { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; }
.animal-top { display: flex; flex-wrap: wrap; gap: 28px; }
.gallery { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery__stage { display: block; border-radius: 18px; cursor: zoom-in; }
.gallery__main { display: block; width: 100%; height: 420px; border-radius: 18px; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gallery__pick { display: block; border-radius: 12px; }
.gallery__pick:hover .gallery__thumb { opacity: 0.85; }
.gallery__pick[aria-current="true"] .gallery__thumb { box-shadow: 0 0 0 3px var(--accent); }
.gallery__thumb { display: block; width: 100%; height: 86px; border-radius: 12px; object-fit: cover; font-size: 13px; }
.animal-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.animal-info__name { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1.1; }
.animal-info__summary { font-size: 18px; color: var(--text-muted); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.facts__item { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-size: 13px; color: var(--text-muted); }
.facts dd { margin: 0; font-weight: 600; }
.provider { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; }
.provider__logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; font-size: 12px; }
.provider__logo--initial { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font: 800 22px/1 var(--font-head); }
.provider__text { display: flex; flex-direction: column; min-width: 0; }
.provider__label { font-size: 13px; color: var(--text-muted); }
.provider__name { font-weight: 600; }
.price-box { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; }
.price-box__title { font-size: 15px; font-weight: 700; }
.price-box__rows { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.price-box__rows strong { color: var(--dogvers); }
.price-box__date { font-size: 13px; color: var(--text-muted); }
.price-box__link { font-weight: 600; color: var(--dogvers); }
.price-box__link:hover { color: var(--dogvers); }
.about-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.about { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.about__text { color: var(--text-2); }
.report-link { font-size: 14px; color: var(--text-muted); }

/* Formulare */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.panel--inquiry { gap: 16px; max-width: 760px; }
.panel--login { flex: 1 1 340px; min-width: 0; }
.panel--register { flex: 1.4 1 440px; min-width: 0; }
.panel--register > form { gap: 20px; }
.two-col { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.notice { padding: 10px 14px; border-radius: 10px; background: var(--surface-muted); font-size: 14px; color: var(--text-2); }
.notice--ok { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ki); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid__full { grid-column: 1 / -1; }
.form-grid__note { grid-column: 1 / -1; margin-top: -10px; font-size: 14px; }
.field-pair { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--grow { flex: 1 1 220px; }
.field--land { flex: 1 1 200px; }
.field--ort { flex: 2 1 260px; }
.field--narrow { max-width: 220px; }
.label { font-size: 14px; font-weight: 600; }
.ki-mark { font-size: 12px; font-weight: 600; color: var(--ki); }
.input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); }
textarea.input { min-height: 0; padding: 12px 14px; resize: vertical; }
select.input { padding: 0 10px; }
.input--ki { border: 2px solid var(--ki-field); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-2); }
.check--small { font-size: 14px; }
.check input { margin: 4px 0 0; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); }
.check--small input { margin-top: 3px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks__label { width: 100%; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.check-inline input { margin: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-actions--gap12 { gap: 12px; }

/* Feld mit Auswahlfenster (lange Listen: Rasse, Land) */
.picker { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.picker--lg { min-height: 48px; }
.picker--ki { border: 2px solid var(--ki-field); }
.picker__value--empty { color: var(--text-faint); }
.picker__action { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; flex: 0 0 auto; }
.picker__action svg { width: 18px; height: 18px; }

/* Auswahlfenster */
.picker-dialog { width: calc(100% - 32px); max-width: 560px; max-height: calc(100vh - 112px); padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); overflow: hidden; }
.picker-dialog[open] { display: flex; flex-direction: column; }
.picker-dialog::backdrop { background: rgba(28, 35, 33, 0.55); }
.picker-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.picker-dialog__title { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-muted); }
.icon-btn svg { width: 20px; height: 20px; }
.picker-dialog__search { padding: 16px 20px 8px; display: flex; flex-direction: column; gap: 6px; }
.search-input { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 2px solid var(--accent); border-radius: 10px; }
.search-input svg { width: 18px; height: 18px; color: var(--text-muted); flex: 0 0 auto; }
.search-input input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; }
.search-input--quiet { border: 1px solid var(--border-strong); background: var(--surface); }
.picker-dialog__list { flex: 1 1 auto; overflow-y: auto; }
.picker-dialog__group { padding: 8px 20px; display: flex; flex-direction: column; gap: 6px; }
.picker-dialog__group:last-child { padding-bottom: 12px; }
.group-label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.option { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.option input { margin: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.picker-dialog__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); }
/* nur für die Vorschauseite auswahl-fenster.html: zeigt das Fenster offen ohne Skript */
.dialog-demo { position: fixed; inset: 0; background: rgba(28, 35, 33, 0.55); display: flex; align-items: flex-start; justify-content: center; padding: 56px 16px; }
.dialog-demo .picker-dialog { position: static; margin: 0; }

/* Vereinsbereich */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { flex: 1 1 160px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.stat__label { display: block; font-size: 14px; color: var(--text-muted); }
.stat__value { font-weight: 800; font-size: 26px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.row-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.row-card__photo { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; font-size: 12px; }
.row-card__main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.row-card__name { font-weight: 700; font-size: 18px; }
.row-card__meta { font-size: 14px; color: var(--text-muted); }
.row-card__count { font-size: 14px; color: var(--text-muted); min-width: 96px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status { padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.status--ok { background: var(--ok-bg); color: var(--ok-text); }
.status--warn { background: var(--warn-bg); color: var(--warn-text); }
.status--done { background: var(--done-bg); color: var(--text-muted); }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.box--row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.box--request { gap: 14px; }
.request__main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.request__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.request__name { font-weight: 700; font-size: 18px; }
.meta { font-size: 15px; color: var(--text-muted); }

/* Tier anlegen */
.ki-panel { background: var(--accent-soft); border: 1px solid var(--accent-soft-border); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.ki-panel__head { display: flex; align-items: center; gap: 10px; }
.ki-panel__head svg { width: 24px; height: 24px; color: var(--ki); flex: 0 0 auto; }
.ki-panel__title { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--ki); }
.ki-panel__text { color: var(--text-2); }
.ki-sources { display: flex; flex-wrap: wrap; gap: 14px; }
.ki-source { flex: 1 1 380px; min-width: 0; background: var(--surface); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.input-row { display: flex; flex-wrap: wrap; gap: 8px; }
.input-row .input { flex: 1 1 220px; width: auto; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px; padding: 8px; border: 2px dashed var(--ki-field); border-radius: 12px; color: var(--ki); font-weight: 600; text-align: center; cursor: pointer; }
.dropzone__hint { font-weight: 400; font-size: 13px; color: var(--text-muted); }
.status-line { background: var(--surface); border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; }
.status-line--warn { background: var(--warn-bg); color: var(--text-2); }
.tag { padding: 2px 10px; border-radius: 999px; background: var(--ki); color: #FFFFFF; font-size: 13px; font-weight: 600; }
.tag--warn { background: var(--warn-text); }
.badge { padding: 2px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-text); font-size: 13px; font-weight: 600; }
.form-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.form-main { flex: 1 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.form-section { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.form-section__legend { padding: 0 6px; font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.sub-fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sub-fieldset__legend { padding: 0; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.date-parts { display: flex; flex-wrap: wrap; gap: 8px; }
.date-part { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-muted); }
.date-part select { min-width: 110px; }
.date-part--month select { min-width: 140px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-tile { display: block; width: 100%; height: 96px; border-radius: 10px; object-fit: cover; font-size: 13px; }
.photo-add { height: 96px; border-radius: 10px; border: 2px dashed var(--border-strong); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; cursor: pointer; }
.photo-item { position: relative; margin: 0; min-width: 0; }
.photo-item__remove { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.94); color: var(--text); font-size: 13px; cursor: pointer; }
.photo-item__remove input { margin: 0; width: 16px; height: 16px; accent-color: var(--warn-text); }
.photo-item:has(input:checked) .photo-tile { opacity: 0.35; }

/* Ratgeber */
.page-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-top__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.page-search { flex: 1 1 300px; min-width: 0; max-width: 380px; display: flex; flex-direction: column; gap: 6px; }
.article-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.article { flex: 1 1 600px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.65; }
.article__head { display: flex; flex-direction: column; gap: 12px; }
.article__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.article__byline { font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.article__hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; object-fit: contain; background: var(--surface-muted); }
.article__lead { font-size: 20px; color: var(--text-2); }
/* Inhalt aus WordPress, eins zu eins übernommen */
.prose { display: flex; flex-direction: column; gap: 18px; }
.prose > * { margin: 0; }
.prose > p:first-child { font-size: 20px; }
.prose h2 { margin-top: 12px; font-family: var(--font-head); font-weight: 800; font-size: 28px; line-height: 1.25; }
.prose h3 { margin-top: 6px; font-family: var(--font-head); font-weight: 800; font-size: 22px; line-height: 1.3; }
.prose h4 { font-size: 18px; font-weight: 700; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose img { display: block; height: auto; border-radius: 14px; }
.prose figure { display: flex; flex-direction: column; gap: 6px; }
.prose figcaption { font-size: 14px; color: var(--text-muted); }
.prose blockquote { padding: 12px 18px; border-left: 4px solid var(--accent-soft-border); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--text-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--surface); overflow-wrap: normal; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose hr { width: 100%; border: 0; border-top: 1px solid var(--border); }
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.faq__item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; font-size: 17px; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__sign { flex: 0 0 auto; font-size: 26px; line-height: 1; color: var(--accent); transition: transform 0.15s ease; }
.faq__item[open] .faq__sign { transform: rotate(45deg); }
.faq__answer { padding: 0 18px 16px; font-size: 17px; color: var(--text-2); }
.aside { flex: 1 1 300px; min-width: 0; max-width: 360px; display: flex; flex-direction: column; gap: 20px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.toc__title { margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.toc a { min-height: 36px; display: flex; align-items: center; }
.related { display: flex; flex-direction: column; gap: 16px; }
.related--line { padding-top: 28px; border-top: 1px solid var(--border); }

/* Platzhalter für fehlende Fotos (steht absichtlich am Ende, damit er die Bildklassen übersteuert) */
.photo-ph { display: flex; align-items: center; justify-content: center; background: var(--placeholder); color: var(--text-faint); }

/* Handy */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero__inner { padding-top: 36px; padding-bottom: 28px; }
  .page--entry { padding-top: 32px; }
  .page--list { padding-top: 28px; }
  .panel { padding: 18px; }
  .animal-info__name { font-size: 36px; }
  .gallery__main { height: 280px; }
  .gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .gallery__thumb { height: 64px; }
  .article { font-size: 17px; }
  .prose h2 { font-size: 24px; }
  .h-page-md, .h-page-sm { font-size: 28px; }
  .form-grid--two { grid-template-columns: minmax(0, 1fr); }
  .picker-dialog { width: calc(100% - 16px); max-height: calc(100vh - 32px); }
  .site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
  .site-header__inner > .nav { grid-column: 1 / -1; margin-left: 0; gap: 4px 18px; }
  .site-header__action { grid-column: 2; grid-row: 1; margin-left: 0; }
  .site-header .btn { min-height: 40px; padding: 0 14px; }
  .nav__name { display: none; }
  main { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
  main :is(input, textarea, select, .btn) { -webkit-hyphens: manual; hyphens: manual; }
}
