/* RIFFBIRD CI-Fundament (Auftrag 95). Fassung B „CI weitergedacht", Knopf 1 „Pfeilfach". Entscheidung Bernd 26.11.2026.
   Einbinden statt nachbauen: <link rel="stylesheet" href="<wurzel>assets/ci/ci.css">. Anleitung: UMSTELLEN.md.
   Quelle der Werte: CI-Handbuch „Guidelines Corporate Design" Q4/2025 und die Messung an riffbird.com (site/ci-probe/BEFUND.md).
   Alle Variablen beginnen mit --rb-, alle Klassen mit rb-, damit sie neben den Regeln der Seiten leben können.
   Diese Datei setzt keine Regel auf nackte Elemente (kein body, kein h1): Sie wirkt nur, wo eine rb-Klasse steht. */

@font-face { font-family: "Roboto"; src: url("fonts/roboto-var-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 75% 100%; font-display: swap; }

:root {
  /* ---------- Farben laut Handbuch ---------- */
  --rb-petrol: #002A38;        /* Surface dunkel. Der Grundton der Seite */
  --rb-schwarz: #000D11;       /* Schwarzer Akzent (Bernd, 26.11.2026: „ab und zu … wenn man besonders viel Kontrast will, aber ganz gediegen"). Der tiefste Ton von riffbird.com.
                                  Nur in drei Rollen: tiefster Abschnitt (rb-tief, höchstens einer je Seite), Fuß (rb-fuss rb-tief), Rahmen eines Films (rb-filmrahmen). Nie reines #000 */
  --rb-gruen: #86BC25;         /* Primary. Einziges Grün */
  --rb-weiss: #FFFFFF;         /* Headlines dunkel, Container hell */
  --rb-eis: #D1F0FA;           /* Text dunkel (12,65:1 auf Petrol) */
  --rb-nebel: #EDF3F5;         /* Surface hell */
  --rb-ci-text-hell: #608B9A;  /* Text hell laut Handbuch. Nur noch für Linien und Feldrahmen, siehe --rb-hell-text */
  --rb-logo-oben: #003D50;     /* Verlauf der Wortmarke auf Hell, aus dem Handbuch gemessen */
  --rb-logo-unten: #00617E;

  /* ---------- Abstufungen aus Petrol: Tiefe durch hellere Stufen, nie durch Schwarz ---------- */
  --rb-petrol-2: #063342;      /* Karte auf Dunkel */
  --rb-petrol-3: #0B3A4A;      /* Karte nach Handbuch (Container 00617E17, gezeichnet 7ADFFF bei 9 %), für Karte in Karte und Zeiger-Zustand */
  --rb-petrol-4: #00546C;      /* Lichtkante, Verlaufsmitte */
  --rb-linie-dunkel: #1C4A5A;  /* Haarlinie auf Dunkel */
  --rb-linie-hell: #D3DEE2;    /* Haarlinie auf Hell */

  /* ---------- Text, auf Kontrast gerechnet (KONTRAST.md) ---------- */
  --rb-dunkel-leise: #8FB8C6;  /* Zweittext auf Dunkel, mind. 5,7:1 auf allen Petrol-Stufen */
  --rb-hell-text: #3F6473;     /* BEWUSSTE ABWEICHUNG 2: Fließtext auf Hell. Handbuch sagt 608B9A, das erreicht nur 3,31:1. Hier 5,71:1 */
  --rb-hell-leise: #4E7380;    /* Zweittext auf Hell, 4,58:1 */
  --rb-knopf-schrift: #002A38; /* BEWUSSTE ABWEICHUNG 3: Petrol auf Grün (6,65:1). riffbird.com setzt Weiß auf Grün (2,27:1) */
  --rb-feld-rand: #608B9A;     /* Rahmen von Eingabefeldern, mind. 3:1 gegen Karte und Feld */
  --rb-fehler: #B42318;        /* Fehlertext auf Hell (6,5:1 auf Weiß) */
  --rb-fehler-dunkel: #FFB4A8; /* Fehlertext auf Dunkel (8,9:1 auf Petrol) */

  /* ---------- Schrift: eine Familie, normale Breite ---------- */
  --rb-schrift: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rb-w-text: 400;            /* BEWUSSTE ABWEICHUNG 1: Text in 400. Handbuch sagt 300, riffbird.com setzt selbst 400, 300 ist auf Hell zu dünn */
  --rb-w-mittel: 500;          /* h3 bis h6, Hervorhebung im Text, Knopf zweiter Weg (Handbuch: Roboto 500) */
  --rb-w-kopf: 700;            /* h1, h2, Hauptknopf (Handbuch: Roboto 700) */

  /* Größenleiter, acht Stufen. Keine Größe außerhalb der Leiter, Ausnahme --rb-t-zahl */
  /* MASSSTAB (Auftrag 97, Bernd 26.11.2026: „alles etwas groß … wäre etwas Abstand nicht gut, auch am Rand").
     Eine Zahl stellt die ganze Seite: --rb-massstab 1 = „ruhig" (Standard), 2 = „ruhiger". Umschalten nur am <html>
     (Klasse rb-massstab-2 oder style="--rb-massstab: 2"), weil alle Tokens dort gerechnet werden.
     Schreibweise jeder Größe: Wert der Stufe 1, minus Abstand zur Stufe 2 mal --rb-m, plus Zuwachs mal --rb-w.
     --rb-w ist der Weg über die Laptop-Breiten hinaus: 0px bis 1760 px Fensterbreite, 1px ab 2560 px. Bis 1760 px wächst nichts mit.
                                   Stufe 1:  390   1440   1920   2560        Stufe 2:  390   1440   1920   2560 */
  --rb-massstab: 1;
  --rb-m: calc(var(--rb-massstab) - 1);
  --rb-w: clamp(0px, calc((100vw - 1760px) / 800), 1px);
  --rb-t-1: calc(14px + 1 * var(--rb-w));                                                                  /* 14  14  14  15            14  14  14  15   Marke, Hinweis, Fuß. Nichts ist kleiner */
  --rb-t-2: calc(clamp(15px, calc(16.5px - 0.1vw), 16px) + 1 * var(--rb-w));                               /* 16  15  15  16            16  15  15  16   Menü, kleiner Knopf, Feldbeschriftung */
  --rb-t-3: calc(clamp(17px - 1px * var(--rb-m), calc(18.5px - 0.1vw - 1px * var(--rb-m)), 18px - 1px * var(--rb-m)) + 2 * var(--rb-w));   /* 18  17  17  19   17  16  16  18   Fließtext, Knopf. Nie unter 16 */
  --rb-t-4: clamp(19px - 1px * var(--rb-m), calc(1.43vw - 0.07vw * var(--rb-m)), calc(20px - 1px * var(--rb-m) + 2 * var(--rb-w)));        /* 19  20  20  22   18  19  19  21   Vorspann */
  --rb-t-5: clamp(22px - 1px * var(--rb-m), calc(1.72vw - 0.14vw * var(--rb-m)), calc(24px - 2px * var(--rb-m) + 4 * var(--rb-w)));        /* 22  24  25  28   21  22  23  26   Überschrift 3, Kartentitel */
  --rb-t-6: clamp(27px - 1px * var(--rb-m), calc(2.45vw - 0.15vw * var(--rb-m)), calc(34px - 2px * var(--rb-m) + 6 * var(--rb-w)));        /* 27  34  35  40   26  32  33  38   kleine Überschrift 2 */
  --rb-t-7: clamp(30px - 2px * var(--rb-m), calc(3.3vw - 0.3vw * var(--rb-m)), calc(46px - 4px * var(--rb-m) + (10 - 2 * var(--rb-m)) * var(--rb-w)));    /* 30  46  48  56   28  42  44  50   Überschrift 2 */
  --rb-t-8: clamp(34px - 2px * var(--rb-m), calc(4.3vw - 0.3vw * var(--rb-m)), calc(60px - 4px * var(--rb-m) + (16 - 4 * var(--rb-m)) * var(--rb-w)));    /* 34  60  63  76   32  56  58  68   Überschrift 1 */
  --rb-t-zahl: clamp(64px - 4px * var(--rb-m), calc(9vw - 1vw * var(--rb-m)), calc(128px - 16px * var(--rb-m) + (32 - 8 * var(--rb-m)) * var(--rb-w)));   /* 64 128 134 160   60 112 117 136   Benannte Ausnahme: eine große Zahl je Abschnitt. Nie für Text */
  --rb-t-zahl-klein: clamp(44px - 4px * var(--rb-m), calc(6vw - 0.6vw * var(--rb-m)), calc(84px - 8px * var(--rb-m) + (20 - 4 * var(--rb-m)) * var(--rb-w)));   /* 44 84 88 104   40 76 79 92   große Zahl in schmaler Spalte */
  --rb-zh-kopf: 1.08;                      /* Zeilenhöhe Stufen 7 und 8 */
  --rb-zh-mittel: 1.2;                     /* Stufen 5 und 6 */
  --rb-zh-text: 1.55;                      /* Stufen 1 bis 4 */
  --rb-zh-zahl: 0.95;
  --rb-lw-kopf: -0.012em;                  /* Laufweite Überschriften, wie riffbird.com */
  --rb-lw-zahl: -0.03em;
  --rb-lw-marke: 0.08em;                   /* Versalzeile */

  /* ---------- Abstände (4er-Raster), Maße ---------- */
  --rb-a-1: 4px; --rb-a-2: 8px; --rb-a-3: 12px; --rb-a-4: 16px; --rb-a-5: 24px; --rb-a-6: 32px; --rb-a-7: calc(48px - 8px * var(--rb-m)); --rb-a-8: calc(56px - 8px * var(--rb-m)); --rb-a-9: calc(80px - 8px * var(--rb-m));   /* 48, 56, 80 und 40, 48, 72 */
  /* Rand und Inhaltsbreite. Am Handy wie bisher (6,25 % je Seite). Ab rund 900 px wächst der Rand schneller als das Fenster:
     Stufe 1: 6,8 % bei 1280, 7,0 % bei 1440, dann hält die Inhaltsbreite 1240 px (9 % bei 1512, 14 % bei 1728).
     Stufe 2: 7,4 % bei 1280, 8,3 % bei 1440 (Inhalt 1200 px). Ab 1760 px geht der Inhalt wieder mit: 1400 bzw. 1296 px bei 1920, 1680 px bei 2200 bzw. 2560. */
  --rb-rand: clamp(20px, max(6.25vw, calc(8.4vw - 20px + (1.2vw - 8px) * var(--rb-m))), 160px);
  --rb-breite: clamp(1240px - 40px * var(--rb-m), calc(1240px - 40px * var(--rb-m) + (100vw - 1760px) * (1 - 0.4 * var(--rb-m))), 1680px);   /* EINE Inhaltsbreite für alle Seiten. Keine Seite setzt sie neu */
  --rb-luft: clamp(76px - 4px * var(--rb-m), calc(8.4vw - 1.2vw * var(--rb-m)), calc(120px - 16px * var(--rb-m) + (32 - 4 * var(--rb-m)) * var(--rb-w)));   /* Abstand der Abschnitte oben und unten: 76, 120, 152 und 72, 104, 132 */
  --rb-karte-innen: clamp(20px - 2px * var(--rb-m), calc(2.2vw - 0.2vw * var(--rb-m)), 32px - 4px * var(--rb-m));   /* Innenabstand einer Karte: 20 bis 32 und 18 bis 28 */
  --rb-lese: 34em;                         /* längste Zeile für Lesetext. In Geviert, damit sie mit der Schrift wächst und nicht mit dem Fenster */
  --rb-kopf-h: 64px;                       /* Höhe der Kopfzeile am Handy. Ab 961 px: 60 bzw. 56 px (unten). Der Seiteninhalt braucht oben so viel Platz */

  /* ---------- Ecken ---------- */
  --rb-r-knopf: 10px;                      /* Knopf, wie riffbird.com */
  --rb-r-feld: 12px;                       /* Eingabefeld */
  --rb-r-karte: 20px;                      /* Karte */
  --rb-r-bild: calc(24px - 4px * var(--rb-m));                       /* großes Bild, Bildkarte */
  --rb-r-klein: 6px;                       /* Kennzeichen, Fokus-Ring an Text */
  --rb-r-pille: 999px;                     /* nur Marken und Filter, nie der Hauptknopf */

  /* ---------- Schatten ---------- */
  --rb-schatten-hell: 0 1px 0 rgba(0, 42, 56, 0.04), 0 18px 40px -22px rgba(0, 42, 56, 0.28);   /* Karte auf Hell */
  --rb-schatten-dunkel: 0 30px 60px -30px rgba(0, 21, 28, 0.6);                                  /* helle Karte auf Petrol */
  --rb-lichtkante: inset 0 1px 0 rgba(209, 240, 250, 0.1);                                       /* Karte auf Dunkel */
  --rb-schein: 0 14px 30px -8px rgba(134, 188, 37, 0.62);                                        /* Hauptknopf unter dem Zeiger */

  /* ---------- Bewegung: nur transform und opacity ---------- */
  --rb-aus: cubic-bezier(0.16, 1, 0.3, 1);
  --rb-dauer: 0.26s;

  /* ---------- Knopf ---------- */
  --rb-kn-h: calc(52px - 4px * var(--rb-m) + 4 * var(--rb-w));   /* 52 bis 56 und 48 bis 52 */
  --rb-kn-h-klein: 44px;                                        /* am Handy 44 (Fingerfläche), ab 961 px 42 bzw. 40 */

  /* ---------- Schein und Schleier ---------- */
  --rb-schein-punkt: rgba(134, 188, 37, 0.75);   /* grüner Schein um Punkte (box-shadow), nie als Fläche */
  --rb-schleier: rgba(0, 42, 56, 0.7);           /* Petrol als Schleier über Bild oder Seite (Überlagerung, geöffnetes Fenster) */
  --rb-marker-gelb: #FFE14D;                     /* zweite Markerfarbe, nur für markierten Wortlaut und Arbeitsmarken. Kein Akzent, nie für Knopf oder Fläche */
}

@media (min-width: 961px) { :root { --rb-kopf-h: calc(60px - 4px * var(--rb-m)); --rb-kn-h-klein: calc(42px - 2px * var(--rb-m) + 2 * var(--rb-w)); } }
/* Stufe wählen: Klasse am <html>. Ohne Klasse gilt Stufe 1. */
html.rb-massstab-1 { --rb-massstab: 1; }
html.rb-massstab-2 { --rb-massstab: 2; }

/* =====================================================================
   FLÄCHEN. Jeder Baustein fragt nur diese Rollen ab, nie eine Farbe direkt:
   --rb-fl Fläche, --rb-kopf Überschrift, --rb-tx Text, --rb-leise Zweittext, --rb-linie Haarlinie,
   --rb-karte Kartenfläche, --rb-marke Versalzeile, --rb-fokus Fokus-Ring, --rb-feld Feldfläche.
   Ein Abschnitt wird hell oder dunkel, indem er die Klasse wechselt. Sonst ändert sich nichts.
   ===================================================================== */
.rb-dunkel {
  --rb-fl: var(--rb-petrol); --rb-kopf: var(--rb-weiss); --rb-tx: var(--rb-eis); --rb-leise: var(--rb-dunkel-leise);
  --rb-linie: var(--rb-linie-dunkel); --rb-karte: var(--rb-petrol-2); --rb-karte-2: var(--rb-petrol-3); --rb-marke: var(--rb-gruen);
  --rb-fokus: var(--rb-weiss); --rb-rahmen: 36%; --rb-feld: var(--rb-petrol); --rb-karte-schatten: var(--rb-lichtkante); --rb-fehlertext: var(--rb-fehler-dunkel);
  --rb-akzent: var(--rb-gruen); --rb-auf-akzent: var(--rb-knopf-schrift); --rb-hauch: rgba(134, 188, 37, 0.12); --rb-logo-filter: brightness(0) invert(1); --rb-marker-gruen: rgba(134, 188, 37, 0.45);
  background-color: var(--rb-fl); color: var(--rb-tx);
}
.rb-hell {
  --rb-fl: var(--rb-nebel); --rb-kopf: var(--rb-petrol); --rb-tx: var(--rb-hell-text); --rb-leise: var(--rb-hell-leise);
  --rb-linie: var(--rb-linie-hell); --rb-karte: var(--rb-weiss); --rb-karte-2: var(--rb-nebel); --rb-marke: var(--rb-petrol);
  --rb-fokus: var(--rb-petrol); --rb-rahmen: 58%; --rb-feld: var(--rb-weiss); --rb-karte-schatten: var(--rb-schatten-hell); --rb-fehlertext: var(--rb-fehler);
  --rb-akzent: var(--rb-petrol); --rb-auf-akzent: var(--rb-weiss); --rb-hauch: rgba(0, 42, 56, 0.08); --rb-logo-filter: brightness(0) invert(0.12) sepia(1) hue-rotate(150deg) saturate(3); --rb-marker-gruen: rgba(134, 188, 37, 0.4);
  background-color: var(--rb-fl); color: var(--rb-tx);
}
/* Weiße Fläche: wie hell, Karten darauf in Nebel. Auch für eine helle Karte auf Petrol (dann zusätzlich rb-karte) */
.rb-hell.rb-weiss { --rb-fl: var(--rb-weiss); --rb-karte: var(--rb-nebel); --rb-karte-2: var(--rb-weiss); --rb-feld: var(--rb-nebel); --rb-karte-schatten: none; }

/* Zweite dunkle Fläche: ein Band in Petrol 2, damit mehrere dunkle Abschnitte hintereinander wechseln. Karten darauf in Petrol 3, Einsätze in der Grundfläche.
   Das helle Gegenstück gibt es schon: rb-hell (Nebel, Karten weiß) und rb-hell rb-weiss (Weiß, Karten in Nebel). */
.rb-dunkel.rb-zwei { --rb-fl: var(--rb-petrol-2); --rb-karte: var(--rb-petrol-3); --rb-karte-2: var(--rb-petrol); --rb-feld: var(--rb-petrol); }

/* Tiefster Abschnitt: Schwarz als Fläche, wenn eine Stelle besonders viel Kontrast braucht. Höchstens einer je Seite, nie zwei schwarze Flächen hintereinander
   (ein schwarzer Fuß zählt mit). Karten darauf in Petrol. Bilder werden hier nur bis zum Schwarz gehoben, nicht bis Petrol. */
.rb-dunkel.rb-tief { --rb-fl: var(--rb-schwarz); --rb-karte: var(--rb-petrol); --rb-karte-2: var(--rb-petrol-2); --rb-feld: var(--rb-petrol); --rb-linie: #12323D; }
.rb-tief .rb-petrol-heben::after, .rb-tief .rb-petrol-heben-vor::before { background: var(--rb-schwarz); }
/* Rahmen eines Films oder Standbilds: schwarze Bühne mit Ecke, der Film liegt darin. Markup: <div class="rb-filmrahmen"><video …></video></div> */
.rb-filmrahmen { position: relative; overflow: hidden; border-radius: var(--rb-r-bild); background: var(--rb-schwarz); box-shadow: 0 0 0 1px var(--rb-linie-dunkel), var(--rb-schatten-dunkel); }
.rb-filmrahmen > :where(video, img, iframe) { display: block; width: 100%; height: auto; }

/* Bilder auf Petrol: Kein Bildpunkt wird dunkler als #002A38. Die Klasse kommt auf den Rahmen um das Bild (nicht auf das img).
   Der Rahmen braucht einen eigenen Stapel (isolation), sonst mischt die Ebene mit dem, was dahinter liegt. */
.rb-petrol-heben { position: relative; isolation: isolate; }
.rb-petrol-heben::after, .rb-petrol-heben-vor::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--rb-petrol); mix-blend-mode: lighten; pointer-events: none; border-radius: inherit; }
/* Dieselbe Ebene auf ::before, wenn der Rahmen sein ::after schon braucht. Dann nicht mit rb-rand-unten oder rb-rand-links zusammen (die liegen auch auf ::before) */
.rb-petrol-heben-vor { position: relative; isolation: isolate; }
/* Übergang vom Bild in die Fläche: unten, links oder beides. Liegt über der Hebe-Ebene */
.rb-rand-unten, .rb-rand-links { position: relative; isolation: isolate; }
.rb-rand-unten::before, .rb-rand-links::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; }
.rb-rand-unten::before { background: linear-gradient(0deg, #002A38 2%, rgba(0, 42, 56, 0.6) 30%, rgba(0, 42, 56, 0) 62%); }
.rb-rand-links::before { background: linear-gradient(90deg, #002A38 0, rgba(0, 42, 56, 0.97) 34%, rgba(0, 42, 56, 0.86) 54%, rgba(0, 42, 56, 0) 82%); }
.rb-rand-unten.rb-rand-links::before { background: linear-gradient(90deg, #002A38 0, rgba(0, 42, 56, 0.97) 34%, rgba(0, 42, 56, 0.86) 54%, rgba(0, 42, 56, 0) 82%), linear-gradient(0deg, #002A38 0%, rgba(0, 42, 56, 0) 30%); }

/* =====================================================================
   TEXT. Nur über Klassen. rb-seite am body setzt Grundschrift und Breite für alles darunter.
   ===================================================================== */
.rb-seite, .rb-dunkel, .rb-hell { font-family: var(--rb-schrift); font-stretch: 100%; font-weight: var(--rb-w-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.rb-seite { font-size: var(--rb-t-3); line-height: var(--rb-zh-text); margin: 0; }
.rb-seite *, .rb-seite *::before, .rb-seite *::after { box-sizing: border-box; font-stretch: 100%; }
/* LETZTE ZEILE (Auftrag 155; Bernd, Runde 51: kein einzelnes Wort allein in der letzten Zeile, überall). Vererbt sich von der Seite: Fließtext ohne Einzelwort (pretty),
   Überschriften ausgeglichen (balance). :where hält das Gewicht bei null, jede Regel einer Seite gewinnt. Browser ohne text-wrap und die Fälle, die übrig bleiben,
   fängt kopf.js ab (geschütztes Leerzeichen vor dem letzten Wort). Prüfung: tools/letzte-zeile.cjs. */
:where(.rb-seite) { text-wrap: pretty; }
:where(.rb-seite) :where(h1, h2, h3, h4, h5, summary, th) { text-wrap: balance; }
.rb-h1, .rb-h2, .rb-h2-klein, .rb-h3 { margin: 0; color: var(--rb-kopf); font-family: var(--rb-schrift); font-stretch: 100%; text-wrap: balance; }
.rb-h1 { font-size: var(--rb-t-8); line-height: var(--rb-zh-kopf); font-weight: var(--rb-w-kopf); letter-spacing: var(--rb-lw-kopf); }
.rb-h2 { font-size: var(--rb-t-7); line-height: var(--rb-zh-kopf); font-weight: var(--rb-w-kopf); letter-spacing: var(--rb-lw-kopf); }
.rb-h2-klein { font-size: var(--rb-t-6); line-height: var(--rb-zh-mittel); font-weight: var(--rb-w-kopf); letter-spacing: var(--rb-lw-kopf); }
.rb-h3 { font-size: var(--rb-t-5); line-height: var(--rb-zh-mittel); font-weight: var(--rb-w-mittel); letter-spacing: 0; }
.rb-vorspann { margin: 0; font-size: var(--rb-t-4); line-height: 1.5; font-weight: var(--rb-w-text); color: var(--rb-tx); max-width: var(--rb-lese); text-wrap: pretty; }
.rb-text { margin: 0; font-size: var(--rb-t-3); line-height: var(--rb-zh-text); font-weight: var(--rb-w-text); color: var(--rb-tx); }
.rb-klein { margin: 0; font-size: var(--rb-t-1); line-height: 1.5; color: var(--rb-leise); }
.rb-vorspann b, .rb-text b, .rb-vorspann strong, .rb-text strong { font-weight: var(--rb-w-mittel); color: var(--rb-kopf); }   /* Handbuch: Hervorhebung in 500 und Überschriftenfarbe */
.rb-gruen { color: var(--rb-gruen); }   /* wichtiger Teil einer Überschrift, nur auf Dunkel (auf Hell 2,03:1) */
.rb-hell .rb-gruen { color: inherit; }
.rb-zahl { font-size: var(--rb-t-zahl); line-height: var(--rb-zh-zahl); font-weight: var(--rb-w-kopf); letter-spacing: var(--rb-lw-zahl); color: var(--rb-kopf); font-variant-numeric: tabular-nums; }
.rb-zahl-klein { font-size: var(--rb-t-zahl-klein); line-height: 1; font-weight: var(--rb-w-kopf); letter-spacing: var(--rb-lw-zahl); color: var(--rb-kopf); font-variant-numeric: tabular-nums; }
/* Marker für markierten Wortlaut. Gelb trägt immer Petrol als Schrift (13,5:1), auch auf Dunkel. Grün lässt die Textfarbe der Fläche stehen */
.rb-marker { background: var(--rb-marker-gelb); color: var(--rb-petrol); padding: 0.05em 0.2em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.rb-marker-gruen { background: var(--rb-marker-gruen); color: inherit; padding: 0.05em 0.2em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.rb-hell .rb-marker-gruen { color: var(--rb-kopf); }   /* auf Hell trägt der grüne Marker Petrol (Fließtextfarbe erreicht darauf nur 4,3:1) */
/* Fläche „gewählt" oder hervorgehoben: background: var(--rb-hauch). Darauf Text in --rb-tx oder --rb-kopf, auf Hell nie --rb-leise (4,4:1) */
.rb-hauch { background: var(--rb-hauch); }
.rb-hell .rb-hauch .rb-klein { color: var(--rb-tx); }
.rb-kundenlogo { filter: var(--rb-logo-filter); }   /* einfarbiges Kundenlogo: weiß auf Dunkel, Petrol auf Hell */
.rb-marke { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--rb-t-1); line-height: 1.3; font-weight: var(--rb-w-mittel); letter-spacing: var(--rb-lw-marke); text-transform: uppercase; color: var(--rb-marke); }
.rb-marke::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rb-gruen); flex: none; }
.rb-marke sup, .rb-r { font-size: 0.75em; vertical-align: 0.35em; line-height: 0; }
.rb-seite sup { font-size: 0.5em; vertical-align: 0.72em; line-height: 0; }   /* ® immer hochgestellt (Handbuch) */
.rb-rand { width: 100%; max-width: calc(var(--rb-breite) + 2 * var(--rb-rand)); margin-inline: auto; padding-inline: var(--rb-rand); }
.rb-abschnitt { padding-block: var(--rb-luft); }
.rb-linie { border: 0; border-top: 1px solid var(--rb-linie); margin: 0; }
.rb-karte { background: var(--rb-karte); border-radius: var(--rb-r-karte); box-shadow: var(--rb-karte-schatten); padding: var(--rb-karte-innen); }
.rb-dunkel > .rb-hell.rb-karte, .rb-dunkel .rb-hell.rb-weiss.rb-karte { box-shadow: var(--rb-schatten-dunkel); }
.rb-nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Grundregeln für Seiten ohne eigenes Grund-Stylesheet: <body class="rb-seite rb-grund …">. Ohne Gewicht (:where), jede Regel der Seite gewinnt. */
:where(.rb-grund) :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) { margin: 0; }
:where(.rb-grund) :where(ul, ol)[class] { list-style: none; margin: 0; padding: 0; }
:where(.rb-grund) :where(img, svg, video, picture) { display: block; max-width: 100%; }
:where(.rb-grund) :where(img, video) { height: auto; }
:where(.rb-grund) :where(a) { color: inherit; }
:where(.rb-grund) :where(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
:where(.rb-grund) :where(button) { border: 0; padding: 0; background: none; cursor: pointer; }
:where(.rb-grund) :where(h1, h2, h3, h4) { color: var(--rb-kopf); font-weight: var(--rb-w-kopf); line-height: var(--rb-zh-mittel); text-wrap: balance; }

/* Fokus-Ring: 2 px in der Fokus-Farbe der Fläche, 3 px Abstand */
.rb-seite :focus-visible, .rb-fokus:focus-visible { outline: 2px solid var(--rb-fokus, var(--rb-petrol)); outline-offset: 3px; border-radius: var(--rb-r-klein); }

/* =====================================================================
   KNÖPFE. Zustände über zwei Schalter: --h (Zeiger darüber) und --a (gedrückt). Bewegt wird nur transform und opacity.
   Markup Hauptknopf:
   <a class="rb-kn" href="…"><span class="rb-kn-f"><span class="rb-kn-t">Text</span><span class="rb-kn-p" aria-hidden="true"><svg class="rb-pf-a" …/><svg class="rb-pf-b" …/></span></span></a>
   Der Pfeil steht in kopf-fuss.html. Zustände: [disabled] oder aria-disabled="true" (gesperrt), aria-busy="true" (sendet).
   ===================================================================== */
.rb-kn, .rb-kn-zwei, .rb-link { --h: 0; --a: 0; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .rb-kn:hover, .rb-kn-zwei:hover, .rb-link:hover { --h: 1; } }
.rb-kn.rb-z-zeiger, .rb-kn-zwei.rb-z-zeiger, .rb-link.rb-z-zeiger { --h: 1; }
.rb-kn:active, .rb-kn.rb-z-druck, .rb-kn-zwei:active, .rb-kn-zwei.rb-z-druck { --a: 1; }

.rb-kn { position: relative; display: inline-flex; vertical-align: middle; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; text-decoration: none; max-width: 100%; text-align: left; user-select: none; font: var(--rb-w-kopf) var(--rb-t-3)/1.15 var(--rb-schrift); font-stretch: 100%; letter-spacing: 0; color: var(--rb-knopf-schrift); border-radius: var(--rb-r-knopf); }
.rb-kn-klein { --rb-kn-h: var(--rb-kn-h-klein); font-size: var(--rb-t-2); }
.rb-kn-breit, .rb-kn-breit .rb-kn-f { width: 100%; }
.rb-kn-breit .rb-kn-t { flex: 1; justify-content: center; }
.rb-kn-f { position: relative; display: inline-flex; align-items: stretch; min-height: var(--rb-kn-h); isolation: isolate; border-radius: var(--rb-r-knopf); background: var(--rb-gruen); transform: translateY(calc(var(--h) * -2px + var(--a) * 3px)) scale(calc(1 - var(--a) * 0.012)); transition: transform var(--rb-dauer) var(--rb-aus); }
.rb-kn-f::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: var(--rb-schein); opacity: calc(var(--h) - var(--a) * 0.7); transition: opacity var(--rb-dauer); }
/* Langer Text bricht um, statt die Karte zu sprengen. Solange Platz ist, bleibt er in einer Zeile */
.rb-kn-t { position: relative; display: inline-flex; align-items: center; padding: 8px 20px 8px 24px; min-width: 0; text-wrap: balance; }
.rb-kn-klein .rb-kn-t { padding: 6px 14px 6px 18px; }
.rb-kn-f { max-width: 100%; }
@media (max-width: 480px) { .rb-kn:not(.rb-kn-klein) .rb-kn-t { padding-inline: 18px 14px; } .rb-kn:not(.rb-kn-klein) .rb-kn-p { width: 48px; } }
.rb-kn-p { position: relative; display: grid; place-items: center; overflow: hidden; flex: none; width: var(--rb-kn-h); border-radius: 0 var(--rb-r-knopf) var(--rb-r-knopf) 0; background: rgba(0, 42, 56, 0.14); }
.rb-kn-p::before { content: ""; position: absolute; inset: 0; background: rgba(0, 42, 56, 0.16); opacity: var(--h); transition: opacity var(--rb-dauer); }
.rb-kn-p svg { grid-area: 1 / 1; position: relative; width: 20px; height: 20px; transition: transform 0.36s var(--rb-aus), opacity 0.2s; }
.rb-kn-p .rb-pf-a { transform: translateX(calc(var(--h) * 190%)); }
.rb-kn-p .rb-pf-b { transform: translateX(calc(var(--h) * 190% - 190%)); }
.rb-kn-p::after { content: ""; grid-area: 1 / 1; position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; opacity: 0; }
.rb-kn:focus-visible, .rb-kn.rb-z-fokus { outline: 2px solid var(--rb-fokus, var(--rb-weiss)); outline-offset: 4px; border-radius: var(--rb-r-knopf); }
.rb-kn[aria-busy="true"] { pointer-events: none; cursor: progress; }
.rb-kn[aria-busy="true"] .rb-kn-p svg { opacity: 0; }
.rb-kn[aria-busy="true"] .rb-kn-p::after { opacity: 1; animation: rb-dreh 0.8s linear infinite; }
.rb-kn[disabled], .rb-kn[aria-disabled="true"] { pointer-events: none; cursor: not-allowed; --h: 0; --a: 0; }
.rb-kn[disabled] .rb-kn-f, .rb-kn[aria-disabled="true"] .rb-kn-f { filter: grayscale(0.8); opacity: 0.42; }
/* Sendet und ist dabei gesperrt (disabled und aria-busy zugleich): Er arbeitet, also bleibt er grün */
.rb-kn[aria-busy="true"] .rb-kn-f { filter: none; opacity: 1; }
@keyframes rb-dreh { to { transform: rotate(1turn); } }

/* Zweiter Weg („Gespräch vereinbaren"): Rahmen, füllt sich leise. Markup: <a class="rb-kn-zwei" href="…"><span>Text</span><svg …Winkel/></a> */
.rb-kn-zwei { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: var(--rb-kn-h); padding: 0 24px; border-radius: var(--rb-r-knopf); font: var(--rb-w-mittel) var(--rb-t-3)/1.15 var(--rb-schrift); font-stretch: 100%; letter-spacing: 0; color: var(--rb-kopf); text-decoration: none; white-space: nowrap; cursor: pointer; border: 0; background: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rb-kopf) var(--rb-rahmen, 58%), transparent); transform: scale(calc(1 - var(--a) * 0.02)); transition: transform var(--rb-dauer) var(--rb-aus); }
.rb-kn-zwei::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--rb-kopf); opacity: calc(var(--h) * 0.1 + var(--a) * 0.06); transition: opacity var(--rb-dauer); }
.rb-kn-zwei::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--rb-kopf); opacity: var(--h); transition: opacity var(--rb-dauer); }
.rb-kn-zwei > * { position: relative; }
.rb-kn-zwei svg { width: 18px; height: 18px; transform: translateX(calc(var(--h) * 4px)); transition: transform var(--rb-dauer) var(--rb-aus); }
.rb-kn-zwei svg.rb-zeichen { transform: none; }   /* Werkzeugknopf: Zeichen vor dem Text, bewegt sich nicht */
.rb-kn-zwei:focus-visible, .rb-kn-zwei.rb-z-fokus { outline: 2px solid var(--rb-fokus, var(--rb-weiss)); outline-offset: 4px; border-radius: var(--rb-r-knopf); }
.rb-kn-zwei.rb-kn-klein { min-height: var(--rb-kn-h-klein); padding: 0 18px; font-size: var(--rb-t-2); }

/* Textlink: grüne Linie, unter dem Zeiger zieht eine Linie in Textfarbe darüber. Markup: <a class="rb-link" href="…">Text<svg …Winkel/></a> */
.rb-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding-block: 6px; font: var(--rb-w-mittel) var(--rb-t-3)/1.2 var(--rb-schrift); font-stretch: 100%; letter-spacing: 0; color: var(--rb-kopf); text-decoration: none; cursor: pointer; border: 0; background: none; }
.rb-link::before, .rb-link::after { content: ""; position: absolute; left: 0; right: 26px; bottom: 0; height: 2px; background: var(--rb-gruen); }
.rb-link::after { background: var(--rb-kopf); transform: scaleX(var(--h)); transform-origin: left; transition: transform 0.4s var(--rb-aus); }
.rb-link svg { width: 18px; height: 18px; transform: translateX(calc(var(--h) * 5px)); transition: transform var(--rb-dauer) var(--rb-aus); }
.rb-link-klein { font-size: var(--rb-t-2); padding-block: 4px; }   /* in kleiner Umgebung */
.rb-link-klein svg { width: 16px; height: 16px; }
.rb-link-ohne::before, .rb-link-ohne::after { right: 0; }          /* ohne Pfeil: für eine Handlung statt eines Ziels („Ändern", „Auswahl aufheben"), auch als <button> */
.rb-link-zurueck::before, .rb-link-zurueck::after { left: 26px; right: 0; }   /* Pfeil links („zurück"): Das svg steht im Markup vor dem Text, der Winkel zeigt nach links */
.rb-link-zurueck svg { transform: translateX(calc(var(--h) * -5px)); }
.rb-link:focus-visible, .rb-link.rb-z-fokus { outline: 2px solid var(--rb-fokus, var(--rb-weiss)); outline-offset: 4px; border-radius: var(--rb-r-klein); }

/* =====================================================================
   FORMULARFELDER. Markup: <label class="rb-feld"><span>Beschriftung</span><input …><small class="rb-feld-fehler">…</small></label>
   ===================================================================== */
.rb-feld { display: block; }
.rb-feld > span { display: block; margin-bottom: var(--rb-a-2); font-size: var(--rb-t-2); line-height: 1.3; font-weight: var(--rb-w-mittel); color: var(--rb-kopf); }
.rb-feld input, .rb-feld select, .rb-feld textarea { width: 100%; min-height: var(--rb-kn-h); padding: 0 18px; border-radius: var(--rb-r-feld); border: 1px solid var(--rb-feld-rand); background: var(--rb-feld); color: var(--rb-kopf); font: var(--rb-w-text) var(--rb-t-3)/1.2 var(--rb-schrift); font-stretch: 100%; appearance: none; -webkit-appearance: none; }
.rb-feld textarea { padding-block: 16px; min-height: 120px; line-height: var(--rb-zh-text); resize: vertical; }
.rb-feld input::placeholder, .rb-feld textarea::placeholder { color: var(--rb-leise); opacity: 1; }
.rb-feld input:focus-visible, .rb-feld select:focus-visible, .rb-feld textarea:focus-visible { outline: 2px solid var(--rb-fokus, var(--rb-petrol)); outline-offset: 2px; border-radius: var(--rb-r-feld); }
.rb-feld input[aria-invalid="true"], .rb-feld textarea[aria-invalid="true"] { border-color: var(--rb-fehlertext); border-width: 2px; }
.rb-feld-fehler { display: block; margin-top: var(--rb-a-2); font-size: var(--rb-t-1); line-height: 1.4; font-weight: var(--rb-w-mittel); color: var(--rb-fehlertext); }
.rb-feld-fehler:empty { display: none; }
.rb-feld input:disabled { opacity: 0.55; cursor: not-allowed; }

/* Feld mit Beschriftung im Rahmen, so hoch wie der Knopf daneben. Den Ring trägt der Rahmen.
   Markup: <label class="rb-feld-innen"><span>Ort oder PLZ</span><input …></label> */
.rb-feld-innen { position: relative; display: grid; align-content: center; min-height: var(--rb-kn-h); min-width: 0; padding: 5px 16px; border-radius: var(--rb-r-feld); background: var(--rb-feld); box-shadow: inset 0 0 0 1px var(--rb-feld-rand); cursor: text; }
.rb-feld-innen > span { font-size: var(--rb-t-1); line-height: 1.3; font-weight: var(--rb-w-mittel); color: var(--rb-leise); }
.rb-feld-innen:focus-within > span { color: var(--rb-kopf); }
.rb-feld-innen input { width: 100%; min-width: 0; padding: 1px 0; border: 0; background: none; color: var(--rb-kopf); font: var(--rb-w-text) var(--rb-t-3)/1.3 var(--rb-schrift); outline: none; text-overflow: ellipsis; }
.rb-seite .rb-feld-innen input:focus-visible, .rb-feld-innen input:focus-visible { outline: none; }   /* den Ring trägt der Rahmen, nicht die Eingabe */
.rb-feld-innen input::placeholder { color: var(--rb-leise); opacity: 1; }
.rb-feld-innen:focus-within { box-shadow: inset 0 0 0 2px var(--rb-fokus, var(--rb-petrol)); }
.rb-feld-innen:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--rb-fehlertext); }

/* Auswahl als Fläche (Radio oder Checkbox). Markup: <div class="rb-wahl"><label><input type="radio" name="…"><span>sofort</span></label>…</div> */
.rb-wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-wahl label { position: relative; display: grid; flex: 1 1 auto; }
.rb-wahl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rb-wahl span { display: grid; place-items: center; min-height: 44px; padding: 6px 12px; border-radius: var(--rb-r-feld); background: var(--rb-feld); box-shadow: inset 0 0 0 1px var(--rb-feld-rand); font-size: var(--rb-t-2); line-height: 1.2; font-weight: var(--rb-w-mittel); text-align: center; color: var(--rb-tx); }
.rb-wahl input:checked + span { background: var(--rb-hauch); box-shadow: inset 0 0 0 2px var(--rb-kopf); color: var(--rb-kopf); }
.rb-wahl input:focus-visible + span { outline: 2px solid var(--rb-fokus, var(--rb-petrol)); outline-offset: 2px; }

/* Filter-Pille. Gewählt über aria-pressed="true", aria-selected="true" oder aria-current. Markup: <button type="button" class="rb-chip" aria-pressed="false">Pflege</button> */
.rb-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--rb-r-pille); background: none; box-shadow: inset 0 0 0 1px var(--rb-feld-rand); font: var(--rb-w-mittel) var(--rb-t-2)/1.2 var(--rb-schrift); font-stretch: 100%; color: var(--rb-kopf); text-decoration: none; white-space: nowrap; cursor: pointer; }
@media (hover: hover) { .rb-chip:hover { background: var(--rb-hauch); } }
.rb-chip[aria-pressed="true"], .rb-chip[aria-selected="true"], .rb-chip[aria-current] { background: var(--rb-kopf); box-shadow: none; color: var(--rb-fl); }
.rb-chip:focus-visible { outline: 2px solid var(--rb-fokus, var(--rb-petrol)); outline-offset: 3px; border-radius: var(--rb-r-pille); }
/* Umschalter: zwei oder drei Chips in einem Rahmen. Markup: <div class="rb-umschalter" role="group"><button class="rb-chip" aria-pressed="true">Karte</button>…</div> */
.rb-umschalter { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--rb-r-pille); box-shadow: inset 0 0 0 1px var(--rb-feld-rand); }
.rb-umschalter .rb-chip { min-height: 36px; padding: 0 16px; box-shadow: none; }

/* Runder Pfeilknopf (Auftrag 124, Prüfung vom 27.11.2026: vorher fünf Fassungen auf einer Seite). Der eine Knopf zum Weiterschalten, Springen und als Zeichen „hier geht es weiter".
   Zwei Größen: 44 px, mit rb-pfeil-gross 56 px. Eine Farbe je Fläche über die Rollen --rb-akzent und --rb-auf-akzent (Grün auf Dunkel, Petrol auf Hell).
   Markup: <button type="button" class="rb-pfeil" aria-label="Weiter"><svg viewBox="0 0 20 20" aria-hidden="true"><path d="M3.5 10h12.5M11 5l5 5-5 5"/></svg></button>
   Als reines Zeichen in einer größeren Schaltfläche: <span class="rb-pfeil" aria-hidden="true">…</span> */
.rb-pfeil { display: inline-grid; place-items: center; flex: none; width: var(--rb-pfeil-g, 44px); height: var(--rb-pfeil-g, 44px); padding: 0; border: 0; border-radius: 50%; background: var(--rb-akzent); color: var(--rb-auf-akzent); cursor: pointer; transition: transform var(--rb-dauer) var(--rb-aus), opacity var(--rb-dauer); }
.rb-pfeil svg { width: 45%; height: 45%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rb-pfeil-gross { --rb-pfeil-g: 56px; }
@media (hover: hover) { button.rb-pfeil:hover:not(:disabled), a.rb-pfeil:hover { transform: scale(1.08); } }
button.rb-pfeil:active:not(:disabled) { transform: scale(0.94); }
.rb-pfeil:disabled { opacity: 0.3; cursor: default; }
.rb-pfeil:focus-visible { outline: 2px solid var(--rb-fokus, var(--rb-petrol)); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .rb-pfeil { transition: none; } }

/* Runder Abspielknopf für Film und Ton. Grün auf Dunkel, Petrol auf Hell (Rollen --rb-akzent, --rb-auf-akzent). Größe über --rb-spiel-g.
   Markup: <button type="button" class="rb-spiel" aria-label="Film abspielen"><svg viewBox="0 0 20 20" aria-hidden="true"><path d="M6 3.5v13l11-6.5z"/></svg></button>
   Liegt er als Zeichen in einer größeren Schaltfläche (Standbild), bekommt diese rb-spiel-flaeche: Dann reagiert er auf den Zeiger über der ganzen Fläche. */
.rb-spiel { --h: 0; --a: 0; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--rb-spiel-g, clamp(60px, 6.5vw, 88px)); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: var(--rb-akzent); color: var(--rb-auf-akzent); cursor: pointer; isolation: isolate; transform: scale(calc(1 + var(--h) * 0.07 - var(--a) * 0.1)); transition: transform 0.3s var(--rb-aus); }
.rb-spiel::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: var(--rb-schein); opacity: var(--h); transition: opacity var(--rb-dauer); }
.rb-hell .rb-spiel::before { box-shadow: 0 14px 30px -8px rgba(0, 42, 56, 0.45); }
.rb-spiel svg { width: 40%; height: 40%; fill: currentColor; margin-left: 5%; }
.rb-spiel-klein { --rb-spiel-g: 44px; }
@media (hover: hover) { .rb-spiel:hover, .rb-spiel-flaeche:hover .rb-spiel { --h: 1; } }
.rb-spiel:active, .rb-spiel-flaeche:active .rb-spiel { --a: 1; }
.rb-spiel:focus-visible { outline: 2px solid var(--rb-fokus, var(--rb-weiss)); outline-offset: 4px; border-radius: 50%; }

/* =====================================================================
   KOPFZEILE. Fest am oberen Rand wie bisher (.nav), jetzt in Petrol mit der Wortmarke. Markup und Verhalten: kopf-fuss.html, kopf.js.
   ===================================================================== */
.rb-kopf { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(0, 42, 56, 0.86); backdrop-filter: saturate(1.3) blur(18px); -webkit-backdrop-filter: saturate(1.3) blur(18px); border-bottom: 1px solid var(--rb-linie); }
.rb-kopf-in { width: 100%; max-width: calc(var(--rb-breite) + 2 * var(--rb-rand)); margin-inline: auto; padding-inline: var(--rb-rand); height: var(--rb-kopf-h); display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.rb-logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.rb-logo img { display: block; height: calc(24px - 2px * var(--rb-m) + 2 * var(--rb-w)); width: auto; max-width: none; flex: none; }   /* Mindesthöhe der Wortmarke 20 px, mit Claim darunter erst ab 40 px */
.rb-logo .rb-logo-claim { height: calc(8px + 1 * var(--rb-w)); margin-top: 5px; }   /* Claim neben dem Logo (Variante „Claim next to logo"): Versalhöhe 8 px, darunter ist er nicht lesbar. Ab 1280 px Breite */
.rb-kopf-menue { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); margin-left: auto; }
.rb-kopf-menue a:not(.rb-kn) { position: relative; padding: 6px 0; font-size: var(--rb-t-2); font-weight: var(--rb-w-mittel); color: var(--rb-tx); text-decoration: none; }
.rb-kopf-menue a:not(.rb-kn) { white-space: nowrap; }   /* Auftrag 161: mit „Karriere“ sechs Punkte, kein Umbruch zwischen 961 und 1280 px */
.rb-kopf-menue a:not(.rb-kn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rb-gruen); transform: scaleX(0); transform-origin: left; transition: transform var(--rb-dauer) var(--rb-aus); }
.rb-kopf-menue a:not(.rb-kn):hover::after, .rb-kopf-menue a[aria-current="page"]::after { transform: scaleX(1); }
.rb-kopf-menue a[aria-current="page"] { color: var(--rb-kopf); }
.rb-kopf-knopf-m, .rb-kopf-auf { display: none; }
.rb-kopf-auf { position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--rb-kopf); cursor: pointer; }
.rb-kopf-auf span { position: absolute; left: 11px; right: 11px; top: 50%; height: 2px; border-radius: 1px; background: currentColor; transition: transform 0.35s var(--rb-aus); }
.rb-kopf-auf span:first-child { transform: translateY(-4px); }
.rb-kopf-auf span:last-child { transform: translateY(4px); }
.rb-kopf.offen .rb-kopf-auf span:first-child { transform: rotate(45deg); }
.rb-kopf.offen .rb-kopf-auf span:last-child { transform: rotate(-45deg); }
.rb-kopf :focus-visible { outline: 2px solid var(--rb-weiss); outline-offset: 3px; }
.rb-unter-kopf { padding-top: var(--rb-kopf-h); }   /* für den ersten Abschnitt, wenn er nicht hinter der Kopfzeile beginnen soll */
@media (max-width: 1279px) { .rb-logo .rb-logo-claim { display: none; } }
@media (max-width: 960px) {
  .rb-kopf-auf { display: block; }
  .rb-kopf-cta { margin-left: auto; }
  .rb-kopf-menue { position: fixed; inset: var(--rb-kopf-h) 0 auto 0; z-index: -1; margin: 0; display: grid; gap: 0; align-items: stretch; padding: 8px var(--rb-rand) 28px; max-height: calc(100dvh - var(--rb-kopf-h)); overflow-y: auto; background: var(--rb-petrol); border-bottom: 1px solid var(--rb-linie); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s var(--rb-aus), transform 0.25s var(--rb-aus), visibility 0s 0.25s; }
  .rb-kopf.offen { background: var(--rb-petrol); }
  .rb-kopf.offen .rb-kopf-menue { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s var(--rb-aus), transform 0.35s var(--rb-aus), visibility 0s; }
  .rb-kopf-menue a:not(.rb-kn) { padding: 16px 0; border-bottom: 1px solid var(--rb-linie); font-size: var(--rb-t-3); }
  .rb-kopf-menue a:not(.rb-kn)::after { display: none; }
  .rb-kopf-knopf-m { display: inline-flex; margin-top: 24px; }
}
@media (max-width: 700px) { .rb-kopf-cta { display: none; } .rb-kopf-auf { margin-left: auto; } }
/* Schmale Kopfzeile für Zielseiten von Anzeigen: Wortmarke und ein Knopf, kein Menü. Der Knopf bleibt auch am Handy stehen */
.rb-kopf-schmal .rb-kopf-cta { display: inline-flex; margin-left: auto; }
@media (max-width: 420px) { .rb-kopf-schmal .rb-logo img { height: 22px; } .rb-kopf-schmal .rb-kopf-in { gap: 10px; } }   /* am Handy trägt der feste Knopf unten die Regionsanalyse, im Menü steht sie zusätzlich */

/* =====================================================================
   FUSSZEILE
   ===================================================================== */
.rb-fuss { background: var(--rb-petrol); border-top: 1px solid var(--rb-linie); padding: var(--rb-a-8) 0 calc(var(--rb-a-6) + var(--rb-fuss-frei, 0px)); font-size: var(--rb-t-2); line-height: var(--rb-zh-text); }
.rb-fuss-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--rb-a-6) var(--rb-a-7); align-items: start; }
.rb-fuss .rb-logo { margin: 0; }
.rb-fuss .rb-logo img { height: calc(48px - 4px * var(--rb-m) + 6 * var(--rb-w)); }   /* Wortmarke mit Claim darunter: Wortmarke 45 px hoch */
.rb-fuss.rb-tief { background: var(--rb-schwarz); }
.rb-fuss a { color: var(--rb-tx); text-decoration: none; }
.rb-fuss a:hover { color: var(--rb-kopf); text-decoration: underline; text-decoration-color: var(--rb-gruen); text-underline-offset: 4px; }
.rb-fuss-liste { display: grid; gap: 8px; margin: 0; }
.rb-fuss-seiten { grid-template-columns: 1fr 1fr; }
.rb-fuss-unten { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--rb-a-3) var(--rb-a-6); padding-top: var(--rb-a-5); border-top: 1px solid var(--rb-linie); font-size: var(--rb-t-1); color: var(--rb-leise); }
.rb-fuss-unten p { margin: 0; }
.rb-fuss-unten nav { display: flex; gap: var(--rb-a-5); }
.rb-fuss-unten a { color: var(--rb-leise); }
.rb-fuss-ki::before { content: "·"; margin: 0 8px; }
@media (max-width: 760px) { .rb-fuss-in { grid-template-columns: 1fr; } }
/* Platz für einen festen Knopf am unteren Rand gibt es nur, wo die Seite ihn hat: Sie setzt --rb-fuss-frei (Startseite am Handy: 72px) */
.rb-fuss-schmal .rb-fuss-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
@media (max-width: 760px) { .rb-fuss-schmal .rb-fuss-in { grid-template-columns: 1fr; } }

/* =====================================================================
   RUF ZUR ANFRAGE (Auftrag 149, Bernd Runde 44: Calls to Action „schöner … nicht immer unscheinbar", auf allen Seiten).
   Zwei Stufen, zwei Ziele (Kostenlose Regionsanalyse, Gespräch vereinbaren). Anleitung und Markup: UMSTELLEN.md Abschnitt 12, tools/ruf.py, ruf.js.
   Stufe 1 „Knopf im Abschnitt": <div class="rb-ruf"><p class="rb-ruf-t"><b>Satz.</b><span>Was man bekommt.</span></p><div class="rb-ruf-k">Knopf, zweiter Weg</div></div>
   Stufe 2 „Abschluss-Streifen": <aside class="rb-ruf-streifen rb-dunkel">…</aside>, höchstens einer je Seite, am Ende.
   Beide lesen nur die Rollen der Fläche und stehen deshalb auf Hell und auf Dunkel.
   ===================================================================== */
.rb-ruf { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rb-a-4) var(--rb-a-7); margin-top: var(--rb-a-7); padding: var(--rb-a-5) var(--rb-karte-innen); border-radius: var(--rb-r-karte); background: var(--rb-hauch); box-shadow: inset 0 0 0 1px var(--rb-linie); }
.rb-ruf-t { display: grid; gap: 2px; margin: 0; flex: 1 1 320px; min-width: 0; max-width: 62ch; font-size: var(--rb-t-3); line-height: 1.45; color: var(--rb-tx); text-wrap: pretty; }
.rb-ruf-t b { font-size: var(--rb-t-4); line-height: 1.3; font-weight: var(--rb-w-mittel); color: var(--rb-kopf); }
.rb-ruf-k { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rb-a-3) var(--rb-a-4); flex: none; max-width: 100%; }
.rb-ruf-eng { margin-top: var(--rb-a-5); padding: var(--rb-a-4) var(--rb-a-5); }   /* in einer Karte oder schmalen Spalte */
.rb-ruf-frei { background: none; box-shadow: none; padding-inline: 0; border-radius: 0; border-top: 1px solid var(--rb-linie); padding-top: var(--rb-a-6); }   /* ohne Fläche, mit Haarlinie: wenn der Abschnitt schon Karten trägt */

.rb-ruf, .rb-ruf-streifen { text-align: left; }
.rb-ruf-streifen { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: var(--rb-a-6) var(--rb-a-9); padding: clamp(28px, 4.4vw, 64px); border-radius: calc(var(--rb-r-karte) + 8px); background: var(--rb-petrol-2); box-shadow: inset 0 0 0 1px var(--rb-linie-dunkel), var(--rb-schatten-dunkel); }
.rb-dunkel.rb-zwei .rb-ruf-streifen, .rb-ruf-streifen.rb-ruf-s-tief { background: var(--rb-petrol); }
/* Fahrzeit-Ringe: das Bild der Regionsanalyse, als leise Zeichnung hinter den Knöpfen */
.rb-ruf-streifen::before { content: ""; position: absolute; z-index: -1; right: -12%; top: 50%; width: min(78%, 760px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 46px, rgba(134, 188, 37, 0.2) 46px 47px); -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.5) 38%, transparent 70%); mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.5) 38%, transparent 70%); }
.rb-ruf-streifen::after { content: ""; position: absolute; z-index: -1; right: -8%; top: 50%; width: min(56%, 520px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(134, 188, 37, 0.2), transparent 62%); }
.rb-ruf-s-text { display: grid; gap: var(--rb-a-4); min-width: 0; }
.rb-ruf-s-text .rb-text { max-width: 46ch; }
.rb-ruf-s-weg { display: grid; gap: var(--rb-a-5); justify-items: start; min-width: 0; }
.rb-ruf-s-liste { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: var(--rb-t-2); line-height: 1.4; color: var(--rb-tx); }
.rb-ruf-s-liste li { display: flex; align-items: flex-start; gap: 10px; }
.rb-ruf-s-liste li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--rb-gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='%23002A38' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (max-width: 860px) {
  .rb-ruf-streifen { grid-template-columns: 1fr; }
  .rb-ruf-streifen::before { right: -40%; top: auto; bottom: -30%; width: 120%; transform: none; }
  .rb-ruf-streifen::after { right: -30%; top: auto; bottom: -20%; width: 90%; transform: none; }
}
@media (max-width: 560px) {
  .rb-ruf { padding: var(--rb-a-5) var(--rb-a-4); }
  .rb-ruf-frei { padding-inline: 0; }
  .rb-ruf-k, .rb-ruf-s-weg .rb-ruf-k { width: 100%; }
  .rb-ruf-k .rb-kn, .rb-ruf-k .rb-kn .rb-kn-f { width: 100%; }
  .rb-ruf-k .rb-kn .rb-kn-t { flex: 1; }
  .rb-ruf-k .rb-kn-zwei { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rb-spiel, .rb-kn-f, .rb-kn-zwei, .rb-kn-zwei svg, .rb-link svg, .rb-link::after, .rb-kn-p svg, .rb-kopf-menue, .rb-kopf-auf span, .rb-kopf-menue a::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .rb-kn-f { transform: none; }
  .rb-kn[aria-busy="true"] .rb-kn-p::after { animation: none; border-right-color: currentColor; border-style: dotted; }
}
