/**
 * @file        pages.css
 * @description Components added for the full website: breadcrumbs, menu links, dog card variants, carousel, funnel, filter, forms, lightbox, reduced motion
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @email       tom@synthetixmind.com
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         3cdc75ec-1f64-4b82-8559-3cde0bd7857b
 * @version     0.2.3.21
 * @created     2026-11-05
 * @updated     2026-11-23
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 *
 * Builds on tokens.css, base.css, components.css and effects.css from the MVP. Only opacity and transform animate.
 */

/* ---------------------------------------------------------------- Page frame */
.sample-notice {
  margin: 0;
  padding: var(--space-2) var(--page-gutter);
  background: var(--color-accent);
  color: var(--color-text);
  font-size: var(--text-small);
  text-align: center;
}
.breadcrumbs { padding-block: var(--space-4) 0; font-size: var(--text-small); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: var(--space-2); color: rgba(29, 43, 48, 0.55); }
.breadcrumbs a { color: var(--color-secondary); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: var(--color-text); }

/* Intro block under the breadcrumbs: H1 and lead text of every sub page. */
.page-intro { padding-block: var(--space-6) var(--space-7); }
.page-intro h1 { margin-bottom: var(--space-4); }
.lead { font-size: 1.25rem; max-width: 68ch; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: var(--space-2); }
.prose a:not(.btn) { color: var(--color-secondary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--color-primary-dark); }

/* Placeholders in [brackets] from NewConcept stay visible until the association answers. */
.placeholder { background: rgba(242, 177, 52, 0.25); padding: 0 var(--space-1); border-radius: 4px; }

/* ---------------------------------------------------------------- Main menu: link + submenu button (NewConcept §2) */
.nav-item--parent { display: flex; flex-wrap: wrap; align-items: center; }
.nav-item--parent > .nav-link { flex: 1 1 auto; }
.nav-item--parent > .nav-toggle { flex: 0 0 auto; min-width: var(--target-comfort); min-height: var(--target-comfort); justify-content: center; }
.nav-item--parent > .submenu { flex-basis: 100%; }
.nav-link[aria-current] { color: var(--color-primary-dark); }
.submenu a[aria-current="page"] { font-weight: 700; color: var(--color-secondary); }
@media (min-width: 1024px) {
  .nav-item--parent { flex-wrap: nowrap; position: relative; }
  .nav-item--parent > .nav-toggle { padding-inline: var(--space-1); }
}

/* Mobile panel (below 1024 px): one row per item with a divider, the submenu button sits on the same row
   as its link, the open submenu hangs from a thin brand line.
   WHY width:auto + min-width:0: components.css gives .nav-link width:100%, which pushed the button onto its own row. */
@media (max-width: 1023px) {
  .nav-panel { gap: var(--space-4); }
  .nav-panel-head { margin-bottom: var(--space-2); }
  .nav-list { gap: 0; border-top: 1px solid var(--color-border); }
  .nav-item { border-bottom: 1px solid var(--color-border); padding-block: var(--space-1); }
  .nav-item--parent { flex-wrap: wrap; }
  .nav-item--parent > .nav-link { width: auto; min-width: 0; }
  .nav-link { min-height: 52px; font-size: 1.125rem; }
  .nav-link[aria-current] { box-shadow: inset 3px 0 0 var(--color-primary); }
  .nav-item--parent > .nav-toggle {
    width: 44px; height: 44px; padding: 0; border-radius: 50%;
    background: rgba(14, 74, 87, 0.07); color: var(--color-secondary);
  }
  .nav-item--parent > .nav-toggle[aria-expanded="true"] { background: rgba(231, 31, 38, 0.1); color: var(--color-primary-dark); }
  .nav-item--parent > .submenu {
    margin: 0 0 var(--space-2) var(--space-3); padding: var(--space-1) 0 var(--space-1) var(--space-3);
    border-left: 2px solid var(--color-primary);
  }
  .submenu a { font-size: 1rem; font-weight: 500; }
  .nav-donate { margin-top: var(--space-2); }
}

/* ---------------------------------------------------------------- Footer: version with backoffice letter */
.footer-version a { color: inherit; text-decoration: none; padding: var(--space-1); }
.footer-version a:hover, .footer-version a:focus-visible { text-decoration: underline; }

/* ---------------------------------------------------------------- Dog card (NewConcept 4.6) */
.dog-card { position: relative; }
/* WHY display block (07.11.2026): the news main image is an <a class="card-media">; on an inline element the
   clip-path of effects.css clips to one line box, so the photo vanished and only its empty space was left. */
.card-media { position: relative; overflow: hidden; display: block; }
/* The whole card is clickable; the real link is the name (stretched over the card). */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; box-shadow: none; }
.card:has(.card-link:focus-visible) { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }
.card-action { position: relative; z-index: 2; }
.card-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-3); }
.chips--tags { margin-top: var(--space-2); }
.chip--small { font-size: 0.8125rem; }
/* Tags on the dog profile with their disclaimer (Tom, 07.11.2026). */
.profile-tags { margin-top: var(--space-6); }
.profile-tags h2 { margin-bottom: var(--space-3); }
.profile-tags-note { margin-top: var(--space-3); color: var(--color-text); }

/* CSS stand-in for the label the backoffice burns into real photos (FR-41); only on sample images. */
.dog-label {
  position: absolute; top: var(--space-3); left: var(--space-3);
  padding: var(--space-1) var(--space-3); border-radius: 8px;
  background: var(--color-primary); color: var(--color-white);
  font-weight: 700; line-height: 1.3;
}
.dog-bar {
  position: absolute; inset: auto 0 0 0;
  display: flex; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary); color: var(--color-white);
  font-size: 0.8125rem; font-weight: 700;
}
.dog-bar--deceased { background: var(--color-text); }
/* Foreign dogs (Tom, 06.11.2026): Sonnengelb with black text, like the label burned into their photos. */
.dog-label--foreign, .dog-bar--foreign { background: var(--color-accent); color: #000; }
.dog-badge {
  position: absolute; top: var(--space-3); right: var(--space-3);
  padding: var(--space-1) var(--space-3); border-radius: 999px;
  background: var(--color-secondary); color: var(--color-white);
  font-size: var(--text-small); font-weight: 700;
}
/* «Hat Interessenten» (Tom, 11.11.2026): like «Reserviert», in Sonnengelb with Anthrazit text (7.7:1). */
.dog-badge--interest { background: var(--color-accent); color: var(--color-text); }
/* Deceased dogs: no hover movement (NewConcept 4.6). */
.dog-card--deceased, .dog-card--deceased:hover { transform: none; }
.dog-grid { list-style: none; margin: 0; padding: 0; }
.dog-grid > li { display: flex; }
.dog-grid > li > .card { flex: 1; }

/* ---------------------------------------------------------------- Carousel (NewConcept 4.11) */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr);
  gap: var(--grid-gap); list-style: none; margin: 0; padding: 0 0 var(--space-3);
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.carousel-item { scroll-snap-align: start; display: flex; }
.carousel-item > .card { flex: 1; }
/* WHY: display:flex above beats the browser's [hidden] rule, so carousel.js hid the cards and all 30 stayed visible (06.11.2026). */
.carousel-item[hidden] { display: none; }
@media (min-width: 768px) { .carousel-track { grid-auto-columns: calc((100% - var(--grid-gap)) / 2); } }
@media (min-width: 1024px) { .carousel-track { grid-auto-columns: calc((100% - 2 * var(--grid-gap)) / 3); } }
/* With JS: one group visible, no horizontal scroll. */
.carousel.is-enhanced .carousel-track { grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; transition: opacity 400ms var(--ease-out); }
@media (min-width: 768px) { .carousel.is-enhanced .carousel-track { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .carousel.is-enhanced .carousel-track { grid-template-columns: repeat(3, 1fr); } }
/* Always three per view (start page): side by side from tablet width, stacked on phones. */
@media (min-width: 768px) {
  .carousel--three .carousel-track { grid-auto-columns: calc((100% - 2 * var(--grid-gap)) / 3); }
  .carousel--three.is-enhanced .carousel-track { grid-template-columns: repeat(3, 1fr); }
}
.carousel-track.is-fading { opacity: 0; }
.carousel-controls { display: flex; justify-content: flex-end; gap: var(--space-2); margin-bottom: var(--space-4); }
.carousel-controls[hidden] { display: none; }
.carousel-button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  min-width: var(--target-comfort); min-height: var(--target-comfort); padding: 0 var(--space-3);
  border: 2px solid var(--color-secondary); border-radius: var(--radius); background: transparent;
  color: var(--color-secondary); font: inherit; font-weight: 700; cursor: pointer;
}
.carousel-button:hover { background: var(--color-secondary); color: var(--color-white); }
.carousel-button[hidden] { display: none; }

/* ---------------------------------------------------------------- Funnel (NewConcept 4.12) */
.funnel { max-width: 640px; }
.funnel-step { border: 0; margin: 0 0 var(--space-5); padding: 0; }
.funnel-step[hidden] { display: none; }
.funnel-question { font-family: var(--font-heading); font-size: var(--text-h3); font-weight: 600; margin-bottom: var(--space-4); padding: 0; }
.funnel-question:focus { outline: none; }
.funnel-answers { display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .funnel-answers { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.funnel-answer {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 48px; padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-secondary); border-radius: var(--radius);
  font-weight: 700; color: var(--color-secondary); cursor: pointer;
}
.funnel-answer:has(input:checked) { background: var(--color-secondary); color: var(--color-white); }
.funnel-answer:has(input:focus-visible) { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }
.funnel-answer input { width: 24px; height: 24px; accent-color: var(--color-secondary); }
.funnel-actions { align-items: center; }
.funnel-progress { margin-bottom: var(--space-3); font-weight: 700; color: var(--color-secondary); }

/* ---------------------------------------------------------------- Dog filter and results (NewConcept 6.4) */
.dog-filter {
  display: grid; gap: var(--space-4); align-items: end;
  padding: var(--space-5); border-radius: var(--radius-card); background: var(--color-white); box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .dog-filter { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dog-filter { grid-template-columns: repeat(4, 1fr); } }
.filter-field { display: grid; gap: var(--space-2); }
.filter-checks { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.filter-check { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target-comfort); cursor: pointer; }
.filter-check input { width: 24px; height: 24px; accent-color: var(--color-secondary); }
.filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.dog-results { margin-top: var(--space-7); scroll-margin-top: calc(var(--header-height) + var(--space-4)); }
.dog-results-count { font-weight: 700; }

/* ---------------------------------------------------------------- Forms (NewConcept 4.7) */
.form-field { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.form-field label, .filter-field label, .form-legend { font-weight: 700; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: var(--space-2) var(--space-3);
  border: 1.5px solid rgba(29, 43, 48, 0.4); border-radius: var(--radius);
  background: var(--color-white); color: var(--color-text); font: inherit;
}
textarea { min-height: 144px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 1px; }
.form-choice { display: flex; align-items: center; gap: var(--space-3); min-height: var(--target-comfort); cursor: pointer; }
.form-choice input { width: 24px; height: 24px; accent-color: var(--color-secondary); }
fieldset.form-group { border: 0; margin: 0 0 var(--space-5); padding: 0; }
.form-hint { font-size: var(--text-small); color: rgba(29, 43, 48, 0.75); }
.form-error { display: flex; gap: var(--space-2); color: var(--color-error); font-weight: 700; }
.form-summary { border: 2px solid var(--color-error); border-radius: var(--radius); padding: var(--space-4); margin-bottom: var(--space-6); }
.form-steps { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0 0 var(--space-6); font-size: var(--text-small); }
/* Honeypot (spam protection, NewConcept 6.1–6.3): off screen, not display:none so bots fill it. */
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- Jump marks (NewConcept 4.13) */
.jumpmarks .btn-row { list-style: none; margin: var(--space-5) 0 0; padding: 0; flex-wrap: wrap; }
.jump-target { scroll-margin-top: calc(var(--header-height) + var(--space-4)); }
.jump-target h2:focus, .jump-target h3:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------------------------------------------------------------- Dog profile (P05), gallery, downloads */
.profile { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .profile { grid-template-columns: 7fr 5fr; align-items: start; } }
.profile-media img { width: 100%; height: auto; border-radius: var(--radius-card); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-4); margin: 0; }
.facts dt { font-weight: 700; }
/* Long values wrap instead of running off the screen on phones. */
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 768px) { .facts-break { display: none; } }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.download-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.download-list a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target-comfort); }
/* Statuten und Jahresberichte: read on the page or download (Tom, 07.11.2026). */
.document-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.document { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.document-title { flex: 1 1 100%; margin: 0; display: flex; align-items: center; gap: var(--space-2); font-weight: 700; }
.document-reader { flex: 0 0 auto; }
.document-reader[open] { flex: 1 1 100%; }
.document-reader summary { list-style: none; cursor: pointer; display: inline-flex; }
.document-reader summary::-webkit-details-marker { display: none; }
.document-reader[open] summary { background: var(--color-secondary); color: var(--color-white); }
.document-frame { display: block; width: 100%; height: min(80vh, 900px); margin-top: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-white); }
.document-reader > p { margin: var(--space-2) 0 0; }

/* Lightbox (NewConcept 6.7) */
.lightbox { max-width: min(96vw, 1200px); padding: var(--space-4); border: 0; border-radius: var(--radius-card); background: var(--color-text); color: var(--color-white); }
.lightbox::backdrop { background: rgba(29, 43, 48, 0.85); }
.lightbox-figure { margin: 0; display: grid; gap: var(--space-2); }
.lightbox-image { max-height: 78vh; width: auto; margin-inline: auto; }
.lightbox-button { min-height: var(--target-comfort); margin: var(--space-3) var(--space-2) 0 0; padding: 0 var(--space-4); border: 2px solid var(--color-accent); border-radius: var(--radius); background: transparent; color: var(--color-white); font: inherit; font-weight: 700; cursor: pointer; }
.lightbox-button:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color-on-dark); }

/* ---------------------------------------------------------------- Team (P10, NewConcept 4.9) */
.team-grid { list-style: none; margin: 0; padding: 0; }
/* "Aufgaben" start right under the role in every card (Tom, 06.11.2026): the generic card rule pushes the last
   element to the bottom (for buttons), which made the tasks of shorter cards slide down. */
.team-card .card-body > :last-child { margin-top: 0; }
/* Lists in the tasks (editor lists, 06.11.2026); the dog description gets them from .prose. */
.team-bio ul, .team-bio ol { padding-left: 1.25em; margin: var(--space-2) 0; }
.team-bio li + li { margin-top: var(--space-1); }
.team-photo { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; margin-bottom: var(--space-4); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.6); transition: filter 300ms var(--ease-out), transform 300ms var(--ease-out); }
.team-card:hover .team-photo img, .team-card:focus-within .team-photo img { filter: saturate(1); transform: scale(1.05); }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.02); } }
@media (prefers-reduced-motion: no-preference) {
  .team-photo { animation: breathe 6s ease-in-out calc(var(--i, 0) * -0.7s) infinite alternate; }
}

/* ---------------------------------------------------------------- Sponsors, partners, logos */
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (min-width: 768px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------- Photo placeholder (until the import brings real photos) */
.photo-placeholder {
  display: grid; place-content: center; justify-items: center; gap: var(--space-2);
  aspect-ratio: 4 / 3; border-radius: var(--radius-card);
  background: rgba(14, 74, 87, 0.1); color: var(--color-secondary); font-weight: 700;
}
.photo-placeholder--16-9 { aspect-ratio: 16 / 9; }
.photo-placeholder--1-1 { aspect-ratio: 1 / 1; }

/* ---------------------------------------------------------------- Utilities and card headings */
.h3 { font-size: var(--text-h3); line-height: 1.3; }
.list-reset { list-style: none; margin: 0; padding: 0; }
.section-foot.btn-row { align-items: center; }
/* Alignment from the backoffice editor (FR-6); classes because the CSP blocks style attributes. */
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }
/* WHY: several pages (P14, P15, P20) have no H2 above their cards, so the card names are H2s.
 *      They keep the outline correct but must look like card titles, not section headings. */
.card h2 { font-size: var(--text-h3); line-height: 1.3; }
.card-body .photo-placeholder--1-1, .sponsor-logo { width: min(100%, 160px); }
.sponsor-logo { height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
/* Anchored sections (for example #spendenkonto from the donate-account partial) clear the sticky header. */
main section[id] { scroll-margin-top: calc(var(--header-height) + var(--space-4)); }

/* ---------------------------------------------------------------- Steps with more than five items (P11: 7 steps) */
.step > p { padding-top: 10px; }
@media (min-width: 1024px) {
  .step > p { padding-top: 0; }
  .steps:has(> .step:nth-child(6)) { grid-template-columns: repeat(4, 1fr); row-gap: var(--space-6); }
  .steps:has(> .step:nth-child(6)) > .step:nth-child(4n)::before { display: none; }
}

/* ---------------------------------------------------------------- Long forms (P09, P12, P21) */
.form { max-width: 720px; }
.form-legend { padding: 0; margin-bottom: var(--space-4); }
.form-legend h2, .form-legend h3 { margin: 0; }
.form > fieldset.form-group + fieldset.form-group { padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
/* "Nur wenn …" groups: indented with a petrol rule so they read as one dependent block. */
fieldset.form-group fieldset.form-group {
  margin-top: var(--space-2); padding: var(--space-4) 0 var(--space-1) var(--space-4);
  border-left: 3px solid rgba(14, 74, 87, 0.3);
}
fieldset.form-group fieldset.form-group > .form-legend { font-weight: 700; color: var(--color-secondary); }
.form-steps a {
  display: inline-flex; align-items: center; min-height: var(--target-comfort); padding: 0 var(--space-3);
  border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-white);
  color: var(--color-secondary); font-weight: 700; text-decoration: none;
}
.form-steps a:hover { border-color: var(--color-secondary); }
/* One step at a time (form-steps.js, Tom 07.11.2026): the current step is filled petrol, steps have no divider. */
.form-steps a[aria-current="step"] { background: var(--color-secondary); border-color: var(--color-secondary); color: var(--color-white); }
.form.is-stepped > fieldset.form-group + fieldset.form-group { padding-top: 0; border-top: 0; }
.form-step-actions { margin-top: var(--space-5); }

/* ---------------------------------------------------------------- Contact details (P21) */
address { font-style: normal; display: grid; gap: var(--space-3); }
address p { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
address .icon { color: var(--color-secondary); flex: 0 0 auto; }
/* Social list reuses .checklist but with a plain icon instead of the round .check badge. */
.checklist li > .icon:first-child { width: 22px; height: 22px; margin: 3px auto 0; color: var(--color-secondary); }

/* ---------------------------------------------------------------- Boxes on the dog pages (P02, P05, P06, P07) */
.hint-box { background: var(--color-bg); border: 2px solid var(--color-secondary); box-shadow: none; }
.contact-box { border: 2px solid var(--color-primary); }
.profile-copy { display: grid; gap: var(--space-5); }
.profile-copy > .prose { max-width: none; }
.year-filter { flex-wrap: wrap; margin-top: var(--space-5); }
.letter {
  padding: var(--space-6) var(--space-5); border-left: 4px solid var(--color-accent);
  background: var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  font-size: 1.0625rem;
}
@media (min-width: 768px) { .letter { padding: var(--space-7) var(--space-7); } }
/* The letter in FAQ 11 is a <details> inside a .faq answer: undo the outer FAQ card look. */
.faq .faq-letter { margin-top: var(--space-4); background: var(--color-bg); box-shadow: none; border-left: 3px solid var(--color-accent); border-radius: var(--radius); }
.faq .faq-letter::before { display: none; }
.faq .faq-letter > summary { padding: var(--space-3) var(--space-4); font-weight: 700; cursor: pointer; }
.faq .faq-letter > .prose { padding: 0 var(--space-4) var(--space-4); }

/* ---------------------------------------------------------------- Legal pages (P24–P26): draft notice, contents, tables */
.page-intro .sample-notice { margin-block: var(--space-4); border-radius: var(--radius); text-align: left; padding: var(--space-3) var(--space-4); }
/* The table of contents is the only nav labelled by #toc-title. */
nav[aria-labelledby="toc-title"] {
  margin-top: var(--space-6); padding: var(--space-5); max-width: 68ch;
  background: var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
nav[aria-labelledby="toc-title"] h2 { font-size: var(--text-h3); margin-bottom: var(--space-3); }
nav[aria-labelledby="toc-title"] ol { padding-left: 1.5em; display: grid; gap: var(--space-2); }
nav[aria-labelledby="toc-title"] a { color: var(--color-secondary); text-decoration: underline; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin-block: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-white); }
.table-wrap:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--text-small); }
.table-wrap th, .table-wrap td { padding: var(--space-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.table-wrap thead th { background: rgba(14, 74, 87, 0.08); color: var(--color-secondary); }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }

/* ---------------------------------------------------------------- Backoffice placeholder */
.backoffice-placeholder { padding-block: var(--space-9); }

/* ---------------------------------------------------------------- Reduced motion (InstructionsFullWebsite §5)
   WHY: all movement stops; the team colour change stays (it is not motion). The MVP rule
   "animations always run" applied to the MVP only. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .card--hover:hover, [data-tilt]:hover { transform: none !important; }
}

/* Start page counter «Hunde suchen gerade ein Zuhause» links to /hunde/ (Tom, 06.11.2026); it keeps the counter look. */
.stat-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.stat-link:hover, .stat-link:focus-visible { text-decoration-thickness: 2px; }
dd .stat-link { text-decoration: none; }
.stat-unit { font-size: 0.55em; }
.stat .stat-switch { order: 0; display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); }
.stat-switch-button {
  min-height: 32px; padding: 0 var(--space-3); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px;
  background: transparent; color: var(--color-white); font: 700 0.875rem/1 var(--font-body); text-shadow: none; cursor: pointer;
}
.stat-switch-button[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: #000; }
.stat-switch-button[hidden] { display: none; }
/* Spenden: what we take gets a green tick, what we don't take a red cross (Tom, 07.11.2026). */
.checklist--yes .check { background: var(--color-success); }
.refused { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); align-items: start; }
.refused .check { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--color-primary); color: var(--color-white); }
.refused .check .icon { width: 16px; height: 16px; stroke-width: 3; }

/* «Fremder Hund» chip on dog cards (issue #2): same yellow and black as the image label. */
.chip--foreign { background: var(--color-accent); color: #000; }
/* «Hat Interessenten» chip on the profile (P05), same colours as its badge on the cards. */
.chip--interest { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-text); font-weight: 700; }
