/* =========================================================================
 * sb-app.css — page-level views: home/hero, search + map, profile, rating,
 * add-stable, account. Depends on tokens/base/components. All `.sb-` scoped.
 * ========================================================================= */

.sb-center { text-align: center; }
.sb-muted { color: var(--sb-text-muted); }
.sb-h3 { font-family: var(--sb-font-head); font-size: var(--sb-fs-lg); margin: 0 0 var(--sb-sp-3); }

/* Search form — the search page's sb_stable_search block (bar variant) carries
 * .sb-search-form. The theme's own form and its pre-Elementor hero rules are gone
 * (14.10.2026): every page uses the block now. */
.sb-search-form {
  background: #fff; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-lg);
  padding: var(--sb-sp-4); box-shadow: var(--sb-shadow);
  text-align: left;
}
.sb-search-form .sb-field { margin-bottom: 0; }
.sb-field--radius { flex: 0 0 150px; }

/* Steps */
.sb-steps { display: grid; gap: var(--sb-sp-5); grid-template-columns: 1fr; margin-top: var(--sb-sp-5); }
.sb-step { background: #fff; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-lg); padding: var(--sb-sp-5); }
.sb-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--sb-claret-700); color: #fff; font-weight: 700; margin-bottom: var(--sb-sp-3);
}
.sb-signals { display: grid; gap: var(--sb-sp-6); }
.sb-signals__text { max-width: 60ch; }

/* =========================================================================
 * Search results + map
 * ========================================================================= */
.sb-searchbar { background: var(--sb-bg-alt); border-bottom: 1px solid var(--sb-border); padding-block: var(--sb-sp-4); position: sticky; top: var(--sb-header-h); z-index: 40; }
.sb-search-layout { display: grid; grid-template-columns: 1fr; gap: var(--sb-sp-6); }
/* The result list renders after an API call. On desktop the footer started on
 * screen and was pushed off when the cards arrived — CLS 0.20-0.26 measured
 * locally at 1280px (NFR-002, 21.09.2026; Lighthouse's mobile run cannot see it).
 * Same remedy as the profile: reserve a screen so the footer starts below it. */
.sb-results { min-height: 100vh; min-height: 100svh; }
.sb-search-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sb-sp-3); margin-bottom: var(--sb-sp-5); }
.sb-search-title { margin: 0; }
.sb-search-count { color: var(--sb-text-muted); margin: 0; }
.sb-search-tools { margin-left: auto; display: flex; gap: var(--sb-sp-3); align-items: center; }
.sb-search-tools .sb-select { height: 40px; min-height: 40px; padding-block: 0; }

.sb-results-grid { display: grid; grid-template-columns: 1fr; gap: var(--sb-sp-4); }
.sb-card__media--empty { display: flex; align-items: center; justify-content: center; color: var(--sb-claret-400); }
.sb-card__link { text-decoration: none; color: inherit; display: block; }
.sb-card__score--none { color: var(--sb-text-muted); font-size: var(--sb-fs-sm); }

/* Pagination */
.sb-pagination { display: flex; gap: 4px; justify-content: center; margin-top: var(--sb-sp-6); flex-wrap: wrap; }
.sb-page-btn {
  min-width: 40px; height: 40px; padding: 0 var(--sb-sp-2);
  border: 1px solid var(--sb-border); background: #fff; border-radius: var(--sb-radius-sm);
  cursor: pointer; font: inherit; color: var(--sb-ink-700);
}
button.sb-page-btn:hover:not([disabled]),
button.sb-page-btn:focus:not([disabled]) {
  background: var(--sb-surface-3); color: var(--sb-ink-900); border-color: var(--sb-claret-400);
}
button.sb-page-btn.is-current { background: var(--sb-claret-700); color: #fff; border-color: var(--sb-claret-700); }
.sb-page-btn[disabled] { opacity: .4; cursor: not-allowed; }
.sb-page-ellipsis { padding: 0 4px; align-self: center; color: var(--sb-text-muted); }

/* Map panel + consent gate */
.sb-search-map { position: sticky; top: calc(var(--sb-header-h) + 64px); align-self: start; }
.sb-map-panel, .sb-search-map { min-height: 320px; }
/* The results page (.sb-results) stacks the map ABOVE the grid, full width — it has
   no list-beside-map layout for sticky to make sense in. Sticky there pinned the map
   under the header while the result cards scrolled over it (found 30.09.2026). */
.sb-results > .sb-search-map { position: relative; top: auto; margin: 0 0 var(--sb-sp-6); }
.sb-results > .sb-search-map .sb-map-canvas,
.sb-results > .sb-search-map .sb-map-consent { min-height: 420px; }
@media (max-width: 767.98px) {
  .sb-results > .sb-search-map .sb-map-canvas,
  .sb-results > .sb-search-map .sb-map-consent { min-height: 300px; }
}
.sb-map-consent {
  display: flex; align-items: center; justify-content: center; min-height: 320px;
  background: var(--sb-surface-2); border: 1px dashed var(--sb-border); border-radius: var(--sb-radius-lg);
  text-align: center;
}
.sb-map-panel--inline .sb-map-consent { min-height: 220px; }
.sb-map-consent__inner { max-width: 320px; padding: var(--sb-sp-5); }
.sb-map-consent__inner .sb-icon { width: 32px; height: 32px; color: var(--sb-claret-500); margin-bottom: var(--sb-sp-3); }
.sb-map-consent__text { font-size: var(--sb-fs-sm); color: var(--sb-text-muted); margin-bottom: var(--sb-sp-4); }
.sb-map-consent__link { display: inline-block; margin-top: var(--sb-sp-3); font-size: var(--sb-fs-sm); }
.sb-map-canvas { width: 100%; min-height: 320px; height: 100%; border-radius: var(--sb-radius-lg); overflow: hidden; }
.sb-map-panel--inline .sb-map-canvas { min-height: 220px; }
.sb-map-info { font-size: var(--sb-fs-sm); line-height: 1.4; }
/* Map consent kept across pages: the note before, the way back after (10.10.2026). */
.sb-map-consent__kept { font-size: var(--sb-fs-xs); color: var(--sb-text-muted); margin: var(--sb-sp-2) 0 0; }
.sb-map-withdraw { display: inline-block; margin-top: var(--sb-sp-2); background: none; border: 0; padding: 4px 0; min-height: 32px; font: inherit; font-size: var(--sb-fs-xs); color: var(--sb-text-muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sb-map-withdraw:hover, .sb-map-withdraw:focus-visible { color: var(--sb-primary); }
/* F25: the name and "Profil ansehen" read as links (Google's info window resets them). */
.sb-map-info a { color: var(--sb-primary); text-decoration: underline; text-underline-offset: 2px; }
.sb-map-info a:hover, .sb-map-info a:focus-visible { color: var(--sb-primary-hover); }
.sb-map-info__name { font-weight: var(--sb-fw-semibold, 600); }

/* =========================================================================
 * Stable profile (STB-004)
 * ========================================================================= */
.sb-profile__status { padding-block: var(--sb-sp-7); }
/* The loading state holds a full screen until the profile is hydrated
 * (NFR-002, 21.09.2026). As a two-line skeleton it left the footer on screen,
 * and the content arriving pushed it off: CLS 0.722 measured on staging, seven
 * times the 0.1 limit. CLS only counts shifts inside the viewport, so a footer
 * that starts below the fold cannot shift. svh with a vh fallback.
 * On the ARTICLE, not the loading skeleton: since the heading is server-rendered
 * the skeleton is hidden from the start, and the reservation has to hold while
 * the rest of the layout waits for hydration. */
.sb-profile { min-height: 100vh; min-height: 100svh; }
/* A deleted stable's page (410) is final from the server — nothing arrives that
 * could shift, so the footer may follow the message. */
.sb-profile[data-gone] { min-height: 0; }
/* Same cause on /stall-bewerten/: the picker/form appear after an API call and
 * pushed the footer (CLS 0.110 of 0.124). Unconditional rather than loading-only:
 * dropping the reservation when content arrives would move a short page's footer
 * back UP, which is a shift too. */
.sb-rate { min-height: 100vh; min-height: 100svh; }
/* Hero (redesign approved 14.10.2026, client feedback 13.10.): with a photo, the first
 * photo inside the content width with rounded corners, the text bottom left on it; on
 * phones the photo on top and the text below it on navy. Without a photo, the grey band. */
.sb-profile__header { background: var(--sb-claret-050); border-bottom: 1px solid var(--sb-border); padding-block: var(--sb-sp-6); }
.sb-profile__header--photo { background: none; border-bottom: 0; padding-block: var(--sb-sp-5) 0; }
.sb-profile__hero { display: flex; flex-wrap: wrap; gap: var(--sb-sp-5); align-items: flex-end; justify-content: space-between; }
.sb-profile__header:not(.sb-profile__header--photo) .sb-profile__hero { align-items: flex-start; }
/* min-width:0 lets the heading shrink below its content width (WCAG 1.4.10 at 320px, 21.09.2026). */
.sb-profile__heading { flex: 1 1 320px; min-width: 0; }
.sb-profile__kicker { display: flex; flex-wrap: wrap; gap: var(--sb-sp-2); align-items: center; }
.sb-profile__kicker .sb-pill { background: #fff; }
.sb-profile__name { margin: var(--sb-sp-3) 0 var(--sb-sp-2); }
.sb-profile__place { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--sb-sp-3); color: var(--sb-text-muted); font-size: var(--sb-fs-md, 1rem); }
.sb-profile__place svg { width: 18px; height: 18px; flex: none; }
.sb-profile__score { margin: 0; }
.sb-score-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
.sb-score-line b { font-size: 1.25rem; font-weight: var(--sb-fw-bold, 700); font-variant-numeric: tabular-nums; }
.sb-score-line > span:last-child { opacity: .85; }
.sb-score-line .sb-stars--lg .sb-star { --sb-star-size: 22px; }
.sb-noratings { margin: 0; font-weight: var(--sb-fw-semibold); color: var(--sb-claret-700); }
.sb-profile__actions { flex: 0 0 auto; }
.sb-profile__rate { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: #fff; color: var(--sb-ink-900); border: 1px solid var(--sb-border); }
.sb-profile__rate:hover, .sb-profile__rate:focus-visible { border-color: var(--sb-ink-900); color: var(--sb-ink-900); }
.sb-profile__rate svg { width: 18px; height: 18px; flex: none; }

.sb-profile__header--photo .sb-profile__hero { position: relative; isolation: isolate; min-height: 400px; padding: 32px 36px; border-radius: var(--sb-radius-lg); overflow: hidden; background: var(--sb-claret-700); color: #fff; }
.sb-profile__hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.sb-profile__header--photo .sb-profile__hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,16,37,.05) 30%, rgba(8,16,37,.78) 100%); }
.sb-profile__header--photo .sb-profile__name { color: #fff; }
.sb-profile__header--photo .sb-profile__place,
.sb-profile__header--photo .sb-noratings { color: #fff; }
.sb-profile__header--photo .sb-profile__kicker .sb-pill { background: rgba(255,255,255,.92); border-color: transparent; color: var(--sb-ink-900); }
.sb-profile__header--photo .sb-star--empty { background: rgba(255,255,255,.35); }
.sb-profile__header--photo .sb-star--half { background: linear-gradient(90deg, var(--sb-brass-500) 50%, rgba(255,255,255,.35) 50%); }
@media (max-width: 699.98px) {
  .sb-profile__header--photo { padding-top: var(--sb-sp-3); }
  .sb-profile__header--photo .sb-profile__hero { display: block; min-height: 0; padding: 0 20px 20px; border-radius: 18px; }
  .sb-profile__header--photo .sb-profile__hero::before { content: none; }
  /* The photo on top, in the flow; the text below it on navy so it stays readable. */
  .sb-profile__hero-img { position: static; display: block; width: calc(100% + 40px); max-width: none; height: auto; aspect-ratio: 3 / 2; margin: 0 -20px 16px; }
  .sb-profile__hero .sb-profile__actions { margin-top: var(--sb-sp-4); }
  .sb-profile__actions, .sb-profile__rate { width: 100%; justify-content: center; }
}
.sb-profile__layout { display: grid; grid-template-columns: 1fr; gap: var(--sb-sp-6); padding-block: var(--sb-sp-6); }
.sb-profile__section { margin-bottom: var(--sb-sp-7); }
/* F8: "Übersicht" — description + key facts (review 09.10.2026). */
.sb-profile__desc { margin: 0 0 var(--sb-sp-4); white-space: pre-line; }
.sb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sb-sp-3); margin: 0; }
.sb-facts > div { background: var(--sb-surface-2, #fff); border: 1px solid var(--sb-border); border-radius: var(--sb-radius-sm); padding: var(--sb-sp-3) var(--sb-sp-4); }
.sb-facts dt { font-size: var(--sb-fs-xs); color: var(--sb-text-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 2px; }
.sb-facts dd { margin: 0; font-weight: var(--sb-fw-semibold, 600); }

/* Gallery: the photos after the hero's (redesign 14.10.2026). */
.sb-profile__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sb-gallery__item { margin: 0; aspect-ratio: 4/3; background: var(--sb-surface-3); border-radius: 14px; overflow: hidden; }
.sb-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 699.98px) { .sb-profile__gallery { grid-template-columns: repeat(2, 1fr); } }

/* Category scores: one white card, a row per category (redesign 14.10.2026; were navy bars). */
.sb-cat-scores { margin-top: var(--sb-sp-4); padding: 8px 24px; }
.sb-cat { display: block; padding: 16px 0; }
.sb-cat + .sb-cat { border-top: 1px solid var(--sb-border); }
.sb-cat__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sb-sp-4); width: 100%; }
/* B20: the row is a button that opens the category's criteria. */
/* The Elementor kit styles every <button> (pink fill on hover/focus, padding, radius): the
 * row is text, so it is reset with a selector that outranks the kit's button rules. */
.sb-cat button.sb-cat__head,
.sb-cat button.sb-cat__head:hover,
.sb-cat button.sb-cat__head:focus,
.sb-cat button.sb-cat__head:active { grid-template-columns: minmax(0, 1fr) auto 20px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; color: inherit; text-transform: none; letter-spacing: normal; text-align: left; cursor: pointer; border-radius: 8px; }
.sb-cat button.sb-cat__head:hover .sb-cat__name strong { text-decoration: underline; text-underline-offset: 3px; }
.sb-cat button.sb-cat__head:focus-visible { outline: 2px solid var(--sb-claret-700); outline-offset: 4px; }
.sb-cat__chev { width: 20px; height: 20px; color: var(--sb-text-muted); transition: transform .15s ease; }
.sb-cat__head[aria-expanded="true"] .sb-cat__chev { transform: rotate(180deg); }
.sb-crits { list-style: none; margin: 12px 0 0; padding: 4px 0 0 16px; border-left: 2px solid var(--sb-border); display: grid; gap: 8px; }
.sb-crit { display: flex; justify-content: space-between; align-items: center; gap: var(--sb-sp-3); font-size: var(--sb-fs-sm); }
/* Lead 18.10.: the rating form's `.sb-crit { flex-wrap: wrap }` (Rating flow, below) reaches
 * this list too, so on a phone a long name ("Abstellmöglichkeiten für Anhänger/Kutschen") pushed
 * its stars under the name, left, while short ones kept them right. The name now has its own
 * column and wraps inside it; stars + value always sit in the same right-hand column. */
.sb-crits .sb-crit { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sb-sp-3); }
.sb-crit__rating { display: inline-flex; align-items: center; gap: var(--sb-sp-2); flex: none; }
.sb-crit__val { font-weight: var(--sb-fw-semibold); font-variant-numeric: tabular-nums; min-width: 2.2em; text-align: right; }
.sb-crit__val--none { color: var(--sb-text-muted); font-weight: var(--sb-fw-normal); }
@media (prefers-reduced-motion: reduce) { .sb-cat__chev { transition: none; } }
.sb-cat__name small { display: block; font-size: var(--sb-fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--sb-text-muted); margin-bottom: 4px; }
.sb-cat__name strong { font-size: 1.0625rem; font-weight: var(--sb-fw-medium); }
.sb-cat__rating { display: inline-flex; align-items: center; gap: var(--sb-sp-2); }
.sb-cat__val { font-weight: var(--sb-fw-bold); color: var(--sb-ink-900); font-variant-numeric: tabular-nums; min-width: 2.2em; text-align: right; }
.sb-cat__val--na { color: var(--sb-ink-400); font-weight: var(--sb-fw-normal); }
@media (max-width: 699.98px) {
  .sb-cat-scores { padding: 4px 18px; }
  .sb-cat__head { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sb-cat button.sb-cat__head, .sb-cat button.sb-cat__head:hover, .sb-cat button.sb-cat__head:focus { grid-template-columns: minmax(0, 1fr) 20px; }
  .sb-cat__head .sb-cat__rating { grid-row: 2; grid-column: 1; }
  .sb-cat__chev { grid-row: 1; grid-column: 2; }
  .sb-cat__val { min-width: 0; }
  .sb-crits { padding-left: 12px; }
  .sb-crits .sb-crit { column-gap: 12px; }
}
/* B5: TOP 10 mark under the score on a profile (badge from assets/brand); white so it reads on the photo too. */
.sb-top10-mark { display: inline-flex; align-items: center; gap: 10px; margin: var(--sb-sp-4) 0 0; padding: 5px 16px 5px 5px; border: 1px solid var(--sb-border); border-radius: 999px; background: rgba(255,255,255,.94); color: var(--sb-ink-900); }
.sb-top10-mark img { width: 40px; height: 40px; flex: none; }
.sb-top10-mark > span { display: flex; flex-direction: column; line-height: 1.25; }
.sb-top10-mark strong { font-size: var(--sb-fs-sm); letter-spacing: .04em; color: var(--sb-ink-900); }
.sb-top10-mark > span > span { font-size: var(--sb-fs-xs); color: var(--sb-text-muted); }
/* Comments */
.sb-comments { display: grid; gap: 14px; margin-top: var(--sb-sp-4); }
/* Every comment its own white card, same inner padding as the category card (redesign 14.10.2026). */
.sb-comment { background: #fff; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-lg); padding: 24px; margin: 0; }
.sb-comment--empty { color: var(--sb-text-muted); }
.sb-comment__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sb-sp-3); }
.sb-comment__who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--sb-sp-2); }
@media (max-width: 699.98px) { .sb-comment { padding: 18px; } }
/* Contact form ([sb_contact_form], Kontakt page). */
.sb-contact { margin-top: var(--sb-sp-6); max-width: 720px; }
.sb-contact__form { display: grid; gap: var(--sb-sp-4); }
.sb-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sb-sp-4); }
@media (max-width: 639.98px) { .sb-contact__row { grid-template-columns: 1fr; } }
.sb-contact__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sb-contact__status { margin: 0; color: var(--sb-error, #b32d2e); }
.sb-contact__status:empty { display: none; }
.sb-contact__form .sb-btn { justify-self: start; }
.sb-contact__done { margin: 0; padding: var(--sb-sp-4); border: 1px solid var(--sb-border); border-radius: var(--sb-radius); background: #fff; }
/* PRIV-003 report link + inline form. Muted and small: findable, not shouting. */
.sb-report-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--sb-ink-500, #5b6275); text-decoration: underline; cursor: pointer; min-height: 24px; }
.sb-report-link:hover, .sb-report-link:focus-visible { color: var(--sb-ink-900, #0d1528); }
.sb-report-link[disabled] { text-decoration: none; cursor: default; opacity: .7; }
.sb-comment__report { font-size: 12px; }
.sb-report-entry { margin: var(--sb-sp-4) 0 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.sb-report-entry > .sb-report { flex-basis: 100%; }
.sb-report { margin-top: var(--sb-sp-3); padding: var(--sb-sp-4); border: 1px solid var(--sb-border); border-radius: var(--sb-radius); background: #fff; display: grid; gap: var(--sb-sp-3); }
.sb-report__title { margin: 0; font-weight: 600; }
.sb-report__status { margin: 0; color: var(--sb-error, #b32d2e); }
.sb-report__status:empty { display: none; }
.sb-report__actions { display: flex; gap: var(--sb-sp-2); flex-wrap: wrap; }
.sb-report__done { margin: 0; }
.sb-comment__author { font-weight: var(--sb-fw-semibold); font-size: 1rem; }
.sb-comment__date { flex-basis: 100%; color: var(--sb-text-muted); font-size: 13px; }
.sb-comment__stars { flex: none; }
.sb-comment__text { margin: 12px 0 10px; line-height: 1.6; white-space: pre-line; }
.sb-pill--verified { color: var(--sb-success); background: var(--sb-success-bg); border-color: #b7d8c4; }
/* The badge is a link to the methodology now. Keep it looking like the pill it
   was — an underlined link inside a rating header reads as a second author. */
a.sb-pill--verified { text-decoration: none; }
a.sb-pill--verified:hover,
a.sb-pill--verified:focus-visible { border-color: var(--sb-success); text-decoration: underline; }

/* Contact list */
.sb-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sb-sp-3); }
.sb-contact-list__item { display: flex; justify-content: space-between; gap: var(--sb-sp-3); flex-wrap: wrap; }
.sb-contact-list__label { color: var(--sb-text-muted); font-size: var(--sb-fs-sm); }
.sb-contact-note { font-size: var(--sb-fs-xs); margin: var(--sb-sp-3) 0 0; }
.sb-profile__aside > .sb-card { margin-bottom: var(--sb-sp-4); }

/* =========================================================================
 * Rating flow
 * ========================================================================= */
.sb-rate__head { margin-bottom: var(--sb-sp-5); }
.sb-rate__stablecard { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sb-sp-3); align-items: center; background: var(--sb-claret-050); border: 1px solid var(--sb-claret-100); border-radius: var(--sb-radius); padding: var(--sb-sp-4); margin-bottom: var(--sb-sp-5); }
.sb-rate-cat { border: 1px solid var(--sb-border); border-radius: var(--sb-radius-lg); padding: var(--sb-sp-5); margin: 0 0 var(--sb-sp-5); }
.sb-rate-cat__legend { font-family: var(--sb-font-head); font-size: var(--sb-fs-lg); font-weight: var(--sb-fw-bold); padding: 0 var(--sb-sp-2); color: var(--sb-claret-800); }
.sb-crit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sb-sp-3); padding: var(--sb-sp-3) 0; border-bottom: 1px solid var(--sb-surface-3); }
.sb-crit:last-child { border-bottom: none; }
.sb-crit__label { display: inline-flex; align-items: center; gap: var(--sb-sp-2); font-weight: var(--sb-fw-medium); flex: 1 1 200px; }
.sb-crit__controls { display: inline-flex; align-items: center; gap: var(--sb-sp-4); }
.sb-crit__na { display: inline-flex; align-items: center; gap: 4px; font-size: var(--sb-fs-sm); color: var(--sb-text-muted); cursor: pointer; white-space: nowrap; }
.sb-crit__na-input { width: 16px; height: 16px; accent-color: var(--sb-claret-700); }
.sb-crit.is-na { opacity: .55; }
.sb-crit.has-error { background: var(--sb-error-bg); border-radius: var(--sb-radius-sm); }
/* F5/F6/F7 (review 09.10.2026): reset per criterion, the per-category rule, a kept draft. */
.sb-crit__clear { background: none; border: 0; padding: 4px 6px; min-height: 32px; font: inherit; font-size: var(--sb-fs-sm); color: var(--sb-primary); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sb-crit__clear:hover, .sb-crit__clear:focus-visible { color: var(--sb-primary-hover); }
.sb-crit__clear[hidden] { display: none; }
/* F17: language suggestion (sb-langhint.js) — bottom bar, never covers the header. */
.sb-langhint { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9990; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: var(--sb-sp-3); padding: var(--sb-sp-3) var(--sb-sp-4); background: var(--sb-ink-900, #0B1330); color: #FAF3E5; border-radius: var(--sb-radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: var(--sb-fs-sm); }
.sb-langhint__msg { margin: 0; flex: 1; }
.sb-langhint a.sb-langhint__go { color: #E1AF3B; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.sb-langhint__close { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px; min-width: 32px; min-height: 32px; }
.sb-rate__notfound { text-align: center; margin: var(--sb-sp-7) auto 0; padding-top: var(--sb-sp-6); border-top: 1px solid var(--sb-border); max-width: 520px; }
.sb-rate__notfound-title { font-size: var(--sb-fs-lg, 1.25rem); margin: 0 0 var(--sb-sp-2); }
.sb-rate__notfound p { margin: 0 0 var(--sb-sp-4); color: var(--sb-text-muted); }
.sb-rate__rule { margin: 0 0 var(--sb-sp-4); padding: var(--sb-sp-3) var(--sb-sp-4); background: var(--sb-info-bg); border-radius: var(--sb-radius-sm); font-size: var(--sb-fs-sm); }
.sb-rate__draft-note { margin: 0 0 var(--sb-sp-4); padding: var(--sb-sp-3) var(--sb-sp-4); background: var(--sb-success-bg); color: var(--sb-success); border-radius: var(--sb-radius-sm); font-size: var(--sb-fs-sm); }
.sb-rate-cat.has-error { border-color: var(--sb-error); box-shadow: 0 0 0 1px var(--sb-error); }
.sb-rate__submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sb-sp-4); justify-content: space-between; margin-top: var(--sb-sp-5); }
.sb-rate__progress { margin: 0; color: var(--sb-text-muted); font-size: var(--sb-fs-sm); }

/* =========================================================================
 * Add stable
 * ========================================================================= */
.sb-fieldset { border: 1px solid var(--sb-border); border-radius: var(--sb-radius-lg); padding: var(--sb-sp-5); margin: 0 0 var(--sb-sp-5); }
.sb-fieldset legend { font-family: var(--sb-font-head); font-weight: var(--sb-fw-bold); padding: 0 var(--sb-sp-2); color: var(--sb-claret-800); }
.sb-add__submit { margin-top: var(--sb-sp-5); }

/* =========================================================================
 * Account / auth
 * ========================================================================= */
/* Measured off stallbewertung-html-export/auth.html at 1440 and 390. Every
 * value here is stated outright rather than inherited: `body.sb-app` sets a
 * 16.5px/1.62 base and `.sb-app h1..h4` a -0.012em tracking, and both reach
 * anything that leaves a property unset — the same trap the search-page audit
 * caught. Selectors are `.sb-account …` (0,2,0) so they clear `.sb-app a`
 * (0,1,1), which would otherwise paint the tabs as links.
 *
 * The export's shell — 448px column, `min-h-[80vh]`, `px-4 py-16`, the h1 and
 * the lead — is NOT here. It is Elementor content, built by
 * scripts/dev/elementor/07-auth-pages.php, because the client owns the static
 * copy. This file styles only what the view widget renders. */

/* ---- Segmented tab control (`h-9 rounded-lg bg-muted p-1 grid-cols-2`) ---- */
.sb-account .sb-authtabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  align-items: center;
  height: 36px; padding: 4px; margin: 0;
  background: var(--sb-muted); border-radius: 14px;
}
.sb-account .sb-authtab {
  display: flex; align-items: center; justify-content: center;
  height: 28px; padding: 4px 12px; border-radius: var(--sb-radius);
  font-family: var(--sb-font-sans); font-size: 14px; line-height: 20px;
  font-weight: 500; letter-spacing: normal;
  text-align: center; text-decoration: none; white-space: nowrap;
  color: var(--sb-text-muted); background: transparent;
  transition: color var(--sb-transition), background-color var(--sb-transition);
}
.sb-account .sb-authtab.is-active {
  background: var(--sb-surface-2); color: var(--sb-ink-700);
  box-shadow: var(--sb-shadow-sm);
}
.sb-account .sb-authtab:hover { color: var(--sb-ink-700); }

/* ---- The form (`space-y-3 pt-4`, the panel's own `mt-2`) ---- */
.sb-account .sb-authform { display: grid; gap: 12px; margin-top: 8px; padding-top: 16px; }
.sb-account .sb-authform__intro {
  margin: 0; font-size: 14px; line-height: 20px; color: var(--sb-text-muted);
}
.sb-account .sb-field { margin: 0; }
/* The export's label is an INLINE `text-sm font-medium leading-none` inside a
 * 16/24 block, so its 14px inline box sits centred in the block's own 24px
 * strut and the `mb-1.5` on it is inert — the field comes out 24 + 36 = 60.
 * Written here as a 24px block line, which puts the glyphs in the same band
 * without depending on an inline box's strut. */
.sb-account .sb-label {
  display: block; margin: 0;
  font-size: 14px; line-height: 24px; font-weight: 500; letter-spacing: normal;
  color: var(--sb-ink-700);
}
.sb-account .sb-input {
  height: 36px; min-height: 36px; padding: 4px 12px;
  font-family: var(--sb-font-sans); font-size: 14px; line-height: 20px;
  color: var(--sb-ink-700);
  background: transparent;
  border: 1px solid var(--sb-input-border); border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow-sm);
}
.sb-account .sb-hint,
.sb-account .sb-field__error {
  font-size: 12px; line-height: 16px; margin-top: 6px;
}
.sb-account .sb-checkbox { font-size: 14px; line-height: 20px; gap: 8px; }
.sb-account .sb-checkbox input { accent-color: var(--sb-primary); }

/* The export's submit is `h-9 w-full` — 36px, not the 44px touch target the
 * rest of the app uses. `min-height` beats `height`, so both are set. */
.sb-account .sb-authform .sb-btn {
  height: 36px; min-height: 36px; width: 100%;
  padding: 8px 16px; border: 0; border-radius: var(--sb-radius);
  font-family: var(--sb-font-sans); font-size: 14px; line-height: 20px;
  font-weight: 500; letter-spacing: normal;
  box-shadow: var(--sb-shadow-sm);
}
.sb-account .sb-authform__foot {
  text-align: center; margin: 0; font-size: 14px; line-height: 20px;
}

/* ---- Signed-in dashboard (no export counterpart; the build's own) ---- */
.sb-account__greeting { margin: 0 0 var(--sb-sp-5); color: var(--sb-text-muted); }
.sb-account__greeting:empty { display: none; }
.sb-account__grid { display: grid; grid-template-columns: 1fr; gap: var(--sb-sp-4); }
.sb-account__logout { margin-top: var(--sb-sp-5); }
.sb-myratings { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sb-sp-3); }
.sb-myratings__item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sb-sp-3); padding-bottom: var(--sb-sp-3); border-bottom: 1px solid var(--sb-surface-3); }
.sb-myratings__item time { margin-left: auto; font-size: var(--sb-fs-sm); }

/* Account consent record + withdrawal (PRIV-001, AZ-13). Full width under the
   two-column grid: the withdrawal warning has to be read, not skimmed in a
   half-width column beside the ratings list. Gold, not red — this is a choice
   the user is entitled to make, not an error they have made. */
.sb-account__consent { margin-top: var(--sb-sp-4); }
.sb-account__consent-note:empty { display: none; }
.sb-account__consent-note { margin: var(--sb-sp-3) 0 0; }
.sb-account__consent-actions { margin-top: var(--sb-sp-4); display: flex; flex-wrap: wrap; gap: var(--sb-sp-3); align-items: center; }
.sb-account__consent-warn {
  flex: 1 1 100%; margin: 0; padding: var(--sb-sp-3);
  background: var(--sb-warn-bg); color: var(--sb-warn-ink);
  border-radius: var(--sb-radius-sm); font-size: var(--sb-fs-sm);
}

/* =========================================================================
 * Responsive breakpoints
 * ========================================================================= */
@media (min-width: 560px) {
  .sb-results-grid { grid-template-columns: repeat(2, 1fr); }
  .sb-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .sb-search-layout { grid-template-columns: 1fr 380px; }
  /* The map starts `hidden` (consent-gated, ENT-031). `display:none` removes the
   * aside but NOT its 380px explicit grid track, so the register was rendering
   * into ~60% of the width with a column of empty space beside it. Collapse the
   * track until the map is actually shown. */
  .sb-search-layout:has(> .sb-search-map[hidden]) { grid-template-columns: 1fr; }
  .sb-search-map { grid-row: 1 / 3; }
  .sb-profile__layout { grid-template-columns: 1fr 340px; }
  .sb-account__grid { grid-template-columns: 1fr 1fr; }
  .sb-signals { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .sb-results-grid { grid-template-columns: repeat(2, 1fr); }
}
/* The map panel hides via its `hidden` attribute; the global `[hidden]` rule in
 * sb-base.css handles it, so no per-component override is needed here. */

/* Ad placements (ADS-001).
   `[hidden]` is the state a placement is in for every visitor who has not
   consented — the common case — so it must take up no room and leave no trace.
   WordPress themes routinely lose this to a `display:flex` further down the
   cascade, which turns "no ad" into an unexplained gap, so it is forced here. */
.sb-ad { margin: var(--sb-sp-5) 0; text-align: center; }
.sb-ad[hidden] { display: none !important; }
.sb-ad .adsbygoogle { display: block; margin: 0 auto; }

/* =========================================================================
   Rating methodology (RAT-010 / AZ-16) — [sb_methodology]
   A reading page, not a dashboard: one column, generous measure, and the
   criteria catalogue as a definition list so the criterion and what it covers
   stay associated for a screen reader as well as visually.
   ========================================================================= */
/* overflow-wrap: criterion texts carry slash-joined compounds
   ("Geschwindigkeit/Programm…") with no break opportunity; at 320 px one ran
   16 px out of its box and the page scrolled sideways (WCAG 1.4.10, 28 Sep).
   Breaks only a word that cannot fit — no auto hyphenation (00a43a7). */
.sb-method { max-width: 68ch; overflow-wrap: anywhere; }
.sb-method__section + .sb-method__section { margin-top: var(--sb-sp-6); }
.sb-method__section h2 { margin: 0 0 var(--sb-sp-3); }
.sb-method__section p { margin: 0 0 var(--sb-sp-3); }
.sb-method__steps { margin: 0 0 var(--sb-sp-3); padding-left: 1.25rem; display: grid; gap: var(--sb-sp-2); }
.sb-method__example,
.sb-method__note {
  padding: var(--sb-sp-3);
  background: var(--sb-surface-2);
  border-left: 3px solid var(--sb-line-strong);
  border-radius: var(--sb-radius-sm);
}
.sb-method__group { margin-top: var(--sb-sp-5); }
.sb-method__group h3 { margin: 0 0 var(--sb-sp-3); }
.sb-method__group-key,
.sb-method__key {
  display: inline-block; min-width: 2.6em; margin-right: var(--sb-sp-2);
  font-variant-numeric: tabular-nums; color: var(--sb-text-muted);
}
.sb-method__criteria { margin: 0; }
.sb-method__criteria dt { font-weight: 600; margin-top: var(--sb-sp-3); }
.sb-method__criteria dd {
  margin: 0 0 0 3.4em; color: var(--sb-text-muted); font-size: var(--sb-fs-sm);
}
@media (max-width: 480px) {
  .sb-method__criteria dd { margin-left: 0; }
}

/* Signed-out add page — the design's sentence + register button (eintragen.html). */
/* Export: sentence text-base/leading-6 (16/24), button mt-4 (16px). The body's
 * 1.7 line-height made it 27px. */
.sb-add__signed-out { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sb-add__signed-out p { color: rgba(13, 21, 40, .85); font-size: 16px; line-height: 24px; }
/* Spacing by gap, not p margin: Elementor's per-widget rule
   (.elementor-N .elementor-element-X p) zeroes paragraph margins in the shortcode widget. */
