/* ===========================================================================
   Aufbau: Fachblatt
   ---------------------------------------------------------------------------
   Wofuer: die oeffentliche Website obetrechner.de.

   Das Prinzip in einem Satz: Die Seite besteht aus waagrechten Baendern, die
   ueber die volle Breite gehen und durch 1-px-Linien getrennt sind. Innerhalb
   eines Bandes liegt der Inhalt in einer Bahn von hoechstens 1180 px.

   Warum keine Karten, keine Schatten, keine Rundungen: Der Entwurf arbeitet
   nur mit Schrift und Linien. Jede Rundung und jeder Schatten wuerde die
   ruhige, fachblattartige Wirkung sofort kippen.

   Der Trick fuer die Rasterlinien: Ein Raster bekommt gap:1px und als
   Hintergrund die Linienfarbe. Die Zellen liegen darauf und decken alles ab
   ausser den 1-px-Luecken — so entstehen die Trennlinien ohne einen einzigen
   border. Vorteil gegenueber border: keine doppelten Linien an den
   Beruehrungsstellen und kein Gefummel mit :last-child.

   Nach basis.css, elemente.css und menues.css einbinden.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Grundlage
   --------------------------------------------------------------------------- */

.a-fachblatt {
  background: var(--hg);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.6;
}

/* Die Bahn begrenzt die Breite. Der Entwurf ist 1180 px breit gezeichnet;
   darunter laeuft alles fluid mit. */
.fb-bahn {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

/* Ein Band geht ueber die volle Breite, die untere Linie trennt es vom
   naechsten. */
.fb-band {
  border-bottom: 1px solid var(--rand);
}

.fb-band--ohne-linie { border-bottom: 0; }

/*
 * Ueberschriften.
 *
 * Der Entwurf sah hier eine Serifenschrift in Strichstaerke 400 vor. Weil
 * die Wortmarke fett und serifenlos ist, laufen die Titel jetzt in derselben
 * Familie wie der Fliesstext, aber in 700 — der Unterschied entsteht ueber
 * Groesse und Strichstaerke.
 *
 * Die Groessen sind gegenueber dem Entwurf durchgehend kleiner (66 -> 56,
 * 40 -> 34). Das ist kein Sparen, sondern noetig: Eine fette serifenlose
 * Schrift traegt bei gleicher Punktgroesse deutlich mehr auf als eine
 * Serifenschrift in 400. Bei 66 px wuerde die H1 die linke Spalte sprengen.
 *
 * Das negative letter-spacing zieht die grossen Zeilen zusammen. Bei fetten
 * serifenlosen Schriften in dieser Groesse wirken die Standardabstaende
 * sonst locker und die Zeile zerfaellt.
 */
.a-fachblatt h1,
.a-fachblatt h2,
.a-fachblatt h3 {
  font-family: var(--schrift-titel);
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.a-fachblatt p { margin: 0; }

.fb-dach {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--akzent);
  margin: 0;
}

/* ---------------------------------------------------------------------------
   1. Kopf
   --------------------------------------------------------------------------- */

.fb-kopf {
  border-bottom: 1px solid var(--rand);
  background: var(--hg);
}

.fb-kopf__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 56px;
}

/*
 * Wortmarke — dieselbe wie in der Anwendung.
 *
 * Die Klassennamen .logo-obet und .logo-rechner sind absichtlich aus
 * assets/style.css der Anwendung uebernommen und nicht umbenannt: Wer dort
 * etwas an der Marke aendert, findet sie hier unter demselben Namen wieder.
 *
 * Kein Abstand zwischen den beiden Teilen — «OBETRechner» ist ein Wort, die
 * Trennung entsteht nur ueber die Farbe.
 */
.fb-marke {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-obet    { color: var(--logo-obet); }
.logo-rechner { color: var(--logo-rechner); }

.fb-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.fb-nav a {
  font-size: 14.5px;
  color: var(--fliess);
  text-decoration: none;
  /* Die Unterlinie ist im Ruhezustand durchsichtig und belegt trotzdem
     Platz — sonst springt die Zeile beim Zeigen um einen Pixel. */
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 140ms ease;
}
.fb-nav a:hover,
.fb-nav a:focus-visible { border-bottom-color: var(--text); }
.fb-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--text);
}

.fb-kopf__aktionen {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  /* Kein flex-shrink:0 — auf einem Telefon von 360 px Breite ist die Gruppe
     aus vier Sprachfeldern, dem Hell/Dunkel-Knopf und «Anmelden» breiter als
     der Bildschirm. Ohne Umbruch lief der Anmelden-Knopf rechts aus dem
     Bild heraus und war nicht mehr erreichbar. */
}

/* Sprachwahl: vier kleine Felder. Wie viele es sind, entscheidet die
   Sprachverwaltung — hier ist nichts fest verdrahtet. */
.fb-sprachen { display: flex; gap: 4px; }
.fb-sprachen a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  color: var(--schwach);
  text-decoration: none;
  transition: color 140ms ease;
}
.fb-sprachen a:hover { color: var(--text); }
.fb-sprachen a[aria-current="true"] {
  background: var(--akzent);
  color: var(--akzent-text);
}

/* Hell/Dunkel. Ein Knopf, kein Schalter mit drei Zustaenden — «folge dem
   Geraet» passiert automatisch, solange nie umgeschaltet wurde. */
.fb-schema {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  background: none;
  border: 1px solid transparent;
  color: var(--schwach);
  cursor: pointer;
  line-height: 1;
}
.fb-schema:hover { color: var(--text); border-color: var(--rand); }

.fb-anmelden {
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--text);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}
.fb-anmelden:hover,
.fb-anmelden:focus-visible {
  background: var(--text);
  color: var(--hg);
}

/* ---------------------------------------------------------------------------
   2. Aufmacher
   --------------------------------------------------------------------------- */

.fb-aufmacher { display: grid; grid-template-columns: 1.05fr 0.95fr; }

.fb-aufmacher__text {
  padding: 76px 56px 72px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-right: 1px solid var(--rand);
}

.fb-aufmacher h1 {
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.fb-lead {
  font-size: 19px;
  line-height: 1.62;
  color: var(--fliess);
  max-width: 32em;
}

.fb-knopfreihe { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.fb-knopf {
  display: inline-block;
  background: var(--akzent);
  color: var(--akzent-text);
  font-size: 15.5px;
  font-weight: 500;
  padding: 15px 26px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--schrift);
  transition: background-color 140ms ease;
}
.fb-knopf:hover,
.fb-knopf:focus-visible { background: var(--akzent-hover); }
.fb-knopf--voll { display: block; width: 100%; text-align: center; }

.fb-textlink {
  font-size: 15.5px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--schwach);
  padding-bottom: 2px;
  transition: border-color 140ms ease;
}
.fb-textlink:hover,
.fb-textlink:focus-visible { border-bottom-color: var(--text); }

.fb-aufmacher__bild { background: var(--flaeche2); padding: 36px; }

/* Bildplatzhalter: gestreift, bis ein echter Screenshot bzw. ein Foto da ist.
   Sobald ein Bild eingesetzt wird, verschwindet der Streifen automatisch,
   weil das <img> darueberliegt. */
.fb-platz {
  position: relative;
  border: 1px solid var(--platz-linie);
  background: repeating-linear-gradient(135deg,
              var(--streif-a) 0 9px, var(--streif-b) 9px 18px);
  overflow: hidden;
}
.fb-platz--43 { aspect-ratio: 4 / 3; }
.fb-platz--11 { aspect-ratio: 1 / 1; }
.fb-platz img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-platz__marke {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--schwach);
  background: var(--hg);
  border: 1px solid var(--rand);
  padding: 6px 10px;
}

/* ---------------------------------------------------------------------------
   3. Kennzahlenband
   --------------------------------------------------------------------------- */

.fb-kennzahlen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rand);
}
.fb-kennzahl {
  background: var(--hg);
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fb-kennzahl__zahl {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  /* Ziffern gleich breit — sonst tanzen die vier Zahlen im Band. */
  font-variant-numeric: tabular-nums;
}
.fb-kennzahl__bez { font-size: 14px; color: var(--schwach); }

/* ---------------------------------------------------------------------------
   4. Abschnitt mit Kopfzeile und Raster
   --------------------------------------------------------------------------- */

.fb-abschnitt {
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.fb-abschnitt__kopf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.fb-abschnitt__kopf h2 { font-size: 34px; line-height: 1.14; letter-spacing: -0.02em; }
.fb-abschnitt__kopf p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fliess);
  max-width: 30em;
}

/* Das Raster mit den 1-px-Luecken auf Linienfarbe — daher die Trennlinien. */
.fb-raster {
  display: grid;
  gap: 1px;
  background: var(--rand);
  border: 1px solid var(--rand);
}
.fb-raster--3 { grid-template-columns: repeat(3, 1fr); }

.fb-zelle {
  background: var(--flaeche);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fb-zelle__bereich {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--akzent);
}
.fb-zelle__liste { font-size: 16px; line-height: 1.75; color: var(--text); }
.fb-zelle__titel { font-size: 17px; font-weight: 600; color: var(--text); }
.fb-zelle__text { font-size: 15.5px; line-height: 1.6; color: var(--fliess); }

/* Datenschutzband: gleiche Zellen, etwas mehr Luft */
.fb-raster--datenschutz .fb-zelle { padding: 28px 26px; gap: 10px; }

/* ---------------------------------------------------------------------------
   5. Ablauf — zwei Spalten, links Schritte, rechts Bild
   --------------------------------------------------------------------------- */

.fb-zwei { display: grid; grid-template-columns: 1fr 1fr; }

.fb-zwei__text {
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  border-right: 1px solid var(--rand);
}
.fb-zwei__text h2 { font-size: 34px; line-height: 1.14; letter-spacing: -0.02em; }
.fb-zwei__bild { background: var(--flaeche2); padding: 36px; }

.fb-schritte { display: flex; flex-direction: column; gap: 26px; }
.fb-schritt { display: flex; gap: 20px; }
.fb-schritt__nr {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--akzent);
  padding-top: 4px;
  flex-shrink: 0;
}
.fb-schritt__titel { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.fb-schritt__text { font-size: 15.5px; line-height: 1.6; color: var(--fliess); }

/* ---------------------------------------------------------------------------
   6. KI-Hilfe
   --------------------------------------------------------------------------- */

.fb-ki {
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.fb-ki h2 { font-size: 34px; line-height: 1.14; letter-spacing: -0.02em; }
.fb-ki h2 .punkt { color: var(--akzent); }
.fb-ki__rechts { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.fb-ki__text { font-size: 18px; line-height: 1.65; color: var(--fliess); }

.fb-marke-klein {
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 11px;
  border: 1px solid var(--rand);
  background: var(--flaeche);
  color: var(--text);
}

/* ---------------------------------------------------------------------------
   7. Anfrageband — dunkel, ueber die volle Breite
   --------------------------------------------------------------------------- */

.fb-anfrage {
  background: var(--dunkel);
  color: var(--dunkel-text);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.fb-anfrage__text {
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.fb-anfrage h2 {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dunkel-text);
  margin: 0;
}
.fb-anfrage__lead {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--band-fliess);
  max-width: 26em;
}
.fb-anfrage__zeilen {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  color: var(--dunkel-schwach);
}

.fb-anfrage__form { background: var(--dunkel-flaeche); padding: 56px; }

.fb-form { display: flex; flex-direction: column; gap: 16px; }
.fb-form__paar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.fb-feld { display: flex; flex-direction: column; gap: 7px; }
.fb-feld > label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dunkel-schwach);
}
.fb-feld input,
.fb-feld textarea {
  /* 16px ist Absicht: alles darunter laesst iOS beim Antippen hineinzoomen. */
  font-size: 16px;
  font-family: var(--schrift);
  height: 44px;
  padding: 0 14px;
  background: var(--feld-grund);
  border: 1px solid var(--feld-linie);
  border-radius: 0;
  color: var(--dunkel-text);
  width: 100%;
}
.fb-feld textarea { height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.fb-feld input:focus-visible,
.fb-feld textarea:focus-visible { outline: 2px solid var(--band-knopf); outline-offset: -1px; }
.fb-feld--fehler input,
.fb-feld--fehler textarea { border-color: var(--band-knopf); }

.fb-feld__fehler { font-size: 13.5px; color: var(--band-knopf); }

/* Zustimmung: kein Mono, das ist Fliesstext und muss lesbar bleiben. */
.fb-zustimmung {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--band-fliess);
}
.fb-zustimmung input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.fb-zustimmung a { color: var(--dunkel-text); }

.fb-anfrage .fb-knopf {
  background: var(--band-knopf);
  color: var(--band-knopf-text);
  width: 100%;
}
.fb-anfrage .fb-knopf:hover { background: var(--band-knopf-hover); }

/* Honigtopf: fuer Menschen unsichtbar, fuer Roboter verlockend.
   Kein display:none — manche Roboter fuellen nur sichtbare Felder aus und
   erkennen display:none. */
.fb-honig {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fb-meldung {
  padding: 20px 22px;
  border: 1px solid var(--feld-linie);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--dunkel-text);
}
.fb-meldung--erfolg { border-color: var(--band-knopf); }

/* ---------------------------------------------------------------------------
   8. Fuss
   --------------------------------------------------------------------------- */

.fb-fuss {
  background: var(--dunkel);
  border-top: 1px solid var(--fuss-linie);
}
.fb-fuss__innen {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 30px 56px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dunkel-schwach);
}
.fb-fuss__links { display: flex; gap: 22px; flex-wrap: wrap; }
.fb-fuss a { color: var(--dunkel-schwach); text-decoration: none; transition: color 140ms ease; }
.fb-fuss a:hover { color: var(--dunkel-text); }


/* ---------------------------------------------------------------------------
   Rechnerschau — Bildschirmansichten mit Reitern
   ---------------------------------------------------------------------------
   Geschaltet wird ueber versteckte Auswahlfelder (radio) und den
   :checked-Zustand, ohne eine Zeile JavaScript. Drei Gruende:
   die strikte CSP hat nichts zu erlauben, es laeuft bei blockiertem Skript,
   und die Tastaturbedienung (Pfeiltasten zwischen den Reitern) kommt gratis.

   Die Felder liegen VOR den Reitern im HTML — nur so erreicht der
   Nachbarschafts-Selektor (~) beide Richtungen.
   --------------------------------------------------------------------------- */

.fb-schau { display: flex; flex-direction: column; gap: 0; }

/* Die Auswahlfelder selbst sind unsichtbar, aber NICHT display:none —
   sonst waeren sie fuer die Tastatur und fuer Vorleseprogramme weg. */
.fb-schau__wahl {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.fb-schau__reiter {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--rand);
  border: 1px solid var(--rand);
  border-bottom: 0;
}
.fb-schau__reiter label {
  flex: 1 1 auto;
  background: var(--hg);
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--fliess);
  text-align: center;
  cursor: pointer;
  /* 44 px Mindesthoehe: darunter trifft der Daumen auf dem Telefon daneben. */
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 140ms ease, color 140ms ease;
}
.fb-schau__reiter label:hover { color: var(--text); }

.fb-schau__buehne {
  border: 1px solid var(--rand);
  background: var(--flaeche2);
  padding: 26px;
}

.fb-schau__bild { margin: 0; display: none; }
.fb-schau__bild img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--platz-linie);
}
.fb-schau__bild figcaption {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fliess);
  max-width: 46em;
}

/*
 * Die Zuordnung Feld -> Reiter -> Bild.
 *
 * Sechs Paare von Hand statt einer Schleife: CSS kann nicht zaehlen. Wer
 * einen siebten Eintrag in der Verwaltung anlegt, muss hier ein Paar
 * ergaenzen — deshalb sind vorsorglich acht angelegt. Mehr als acht Reiter
 * passen ohnehin nicht nebeneinander, dann waere eine andere Darstellung
 * faellig.
 */
.fb-schau__wahl:nth-of-type(1):checked ~ .fb-schau__reiter label:nth-of-type(1),
.fb-schau__wahl:nth-of-type(2):checked ~ .fb-schau__reiter label:nth-of-type(2),
.fb-schau__wahl:nth-of-type(3):checked ~ .fb-schau__reiter label:nth-of-type(3),
.fb-schau__wahl:nth-of-type(4):checked ~ .fb-schau__reiter label:nth-of-type(4),
.fb-schau__wahl:nth-of-type(5):checked ~ .fb-schau__reiter label:nth-of-type(5),
.fb-schau__wahl:nth-of-type(6):checked ~ .fb-schau__reiter label:nth-of-type(6),
.fb-schau__wahl:nth-of-type(7):checked ~ .fb-schau__reiter label:nth-of-type(7),
.fb-schau__wahl:nth-of-type(8):checked ~ .fb-schau__reiter label:nth-of-type(8) {
  background: var(--akzent);
  color: var(--akzent-text);
}

.fb-schau__wahl:nth-of-type(1):checked ~ .fb-schau__buehne .fb-schau__bild:nth-of-type(1),
.fb-schau__wahl:nth-of-type(2):checked ~ .fb-schau__buehne .fb-schau__bild:nth-of-type(2),
.fb-schau__wahl:nth-of-type(3):checked ~ .fb-schau__buehne .fb-schau__bild:nth-of-type(3),
.fb-schau__wahl:nth-of-type(4):checked ~ .fb-schau__buehne .fb-schau__bild:nth-of-type(4),
.fb-schau__wahl:nth-of-type(5):checked ~ .fb-schau__buehne .fb-schau__bild:nth-of-type(5),
.fb-schau__wahl:nth-of-type(6):checked ~ .fb-schau__buehne .fb-schau__bild:nth-of-type(6),
.fb-schau__wahl:nth-of-type(7):checked ~ .fb-schau__buehne .fb-schau__bild:nth-of-type(7),
.fb-schau__wahl:nth-of-type(8):checked ~ .fb-schau__buehne .fb-schau__bild:nth-of-type(8) {
  display: block;
}

/* Tastatur: Der gewaehlte Reiter muss sichtbar sein, wenn er den Fokus hat.
   Ohne das springt beim Durchtabben scheinbar nichts. */
.fb-schau__wahl:focus-visible ~ .fb-schau__reiter label {
  outline: 2px solid var(--akzent);
  outline-offset: -2px;
}

/* ---------------------------------------------------------------------------
   Inhaltsseiten (Impressum, Datenschutz, Rechner-Uebersicht, CMS-Seiten)
   Eine Lesespalte, damit lange Texte nicht ueber die ganze Breite laufen.
   --------------------------------------------------------------------------- */

.fb-lesespalte {
  padding: 72px 56px;
  max-width: 46em;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.fb-lesespalte h1 { font-size: 44px; line-height: 1.08; letter-spacing: -0.03em; }
.fb-lesespalte h2 { font-size: 26px; line-height: 1.18; letter-spacing: -0.02em; margin-top: 18px; }
.fb-lesespalte h3 { font-size: 19px; font-weight: 600; margin-top: 12px; }
.fb-lesespalte p,
.fb-lesespalte li { font-size: 16.5px; line-height: 1.7; color: var(--fliess); }
.fb-lesespalte ul, .fb-lesespalte ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.fb-lesespalte a { color: var(--akzent); }
.fb-lesespalte img { max-width: 100%; height: auto; }
.fb-lesespalte table { border-collapse: collapse; width: 100%; }
.fb-lesespalte th, .fb-lesespalte td {
  border: 1px solid var(--rand); padding: 10px 12px; text-align: left; font-size: 15.5px;
}

/* Sprungmarke fuer die Tastatur — sichtbar nur, wenn sie den Fokus hat. */
.fb-sprung {
  position: absolute;
  left: -9999px;
  background: var(--akzent);
  color: var(--akzent-text);
  padding: 12px 18px;
  z-index: 100;
}
.fb-sprung:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------------------
   Schmale Bildschirme
   Ab 900 px werden alle zweispaltigen Raster einspaltig. Der Grund fuer genau
   diesen Wert: darunter ist die schmalere Spalte des Aufmachers unter 380 px
   und der Fliesstext bricht nach drei bis vier Woertern um.
   --------------------------------------------------------------------------- */

@media (max-width: 900px) {
  /*
   * Auf dem Telefon steht der Kopf in drei Zeilen: Marke, dann die
   * Bedienelemente, dann die Navigation. Jede Zeile nimmt die volle Breite —
   * so bleibt nichts abgeschnitten, egal wie viele Sprachen dazukommen.
   */
  .fb-kopf__innen { padding: 16px 20px; flex-wrap: wrap; gap: 14px; }
  .fb-marke { width: 100%; }
  .fb-kopf__aktionen { order: 2; width: 100%; gap: 10px; }
  /* Links buendig, nicht ans rechte Ende geschoben: Bricht «Anmelden» auf
     eine eigene Zeile um, staende der Knopf sonst allein am rechten Rand
     mit einer halben Bildschirmbreite Leerraum davor. */
  .fb-kopf__aktionen .fb-anmelden { margin-left: 0; }
  .fb-nav { order: 3; width: 100%; gap: 20px; }
  .fb-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .fb-sprachen a { min-width: 44px; min-height: 44px; display: inline-flex;
                   align-items: center; justify-content: center; }
  .fb-schema { min-height: 44px; }
  .fb-anmelden { min-height: 44px; display: inline-flex; align-items: center; }

  .fb-aufmacher,
  .fb-zwei,
  .fb-ki,
  .fb-anfrage { grid-template-columns: 1fr; }

  .fb-aufmacher__text,
  .fb-zwei__text {
    border-right: 0;
    border-bottom: 1px solid var(--rand);
    padding: 44px 20px;
  }
  .fb-aufmacher h1 { font-size: 34px; letter-spacing: -0.025em; }
  .fb-lead { font-size: 17px; }

  .fb-aufmacher__bild,
  .fb-zwei__bild { padding: 20px; }

  .fb-kennzahlen { grid-template-columns: repeat(2, 1fr); }
  .fb-kennzahl { padding: 24px 20px; }

  .fb-abschnitt,
  .fb-ki { padding: 44px 20px; gap: 28px; }
  .fb-abschnitt__kopf { flex-direction: column; align-items: flex-start; gap: 16px; }
  .fb-abschnitt__kopf h2,
  .fb-zwei__text h2,
  .fb-ki h2 { font-size: 26px; }

  .fb-raster--3 { grid-template-columns: 1fr; }

  /* Reiter untereinander: Sechs Namen nebeneinander waeren auf dem Telefon
     je 60 px breit und damit unlesbar. */
  .fb-schau__reiter { flex-direction: column; }
  .fb-schau__reiter label { text-align: left; padding: 12px 16px; }
  .fb-schau__buehne { padding: 16px; }

  .fb-anfrage__text { padding: 44px 20px; }
  .fb-anfrage h2 { font-size: 28px; }
  .fb-anfrage__form { padding: 28px 20px; }
  .fb-form__paar { grid-template-columns: 1fr; }

  .fb-fuss__innen { padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 14px; }

  .fb-lesespalte { padding: 44px 20px; }
  .fb-lesespalte h1 { font-size: 30px; }
  .fb-lesespalte h2 { font-size: 22px; }
}

/* Zwischenbereich: die Aussenpolster von 56 px sind auf einem kleinen Laptop
   zu viel, das Raster darf aber noch dreispaltig bleiben. */
@media (min-width: 901px) and (max-width: 1100px) {
  .fb-kopf__innen { padding: 20px 32px; }
  .fb-aufmacher__text { padding: 56px 32px 52px; }
  .fb-abschnitt, .fb-ki, .fb-zwei__text, .fb-anfrage__text { padding: 56px 32px; }
  .fb-anfrage__form { padding: 40px 32px; }
  .fb-fuss__innen { padding: 26px 32px; }
  .fb-aufmacher h1 { font-size: 46px; }
  .fb-lesespalte { padding: 56px 32px; }
}

/* Wer im Betriebssystem weniger Bewegung eingestellt hat, bekommt keine. */
@media (prefers-reduced-motion: reduce) {
  .a-fachblatt * { transition: none !important; }
}

/* Druck: das dunkle Band und die Navigation brauchen niemanden auf Papier. */
@media print {
  .fb-kopf, .fb-anfrage, .fb-fuss, .fb-sprung { display: none; }
  .a-fachblatt { background: #fff; } /* feste-farbe-ok: Papier ist weiss */
}
