/* Punkt 105 – Mobil-Feinschliff (Handy 360–430 px, Tablet bis 768 px)
   Wird in html_kopf() als LETZTES Stylesheet geladen (nach $extraHead). Viele Seiten binden ihr CSS
   aber erst im <body> ein (z. B. seite12.css) – darum tragen die Regeln hier ein vorangestelltes „html“
   (eine Stufe mehr Spezifität) und wo nötig !important wie die Originalregel.
   Regeln, die auch am Desktop gelten, stehen oben; alles Handy-spezifische im @media-Block.
   Raster: Abstände 4/8/12/16 px · Icon-Stufen 16 / 20 / 24 px · Touch-Ziele ≥ 44 px (sichtbar oder über ::after). */

/* ---------- Überall ---------- */

/* Punkt 228: Hülle für breite Tabellen – am Desktop wischbar, am Handy stapelt mobil-stapeln.js die Tabelle (Regel 28) */
@media (min-width:768px) { html .tab-quer { overflow-x:auto; } }

/* „Punkte je Woche“ in der Stand-Kachel lag in der schmalen Ring-Spalte (96 px) – jetzt volle Breite */
html .ka-stand > .wk2 { grid-column:1 / -1; min-width:0; }

/* ⓘ: sichtbar 18–20 px, Tippfläche 44 px (unsichtbarer Rand) */
html .hb-i::after { content:""; position:absolute; inset:-12px; border-radius:50%; }

/* Hilfe-Fenster: Schließen-Knopf rund und innen statt halb auf der Kante */
html .hb-pop-zu { top:8px; right:8px; width:40px; height:40px; border-radius:50%; }
html .hb-pop-zu::after { content:""; position:absolute; inset:-2px; border-radius:50%; }

/* Tastenkürzel-Hinweise („/“) haben auf Touch-Geräten keinen Sinn */
@media (hover:none) { html .such-feld kbd, html .such-knopf kbd, html [class*="suche"] kbd { display:none !important; } }

/* Startseite: Bereichs-Kopf – „Einklappen“ sah aus wie „nach unten“ (zweimal dasselbe Chevron).
   Jetzt Minus (offen) / Plus (zu); die beiden Verschiebe-Pfeile bilden ein zusammenhängendes Paar. */
html .s2 button.s2-zuklappen svg { display:none; }
html .s2 button.s2-zuklappen::before, html .s2 button.s2-zuklappen::after { content:""; grid-area:1 / 1; width:14px; height:2.4px; border-radius:2px; background:currentColor; }
html .s2 button.s2-zuklappen::after { transform:rotate(90deg); opacity:0; transition:opacity .2s; }
html .s2 button.s2-zuklappen[aria-expanded="false"]::after { opacity:1; }
html .s2 .s2-bsteuer [data-s2-hoch] { border-top-right-radius:4px; border-bottom-right-radius:4px; }
html .s2 .s2-bsteuer [data-s2-runter] { border-top-left-radius:4px; border-bottom-left-radius:4px; margin-left:-3px; margin-right:6px; }

/* iOS-Hinweis lag über dem „Mehr“-Blatt und dem Hilfe-Fenster */
html .ios-toast { z-index:55; }
html body:has(.blatt.auf) .ios-toast, html body:has(.hb-pop.offen) .ios-toast { display:none; }

/* Eingabefelder mindestens 16 px – sonst zoomt iOS/iPadOS beim Antippen in die Seite (Handy und alle Touch-Geräte) */
@media (max-width:720px), (pointer:coarse) {
  html input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]),
  html select, html textarea { font-size:16px !important; }
}

/* ---------- Punkt 105b – überall ---------- */
/* Kachel-Menü „…“ und „Altar hier umräumen“ gibt es nur am Handy */
html .s2 button.ka-st-mehr, html .s2 .ka-st-text, html .s2-ordnen-zeile { display:none; }
/* „Mehr“-Blatt: Kopf mit Titel und ✕ */
html .blatt-kopf { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 4px; }
html .blatt-kopf b { font-size:17px; }
html .blatt-x { all:unset; cursor:pointer; box-sizing:border-box; display:grid; place-items:center; width:44px; height:44px; border-radius:50%; color:var(--fg); background:var(--acc2); border:1px solid var(--line); }
html .blatt-x svg { width:20px; height:20px; }
html .blatt-x:hover, html .blatt-x:focus-visible { border-color:var(--acc); outline:none; }
html .blatt-innen > .griff { margin-bottom:2px; }
html .blatt-info { display:inline-block; margin-top:2px; padding:1px 8px; border-radius:999px; background:#c8102e; color:#fff; font-size:11.5px; font-weight:700; line-height:1.5; }
/* Karte: ein Chip-Stil für Ebenen, Orte-Leiste und „Mein Standort“ – Glas, farbiger Punkt; eingeschaltet = Farbe gefüllt */
html .kt-filter .kt-chip span { border:1px solid rgba(255,255,255,.45); background:rgba(8,14,30,.42); color:#fff; font-weight:600; min-height:40px; box-sizing:border-box; }
html .kt-filter .kt-chip span::before { content:""; flex:none; width:10px; height:10px; border-radius:50%; background:var(--f); box-shadow:0 0 0 2px rgba(255,255,255,.85); }
html .kt-filter .kt-chip input:checked + span { background:var(--f); border-color:var(--f); color:#fff; }
html .kt-filter .kt-chip input:checked + span::before { background:#fff; box-shadow:none; }
html .kt-filter .kt-chip:hover span { border-color:#fff; }
html .kt-filter [data-kt-standort] { border-radius:999px !important; border:1px solid rgba(255,255,255,.45) !important; background:rgba(8,14,30,.42) !important; color:#fff !important; font-weight:600; min-height:40px; box-shadow:none !important; }
html .kt-filter [data-kt-standort]:hover, html .kt-filter [data-kt-standort]:focus-visible { border-color:#fff !important; }
/* Rangliste: Duell-Knopf mit 44-px-Tippfläche */
html .rl-duell a { position:relative; }
html .rl-duell a::after { content:""; position:absolute; inset:-6px; border-radius:12px; }
/* Messbuch-Importe: lange Domains in <code> brechen um */
html main code { overflow-wrap:anywhere; word-break:break-word; }

/* ---------- Handy & schmales Tablet ---------- */
@media (max-width:720px) {

  /* Pfad ohne Einträge (z. B. Startseite, Einrichtung): das ⓘ steht rechtsbündig statt verloren links */
  html main > .seiten-pfad:not(:has(> a)):not(:has(> span:not(.sp-hilfe))) { display:flex !important; justify-content:flex-end; width:100%; box-sizing:border-box; }

  /* Kopfkarte (sx_seitenkopf / sx_kopfrahmen): Symbol oben an der Titelzeile statt mittig im Textblock */
  html .sx-kopf { align-items:start; }
  html .sx-kopf > .sx-kopf-sym { align-self:start; margin-top:2px; }
  /* Aktionsknöpfe: gleich hoch, Inhalt mittig, ungerade Anzahl → letzter Knopf volle Breite */
  html .sx-kopf .sx-aktionen { display:grid !important; grid-template-columns:repeat(2, minmax(0, 1fr)); align-items:stretch; gap:8px; }
  html .sx-kopf .sx-aktionen > :only-child { grid-column:1 / -1; }
  html .sx-kopf .sx-aktionen > :last-child:nth-child(odd):not(:only-child) { grid-column:1 / -1; }
  html .sx-kopf .sx-aktionen > .knopf, html .sx-kopf .sx-aktionen > a, html .sx-kopf .sx-aktionen > button,
  html .sx-kopf .sx-aktionen > details > summary { display:flex !important; align-items:center; justify-content:center; gap:6px; min-height:44px; box-sizing:border-box;
    width:100%; margin:0 !important; padding:8px 12px !important; font-size:14.5px !important; line-height:1.25 !important; text-align:center; white-space:normal; hyphens:auto; -webkit-hyphens:auto; overflow-wrap:break-word; }
  html .sx-kopf .sx-aktionen > details { display:flex; margin:0; }
  html .sx-kopf .sx-aktionen .knopf br { display:none; }
  /* Kennzahlen: Symbol bündig mit der Zahl statt mittig zwischen Zahl und Beschriftung */
  html .sx-kz > svg, html .sx-kz > .sx-ic { align-self:start; margin-top:2px; }

  /* Reiterleiste: etwas enger (Umbruch statt Wischen: Punkt 228 unten) */
  html body main .reiter-leiste a { padding:0 12px !important; gap:6px !important; }
  /* Punkt 122 (E4): am Handy keine Gruppennamen – nur die Links in einer wischbaren Zeile */
  html body main .sx-reiter.sx-rg-leiste:not(.st-reiter) { height:var(--rl-hoehe, 56px) !important; }
  html body main .sx-rg-leiste .sx-rg, html body main .sx-rg-leiste .sx-rg-links { display:contents; }
  html body main .sx-rg-leiste .sx-rg-name { display:none; }
  /* Einheitlicher Abstand vor/nach der Leiste: Gemeinschafts-Raster wie .sx (14 px) */
  html .gm { --gm-abst:14px; }

  /* Filter-Chips (Gemeinde „Was gerade passiert“ u. a.): Punkt 228 – umbrechen statt wischen (Regel 28) */
  html .sx-chips.gm-arten { flex-wrap:wrap !important; }

  /* Startseite – Begrüßungskarte */
  /* „Nächste Prozession: …“ lief als drei Spalten um – jetzt normaler Fließtext */
  html .sgr-treffen { display:block; line-height:1.45; }
  html .sgr-treffen > svg, html .sgr-treffen > .sgr-t-ic { display:inline-block; width:16px; height:16px; vertical-align:-3px; margin-right:6px; }
  /* Schnellzugriff: alle vier Kacheln gleich hoch, auch wenn ein Titel zweizeilig ist */
  html .sgr-k { min-height:58px; line-height:1.2; }
  /* ⓘ zum Schnellzugriff saß auf der Ecke der Kachel „Hierarchie“ – jetzt eigene Zeile rechts darunter */
  html .sgr-schnell > .sgr-hilfe { position:static; grid-column:1 / -1; justify-self:end; height:20px; margin:-2px 2px 0 0; }

  /* Startseite – Kacheln: Beschriftungen dürfen zweizeilig werden statt „Höhenme…“ */
  html .msm small, html .ms-x small { white-space:normal !important; overflow:visible !important; text-overflow:clip !important; line-height:1.2; font-size:11.5px !important; overflow-wrap:anywhere; hyphens:auto; -webkit-hyphens:auto; }
  /* Bereichs-Kopf: gleichmäßiger Abstand (Knopfgröße siehe Punkt 105b) */
  html .s2 .s2-kopf { gap:8px; }
  html .s2 .s2-kopf .bz-kopf { min-width:0; }

  /* Formular-Knöpfe (Tag eintragen, Treffen, Mitfahren, Vorschlagen): Raster statt Flatter-Umbruch;
     ungerade Anzahl → Hauptknopf oben volle Breite */
  html .form-knoepfe { display:grid !important; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px !important; align-items:stretch; }
  html .form-knoepfe > :only-child, html .form-knoepfe > :first-child:nth-last-child(odd) { grid-column:1 / -1; }
  html .form-knoepfe > :is(button, .knopf, a) { display:flex; align-items:center; justify-content:center; min-height:44px; margin:0; text-align:center; box-sizing:border-box; width:100%; }

  /* Schritt-Überschriften („Schnell-Eintrag“ + Hinweis): Hinweis unter den Titel statt daneben gequetscht */
  html .schritt > h2:has(> small) { flex-wrap:wrap; row-gap:2px; }
  html .schritt > h2 > small { flex:1 0 100%; padding-left:calc(30px + .5em); margin:0 !important; line-height:1.35; }

  /* Unterleiste: aktives Symbol bleibt gleich groß und auf einer Linie, Beschriftung ≥ 11,5 px */
  html nav.tabbar a .t-ic, html nav.tabbar button:not(.t-plus) .t-ic { width:22px; height:22px; font-size:21px; display:grid; place-items:center; }
  html nav.tabbar a.aktiv .t-ic { transform:none; }
  html nav.tabbar a > span:not(.t-ic), html nav.tabbar button:not(.t-plus) > span:not(.t-ic) { font-size:11.5px; line-height:1.3; }

  /* Anmelde-Kopf: Saison- und Modus-Schalter gleich hoch und groß genug zum Tippen */
  html .login-ecke { display:flex; align-items:center; gap:8px; }
  html .login-ecke > .saison-knopf { height:32px; min-width:44px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; }
  html .login-ecke > .saison-knopf, html .login-ecke > .modus-schalter { position:relative; }
  html .login-ecke > .saison-knopf::after, html .login-ecke > .modus-schalter::after { content:""; position:absolute; inset:-6px -2px; }
  /* ---------- Punkt 105b – Handy ---------- */
  /* schwebender „Tag eintragen“-Knopf entfällt, wenn unten die „+“-Taste da ist */
  html body:has(nav.tabbar .t-plus) .sx-fab { display:none !important; }
  /* Live-Hinweis an der Unterleiste (z. B. „+12 cm“) nur als Punkt; voller Text steht im Tooltip */
  html nav.tabbar .t-ic .nb { top:-4px; right:-6px; }
  html nav.tabbar .t-ic .nb-info { position:static; transform:none; width:10px; height:10px; padding:0; border-radius:50%; font-size:0; line-height:0; color:transparent !important; overflow:hidden; background:#ff3b30; box-shadow:0 0 0 2px #fff; }
  html nav.tabbar .t-ic .nb-zahl ~ .nb-info, html nav.tabbar .t-ic .nb-punkt ~ .nb-info { display:none; }
  /* Bereichs-Kopf: ▲▼ nur im Modus „Altar hier umräumen“; sonst −/+ und ✕ mit 44 px */
  html .s2-ordnen-zeile { display:flex; justify-content:flex-end; margin:0 0 8px; }
  html .s2 button.s2-ordnen-knopf { all:unset; cursor:pointer; box-sizing:border-box; display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 14px; border-radius:999px; color:#fff; font-weight:700; font-size:14px;
    background:rgba(8,14,30,.42); border:1px solid rgba(255,255,255,.45); }
  html .s2 button.s2-ordnen-knopf svg { width:20px; height:20px; }
  html .s2 button.s2-ordnen-knopf:focus-visible { outline:2px solid #fff; outline-offset:2px; }
  html .s2 button.s2-ordnen-knopf .s2-o-aus, html .s2.s2-ordnen button.s2-ordnen-knopf .s2-o-an { display:none; }
  html .s2.s2-ordnen button.s2-ordnen-knopf .s2-o-aus { display:inline; }
  html .s2.s2-ordnen button.s2-ordnen-knopf { background:#fff; color:#14233a; border-color:#fff; }
  html .s2:not(.s2-ordnen) .s2-bsteuer [data-s2-hoch], html .s2:not(.s2-ordnen) .s2-bsteuer [data-s2-runter] { display:none; }
  html .s2.s2-ordnen .s2-bsteuer [data-s2-zu], html .s2.s2-ordnen .s2-bsteuer [data-s2-baus] { display:none; }
  html .s2.s2-ordnen .s2-bsteuer [data-s2-runter] { margin-right:0; }
  html .s2 button.s2-bk { width:44px; height:44px; border-radius:12px; }
  html .s2 .s2-bsteuer { gap:6px; flex:none; }
  html .s2.s2-ordnen section.s2-b { outline:2px dashed rgba(255,255,255,.5); outline-offset:4px; border-radius:18px; }
  /* Kachel: ⚙ und ✕ als ein Knopf „…“ (44 px) mit kleinem Menü */
  html .s2 .ka-steuer { right:6px; bottom:6px; gap:0; flex-direction:column; align-items:flex-end; }
  html .s2 button.ka-st-mehr { display:grid; width:44px; height:44px; }
  html .s2 button.ka-st-mehr svg { width:20px; height:20px; fill:#fff; }
  html .s2 .ka-steuer > .ka-st:not(.ka-st-mehr) { display:none; }
  html .s2 .ka-steuer.auf { z-index:20; }
  html .s2 .ka-steuer.auf > .ka-st:not(.ka-st-mehr) { display:flex; order:-1; width:auto; min-width:150px; height:44px; padding:0 14px; gap:10px; justify-content:flex-start; border-radius:12px; margin-bottom:6px;
    background:rgba(12,20,40,.96); border-color:rgba(255,255,255,.35); box-shadow:0 10px 24px rgba(0,0,0,.4); font-size:15px; font-weight:700; }
  html .s2 .ka-steuer.auf .ka-st-text { display:inline; }
  html .s2 .ka-steuer.auf > button.ka-st-mehr { background:rgba(8,14,30,.85); border-color:#fff; }
  html .s2 .ka .ka-fuss .ka-chips { padding-inline:0 52px; }
  /* „So gibt es Punkte“: Name volle Breite, Menge · Punkte · Anteil darunter */
  html .pe-liste2 li { grid-template-columns:20px minmax(0, 1fr) auto auto; grid-template-areas:"ic name name name" ". menge pkt ant"; row-gap:2px; column-gap:10px; }
  html .pe-liste2 li > .pe-ic { grid-area:ic; } html .pe-liste2 li > .pe-name { grid-area:name; }
  html .pe-liste2 li > small { grid-area:menge; text-align:left; opacity:.85; } html .pe-liste2 li > b { grid-area:pkt; } html .pe-liste2 li > em { grid-area:ant; min-width:36px; }
  /* Heiliger Stuhl: Rangliste direkt nach dem Siegertreppchen, danach „Mein Fortschritt“, dann „Letzte Punkte“ und der Rest */
  html .sx-teil.sx-frei[data-teil="rangliste"]:not([hidden]) { display:flex; flex-direction:column; }
  html [data-teil="rangliste"] > .ch-oben { display:contents; }
  html [data-teil="rangliste"] > * { order:5; }
  html [data-teil="rangliste"] > .ch-oben > .podest-karte { order:1; margin-bottom:16px; }
  html [data-teil="rangliste"] > .ch-zwei { display:contents; }
  html [data-teil="rangliste"] > .ch-zwei > .rl-karte { order:2; margin-bottom:16px; }
  html [data-teil="rangliste"] > .ch-zwei > .feed-karte { order:4; margin-bottom:16px; }
  html [data-teil="rangliste"] > .ch-oben > .mf { order:3; margin-bottom:16px; }
  /* Duell-Knopf in der Rangliste: sichtbar 40 px */
  html .rl-duell a { width:40px; height:40px; }
}

/* Punkt 205: alte 40-px-Regeln der Kopf-Knöpfe entfernt – Punkt 193 (assets/kopf-glas.css, 44 px mit !important) überstimmte sie vollständig */

/* ===== Punkt 108c: „Mehr“ als Vollbild – Suche, Favoriten/zuletzt, große Bereichskacheln (Kurie eingeklappt) ===== */
html .blatt-suche { position:relative; margin:4px 0 10px; }
html .blatt-suche .hp-ic { position:absolute; left:12px; top:50%; transform:translateY(-50%); width:18px; height:18px; opacity:.7; pointer-events:none; }
html .blatt-suche input { width:100%; box-sizing:border-box; min-height:46px; padding:10px 14px 10px 40px; border-radius:14px; font-size:16px; }
html .blatt-schnell { margin:0 0 10px; }
html .blatt-schnell small { display:block; margin:0 4px 6px; font-size:12px; font-weight:600; color:var(--muted); }
html .blatt-schnell > div { display:flex; flex-wrap:wrap; gap:8px; padding-bottom:4px; }   /* Punkt 228: umbrechen statt wischen */
html .blatt-schnell a { flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:6px 12px; border-radius:999px; background:var(--acc2); color:var(--fg); text-decoration:none; font-size:13.5px; font-weight:600; white-space:nowrap; }
html .blatt-schnell a.fav { box-shadow:inset 0 0 0 1.5px var(--acc); }
html .blatt-schnell a .hp-ic { width:18px; height:18px; }
html details.blatt-bereich { margin:0 0 8px; border-radius:18px; overflow:hidden; background:var(--karte, rgba(255,255,255,.06)); }
html details.blatt-bereich > summary { list-style:none; display:flex; align-items:center; gap:12px; min-height:58px; padding:10px 16px; cursor:pointer; color:#fff;
  background:linear-gradient(135deg, var(--g1, #4a5a6a), var(--g2, #2a3440)); font-size:16px; }
html details.blatt-bereich > summary::-webkit-details-marker { display:none; }
html details.blatt-bereich > summary::after { content:"⌄"; margin-left:auto; font-size:20px; line-height:1; transition:transform .2s; }
html details.blatt-bereich[open] > summary::after { transform:rotate(180deg); }
html details.blatt-bereich > summary .hp-ic { width:28px; height:28px; flex:0 0 28px; }
html details.blatt-bereich > summary span { display:flex; flex-direction:column; line-height:1.15; }
html details.blatt-bereich > summary small { font-size:12px; font-weight:500; opacity:.9; color:#fff; }
html details.blatt-bereich > .blatt-raster { padding:10px 8px 12px; }
html .blatt-raster a[hidden] { display:none !important; }
@media (prefers-reduced-motion: reduce) { html details.blatt-bereich > summary::after { transition:none; } }

/* ===== Punkt 108c: Kopfleiste – Knopf „Alle Bereiche“ (nur Desktop), kompakte Einträge im großen Mega-Menü ===== */
html .nav .mega-alle .m-kompakt small, html .nav .mega-alle .m-kompakt .m-zahl { display:none !important; }
html .nav .mega.mega-alle { width:min(1180px, calc(100vw - 24px)) !important; max-width:calc(100vw - 24px) !important; }
html .nav .gruppe-alle[data-gruppe] .mega.mega-alle.neu-mega .mega-spalten.mega-spalten:is(div, div) { grid-auto-flow:row !important; grid-template-rows:none !important; grid-template-columns:repeat(5, minmax(0, 1fr)) !important; }
@media (max-width:1180px) { html .nav .gruppe-alle[data-gruppe] .mega.mega-alle.neu-mega .mega-spalten.mega-spalten:is(div, div) { grid-template-columns:repeat(3, minmax(0, 1fr)) !important; } }
html .nav .mega-alle .m-kompakt { padding-top:5px !important; padding-bottom:5px !important; min-height:38px; }
html .nav .mega-alle .m-kompakt .m-ic { width:28px !important; height:28px !important; }
html .nav .mega-alle .m-alle-sp h4 { display:flex; align-items:center; gap:6px; }
html .nav .mega-alle .m-alle-ic { width:16px; height:16px; }
@media (max-width:860px) { html .nav .gruppe-alle { display:none !important; } }
/* Punkt 108c: Kopfleiste am Desktop – größere Symbole mit Beschriftung darunter */
@media (min-width:861px) {
  html .nav.glas-pille .gruppe > .g-knopf { flex-direction:column !important; gap:2px !important; padding:6px 10px 5px !important; min-height:58px; position:relative; }
  html .nav.glas-pille .gruppe .g-sym, html .nav.glas-pille .gruppe .g-sym .hp-ic { width:26px !important; height:26px !important; }
  html .nav.glas-pille .gruppe .g-name { position:static !important; width:auto !important; height:auto !important; overflow:visible !important; clip:auto !important;
    display:flex !important; flex-direction:column; align-items:center; font-size:11.5px; font-weight:600; line-height:1.1; white-space:nowrap; letter-spacing:.01em; }
  html .nav.glas-pille .gruppe .g-name .g-klar { font-size:9.5px; font-weight:500; opacity:.8; }
  html .nav.glas-pille .gruppe > .g-knopf .pfeilchen { position:absolute; right:2px; top:8px; width:9px; height:9px; opacity:.55; }
  html .nav.glas-pille .gruppe > .g-knopf .zahl, html .nav.glas-pille .gruppe > .g-knopf .nb-g { position:absolute; top:2px; right:10px; }
}
@media (min-width:861px) and (max-width:1100px) {
  html .nav.glas-pille .gruppe > .g-knopf { padding:6px 6px 5px !important; }
  html .nav.glas-pille .gruppe .g-name { font-size:10.5px; }
  html .nav.glas-pille .gruppe .g-name .g-klar { display:none; }
}

/* Punkt 108d: Knopf „Alle Bereiche“ / „Das ganze Bistum“ – lang ab 1280 px, darunter kurz */
.nav .gruppe-alle .g-name .g-kurz { display:none; }
@media (max-width:1279px) { .nav .gruppe-alle .g-name .g-lang { display:none; } .nav .gruppe-alle .g-name .g-kurz { display:inline; } }

/* Punkt 121: Fußzeile der Startseite (u. a. „Auf Standard zurücksetzen“) – Touch ≥ 44 px */
@media (max-width:720px) { .s2 .s2-fuss button.s2-f-k { box-sizing:border-box; min-height:44px; } }

/* Punkt 123 (E5): Brotkrumen-Zeile am Handy – Brotkrumen kürzen (Start › Seite, ohne Klartext), Kapseln nur Symbol + Wert, wenn kein Platz: weg */
@media (max-width:720px) {
  html main > .kopf-zeile > .seiten-pfad > :is(span:not(.sp-hilfe):not(.bk-tr), a:not(:first-child)), html main > .kopf-zeile > .seiten-pfad > :is(span:not(.sp-hilfe):not(.bk-tr), a:not(:first-child)) + .bk-tr { display:none; }
  html main > .kopf-zeile > .seiten-pfad .bk-klar, html main > .kopf-zeile .band-wert small { display:none; }
  html main > .kopf-zeile .band-wert { padding:0 12px 0 10px; }
}
@media (max-width:540px) { html main > .kopf-zeile > .band-live { display:none; } }

/* Punkt 189: „Mehr“-Blatt – erster Eintrag je Bereich = Übersicht des Bereichs (Bereichsname, darunter klein „Übersicht“) */
html .blatt-raster a.blatt-ue .blatt-ue-t { display:block; margin-top:1px; font-size:11px; font-weight:600; opacity:.75; }

/* Punkte 190/192: Bereichs-Übersichten (uebersicht.php) am Handy – 2 Spalten, kompakte Kachel, Titel ohne Silbentrennung */
@media (max-width:600px) {
  html .ue { gap:12px; margin-top:12px; }
  html .ue-k { min-height:196px; padding:14px 12px 12px; gap:8px; border-radius:20px; }
  html .ue-k::after { border-radius:18px; }
  html .ue-k-kopf { min-height:42px; }
  html .ue-k-sym { width:42px; height:42px; }
  html .ue-k-sym .hp-ic, html .ue-k-sym .sx-ic { width:23px; height:23px; }
  html .ue-k-text, html .ue-mit-plakette .ue-k-text { padding-right:0; gap:3px; }
  html .ue-k-seite { font-size:10.5px; letter-spacing:.02em; }
  html .ue-k-titel { font-size:16.5px; line-height:1.2; hyphens:manual; -webkit-hyphens:manual; overflow-wrap:normal; word-break:normal; }
  html .ue-k-titel .ue-k-klar { font-size:11.5px; }
  html .ue-k-unter { font-size:12.5px; line-height:1.35; }
  html .ue-k-schloss { font-size:11.5px; gap:4px; }
  html .ue-k-pfeil { right:10px; bottom:10px; width:28px; height:28px; }
  html .ue-k-vorschau { height:44px; min-height:44px; padding-right:34px; }
  html .ue-abschnitt-kopf { font-size:14px; }
  html .ue-vs-balken { gap:3px; }
  html .ue-vs-balken small { display:none; }
  html .ue-vs-podest b { font-size:11px; }
  html .ue-vs-liste li { font-size:12px; gap:5px; }
}

/* ===== Punkt 228 (Regel 28): Handy – Kacheln und Leisten scrollen nie seitlich, sie brechen um bzw. stapeln =====
   Desktop-Wischflächen stehen in den Seiten-CSS nur noch unter @media (min-width:768px). Ausnahme: automatische Laufbänder (Ticker, Kennzahlen-Band).
   Prüfung: werkzeuge/stapeln-pruefen.py (390 px) und statisch in werkzeuge/alles-pruefen.sh --schnell. */
@media (max-width:767px) {
  /* Reiterleisten: mehrere Zeilen statt Wischen; aktive Reiter gleich fett wie die anderen → gleiche Breiten, kein Umbruchwechsel beim Klicken (Regel 26) */
  html body main .reiter-leiste, html body main :is(.st-reiter, .ch-reiter).reiter-leiste, html body main .sx-reiter:not(.st-reiter), html body main .sx-reiter.sx-rg-leiste:not(.st-reiter) {
    display:flex !important; flex-wrap:wrap !important; width:100% !important; height:auto !important; min-height:var(--rl-hoehe, 44px); box-sizing:border-box;
    overflow:visible !important; padding:4px !important; gap:4px !important; row-gap:4px !important; justify-content:flex-start !important; align-items:stretch; }
  html body main .reiter-leiste a, html body main .sx-reiter:not(.st-reiter) a { flex:1 1 auto !important; justify-content:center; min-height:44px; box-sizing:border-box; padding:0 12px !important; }
  html body main .reiter-leiste a.an, html body main .reiter-leiste a[aria-current="page"], html body main .sx-reiter:not(.st-reiter) a.an, html body main .sx-reiter:not(.st-reiter) a[aria-current="page"] { font-weight:600; }
  html body main .sx-reiter:not(.st-reiter) { padding:4px !important; }
  /* mehrzeilige Leisten kleben nicht oben (würden sonst den halben Bildschirm verdecken) */
  html .sx-teilseite > .sx-klebe, html body main :is(.st-reiter, .ch-reiter) { position:static !important; }
  html .kz-reiter { display:flex; flex-wrap:wrap; border-radius:18px; }
  html .kz-reiter button { flex:1 1 auto; justify-content:center; min-height:44px; box-sizing:border-box; }
  html .orte-reiter .orr-haupt, html .orte-reiter .orr-chips { flex-wrap:wrap; }
  html :is(.st-reiter, .ch-reiter, .konto-nav) { flex-wrap:wrap; }

  /* Kachel-Reihen und Karussells: untereinander bzw. im Raster */
  html .rh-band { grid-auto-flow:row; grid-template-columns:minmax(0, 1fr); grid-auto-columns:auto; }
  html :is(.kz-board, .gb-kanban) { grid-auto-flow:row; grid-template-columns:minmax(0, 1fr); grid-auto-columns:auto; }
  html .ok-mini-reihe { flex-wrap:wrap; }
  html .ok-mini-reihe > .ok-mini { flex:1 1 140px; min-width:0; }
  html .tage { display:grid; grid-template-columns:repeat(auto-fill, minmax(76px, 1fr)); }
  html .tage > .tag { min-width:0; }
  html .std-reihe { display:grid; grid-template-columns:repeat(auto-fill, minmax(52px, 1fr)); }
  html .std-reihe > .std { min-width:0; }
  html .ts-zl-fotos > a { flex:1 1 100px; width:auto; }
  html .km-mockups > * { flex:1 1 140px; min-width:0; }
  /* Wochen-Übersicht (Freunde × 7 Tage): Name über der Zeile, 7 schmale Tages-Spalten */
  html .wk-zeile { min-width:0; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:3px; }
  html .wk-zeile > :first-child { grid-column:1 / -1; }
  html .wk-tag { min-width:0; font-size:11px; padding:4px 1px; }
  /* Mitgliederlisten (Gruppen/Gemeinde): lange Namen kürzen statt die Liste seitlich scrollbar zu machen */
  html .gm-liste { grid-template-columns:minmax(0, 1fr); }
  html .gm-liste li > .gm-person { flex:1 1 auto; min-width:0; }
  html .gm-liste li > .gm-person :is(b, small) { overflow:hidden; text-overflow:ellipsis; }
  /* Diagramme schrumpfen statt zu wischen */
  html .wind-band { gap:1px; }
  html .wind-band > .ws { flex:1 1 0; min-width:0; }
  html .wind-band > .ws small { font-size:9px; }
  html .heatmap { min-width:0; }
  html .gb-heat { width:100%; grid-auto-columns:minmax(0, 1fr); grid-template-rows:repeat(7, auto); gap:1px; }
  html .gb-heat i { width:auto; height:auto; aspect-ratio:1; border-radius:1px; }

  /* Breite Tabellen: assets/mobil-stapeln.js prüft die Breite; erst Umbruch in den Zellen (.hp-eng), reicht das nicht: je Zeile eine Karte (.hp-stapel),
     Spaltenname aus dem Tabellenkopf als Beschriftung (data-label). Ohne Skript bleiben Tabellen unverändert. */
  html table.hp-eng :is(th, td) { white-space:normal !important; overflow-wrap:break-word; hyphens:auto; -webkit-hyphens:auto; }
  html table.hp-stapel, html table.hp-stapel > :is(tbody, tfoot), html table.hp-stapel > :is(tbody, tfoot) > tr { display:block !important; width:100% !important; min-width:0 !important; max-width:100% !important; box-sizing:border-box; }
  html table.hp-stapel > thead { position:absolute !important; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  html table.hp-stapel > caption { display:block; text-align:left; }
  html table.hp-stapel > :is(tbody, tfoot) > tr { margin:0 0 8px; padding:6px 12px; border-radius:12px; background:color-mix(in srgb, currentColor 6%, transparent); border:1px solid color-mix(in srgb, currentColor 16%, transparent); }
  html table.hp-stapel > :is(tbody, tfoot) > tr > :is(td, th) { display:flow-root !important; width:auto !important; min-width:0 !important; max-width:none !important; height:auto !important; box-sizing:border-box;
    padding:5px 0 5px 42% !important; border:0 !important; text-align:left !important; white-space:normal !important; overflow-wrap:break-word; }
  html table.hp-stapel > :is(tbody, tfoot) > tr > :is(td, th):not([data-label]) { padding-left:0 !important; }
  html table.hp-stapel > :is(tbody, tfoot) > tr > :is(td, th)[data-label]::before { content:attr(data-label); float:left; width:calc(42% / .58); margin-left:calc(-42% / .58); padding-right:10px; box-sizing:border-box;
    font-size:12px; font-weight:700; line-height:1.5; opacity:.78; text-transform:none; letter-spacing:0; overflow-wrap:break-word; }
  html table.hp-stapel > :is(tbody, tfoot) > tr > :is(td, th):empty, html table.hp-stapel .hp-weg { display:none !important; }
  html table.hp-stapel > :is(tbody, tfoot) > tr > :is(td, th) * { white-space:normal; overflow-wrap:break-word; max-width:100%; }
  html table.hp-stapel > tbody > tr.hp-kopfzeile { display:none !important; }   /* Spaltennamen stehen als Beschriftung in jeder Karte */
}

/* ===== Punkt 302: Reiter am Handy „Wichtigste + Mehr“ =====
   Leisten mit mehr als 6 Reitern (seite12.php, Klasse .sx-r-mehr): 5 Reiter + „Mehr“ in zwei festen Zeilen à 3 Felder (feste Höhe → kein Springen,
   der aktive Reiter ersetzt bei Bedarf das 5. Feld). „Mehr“ öffnet mit JS ein Blatt von unten (seite12.css), ohne JS klappt die Liste unter der Leiste auf.
   Prüfung: werkzeuge/reiter-mehr-pruefen.py. */
@media (max-width:767px) {
  html body main .sx-reiter.sx-r-mehr:not(.st-reiter), html body main .sx-reiter.sx-rg-leiste.sx-r-mehr:not(.st-reiter) {
    position:relative; display:grid !important; grid-template-columns:repeat(3, minmax(0, 1fr)); --rm-zeile:66px; grid-template-rows:repeat(2, var(--rm-zeile)); grid-auto-rows:0;
    height:calc(2 * var(--rm-zeile) + 4px + 8px) !important; min-height:0; padding:4px !important; gap:4px !important; overflow:visible !important; }
  html body main .sx-r-mehr .sx-rg, html body main .sx-r-mehr .sx-rg-links { display:contents !important; }
  html body main .sx-r-mehr .sx-rg-name { display:none !important; }
  html body main :is(.sx-reiter.sx-r-mehr:not(.st-reiter) .sx-rg-links, .sx-reiter.sx-r-mehr:not(.st-reiter)) > a.sx-r-weg.sx-r-weg { display:none !important; }
  html body main .sx-reiter.sx-r-mehr:not(.st-reiter) .sx-rg-links > a, html body main .sx-reiter.sx-r-mehr:not(.st-reiter) > a, html body main .sx-r-mehr .sx-mehr > summary {
    position:relative; display:flex !important; flex-direction:column; align-items:center; justify-content:center !important; gap:3px !important; min-width:0; min-height:44px; height:var(--rm-zeile, 66px); box-sizing:border-box;
    padding:4px 4px !important; border-radius:12px !important; font-size:13px !important; line-height:1.15; text-align:center; overflow:hidden; }
  html body main :is(.sx-reiter.sx-r-mehr:not(.st-reiter) .sx-rg-links, .sx-reiter.sx-r-mehr:not(.st-reiter)) > a > span:not(.zahl), html body main .sx-r-mehr .sx-mehr > summary > span:not(.zahl) {
    display:block; max-width:100%; max-height:calc(2 * 1.15em + 13px); overflow:hidden; white-space:normal; overflow-wrap:break-word; hyphens:auto; -webkit-hyphens:auto; }
  html body main :is(.sx-reiter.sx-r-mehr:not(.st-reiter) .sx-rg-links, .sx-reiter.sx-r-mehr:not(.st-reiter)) > a .kt-kl { display:block; font-size:10.5px; font-weight:500; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  html body main :is(.sx-reiter.sx-r-mehr:not(.st-reiter) .sx-rg-links, .sx-reiter.sx-r-mehr:not(.st-reiter)) > a.sx-r-teil { font-size:13px !important; font-weight:600; }
  html body main .sx-reiter.sx-r-mehr:not(.st-reiter) :is(.sx-rg-links > a, nav > a, .sx-mehr > summary) .sx-ic { flex:none; width:18px; height:18px; }
  html body main .sx-reiter.sx-r-mehr:not(.st-reiter) :is(.sx-rg-links > a, nav > a, .sx-mehr > summary) > .zahl { position:absolute; top:3px; right:3px; min-width:17px; height:17px; padding:0 4px; font-size:10px; }
  html body main .sx-r-mehr .sx-mehr { display:block; min-width:0; }
  html body main .sx-r-mehr .sx-mehr > summary { color:var(--rl-text, #242a3b); font-weight:600; }
  html body main .sx-r-mehr .sx-mehr > summary::after { content:""; width:7px; height:7px; margin-top:-2px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); opacity:.7; flex:none; }
  html body main .sx-r-mehr .sx-mehr > summary:hover, html body main .sx-r-mehr .sx-mehr > summary:focus-visible, html body main .sx-r-mehr .sx-mehr[open] > summary { background:var(--rl-hover, rgba(98,80,143,.12)); }
  html body main .sx-r-mehr .sx-mehr > summary:focus-visible { outline:2px solid var(--g1, #62508f); outline-offset:-2px; }
  html body main .sx-r-mehr .sx-mehr > summary .sx-ic { color:var(--g1, #62508f); }
  /* ohne JS: Liste klappt unter der Leiste auf (mit JS wandert das Blatt in ein <dialog>) */
  html body main .sx-r-mehr .sx-mehr[open] > .sx-mehr-blatt { position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:60; display:flex; flex-direction:column; max-height:60vh;
    border-radius:16px; background:#fff; color:#242a3b; box-shadow:0 18px 40px rgba(10,14,24,.35); overflow:hidden; }
}

/* Punkt 299 (Importe I1): Import-Streifen am Handy – einzeilig, volle Breite mit 8 px Rand, Knöpfe nur als Zeichen (Name bleibt als aria-label),
   Tippflächen 44 px (Streifen 48 px hoch, schwebt weiter über dem Inhalt – Regeln 26, 28) */
@media (max-width:767px) {
  html body .is-streifen { --is-h:48px; left:8px; right:8px; width:auto; top:calc(var(--kopf-unten, 60px) + 4px); font-size:13px; }
  html body .is-streifen .is-innen { gap:6px; padding:0 2px 0 8px; }
  html body .is-streifen .is-lbl { display:none; }
  html body .is-streifen .is-knopf { height:44px; min-width:44px; padding:0; }
  html body .is-streifen .is-knopf[data-is="pause"], html body .is-streifen .is-knopf[data-is="weiter"] { min-width:44px; }
  html body .is-streifen .is-knopf.is-zu { width:44px; }
  html body .is-streifen .is-gl { font-size:13px; }
  html body .is-streifen .is-link { height:44px; padding:0 6px; }
  html body .is-streifen .is-text .kt-kl { font-size:11.5px; }
  html body .im-zeile.iw-zeile { grid-template-columns:1fr; }   /* Punkt 300: Fehler-Liste untereinander (Regel 28) */
  html body .iw-zeile .iw-erneut, html body .iw-fuss .iw-erneut { min-height:44px; }
}
@media (pointer:coarse) and (min-width:768px) {
  html body .is-streifen { --is-h:52px; }
  html body .is-streifen .is-knopf { height:44px; min-width:44px; }
  html body .is-streifen .is-link { height:44px; }
}
