/*
 * Reisebüro Strier — TYPO3 adapter
 *
 * The frozen prototype stylesheet stays byte-identical in
 * Resources/Public/Prototype/css/style.css; the parity is enforced by a sha256
 * assertion (Tests/StrierPrototypeParityContractTest.mjs) and is a release
 * blocker (LRN-058). Because that file cannot be touched, this adapter carries
 * two kinds of rules: the bridge for TYPO3/FSC wrappers and the frontend-editor
 * toolbar, and the design decisions that the frozen sheet can no longer express
 * — panel colour, one panel width, the pause rhythm and the partner plaque.
 *
 * setup.typoscript loads this file after the frozen sheet, and neither file
 * uses @layer, so equal specificity is decided here.
 */

/* One source for the values the frozen sheet holds as literals. Same
 * specificity as style.css:51, loaded later, therefore authoritative — and
 * inherited from :root into the header and footer as well, not only into the
 * content column. */
:root {
  --panel: var(--marine-tief);

  --s-panel: 34rem;

  --s-pause-lang: 55vh;
  --s-pause-kurz: 34vh;

  --s-partner-flaeche: clamp(4rem, 33cqi, 4.5rem);

  --fs-tafel-titel: clamp(1.7rem, 3.4vw, 2.7rem);

  --radius-tafel: 0;
}

/* A second declaration is not a fallback inside a custom property. Both values
 * are stored as an unparsed token stream, so the svh one always wins the
 * cascade and only fails later, at computed-value time, in an engine that does
 * not know small-viewport units. `height` then falls back to its initial value
 * `auto`, which collapses an empty pause div to zero — the whole rhythm is
 * gone rather than merely coarser. @supports asks the engine before the value
 * is stored, so the vh value survives wherever svh is unknown. */
@supports (height: 1svh) {
  :root {
    --s-pause-lang: 55svh;
    --s-pause-kurz: 34svh;
  }
}

.rbstrier-content-column > .frame,
.rbstrier-content-column > .min-ce,
.rbstrier-content-column > [data-content-element] {
  margin: 0;
}

.rbstrier-content-column .frame-container {
  width: min(1440px, 100% - var(--inner-pad) * 2);
  margin-inline: auto;
}

.rbstrier-content-column .ce-textpic,
.rbstrier-content-column .ce-gallery {
  margin: 0;
}

.rbstrier-content-column img {
  display: block;
}

/* TYPO3 keeps the frozen photographic rhythm, but all full-screen narrative
 * copy now uses one opaque panel grammar. An opaque panel needs no additional
 * colour wash on the photograph behind it. */
.rbstrier-content-column .ankunft .inner[data-held-text],
.rbstrier-content-column .satz .inner[data-held-text],
.rbstrier-content-column .ankunft .tafel__text,
.rbstrier-content-column .satz .tafel__text {
  box-sizing: border-box;
  justify-self: start;
  width: min(var(--s-panel), calc(100% - var(--inner-pad) * 2));
  margin-inline: var(--inner-pad) auto;
  padding: clamp(1.5rem, 3vw, 2.6rem) clamp(1.5rem, 3vw, 2.8rem);
  border-left: 3px solid var(--gelb);
  background: var(--panel);
  color: var(--bone);
  text-align: left;
}

.rbstrier-content-column .satz .inner[data-held-text],
.rbstrier-content-column .satz .tafel__text {
  width: min(var(--s-panel), calc(100% - var(--inner-pad) * 2));
}

.rbstrier-content-column .ankunft .weite__bild::after,
.rbstrier-content-column .satz .weite__bild::after,
.rbstrier-content-column .held--tafel .tafel__bild::after {
  background: none;
}

@media (min-width: 62rem) {
  .rbstrier-content-column .ankunft .inner[data-held-text],
  .rbstrier-content-column .satz .inner[data-held-text],
  .rbstrier-content-column .ankunft .tafel__text,
  .rbstrier-content-column .satz .tafel__text {
    margin-left: max(var(--inner-pad), calc(50vw - 720px + var(--inner-pad)));
  }
}

/* One panel width, and only one source for it. Three boards (style.css:531)
 * and both ride captions (style.css:820) carry the literal `min(34rem, …)`
 * inside the frozen file, where it cannot be tokenised. These two rules change
 * no effective value — they put the remaining panels under the same token, so
 * `--s-panel` governs all six instead of matching three of them by accident. */
.rbstrier-content-column .tafel__text {
  width: min(var(--s-panel), calc(100% - var(--inner-pad) * 2));
  min-height: 19.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* The short, editorially maintained titles define the two-line rhythm. Never
 * hide text with a CSS clamp: titles remain complete at every viewport. */
.rbstrier-content-column .tafel__text h3 {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.rbstrier-content-column .tafel__copy p,
.rbstrier-content-column .wege-auftakt__copy p {
  margin-top: 0.9rem;
  max-width: 40ch;
  color: var(--grau-hell);
}

.rbstrier-content-column .satz .tafel__text {
  justify-self: start;
}

/* Long-form pages use authored subheads and a slightly stronger text face.
 * The measure remains calm enough for reading, but no longer dissolves into
 * the pale, low-weight wall that prompted the review. */
.rbstrier-content-column .zug .fliess {
  display: grid;
  gap: 1.25rem;
  max-width: 62ch;
}

.rbstrier-content-column .zug .fliess h3 {
  margin: 1.5rem 0 -0.35rem;
  color: var(--text);
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  font-weight: 500;
}

.rbstrier-content-column .zug .fliess p,
.rbstrier-content-column .zug .fliess li {
  color: var(--text-leise);
  font-weight: 500;
  line-height: 1.7;
}

.rbstrier-content-column .tafel__text .pfeil {
  margin-top: auto;
}

/* The frozen prototype timeline still moves these panels, but its autoAlpha
 * must not remove editorial content when the reader reverses direction. */
.rbstrier-content-column [data-held-text] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.rbstrier-content-column .fahrt[data-fahrt="an"] .station {
  width: min(var(--s-panel), calc(100% - var(--inner-pad) * 2));
}

/* Match the frozen running scene before asynchronous video probing finishes.
 * Header and main share a grid cell, so the real header height needs neither
 * a guessed CSS value nor a late negative margin. No-JS/reduced-motion and
 * unsupported-codec clients retain the original static reading layout. */
:root {
  --rbs-scroll-height: 260vh;
  --rbs-scroll-viewport: 100svh;
  --rbs-scroll-station-a: 22vh;
  --rbs-scroll-station-b: 38vh;
}
@media (prefers-reduced-motion: no-preference) {
  html.rbs-scroll-ready body:not([data-motion="reduced"]):has(.fahrt:not([data-fahrt="standbild"])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);

    & > .kopf { grid-area: 1 / 1; align-self: start; }
    & > #inhalt { grid-area: 1 / 1; min-width: 0; }
    & .fahrt {
      height: var(--rbs-scroll-height);
      margin-top: 0;
    }
    & .fahrt__buehne {
      position: sticky;
      top: 0;
      height: var(--rbs-scroll-viewport);
      min-height: 0;
      display: block;
    }
    & .fahrt__stationen {
      position: absolute;
      inset: 0;
      width: auto;
      margin: 0;
      padding: 0;
      display: block;
    }
    & .fahrt .station {
      position: absolute;
      width: min(var(--s-panel), calc(100% - var(--inner-pad) * 2));
      margin: 0;
    }
    & .fahrt .station--a { left: var(--inner-pad); top: var(--rbs-scroll-station-a); }
    & .fahrt .station--b { right: var(--inner-pad); top: var(--rbs-scroll-station-b); }
    & .fahrt:not([data-fahrt="an"]) .station--a { opacity: 1; transform: none; }
    & .fahrt:not([data-fahrt="an"]) .station--b { visibility: hidden; }
  }
}

/* Without JavaScript the ride captions stand in the flow, one below the other,
 * at the same place — a sequence, and therefore the same width as every other
 * panel. (0,2,0) beats style.css:349 and stays below the (0,3,0) of the running
 * ride, so the ride geometry itself is left untouched. */
.rbstrier-content-column .station {
  width: min(var(--s-panel), 100%);
}

/* The ride captions are editorially short, not visually truncated. This
 * modest display size keeps their complete title inside two measured lines. */
.rbstrier-content-column .station h1,
.rbstrier-content-column .station h2 {
  font-size: clamp(1.85rem, 3vw, 3rem);
  max-width: none;
}

/* The pause between two sticky panels is quiet by default and long only where
 * the narration changes register: after the arrival, and before the quote.
 * The third rule states a meaning, not a position — if an editor moves a block
 * between pause and quote, "the pause before the quote" is factually wrong and
 * the rule correctly stops matching, falling back to the quiet default.
 * Without :has() every pause is short: a flatter rhythm, never a broken one. */
.held-pause {
  height: var(--s-pause-kurz);
}

.ankunft + .held-pause {
  height: var(--s-pause-lang);
}

.held-pause:has(+ .held.satz) {
  height: var(--s-pause-lang);
}

/* The panel is narrower than the character caps were measured against, so the
 * panel edge folds the line before the cap does and the cap only shortens the
 * last line. The measure comes from the panel, not from a second limit.
 * `.satz blockquote { max-width: 30ch }` stays untouched — it carries the
 * flowing-quote fallback on /reisen/beratung. */
.rbstrier-content-column .tafel__text p {
  max-width: none;
}

.station p {
  max-width: none;
}

/* A drop shadow behind display type on an opaque panel is decoration without a
 * task. Scoped to the panel, so the flowing quote keeps its shadow. */
[data-held-text] blockquote {
  text-shadow: none;
}

/* "Vorlagen" marks the temporary working area while the public navigation
 * stays otherwise unchanged. The label itself remains exactly "Vorlagen";
 * the former generated "Arbeitsbereich" suffix must not return. */
.hauptnav a[href="/vorlagen"],
.hauptnav a[href="/vorlagen/"],
.mobilnav a.mobilnav__link[href="/vorlagen"],
.mobilnav a.mobilnav__link[href="/vorlagen/"] {
  color: #e2593f;
}

.nav-punkt:has(> .nav-punkt__zeile > a[href="/vorlagen"]) .nav-klappe,
.nav-punkt:has(> .nav-punkt__zeile > a[href="/vorlagen/"]) .nav-klappe,
.mobilnav__eintrag:has(a[href="/vorlagen"]) .mobilnav__falter,
.mobilnav__eintrag:has(a[href="/vorlagen/"]) .mobilnav__falter {
  color: #e2593f;
}

@media (max-width: 40rem) {
  .rbstrier-content-column .tafel__text {
    min-height: 0;
  }

  .rbstrier-content-column .station h1,
  .rbstrier-content-column .station h2 {
    font-size: clamp(1.45rem, 7.5vw, 2.2rem);
  }
}

/* `.ankunft` is a board, so it carries the heading size of a board. Without
 * this the h2 falls back to the user-agent default and the arrival loses its
 * hierarchy against the body text. */
.rbstrier-content-column .ankunft h2 {
  font-size: var(--fs-tafel-titel);
}

/* Compact editorial lists: readable grouping without the loose prototype
 * spacing that looked like separate paragraphs on content-heavy subpages. */
.rbstrier-content-column .fliess li,
.rbstrier-content-column .zug li,
.rbstrier-content-column .termin__text li {
  margin-block: 0.3rem;
  line-height: 1.55;
}

/* A list that follows the opening paragraph of a text element reads as part of
 * that text: it takes the paragraph's size instead of the smaller body size,
 * so bullet points are never smaller than the text they belong to. */
.rbstrier-content-column .fliess:has(> p:first-child + ul) li,
.rbstrier-content-column .fliess:has(> p:first-child + ol) li {
  font-size: var(--fs-lead);
}

/* Partner marks share one row, one optical size and one centre line — but not
 * one carrier. The DRV mark is a single-colour wordmark (#1B458F) and reaches
 * 1.47:1 on the footer surface, which is not a weak contrast but none at all.
 * Fairweg is a filled disc and brings its own ground (6.37:1). A shared carrier
 * is impossible: DRV would need a background luminance of at least 0.294,
 * Fairweg one of at most 0.115. So the protective surface belongs to the single
 * mark, not to the group — DRV gets a plaque, Fairweg does not. The plaque has
 * no yellow edge: it exhibits a foreign mark, it does not speak. */
.rb-footer .fuss__partner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

/* Only the partner column is a container. All four footer columns carry
 * `.fuss__spalte`, but the partner column is the only `section` among them
 * (Partials/Page/Footer.html:26). Without this container `33cqi` would fall
 * back to the viewport silently and return the same 72px at every width. */
.rb-footer section.fuss__spalte {
  container-type: inline-size;
}

.rb-footer .fuss__partner li,
.rb-footer .fuss__partner a {
  display: flex;
  align-items: center;
}

.rb-footer .fuss__partner a {
  min-height: 4.5rem;
}

.rb-footer .fuss__partnerlogo {
  width: auto;
  height: var(--s-partner-flaeche);
  max-width: 9rem;
  object-fit: contain;
}

/* The carrier is addressed by the mark it holds, never by position: the list
 * items are rendered from {footerPartners.files} and their order is data
 * driven. Height, padding and therefore the inner image size all follow the one
 * partner token; the mark inside keeps a tenth of the plaque on every side. */
.rb-footer .fuss__partner li:has(img[src$="drv-mitglied.svg"]) {
  width: fit-content;
  height: var(--s-partner-flaeche);
  padding: calc(var(--s-partner-flaeche) * 0.1);
  border-radius: var(--radius-tafel);
  background: var(--bone);
}

.rb-footer .fuss__partner li:has(img[src$="drv-mitglied.svg"]) .fuss__partnerlogo {
  height: calc(var(--s-partner-flaeche) * 0.8);
}

/* Content-Block link fields may be empty. The semantic card carrier must
 * remain present either way; when linked, its inner anchor fills the card. */
.rbstrier-content-column .kachel__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.rbstrier-content-column .kachel__link:focus-visible {
  outline: 3px solid var(--gelb);
  outline-offset: -3px;
}

/* FSC's default frame is intentionally neutralised only for the explicit,
 * persisted Strier variants. This keeps ordinary editorial records readable
 * and prevents a generic wrapper from changing prototype geometry. */
.frame.rbstrier-hero-scroll,
.frame.rbstrier-hero-image,
.frame.rbstrier-hero-compact,
.frame.rbstrier-hero-overlay,
.frame.rbstrier-hero-legal,
.frame.rbstrier-held-text,
.frame.rbstrier-bild-rechts,
.frame.rbstrier-bild-links,
.frame.rbstrier-cards-scenes,
.frame.rbstrier-cards-grid,
.frame.rbstrier-cta-panel,
.frame.rbstrier-cta-blue,
.frame.rbstrier-gallery-band,
.frame.rbstrier-team-grid,
.frame.rbstrier-team-flip,
.frame.rbstrier-menu-cards,
.frame.rbstrier-image-band,
.frame.rbstrier-legal-text,
.frame.rbstrier-page-lead,
.frame.rbstrier-partner-logo,
.frame.rbstrier-story-text,
.frame.rbstrier-quote-accent,
.frame.rbstrier-text-default,
.frame.rbstrier-summary,
.frame.rbstrier-contact-card {
  margin: 0;
  padding: 0;
}

/* Die Teamkarten nutzen den mandantenübergreifenden min_cards-Flip-Mechanismus.
   Strier liefert nur Farb- und Textfeinschliff; Inhalt und Interaktion bleiben
   im allgemeinen Element pflegbar. */
.rbstrier-team-flip {
  margin-top: var(--s-block);
}

.rbstrier-team-flip.min-cards--flip-grid .min-cards__flip-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.rbstrier-team-flip .min-cards__flip-card {
  min-width: 0;
  border-radius: var(--radius-kante);
  background: transparent;
}

.rbstrier-team-flip .min-cards__flip-scene {
  min-height: 28rem;
}

.rbstrier-team-flip .min-cards__flip-face {
  border: 0;
  border-radius: var(--radius-kante);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rbstrier-team-flip .min-cards__flip-face--front,
.rbstrier-team-flip .min-cards__flip-face--back {
  background: var(--canvas);
  color: var(--text);
}

.rbstrier-team-flip .min-cards__flip-image {
  height: calc(100% - 7.25rem);
  object-fit: cover;
  object-position: 50% 32%;
}

.rbstrier-team-flip .min-cards__flip-front-shade {
  display: none;
}

.rbstrier-team-flip .min-cards__flip-front-content {
  width: 100%;
  min-height: 7.25rem;
  padding: 1.15rem 1.4rem;
  background: var(--canvas);
  color: var(--text);
}

.rbstrier-team-flip .min-cards__flip-back-title,
.rbstrier-team-flip .min-cards__flip-close {
  color: var(--text);
}

.rbstrier-team-flip .min-cards__flip-eyebrow {
  color: var(--text-leise);
}

.rbstrier-team-flip .min-cards__flip-back-title {
  font-family: var(--ff-body);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 600;
}

.rbstrier-team-flip .min-cards__flip-back-content {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
}

.rbstrier-team-flip .min-cards__flip-bio {
  overflow-wrap: anywhere;
}

.rbstrier-team-flip .min-cards__flip-close {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.rbstrier-team-flip .min-cards__flip-close:hover {
  color: var(--text);
  background: transparent;
}

.rbstrier-team-flip__hint {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-leise);
}

.rbstrier-team-flip__placeholder {
  font-style: italic;
  opacity: 0.78;
}

.rbstrier-team-flip__contact {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.4rem;
}

.rbstrier-team-flip__contact a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.rbstrier-team-flip__contact a:focus-visible,
.rbstrier-team-flip .min-cards__flip-toggle:focus-visible,
.rbstrier-team-flip .min-cards__flip-close:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 3px;
}

@media (max-width: 61.99rem) {
  .rbstrier-team-flip.min-cards--flip-grid .min-cards__flip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 37.49rem) {
  .rbstrier-team-flip.min-cards--flip-grid .min-cards__flip-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* In the light preference the general focus token equals the marine CTA
 * surface. This scoped ring restores a visible keyboard indicator. */
html[data-theme="hell"] .termin.rbstrier-cta-blue :where(a, button, summary, [tabindex]):focus-visible {
  outline-color: var(--bone);
}

/* The frozen styleguide used a few inline demonstration values. TYPO3 records
 * deliberately expose only finite semantic variants, so the bridge restores
 * those exact values without accepting arbitrary editor-supplied CSS. */
.frame.rbstrier-styleguide {
  margin: 0;
  padding: 0;
}

.sg-vgl__titel--low { --sg-demo: 1.45rem; }
.sg-vgl__titel--standard { --sg-demo: 2.15rem; }
.sg-vgl__titel--high { --sg-demo: 3.25rem; }
.sg-vgl__text { font-size: 1.12rem; }
.sg-fliess--ratio-note { margin-top: var(--s-block); }
.sg-farbe--marine-tief { background: #0b1c2d; }
.sg-farbe--marine { background: #14304c; }
.sg-farbe--marine-hell { background: #2c5578; }
.sg-farbe--bone { background: #f3ede2; }
.sg-farbe--gelb { background: #f3b53c; }
.sg-farbe--grau-hell { background: #b9c4d1; }

.rbs-switcher__inline-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.4rem;
  vertical-align: -0.15em;
}

/* Frontend editing is injected only for authorised, signed-in editors. */
html.min-fe-edit-active {
  --rbstrier-editor-offset: var(--min-fe-edit-toolbar-height, 48px);
}

html.min-fe-edit-active .kopf {
  top: var(--rbstrier-editor-offset);
}

html.min-fe-edit-active .skip-link {
  top: calc(var(--rbstrier-editor-offset) - 120px);
}

html.min-fe-edit-active .skip-link:focus-visible {
  top: calc(var(--rbstrier-editor-offset) + 1rem);
}

[data-editable]:focus-visible {
  outline: 3px solid var(--gelb);
  outline-offset: 4px;
}

@media print {
  .fix-kontakt,
  .rbs-switcher,
  .nach-oben,
  .min-fe-edit-toolbar {
    display: none !important;
  }
}

/* Consultation steps: the frozen page keeps the three steps in one section with
 * `gap: 0`, so only the hairline separates them. The content contract renders
 * one content element per step, therefore the section padding is moved onto the
 * step itself and the heading block gets the first grid column back. */
.rbstrier-content-column section.eng.beratung-schritte {
  padding-block: 0;
}

.rbstrier-content-column .beratung-schritte + .beratung-schritte .schritt {
  border-top-color: var(--rand);
}

.rbstrier-content-column .schritt__kopf > h3 {
  font-size: var(--fs-xl);
  max-width: 20ch;
  margin: 0;
}

.rbstrier-content-column .schritt__kopf > p.meta {
  margin-top: 0;
  color: var(--akzent);
}

.rbstrier-content-column .schritt__text > p {
  margin-top: 0;
  color: var(--text-leise);
}

.rbstrier-content-column .schritt__text > p + p {
  margin-top: 1rem;
}

/* Partner mark on a content page: bounded by its own natural size, never
 * upscaled, aligned to the content edge like the surrounding copy. */
.rbstrier-content-column .partnerflaeche__liste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rbstrier-content-column .partnerflaeche__liste > li {
  margin: 0;
  display: flex;
  align-items: center;
}

/* The prototype gives every `ul li` a dash marker via ::before; a logo row is
 * not a bullet list. */
.rbstrier-content-column .partnerflaeche__liste > li::before {
  content: none;
}

.rbstrier-content-column .partnerflaeche__logo {
  width: auto;
  height: 5rem;
  max-width: 9.4rem;
  max-height: 150px;
  object-fit: contain;
}

.rbstrier-content-column .partnerflaeche__link:focus-visible {
  outline: 3px solid var(--gelb);
  outline-offset: 4px;
}

/* GEO/AEO summary: the frozen block is a quiet closing note, not a second
 * headline level. */
.rbstrier-content-column .ki-block > .inner > div > p:first-child {
  margin-top: 0;
}

/* minCore's card menu ships its own markup with utility class names
 * (grid, gap-6, grid-cols-1) that only exist in a Tailwind build. Strier does not
 * load one, so the element rendered as a stack of overlapping links flush against
 * the viewport edge — visibly broken, while every structural check passed. The
 * grammar below is the same one the frozen sheet uses for .kacheln, expressed on
 * the class names minCore actually emits. It stays scoped to .menu-cards so no
 * other element inherits it. */
.rbstrier-content-column .menu-cards {
  width: min(1440px, 100% - var(--inner-pad) * 2);
  margin-inline: auto;
  padding-block: var(--s-block);
}

.rbstrier-content-column .menu-cards__header {
  margin-bottom: clamp(1.4rem, 2.5vw, 2.2rem);
}

.rbstrier-content-column .menu-cards__heading {
  font-family: var(--font-titel, "Anton"), sans-serif;
  font-size: var(--fs-tafel-titel);
  line-height: 1.08;
  color: var(--bone);
  margin: 0;
}

.rbstrier-content-column .menu-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.rbstrier-content-column .menu-card__default {
  height: 100%;
  background: var(--panel);
  border-left: 3px solid var(--gelb);
  border-radius: var(--radius-tafel);
  overflow: hidden;
}

.rbstrier-content-column .menu-card__content {
  padding: clamp(1.2rem, 2.2vw, 1.8rem);
}

.rbstrier-content-column .menu-card__title {
  font-family: var(--font-titel, "Anton"), sans-serif;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.15;
  margin: 0;
}

.rbstrier-content-column .menu-card__title a {
  color: var(--bone);
  text-decoration: none;
}

/* The card is a link target, so the whole panel must answer to the keyboard,
 * not just the words inside it. */
.rbstrier-content-column .menu-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.rbstrier-content-column .menu-card {
  position: relative;
}

.rbstrier-content-column .menu-card:has(a:focus-visible) .menu-card__default,
.rbstrier-content-column .menu-card:hover .menu-card__default {
  border-left-color: var(--bone);
}

.rbstrier-content-column .menu-card__description {
  margin: 0.6rem 0 0;
  color: var(--bone);
  opacity: 0.86;
  font-size: 0.95rem;
  line-height: 1.55;
}

.rbstrier-content-column .menu-card__image img {
  width: 100%;
  height: auto;
  display: block;
}


/* =========================================================================
   Mobiles Menue — Offcanvas nach dem min_core-Muster
   (min_core/Resources/Public/Css/Navigation.css, Abschnitt "Mobile
   Navigation (Offcanvas)"): Panel von rechts, Schleier dahinter, gesperrte
   Seite, Kopfzeile mit Schliesskreuz. Uebernommen wird die Mechanik, nicht
   das Aussehen — Farben, Schrift und Abstaende kommen aus den Strier-Tokens.

   Vorher schob das Menue die Seite nach unten: 19 Links am Stueck, 1103 px
   hoch, alle Untermenues offen, kein Schliessen, und der Stil-Schalter lag
   ueber dem letzten Eintrag (gemessen 04.09.2026 bei 390 px).
   ========================================================================= */
@media (max-width: 61.99rem) {
  .navschalter {
    gap: 5px;
    border-radius: var(--radius-s, 4px);
    transition: background-color 180ms var(--ease, ease), color 180ms var(--ease, ease);
  }
  .navschalter__balken {
    display: block; width: 22px; height: 2px;
    background: currentColor;
    transition: transform 220ms var(--ease, ease), opacity 160ms var(--ease, ease);
  }
  /* Offen wird aus dem Hamburger ein Kreuz — dieselbe Flaeche, ein Zeichen. */
  .navschalter[aria-expanded="true"] .navschalter__balken:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navschalter[aria-expanded="true"] .navschalter__balken:nth-child(2) { opacity: 0; }
  .navschalter[aria-expanded="true"] .navschalter__balken:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobilnav-schleier {
    position: fixed; inset: 0;
    background: rgba(11, 28, 45, 0.62);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    transition: opacity 260ms var(--ease, ease);
  }
  .mobilnav-schleier[hidden] { display: block; pointer-events: none; }
  .mobilnav-schleier.ist-offen { opacity: 1; pointer-events: auto; }

  .mobilnav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(21rem, 86vw);
    max-width: none;
    z-index: 999;
    display: flex; flex-direction: column;
    background: var(--marine-tief);
    border-top: 0;
    border-left: 1px solid var(--rand);
    box-shadow: -1.25rem 0 3rem rgba(11, 28, 45, 0.45);
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
    overscroll-behavior: contain;
  }
  /* Keep the closing transition; hidden panels must not receive focus. */
  .mobilnav[hidden] { display: flex; visibility: hidden; }
  .mobilnav.ist-offen { transform: translateX(0); }

  .mobilnav__kopf {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--rand);
    flex: 0 0 auto;
  }
  .mobilnav__wort {
    font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--akzent);
  }
  .mobilnav__schliessen {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -0.5rem;
    border: 0; background: transparent; color: var(--bone); cursor: pointer;
    border-radius: var(--radius-s, 4px);
    transition: background-color 180ms var(--ease, ease);
  }
  .mobilnav__schliessen svg { width: 22px; height: 22px; }
  .mobilnav__schliessen:hover, .mobilnav__schliessen:focus-visible { background: rgba(243, 237, 226, 0.1); }

  .mobilnav__inhalt {
    flex: 1 1 auto; overflow-y: auto;
    padding: 0.5rem 1.15rem 1.4rem;
    -webkit-overflow-scrolling: touch;
  }
  .mobilnav__liste { display: block; margin: 0; padding: 0; list-style: none; max-width: none; }
  .mobilnav__eintrag { margin: 0; padding: 0; border-bottom: 1px solid var(--rand); }
  .mobilnav__eintrag::before { content: none; }

  .mobilnav__zeile { display: flex; align-items: stretch; gap: 0.5rem; }
  .mobilnav a.mobilnav__link {
    flex: 1 1 auto;
    display: block; padding: 0.95rem 0;
    font-family: var(--ff-display); font-size: 1.22rem; font-weight: 400;
    letter-spacing: 0.01em; text-decoration: none; border-bottom: 0;
    color: var(--bone);
  }
  .mobilnav a.mobilnav__link[aria-current="page"] { color: var(--akzent); }

  .mobilnav__falter {
    flex: 0 0 auto;
    width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; background: transparent; color: var(--text-leise); cursor: pointer;
    border-radius: var(--radius-s, 4px);
  }
  .mobilnav__falter svg { width: 20px; height: 20px; transition: transform 240ms var(--ease, ease); }
  .mobilnav__falter[aria-expanded="true"] svg { transform: rotate(180deg); }
  .mobilnav__falter[aria-expanded="true"] { color: var(--akzent); }

  .mobilnav__gruppe {
    display: block; margin: 0 0 0.7rem; padding: 0 0 0 0.9rem;
    list-style: none; max-width: none;
    border-left: 2px solid var(--akzent);
  }
  .mobilnav__gruppe[hidden] { display: none; }
  .mobilnav__gruppe li { margin: 0; padding: 0; }
  .mobilnav__gruppe li::before { content: none; }
  .mobilnav a.mobilnav__unterlink {
    display: block; padding: 0.6rem 0;
    font-size: 1rem; text-decoration: none; border-bottom: 0;
    color: var(--text-leise);
  }
  .mobilnav a.mobilnav__unterlink[aria-current="page"] { color: var(--akzent); }

  .mobilnav__termin { display: flex; justify-content: center; margin-top: 1.25rem; }

  /* Die feste Kontaktleiste und der Stil-Schalter liegen sonst ueber dem
     Panel und verdecken Eintraege. */
  body.mobilnav-offen .fix-kontakt,
  body.mobilnav-offen .rbs-switcher,
  body.mobilnav-offen .nach-oben { opacity: 0; pointer-events: none; }
  body.mobilnav-offen { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .mobilnav, .mobilnav-schleier, .navschalter__balken, .mobilnav__falter svg { transition: none; }
}

/* =========================================================================
   Reisebericht — die Textspalte bleibt stehen, solange Bilder danebenlaufen

   Ein Kapitel hat links Bilder und rechts Text (oder umgekehrt), und die
   Spalten sind selten gleich lang: bei "Zweite Woche an der Algarve" endet der
   Text nach gut einem Drittel, danach scrollen 1.400 px Bilder an einer leeren
   Flaeche vorbei. Der Text bleibt jetzt am oberen Rand haengen, bis das letzte
   Bild seines Kapitels durch ist, und wandert dann mit weiter.

   Bewusst `position: sticky` und nicht GSAP ScrollTrigger.pin: der Effekt ist
   derselbe, aber er braucht kein Skript, keine Bibliothek und keine
   Neuberechnung bei Groessenaenderung — und er faellt sauber aus, wenn der
   Browser ihn nicht kann. Der Kopf klebt bei 0, deshalb setzt der Text darunter
   an; `align-items: start` aus dem Prototyp ist die Voraussetzung dafuer und
   bleibt unangetastet.
   ========================================================================= */
@media (min-width: 62rem) {
  .bericht-kapitel__wort {
    position: sticky;
    top: calc(var(--kopf-hoehe, 5.5rem) + clamp(1rem, 2vw, 2rem));
    /* Ein Kapiteltext, der laenger als der Bildschirm ist, darf nicht oben
       festhaengen und unten abgeschnitten werden. */
    max-height: calc(100vh - var(--kopf-hoehe, 5.5rem) - clamp(2rem, 4vw, 4rem));
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bericht-kapitel__wort { position: static; max-height: none; }
}

/* =========================================================================
   Fussbereich — eine Schriftgroesse, ohne Ausnahme

   Gemessen am 04.09.2026 vier verschiedene Groessen auf engstem Raum: die
   Rubrikzeilen auf 0.85rem (13,6 px), die Kontaktspalte auf 0.96rem
   (15,36 px), die Service-Links auf 0.99rem (15,84 px), Kanaele und Partner
   auf 1.02rem (16,32 px). Unterschiede von unter einem Pixel wirken nicht als
   Abstufung, sie wirken als Versehen.

   Alles steht jetzt auf 1rem. Dort unten stehen Adresse, Telefon und
   Rechtslinks — gesucht, nicht ueberflogen. Die Rubrikzeilen unterscheiden
   sich weiter durch Versalien, Sperrung und Akzentfarbe; sie brauchen dafuer
   keine eigene Groesse.

   Der Selektor greift ueber den ganzen Fussbereich statt ueber eine Liste
   einzelner Klassen: die Haelfte der Elemente dort traegt gar keine, und jede
   neue Zeile im Fuss haette sonst wieder ihre eigene Groesse.
   ========================================================================= */
.fuss,
.fuss p,
.fuss a,
.fuss nav a,
.fuss nav li,
.fuss ul li,
.fuss li,
.fuss dt,
.fuss dd,
.fuss span,
.fuss strong,
.fuss h2,
.fuss__link,
.fuss__partnerwort,
.fuss__kanal {
  font-size: 1rem;
}

/* =========================================================================
   Reisebericht-Auftakt — Verlauf hinter dem Text, nicht ueber dem Bild

   `.story__schleier` ist bewusst leicht (0,20 bis 0,34): die Kapiteltexte
   stehen unten auf `.story__karte`, einer eigenen Flaeche, und brauchen keine
   Abdunklung ringsum. Der Auftakt mit h1 und Vorspann hat diese Karte nicht —
   er steht nackt auf dem Foto.

   Gemessen am 04.09.2026 auf /reisebericht-b-lang: hinter der Ueberschrift lag
   ein Hintergrund von 69 Prozent Helligkeit, gegen Text in #f3ede2 macht das
   rund 2:1. WCAG 2.2 AA verlangt 3:1 fuer grosse Schrift.

   Der Verlauf laeuft deshalb nur ueber den Auftakt und nur von links, wo der
   Text sitzt: dort traegt er, rechts bleibt das Foto in seinem eigenen Licht.
   Er ersetzt keine Karte, er macht das Bild an einer Stelle lesbar.
   ========================================================================= */
.story__auftakt {
  position: relative;
}

.story__auftakt::before {
  content: "";
  position: absolute;
  inset: -10% -20% -10% -50vw;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(11, 28, 45, 0.86) 0%,
      rgba(11, 28, 45, 0.78) 34%,
      rgba(11, 28, 45, 0.42) 62%,
      rgba(11, 28, 45, 0.10) 82%,
      rgba(11, 28, 45, 0) 100%),
    linear-gradient(180deg,
      rgba(11, 28, 45, 0) 0%,
      rgba(11, 28, 45, 0.28) 30%,
      rgba(11, 28, 45, 0.28) 70%,
      rgba(11, 28, 45, 0) 100%);
}

/* Dieselbe Luecke im Sog-Auftakt: dort ist der Grundschleier kraeftiger, aber
   die Ueberschrift steht ebenfalls ohne eigene Flaeche. */
.bericht-sog__auftakt {
  position: relative;
}

.bericht-sog__auftakt::before {
  content: "";
  position: absolute;
  inset: -10% -20% -10% -50vw;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(11, 28, 45, 0.60) 0%,
    rgba(11, 28, 45, 0.46) 40%,
    rgba(11, 28, 45, 0.16) 70%,
    rgba(11, 28, 45, 0) 100%);
}

/* =========================================================================
   Die letzte Buehne einer Folge klebt nicht

   `.held` ist `position: sticky` — das ist der Sinn der Strecke: eine Buehne
   bleibt stehen, bis die naechste sich darueberschiebt. Das funktioniert nur,
   solange eine naechste kommt.

   Steht eine Buehne allein oder am Ende, klebt sie bei top 0 und alles
   Folgende laeuft ueber sie hinweg. Auf der Startseite faellt das nicht auf,
   weil das Terminband dahinter eine eigene helle Flaeche mitbringt. Auf
   /vorlagen steht die Buehne einzeln zwischen durchsichtigen Erklaertexten —
   dort schrieb sich die halbe Seite ueber das Bild (gemeldet 04.09.2026).

   Eine klebende Buehne braucht zwingend etwas Deckendes danach, und das laesst
   sich in einem Redaktionssystem nicht zusichern. Also klebt nur, wer eine
   Nachfolgerin hat.
   ========================================================================= */
/* A closing call-to-action band (`.termin`) is the opaque successor described
 * above: it slides over the last scene, so that scene may stay pinned. Without
 * this exception the previous scene shows through the pause behind the last
 * one (home page: the "In kleiner Gruppe" scene appeared a second time). */
.held:not(:has(~ .held)):not(:has(~ .termin)) {
  position: relative;
}

/* =========================================================================
   Native Formulare — dieselbe Strier-Fläche, dieselben Tokens

   EXT:form bleibt für Semantik, Validierung und Versand zuständig. Dieser
   Block gibt seinen Standardklassen lediglich die Mandantenoptik und einen
   belastbaren Inhaltsrahmen; alle Controls bleiben native Formelemente.
   ========================================================================= */
/* TYPO3's current native renderer emits `min-form` and `min-form__*` classes.
 * Keep the former terminwahl selector as a compatibility fallback, but bind the
 * production rule to the rendered form class so the form is a full-width grid
 * in the actual content column at every viewport. */
form.min-form[data-form-framework],
.rbstrier-content-column form.terminwahl[data-form-framework="true"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
  width: min(52rem, calc(100% - var(--inner-pad) * 2));
  box-sizing: border-box;
  margin: clamp(3.5rem, 7vw, 6rem) auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--rand);
  border-left: 3px solid var(--akzent);
  background: var(--surface);
  color: var(--text);
}

.min-form > h2,
.terminwahl > h2 {
  margin: 0 0 0.4rem;
  color: var(--text);
  font: 400 var(--fs-xl)/1.08 var(--ff-display);
}

.min-form__field,
.terminwahl .form-element {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  min-width: 0;
}

.min-form__label,
.terminwahl .form-label,
.terminwahl .form-check-label {
  color: var(--text);
  font: 500 var(--fs-body)/1.45 var(--ff-body);
}

.min-form :is(.min-form__input, .form-control, .form-select),
.terminwahl :is(.form-control, .form-select) {
  width: 100%;
  box-sizing: border-box;
  min-height: 3.25rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--rand);
  border-radius: var(--radius-kante);
  background: var(--canvas);
  color: var(--text);
  font: 500 var(--fs-body)/1.45 var(--ff-body);
  caret-color: var(--akzent);
}

.min-form textarea.min-form__input,
.terminwahl textarea.form-control {
  min-height: 10rem;
  resize: vertical;
}

.min-form :is(.min-form__input, .form-control, .form-select)::placeholder,
.terminwahl :is(.form-control, .form-select)::placeholder {
  color: var(--text-leise);
  opacity: 0.86;
}

.min-form :is(.min-form__input, .form-control, .form-select):focus,
.terminwahl :is(.form-control, .form-select):focus {
  border-color: var(--akzent);
  outline: 3px solid color-mix(in srgb, var(--akzent) 34%, transparent);
  outline-offset: 2px;
}

.min-form .form-check-wrapping-label,
.terminwahl .form-check-wrapping-label {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
}

.min-form input[type="checkbox"],
.terminwahl .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--akzent);
}

.min-form .form-check-label,
.terminwahl .form-check-label {
  color: var(--text-leise);
}

.min-form .form-check-label a,
.terminwahl .form-check-label a {
  color: var(--akzent);
  text-underline-offset: 0.2em;
}

.min-form .min-form__required,
.terminwahl .required {
  color: var(--akzent);
}

.min-form .invalid-feedback,
.terminwahl .invalid-feedback {
  color: var(--bone);
  font-weight: 500;
}

.min-form .is-invalid :is(.min-form__input, .form-control, .form-select),
.min-form :is(.min-form__input, .form-control, .form-select).is-invalid,
.terminwahl .is-invalid :is(.form-control, .form-select),
.terminwahl :is(.form-control, .form-select).is-invalid {
  border-color: var(--akzent);
}

.min-form__actions,
.terminwahl .actions {
  margin-top: 0.5rem;
}

.min-form .btn-primary,
.terminwahl .btn-primary {
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--gelb);
  border-radius: var(--radius-kante);
  background: var(--gelb);
  color: var(--marine-tief);
  font: 500 var(--fs-body)/1.2 var(--ff-body);
  cursor: pointer;
  transition: background-color var(--dauer-schnell) var(--ease), color var(--dauer-schnell) var(--ease);
}

.min-form .btn-primary:hover,
.terminwahl .btn-primary:hover {
  background: var(--bone);
  border-color: var(--bone);
}

/* Aufklappbare Bildkarten sind per Tastatur und Touch bedienbar. Inhalte
   bleiben im DOM und bei reduzierter Bewegung ohne Animation zugänglich. */
.flip-karten__raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: var(--s-block);
}

.flip-karte {
  overflow: clip;
  border: 1px solid var(--rand);
  border-radius: var(--radius-kante);
  background: var(--surface);
}

.flip-karte__vorderseite {
  position: relative;
  display: grid;
  min-height: 18rem;
  cursor: pointer;
  list-style: none;
}

.flip-karte__vorderseite::-webkit-details-marker { display: none; }

.flip-karte__vorderseite img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  grid-area: 1 / 1;
}

.flip-karte__vorderseite::after {
  content: "";
  grid-area: 1 / 1;
  background: linear-gradient(180deg, transparent 32%, color-mix(in srgb, var(--marine-tief) 88%, transparent) 100%);
}

.flip-karte__titel,
.flip-karte__zeichen {
  z-index: 1;
  align-self: end;
  grid-area: 1 / 1;
  color: var(--bone);
}

.flip-karte__titel {
  padding: 1.4rem 3.5rem 1.4rem 1.4rem;
  font: 400 var(--fs-xl)/1.08 var(--ff-display);
}

.flip-karte__zeichen {
  justify-self: end;
  margin: 0 1.25rem 1.25rem 0;
  font-size: 2rem;
  line-height: 1;
  transition: transform var(--dauer-basis) var(--ease);
}

.flip-karte[open] .flip-karte__zeichen { transform: rotate(45deg); }

.flip-karte__rueckseite {
  padding: 1.4rem;
  border-top: 3px solid var(--akzent);
  color: var(--text-leise);
}

.flip-karte__rueckseite :first-child { margin-top: 0; }
.flip-karte__rueckseite :last-child { margin-bottom: 0; }

@media (max-width: 61.99rem) {
  .flip-karten__raster { grid-template-columns: 1fr; }
  .flip-karte__vorderseite,
  .flip-karte__vorderseite img { min-height: 15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .flip-karte__zeichen,
  .min-form .btn-primary,
  .terminwahl .btn-primary { transition: none; }
}

/* The editorial catalogue is a sequence of explained examples. Sticky story
   stages must stay in their own place so they cannot cover later explanations. */
.rbstrier-content-column:has(.overview-record) .held {
  position: relative;
  top: auto;
}
.rbstrier-content-column:has(.overview-record) .held-pause {
  display: none;
}

/* Catalogue copy, not a new editor frame. Explanation spacing is independent
   of the 96px public-section rhythm. Record wrappers bound sticky descendants. */
.rbstrier-content-column:has(.overview-record) > .overview-record {
  display: flow-root;
  position: relative;
  isolation: isolate;
}
.rbstrier-content-column:has(.overview-record) > [data-overview-key^="rbstrier.s1.example."] {
  margin-bottom: 2rem;
}
.rbstrier-content-column:has(.overview-record) > [data-overview-key^="rbstrier.s1.explain."] > .ki-block {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rand);
}
.rbstrier-content-column:has(.overview-record) > [data-overview-key^="rbstrier.s1.group."] > .ki-block {
  padding-block: 2.5rem 1rem;
}
.rbstrier-content-column:has(.overview-record) > [data-overview-key^="rbstrier.s1.group."] h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
.rbstrier-content-column:has(.overview-record) > [data-overview-key="rbstrier.s1.intro"] > .ki-block {
  padding-block: 2.5rem 2rem;
}
.rbstrier-content-column:has(.overview-record) > [data-overview-key="rbstrier.s1.intro"] h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-xxl);
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}
.rbstrier-content-column:has(.overview-record) .s1-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin-top: 1rem;
}
.rbstrier-content-column:has(.overview-record) .s1-fields p {
  max-width: 62ch;
  margin: 0;
}
.rbstrier-content-column:has(.overview-record) .s1-fields strong {
  font-weight: 500;
  color: var(--text);
}
.rbstrier-content-column:has(.overview-record) .ki-block .s1-jump-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2rem;
  max-width: none;
  margin-block: 1.5rem;
  list-style: none;
}
.rbstrier-content-column:has(.overview-record) .ki-block .s1-jump-list li { margin: 0; padding: 0; }
.rbstrier-content-column:has(.overview-record) .ki-block .s1-jump-list li::before { content: none; }
.rbstrier-content-column:has(.overview-record) .ki-block .s1-jump-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  min-height: 44px;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--rand);
  color: var(--text);
  text-decoration: none;
}
.rbstrier-content-column:has(.overview-record) .ki-block .s1-jump-list a:hover { color: var(--akzent); }
.rbstrier-content-column:has(.overview-record) .ki-block .s1-jump-list span { font-size: var(--fs-meta); color: var(--text-leise); }
.rbstrier-content-column:has(.overview-record) [id^="element-"] { scroll-margin-top: 9rem; }
/* The homepage ride runtime is not loaded on the catalogue's Default layout.
   Its fallback poster and both captions must fit their record in screenshots. */
.rbstrier-content-column:has(.overview-record) .fahrt__buehne {
  height: auto;
  min-height: 0;
  position: relative;
}
.rbstrier-content-column:has(.overview-record) .fahrt__stationen { padding-block: 2rem; }
.rbstrier-content-column:has(.overview-record) .station {
  position: relative;
  opacity: 1;
  transform: none;
}
@media (max-width: 61.99rem) {
  .rbstrier-content-column:has(.overview-record) .ki-block .s1-jump-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 37.49rem) {
  .rbstrier-content-column:has(.overview-record) .s1-fields,
  .rbstrier-content-column:has(.overview-record) .ki-block .s1-jump-list { grid-template-columns: minmax(0, 1fr); }
}
/* A sample follows its explanation directly; public block paddings are for
   transitions between public sections, not an explanation/sample pair. */
.rbstrier-content-column:has(.overview-record) > [data-overview-key^="rbstrier.s1.example."] > :is(section.eng, section.zug, section.termin, section.kopfbild:not(.rbstrier-hero-overlay)) {
  padding-block: 1.5rem 2rem;
}
/* Contact actions already appear as examples; the floating rail must not cover
   the catalogue's narrow-screen jump links. */
body:has(.rbstrier-content-column:has(.overview-record)) .fix-kontakt { display: none; }

/* Catalogue labels: existing summary frame, visibly separate from the copy. */
.rbstrier-content-column:has(.overview-record) > [data-overview-key^="rbstrier.s1.explain."] > .ki-block {
  padding-block: 1rem;
  border-block-start: 1px solid var(--text-leise);
  background: var(--flaeche, transparent);
  font-size: .875rem;
}
.rbstrier-content-column:has(.overview-record) > [data-overview-key^="rbstrier.s1.explain."] .inner {
  border-inline-start: 3px solid var(--akzent);
  padding-inline-start: 1rem;
}
.rbstrier-content-column:has(.overview-record) > [data-overview-key^="rbstrier.s1.explain."] p { margin: 0; }

/* Short template hubs reuse the native card menu and the Strier type palette. */
[data-overview-key^="rbstrier.v1."][data-overview-key$=".menu"] .kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
[data-overview-key^="rbstrier.v1."][data-overview-key$=".menu"] .kachel :is(img, .kachel__symbol) { height: 120px; width: 100%; object-fit: cover; }
[data-overview-key^="rbstrier.v1."][data-overview-key$=".menu"] .kachel__symbol { display: grid; place-items: center; background: var(--blau, #143a5e); color: var(--akzent); font-size: 3rem; }
[data-overview-key^="rbstrier.v1."][data-overview-key$=".menu"] .kachel h3 { font-size: 1.5rem; }
[data-overview-key^="rbstrier.v1."][data-overview-key$=".menu"] .kachel__text { padding: 1rem; }
[data-overview-key^="rbstrier.v1."][data-overview-key$=".menu"] .kachel p { margin-block: .5rem 0; font-size: .875rem; }
[data-overview-key^="rbstrier.v1."][data-overview-key$=".menu"] section.eng { padding-block: 1rem 2rem; }
@media (max-width: 61.99rem) {
  [data-overview-key^="rbstrier.v1."][data-overview-key$=".menu"] .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

[data-overview-key^="rbstrier.v1."][data-overview-key$=".title"] :is(h1, h2, h3) { font-size: clamp(2rem, 4vw, 4rem); }
/* Area catalogues show every original; compact uncropped previews stay linked
   to the native full-size lightbox. Public folder galleries keep their style. */
.rb-main:has([data-overview-key^="rbstrier.v1.images."]) .min-gallery[data-gallery-source="ordner"] { padding-block: 1rem; }
.rb-main:has([data-overview-key^="rbstrier.v1.images."]) .min-gallery__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.rb-main:has([data-overview-key^="rbstrier.v1.images."]) .min-gallery__figure img { width: 100%; height: 120px; object-fit: contain; }
.rb-main:has([data-overview-key^="rbstrier.v1.images."]) .min-gallery__caption { font-size: .75rem; overflow-wrap: anywhere; }
@media (max-width: 61.99rem) {
  .rb-main:has([data-overview-key^="rbstrier.v1.images."]) .min-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rb-main:has([data-overview-key^="rbstrier.v1.images."]) .min-gallery__figure img { height: 90px; }
}

/* Compact catalogue previews keep all records and relations. Copies on public
   pages retain the full Strier rhythm and their original portrait sizes. */
[data-overview-key^="rbstrier.v1."][data-overview-key$=".title"] .wege-auftakt { padding-block: 2rem 1rem; }
[data-overview-key^="rbstrier.v1."][data-overview-key$=".intro"] section.eng { padding-block: 1rem 2rem; }
.rb-main:has([data-overview-key^="rbstrier.s1.example.mincore_gallery."]) .galerie {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
.rb-main:has([data-overview-key^="rbstrier.s1.example.mincore_gallery."]) .galerie figure { margin: 0; }
.rb-main:has([data-overview-key^="rbstrier.s1.example.mincore_gallery."]) .galerie img {
  display: block; width: 100%; height: 180px; object-fit: contain;
}
.rb-main:has([data-overview-key^="rbstrier.s1.example.min_team."]) .team-raster {
  grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem;
}
.rb-main:has([data-overview-key^="rbstrier.s1.example.min_team."]) .team-karte__bild { max-height: 180px; }
.rb-main:has([data-overview-key^="rbstrier.s1.example.min_team."]) .min-cards__flip-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
}
.rb-main:has([data-overview-key^="rbstrier.s1.example.min_team."]) .min-cards__flip-scene { min-height: 20rem; }
.rb-main:has([data-overview-key^="rbstrier.s1.example.min_team."]) .min-cards__flip-back-content { overflow: auto; }
@media (max-width: 61.99rem) {
  .rb-main:has([data-overview-key^="rbstrier.s1.example.min_team."]) :is(.team-raster, .min-cards__flip-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-main:has([data-overview-key^="rbstrier.s1.example.mincore_gallery."]) .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-main:has([data-overview-key^="rbstrier.s1.example.mincore_gallery."]) .galerie img { height: 120px; }
  .rb-main:has([data-overview-key^="rbstrier.s1.example.min_team."]) .min-cards__flip-front-content { padding-inline: .5rem; }
  .rb-main:has([data-overview-key^="rbstrier.s1.example.min_team."]) .min-cards__flip-name { font-size: 1rem; overflow-wrap: anywhere; }
}

/* Zwischenüberschriften gliedern die zusammengefassten Kopiervorlagen. */
[data-overview-key^="rbstrier.v1.elements."][data-overview-key*=".subgroup."] .wege-auftakt { padding-block: 1.5rem .5rem; }
[data-overview-key^="rbstrier.v1.elements."][data-overview-key*=".subgroup."] h2 { font-size: 1.5rem; margin: 0; }

/* =========================================================================
   Redaktions-Einstellungen, die sichtbar wirken müssen (20.10.2026)

   Ausrichtung (header_position), Spaltenzahl im Team, Bildverdunklung im
   Seitenkopf und der Zwei-Spalten-Container folgen den Feldern, die die
   Redaktion im Backend setzt.
   ========================================================================= */

/* Überschrift-Ausrichtung aus dem Feld "Ausrichtung". */
.rbstrier-ausrichtung--left { text-align: left; }
.rbstrier-ausrichtung--center { text-align: center; margin-inline: auto; }
.rbstrier-ausrichtung--right { text-align: right; margin-inline-start: auto; }

/* Überschrift eines allgemeinen Elements (z. B. Formular) sitzt auf derselben
   Kante wie das Formular darunter, nicht am Fensterrand. */
.rbstrier-content-column .min-ce > .min-header {
  width: min(52rem, calc(100% - var(--inner-pad) * 2));
  box-sizing: border-box;
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
}
.rbstrier-content-column .min-ce > .min-header .min-header__title {
  margin: 0;
  color: var(--text);
  font: 400 var(--fs-xl)/1.08 var(--ff-display);
}
.rbstrier-content-column .min-ce > .min-header + form.min-form[data-form-framework] {
  margin-top: 1.5rem;
}

/* Zwei-Spalten-Container: min_core-Raster (Columns.css) auf der Strier-Kante.
   Die Elemente in den Spalten bringen eigene Innenränder mit; im Container
   übernimmt die Spalte die Breite. */
.rbstrier-content-column .mincore-columns {
  width: min(1440px, 100% - var(--inner-pad) * 2);
  max-width: none;
  box-sizing: border-box;
  margin-inline: auto;
  padding-inline: 0;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--rand);
}
.rbstrier-content-column .mincore-columns > .mincore-header {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  color: var(--text);
  font: 400 var(--fs-xl)/1.08 var(--ff-display);
}
.rbstrier-content-column .mincore-columns__col > section {
  border-top: 0;
  padding-block: 0;
}
.rbstrier-content-column .mincore-columns__col .inner.min-container {
  width: 100%;
  margin-inline: 0;
}
.rbstrier-content-column .mincore-columns__col .zug .inner {
  grid-template-columns: minmax(0, 1fr);
}

/* Team: Spaltenzahl aus dem Feld "Spalten" (ab Desktop-Breite). */
@media (min-width: 62rem) {
  .rbstrier-team-flip--spalten-2.min-cards--flip-grid .min-cards__flip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rbstrier-team-flip--spalten-4.min-cards--flip-grid .min-cards__flip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Seitenkopf: Feld "Bildverdunklung". "Abdunkeln" bleibt der bisherige
   Verlauf. "Verlauf von oben" dunkelt nur oben hinter dem Text ab und lässt
   die untere Bildhälfte frei. "Aufhellen" und "Kein Overlay" zeigen das Foto heller;
   der Text steht dann auf einer eigenen dunklen Tafel und bleibt lesbar. */
/* Ab Tablet-Breite; auf dem Handy steht der Text unten und behält den
   bisherigen Verlauf von unten. */
@media (min-width: 37.5rem) {
  .kopfbild.rbstrier-hero-overlay.kopfbild--abdeckung-gradient::after {
    background: linear-gradient(180deg, color-mix(in srgb, var(--marine-tief) 88%, transparent) 0%, color-mix(in srgb, var(--marine-tief) 74%, transparent) 58%, color-mix(in srgb, var(--marine-tief) 20%, transparent) 85%, transparent 100%);
  }
}
.kopfbild.rbstrier-hero-overlay.kopfbild--abdeckung-light::after {
  background: linear-gradient(90deg, color-mix(in srgb, var(--marine-tief) 35%, transparent) 0%, transparent 70%);
}
.kopfbild.rbstrier-hero-overlay.kopfbild--abdeckung-none::after {
  background: none;
}
.kopfbild.rbstrier-hero-overlay:is(.kopfbild--abdeckung-light, .kopfbild--abdeckung-none) .kopfbild__wort {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 3px solid var(--akzent);
  background: color-mix(in srgb, var(--marine-tief) 92%, transparent);
}

/* Frontend-Editor: Auf dieser Installation ist kein KI-Dienst angebunden; der
   KI-Knopf liefe ins Leere und meldete "Verbindungsfehler". Er bleibt deshalb
   ausgeblendet, bis min_frontend_edit einen Schalter ai.enabled je
   Installation hat (Backlog 1cf16f98). */
.min-fe-edit-bubble__btn--ai,
.min-fe-edit-ai-menu {
  display: none !important;
}

/* Team preview variants (hidden pages "Team Variante A/B"): same photo ratio for
 * everybody, face kept in the upper third, biography readable in 2-4 sentences.
 * Scoped to the preview elements until one variant is chosen; the proposal is a
 * per-element layout option in min_team (min_core), not a mandant-only rule. */
.rb-main:has([data-ce-uid="680"]) .team-raster,
.rb-main:has([data-ce-uid="683"]) .team-raster {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
}
.rb-main:has([data-ce-uid="680"]) .team-karte__bild,
.rb-main:has([data-ce-uid="683"]) .team-karte__bild {
  aspect-ratio: 1 / 1;
  max-height: none;
  overflow: hidden;
  border-radius: var(--radius, 4px);
  background: var(--marine-tief, #0b1c2d);
}
.rb-main:has([data-ce-uid="680"]) .team-karte__bild picture,
.rb-main:has([data-ce-uid="683"]) .team-karte__bild picture { display: block; height: 100%; }
.rb-main:has([data-ce-uid="680"]) .team-karte__bild img,
.rb-main:has([data-ce-uid="683"]) .team-karte__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.rb-main:has([data-ce-uid="680"]) .team-karte__profil summary::before,
.rb-main:has([data-ce-uid="683"]) .team-karte__profil summary::before {
  content: "\25B8";
  color: var(--color-accent, #f3b53c);
  margin-right: 0.6em;
}
.rb-main:has([data-ce-uid="680"]) .team-karte__profil[open] summary::before,
.rb-main:has([data-ce-uid="683"]) .team-karte__profil[open] summary::before { content: "\25BE"; }
.rb-main:has([data-ce-uid="680"]) .team-karte__name,
.rb-main:has([data-ce-uid="683"]) .team-karte__name {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 1rem 0 0.5rem;
}
.rb-main:has([data-ce-uid="680"]) .team-karte__profil summary,
.rb-main:has([data-ce-uid="683"]) .team-karte__profil summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.rb-main:has([data-ce-uid="680"]) .team-karte__profil summary:focus-visible,
.rb-main:has([data-ce-uid="683"]) .team-karte__profil summary:focus-visible {
  outline: 3px solid var(--color-accent, #f3b53c);
  outline-offset: 3px;
}
.rb-main:has([data-ce-uid="680"]) .team-karte__beschreibung,
.rb-main:has([data-ce-uid="683"]) .team-karte__beschreibung {
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 62ch;
}
/* Variant A: card with the photo on top, biography opens below. */
@media (min-width: 37.5rem) { .rb-main:has([data-ce-uid="680"]) .team-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .rb-main:has([data-ce-uid="680"]) .team-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .rb-main:has([data-ce-uid="680"]) .team-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rb-main:has([data-ce-uid="680"]) .team-karte__profil-inhalt { padding: 0.5rem 0 1rem; }
/* Variant B: photo left, text right, alternating; biography always visible. */
.rb-main:has([data-ce-uid="683"]) .team-raster { gap: 3rem; }
@media (min-width: 48rem) {
  .rb-main:has([data-ce-uid="683"]) .team-karte {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 3rem;
    align-items: start;
  }
  .rb-main:has([data-ce-uid="683"]) .team-karte__bild { grid-row: 1 / span 2; grid-column: 1; }
  .rb-main:has([data-ce-uid="683"]) .team-karte__name { grid-column: 2; align-self: end; font-size: 1.75rem; margin: 0; }
  .rb-main:has([data-ce-uid="683"]) .team-karte__profil { grid-column: 2; align-self: start; }
  .rb-main:has([data-ce-uid="683"]) .team-karte:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .rb-main:has([data-ce-uid="683"]) .team-karte:nth-child(even) .team-karte__bild { grid-column: 2; }
  .rb-main:has([data-ce-uid="683"]) .team-karte:nth-child(even) .team-karte__name,
  .rb-main:has([data-ce-uid="683"]) .team-karte:nth-child(even) .team-karte__profil { grid-column: 1; }
}
@supports selector(::details-content) {
  .rb-main:has([data-ce-uid="683"]) .team-karte__profil::details-content { content-visibility: visible; display: block; }
  .rb-main:has([data-ce-uid="683"]) .team-karte__profil summary {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .rb-main:has([data-ce-uid="683"]) .team-karte__profil { position: relative; }
}

/* Team cards "Variante C" (frame class rbstrier-team-cards on a min_team
 * element, chosen by the customer on 26.10.2026): large portrait cards that
 * turn over like a luggage tag. The strip with name and function stays put,
 * the photo turns away to reveal the bullet list. Hover (fine pointer) or
 * keyboard focus flips; a tap flips on touch. The flip needs ::details-content;
 * engines without it keep the plain disclosure below.
 * Tokens come from the frozen prototype sheet (--marine-tief, --bone, --gelb). */
.rbstrier-team-cards {
  --c-strip: 6.5rem;
  --c-spring: cubic-bezier(0.6, -0.28, 0.3, 1.18);

  & .team-raster {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.25rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
    margin-block: clamp(3rem, 6vw, 5rem) 0;
    padding: 0 0.9rem 0.9rem 0;
    list-style: none;
  }
  & .team-karte {
    --f: 0;
    position: relative;
    isolation: isolate;
    aspect-ratio: 10 / 11;
    min-height: 0;
    margin: 0;
    padding: 0;
    perspective: 1600px;
  }
  /* Without a function line the strip only has to hold the name. */
  & .team-karte:not(:has(.team-karte__rolle)) { --c-strip: 4.75rem; }
  /* Contact lines (e-mail, phone) add one row each to the strip. */
  & .team-karte:not(:has(.team-karte__rolle)):has(.team-karte__direkt li) { --c-strip: 6.5rem; }
  & .team-karte:not(:has(.team-karte__rolle)):has(.team-karte__direkt li:nth-child(2)) { --c-strip: 8.25rem; }
  & .team-karte:has(.team-karte__rolle):has(.team-karte__direkt li) { --c-strip: 8.25rem; }
  & .team-karte:has(.team-karte__rolle):has(.team-karte__direkt li:nth-child(2)) { --c-strip: 10rem; }
  & .team-karte__bild {
    position: absolute;
    inset: 0 0 calc(var(--c-strip) / 2) 0;
    margin: 0;
    max-height: none;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: var(--radius-kante) var(--radius-kante) 0 0;
    background: var(--marine);
  }
  & .team-karte__bild picture { display: block; height: 100%; }
  & .team-karte__bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
  }
  & .team-karte__titel {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    min-height: var(--c-strip);
    padding: 0.9rem 1.4rem;
    border-top: 0.3rem solid var(--gelb);
    border-radius: 0 0 var(--radius-kante) var(--radius-kante);
    background: var(--marine-tief);
    color: var(--bone);
    pointer-events: none;
  }
  & .team-karte__name {
    margin: 0;
    font-family: var(--ff-display);
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.05;
    text-transform: uppercase;
  }
  & .team-karte__rolle {
    margin: 0;
    max-width: none;
    letter-spacing: normal;
    text-transform: none;
    color: var(--bone);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.3;
  }
  /* Contact links on the front. The strip ignores the pointer so the card-wide
   * flip switch below it stays reachable; only the links take it back. */
  & .team-karte__direkt {
    display: grid;
    gap: 0.1rem;
    margin: 0.2rem 0 0;
    padding: 0;
    list-style: none;
  }
  & .team-karte__direkt li {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  & .team-karte__direkt a {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--bone);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
    pointer-events: auto;
  }
  & .team-karte__direkt a:hover { color: var(--gelb); }
  & .team-karte__direkt a:focus-visible {
    outline: 3px solid var(--gelb);
    outline-offset: 2px;
  }
  & .team-karte__profil {
    margin: 0;
    border: 0;
  }
}
@media (max-width: 37.49rem) {
  .rbstrier-team-cards .team-karte { aspect-ratio: 5 / 7; }
}
@media (min-width: 37.5rem) {
  .rbstrier-team-cards .team-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rbstrier-team-cards .team-karte:nth-child(even) { margin-top: clamp(2rem, 4vw, 3.5rem); }
}
@media (min-width: 64rem) {
  .rbstrier-team-cards .team-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rbstrier-team-cards .team-karte:nth-child(even) { margin-top: 0; }
  .rbstrier-team-cards .team-karte:nth-child(3n + 2),
  .rbstrier-team-cards .team-karte:nth-child(3n + 1):last-child { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
  .rbstrier-team-cards .team-karte:nth-child(3n + 1):last-child { grid-column: 2; }
}

@supports selector(::details-content) {
  .rbstrier-team-cards {
    /* Both faces share one pivot, so the card turns as one piece. */
    & .team-karte__bild,
    & .team-karte__profil::details-content {
      backface-visibility: hidden;
      transition: transform 0.95s var(--c-spring), opacity 0.3s ease;
    }
    & .team-karte__bild { transform: rotateY(calc(var(--f) * 180deg)); }

    /* A flat sun plate behind the card slides out while it is turned. */
    & .team-karte::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      border-radius: var(--radius-kante);
      background: var(--gelb);
      transform: translate(calc(var(--f) * 0.9rem), calc(var(--f) * 0.9rem));
      transition: transform 0.95s var(--c-spring);
    }
    /* Turn-over cue on the front: a round sun button with a plus. */
    & .team-karte:has(.team-karte__profil) .team-karte__bild::after {
      content: "";
      position: absolute;
      top: 1rem;
      right: 1rem;
      width: 2.75rem;
      height: 2.75rem;
      border-radius: 50%;
      background:
        linear-gradient(var(--marine-tief), var(--marine-tief)) center / 1.1rem 0.16rem no-repeat,
        linear-gradient(var(--marine-tief), var(--marine-tief)) center / 0.16rem 1.1rem no-repeat,
        var(--gelb);
    }

    & .team-karte__profil {
      position: absolute;
      inset: 0;
      z-index: 3;
    }
    /* The summary is the touch and keyboard switch over the whole card; its
     * text stays in the accessibility tree but is moved out of sight. */
    & .team-karte__profil summary {
      position: absolute;
      inset: 0;
      z-index: 4;
      display: block;
      min-height: 0;
      overflow: hidden;
      padding: 0;
      border-radius: var(--radius-kante);
      list-style: none;
      white-space: nowrap;
      text-indent: -200vw;
      cursor: pointer;
    }
    & .team-karte__profil summary::-webkit-details-marker { display: none; }
    & .team-karte__profil summary:focus-visible {
      outline: 3px solid var(--gelb);
      outline-offset: 5px;
    }
    & .team-karte__profil::details-content {
      content-visibility: visible;
      display: block;
      position: absolute;
      inset: 0 0 calc(var(--c-strip) / 2) 0;
      z-index: 2;
      overflow-y: auto;
      padding: clamp(2rem, 3vw, 2.75rem) clamp(1.5rem, 2.4vw, 2.25rem) calc(var(--c-strip) / 2 + 1.5rem);
      border-radius: var(--radius-kante) var(--radius-kante) 0 0;
      background:
        linear-gradient(var(--gelb), var(--gelb)) clamp(1.5rem, 2.4vw, 2.25rem) 1.25rem / 4rem 0.3rem no-repeat,
        var(--bone);
      color: var(--marine-tief);
      transform: rotateY(calc(var(--f) * 180deg + 180deg));
    }
    & .team-karte__profil-inhalt { padding: 0; }
    & .team-karte__beschreibung {
      max-width: none;
      margin: 0;
      color: var(--marine-tief);
      font-size: 1.0625rem;
      font-weight: 500;
      line-height: 1.6;
    }
    & .team-karte__stichpunkte {
      display: grid;
      gap: 0.7rem;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    & .team-karte__stichpunkte li {
      position: relative;
      max-width: none;
      margin: 0;
      padding-left: 1.5rem;
      color: var(--marine-tief);
      font-size: 1.0625rem;
      font-weight: 500;
      line-height: 1.5;
    }
    & .team-karte__stichpunkte li::before {
      content: "";
      position: absolute;
      top: 0.55em;
      left: 0;
      width: 0.6rem;
      height: 0.6rem;
      border-radius: 50%;
      background: var(--gelb);
    }
  }

  /* Flip state: hover or keyboard focus on a mouse device, tap on touch. */
  @media (hover: hover) and (pointer: fine) {
    .rbstrier-team-cards .team-karte:hover,
    .rbstrier-team-cards .team-karte:has(summary:focus-visible) { --f: 1; }
    /* The flip waits 0.42s after the pointer arrives; team-tilt.js leans the
     * card toward the pointer during that lead-in (keep both values in sync). */
    .rbstrier-team-cards .team-karte {
      transform: perspective(1100px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
      transition: opacity 0.4s ease, transform 0.35s ease-out;
    }
    .rbstrier-team-cards .team-karte:hover .team-karte__bild,
    .rbstrier-team-cards .team-karte:hover .team-karte__profil::details-content,
    .rbstrier-team-cards .team-karte:hover::before { transition-delay: 0.42s; }
    .rbstrier-team-cards .team-raster:has(.team-karte:hover) .team-karte:not(:hover) { opacity: 0.5; }
  }
  @media (hover: none), (pointer: coarse) {
    .rbstrier-team-cards .team-karte:has(details[open]),
    .rbstrier-team-cards .team-karte:has(summary:focus-visible) { --f: 1; }
  }

  /* Rows rise in column by column while they scroll into view. */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .rbstrier-team-cards .team-karte {
        animation: c-rise linear backwards;
        animation-timeline: view();
        animation-range: entry 0% entry 55%;
      }
      .rbstrier-team-cards .team-karte:nth-child(3n + 2) { animation-range: entry 8% entry 63%; }
      .rbstrier-team-cards .team-karte:nth-child(3n) { animation-range: entry 16% entry 71%; }
    }
  }

  /* Reduced motion: cross-fade the faces instead of turning them. */
  @media (prefers-reduced-motion: reduce) {
    .rbstrier-team-cards .team-karte__bild { transform: none; opacity: calc(1 - var(--f)); }
    .rbstrier-team-cards .team-karte__profil::details-content { transform: none; opacity: var(--f); }
    .rbstrier-team-cards .team-karte__bild,
    .rbstrier-team-cards .team-karte__profil::details-content { transition: opacity 0.3s ease; }
    .rbstrier-team-cards .team-karte::before { transition: none; }
    .rbstrier-team-cards .team-karte { transform: none; }
    .rbstrier-team-cards .team-karte:hover .team-karte__bild,
    .rbstrier-team-cards .team-karte:hover .team-karte__profil::details-content { transition-delay: 0s; }
  }
}
@keyframes c-rise {
  from { opacity: 0; transform: translateY(2.5rem); }
}

/* Card grid honours the column count chosen in the backend (2x2, 3, 4x4). */
@media (min-width: 48rem) {
  .kacheln.kacheln--spalten-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kacheln.kacheln--spalten-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 48rem) and (max-width: 61.99rem) {
  .kacheln.kacheln--spalten-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 62rem) {
  .kacheln.kacheln--spalten-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .kacheln--spalten-4 .kachel :is(img, .kachel__symbol) { height: 140px; width: 100%; object-fit: cover; }
  .kacheln--spalten-4 .kachel h3 { font-size: 1.3rem; }
  .kacheln--spalten-4 .kachel__text { padding: 1rem; }
  .kacheln--spalten-4 .kachel p { font-size: .875rem; }
}

/* Team grid: e-mail and phone sit directly under the job title, as on the card variant. */
.team-karte > .team-karte__direkt {
  display: grid;
  gap: 0.1rem;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
}
.team-karte > .team-karte__direkt li { margin: 0; padding: 0; }
.team-karte > .team-karte__direkt a {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  overflow-wrap: anywhere;
  color: var(--bone);
  font-size: 0.9375rem;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.team-karte > .team-karte__direkt a:hover { color: var(--gelb); }
.team-karte > .team-karte__direkt a:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }
