/*
Theme Name:   Reintop
Theme URI:    https://reintop.de
Description:  Reintop GmbH - commercial cleaning for businesses in Hamburg
Author:       Reintop
Template:     twentytwentyfive
Version:      2.0.0
Text Domain:  reintop-v2
*/

*:focus:not(:focus-visible) {
  outline: none;
}

/* =============================================
   BRAND TOKENS
   ============================================= */
:root {
  --color-black:       #050608;
  --color-blue-dark:   #03153D;
  --color-blue-mid:    #07479A;
  --color-blue-accent: #0F74C7;
  --color-blue-light:  #48B7F0;
  --color-white:       #FFFFFF;
  --color-hairline:    #E0E7EF;   /* Token aus design.md, 22.09.26 nachgetragen */
  --color-body:        #3A3A3A;   /* Fliesstext, Palette v3 (NewPr Q-05, 03.10.26) */
  --color-muted:       #6B7280;   /* Eyebrow und Nebeninfo, nie inaktiver UI-Zustand (R3, R6) */
  --color-flaeche:     #F5F7FA;   /* Innere Flaechen (Karte, Grund unter Tabs), nie Sektionsgrund (R5); Text schwarz, Akzent nur Icon/Linie. NewPr D-58, 26.09.26 */

  /* Chevron des FAQ-Akkordeons; Farbe kommt ueber background-color der Maske */
  --rt-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z'/%3E%3C/svg%3E");

  --font-primary: 'Signika', sans-serif;

  /* Bewegung (NewPr Q-78, 17.11.26; Werte design.md → «Анимации», bestaetigt 20.10.26).
     Antwort auf eine Handlung: fast; Hoehe FAQ, Wechsel der Registerkarte: panel;
     Einblenden: reveal; Erklaeren (Kreis eines Schritts): step. */
  --motion-fast:   200ms;
  --motion-panel:  300ms;
  --motion-reveal: 650ms;
  --motion-step:   300ms;
  --ease-out:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-ambient:  ease-in-out;

  /* Fliesstext 17 (Kit-Variable $fs-body). Dieselbe Groesse tragen Antwort und
     Frage im FAQ, Text und Zeile des Umschalters, Karten-Titel und Haekchenliste:
     Steuerelemente zeigen den Zustand ueber das Gewicht, nicht ueber die Groesse
     (NewPr 13.10.26). Aendern nur hier. */
  --fs-body: 1.0625rem;

  /* Abstands-Skala (18.09.26). Die Zahlen stehen in theme.json unter
     settings.spacing.spacingSizes und sind dort auch im Editor waehlbar;
     hier stehen nur Aliase nach Rolle. Aendern: theme.json, nicht diese Zeilen.
     Die alte Skala --space-xs ... --space-xxl ist seit 23.09.26 entfernt. */
  --space-micro:   8px;
  --space-pair:    var(--wp--preset--spacing--pair);
  --space-inner:   var(--wp--preset--spacing--inner);
  --space-block:   var(--wp--preset--spacing--block);
  --space-section: var(--wp--preset--spacing--section);
  --plane-pad:     var(--wp--preset--spacing--section);
  --gutter:        64px;
  --page-margin:   var(--wp--preset--spacing--page-margin);
  /* Deckel des Inhalts. Steht auch in theme.json (settings.layout.contentSize
     und wideSize), damit Kopf, Fuss und Inhalt dieselbe Kiste rechnen.
     Wird er geaendert, muessen beide Stellen mit. */
  --content-max:  1520px;

  /* Mass des Fliesstexts neben etwas anderem (Spalte, Bild, Liste). 640 haelt
     rund 75 Zeichen je Zeile. Freistehende Vorspann-Absaetze laufen dagegen
     ueber die ganze Kiste (Entscheidung 24.09.26, DECISIONS.md D-31). */
  --text-measure: 640px;
}

/* =============================================
   VERTIKALER RHYTHMUS ZWISCHEN SEKTIONEN (18.09.26)
   Der Abstand wird einmal bezahlt (R14): die Sektion traegt kein
   vertikales Padding, der Abstand kommt aus dieser einen Regel.
   Sie schlaegt den blockGap des Core (:where(.is-layout-constrained) > *
   = 1.2rem), weil dort :where() die Spezifitaet auf 0 setzt.

   Gilt seit 23.09.26 fuer alle Seiten. Die Altseiten wurden migriert:
   vertikale Paddings, Margins und Hintergruende ihrer Wurzel-Sektionen
   sind aus dem post_content entfernt (Backup in postmeta
   _rt_backup_20260923). Farbige Flaeche bleibt nur das Navy-CTA, dessen
   Innenluft ist --plane-pad. Neue Sektionen tragen kein vertikales Padding.
   ============================================= */
.wp-block-post-content.is-layout-constrained > * + * {
  margin-block-start: var(--space-section);
}

/* =============================================
   BASE TYPOGRAPHY
   ============================================= */
/* font-weight 400 steht hier, weil die Elterntheme im globalen Stil
   "body { font-weight: 300 }" setzt. Das war nie eine Entscheidung dieses
   Projekts: design.md und der Entwurf nennen 400. Gemessen 22.09.26. */
body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-black);
  background-color: var(--color-white);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-black); /* R1, Palette v3 seit 03.10.26 (NewPr Q-05) */
  line-height: 1.2;
}

/* Mobil 36 / 26 wie im Kit fs-h1-mobil / fs-h2-mobil (NewPr D-79, Q-49, 03.10.26); vorher 32 / 28 */
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem) !important; }

/* Silbentrennung im H1 (Entscheidung 23.09.26, Kit R25).
   1) word-break: normal hebt das vom Core geerbte ".wp-block-column { word-break:
      break-word }" auf, das Woerter an beliebiger Stelle zerschnitt ("Untern / ehmen"),
      obwohl sie in die naechste Zeile gepasst haetten.
   2) Trennstellen in langen Komposita stehen als &shy; im Text ("Treppenhaus&shy;reinigung").
      Bewusst nicht hyphens: auto: das haengt von den Woerterbuechern des Browsers ab,
      im Test-Chromium trennte es gar nicht, und Chrome unter Windows ist von hier aus
      nicht pruefbar. &shy; trennt in jedem Browser an derselben Stelle.
   3) overflow-wrap bleibt als letzte Sicherung fuer ein Wort, das allein nicht passt. */
h1 {
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-hyphens: manual;
  hyphens: manual;
}
/* Zeilenumbruch (NewPr Q-78 / 6.6, Nutzer 17.11.26, Variante A): Ueberschriften auf gleich lange
   Zeilen, Absaetze ohne einzelnes Wort in der letzten Zeile. Die Zeilenzahl aendert sich nirgends
   (Messung messungen/umbruch-pruefung.mjs, 18 Seiten, 1920/1536/390). Wo balance ein Wortpaar trennt,
   steht im Text &nbsp; («Regelmäßig&nbsp;oder», «Nachweise&nbsp;entstehen»). Chrome und Edge;
   andere Browser umbrechen wie bisher. Das Elternthema setzt schon «h1…h6, p { text-wrap: pretty }»
   und steht spaeter im Kopf, deshalb body davor (Spezifitaet 0,0,2); Absaetze hatten pretty schon. */
body :is(h1, h2, h3, h4) { text-wrap: balance; }
body li { text-wrap: pretty; }
h2 { font-size: clamp(1.625rem, 4vw, 3rem) !important; }
/* Mobil 20 statt 16: H3 lag unter dem Fliesstext 17 (Q-09, 25.09.26) */
h3 { font-size: clamp(1.25rem, 2vw, 1.375rem) !important; }

/* Body text: override inline font-size:1rem on Gutenberg paragraphs */
.wp-block-paragraph { font-size: var(--fs-body) !important; }
.entry-content p, .wp-block-group p { font-size: var(--fs-body) !important; }
/* Ueberzeile ueber H2 in Bloecken mit Link (R11): 16, eine Stufe der Skala
   wie Tagline unter H1 und Knopfschrift; Karten ohne Ueberzeile (NewPr D-154).
   Ohne Klasse gewinnt die Regel darueber (17). NewPr Q-72, 09.10.26 */
.wp-block-group p.rt-label { font-size: 1rem !important; }
/* Ueberzeile Navy mit Akzentstrich davor (NewPr Q-103, Variante E, 05.11.26; R6): der Akzent steht als Marke,
   nicht als Textfarbe (Hellblau auf Weiss 2,26 : 1). 24 x 3, Abstand 14 zum Wort. */
p.rt-label::before { content: ""; display: inline-block; width: 24px; height: 3px; margin-right: 14px; vertical-align: middle; background-color: var(--color-blue-light); }

/* =============================================
   ABSTAND UNTER H2 (NewPr D-80, Q-49, 03.10.26)
   H2 -> Einleitungszeile: inner (32 Desktop, 24 mobil).
   H2 -> FAQ-Akkordeon: block (64 / 48), wie im Entwurf.
   H2 -> Tagline (.rt-tagline): pair 16, Tagline -> Text: inner (NewPr D-138,
   Q-70, 08.10.26; bis dahin 12 / 20 inline). Ausgenommen das CTA-Band (navy
   Flaeche, H2 -> Unterzeile 16 im Entwurf).
   !important, weil die Muster den Abstand inline am H2 oder am Absatz tragen
   (bis 03.10.26 12, 16, 32 oder 40 durcheinander).
   ============================================= */
.wp-block-post-content h2:not(.has-background *):has(+ p:not(.rt-tagline)),
.wp-block-post-content h2:has(+ .wp-block-details) { margin-bottom: 0 !important; }
.wp-block-post-content h2:not(.has-background *) + p:not(.rt-tagline) { margin-top: var(--space-inner) !important; }
.wp-block-post-content h2 + .wp-block-details { margin-top: var(--space-block) !important; }
.wp-block-post-content h2:not(.has-background *):has(+ p.rt-tagline) { margin-bottom: 0 !important; }
.wp-block-post-content h2:not(.has-background *) + p.rt-tagline { margin-top: var(--space-pair) !important; margin-bottom: 0 !important; }
.wp-block-post-content h2:not(.has-background *) + p.rt-tagline + * { margin-top: var(--space-inner) !important; }

/* Mobil: Spalten, die zur Saeule werden, stehen 24 auseinander (D-81).
   Ausgenommen der Seiten-Hero (Foto oben, Text mit eigenem Polster) und
   eine Hakenliste, die nur auf zwei Spalten verteilt ist (Liste schon in der ersten
   Spalte): sie liest sich als eine Liste. Text | Liste (Bueros, Hamburg) faellt unter die Regel.
   Ebenso ausgenommen die Zeile .rt-zeile (H3 -> Text 16, Branchenseiten 22.10.26). */
@media (max-width: 781px) {
  .wp-block-post-content .wp-block-columns:not(.rt-seiten-hero > .wp-block-columns):not(.rt-zeile):not(:has(> .wp-block-column:first-child > .reintop-check-list)) {
    row-gap: var(--space-inner) !important;
  }
}

/* Absatzabstand ist Typografie, kein Sektionsrhythmus: fester Wert,
   bis 23.09.26 var(--space-md) aus der alten Skala. */
p {
  margin-bottom: 24px;
}

/* =============================================
   CTA BUTTONS
   ============================================= */

/* Global button style — единый стиль для всех кнопок сайта.
   Контекстные варианты (тёмный фон и др.) добавляются отдельно при необходимости. */
.wp-block-button__link,
.wp-element-button {
  background-color: transparent !important;
  color: var(--color-blue-dark) !important;
  border: 1px solid var(--color-blue-dark) !important;
  border-radius: 0 !important;
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 14px 32px !important;
  transition: background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out) !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  background-color: var(--color-blue-light) !important;
  border-color: var(--color-blue-light) !important;
  color: var(--color-black) !important;
}

/* =============================================
   CTA BUTTON VARIANTS
   ============================================= */

/* Nebenknopf auf dunklem Hintergrund — weisse Spur (R24, 22.09.26).
   Ruhe: weisser Text, Rahmen Weiss 50 %. Hover: weisse Flaeche, Navy-Text (17.82:1).
   Bis 22.09.26 trug dieser Knopf den Akzent und stand damit gleichrangig neben dem
   Hauptknopf; der Akzent gehoert jetzt allein dem Hauptknopf. */
.wp-block-button.reintop-btn-outline .wp-block-button__link,
.wp-block-button.reintop-btn-outline .wp-element-button {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: var(--color-white) !important;
}
.wp-block-button.reintop-btn-outline .wp-block-button__link:hover,
.wp-block-button.reintop-btn-outline .wp-element-button:hover {
  background-color: var(--color-white) !important;
  border-color: var(--color-white) !important;
  color: var(--color-blue-dark) !important;
}

/* Vertikaler Button-Stack mit gleicher Breite — Breite = breiteste Schaltfläche.
   Steht nur im CTA-Band und schliesst dort buendig mit der rechten Kante der
   Kiste ab, auf einer Linie mit dem Menue (R23). Bis 25.09.26 galt das nur
   auf Seite 50 (.rt-u-cta), die anderen Seiten standen 126 px weiter links. */
.wp-block-buttons.reintop-buttons-equal {
  width: fit-content;
  margin-left: auto;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}
.wp-block-buttons.reintop-buttons-equal .wp-block-button .wp-block-button__link,
.wp-block-buttons.reintop-buttons-equal .wp-block-button .wp-element-button {
  width: 100% !important;
  text-align: center !important;
  display: block !important;
}

/* Hauptknopf — ausschliesslich fuer CTA-Sektionen. Akzentspur (R24, 22.09.26):
   Ruhe gefuellt mit schwarzem Text (8.98:1), Hover derselbe Ton als Rahmen und Text.
   Bis 22.09.26: weisser Text (2.26:1) und Hover in #0F74C7, einem Ton, der am
   02.08.26 aus der Palette ausgeschieden ist. */
.wp-block-button.reintop-btn-primary .wp-block-button__link,
.wp-block-button.reintop-btn-primary .wp-element-button {
  background-color: var(--color-blue-light) !important;
  border-color: var(--color-blue-light) !important;
  color: var(--color-black) !important;
}
.wp-block-button.reintop-btn-primary .wp-block-button__link:hover,
.wp-block-button.reintop-btn-primary .wp-element-button:hover {
  background-color: transparent !important;
  border-color: var(--color-blue-light) !important;
  color: var(--color-blue-light) !important;
}

/* =============================================
   NAVIGATION — eigenes Menue (NewPr Q-109, 11.11.26)
   Menue = wp_navigation 4 (Leistungen, Branchen mit Untermenue, Unternehmen,
   Jobs, Kontakt als Knopf rt-nav-kontakt), Kopf = Template-Teil header in der DB.
   Textfarbe bleibt Navy (X-23); Hover und aktuelle Seite = Akzentlinie 3 px
   auf der Unterkante des Kopfes, Gewicht bleibt 600 (R3, Ausnahme Navigation).
   Mobil (< 1024, Overlay von WordPress): Abschnitte als Akkordeon. WordPress
   meldet im Overlay jedes Untermenue als offen (aria-expanded="true") und
   zeigt alle; Reintop_menue_script setzt .rt-akkordeon an die Navigation,
   haelt den Zustand selbst (.rt-offen am Abschnitt, aria-expanded am Knopf)
   und laesst nur einen Abschnitt offen. Ohne Skript bleibt alles offen.
   ============================================= */
:root {
  --shadow-kopf: 0 4px 6px -2px rgba(0,0,0,.15);
  --shadow-menu: 0 14px 14px 0 rgba(0,0,0,.10);
}
.wp-block-navigation,
.wp-block-navigation .wp-block-navigation-item__content {
  font-family: var(--font-primary) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: var(--color-blue-dark) !important;
}
.wp-block-navigation .wp-block-navigation-item__content { text-decoration: none !important; }
.wp-block-navigation .wp-block-navigation__submenu-icon { color: var(--color-blue-dark); }
.wp-block-navigation .wp-block-navigation__submenu-icon svg { transition: transform var(--motion-fast) var(--ease-out); stroke: currentColor; }

/* Kopf mit Schatten erst nach dem Scrollen (Reintop_menue_script) */
.rt-kopf-schatten { box-shadow: var(--shadow-kopf); }
.is-position-sticky:has(> header) { transition: box-shadow var(--motion-fast) var(--ease-out); }

@media (min-width: 1024px) {
  /* Zeile 84 hoch, Punkte auf voller Hoehe: Linie und Untermenue sitzen auf der Unterkante */
  header.wp-block-template-part .wp-block-group.alignwide:has(> .wp-block-site-logo) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  header .wp-block-navigation__container { gap: 32px !important; }
  header .wp-block-navigation__container > .wp-block-navigation-item { min-height: var(--rt-kopf-hoehe); }
  header .wp-block-navigation__container > .wp-block-navigation-item:not(.rt-nav-kontakt)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--color-blue-light); transform: scaleX(0); transition: transform var(--motion-fast) var(--ease-out);
    pointer-events: none;
  }
  header .wp-block-navigation__container > .wp-block-navigation-item:not(.rt-nav-kontakt):is(:hover, :focus-within, :has(a[aria-current="page"]))::after {
    transform: scaleX(1);
  }
  header .wp-block-navigation .has-child:is(:hover, :focus-within) > .wp-block-navigation__submenu-icon svg,
  header .wp-block-navigation .wp-block-navigation__submenu-icon[aria-expanded="true"] svg { transform: rotate(180deg); }

  /* Untermenue A: schmale Platte unter dem Punkt, Linie oben, Schatten, kein Rahmen */
  header .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
    left: 0 !important; right: auto !important; top: 100% !important;
    min-width: 280px !important;
    border: 0 !important; border-top: 1px solid var(--color-hairline) !important;
    box-shadow: var(--shadow-menu);
    padding: 16px 0 !important;
    background: #fff !important;
  }
  header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    position: relative;
    padding: 12px 24px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
  }
  header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--color-blue-light); opacity: 0; transition: opacity var(--motion-fast) var(--ease-out);
  }
  header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:is(:hover, :focus-visible, [aria-current="page"])::before { opacity: 1; }

  /* Kontakt als Knopf: Outline auf hell (Kontur Navy, Hover Akzent mit schwarzem Text) */
  header .wp-block-navigation .rt-nav-kontakt { margin-left: 16px; }
  header .wp-block-navigation .rt-nav-kontakt > .wp-block-navigation-item__content {
    box-sizing: border-box; height: 56px; display: flex; align-items: center;
    padding: 14px 32px !important; line-height: 1.22;
    border: 1px solid var(--color-blue-dark);
    transition: background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out) !important;
  }
  header .wp-block-navigation .rt-nav-kontakt > .wp-block-navigation-item__content:is(:hover, :focus-visible) {
    background: var(--color-blue-light); border-color: var(--color-blue-light); color: #050608 !important;
  }
}

/* Overlay schon unter 1024 statt unter 600 (WordPress): die Zeile braucht mit Logo
   rund 1000 px, darunter brach sie in zwei Reihen um (Kopf 200, bei 600 Querlauf). */
@media (min-width: 600px) and (max-width: 1023px) {
  header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 1023px) {
  /* Burger Navy, Beruehrflaeche 44 x 44, Icon auf der Kante des Inhalts */
  header .wp-block-navigation__responsive-container-open {
    width: 44px; height: 44px; margin-right: -10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-blue-dark);
  }
  /* Overlay: Logo und Kreuz an der Stelle von Logo und Burger im Kopf */
  header .wp-block-navigation__responsive-container.is-menu-open {
    padding: 0 !important; background: #fff !important;
  }
  header .wp-block-navigation__responsive-container.is-menu-open::before {
    content: ""; position: absolute; left: var(--rt-overlay-logo-x, 24px); top: var(--rt-overlay-logo-y, 20px);
    width: var(--rt-overlay-logo-w, 196px); aspect-ratio: 1920 / 430.09;
    background: url(images/logo.svg) no-repeat left top / contain;
  }
  header .is-menu-open .wp-block-navigation__responsive-container-close {
    position: fixed; top: var(--rt-overlay-zu-y, 20px); right: var(--rt-overlay-zu-x, 14px);
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    color: var(--color-blue-dark);
  }
  header .is-menu-open .wp-block-navigation__responsive-close,
  header .is-menu-open .wp-block-navigation__responsive-dialog,
  header .is-menu-open .wp-block-navigation__responsive-container-content {
    min-height: 100%; display: flex; flex-direction: column; margin: 0; max-width: none; width: 100%;
  }
  header .is-menu-open .wp-block-navigation__responsive-container-content {
    padding: var(--rt-overlay-oben, var(--rt-kopf-hoehe)) 0 32px !important; box-sizing: border-box;
    align-items: stretch !important;
  }
  header .is-menu-open .wp-block-navigation__container {
    flex: 1; align-items: stretch !important; gap: 0 !important;
    border-top: 1px solid var(--color-hairline);
  }
  header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
    position: relative; width: 100%;
    flex-direction: row !important; flex-wrap: wrap; align-items: center !important;
    min-height: 56px; border-bottom: 1px solid var(--color-hairline);
  }
  header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    flex: 1; padding: 0 var(--rt-overlay-logo-x, 24px) !important; min-height: 56px; display: flex; align-items: center;
    font-size: 20px !important; line-height: 1.2 !important; letter-spacing: 0 !important;
  }
  /* Schalter des Abschnitts: Chevron 44 x 44 rechts */
  header .is-menu-open .wp-block-navigation__submenu-icon {
    display: flex !important; width: 44px; height: 44px; margin: 0 var(--rt-overlay-zu-x, 14px) 0 0; padding: 0;
    align-items: center; justify-content: center;
  }
  header .is-menu-open .wp-block-navigation__submenu-icon svg { width: 16px; height: 16px; }
  header .rt-akkordeon .is-menu-open .has-child.rt-offen > .wp-block-navigation__submenu-icon svg { transform: rotate(180deg); }
  header .is-menu-open .has-child .wp-block-navigation__submenu-container {
    flex-basis: 100%; padding: 4px 0 12px !important; margin: 0 !important; gap: 0 !important;
    border: 0 !important; box-shadow: none; align-items: stretch !important;
  }
  header .rt-akkordeon .is-menu-open .has-child:not(.rt-offen) > .wp-block-navigation__submenu-container {
    display: none !important;
  }
  header .is-menu-open .wp-block-navigation__submenu-container > .wp-block-navigation-item {
    width: 100%; align-items: stretch !important; margin: 0 !important; padding: 0 !important;
  }
  header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    position: relative; min-height: 48px; display: flex; align-items: center;
    padding: 0 var(--rt-overlay-logo-x, 24px) 0 calc(var(--rt-overlay-logo-x, 24px) + 16px) !important;
    font-size: 17px !important; font-weight: 400 !important; letter-spacing: 0 !important;
  }
  /* Aktuelle Seite: Akzentstreifen 3 px links */
  header .is-menu-open .wp-block-navigation-item__content[aria-current="page"]::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--color-blue-light);
  }
  /* Kontakt unten auf Spaltenbreite */
  header .is-menu-open .wp-block-navigation__container > .rt-nav-kontakt {
    margin-top: auto; padding: 32px var(--rt-overlay-logo-x, 24px) 0; border-bottom: 0; box-sizing: border-box;
  }
  header .is-menu-open .wp-block-navigation__container > .rt-nav-kontakt > .wp-block-navigation-item__content {
    flex: 1; justify-content: center; box-sizing: border-box; height: 56px; min-height: 56px;
    padding: 14px 32px !important; font-size: 16px !important; line-height: 1.22 !important;
    border: 1px solid var(--color-blue-dark);
  }
}

/* =============================================
   FOOTER — Fusszeile (NewPr Q-111, 11.11.26)
   Template-Teil footer (wp_template_part 71 in der DB): Logo, Text, Kontakt;
   drei Linkgruppen als wp:details (Leistungen, Branchen, Unternehmen), unten
   © und Impressum / Datenschutz. Zwei Textfarben: Text c-body-grau, Links
   c-schwarz; Gruppentitel navy wie Label ohne Strich (X-23). Links ohne
   Unterstrich, Hover und Fokus Unterstrich Akzent 2 px (R3, Link im Text).
   Ab 782 sind die Gruppen offen und nicht klappbar (Reintop_fuss_script),
   darunter Akkordeon wie das mobile Menue, eine Gruppe offen.
   Ohne Skript bleiben alle Gruppen offen (open im Markup).
   ============================================= */
.rt-fuss { padding-top: var(--wp--preset--spacing--section); }
.rt-fuss__box > *, .rt-fuss__oben > *, .rt-fuss__firma > *, .rt-fuss__kontakt > *,
.rt-fuss__gruppe > *, .rt-fuss__unten > *, .rt-fuss__recht > * { margin-block: 0 !important; }
.rt-fuss p { margin: 0; letter-spacing: -0.1px; }
.rt-fuss__firma { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--inner); }
.rt-fuss__logo img { display: block; }
.wp-block-group p.rt-fuss__text { color: var(--color-body); line-height: 1.65; max-width: 456px; }
.wp-block-group p.rt-fuss__ort,
.wp-block-group p.rt-fuss__copy { font-size: 1rem !important; line-height: 32px; color: var(--color-body); }
.wp-block-group p.rt-fuss__link { font-size: 1rem !important; line-height: 32px; white-space: nowrap; }
.rt-fuss__link a {
  color: var(--color-black);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--motion-fast) var(--ease-out);
}
.rt-fuss__link a:hover, .rt-fuss__link a:focus-visible { text-decoration-color: var(--color-blue-light); }
.rt-fuss__gruppe > summary {
  list-style: none;
  font-family: var(--font-primary);
  font-size: 1rem; font-weight: 700; line-height: 1.5;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--color-blue-dark);
}
.rt-fuss__gruppe > summary::-webkit-details-marker { display: none; }
.rt-fuss__gruppe > summary::marker { content: ""; }
.rt-fuss__unten {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--color-hairline);
  padding: 32px 0;
}
/* Drei Links seit 15.11.26 (Privatsphäre-Einstellungen, D-188): bei 390 umbrechen statt seitlich zu scrollen */
.rt-fuss__recht { display: flex; flex-wrap: wrap; column-gap: 32px; row-gap: 8px; }

@media (min-width: 782px) {
  .rt-fuss__oben {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    column-gap: 64px; row-gap: var(--wp--preset--spacing--block);
    padding-bottom: var(--wp--preset--spacing--block);
  }
  .rt-fuss__firma { grid-column: 1 / -1; }
  .rt-fuss__gruppe > summary { pointer-events: none; margin-bottom: 16px !important; }
}
/* ab 1280 Firmenspalte links (456), drei Gruppen in gleichen Spalten wie im Artboard */
@media (min-width: 1280px) {
  .rt-fuss__oben { grid-template-columns: minmax(240px, 456px) repeat(3, minmax(max-content, 1fr)); }
  .rt-fuss__firma { grid-column: auto; }
}
@media (max-width: 781px) {
  .rt-fuss__oben { display: flex; flex-direction: column; padding-bottom: 48px; }
  .rt-fuss__firma { gap: 24px; }
  .rt-fuss__oben > .rt-fuss__firma { margin-bottom: 48px !important; }
  .rt-fuss__logo img { width: 160px !important; height: auto; }
  .rt-fuss__gruppe { border-bottom: 1px solid var(--color-hairline); }
  .rt-fuss__firma + .rt-fuss__gruppe { border-top: 1px solid var(--color-hairline); }
  .rt-fuss__gruppe > summary {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    min-height: 56px; cursor: pointer;
  }
  .rt-fuss__gruppe > summary::after {
    content: ""; width: 44px; height: 44px; margin-right: -14px; flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M1.5 4L6 8l4.5-4' stroke='%2303153D' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
    transition: transform var(--motion-fast) var(--ease-out);
  }
  .rt-fuss__gruppe[open] > summary::after { transform: rotate(180deg); }
  .rt-fuss__gruppe[open] { padding-bottom: 16px; }
  .wp-block-group .rt-fuss__gruppe p.rt-fuss__link { line-height: 40px; }
  .rt-fuss__unten { flex-direction: column-reverse; align-items: flex-start; gap: 8px; padding: 24px 0 32px; }
  .wp-block-group .rt-fuss__unten p.rt-fuss__link,
  .wp-block-group p.rt-fuss__copy { line-height: 1.5; }
}

/* =============================================
   ICONS · CHECK CIRCLE
   Phosphor: check-circle, Schnitt bold · var(--color-blue-light)
   Strich 24/256 bei 1.1em ≈ 1,75 px (R20). Bis 03.10.26 Lucide circle-check (NewPr Q-39, D-57)
   Варианты: на белом и тёмном (#03153D) фоне; серых секций нет с 23.09.26
   Документация: design.md → Иконки
   Примечание: hex #48B7F0 прописан напрямую в SVG data URI —
   CSS-переменные внутри url() не поддерживаются браузерами.
   ============================================= */
.reintop-check-list {
  font-size: var(--fs-body); /* wie Fliesstext; Inline-Groesse aus den Mustern entfernt 25.09.26 */
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.reintop-check-list li {
  position: relative;
  padding-left: 2rem;
}

.reintop-check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1.1em;
  height: 1.1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%2348B7F0'%3E%3Cpath d='M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* =============================================
   RT FAQ — wp:details native blocks
   ============================================= */

/* R3 (22.09.26): dieselbe Mechanik wie bei .rt-switch — geschlossen Schwarz 400,
   offen Schwarz 700 mit Akzentlinie, Marker als Chevron statt + und ×. */
.rt-faq-section .wp-block-details {
  border-bottom: 1px solid var(--color-hairline);
  margin: 0;
}

.rt-faq-section .wp-block-details[open] {
  border-bottom: 3px solid var(--color-blue-light);
}

.rt-faq-section .wp-block-details > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0; /* 24 / mobil 16 (design.md, D-83); vorher 22 */
  font-size: var(--fs-body); /* wie die Antwort; bis 13.10.26 1rem (16) */
  font-weight: 400;
  font-family: var(--font-primary, 'Signika', sans-serif);
  color: var(--color-black);
  cursor: pointer;
  list-style: none;
  line-height: 1.65; /* Zeile 24 + 28 + 24 = 76 wie Komponente mtPxD; vorher 1.35 */
  gap: 1.5rem;
}

@media (max-width: 781px) {
  .rt-faq-section .wp-block-details > summary { padding: 16px 0; }
  .rt-faq-section .wp-block-details > p,
  .rt-faq-section .wp-block-details > .wp-block-paragraph { padding-bottom: 16px; }
}
.rt-faq-section .wp-block-details > summary::-webkit-details-marker { display: none; }
.rt-faq-section .wp-block-details > summary::marker { display: none; }

.rt-faq-section .wp-block-details[open] > summary {
  font-weight: 700;
  padding-bottom: var(--space-pair); /* Frage -> Antwort 16 (mtPxD) */
}

/* Chevron als Maske: die Farbe kommt aus background-color und laesst sich dadurch
   je Zustand setzen, anders als bei einem Hex im data-URI. */
.rt-faq-section .wp-block-details > summary::after {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: var(--color-black);
  -webkit-mask: var(--rt-chevron) center / 18px 18px no-repeat;
  mask: var(--rt-chevron) center / 18px 18px no-repeat;
  transition: transform var(--motion-fast) var(--ease-out);
}

.rt-faq-section .wp-block-details[open] > summary::after {
  background-color: var(--color-blue-light);
  transform: rotate(180deg);
}

/* Antwort oeffnet sich weich (NewPr Q-78, Vorschau 20.10.26): Hoehe 300 ms, Chevron
   dreht mit, Haarlinie wird Akzentlinie; die Frage wird sofort fett. Nur Chrome und
   Edge kennen ::details-content, andere Browser oeffnen wie bisher ohne Uebergang. */
.rt-faq-section .wp-block-details {
  interpolate-size: allow-keywords;
  transition: border-color var(--motion-fast) var(--ease-out);
}
.rt-faq-section .wp-block-details > summary::after {
  transition: transform var(--motion-panel) var(--ease-out), background-color var(--motion-fast) var(--ease-out);
}
.rt-faq-section .wp-block-details::details-content {
  height: 0;
  overflow: clip;
  transition: height var(--motion-panel) var(--ease-out), content-visibility var(--motion-panel) allow-discrete;
}
.rt-faq-section .wp-block-details[open]::details-content { height: auto; }
@media (prefers-reduced-motion: reduce) {
  .rt-faq-section .wp-block-details::details-content,
  .rt-faq-section .wp-block-details > summary::after { transition: none; }
}

.rt-faq-section .wp-block-details > p,
.rt-faq-section .wp-block-details > .wp-block-paragraph {
  padding: 0 0 24px;
  font-size: var(--fs-body); /* 0.9375rem stand hier, wirkte aber nie: .wp-block-group p gewinnt mit !important (gemessen 03.10.26, Q-49) */
  color: var(--color-body);
  line-height: 1.65;
  margin: 0;
}

/* Link im Antworttext (20.10.26, Q-75): Text schwarz, Unterstrich Akzent 2 px wie Leinwand;
   Akzent nie als Textfarbe auf Weiss (R24). Hover und Fokus: Unterstrich schwarz. */
.rt-faq-section .wp-block-details p a,
.rt-zeile p a {
  color: var(--color-black);
  text-decoration: underline;
  text-decoration-color: var(--color-blue-light);
  text-decoration-thickness: 2px !important; /* Elternthema: a { text-decoration-thickness: 1px !important } */
  text-underline-offset: 4px;
  transition: text-decoration-color var(--motion-fast) var(--ease-out);
}

.rt-faq-section .wp-block-details p a:hover,
.rt-faq-section .wp-block-details p a:focus-visible,
.rt-zeile p a:hover,
.rt-zeile p a:focus-visible {
  text-decoration-color: var(--color-black);
}

/* =============================================
   FORMULARSEITEN — Kontakt, Angebot anfordern, Danke (NewPr D-175, D-176, 11.11.26)
   Erster Bildschirm ohne Foto: Text links, Formular rechts in einer Karte R29
   (Ausnahme zu R26, regeln.md). Spalten 50/50, Gutter 64, mobil Text ueber Formular.
   Muster: patterns/formular-kontakt.php, formular-angebot.php, danke-kontakt.php,
   danke-angebot.php. Formular-Markup steht in CF7 (Formulare 9 und 119).
   Bis 11.11.26 stand hier ein ungenutzter Entwurf mit Rahmen #D0D5DD, Platzhalter
   #9DA8B4 und rotem Sternchen (Q-29); Rahmen jetzt #6B7280 (Kontrast 4,83 : 1,
   WCAG 1.4.11 verlangt fuer die Feldgrenze 3 : 1, #E0E7EF haette 1,25 : 1).
   ============================================= */
.rt-formular-seite { padding-top: var(--space-section); }
@media (max-width: 781px) {
  .wp-block-post-content .wp-block-columns.rt-formular-seite__spalten { row-gap: var(--space-block) !important; }
}
.rt-formular-seite p { margin-bottom: 0; } /* margin-top bleibt: daraus macht der Block-Abstand der Gruppe (blockGap) den Rhythmus */
.rt-formular-seite h1 { margin-bottom: 0; }
.rt-formular-seite .rt-masz { max-width: var(--text-measure); }
.rt-formular-seite p a {
  color: var(--color-black);
  text-decoration: underline;
  text-decoration-color: var(--color-blue-light);
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--motion-fast) var(--ease-out);
}
.rt-formular-seite p a:hover,
.rt-formular-seite p a:focus-visible { text-decoration-color: var(--color-black); }

/* Kontaktdaten: Zeilen mit Haarlinie, Bezeichnung 120 */
.rt-kontaktdaten__zeile {
  display: flex; gap: 24px; align-items: baseline;
  padding: var(--space-pair) 0;
  border-top: 1px solid var(--color-hairline);
}
.rt-kontaktdaten__zeile:last-child { border-bottom: 1px solid var(--color-hairline); }
.wp-block-group p.rt-kontaktdaten__label { flex: 0 0 120px; font-size: 1rem !important; font-weight: 600; color: var(--color-black); }

/* Schritte: echte Reihenfolge, Nummer navy 22 (R12) */
.rt-schritt {
  display: flex; gap: var(--space-pair); align-items: flex-start;
  padding: 24px 0;
  border-top: 1px solid var(--color-hairline);
}
.rt-schritt:last-child { border-bottom: 1px solid var(--color-hairline); }
.wp-block-group p.rt-schritt__nr { flex: 0 0 48px; font-size: 22px !important; font-weight: 700; line-height: 1.2; color: var(--color-blue-dark); }
.rt-schritt__nr--erledigt {
  height: 28px; overflow: hidden; text-indent: -999px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348B7F0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5'/%3E%3C/svg%3E") left top / 28px 28px no-repeat;
}
.rt-schritt__text { flex: 1; min-width: 0; }
.rt-schritt__text > * { margin: 0 !important; }
.rt-schritt__text > * + * { margin-top: 8px !important; }

/* Danke-Seiten: Inhalt in einer Spalte an der Logo-Linie */
/* constrained-Layout zentriert sonst mit margin auto !important (components.md, Ширина контента);
   linke Kante = Kante der Kiste 1520 (Logo-Linie, R23), nicht der Seitenrand. */
.rt-danke .rt-danke__inhalt { max-width: 728px; margin-left: max(0px, calc((100% - var(--content-max)) / 2)) !important; }
/* Danke-Seiten: kurze Absaetze auf gleich lange Zeilen (NewPr, Nutzer 21.11.26). pretty liess bei Bewerbung
   «E-Mail.» allein in der zweiten Zeile; balance: 14+1 -> 7+8 Woerter, Zeilenzahl auf allen drei Seiten gleich (1920-390). */
.rt-danke .rt-danke__inhalt p { text-wrap: balance; }
.rt-danke__links { display: flex; flex-wrap: wrap; gap: var(--space-pair) var(--space-inner); }

/* Rechtstexte: Impressum, Datenschutzerklaerung (NewPr Q-19, 13.11.26).
   Eine Spalte an der Logo-Linie ueber die ganze Breite der Kiste (16.11.26, Nutzer; bis dahin 728 wie Danke);
   Text vom alten Webauftritt uebernommen.
   Rhythmus: Absatz → Absatz pair (16), vor H2 block (64), H2 → Text inner (32),
   vor H3 inner (32), H3/H4 → Text pair (16). */
.rt-rechtstext { padding-bottom: var(--space-section); }
.rt-rechtstext .rt-rechtstext__inhalt { max-width: var(--content-max); margin-left: max(0px, calc((100% - var(--content-max)) / 2)) !important; }
.rt-rechtstext__inhalt > * { margin-top: var(--space-pair) !important; margin-bottom: 0 !important; }
.rt-rechtstext__inhalt > h1 { margin-top: 0 !important; }
.rt-rechtstext__inhalt > h1 + *, .rt-rechtstext__inhalt > h2 + * { margin-top: var(--space-inner) !important; }
.rt-rechtstext__inhalt > h2 { margin-top: var(--space-block) !important; }
.rt-rechtstext__inhalt > h3 { margin-top: var(--space-inner) !important; }
.rt-rechtstext__inhalt > h4 { margin-top: var(--space-inner) !important; font-size: 1.0625rem !important; }
.rt-rechtstext__inhalt :is(p, li) { color: var(--color-body); overflow-wrap: anywhere; }
.rt-rechtstext__inhalt ul { padding-left: 1.25em; }
.rt-rechtstext__inhalt li + li { margin-top: 8px; }
.rt-rechtstext__inhalt li a { color: var(--color-black); text-decoration: underline; text-decoration-color: var(--color-blue-light); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Karte mit Formular: R29 (.rt-karte), Innenabstand inner (32, mobil 24) */
.rt-formular-karte { box-shadow: var(--shadow-karte); background: var(--color-white); padding: var(--space-inner); }

/* Formular */
.wpcf7 { font-family: var(--font-primary); }
.wpcf7 form { margin: 0; }
.rt-form { display: flex; flex-direction: column; gap: 24px; }
.rt-form__zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
@media (max-width: 600px) {
  .rt-form__zeile:not(.rt-form__zeile--immer) { grid-template-columns: 1fr; }
  .rt-form__zeile:not(.rt-form__zeile--immer) .rt-feld--leer { display: none; } /* staerker als .rt-feld { display: flex } weiter unten */
  .rt-form__zeile--immer { column-gap: 12px; } /* Anrede (halbe Breite), Vorname | Nachname: auch mobil zweispaltig (11.11.26) */
}
.rt-feld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rt-feld label { font-size: 1rem; font-weight: 600; line-height: 1.22; color: var(--color-black); }
.rt-optional { font-weight: 400; color: var(--color-muted); }
.rt-form h3.rt-form__gruppe { margin: 0; }
.rt-form__linie { height: 1px; background: var(--color-hairline); }
.wpcf7 .wpcf7-form-control-wrap { display: block; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  display: block; width: 100%; box-sizing: border-box;
  height: 56px; padding: 0 16px;
  font-family: var(--font-primary); font-size: var(--fs-body); line-height: 1.4;
  color: var(--color-black); background: var(--color-white);
  border: 1px solid var(--color-muted); border-radius: 0;
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out);
}
.wpcf7 textarea { height: 176px; min-height: 136px; padding: 14px 16px; resize: vertical; }
.wpcf7 textarea#rt-a-nachricht { height: 136px; } /* Angebot: Nachricht optional, niedriger (Entwurf) */
.wpcf7 select {
  padding-right: 44px; cursor: pointer;
  background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2303153D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 16px center no-repeat;
}
.wpcf7 select:has(option[value=""]:checked) { color: var(--color-muted); }
.wpcf7 select option, .wpcf7 select optgroup { color: var(--color-black); }
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: var(--color-muted); opacity: 1; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  border-color: var(--color-blue-dark); box-shadow: inset 0 0 0 1px var(--color-blue-dark);
}

/* Hinweis Datenschutz */
.wpcf7 p.rt-form__hinweis { margin: 0; font-size: 1rem !important; line-height: 1.6; color: var(--color-body); }
.rt-form__hinweis a {
  color: var(--color-black); text-decoration: underline; text-decoration-color: var(--color-blue-light);
  text-decoration-thickness: 2px !important; text-underline-offset: 4px;
}
.rt-form__hinweis a:hover, .rt-form__hinweis a:focus-visible { text-decoration-color: var(--color-black); }

/* Knopf: Primary wie im CTA-Band (Akzent, schwarzer Text); mobil 200 rechts (D-40) */
.rt-form__senden { display: flex; align-items: center; gap: 16px; }
.wpcf7 input[type="submit"] {
  padding: 16px 32px; height: auto;
  font-family: var(--font-primary); font-size: 1rem; font-weight: 600; line-height: 1.5;
  color: var(--color-black); background: var(--color-blue-light);
  border: 2px solid var(--color-blue-light); border-radius: 0; cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out);
}
.wpcf7 input[type="submit"]:hover, .wpcf7 input[type="submit"]:focus-visible { background: transparent; color: var(--color-black); }
@media (max-width: 781px) {
  .rt-form__senden { justify-content: flex-end; }
  .wpcf7 input[type="submit"] { width: 200px; }
}

/* Falle: fuer Menschen unsichtbar, nicht display:none (manche Bots lassen solche Felder aus) */
.rt-falle { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Fehler und Meldungen (#C0392B nur fuer Fehler, design.md) */
.wpcf7 .wpcf7-not-valid { border-color: #C0392B !important; box-shadow: inset 0 0 0 1px #C0392B !important; }
.wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.4; color: #C0392B; }
.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0; padding: 8px 0 8px 16px;
  border: 0; border-left: 3px solid var(--color-blue-light);
  font-size: var(--fs-body); font-weight: 600; line-height: 1.5; color: var(--color-black);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output { border-left-color: #C0392B; }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* =============================================
   SCROLL REVEAL & HERO ANIMATIONS
   ============================================= */

/* --- Hero: CSS keyframe animations (server-side class, no flash) --- */
@keyframes rt-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes rt-scale-in {
  from { opacity: 0; transform: scale(1.025); }
  to   { opacity: 1; transform: none; }
}

.rt-hero .wp-block-columns .wp-block-column:first-child {
  animation: rt-up 0.75s var(--ease-out) both;
}
/* Szene Kundenweg (Leistungen) und Schluesselbund (Branchen) starten selbst; kein Massstab darueber (Q-78, 17.11.26) */
.rt-hero .wp-block-columns .wp-block-column:last-child:not(:has(.rt-kundenweg, .rt-leben)) {
  animation: rt-scale-in 0.9s var(--ease-out) 0.15s both;
}

/* --- Scroll reveal: base state (hidden) --- */
.rt-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  var(--motion-reveal) var(--ease-out),
    transform var(--motion-reveal) var(--ease-out);
  will-change: opacity, transform;
}

/* Der Versatz nach rechts schiebt die Spalte vor dem Einblenden ueber die
   Inhaltskante hinaus: gemessen 22.09.26 auf der Startseite scrollWidth 1452
   bei 1440, bis alle Elemente sichtbar sind. clip schneidet nur waagerecht ab
   und laesst das senkrechte Scrollen unberuehrt (anders als overflow: hidden). */
main { overflow-x: clip; }

.rt-reveal.rt-reveal--left  { transform: translateX(-44px); }
.rt-reveal.rt-reveal--right { transform: translateX(44px); }

/* Stagger delays for cards */
.rt-reveal--d1 { transition-delay: 0.12s; }
.rt-reveal--d2 { transition-delay: 0.24s; }
.rt-reveal--d3 { transition-delay: 0.36s; }

/* Visible state (added by IntersectionObserver) */
.rt-reveal.rt-visible {
  opacity: 1;
  transform: none;
}

/* --- Erklaeren: Ablauf zeichnet sich (NewPr Q-78, Vorschau 20.10.26) ---
   Das Skript setzt --warte sofort und --los, wenn die Reihe ganz im Bild ist.
   Je Schritt i: Kreis waechst 0,6 -> 1 (300 ms), Text blendet ohne Versatz ein,
   die Linie zum naechsten Kreis waechst 350 ms; Takt 400 ms, sechs Schritte ~2,3 s.
   Desktop waagerecht, mobil senkrecht. Ohne JS fehlt --warte: alles steht fertig. */
.rt-ablauf__schritt:nth-child(1) { --i: 0; } .rt-ablauf__schritt:nth-child(2) { --i: 1; }
.rt-ablauf__schritt:nth-child(3) { --i: 2; } .rt-ablauf__schritt:nth-child(4) { --i: 3; }
.rt-ablauf__schritt:nth-child(5) { --i: 4; } .rt-ablauf__schritt:nth-child(6) { --i: 5; }
.rt-ablauf--warte .rt-ablauf__nr { opacity: 0; transform: scale(0.6); }
.rt-ablauf--warte .rt-ablauf__schritt > :not(.rt-ablauf__nr) { opacity: 0; }
.rt-ablauf--warte .rt-ablauf__schritt::after { transform: scaleX(0); transform-origin: left center; }
.rt-ablauf--los .rt-ablauf__nr {
  opacity: 1; transform: none;
  transition: opacity var(--motion-step) var(--ease-out) calc(var(--i) * 400ms),
              transform var(--motion-step) var(--ease-out) calc(var(--i) * 400ms);
}
.rt-ablauf--los .rt-ablauf__schritt > :not(.rt-ablauf__nr) {
  opacity: 1; transition: opacity var(--motion-step) var(--ease-out) calc(var(--i) * 400ms + 100ms);
}
.rt-ablauf--los .rt-ablauf__schritt::after {
  transform: none; transition: transform 350ms var(--ease-out) calc(var(--i) * 400ms + 150ms);
}
@media (max-width: 781px) {
  .rt-ablauf--warte .rt-ablauf__schritt::after { transform: scaleY(0); transform-origin: center top; }
}

/* --- Erklaeren: Kennzahlen zaehlen (Skript, Q-78); Ziffern gleich breit, die Zeile springt nicht --- */
.rt-kennzahl__wert.rt-zaehlt { font-variant-numeric: tabular-nums; }

/* Respect user accessibility preference */
@media (prefers-reduced-motion: reduce) {
  .rt-hero .wp-block-columns .wp-block-column,
  .rt-reveal,
  .rt-ablauf__nr, .rt-ablauf__schritt > *, .rt-ablauf__schritt::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.wpcf7 .wpcf7-spinner { vertical-align: middle; margin-left: 8px; }

/* =============================================
   KENNZAHLEN (Trust Indicators) — 18.09.26
   Eigene Klassen sind hier noetig, weil die Basisregel
   ".wp-block-group p { font-size: var(--fs-body) !important }" oben jede
   Absatzgroesse ueberschreibt. Gemessen: bei gleichem !important entscheidet
   die Spezifitaet, .wp-block-group p (0,1,1) schlaegt .rt-kennzahl__wert (0,1,0).
   Deshalb steht die Gruppe im Selektor mit drin.
   Werte: Zahl 48/700 Schwarz, Label 15/400 Body-Grau (design.md).
   Farbe der Zahl am 22.09.26 von Akzent auf Schwarz geaendert: Akzent auf Weiss
   ergibt 2.26:1. Der Akzent traegt auf dieser Seite jetzt nur noch Flaechen,
   Linien und Icons.
   ============================================= */
.wp-block-group p.rt-kennzahl__wert {
  font-size: 3rem !important;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.wp-block-group p.rt-kennzahl__label {
  font-size: 0.9375rem !important;
  font-weight: 400;
  line-height: 1.5;
  color: #3a3a3a;
}

/* =============================================
   SEITEN-HERO (R26) — ein Hero fuer alle Seiten, 23.09.26
   Entstanden aus dem Hero der Seite 50 (bis 23.09.26 Klasse rt-u-hero).
   Pattern: patterns/seiten-hero.php.
   - Hoehe: erster Bildschirm = Fenster minus Kopf (Vorbild werner,
     gemessen 23.09.26). svh statt vh, damit die Hoehe auf dem Telefon nicht
     springt, wenn der Browser seine Leiste ein- und ausblendet. Untergrenze
     560, damit der Hero auf flachen Fenstern nicht zur Leiste wird.
   - Das Cover traegt seine Hoehe als Inline-Style, deshalb !important (R16).
   - 781px ist der Punkt, an dem die Spalten von WordPress umbrechen.
   ============================================= */
:root { --rt-kopf-hoehe: 84px; } /* Kopf des Themes, gemessen 23.09.26 bei 390 bis 1920 */

/* Die Naht zwischen Text und Foto liegt in der Mitte desselben Gutters,
   auf dem die Reihen darunter stehen (R13): links halbe Seite plus 32,
   rechts halbe Seite minus 32 (Variante A, R26). Variante B (Foto ab
   36,4 %) waere nur diese beiden Zeilen. */
@media (min-width: 782px) {
  /* !important, weil Gutenberg die Prozente der Spalten inline schreibt (R16). */
  .rt-seiten-hero > .wp-block-columns > .wp-block-column:first-child { flex-basis: calc(50% + 32px) !important; }
  .rt-seiten-hero > .wp-block-columns > .wp-block-column:last-child  { flex-basis: calc(50% - 32px) !important; }
  .rt-seiten-hero__bild { min-height: max(560px, calc(100svh - var(--rt-kopf-hoehe))) !important; }
  /* Der Text steht vertikal mittig; das Polster ist nur noch Mindestabstand
     zu Kopf und Unterkante. Mit 128 (Inline-Wert aus dem Pattern) wurde der
     Hero bei 1280 x 720 auf Seiten mit langem Einleitungstext bis 823 hoch,
     also hoeher als der Bildschirm. Gemessen 23.09.26. */
  .rt-seiten-hero__text { padding-top: var(--space-block) !important; padding-bottom: var(--space-block) !important; }
}
/* Niedrige Bildschirme (bis 800 hoch, z. B. 1280 x 720, 1366 x 768): Polster der Textspalte 64 -> 32,
   sonst schob der Text den Hero ueber den ersten Bildschirm (Leistungen +15, Immobilienverwaltungen +54;
   Messung 05.11.26, NewPr Q-104, Entscheidung des Nutzers). */
@media (min-width: 782px) and (max-height: 800px) {
  .rt-seiten-hero__text { padding-top: var(--space-inner) !important; padding-bottom: var(--space-inner) !important; }
}

/* Oberhalb von 1760 ist der Seiteninhalt bei --content-max gedeckelt und
   rueckt zur Mitte. Der Hero-Text muss auf dieselbe linke Kante wie das
   Logo (R23). 100cqw ist die Breite der Sektion ohne Scrollbalken, deshalb
   Container statt vw. Kennt ein Browser cqw nicht, faellt die Zeile weg und
   es bleibt beim Inline-Wert page-margin. */
.rt-seiten-hero { container-type: inline-size; }
.rt-seiten-hero__text { padding-left: max(var(--page-margin), (100cqw - var(--content-max)) / 2) !important; }

/* Unter dem H1 laufen Tagline und Absatz auf der Textmasse (640, D-31), der
   H1 ueber die ganze Spalte (728 bei 1920). Vorbild: Entwuerfe Unternehmen
   und Glas (NewPr D-130, Q-68, 08.10.26; bis dahin alles 728). */
.rt-seiten-hero__text > p { max-width: var(--text-measure) !important; }

/* Tagline unter dem H1 gehoert zur Ueberschrift: pair (16) statt des Gruppen-
   abstands inner, danach weiter inner (NewPr D-150, wie unter dem H2, D-138).
   Nur wo die Tagline die Klasse rt-tagline traegt. */
.rt-seiten-hero__text > h1 + p.rt-tagline { margin-block-start: var(--space-pair) !important; }

/* Mobil wie werner (R26): Foto oben, Text darunter, kein Vollbild. */
@media (max-width: 781px) {
  .rt-seiten-hero > .wp-block-columns > .wp-block-column:last-child { order: -1; }
  .rt-seiten-hero__bild { min-height: 300px !important; }
  .rt-seiten-hero__text { padding-top: var(--space-block) !important; padding-bottom: 0 !important; }
}

/* Zeilenumbruch nur mobil, z. B. in der Tagline Unterhaltsreinigung nach
   »Zuverlässig.«, damit »Sie« nicht allein in der zweiten Zeile steht (NewPr, 10.10.26). */
br.rt-umbruch-mobil { display: none; }
@media (max-width: 781px) { br.rt-umbruch-mobil { display: inline; } }

/* Seite 50: der flache mobile Ausschnitt soll den Eingang und die
   Sauberlaufzone zeigen (R22), nicht die Fassade darueber. */
@media (max-width: 781px) {
  .page-id-50 .rt-seiten-hero__bild img { object-position: 50% 100%; }
}

/* =============================================
   HERO STARTSEITE: TAG → ABEND (13.11.26, NewPr bildideen-startseite.md)
   Ueber dem Tagesbild (Cover-<img>, Medien-ID 498, ohne fahrende Schiffe)
   blendet ::after das Abendbild (499) ein und wieder aus: Tag 2 s, Uebergang
   10 s, Abend 5 s, zurueck 10 s, im Kreis (27 s; Nutzer 13.11.26: 10 s, im
   Kreis, danach nachjustieren). Beide Bilder decken sich bis auf 0,15 px;
   die Feinstruktur des Abends ist vom Tag uebernommen, sonst wird das Bild
   mitten im Uebergang weich (NewPr bildideen-startseite.md, 13.11.26).
   Das Abendbild setzt Reintop_hero_abend_script() erst nach dem Laden der
   Seite (Variable --rt-hero-abend-bild, Klasse --an), es bremst den ersten
   Bildschirm nicht. Ausserhalb des Bildschirms --pause.
   Weniger Bewegung: kein Uebergang, ::after zeigt das ruhige Tagesbild mit
   Schiffen (496, Variable aus Reintop_hero_abend_head()).
   background-position/-size wie object-position/-fit des Covers.
   ============================================= */
.rt-hero-abend::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--rt-hero-abend-bild, none) 92% 55% / cover no-repeat;
  opacity: 0;
}
.rt-hero-abend.rt-hero-abend--an::after { animation: rt-tag-abend 27s infinite; }
.rt-hero-abend.rt-hero-abend--pause::after { animation-play-state: paused; }
@keyframes rt-tag-abend {
  0%, 7.4%   { opacity: 0; animation-timing-function: ease-in-out; }
  44.4%, 63% { opacity: 1; animation-timing-function: ease-in-out; }
  100%       { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-hero-abend::after { background-image: var(--rt-hero-ruhe-bild, none); opacity: 1; animation: none !important; }
}

/* =============================================
   UNTERNEHMEN – SPALTENTAUSCH (Seite 50) — 18.09.26
   S6 zeigt auf dem Desktop Foto links, Text rechts. Im Markup steht der
   Text zuerst, damit beim Umbruch auf schmale Schirme automatisch die
   Reihenfolge Text → Foto entsteht (R15). Getauscht wird nur oberhalb
   der WordPress-Umbruchbreite von 781px.
   ============================================= */
@media (min-width: 782px) {
  .rt-u-tausch { flex-direction: row-reverse; }
}

/* =============================================
   SCHALTER .rt-switch — 18.09.26
   Eine Mechanik, zwei Layouts: --tabs (S4 Unsere Werte) und
   --liste (S8 Digitalisierung). Jeder Punkt traegt seinen eigenen Inhalt
   inklusive Bild; verschoben wird ausschliesslich per CSS, damit die
   Reihenfolge auf schmalen Schirmen von allein stimmt (components.md).
   Mobil zuerst: beide Varianten sind dort ein Akkordeon.
   ============================================= */
.rt-switch { position: relative; }
.rt-switch__list { list-style: none; margin: 0; padding: 0; }
.rt-switch__item { margin: 0; }

.rt-switch__head {
  display: flex;
  align-items: center;
  gap: var(--space-micro);
  width: 100%;
  padding: 16px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid #E0E7EF;
  border-radius: 0;
  color: var(--color-black);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65; /* 17 / 1.65 wie Fliesstext (design.md, R17), bis 18.10.26 1.3 (NewPr Q-85) */
  text-align: left;
  cursor: pointer;
}

/* R3 (22.09.26): das Label des offenen Eintrags bleibt schwarz, den Zustand tragen
   Gewicht, Linie und die Akzentfarbe von Icon und Chevron. */
.rt-switch__item.is-open > .rt-switch__head {
  color: var(--color-black);
  font-weight: 700;
  border-bottom: 3px solid var(--color-blue-light);
  padding-bottom: 14px;
}
.rt-switch__item.is-open > .rt-switch__head .rt-switch__icon,
.rt-switch__item.is-open > .rt-switch__head .rt-switch__caret {
  color: var(--color-blue-light);
}

.rt-switch__caret { margin-left: auto; flex: none; }
.rt-switch__caret svg { display: block; width: 18px; height: 18px; }
.rt-switch__item.is-open > .rt-switch__head .rt-switch__caret { transform: rotate(180deg); }

.rt-switch__icon { flex: none; }
.rt-switch__icon svg { display: block; width: 28px; height: 28px; }

.rt-switch__body { display: none; }
.rt-switch__item.is-open > .rt-switch__body { display: block; padding: var(--space-pair) 0; }

.wp-block-group .rt-switch__titel { margin: 0 0 var(--space-pair); color: var(--color-black); }
.wp-block-group p.rt-switch__text { margin: 0; color: #3a3a3a; font-size: var(--fs-body) !important; }

.rt-switch__media { margin-top: var(--space-pair); }
.rt-switch__media img { display: block; width: 100%; height: auto; }

/* --- Variante Tabs (S4), ab der Umbruchbreite von WordPress --- */
@media (min-width: 782px) {
  /* Buehne fuer den absolut gesetzten Inhalt: Hoehe des hoechsten Panels
     plus der Abstand 32. Gemessen am gebauten Zustand 18.09.26: hoechstes
     Panel 98 (Sicherheit, Persoenlichkeit, Qualifikation), 98 + 32 = 130.
     Aendert sich ein Text, diese Zahl neu messen. */
  .rt-switch--tabs { padding-bottom: 130px; }
  .rt-switch--tabs .rt-switch__list { position: relative; display: flex; }
  .rt-switch--tabs .rt-switch__item { flex: 1 1 0; min-width: 0; }

  .rt-switch--tabs .rt-switch__head {
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-micro);
    padding: 0 8px 16px;
    text-align: center;
  }
  .rt-switch--tabs .rt-switch__item.is-open > .rt-switch__head { padding-bottom: 14px; }
  .rt-switch--tabs .rt-switch__icon svg { width: 80px; height: 80px; }
  .rt-switch--tabs .rt-switch__caret { display: none; }

  .rt-switch--tabs .rt-switch__item.is-open > .rt-switch__body {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: var(--space-inner);
    padding: 0;
  }
}

/* Sechs Registerkarten (Unternehmen S4) tragen 17 erst ab 1120: darunter ist die
   Spalte schmaler als "Wirtschaftlichkeit" fett (135), bei 782 auch als
   "Persoenlichkeit" (106 zu 98). Bis 1119 bleibt die Beschriftung 14.
   Entscheidung des Nutzers 18.10.26 (NewPr Q-85, components.md). */
@media (min-width: 782px) and (max-width: 1119.98px) {
  .rt-switch--tabs:not(.rt-switch--stapel) .rt-switch__head { font-size: 0.875rem; }
}

/* --- Bewegung der Registerkarten (NewPr Q-78, Vorschau 20.10.26) ---
   Desktop, --tabs: eine Akzentlinie je Reihe gleitet 300 ms zur gewaehlten Karte
   (Lage setzt Reintop_switch_script als --linie-x/-y/-w, Klasse --linie; ohne JS
   bleibt die Linie am offenen Kopf). Symbol und Chevron wechseln die Farbe 200 ms.
   Inhalt: alter erlischt 120 ms, neuer erscheint 200 ms, Karten gestaffelt 60 ms,
   nur Deckkraft. Mobil (Akkordeon, alle Varianten): Hoehe 300 ms wie das FAQ. */
.rt-switch { interpolate-size: allow-keywords; }
.rt-switch__icon, .rt-switch__caret { transition: color var(--motion-fast) var(--ease-out), transform var(--motion-panel) var(--ease-out); }
@media (min-width: 782px) {
  .rt-switch--tabs .rt-switch__list { position: relative; }
  .rt-switch--linie.rt-switch--tabs .rt-switch__item.is-open > .rt-switch__head {
    border-bottom: 1px solid #E0E7EF;
    padding-bottom: 16px;
  }
  .rt-switch--linie.rt-switch--tabs .rt-switch__list::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--linie-w, 0);
    height: 3px;
    background: var(--color-blue-light);
    transform: translate(var(--linie-x, 0), var(--linie-y, 0));
    pointer-events: none;
  }
  .rt-switch--linie-an.rt-switch--tabs .rt-switch__list::after {
    transition: transform var(--motion-panel) var(--ease-out), width var(--motion-panel) var(--ease-out);
  }
  /* Inhalte liegen uebereinander und blenden nur ueber die Deckkraft */
  .rt-switch--tabs:not(.rt-switch--stapel) .rt-switch__body {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: var(--space-inner);
    padding: 0;
  }
  .rt-switch--tabs .rt-switch__body {
    visibility: hidden;
    opacity: 0;
    transition: opacity 120ms var(--ease-out), visibility 0s linear 120ms;
  }
  .rt-switch--tabs .rt-switch__item.is-open > .rt-switch__body {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--motion-fast) var(--ease-out) 120ms, visibility 0s;
  }
  .rt-switch--tabs .rt-switch__body .rt-karte { opacity: 0; transition: opacity 120ms var(--ease-out); }
  .rt-switch--tabs .rt-switch__item.is-open > .rt-switch__body .rt-karte {
    opacity: 1;
    transition: opacity var(--motion-fast) var(--ease-out) calc(120ms + var(--k, 0) * 60ms);
  }
  .rt-switch--tabs .rt-karten > .rt-karte:nth-child(2) { --k: 1; }
  .rt-switch--tabs .rt-karten > .rt-karte:nth-child(3) { --k: 2; }
  .rt-switch--tabs .rt-karten > .rt-karte:nth-child(4) { --k: 3; }
}
@media (max-width: 781px) {
  .rt-switch__body,
  .rt-switch__item.is-open > .rt-switch__body {
    display: block;
    overflow: clip;
    transition: height var(--motion-panel) var(--ease-out), padding var(--motion-panel) var(--ease-out), visibility 0s linear var(--motion-panel);
  }
  .rt-switch__body { height: 0; padding: 0; visibility: hidden; }
  .rt-switch__item.is-open > .rt-switch__body {
    height: auto;
    padding: var(--space-pair) 0;
    visibility: visible;
    transition: height var(--motion-panel) var(--ease-out), padding var(--motion-panel) var(--ease-out), visibility 0s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rt-switch__body, .rt-switch__body .rt-karte, .rt-switch__list::after, .rt-switch__icon, .rt-switch__caret { transition: none !important; }
}

/* --- Variante Liste mit Bild (S8) --- */
/* Mobil steht die Karte 24 unter dem Text, wie gestapelte Spalten (D-81). */
.rt-switch--liste .rt-switch__media { margin-top: 24px; }
@media (min-width: 782px) {
  .rt-switch--liste { min-height: 462px; }
  /* Halbe Spalte wie jede andere zweispaltige Reihe (R13), nicht mehr fest 568. */
  .rt-switch--liste .rt-switch__list { width: calc(50% - 32px); }
  .rt-switch--liste .rt-switch__item:last-child > .rt-switch__head { border-bottom-color: transparent; }
  .rt-switch--liste .rt-switch__media {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(50% - 32px);
    margin-top: 0;
  }
  /* Seit 23.10.26 steht hier statt der SVG-Schemata 568 eine Bildschirm-Karte
     (.rt-screen) ueber die ganze rechte Spalte (Variante B, NewPr). Alle vier
     Karten sind mindestens so hoch wie die hoechste bei 1920 (Ticket, 456),
     damit der Block beim Umschalten nicht springt. */
  .rt-switch--liste .rt-screen { min-height: 456px; }
}

/* =============================================
   BILDSCHIRM-KARTE .rt-screen — 23.10.26 (NewPr, Unternehmen S8)
   Karte R29 mit dem Nachbau eines Programmfensters: Kopf, Inhalt, Fuss.
   Reines HTML statt Bild, damit die Schrift auf jeder Breite 15 bleibt.
   Schmale Karte (unter 560: mobil und schmale Desktop-Spalten) rueckt enger
   zusammen; das entscheidet die Breite der Karte, nicht des Fensters.
   Texte in span/div, nicht p: ".wp-block-group p" setzt 17 mit !important.
   ============================================= */
.rt-screen {
  container-type: inline-size;
  box-sizing: border-box; /* min-height 456 einschliesslich Polster, wie im Entwurf */
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--color-black);
}
@media (max-width: 781.98px) { .rt-screen { padding: 24px; } } /* R29 mobil (D-83) */

.rt-screen__ic { display: block; flex: none; width: 20px; height: 20px; color: var(--color-black); }
.rt-screen__ic--akzent { color: var(--color-blue-light); }
.rt-screen__ic--muted { width: 16px; height: 16px; color: var(--color-muted); }
.rt-screen strong { font-weight: 700; }

.rt-screen__kopf {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--color-hairline);
}
.rt-screen__titel { font-size: var(--fs-body); font-weight: 700; }
.rt-screen__meta, .rt-screen__k, .rt-screen__neben, .rt-screen dt { color: var(--color-muted); }

/* Zeiterfassung */
.rt-screen__zeiten { display: flex; flex-direction: column; gap: 24px; }
.rt-screen__zeit { display: flex; align-items: center; gap: 16px; }
.rt-screen__k { width: 72px; flex: none; }
.rt-screen__zeit--ist .rt-screen__k { color: var(--color-black); font-weight: 700; }
.rt-screen__spanne { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; }
.rt-screen__t { font-size: 1.25rem; color: var(--color-muted); }
.rt-screen__zeit--ist .rt-screen__t { color: var(--color-black); font-weight: 700; }
.rt-screen__linie { flex: 1 1 0; min-width: 16px; height: 1px; background: var(--color-hairline); }
.rt-screen__zeit--ist .rt-screen__linie { height: 2px; background: var(--color-black); }
.rt-screen__marken { display: flex; gap: 4px; }
.rt-screen__marken .rt-screen__ic { width: 16px; height: 16px; }
.rt-screen__werte { margin: 0; padding-top: 24px; border-top: 1px solid var(--color-hairline); display: flex; flex-direction: column; gap: 12px; }
.rt-screen__werte > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.rt-screen__werte dd { margin: 0; font-weight: 700; }
.rt-screen__neben { font-weight: 400; margin-right: 8px; }
.rt-screen__checks, .rt-screen__schritte, .rt-screen__menue { list-style: none; margin: 0; padding: 0; }
.rt-screen__checks { padding-top: 16px; border-top: 1px solid var(--color-hairline); display: flex; flex-direction: column; gap: 12px; }
.rt-screen__checks li, .rt-screen__fuss { display: flex; align-items: center; gap: 12px; color: var(--color-body); }

/* Qualitaetsaudit */
.rt-screen__tabelle { width: 100%; border-collapse: collapse; margin: 0; font-size: inherit; }
.rt-screen__tabelle th, .rt-screen__tabelle td { padding: 10px 0; border: 0; border-top: 1px solid var(--color-hairline); text-align: center; font-weight: 400; }
.rt-screen__tabelle th[scope="row"], .rt-screen__tabelle thead th:first-child { text-align: left; }
.rt-screen__tabelle thead th { padding: 0 0 8px; border-top: 0; color: var(--color-muted); width: 72px; }
.rt-screen__tabelle thead th:first-child { width: auto; }
.rt-screen__tabelle td .rt-screen__ic { width: 16px; height: 16px; margin-inline: auto; color: var(--color-muted); }
.rt-screen__tabelle td .rt-screen__ic--schwarz { color: var(--color-black); }
.rt-screen__fuss { padding-top: 16px; border-top: 1px solid var(--color-hairline); }

/* Ticket */
.rt-screen__fall { display: flex; align-items: flex-start; gap: 24px; }
.rt-screen__foto {
  width: 120px; height: 120px; flex: none; background: var(--color-flaeche);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--color-muted);
}
.rt-screen__foto .rt-screen__ic { width: 24px; height: 24px; color: var(--color-muted); }
.rt-screen__ort, .rt-screen__person > span, .rt-screen__schritte li > span { display: flex; flex-direction: column; }
.rt-screen__ort { gap: 4px; }
.rt-screen__ort strong, .rt-screen__person strong { font-size: var(--fs-body); }
.rt-screen__ort > span, .rt-screen__person > span > span, .rt-screen__schritte li > span > span { color: var(--color-muted); }
.rt-screen__schritte { padding-top: 24px; border-top: 1px solid var(--color-hairline); display: flex; flex-direction: column; gap: 16px; }
.rt-screen__schritte li { display: flex; align-items: flex-start; gap: 12px; }

/* Kundenportal */
.rt-screen__person { display: flex; align-items: center; gap: 12px; }
.rt-screen__person .rt-screen__ic { width: 28px; height: 28px; }
.rt-screen__menue li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--color-hairline); }
.rt-screen__menue li:last-child { border-bottom: 1px solid var(--color-hairline); }
.rt-screen__menue li > span { flex: 1 1 0; min-width: 0; }
.rt-screen__notiz { color: var(--color-body); }

/* Schmale Karte */
@container (max-width: 559.98px) {
  .rt-screen__zeit { gap: 12px; }
  .rt-screen__k { width: 60px; }
  .rt-screen__spanne { gap: 8px; }
  .rt-screen__t { font-size: var(--fs-body); }
  .rt-screen__tabelle thead th { font-size: 0.875rem; width: 44px; }
  .rt-screen__tabelle thead th:nth-child(3) { width: 36px; }
  .rt-screen__tabelle thead th:nth-child(4) { width: 46px; }
  .rt-screen__tabelle thead th:nth-child(5) { width: 50px; }
  .rt-screen__tabelle thead th:first-child { width: auto; }
  .rt-screen__fall { gap: 16px; }
  .rt-screen__foto { width: 88px; height: 88px; }
}

/* --- Variante Stapel (Glas Vorteile, 03.10.26, NewPr D-101) ---
   Wie --tabs, aber ohne feste Buehnenhoehe: Koepfe und Inhalte liegen in einem
   Raster, die Li-Elemente sind display: contents. Alle Inhalte liegen in
   derselben Zelle uebereinander, nur der offene ist sichtbar; die Hoehe
   folgt damit dem hoechsten Inhalt, beim Umschalten springt nichts.
   Anzahl der Spalten im Markup: style="--rt-n:3". Unternehmen S4 bleibt bei --tabs. */
@media (min-width: 782px) {
  .rt-switch--tabs.rt-switch--stapel { padding-bottom: 0; }
  .rt-switch--stapel .rt-switch__list {
    display: grid;
    grid-template-columns: repeat(var(--rt-n, 3), minmax(0, 1fr));
  }
  .rt-switch--stapel .rt-switch__item { display: contents; }
  .rt-switch--stapel .rt-switch__head { grid-row: 1; }
  .rt-switch--stapel .rt-switch__body,
  .rt-switch--stapel .rt-switch__item.is-open > .rt-switch__body {
    display: block;
    position: static;
    grid-row: 2;
    grid-column: 1 / -1;
    margin-top: var(--space-inner);
    padding: 0;
    visibility: hidden;
  }
  .rt-switch--stapel .rt-switch__item.is-open > .rt-switch__body { visibility: visible; }
}

/* =============================================
   KARTE R29 — 03.10.26 (NewPr D-78, D-101)
   Weiss, ohne Rahmen und Rundung, Schatten ENGIE level-2. Erste Traegerin:
   Glas Vorteile, vier Karten 2x2 je Registerkarte. Abstand 64 in beide
   Richtungen (R13), mobil einspaltig mit 24 (D-83). Zeilen gleich hoch.
   ============================================= */
:root {
  --shadow-karte:       0 1px 5px 0 rgba(0,0,0,.10), 0 2px 2px 0 rgba(0,0,0,.06), 0 3px 1px -2px rgba(0,0,0,.06);
  --shadow-karte-hover: 0 3px 14px 2px rgba(0,0,0,.10), 0 8px 10px 1px rgba(0,0,0,.06), 0 5px 5px -3px rgba(0,0,0,.06);
}
.rt-karten {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-inner);
  margin-top: var(--space-inner);
}
@media (min-width: 782px) {
  /* gleiche Zeilenhoehe nur im Raster 2x2; einspaltig waeren sonst alle Karten so hoch wie die hoechste */
  .rt-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--space-block); }
}
.rt-karte {
  background: var(--color-white);
  box-shadow: var(--shadow-karte);
  padding: var(--space-inner);
  border: 0;
  border-radius: 0;
}
.wp-block-group .rt-karte__titel { margin: 0 0 8px; font-size: var(--fs-body); font-weight: 700; line-height: 1.65; color: var(--color-black); } /* 1.65 wie im Entwurf (D-84) */
.wp-block-group p.rt-karte__text { margin: 0; color: var(--color-body); }
a.rt-karte { display: block; transition: box-shadow var(--motion-fast) var(--ease-out); }
a.rt-karte:hover, a.rt-karte:focus-visible { box-shadow: var(--shadow-karte-hover); }

/* Karte mit Foto und Knopf: Uebersicht Leistungen, vier Karten 2x2 (NewPr D-151).
   Foto 16:9 oben, Koerper mit Polster inner (32 / 24), Eyebrow -> H3 -> Text je
   pair (16), Knopf am Boden der Karte, mindestens inner ueber ihm. Die ganze
   Karte ist der Link; der Knopf ist ein span mit dem Kit-Knopf (R24), er
   fuellt sich, wenn die Karte gehovert oder fokussiert wird. */
.rt-karten.rt-karten--leistungen { margin-top: var(--space-block); }
a.rt-karte--leistung { display: flex; flex-direction: column; padding: 0; color: inherit; text-decoration: none; }
.rt-karte__bild { aspect-ratio: 16 / 9; background: #E8EEF4; overflow: hidden; }
.rt-karte__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rt-karte__koerper { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-inner); padding: var(--space-inner); }
/* Mit .wp-block-group und Element davor, sonst gewinnt
   .wp-block-group p.rt-karte__text { margin: 0 } der Karte R29 (0,2,1). */
.wp-block-group .rt-karte__inhalt > :is(p, h3) { margin: 0; }
.wp-block-group .rt-karte__inhalt > :is(p, h3) + :is(p, h3) { margin-top: var(--space-pair); }
.rt-karte__knopf { align-self: flex-start; }
a.rt-karte:hover .rt-karte__knopf,
a.rt-karte:focus-visible .rt-karte__knopf {
  background-color: var(--color-blue-light) !important;
  border-color: var(--color-blue-light) !important;
  color: var(--color-black) !important;
}

/* =============================================
   HAKENLISTE ZWEISPALTIG — 03.10.26 (Glas Was wir machen)
   Eine Liste, auf dem Desktop in zwei Spalten 3 + 3 umbrochen, mobil eine.
   ============================================= */
@media (min-width: 782px) {
  .reintop-check-list.rt-liste-2spaltig { columns: 2; column-gap: var(--space-inner); }
  /* Abstand unten statt oben: am Kopf der zweiten Spalte wird ein oberer Rand
     abgeschnitten, die Spalten stuenden sonst 8 px versetzt (gemessen 03.10.26). */
  .reintop-check-list.rt-liste-2spaltig li { break-inside: avoid; margin: 0 0 8px; }
}

/* =============================================
   ABLAUF .rt-ablauf — 03.10.26 (NewPr D-75, D-101)
   Sechs Schritte. Desktop: Raster aus dem Gutenberg-Grid (6 Spalten, Abstand
   block), Linie vom Kreis bis zum naechsten Kreis. Mobil: senkrecht, Kreis
   links, Linie bis zum naechsten Kreis, Text rechts.
   Markup: Gruppe .rt-ablauf (layout grid), darin je Schritt eine Gruppe
   .rt-ablauf__schritt mit p.rt-ablauf__nr, H3 und Absatz.
   ============================================= */
.rt-ablauf__schritt { position: relative; }
.rt-ablauf__schritt > * { margin: 0 !important; }
.wp-block-group p.rt-ablauf__nr {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-blue-light);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-black);
  font-size: 0.9375rem !important;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.rt-ablauf__schritt:not(:last-child)::after {
  content: '';
  position: absolute;
  background: var(--color-hairline);
}
@media (min-width: 782px) {
  .rt-ablauf__schritt > * + * { margin-top: var(--space-pair) !important; }
  .rt-ablauf__schritt:not(:last-child)::after {
    top: 23px;
    left: 48px;
    height: 2px;
    width: calc(100% - 48px + var(--wp--preset--spacing--block));
  }
}
/* Sechs in einer Reihe nur, wenn jede Spalte mindestens 200 breit ist wie im
   Entwurf: Kiste 1520 = Fenster ab 1760. Darunter zwei Reihen zu drei, sonst
   laeuft »Gefaehrdungsbeurteilung« bei 1536 (Spalte 160) aus der Spalte
   (gemessen 03.10.26). Die Linie endet am dritten Schritt der Reihe. */
@media (min-width: 782px) and (max-width: 1759px) {
  .wp-block-group.rt-ablauf { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .rt-ablauf__schritt:nth-child(3n)::after { display: none; }
}
@media (max-width: 781px) {
  .wp-block-group.rt-ablauf { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
  .rt-ablauf__schritt {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: var(--space-pair);
    padding-bottom: 24px;
  }
  .rt-ablauf__schritt:last-child { padding-bottom: 0; }
  .rt-ablauf__schritt > .rt-ablauf__nr { grid-row: 1 / span 2; }
  .rt-ablauf__schritt > h3 { grid-column: 2; padding-top: 11px !important; }
  .rt-ablauf__schritt > p:not(.rt-ablauf__nr) { grid-column: 2; margin-top: 8px !important; }
  .rt-ablauf__schritt:not(:last-child)::after { left: 23px; top: 48px; bottom: 0; width: 2px; }
}

/* =============================================
   UNTERNEHMEN – BREITE UND MASS (Seite 50) — 19.09.26
   Kopf, Fuss und Inhalt rechnen seit heute dieselbe Kiste: Seitenfeld
   --page-margin, Deckel --content-max. Das Logo steht damit auf jeder
   Bildschirmbreite ueber der linken Textkante. Vorher waren es zwei
   Kisten (Kopf 50/1520, Inhalt 120/1200) und der Versatz lag zwischen
   52 und 161 px.

   Was hier steht, sind die Folgen der breiteren Kiste, nicht die Kiste
   selbst: die Zahlen dafuer liegen in theme.json.
   ============================================= */

/* Zeilenlaenge, seit 24.09.26 auf allen Seiten (vorher nur .page-id-50).
   Absaetze in einer Spalte (Reihe 50/50, Text neben Bild oder Liste) halten
   --text-measure; Ueberschriften laufen ueber die ganze Spalte. Gemessen vor
   der Aenderung: Altseiten bei 1920 bis 95 Zeichen je Zeile in Spalten 728.
   Freistehende Vorspann-Absaetze unter H2 und der Text der offenen
   Registerkarte in S4 laufen ueber die ganze Kiste (bis 1520), ohne Regel:
   die fruehere Begrenzung auf 1200 ist am 24.09.26 entfallen. */
.wp-block-columns > .wp-block-column > p,
.rt-switch--liste .rt-switch__body { max-width: var(--text-measure); }

/* =============================================
   BILD MIT UNTERLAGE R27 — 03.10.26 (NewPr D-92 bis D-97)
   Bild 4 : 3 vor einer Unterlage in der Form »Icon Element« (seit 16.11.26, D-189;
   bis dahin quadratisch). Der Block fuellt die Spalte: Bild 680 x 510 + Streifen 48
   bei Spalte 728, Block 728 x 558, auf jeder Breite im selben Verhaeltnis
   (seit 17.11.26, D-190; bis dahin Bild 688 + Streifen 40).
   Die Unterlage bleibt ein Quadrat in Spaltenbreite (Figur und Lage wie bisher),
   rechts oben angeschlagen, links unten; der Block schneidet den Rest ab.
   Die Unterlage ist ein Inline-SVG im wp:html-Block: Figur als clipPath,
   darin Navy und fuenf treibende Icon Elements. Rechts schaut sie oben
   rechts hervor (Figur 638), links unten links (Figur 319, halb so gross,
   wie das kleine Quadrat im Logo; D-190, bis 16.11.26 800 / 400).
   overflow: clip schneidet die Figur am Blockrand ab.
   Seit 16.11.26 steht die Unterlage still (kein Herausfahren beim Scrollen). Treiben laeuft nur mit
   .is-run (Reintop_r27_script, pausiert ausserhalb des Bildschirms).
   Code und Geometrie: components.md → »Bild mit Unterlage R27«.
   ============================================= */
.rt-r27 { position: relative; overflow: clip; width: 100%; aspect-ratio: 728 / 558; }
.rt-r27 > * { margin: 0 !important; }
.rt-r27__u { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; }
.rt-r27--links .rt-r27__u { top: auto; bottom: 0; }
.rt-r27__u svg { display: block; width: 100%; height: 100%; }
.rt-r27__bild { position: absolute !important; width: 93.407%; aspect-ratio: 4 / 3; }
.rt-r27--rechts .rt-r27__bild { left: 0; bottom: 0; }
.rt-r27--links .rt-r27__bild { right: 0; top: 0; }
.rt-r27__bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-r27__d { transform-box: fill-box; transform-origin: center; }
.rt-r27.is-run .rt-r27__d--a { animation: rt-r27-a 10s ease-in-out infinite; }
.rt-r27.is-run .rt-r27__d--b { animation: rt-r27-b 15s ease-in-out infinite; }
@keyframes rt-r27-a { 50% { transform: translate(var(--ax), var(--ay)) rotate(10deg); } }
@keyframes rt-r27-b { 50% { transform: translate(calc(-1 * var(--ax)), calc(-1.5 * var(--ay))) rotate(-10deg); } }
/* Herausfahren beim Scrollen (animation-timeline: view(), D-94) am 16.11.26 entfernt (Nutzer): die Unterlage steht still,
   nur die Icon Elements treiben. Alter Code: Theme-Commit vor 16.11.26, components.md → »Bild mit Unterlage R27«. */
@media (prefers-reduced-motion: reduce) {
  .rt-r27__d { animation: none !important; }
}

/* =============================================
   ZEILEN LEISTUNGEN .rt-zeilen — 22.10.26 (Branchenseiten S3)
   Je Leistung eine Zeile (wp:columns .rt-zeile): links H3, rechts Text
   (Mass 640 aus der Spaltenregel) und Link »Zur …« wie im FAQ.
   Haarlinie oben an jeder Zeile, unter der letzten auch unten; Naht in
   der Mitte der Kiste (R13). Polster inner: 32 Desktop, 24 mobil.
   Mobil (< 782) stehen H3, Text und Link untereinander, Abstand 16
   (blockGap pair im Markup). Code: components.md → »Zeilen Leistungen«.
   ============================================= */
.rt-zeilen > .rt-zeile {
  margin: 0 !important;
  padding-block: var(--space-inner);
  border-top: 1px solid var(--color-hairline);
}
.rt-zeilen > .rt-zeile:last-child { border-bottom: 1px solid var(--color-hairline); }

/* =============================================
   STELLEN — Seite Jobs: Kopf, Filter, Karten, Seiten (NewPr D-178, tz-jobs.md, 11.11.26)
   Entwurf: Holst «VORSCHAU · Jobs – 1920px, Variante B» und «… 390px», «… Filter offen».
   Markup: [rt_stellen] in inc/stellen.php; Muster jobs-kopf, jobs-liste, jobs-initiativ.
   Ab 1024: Filter 1 von 4 Spalten (332 bei 1920), Liste 3 von 4 (1124), Gutter 64 (R13);
   Karten zu zweit ab 1280. Unter 1024: Knopf «Filter», Filter als Vollbild-Ebene
   (wie das Menue-Overlay). Ohne JS steht der Filter offen ueber der Liste.
   ============================================= */
.rt-jobs-kopf { padding-top: var(--space-section); }
/* nur unten nullen: oben setzt blockGap der Gruppe den Abstand H1 -> Absatz (inner), Praezedenz Formularseiten 11.11.26 */
.rt-jobs-kopf h1 { margin-bottom: 0; }
.rt-jobs-kopf p { margin-bottom: 0; max-width: var(--text-measure); }

.rt-stellen { display: flex; flex-direction: column; gap: var(--space-inner); }
@media (min-width: 1024px) {
  .rt-stellen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .rt-stellen__liste { grid-column: 2 / 5; }
}
.rt-stellen p { margin: 0; }

/* Filter: Gruppen mit Navy-Kopf (Wunsch 11.11.26), Haekchen darunter */
.rt-filter__gruppen { display: flex; flex-direction: column; gap: var(--space-inner); }
.rt-filter__gruppenkopf {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--color-blue-dark); color: var(--color-white);
  padding: 12px 16px; margin-bottom: 8px; cursor: pointer; list-style: none;
  font-size: 1rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.13em; text-transform: uppercase;
}
.rt-filter__gruppenkopf::-webkit-details-marker { display: none; }
.rt-filter__gruppenkopf svg { transition: transform var(--motion-fast) var(--ease-out); }
.rt-filter__gruppe:not([open]) .rt-filter__gruppenkopf svg { transform: rotate(180deg); }
.rt-filter__gruppenkopf:focus-visible { outline: 2px solid var(--color-blue-light); outline-offset: 2px; }
.rt-filter__option { display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; }
.rt-filter__option input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: 0 0 20px; width: 20px; height: 20px;
  border: 1px solid var(--color-muted); background: var(--color-white); cursor: pointer;
}
.rt-filter__option input:checked {
  background: var(--color-blue-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' stroke='%23fff' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  border-color: var(--color-blue-dark);
}
.rt-filter__option input:focus-visible { outline: 2px solid var(--color-blue-dark); outline-offset: 2px; }
.rt-filter__name { flex: 1; font-size: var(--fs-body); line-height: 1.4; color: var(--color-black); }
.rt-filter__option input:checked ~ .rt-filter__name { font-weight: 600; }
/* Baum der Einsatzorte (NewPr D-184, 15.11.26): Kinder um Haekchen + Abstand eingerueckt (20 + 12), Haekchen unter dem Namen des Elternteils;
   Elternteil mit Strich, wenn nur ein Teil der Kinder gewaehlt ist (Klasse vom Server und vom Skript); 8 zwischen zwei Eltern-Bloecken */
.rt-filter__option--kind { padding-left: 32px; }
.rt-filter__option--kind + .rt-filter__option:not(.rt-filter__option--kind) { margin-top: 8px; }
.rt-filter__option--teil input:not(:checked) {
  background: var(--color-blue-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6h7' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  border-color: var(--color-blue-dark);
}
.rt-filter__option--teil .rt-filter__name { font-weight: 600; }
.rt-filter__zahl { font-size: 1rem; line-height: 1.4; color: var(--color-body); }
.rt-filter__leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-pair); margin-top: var(--space-inner); }
.rt-filter__zurueck, .rt-stellen__initiativ a, .rt-stellen__leer a {
  color: var(--color-black); text-decoration: underline; text-decoration-color: var(--color-blue-light);
  text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color var(--motion-fast) var(--ease-out);
}
.rt-filter__zurueck:hover, .rt-stellen__initiativ a:hover, .rt-stellen__leer a:hover,
.rt-filter__zurueck:focus-visible, .rt-stellen__initiativ a:focus-visible { text-decoration-color: var(--color-black); }
.rt-filter__kopf { display: none; }
.rt-filter__zurueck .rt-nur-mobil { display: none; }
.rt-stellen__filterknopf { display: none; }
.rt-stellen--js .rt-filter__anwenden { display: none; } /* Desktop mit JS: Haekchen wirkt sofort */
/* Liste wird ohne Neuladen getauscht (25.11.26); antwortet der Server laenger als 150 ms, wird sie blasser */
.rt-stellen__liste { transition: opacity .2s; }
.rt-stellen--laedt .rt-stellen__liste { opacity: .5; }

.rt-stellen__initiativ { margin-top: var(--space-inner); padding-top: 24px; border-top: 1px solid var(--color-hairline); }
.wp-block-group p.rt-stellen__initiativ-frage { font-weight: 700; color: var(--color-black); }

/* Liste */
.wp-block-group p.rt-stellen__treffer { font-size: clamp(1.25rem, 2vw, 1.375rem) !important; font-weight: 700; line-height: 1.2; color: var(--color-black); padding-bottom: var(--space-pair); border-bottom: 1px solid var(--color-hairline); }
.rt-karten.rt-stellen__karten { margin-top: var(--space-block); }
@media (max-width: 1279px) {
  .rt-karten.rt-stellen__karten { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: var(--space-inner); }
}
a.rt-stelle { display: flex; flex-direction: column; gap: 24px; color: inherit; text-decoration: none; }
.wp-block-group p.rt-stelle__kategorie { font-size: 1rem !important; line-height: 1.4; color: var(--color-body); }
.wp-block-group .rt-stelle__titel { margin: 8px 0 0; color: var(--color-black); }
.rt-stelle__zeile { display: flex; gap: 24px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--color-hairline); }
.rt-stelle__zeile:last-child { border-bottom: 1px solid var(--color-hairline); }
.wp-block-group p.rt-stelle__label { flex: 0 0 120px; font-size: 1rem !important; font-weight: 600; color: var(--color-black); }
.wp-block-group p.rt-stelle__wert { flex: 1; min-width: 0; color: var(--color-body); }
a.rt-stelle .rt-karte__knopf { margin-top: auto; }
.wp-block-group p.rt-stellen__leer { margin-top: var(--space-block); color: var(--color-body); }

/* Seiten: «Seite 1 von 2», Zahlen 44 x 44, aktuelle mit Akzentlinie wie das Menue */
.rt-stellen__seiten { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-pair); margin-top: var(--space-block); padding-top: 24px; border-top: 1px solid var(--color-hairline); }
.wp-block-group p.rt-stellen__seitenzahl { font-size: 1rem !important; color: var(--color-body); }
.rt-stellen__seiten ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rt-seiten__zahl, .rt-seiten__luecke { position: relative; display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; box-sizing: border-box; color: var(--color-body); text-decoration: none; }
a.rt-seiten__zahl:hover { color: var(--color-black); }
.rt-seiten__zahl[aria-current] { color: var(--color-black); font-weight: 700; }
.rt-seiten__zahl[aria-current]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 3px; background: var(--color-blue-light); }
.rt-seiten__schritt { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 0 0 16px; color: var(--color-blue-dark); font-weight: 600; text-decoration: none; }
.rt-seiten__schritt:hover { text-decoration: underline; text-decoration-color: var(--color-blue-light); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Unter 1024: Knopf «Filter», Ebene ueber der Seite */
@media (max-width: 1023px) {
  .rt-stellen__seite { display: flex; flex-direction: column; gap: 24px; }
  .rt-stellen--js .rt-stellen__filterknopf {
    display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 16px;
    border: 1px solid var(--color-blue-dark); background: var(--color-white); color: var(--color-blue-dark);
    font: 600 1rem/1.22 var(--font-primary); cursor: pointer;
  }
  .rt-stellen__aktiv { font-weight: 400; color: var(--color-body); }
  .rt-stellen--js .rt-filter { display: none; }
  .rt-stellen--js .rt-filter.rt-filter--offen {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 100000;
    background: var(--color-white); overflow-y: auto;
  }
  .rt-filter--offen .rt-filter__kopf { display: flex; justify-content: space-between; align-items: center; flex: 0 0 84px; padding: 0 var(--page-margin); border-bottom: 1px solid var(--color-hairline); }
  .wp-block-group p.rt-filter__titel { font-size: 1.25rem !important; font-weight: 700; color: var(--color-black); }
  .rt-filter__zu { width: 44px; height: 44px; margin-right: -10px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--color-blue-dark); cursor: pointer; }
  .rt-filter--offen .rt-filter__gruppen { padding: 24px var(--page-margin) 32px; }
  .rt-filter--offen .rt-filter__leiste {
    position: sticky; bottom: 0; margin-top: auto; padding: 16px var(--page-margin) 24px;
    background: var(--color-white); border-top: 1px solid var(--color-hairline); box-shadow: 0 -4px 6px -2px rgba(0,0,0,.08);
  }
  .rt-filter--offen .rt-filter__leiste { flex-wrap: nowrap; }
  /* Kit-Knopf Primary; !important, weil der Knopfstil der Theme (.wp-element-button) sonst Outline setzt (gemessen 11.11.26) */
  .rt-stellen--js .rt-filter--offen .rt-filter__anwenden {
    display: block; flex-shrink: 0; padding: 16px 24px !important; border: 1px solid var(--color-blue-light) !important;
    background: var(--color-blue-light) !important; color: var(--color-black) !important; font-weight: 600; cursor: pointer;
  }
  .rt-filter--offen .rt-filter__zurueck .rt-nur-desktop { display: none; }
  .rt-filter--offen .rt-filter__zurueck .rt-nur-mobil { display: inline; }
  .rt-stellen__initiativ { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
  .wp-block-group p.rt-stellen__initiativ-frage { font-weight: 400; color: var(--color-body); }
  .rt-stellen__initiativ p { font-size: 1rem !important; }
  .rt-karten.rt-stellen__karten { margin-top: var(--space-inner); }
  html.rt-filter-offen { overflow: hidden; }
}
@media (max-width: 781px) {
  .wp-block-group p.rt-stelle__label { flex-basis: 96px; } /* D-83, Karte 342 mit Polster 24 */
}

/* =============================================
   STELLENSEITE UND BEWERBUNG (NewPr tz-jobs.md, Entwurf AKTUELL · Stelle / Bewerbung, 12.11.26)
   Stellenseite: templates/single-stelle.html, Karte [rt_stelle_fakten] (inc/bewerbung.php).
   Raster 4 Spalten wie Jobs (R13). Seit 16.11.26 (Nutzer): Text ueber die ganze Breite der Kiste, kein klebender Knopf rechts;
   Schlusszeile: Absatz 3 Spalten, Knopf in Spalte 4 (332 bei 1920) daneben.
   Bewerbung: Muster bewerbung.php, eine Spalte 1124 an der Logo-Linie, Formular darunter (CF7 467 / 468).
   ============================================= */
.rt-stelle-seite { padding-top: var(--space-section); } /* unten kein Polster: der Abstand zum Fuss kommt vom Fuss selbst, wie auf Kontakt (gemessen 12.11.26) */
.rt-stelle-seite > * + * { margin-top: var(--space-section) !important; }
.rt-stelle-seite h1 { max-width: 1124px; }

/* Link zurueck: Steuerelement, Pfeil erlaubt (R12) */
.wp-block-group p.rt-zurueck, p.rt-zurueck { margin: 0; font-size: 1rem !important; line-height: 1.22; }
.rt-zurueck a { display: inline-flex; align-items: center; gap: 8px; color: var(--color-blue-dark); font-weight: 600; text-decoration: none; }
.rt-zurueck a:hover, .rt-zurueck a:focus-visible { text-decoration: underline; text-decoration-color: var(--color-blue-light); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rt-zurueck svg { flex-shrink: 0; }

.rt-stelle-seite__raster > * { margin: 0 !important; } /* flow-Layout setzt sonst 1.2rem ueber die Karte */
.rt-stelle-seite__raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-block); align-items: start; }
.rt-stelle-seite__text { grid-column: 1 / -1; } /* bis 16.11.26: 3 Spalten, Mass 640 */

/* Text aus dem Editor: H2 im Kegel H3 (R17), Listen wie .reintop-check-list */
.rt-stelle-seite__text .wp-block-post-content > * { margin: 0; }
.rt-stelle-seite__text .wp-block-post-content > h2 + * { margin-top: 24px; }
.rt-stelle-seite__text .wp-block-post-content > * + h2 { margin-top: var(--space-block); }
.rt-stelle-seite__text h2.wp-block-heading { font-size: clamp(1.25rem, 2vw, 1.375rem) !important; line-height: 1.2; }
.rt-stelle-seite__text ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rt-stelle-seite__text ul li { position: relative; padding-left: 2rem; font-size: var(--fs-body); line-height: 1.65; color: var(--color-body); }
.rt-stelle-seite__text ul li::before {
  content: ''; position: absolute; left: 0; top: 0.25em; width: 1.1em; height: 1.1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%2348B7F0'%3E%3Cpath d='M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rt-stelle-seite__text p { margin: 0; color: var(--color-body); }
/* Einleitung (14.11.26, D-183): gemeinsamer Absatz aus der Vorlage, darunter der eigene Absatz der Stelle im Mass pair;
   beginnt die Stelle gleich mit H2, gilt der Abstand block wie zwischen den Abschnitten */
.rt-stelle-seite__text > .rt-stelle-seite__einleitung + .wp-block-post-content { margin-top: var(--space-pair) !important; }
.rt-stelle-seite__text > .rt-stelle-seite__einleitung + .wp-block-post-content > h2:first-child { margin-top: calc(var(--space-block) - var(--space-pair)); }
/* Schluss (16.11.26): gemeinsamer Absatz aus der Vorlage nach der letzten Liste, Abstand wie zwischen den Abschnitten;
   daneben der Knopf in Spalte 4, mittig zum Absatz (Raster wie .rt-stelle-seite__raster) */
.rt-stelle-seite__text > .rt-stelle-seite__schluss-zeile {
  margin-top: var(--space-block) !important;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-block); align-items: center;
}
.rt-stelle-seite__schluss-zeile > * { margin: 0 !important; }
.rt-stelle-seite__schluss-zeile > .rt-stelle-seite__schluss { grid-column: 1 / span 3; }
.rt-stelle-seite__schluss-zeile > .rt-stelle-seite__knopf-unten { grid-column: 4; }

/* Knopf Primary (Akzent); !important gegen den Outline-Stil von .wp-element-button */
a.rt-stelle__bewerben {
  display: block; text-align: center; padding: 16px 32px !important;
  background: var(--color-blue-light) !important; border: 2px solid var(--color-blue-light) !important; border-radius: 0 !important;
  color: var(--color-black) !important; font-weight: 600; line-height: 1.5; text-decoration: none;
  transition: background-color var(--motion-fast) var(--ease-out);
}
a.rt-stelle__bewerben:hover, a.rt-stelle__bewerben:focus-visible { background: transparent !important; }

@media (max-width: 1023px) {
  .rt-stelle-seite__raster { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-block); }
  .rt-stelle-seite__text { grid-column: 1; }
  .rt-stelle-seite__text > .rt-stelle-seite__schluss-zeile { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-block); }
  .rt-stelle-seite__schluss-zeile > .rt-stelle-seite__schluss, .rt-stelle-seite__schluss-zeile > .rt-stelle-seite__knopf-unten { grid-column: 1; }
  .rt-stelle-seite__knopf-unten { display: flex; justify-content: flex-end; } /* D-40: 200 am rechten Rand */
  .rt-stelle-seite__knopf-unten a.rt-stelle__bewerben { width: 200px; padding: 16px 0 !important; }
}

/* Seite Bewerbung: eine Spalte an der Logo-Linie; Text ueber die ganze Breite der Kiste (16.11.26, Nutzer; bis dahin
   Spalte 3 von 4 und Einleitung im Mass 640), die Formularkarte bleibt 3 von 4 Spalten (1124 bei 1920) */
.rt-bewerbung {
  max-width: var(--content-max);
  margin-left: max(0px, calc((100% - var(--content-max)) / 2)) !important;
  display: flex; flex-direction: column; gap: var(--space-inner);
}
.rt-bewerbung > * { margin: 0 !important; }
.rt-bewerbung__titel > * { margin: 0 !important; }
.rt-bewerbung__titel > * + * { margin-top: var(--space-pair) !important; }
.rt-bewerbung p.rt-tagline { font-weight: 600; color: var(--color-black); }
.rt-bewerbung .rt-masz { max-width: none; color: var(--color-body); }
.rt-bewerbung > .rt-formular-karte { margin-top: var(--space-inner) !important; box-sizing: border-box; max-width: calc((min(100%, var(--content-max)) - 3 * var(--space-block)) * 0.75 + 2 * var(--space-block)); }
@media (max-width: 1023px) { .rt-bewerbung, .rt-bewerbung > .rt-formular-karte { max-width: none; } }
.rt-bewerbung--stelle .rt-nur-initiativ { display: none !important; } /* „Was möchten Sie machen?“ nur bei Initiativbewerbung */

/* Formularteile der Bewerbung: Gruppen, Zeilen 3:1 und 1:2, Auswahl, Datei, Haekchen (Datum ist ein Textfeld TT.MM.JJJJ) */
.rt-form--bewerbung { gap: 24px; }
.rt-form__zeile--3-1 { grid-template-columns: 3fr 1fr; }
.rt-form__zeile--1-2 { grid-template-columns: 1fr 2fr; }

fieldset.rt-wahl { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.rt-wahl legend { padding: 0; margin-bottom: 12px; font-size: 1rem; font-weight: 600; line-height: 1.22; color: var(--color-black); }
.rt-wahl .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.rt-wahl .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--fs-body); font-weight: 400; color: var(--color-body); }
.rt-wahl input[type="radio"] {
  -webkit-appearance: none; appearance: none; margin: 0; width: 20px; height: 20px; flex-shrink: 0;
  border: 1px solid var(--color-muted); border-radius: 50%; background: var(--color-white); cursor: pointer;
}
.rt-wahl input[type="radio"]:checked { border: 6px solid var(--color-blue-dark); }
.rt-wahl input[type="radio"]:focus-visible { outline: 2px solid var(--color-blue-dark); outline-offset: 2px; }

.rt-haken .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 1rem; line-height: 1.6; color: var(--color-body); }
.rt-haken input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; margin: 3px 0 0; width: 20px; height: 20px; flex-shrink: 0;
  border: 1px solid var(--color-muted); background: var(--color-white); cursor: pointer;
}
.rt-haken input[type="checkbox"]:checked {
  border-color: var(--color-blue-dark);
  background: var(--color-blue-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.rt-haken input[type="checkbox"]:focus-visible { outline: 2px solid var(--color-blue-dark); outline-offset: 2px; }
.rt-haken a { color: var(--color-black); text-decoration: underline; text-decoration-color: var(--color-blue-light); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.wpcf7 input[type="file"] {
  display: block; width: 100%; box-sizing: border-box; min-height: 56px; padding: 14px 16px;
  font-family: var(--font-primary); font-size: 1rem; color: var(--color-body);
  border: 1px dashed var(--color-muted); background: var(--color-white); cursor: pointer;
}
.wpcf7 input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--font-primary); font-size: 1rem; font-weight: 600; color: var(--color-blue-dark);
}
.wpcf7 input[type="file"].wpcf7-not-valid { border-style: dashed !important; }
.wpcf7 p.rt-feld__hinweis { margin: 0; font-size: 15px !important; line-height: 1.4; color: var(--color-muted); }
.rt-wahl .wpcf7-not-valid-tip, .rt-haken .wpcf7-not-valid-tip { margin-top: 8px; }
/* Fehler an Radio und Haekchen: kein roter Rahmen um die ganze Gruppe, rot werden die Kaestchen selbst */
.rt-wahl .wpcf7-not-valid, .rt-haken .wpcf7-not-valid { border: 0 !important; box-shadow: none !important; }
.rt-wahl .wpcf7-not-valid input[type="radio"], .rt-haken .wpcf7-not-valid input[type="checkbox"] { border: 2px solid #C0392B; }

/* Filter Jobs: Begriff ohne Treffer bei der aktuellen Auswahl (Zahl 0) leiser, waehlbar bleibt er (12.11.26) */
.rt-filter__option--leer .rt-filter__name, .rt-filter__option--leer .rt-filter__zahl { color: var(--color-muted); }

/* =============================================
   HERO-BAND JOBS UND STELLE (NewPr D-181, tz-jobs.md, Entwurf AKTUELL · Jobs / Stelle – Hero-Band B1, 14.11.26)
   Band ueber die volle Breite, niedriger als der Seiten-Hero (Ausnahme R26), Grund Akzent 12 % (#E9F6FD).
   Rechts das Logo-Zeichen [rt_zeichen_band] (inc/zeichen-band.php, SVG 960 breit, setzt sich beim Laden einmal zusammen),
   Aussenkante des rechten Schenkels auf der rechten Rasterlinie ab 1280; darunter Band gestapelt.
   Jobs: Muster jobs-kopf, 440 hoch, Text mittig an der Logo-Linie.
   Stelle: templates/single-stelle.html, 520 hoch, «Alle Stellen» oben, Glasplatte 3 von 4 Spalten (1124 bei 1920)
   mit H1, Angaben [rt_stelle_fakten_band] und «Jetzt bewerben». Unter 1280: Bild unter dem Text (Jobs)
   bzw. Bild oben und weisse Karte R29 darueber (Stelle).
   ============================================= */
.rt-band { --rt-band-hauch: #E9F6FD; position: relative; overflow: hidden; background: var(--rt-band-hauch); box-sizing: border-box; display: flex; flex-direction: column; }
.rt-band > * { position: relative; z-index: 1; }
/* Aussenkante des rechten Schenkels auf der rechten Rasterlinie (Ende der Kiste 1520), bei jeder Breite ab 1280 (Nutzer 14.11.26).
   SVG 960 breit: 920 Zeichen + 40 Platz fuer den Schatten rechts, deshalb right minus 40. */
.rt-band > .rt-band__bild { position: absolute; z-index: 0; top: 0; right: calc(max(var(--page-margin), (100% - var(--content-max)) / 2) - 40px); width: 960px; max-width: none !important; height: 100%; margin: 0 !important; }
.rt-band__svg { display: block; width: 100%; height: 100%; }
/* Ebenen des Zeichens (Winkel, Schatten, Figuren) uebereinander; die erste gibt im Stapel die Hoehe vor.
   Bewegung: CSS-Animation transform/opacity je Ebene, Keyframes im <style> der Datei (band_web.py) */
.rt-band__bild .rt-band__lage { position: absolute; inset: 0; }
.rt-band__bild .rt-band__lage:first-of-type { position: relative; }

.rt-jobs-kopf.rt-band { padding-top: 0; height: 440px; justify-content: center; }
.rt-jobs-kopf.rt-band > .wp-block-group { margin-top: 0 !important; width: 100%; }

.rt-stelle-seite.rt-stelle-seite--band { padding-top: 0; }
.rt-band--stelle { height: 520px; padding-top: 48px; padding-bottom: 40px; }
.rt-band--stelle > * { margin-top: 0 !important; width: 100%; }
.rt-band__glas {
  margin-top: auto !important;
  max-width: calc((min(100%, var(--content-max)) - 3 * var(--space-block)) * 0.75 + 2 * var(--space-block)) !important;
  margin-left: max(0px, calc((100% - var(--content-max)) / 2)) !important;
  box-sizing: border-box; padding: 32px;
  background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 16px 48px rgba(3, 21, 61, .14);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; row-gap: var(--space-inner); align-items: end;
}
.rt-band__glas > * { margin: 0 !important; }
.rt-band__glas h1 { grid-column: 1 / -1; max-width: none; }
.rt-band__fakten { display: contents; }
.rt-band__liste { display: flex; flex-wrap: wrap; column-gap: 32px; row-gap: 16px; margin: 0; }
.rt-band__fakt dt { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--color-muted); }
.rt-band__fakt dd { margin: 2px 0 0; font-size: var(--fs-body); line-height: 1.4; color: var(--color-black); white-space: nowrap; }
.rt-band__glas a.rt-stelle__bewerben { width: 200px; padding: 16px 0 !important; box-sizing: border-box; }

/* unter 1280 Band gestapelt: Text, darunter das Zeichen (sonst laeuft es in den Absatz) */
@media (max-width: 1279px) {
  /* Feld des Zeichens C = min(680, Kiste + linker Rand): links bis an den Bildschirmrand (mobil), rechts die Schenkel-Kante auf der Rasterlinie;
     das SVG ist um den Schattenrand (40 von 920) breiter und ragt rechts in den Seitenrand */
  .rt-band > .rt-band__bild {
    --c: min(680px, 100% + var(--page-margin));
    position: relative; right: auto; order: 2; height: auto; /* relative: Bezug fuer die Ebenen des Zeichens */
    width: calc(var(--c) * 960 / 920);
    margin-left: calc(100% - var(--c)) !important; margin-right: calc(var(--c) * -40 / 920) !important;
  }
  .rt-band__svg { height: auto; }
  .rt-jobs-kopf.rt-band { height: auto; padding-top: 40px; gap: var(--space-inner); }

  .rt-band--stelle { height: auto; padding-top: 0; padding-bottom: 0; background: none; overflow: visible; }
  .rt-band--stelle > .rt-band__bild { order: 0; background: var(--rt-band-hauch); box-shadow: var(--page-margin) 0 0 var(--rt-band-hauch); } /* Grund bis an den rechten Bildschirmrand */
  .rt-band--stelle > p.rt-zurueck { position: absolute; top: 24px; order: 1; }
  .rt-band__glas {
    order: 3; margin-top: -64px !important; max-width: none !important; margin-left: 0 !important;
    background: var(--color-white); -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: var(--shadow-karte);
    padding: 24px; grid-template-columns: minmax(0, 1fr);
  }
  .rt-band__liste { flex-direction: column; row-gap: 0; }
  .rt-band__fakt { padding: 10px 0; border-bottom: 1px solid var(--color-hairline); }
  .rt-band__fakt dd { white-space: normal; }
  .rt-band__glas a.rt-stelle__bewerben { justify-self: end; }
}
