/* Ippon-Kalender, Oberfläche. Kein Framework, keine Build-Kette. */

:root {
  --text: #1d2327;
  --leise: #5f6b73;
  --linie: #d9dee2;
  --flaeche: #f5f7f8;
  --akzent: #00613a;
  --akzent-hell: #e3f1ea;
  --warnung: #9a4a00;
  --warnung-hell: #fff2e0;
  --rot: #a3161d;
  --rot-hell: #fbe7e8;
  --gelb: #c9a100;
  --grund: #fff;
  --auf-akzent: #fff;
  /* What goes out (ADR-024) and what is planned: green, whatever the accent. */
  --oeffentlich: #00613a;
  --oeffentlich-hell: #e3f1ea;
  /* Notes (championships without the club): a full blue, as in the plan,
     apart from the grey of what is past. */
  --hinweis: #1a5fb4;
  /* The menu bar at the top. */
  --kopf-grund: var(--flaeche);
  --kopf-text: var(--text);
  --kopf-marke: var(--akzent);
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.5;
}

/* Dunkel: nach der Einstellung des Geräts, oder fest gewählt über den
   Umschalter oben rechts (data-farbe am html-Element, im Browser gemerkt).
   colors in config.yaml überschreibt beide Fassungen (base.html, ADR-032). */
@media (prefers-color-scheme: dark) {
  :root:not([data-farbe="hell"]) {
    --text: #e3e7ea; --leise: #9aa6ae; --linie: #3a4349; --flaeche: #20262a;
    --akzent: #4fbf8a; --akzent-hell: #1d3a2d; --warnung: #f0a35c; --warnung-hell: #3a2a17;
    --rot: #f07178; --rot-hell: #3d1f22; --gelb: #d9b640; --grund: #15191c; --auf-akzent: #0d1512;
    --oeffentlich: #4fbf8a; --oeffentlich-hell: #1d3a2d; --hinweis: #62a6f0;
    color-scheme: dark;
  }
}
:root[data-farbe="dunkel"] {
  --text: #e3e7ea; --leise: #9aa6ae; --linie: #3a4349; --flaeche: #20262a;
  --akzent: #4fbf8a; --akzent-hell: #1d3a2d; --warnung: #f0a35c; --warnung-hell: #3a2a17;
  --rot: #f07178; --rot-hell: #3d1f22; --gelb: #d9b640; --grund: #15191c; --auf-akzent: #0d1512;
  --oeffentlich: #4fbf8a; --oeffentlich-hell: #1d3a2d; --hinweis: #62a6f0;
  color-scheme: dark;
}

body { margin: 0; background: var(--grund); }
/* Fields as on the published plan (ADR-043), one size on every page: the
   writing of the text, never bold, the padding of the plan's filter. 16px
   also keeps Safari on a phone from zooming in on a field. */
input, select, textarea { font: inherit; font-size: var(--schrift-text); font-weight: 400; background: var(--grund); color: var(--text);
                          border: 1px solid var(--linie); border-radius: var(--rund-feld); }
select, input:where(:not([type="checkbox"], [type="radio"], [type="color"], [type="file"])) { padding: 0.45rem 0.7rem; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* The menu stays at the top; --kopf is its height (kopf.js), for whatever
   else sticks below it. */
header {
  /* Name, menu and buttons centred on one line; the menu's underline is
     balanced by as much space above, so its text sits in the middle too. */
  display: flex; align-items: center; gap: 0.5rem 1.25rem;
  padding: 0.6rem calc(var(--seite) + var(--leiste)) 0.6rem var(--seite);
  background: var(--kopf-grund); color: var(--kopf-text);
  /* The accent along the bottom, as under the bar of the published plan. */
  border-bottom: 4px solid var(--akzent);
  position: relative; z-index: 10;
}
header .marke { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--schrift-titel); font-weight: 700; color: var(--kopf-marke); text-decoration: none;
  flex: none; white-space: nowrap; }
/* The pages as pills, the one you are on filled in the accent, spread over
   the width between the name and colour and login, which stay at the right.
   What does not fit goes into "Mehr" (kopf.js); without it they wrap. */
header nav { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; justify-content: space-evenly; gap: 0.15rem; }
header nav.eng { flex-wrap: nowrap; }
/* Without login only the three pages of the plan: beside the name, not spread. */
header nav.wenige { justify-content: flex-start; }
header nav a { white-space: nowrap; flex: none; color: var(--kopf-text); text-decoration: none; padding: 0.35rem 0.7rem; border-radius: 999px; opacity: 0.85; }
@media (hover: hover) { header nav a:hover { opacity: 1; background: color-mix(in srgb, var(--kopf-text) 12%, transparent); } }
header nav a[aria-current="page"] { opacity: 1; background: var(--akzent); color: var(--auf-akzent); }
/* "Mehr": a pill with a caret that opens the pages that did not fit below
   it (kopf.js); filled in the accent too when the page is one of them. */
header .gruppe { position: relative; flex: none; }
header .gruppe-knopf { font: inherit; color: var(--kopf-text); background: none; border: 0; padding: 0.35rem 0.7rem;
  border-radius: 999px; opacity: 0.85; cursor: pointer; white-space: nowrap; }
header .gruppe-knopf::after { content: "▾"; margin-left: 0.35rem; font-size: 0.8em; }
header .gruppe-knopf[aria-expanded="true"]::after { content: "▴"; }
@media (hover: hover) { header .gruppe-knopf:hover { opacity: 1; filter: none;
  background: color-mix(in srgb, var(--kopf-text) 12%, transparent); } }
header .gruppe-knopf.hier { opacity: 1; background: var(--akzent); color: var(--auf-akzent); }
/* The lists that open below the bar: "Mehr", and on a phone the whole menu. */
header .gruppe-liste, header.offen .menue { background: var(--kopf-grund); border-radius: var(--rund-karte);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.25); z-index: 20; }
header .gruppe-liste { display: none; position: absolute; top: calc(100% + 0.4rem); right: 0; min-width: 100%;
  flex-direction: column; gap: 0.15rem; padding: 0.4rem; }
header .gruppe.offen .gruppe-liste { display: flex; }
/* Light, dark or as the device says: a round sign, the words for the phone's menu. */
header button.farbe { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 2.2rem; height: 2.2rem; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--kopf-text) 12%, transparent); color: var(--kopf-text); }
.farbe-symbol { width: 1rem; height: 1rem; flex: none; box-sizing: border-box; border-radius: 50%; border: 2px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
:root[data-farbe="hell"] .farbe-symbol { background: none; }
:root[data-farbe="dunkel"] .farbe-symbol { background: currentColor; }
.farbe-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Menu, colour and login are one group only for the phone, where they fold
   behind a button; on a wide screen the group is no box of its own. */
header .menue { display: contents; }
header .menue-knopf { display: none; }

/* The window in three: menu on top, footer at the bottom, between them the
   page, which alone scrolls, its scrollbar beside it from menu to footer
   (ADR-050). A container, so what sticks in it measures by its height. */
body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
body > header, body > footer, .offline-zeile { flex: none; }
/* The scrollbar's room at the right, where it is (--leiste, kopf.js). Positioned, so what is placed absolutely in the page (texts
   only for screen readers, hidden inputs) is placed in it and scrolls with
   it, not reaching past the window. */
.rollbereich { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-gutter: stable;
  container-type: size; outline: none; }
/* A web address, a file or folder name longer than the line breaks where it
   must, not out of the page. */
/* The margin of every page, menu and footer in line with it: how wide the
   content gets at most, and the room at its sides; less on a phone.
   --seite is where the content begins on a bar as wide as the window, the
   menu or the footer: the page beside the scrollbar (--leiste, measured by
   kopf.js), its content centred in it. A percentage of the bar's width,
   resolved where it is used. */
:root { --leiste: 0px; }
body { --breite: 80rem; --rand: 1rem;
       --seite: max(var(--rand), calc((100% - var(--leiste) - var(--breite)) / 2 + var(--rand))); }
/* The page of an event wider, its PDF beside the details; menu and footer with it. */
body:has(.termin-seite) { --breite: 100rem; }
main { box-sizing: border-box; max-width: var(--breite); margin: 0 auto; padding: 1rem var(--rand) 2rem; overflow-wrap: break-word; }
/* Text no wider than one reads at a glance, however wide the page. */
main p { max-width: 70ch; }
/* The plan's pages Kalender, Jahrgänge, Downloads (ADR-053): when it was
   published under the heading, then its part. */
.stand-zeile { margin: -0.5rem 0 1rem; }
h1 { font-size: var(--schrift-seite); line-height: 1.2; letter-spacing: -0.01em; margin: 0.75rem 0 0.75rem; }
h2 { font-size: var(--schrift-titel); margin: 2rem 0 0.5rem; }
h3 { font-size: var(--schrift-text); color: var(--leise); margin: 1.25rem 0 0.25rem; }
summary h2 { display: inline; }
/* A box's heading sits at its top, one size and spacing in every box. */
:is(.abruf-kasten, .veroeffentlichen-kasten, .oeffentlich-kasten, .automatisch, .app-hilfe, .angebote) h2 { margin: 0 0 0.25rem; }
/* A fold that opens something to change is coloured as a link; one that
   only shows something to read is grey. Both small, never bold. */
:is(.bearbeiten, .hinzufuegen, .qr-aussehen, .notiz, .fassung) > summary { cursor: pointer; font-size: var(--schrift-neben); font-weight: 400; color: var(--akzent); }
:is(.notiz, .fassung) > summary { color: var(--leise); }
.anzahl {
  display: inline-block; min-width: 1.5em; padding: 0 0.4em; border-radius: 1em;
  background: var(--akzent-hell); color: var(--akzent);
  font-size: var(--schrift-klein); font-weight: 700; text-align: center;
}
.hinweis { color: var(--leise); }
a { color: var(--akzent); }

/* Overview: the numbers on top as tiles, the lists below as cards. */
.kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; margin: 1rem 0 1.25rem; }
.kachel { display: block; padding: 0.9rem 1.1rem; border-radius: var(--rund-karte); background: var(--flaeche); color: var(--text); text-decoration: none; }
.kachel b { display: block; font-size: var(--schrift-zahl); line-height: 1.15; font-variant-numeric: tabular-nums; }
.kachel span { color: var(--leise); font-size: var(--schrift-neben); }
@media (hover: hover) { .kachel:hover { outline: 2px solid var(--akzent); outline-offset: -2px; } }
.kachel.offen { background: var(--akzent-hell); }
.kachel.offen b { color: var(--akzent); }
.kachel.gut b { color: var(--oeffentlich); }
.karten-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
/* The parts of the overview without a box of their own: the cards in them
   are the boxes, as on every other page (ADR-046). */
.teil { min-width: 0; scroll-margin-top: 1rem; }
.teil.ganz { grid-column: 1 / -1; }
.teil h2 { margin-top: 1rem; }
.teil > .hinweis { font-size: var(--schrift-neben); margin-top: 0; }
.eintrag.keine { color: var(--oeffentlich); font-weight: 600; }
.eintrag.keine::before { content: "✓ "; }
/* Eingang: the sources the runs fetch, each a pill with its last fetch. */
.quellen { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin: 0.75rem 0 1rem; }
.quellen .feld-name { font-size: var(--schrift-klein); font-weight: 600; color: var(--leise); }
.quellen-liste { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.quelle { display: inline-flex; align-items: baseline; gap: 0.4rem; padding: 0.2rem 0.8rem; border: 1px solid var(--linie);
  border-radius: 999px; background: var(--grund); font-size: var(--schrift-neben); }
.quelle a { color: var(--text); font-weight: 600; text-decoration: none; }
.quelle strong { font-weight: 600; }
@media (hover: hover) { .quelle a:hover { color: var(--akzent); text-decoration: underline; } }
.quelle .hinweis { font-size: var(--schrift-klein); }
.quellen > a.hinweis { font-size: var(--schrift-neben); }

/* Classes the source does not name, taken from the plan: quiet. */
.aus-plan .pille { background: none; box-shadow: inset 0 0 0 1px var(--linie); color: var(--leise); }
@media (max-width: 40rem) {
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .kachel b { font-size: var(--schrift-seite); }
  .karten-raster { grid-template-columns: minmax(0, 1fr); }
}

/* Stapel */
.liste { list-style: none; margin: 0; padding: 0; }
.eintrag { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--linie); }
@media (hover: hover) { .eintrag:hover { background: var(--flaeche); } }
.zeile { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: baseline; }
/* Its parts no wider than the line, so a long name in one breaks (main). */
.zeile > * { min-width: 0; }
.datum { font-variant-numeric: tabular-nums; min-width: 8.5rem; color: var(--leise); }
.klassen { min-width: 6rem; font-weight: 600; }
.titel { font-weight: 600; }
.ort { color: var(--leise); }
/* Indented below the date only inside a list entry; elsewhere a warning is plain text. */
.eintrag > .bezug, .eintrag > .aenderung, .eintrag > .meta, .eintrag > .warnung { margin-left: 9.25rem; font-size: var(--schrift-neben); }
.bezug { color: var(--leise); }
.aenderung { color: var(--warnung); }
.meta { color: var(--leise); font-size: var(--schrift-klein); overflow-wrap: anywhere; }
.warnung { color: var(--warnung); }
span.status {
  font-size: var(--schrift-marke); padding: 0 0.4em; border-radius: var(--rund-marke);
  background: var(--flaeche); border: 1px solid var(--linie); color: var(--leise);
}
/* The marker of an event a pill among the others on its card. */
.marke-rot { display: inline-block; padding: 0 0.5rem; border: 1px solid transparent; border-radius: 999px; background: var(--rot-hell); color: var(--rot);
  font-size: var(--schrift-marke); font-weight: 700; white-space: nowrap; }
.knoepfe { margin: 0.4rem 0 0 9.25rem; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.knoepfe .warnung { margin-left: 0.5rem; }

/* Buttons as the plan's: rounded, the writing firm (ADR-043). */
button {
  font: inherit; font-size: var(--schrift-neben); font-weight: 600; cursor: pointer;
  padding: 0.35rem 0.9rem; border-radius: var(--rund-feld);
  border: 1px solid var(--akzent); background: var(--akzent); color: var(--auf-akzent);
}
@media (hover: hover) { button:hover { filter: brightness(1.1); } }
button.leise { background: var(--grund); color: var(--text); border-color: var(--linie); font-weight: 400; }
button[disabled] { cursor: default; background: var(--akzent-hell); color: var(--akzent); border-color: var(--akzent-hell); filter: none; }
button.htmx-request { opacity: 0.5; }
/* The one action of a page or a box, one size everywhere. */
button.gross { font-size: var(--schrift-text); padding: 0.6rem 1.4rem; margin-left: 0; }
/* A small one beside a value or an address. */
button.klein, table.felder button, .angebote button { font-size: var(--schrift-klein); padding: 0.15rem 0.6rem; }

/* A choice of one: all alike, the current one filled. Used for the status.
   Same writing in both, no tick before it: the parts keep their width. */
.wahl button, .wahl button[disabled] { background: var(--grund); color: var(--text); border-color: var(--linie); }
.wahl button[aria-pressed="true"] { background: var(--akzent); color: var(--auf-akzent); border-color: var(--akzent); }
/* The status as one switch of several parts. */
.segmente { display: inline-flex; flex-wrap: wrap; }
.segmente button { border-radius: 0; margin: 0; }
.segmente button + button { margin-left: -1px; }
.segmente button:first-child { border-radius: var(--rund-feld) 0 0 var(--rund-feld); }
.segmente button:last-child { border-radius: 0 var(--rund-feld) var(--rund-feld) 0; }

/* Wide tables scroll on their own instead of pushing the page sideways. */
.breit { overflow-x: auto; max-width: 100%; }

/* A find's verdict as a solid stripe at the left, on a note's dashed
   card too (.terminkarte.hinweis, bausteine.css). */
.fund.changed { border-left: 3px solid var(--warnung); }
.fund:is(.section, .candidate) { border-left: 3px solid var(--gelb); }
.erledigt { background: var(--oeffentlich-hell); }
.erledigt .ergebnis { color: var(--oeffentlich); font-weight: 700; }
/* Thrown away: done too, but nothing to be glad of, quiet and struck. */
.erledigt.verworfen { background: var(--flaeche); }
.erledigt.verworfen .ergebnis { color: var(--leise); }
.erledigt.verworfen .karte-name { text-decoration: line-through; color: var(--leise); }
.erledigt.verworfen .blatt { opacity: 0.6; }
.problem { background: var(--warnung-hell); }
.termin.status-planned { background: var(--oeffentlich-hell); }

/* The filter as on the published plan (bausteine.css). QR code and month
   preview put their labels straight into it, named above their field. */
.filter { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; margin-top: 0.75rem; }
.filter-felder { flex: 1; }
.filter .feld-klassen { flex-basis: 100%; }
/* Termine: the summary is the folded filter of a narrow screen, as on the
   plan; on a wide one the fields are always open and it has nothing to say. */
details.filter { display: block; }
details.filter > summary { display: none; }
@media (max-width: 40rem) {
  details.filter { padding: 0; }
  details.filter > summary { display: flex; gap: 0.5rem; align-items: baseline; padding: 0.75rem 0.875rem;
                             cursor: pointer; list-style: none; }
  details.filter > summary::-webkit-details-marker { display: none; }
  details.filter > summary::after { content: "▾"; color: var(--leise); }
  details.filter[open] > summary::after { content: "▴"; }
  details.filter > summary strong { flex: none; }
  details.filter > summary .auswahl { flex: 1; min-width: 0; color: var(--leise); font-size: var(--schrift-neben);
                                      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  details.filter > summary .zaehler { margin: 0; flex: none; }
  details.filter .filter-felder { padding: 0 0.875rem 0.875rem; }
}
.filter > label { display: flex; flex-direction: column; gap: 0.3rem; font-size: var(--schrift-klein); font-weight: 600; color: var(--leise); }
.legende { font-size: var(--schrift-neben); }
/* Termine with the past: opened at what is coming (termine.js), with room above. */
#termine-liste :is(.monat-gruppe, .terminkarte) { scroll-margin-top: 0.75rem; }

/* What the cards of the interface add to the plan's (ADR-046): planned,
   but nobody in charge yet; not decided or rejected, the name quiet. */
.terminkarte.offen { border-color: var(--warnung); }
.terminkarte:is(.status-new, .status-rejected):not(.termin) .karte-name { font-style: italic; color: var(--leise); }
.terminkarte.termin.status-rejected .karte-name { text-decoration: line-through; color: var(--leise); }
/* A warning among the markers of a card. */
.marke-warnung { display: inline-block; padding: 0 0.5rem; border-radius: 999px; background: var(--warnung-hell); color: var(--warnung);
  font-size: var(--schrift-marke); font-weight: 700; white-space: nowrap; }
.karte-hinweise :is(.relevanz, .marke-rot, .ergebnis) { white-space: nowrap; }
/* Proposed as a note, not yet one: the note's colour, dashed. */
.verein.notiz.vorschlag { border-style: dashed; }
/* The announcements of a card as small buttons. */
.pdf-link { display: inline-block; padding: 0.05rem 0.5rem; border: 1px solid var(--linie); border-radius: var(--rund-feld); color: var(--text);
  font-size: var(--schrift-marke); font-weight: 600; text-decoration: none; }
.pdf-link::before { content: "↗ "; color: var(--akzent); }
@media (hover: hover) { .pdf-link:hover { border-color: var(--akzent); } }
/* The two events of a clash in one frame. */
.karten-paar { padding: 0.5rem; border: 1px dashed var(--warnung); border-radius: var(--rund-karte); }
/* The status as a pill in its colour. */
.status-marke { display: inline-block; padding: 0 0.6rem; border-radius: 999px; font-size: var(--schrift-marke); font-weight: 700; white-space: nowrap;
  background: var(--flaeche); color: var(--leise); border: 1px solid var(--linie); }
.status-marke.status-planned { background: var(--oeffentlich-hell); color: var(--oeffentlich); border-color: transparent; }
.status-marke.status-note { background: color-mix(in srgb, var(--hinweis) 15%, var(--grund)); color: var(--hinweis); border-color: transparent; }
.status-marke.status-cancelled { background: var(--rot-hell); color: var(--rot); border-color: transparent; }
.status-marke.status-new { background: var(--warnung-hell); color: var(--warnung); border-color: transparent; }
.status-marke.status-rejected { text-decoration: line-through; }

@media (max-width: 40rem) {
  .eintrag > .bezug, .eintrag > .aenderung, .eintrag > .meta, .eintrag > .warnung, .knoepfe { margin-left: 0; }
  .datum { min-width: 0; }
}

/* Termin */
.pfad { margin-top: 0; }
/* Jumps within the long event page, at hand while scrolling. */
.sprung { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 0 0.25rem; padding: 0; margin-bottom: 0.75rem;
  background: var(--grund); border-bottom: 1px solid var(--linie); font-size: var(--schrift-neben); }
/* Tabs: quiet until pointed at. */
.sprung a { padding: 0.45rem 0.85rem; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--leise); text-decoration: none; }
@media (hover: hover) { .sprung a:hover { color: var(--text); border-bottom-color: var(--akzent); } }
.pfad { font-size: var(--schrift-neben); }
.termin-seite section[id] { scroll-margin-top: 2.5rem; }
.termin-seite { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 1fr); gap: 2rem; align-items: start; }
/* The event page compares a wide table with the PDF: it gets the whole screen. */
.spalte-pdf { position: sticky; top: 2.5rem; max-height: calc(100cqh - 3rem); overflow-y: auto; }
.spalte-pdf .fassung.beiseite > summary { opacity: 0.7; }
.spalte-pdf .pdf { display: block; box-sizing: border-box; width: 100%; height: 65vh; border: 1px solid var(--linie); }
.fassung { margin: 0 0 0.5rem; }
.fassung .pdf { margin-top: 0.3rem; }
.fahrt { margin: 0.3rem 0; }
/* Where two PDFs disagree: the warning's tint, light and dark. */
.abweichend { background: var(--warnung-hell); }
.stern { color: var(--akzent); }
.abfahrt td, .abfahrt th { white-space: nowrap; padding-right: 0.8rem; }
a.titel { color: var(--text); text-decoration: none; }
@media (hover: hover) { a.titel:hover { color: var(--akzent); text-decoration: underline; } }

.kopf { padding-bottom: 0.5rem; border-bottom: 1px solid var(--linie); }
.kopf form { display: grid; gap: 0.5rem; }
/* The title as a line that may wrap (zeile.js): as high as its text, as wide
   as the head, a long title whole on a phone too. */
.titel-eingabe { display: block; box-sizing: border-box; width: calc(100% + 0.3rem); field-sizing: content; resize: none; overflow: hidden;
  font: inherit; font-size: var(--schrift-gross); font-weight: 700; line-height: 1.3; border: 1px solid transparent; padding: 0.1rem 0.3rem; margin-left: -0.3rem;
  background: none; color: inherit; overflow-wrap: anywhere; }
.titel-eingabe:focus { border-color: var(--linie); }
@media (hover: hover) { .titel-eingabe:hover { border-color: var(--linie); } }
.kopf-zeile { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.kopf .datum { min-width: 0; }
:is(.kopf-zeile, .abschnitt-tag) > label:has(select, input:not([type="checkbox"])) { display: flex; flex-direction: column; gap: 0.3rem;
  font-size: var(--schrift-klein); font-weight: 600; }
.kopf .datum-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
label { font-size: var(--schrift-neben); color: var(--leise); }
.notiz textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 0.25rem; }
.kopf-zeile > button { margin-left: auto; }
.knoepfe-links { margin-left: 0; margin-top: 0.5rem; }
.knoepfe .trenner { flex: 1; }
.verein-knopf:not(.an) .stern { color: var(--leise); }
.verein-knopf.an { border-color: var(--akzent); }
/* On the filled button the star takes the button's writing, red on red would vanish. */
.verein-knopf.an .stern { color: inherit; }
/* Pressed, it reads like the red marker it replaces. */
/* Abgesagt is a status like the others, in red when it is the one. */
.wahl button.status-cancelled[aria-pressed="true"] { background: var(--rot-hell); color: var(--rot); border-color: var(--rot); }
.kopf form > .oeffentlich-marke { justify-self: start; }

.abschnitt { padding: 0.4rem 0; border-bottom: 1px solid var(--linie); }
.abschnitt-personen { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-top: 0.4rem; }
.abschnitt-tag { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; }
.abschnitt-tag.neu { margin-top: 0.4rem; }
.abschnitt .zeile { margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; }
.abschnitt .zeile .datum-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.abschnitt .bearbeiten[open], .archiv .bearbeiten[open] { margin-top: 0.3rem; padding: 0.5rem 0.6rem; background: var(--flaeche); border-radius: var(--rund-feld); }
.abschnitt .bearbeiten[open] > summary, .archiv .bearbeiten[open] > summary { margin-bottom: 0.4rem; }
.angebote { margin: 0.75rem 0; padding: 0.5rem 0.75rem; border: 1px solid var(--akzent-hell); border-radius: var(--rund-karte); }
.angebote button { margin-left: 0.5rem; }
.abschnitt-personen fieldset { border: 1px solid var(--linie); border-radius: var(--rund-feld); padding: 0.25rem 0.6rem; margin: 0; }
.abschnitt-personen legend { font-size: var(--schrift-neben); color: var(--leise); }
.haken { color: var(--text); margin-right: 0.6rem; white-space: nowrap; }

/* Fixed columns: a long value wraps in its cell instead of widening the
   table into the column of the PDF. */
table.felder { width: 100%; border-collapse: collapse; font-size: var(--schrift-neben); table-layout: fixed; }
table.felder th, table.felder td { text-align: left; vertical-align: top; padding: 0.25rem 0.4rem; border-bottom: 1px solid var(--linie); }
table.felder col.feld-name { width: 11rem; }
/* A group named as the plan names a month: bold, no grey bar in capitals (ADR-043). */
table.felder tr.gruppe th { padding: 1.1rem 0.4rem 0.3rem; color: var(--text); font-size: var(--schrift-text); font-weight: 700;
  border-bottom: 1px solid var(--karte-rand); }
table.felder tbody th { font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
table.felder .gilt { font-weight: 600; overflow-wrap: break-word; }
/* What a source says otherwise: a box with small corners, not the pill of
   the Eingang, as it often runs over lines; its name short and on one line,
   the value beside it breaks between words. */
table.felder .quelle { display: flex; width: fit-content; max-width: 100%; box-sizing: border-box;
  border-radius: var(--rund-feld); margin-top: 0.2rem; color: var(--leise); font-size: var(--schrift-klein); overflow-wrap: break-word; }
table.felder .quelle .von { font-style: italic; flex: none; white-space: nowrap; }
table.felder .quelle .was { min-width: 0; }
table.felder .zeilen li { white-space: normal; }
table.felder .verein-name { font-size: var(--schrift-klein); }
table.felder .quelle .zeilen, table.felder .quelle .zeilen li { display: inline; }
table.felder .quelle .zeilen li + li::before { content: " · "; }
table.felder tr.korrigiert .quelle { text-decoration: line-through; }
table.felder tr.korrigiert .gilt { color: var(--akzent); }
table.felder tr.unbelegt th { color: var(--leise); font-weight: 400; }
/* Fields nobody filled in: one line per group, the rows on demand. */
table.felder tbody:not(.mit-leeren) tr.unbelegt { display: none; }
table.felder tr.leere td { border-bottom: 0; padding-top: 0.15rem; }
table.felder tr.leere button { font-size: var(--schrift-klein); color: var(--leise); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
@media (hover: hover) { table.felder tr.leere button:hover { color: var(--akzent); } }
/* Correcting: a quiet link at the top right, the form below the value. */
table.felder td.wert { position: relative; padding-right: 4.5rem; }
table.felder .korrigieren > summary { position: absolute; top: 0.3rem; right: 0.4rem; cursor: pointer; color: var(--leise); font-size: var(--schrift-marke); font-weight: 400; list-style: none; }
table.felder .korrigieren > summary::-webkit-details-marker { display: none; }
table.felder .korrigieren[open] > summary { color: var(--akzent); }
@media (hover: hover) { table.felder tr:hover .korrigieren > summary { color: var(--akzent); } }
table.felder tr.korrigiert .korrigieren > summary { color: var(--akzent); }
table.felder .korrigieren form { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; margin: 0.2rem 0 0.3rem; }
table.felder .korrigieren input, table.felder .korrigieren select { width: 12rem; }
table.felder .korrigieren textarea.zeilen-eingabe { width: 100%; min-width: 14rem; box-sizing: border-box; }
.struktur { margin: 0; font-size: var(--schrift-marke); white-space: pre-wrap; word-break: break-all; }
.zeilen { margin: 0; padding: 0; list-style: none; }
.zeilen li { white-space: nowrap; }
.zeilen a { word-break: break-all; white-space: normal; }
.leer { color: var(--linie); }
.fehler { color: var(--rot); font-size: var(--schrift-neben); }
.fehler.abgleich { border: 1px solid var(--rot); padding: 0.5rem 0.75rem; font-size: var(--schrift-text); }
.gespeichert { color: var(--akzent); font-size: var(--schrift-neben); }

@media (max-width: 60rem) {
  .termin-seite { grid-template-columns: minmax(0, 1fr); }
  .spalte-pdf { position: static; max-height: none; }
}

/* Info */
.info-seite { max-width: 46rem; }
.info-seite dt { font-weight: 600; margin-top: 0.6rem; }
.info-seite dd { margin: 0.1rem 0 0 1.25rem; }
.ablauf { counter-reset: schritt; list-style: none; padding: 0; }
.ablauf li { counter-increment: schritt; padding: 0.4rem 0 0.4rem 2.25rem; position: relative; }
.ablauf li::before { content: counter(schritt); position: absolute; left: 0; top: 0.35rem; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; background: var(--akzent-hell); color: var(--akzent); font-weight: 700; text-align: center; line-height: 1.6rem; }

@media (max-width: 40rem) {
  body { --rand: 0.6rem; }
  main { padding-top: 0.75rem; padding-bottom: 1.5rem; }
  /* On a phone too the menu stays at the top, in one line: the button "☰"
     opens all of it as a list below, one under the other, pages, colour,
     login and the rest (kopf.js), as "Mehr" on a wide screen; which page it
     is, its heading says. */
  header { gap: 0.5rem 1rem; }
  header .menue-knopf { display: inline-block; margin-left: auto; font-size: var(--schrift-gross); line-height: 1;
                        padding: 0.35rem 0.6rem; background: none; color: var(--kopf-text);
                        border-color: currentColor; }
  header .menue { display: none; }
  header.offen .menue { display: flex; flex-direction: column; align-items: stretch; gap: 0.35rem;
    position: absolute; top: calc(100% + 0.4rem); right: var(--seite); width: min(17rem, calc(100vw - 2 * var(--seite)));
    box-sizing: border-box; padding: 0.4rem; max-height: calc(100dvh - 6rem); overflow-y: auto; }
  header.offen nav { display: flex; flex-direction: column; gap: 0.15rem; padding-bottom: 0.4rem;
    border-bottom: 1px solid color-mix(in srgb, var(--kopf-text) 20%, transparent); }
  header.offen nav a { padding: 0.5rem 0.8rem; }
  header .menue > * { align-self: flex-start; }
  header .menue > nav { align-self: stretch; }
  header .menue .wer { padding: 0.35rem 0.8rem; }
  header button.farbe { margin-left: 0; width: auto; height: auto; padding: 0.35rem 0.8rem; border-radius: 999px; }
  header .farbe-text { position: static; width: auto; height: auto; clip-path: none; }

  /* Nothing wider than the screen: fields with a size, addresses in code. */
  main input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), main select,
  main textarea { max-width: 100%; box-sizing: border-box; }
  main code { overflow-wrap: anywhere; }
  main label { max-width: 100%; }
  .bild-zeile { flex-wrap: wrap; }
  .bild-zeile > div { min-width: 0; }
  /* The details of an event: name above value, the value as wide as the
     screen, "ändern" still at its right. */
  table.felder, table.felder tbody, table.felder tr, table.felder th, table.felder td { display: block; }
  table.felder tbody th { width: auto; white-space: normal; border-bottom: 0; padding-bottom: 0; }
  .zeilen li { white-space: normal; }
  table.felder .korrigieren input, table.felder .korrigieren select { width: 100%; }
  table.felder .korrigieren textarea.zeilen-eingabe { min-width: 0; }
  .monat-kopf { margin-top: 0.75rem; }
  .einstellungen-info td { overflow-wrap: anywhere; }
}

/* Anmeldung */
header .wer { font-size: var(--schrift-neben); color: var(--kopf-text); opacity: 0.8; flex: none; white-space: nowrap; }
header .wer a { color: inherit; }
header .anmelden { flex: none; white-space: nowrap; font-size: var(--schrift-neben); padding: 0.3rem 0.85rem; border: 1px solid currentColor; border-radius: 999px; color: var(--kopf-text); text-decoration: none; }
.anmeldung { max-width: 30rem; margin: 3rem auto; }

/* Abrufe: tiles, one button for everything, each step a button of its
   own as a card, the runs as cards that open to their steps. */
@media (hover: hover) { div.kachel:hover { outline: none; } }
meter.budget { display: block; width: 100%; height: 0.5rem; margin-top: 0.4rem; }
.abruf-kasten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem;
  padding: 1rem 1.25rem; border: 1px solid var(--akzent); border-radius: var(--rund-karte); box-shadow: inset 4px 0 0 var(--akzent); }
.abruf-kasten p { margin: 0; font-size: var(--schrift-neben); }
.schritte { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.6rem; }
button.schritt { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; text-align: left;
  padding: 0.75rem 0.9rem; border: 1px solid var(--linie); border-radius: var(--rund-karte); background: var(--grund); color: var(--text); }
@media (hover: hover) { button.schritt:hover { filter: none; border-color: var(--akzent); } }
@media (hover: hover) { button.schritt:hover strong { color: var(--akzent); } }
button.schritt[disabled], button.schritt.htmx-request { opacity: 0.6; background: var(--flaeche); border-color: var(--linie); }
button.schritt strong { display: flex; align-items: center; gap: 0.5rem; font-size: var(--schrift-text); }
button.schritt .hinweis { font-size: var(--schrift-klein); font-weight: 400; line-height: 1.35; }
.schritt .nummer { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--akzent-hell); color: var(--akzent); font-size: var(--schrift-marke); }
.hinweis.klein { font-size: var(--schrift-neben); margin: -0.1rem 0 0.5rem; }

.lauf-stand { margin: 0.75rem 0; }
.lauf-stand:empty { display: none; }
.lauf-stand.laeuft { padding: 0.75rem 1rem; border: 1px solid var(--akzent); border-radius: var(--rund-karte); background: var(--akzent-hell); }
.lauf-stand.laeuft > p { margin: 0 0 0.4rem; }
.puls { display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.5rem; border-radius: 50%;
  background: var(--akzent); animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: 0.25; } }
/* Who asked the device for less motion gets a dot that stays (the swipe
   asks for itself, wischen.js). */
@media (prefers-reduced-motion: reduce) { .puls { animation: none; } }

.lauf-filter { margin: 0.5rem 0 0.75rem; }
.laeufe-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.lauf { border: 1px solid var(--linie); border-radius: var(--rund-karte); scroll-margin-top: 1rem; }
.lauf.gestoert { border-color: var(--rot); box-shadow: inset 4px 0 0 var(--rot); }
.lauf:target { outline: 2px solid var(--akzent); outline-offset: 2px; }
.lauf summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; padding: 0.55rem 0.9rem;
  cursor: pointer; list-style: none; font-size: var(--schrift-neben); }
.lauf summary::-webkit-details-marker { display: none; }
.lauf summary::after { content: "▾"; margin-left: auto; color: var(--leise); }
.lauf details[open] summary::after { content: "▴"; }
.lauf-zustand { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; align-self: center;
  background: var(--oeffentlich-hell); color: var(--oeffentlich); font-size: var(--schrift-marke); font-weight: 700; }
.gestoert .lauf-zustand { background: var(--rot-hell); color: var(--rot); }
.lauf-name { font-weight: 600; min-width: 13.5rem; }
.lauf-zeit { color: var(--leise); font-variant-numeric: tabular-nums; min-width: 10rem; }
.lauf-kurz { flex: 1 1 12rem; min-width: 0; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lauf-von, .lauf-kosten { font-size: var(--schrift-marke); padding: 0 0.6rem; border-radius: 999px; background: var(--flaeche); color: var(--leise); }
.lauf-schritte { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.25rem 1.25rem; margin: 0;
  padding: 0.6rem 0.9rem 0.75rem 2.65rem; border-top: 1px solid var(--linie); font-size: var(--schrift-neben); }
.lauf-stand .lauf-schritte { padding: 0.4rem 0 0; border-top-color: color-mix(in srgb, var(--akzent) 25%, transparent); }
.lauf-schritte dt { font-weight: 600; }
.lauf-schritte dd { margin: 0; }
.lauf-schritte dd.ohne-name { grid-column: 1 / -1; }
.lauf-schritte ul { list-style: none; margin: 0; padding: 0; }
.lauf-schritte li { overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .abruf-kasten button.gross { width: 100%; }
  .lauf-schritte { grid-template-columns: minmax(0, 1fr); padding-left: 0.9rem; }
  .lauf-schritte dd { margin-bottom: 0.3rem; }
  .lauf summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.15rem 0.6rem; }
  .lauf summary::after { grid-column: 3; grid-row: 1; }
  .lauf-name { grid-column: 2; grid-row: 1; min-width: 0; }
  .lauf-zeit, .lauf-kurz, .lauf-von, .lauf-kosten { grid-column: 2 / -1; min-width: 0; }
  .lauf-von, .lauf-kosten { justify-self: start; }
}

/* Stapel: Relevanz und Sammelaktionen */
.relevanz { display: inline-block; font-size: var(--schrift-marke); font-weight: 700; padding: 0 0.6rem; border-radius: 999px;
  border: 1px solid var(--linie); color: var(--leise); white-space: nowrap; }
.relevanz.stufe-3 { border-color: var(--akzent); color: var(--akzent); }
.relevanz.stufe-1 { opacity: 0.7; }
/* Why, every reason of the points (relevance.py). */
.relevanz-grund { font-size: var(--schrift-marke); color: var(--leise); }
.sammel { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.4rem 0; }
.sammel h3 { margin: 0.8rem 0.5rem 0.3rem 0; }
.eintrag .zeile input[type=checkbox] { margin: 0 0.25rem 0 0; }

.auslesen { margin: 0.5rem 0; }
.auslesen .laeuft { display: none; color: var(--leise); margin-left: 0.5rem; }
.auslesen.htmx-request .laeuft { display: inline; }

/* Ablage für PDFs */
.ablage { margin: 0.75rem 0; padding: 0.9rem; border: 2px dashed var(--linie); border-radius: var(--rund-karte); text-align: center; color: var(--leise); font-size: var(--schrift-neben); }
.ablage.ueber { border-color: var(--akzent); background: var(--akzent-hell); }
.ablage input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ablage label { cursor: pointer; }
.ablage .laeuft { display: none; margin-left: 0.5rem; }
.ablage.htmx-request .laeuft { display: inline; }
.hinzufuegen { margin: 0.75rem 0; }

/* QR-Code */
/* QR-Code: the form in a box at the left, the code and its files at the right. */
.qr-seite { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-top: 1rem; }
.qr-form { display: flex; flex-direction: column; gap: 0.9rem; padding: 1rem 1.25rem; border-radius: var(--rund-karte); background: var(--flaeche); }
.qr-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: var(--schrift-klein); font-weight: 600; color: var(--leise); }
.qr-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.qr-farbe input { width: 100%; height: 2.4rem; padding: 0.15rem; border: 1px solid var(--linie); border-radius: var(--rund-feld); background: var(--grund); }
.qr-form button.gross { align-self: flex-start; }
.qr-ergebnis { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1rem;
  border: 1px solid var(--linie); border-radius: var(--rund-karte); }
.qr-vorschau { width: 100%; max-width: 18rem; padding: 0.75rem; border-radius: var(--rund-feld); background: #fff; }
.qr-vorschau svg { width: 100%; height: auto; display: block; }
.qr-ziel { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--leise); font-size: var(--schrift-neben); }
.qr-leer { display: grid; place-items: center; width: 100%; max-width: 18rem; aspect-ratio: 1; border: 2px dashed var(--linie);
  border-radius: var(--rund-feld); color: var(--leise); font-size: var(--schrift-neben); text-align: center; padding: 1rem; }
.knopf.leise { background: var(--grund); color: var(--text); border: 1px solid var(--linie); }
@media (max-width: 40rem) {
  .qr-seite { grid-template-columns: minmax(0, 1fr); }
  .qr-form button.gross { align-self: stretch; }
}

/* Month preview: the message as it will be pasted. */
textarea.nachricht { width: 100%; max-width: 48rem; font: inherit; line-height: 1.45; padding: .75rem; box-sizing: border-box; }

/* Public or internal (ADR-024): green marks what leaves the club,
   grey dashed what the app works out by itself and only shows. */
.oeffentlich-marke { font-size: var(--schrift-marke); font-weight: normal; color: var(--oeffentlich); border: 1px solid var(--oeffentlich);
  border-radius: var(--rund-marke); padding: 0 0.3em; margin-left: 0.3em; white-space: nowrap; vertical-align: middle; }
.nur-lesen { font-size: var(--schrift-marke); font-weight: normal; color: var(--leise); border: 1px dashed var(--leise);
  border-radius: var(--rund-marke); padding: 0 0.3em; margin-left: 0.3em; white-space: nowrap; }
.oeffentlich-kasten { border: 1px solid var(--oeffentlich); border-radius: var(--rund-karte); background: var(--oeffentlich-hell);
  padding: 0.5rem 1rem; margin: 0.8rem 0; }
.oeffentlich-kasten > p { font-size: var(--schrift-neben); }
.automatisch { background: var(--flaeche); border: 1px dashed var(--linie); border-radius: var(--rund-karte); padding: 0.5rem 1rem; margin: 0.8rem 0;
  color: var(--leise); }
tr.feld.oeffentlich > th { border-left: 3px solid var(--oeffentlich); }
.gruen-balken { border-left: 3px solid var(--oeffentlich); padding-left: 0.3rem; }
.auto { font-style: italic; }

/* Settings: one block per group, label, field, unit and help in one row. */
.einstellung { border-top: 1px solid var(--linie); padding: 0.4rem 0 0.8rem; }
/* The name above its field, as in the filter (ADR-043); the unit beside
   the field, the help below it. */
.einstellung-feld { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; align-items: baseline; margin: 0.9rem 0; }
.einstellung-name { flex-basis: 100%; font-size: var(--schrift-klein); font-weight: 600; }
.einstellung-hilfe { flex-basis: 100%; overflow-wrap: anywhere; }
.einstellungen-info th { text-align: left; padding-right: 1rem; font-weight: normal; color: var(--leise); }

/* Month preview: the text to copy beside how WhatsApp shows it. */
.vorschau-paar { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.vorschau-paar > div { flex: 1 1 22rem; min-width: 0; }
.whatsapp { background: #e7ffdb; color: #111b21; border-radius: 0.5rem; padding: 0.6rem 0.8rem;
  font-size: var(--schrift-text); line-height: 1.4; overflow-wrap: anywhere; max-width: 34rem; }
.whatsapp a { color: #027eb5; }

/* Imprint and privacy at the bottom of the window on every page (ADR-050);
   the line as wide as the window, the text where that of the page begins.
   One line on a phone too: what does not fit at its end, the version, is
   cut off. */
footer.rechtliches { box-sizing: border-box; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0.35rem calc(var(--seite) + var(--leiste)) 0.35rem var(--seite); background: var(--grund);
  border-top: 1px solid var(--linie); font-size: var(--schrift-klein); color: var(--leise); }
footer.rechtliches a { color: var(--leise); }
footer.rechtliches a.app-link { color: var(--akzent); }
footer.rechtliches .version { font-size: var(--schrift-marke); opacity: 0.8; font-variant-numeric: tabular-nums; }
/* On a phone smaller and only "App": "© OpenStreetMap" must fit. */
@media (max-width: 40rem) {
  footer.rechtliches { font-size: var(--schrift-marke); }
  footer.rechtliches .breit { display: none; }
}
@media (max-width: 22rem) { footer.rechtliches { font-size: 0.6875rem; } }

/* Logo and favicon on the settings page */
.bild { margin: 0.75rem 0 1.25rem; }
.bild h3 { margin: 0 0 0.4rem; font-size: var(--schrift-text); }
.bild-zeile { display: flex; gap: 1.25rem; align-items: flex-start; }
.bild-vorschau { width: 6rem; height: 6rem; object-fit: contain; border: 1px solid var(--linie); border-radius: var(--rund-marke); background: #fff; padding: 0.25rem; }
.bild-vorschau.klein { width: 3rem; height: 3rem; }

/* The club's logo in the head of every page, before the name (ADR-031) */
header .marke { display: inline-flex; align-items: center; gap: 0.1rem; gap: 0.5rem; }
header .marke-logo { width: 2.4rem; height: 2.4rem; object-fit: contain; }

/* The web app (ADR-038): installing is for the phone, the line when offline. */
@media (min-width: 40.0625rem) { [data-installieren] { display: none; } }
.offline-zeile { margin: 0; padding: 0.35rem 1rem; background: var(--warnung-hell); color: var(--warnung);
                 font-size: var(--schrift-neben); text-align: center; }
/* The test system (ADR-041): the whole menu bar in yellow warning stripes,
   the line under it yellow too. */
header.testumgebung {
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--gelb) 45%, transparent) 0 14px, transparent 14px 28px),
              var(--kopf-grund);
  border-bottom-color: var(--gelb); }
.app-hilfe { max-width: 26rem; border: 1px solid var(--linie); border-radius: var(--rund-karte); padding: 1rem 1.25rem;
             background: var(--grund); color: var(--text); }
.app-hilfe::backdrop { background: rgb(0 0 0 / 0.4); }
.app-hilfe ol { padding-left: 1.25rem; }
.app-hilfe li { margin: 0.4rem 0; }
/* Whom an own message goes to (Benachrichtigungen, ADR-039). */
.klassen-wahl { border: 0; padding: 0; margin: 0.75rem 0; display: grid;
                grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.35rem 0.75rem; }
.klassen-wahl legend { font-weight: 600; margin-bottom: 0.35rem; }
.klassen-wahl label { display: flex; gap: 0.4rem; align-items: center; min-height: 2rem; }
/* A word under a legend, across the whole grid. */
.klassen-wahl > .hinweis { grid-column: 1 / -1; margin: 0; }
/* The page of the notifications: the choice as the own selection on
   Downloads (ADR-062), this device's switch in the card below it. */
.push-wahl { margin-top: 1rem; }
/* A grid, which would show it even where this browser cannot have them. */
.push-wahl[hidden] { display: none; }
.push-wahl .karte .app-meldung { margin: 0; }
.push-wahl .karte .app-meldung:empty { display: none; }
.push-wahl .karte .knopf-reihe { justify-content: var(--kasten-ausrichtung); margin: 0; }
.app-meldung { min-height: 1.4em; color: var(--leise); font-size: var(--schrift-neben); }
.app-meldung.fehler { color: var(--rot); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }

/* Veröffentlichen: the button in a box of its own with what it sets going,
   the changes as cards, the files of one cut at a time, what to pass on. */
.veroeffentlichen-kasten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--linie); border-radius: var(--rund-karte); }
.veroeffentlichen-kasten.offen { border-color: var(--akzent); box-shadow: inset 4px 0 0 var(--akzent); }
.veroeffentlichen-kasten > div { flex: 1 1 22rem; min-width: 0; }
.veroeffentlichen-kasten p { margin: 0 0 0.5rem; font-size: var(--schrift-neben); }
.ziele { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; font-size: var(--schrift-neben); }
.ziele li::before { content: "✓"; color: var(--oeffentlich); font-weight: 700; margin-right: 0.45rem; }
.ziele li.geht-nicht::before { content: "!"; color: var(--warnung); }
.veroeffentlichen-kasten button.gross { flex: none; }
.veroeffentlichen-kasten button .laeuft { display: none; }
.veroeffentlichen-kasten button.htmx-request .laeuft { display: inline; }
.status-marke.aenderung-neu { background: var(--oeffentlich-hell); color: var(--oeffentlich); border-color: transparent; }
.status-marke.aenderung-geaendert { background: var(--warnung-hell); color: var(--warnung); border-color: transparent; }
.status-marke.aenderung-entfaellt { background: var(--rot-hell); color: var(--rot); border-color: transparent; }
.aenderungen { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; font-size: var(--schrift-neben); }
.aenderungen b { color: var(--text); font-weight: 600; }
.aenderungen s { color: var(--leise); }

.teilen { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.75rem; }
.teilen-karte { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.9rem 1rem; border: 1px solid var(--linie); border-radius: var(--rund-karte); min-width: 0; }
.teilen-karte h3 { margin: 0; font-size: var(--schrift-text); color: var(--text); }
.teilen-karte p { margin: 0; }
.teilen-karte > .hinweis { font-size: var(--schrift-neben); }
.knopf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; font-size: var(--schrift-neben); }
code.adresse { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--leise); font-size: var(--schrift-klein); }

@media (max-width: 40rem) {
  .veroeffentlichen-kasten button.gross { width: 100%; }
}

.staende { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.staende li { display: inline-flex; align-items: baseline; gap: 0.6rem; padding: 0.3rem 0.8rem;
  border: 1px solid var(--linie); border-radius: 999px; font-size: var(--schrift-neben); }
.staende strong { font-weight: 600; }

/* Printed the page runs on over the sheets, not cut at the window's height. */
@media print {
  body { height: auto; display: block; }
  .rollbereich { overflow: visible; container-type: normal; }
}

/* Zusammenführen: the choice, the two as cards, then what comes of them,
   what they say otherwise first, each value on a phone a card of its own. */
.zusammen-wahl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem; background: var(--flaeche); border-radius: var(--rund-karte); }
.zusammen-wahl label { flex: 1 1 20rem; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem;
  font-size: var(--schrift-klein); font-weight: 600; color: var(--leise); }
.zusammen-wahl select { width: 100%; min-width: 0; }
.zusammen-paar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.5rem 1rem; align-items: start; }
.zusammen-paar .terminkarten { margin: 0; }
.paar-kopf { margin: 0 0 0.4rem; font-size: var(--schrift-neben); color: var(--leise); }
.paar-pfeil { align-self: center; font-size: var(--schrift-seite); color: var(--akzent); }
.paar-tausch { margin: 0.75rem 0 0; font-size: var(--schrift-neben); }
.vergleich-gruppe { margin: 1rem 0; }
.vergleich-gruppe > summary { cursor: pointer; }
.vergleich-gruppe > summary h3 { display: inline; margin: 0; font-size: var(--schrift-text); color: var(--text); }
.vergleich-gruppe > summary .hinweis { font-size: var(--schrift-neben); }
.vergleich { display: grid; grid-template-columns: minmax(8rem, 11rem) repeat(3, minmax(0, 1fr)); margin-top: 0.5rem; }
.vergleich-kopf, .vergleich-zeile { display: contents; }
.vergleich-kopf > span { padding: 0.4rem 0.6rem; font-size: var(--schrift-klein); font-weight: 600; color: var(--leise); border-bottom: 2px solid var(--linie); }
.vergleich-zeile > div { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--linie); min-width: 0; overflow-wrap: anywhere; }
.v-name { font-weight: 600; }
.v-zeile { display: block; }
.v-leer { color: var(--leise); }
.v-titel { display: none; }
.v-wert.verliert { color: var(--leise); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--leise) 60%, transparent); }
.v-wert.danach { font-weight: 600; }
.vergleich-gruppe.widerspruch .v-wert.danach { background: var(--warnung-hell); }
.vergleich-gleich { margin: 0.5rem 0 0; }
.vergleich-gleich > div { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr); border-bottom: 1px solid var(--linie); }
.vergleich-gleich dt, .vergleich-gleich dd { margin: 0; padding: 0.4rem 0.6rem; min-width: 0; overflow-wrap: anywhere; }
.vergleich-gleich dt { font-weight: 600; }
.kommt-dazu { display: inline-block; margin-top: 0.2rem; padding: 0 0.5rem; border-radius: 999px; font-size: var(--schrift-marke); font-weight: 700;
  background: var(--akzent-hell); color: var(--akzent); }
.warnung-kasten { margin: 1rem 0; padding: 0.75rem 1rem; border-radius: var(--rund-karte); background: var(--warnung-hell); color: var(--warnung); }
.warnung-kasten p, .warnung-kasten ul { margin: 0.2rem 0; }
#zusammenfuehren { margin-top: 1.5rem; }
@media (max-width: 48rem) {
  .zusammen-paar { grid-template-columns: minmax(0, 1fr); }
  /* Stacked, the arrow points up to the one that stays. */
  .paar-pfeil { justify-self: center; rotate: 90deg; line-height: 1; }
  .zusammen-wahl button { width: 100%; }
  .vergleich { display: flex; flex-direction: column; gap: 0.6rem; }
  .vergleich-kopf { display: none; }
  .vergleich-zeile { display: block; padding: 0.6rem 0.8rem; border: 1px solid var(--linie); border-radius: var(--rund-karte); }
  .vergleich-zeile > div { padding: 0.2rem 0; border: 0; }
  .vergleich-zeile > .v-name { margin-bottom: 0.2rem; }
  .vergleich-gruppe.widerspruch .v-wert.danach { margin: 0.3rem -0.4rem 0; padding: 0.3rem 0.4rem; border-radius: var(--rund-marke); }
  .v-titel { display: block; font-size: var(--schrift-marke); font-weight: 600; color: var(--leise); text-decoration: none; }
  .vergleich-gleich > div { grid-template-columns: minmax(0, 1fr); padding: 0.3rem 0; }
  .vergleich-gleich dt, .vergleich-gleich dd { padding: 0.1rem 0; }
}

/* Auf dem Handy seitlich wischen (wischen.js, ADR-051): während der Geste
   schneidet der Bereich ab, was zur Seite gleitet; die Nachbarseite liegt
   daneben, oben am sichtbaren Ausschnitt. */
.rollbereich.wischt { overflow-x: hidden; }
/* Nicht dazu der Browser mit eigenem "zurück" beim seitlichen Wischen in der
   Seite (Chromium): es wischt die Seite, und eine nicht gespeicherte Eingabe
   bleibt. Das Zurück vom Bildschirmrand des Handys bleibt dem System. */
html, body, .rollbereich { overscroll-behavior-x: none; }
.rollbereich.wischt > main { will-change: transform; }
.wisch-nachbar { position: absolute; left: 0; right: 0; overflow: hidden; pointer-events: none; background: var(--grund);
  box-shadow: 0 0 0 1px var(--linie); }
.wisch-nachbar.zurueck { display: flex; align-items: center; justify-content: center; color: var(--leise); font-size: var(--schrift-titel); }
.wisch-lade { color: var(--leise); }

/* The club's own message to the phones (Veröffentlichen, ADR-039). */
.nachricht-form { display: grid; gap: 0.6rem; }
/* Places and roles by their names, wider than a class, "Abteilungsleitung". */
.nachricht-form .namen { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.nachricht-form > label { display: grid; gap: 0.25rem; font-size: var(--schrift-klein); font-weight: 600; color: var(--leise); }
.erfolg { color: var(--oeffentlich); font-size: var(--schrift-neben); margin: 0; }
.nachrichten { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.nachrichten li { display: grid; gap: 0.15rem; padding: 0.6rem 0.8rem; border: 1px solid var(--linie); border-radius: var(--rund-karte); }
.nachricht-text { white-space: pre-line; }
.nachrichten .hinweis { font-size: var(--schrift-klein); }
/* What goes out in the coming weeks (Benachrichtigungen, ADR-056). */
.push-vorschau { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.push-vorschau h3 { margin: 0 0 0.4rem; }
.abo-zahlen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.abo-zahlen .leer { color: var(--leise); }
.nachrichten .gestoert { border-color: var(--fehler, var(--akzent)); }

/* The calendar as a widget (/widget): the small window of a widget, so
   less room around the plan and no line above it. */
body.widget main { padding: 0.5rem var(--rand) 1rem; }
body.widget .stand-zeile { margin: 0 0 0.5rem; }

/* Easter Egg (easteregg.js, ADR-064): ein Trainerkopf schaut auf dem Handy
   vom Rand herein, seitlich um 90° gedreht, der Hals am Rand. Nur der Kopf
   nimmt Tippen an, alles daneben bleibt bedienbar. */
.easteregg { --easteregg-groesse: 6.5rem; position: fixed; z-index: 30; width: var(--easteregg-groesse);
  height: var(--easteregg-groesse); pointer-events: none; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1.15); }
.easteregg img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.easteregg.unten { bottom: 0; transform: translateY(100%); }
.easteregg.unten.da { transform: translateY(15%); }
.easteregg.links { left: 0; transform: translateX(-100%); }
.easteregg.links.da { transform: translateX(-15%); }
.easteregg.links img { rotate: 90deg; }
.easteregg.rechts { right: 0; transform: translateX(100%); }
.easteregg.rechts.da { transform: translateX(15%); }
.easteregg.rechts img { rotate: -90deg; }
.easteregg-blase { position: absolute; width: max-content; max-width: 11rem; margin: 0; padding: 0.4rem 0.75rem;
  border-radius: var(--rund-karte); background: var(--grund); color: var(--text); border: 2px solid var(--akzent);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.2); font-weight: 600; line-height: 1.3; }
.easteregg.unten .easteregg-blase { bottom: 85%; left: 50%; translate: -50% 0; }
.easteregg.links .easteregg-blase { left: 85%; top: 50%; translate: 0 -50%; }
.easteregg.rechts .easteregg-blase { right: 85%; top: 50%; translate: 0 -50%; }
@media (prefers-reduced-motion: reduce) { .easteregg { display: none; } }

/* The statistics (ADR-065): numbers stay in their columns on a phone as well;
   long names of files break, and the months side by side scroll sideways. */
table.nutzung { width: 100%; border-collapse: collapse; font-size: var(--schrift-neben); margin-bottom: 0.75rem; }
table.nutzung th, table.nutzung td { text-align: right; vertical-align: top; padding: 0.25rem 0.4rem; border-bottom: 1px solid var(--linie); font-variant-numeric: tabular-nums; }
table.nutzung thead th { color: var(--leise); font-weight: 600; font-size: var(--schrift-klein); hyphens: auto; }
table.nutzung th:first-child { text-align: left; }
table.nutzung tbody th { font-weight: 600; overflow-wrap: anywhere; }
.breit > table.nutzung { min-width: 34rem; }
.breit > table.nutzung tbody th { white-space: nowrap; }
