/* Ippon-Kalender, die Bausteine von Plan und Oberfläche (ADR-043): was beide
   zeigen, sieht in beiden gleich aus. Die Oberfläche lädt die Datei neben
   style.css, der HTML-Plan schreibt sie in seine Seite (render/html_plan.py).
   Nur Farben aus den Variablen von style.css und config.yaml. */

:root {
  /* A card's edge, a line one can see, and a shadow that lifts it. */
  --karte-rand: color-mix(in srgb, var(--text) 30%, var(--grund));
  --karte-schatten: 0 1px 3px rgb(0 0 0 / .1), 0 4px 12px rgb(0 0 0 / .08);
  /* The sizes of type, no others (the leaf's small print aside): marks and
     badges, labels, what stands beside, text, headings, the page's name,
     the big numbers. */
  --schrift-marke: .75rem; --schrift-klein: .8125rem; --schrift-neben: .875rem; --schrift-text: 1rem;
  --schrift-titel: 1.125rem; --schrift-gross: 1.375rem; --schrift-seite: 1.625rem; --schrift-zahl: 2rem;
  /* Three corners and the pill: a card or box, a field or button, a mark. */
  --rund-karte: 14px; --rund-feld: 10px; --rund-marke: 6px;
  /* Boxes that show rather than tell (the numbers on top of a page, the
     birth years, calendars and downloads) and the headings of the cards
     under "Weitergeben": centred. `start` puts them all back to the left;
     the PDF's tiles follow pdf_bausteine.KASTEN_AUSRICHTUNG. */
  --kasten-ausrichtung: center;
}
.kachel, .karte, .teilen-karte h3 { text-align: var(--kasten-ausrichtung); }
/* Dates, deadlines and counts with figures of one width, one under the other. */
.blatt, .frist, .zaehler, .pdfs a { font-variant-numeric: tabular-nums; }

/* Switches as pills, the one that is on filled in the accent. On and off in
   the same weight of the writing: a bolder one is wider and would push the
   pills after it. A box under the chip (`.zeigen`) keeps it for the
   keyboard and without script. */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font: inherit; font-size: var(--schrift-neben); padding: .3rem .85rem; border-radius: 999px; cursor: pointer;
        border: 1px solid var(--linie); background: var(--grund); color: var(--text); }
.chip[aria-pressed="true"], input:checked + .chip { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }
.zeigen { position: relative; display: inline-flex; }
.zeigen input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.zeigen input:focus-visible + .chip { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* The filter above a list of events: a box, the fields named above them,
   the count at the right. */
.filter, .eigene-auswahl { margin: 0 0 1rem; padding: 1rem 1.1rem; background: var(--flaeche); border-radius: var(--rund-karte); }
.filter-felder { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
:is(.filter, .eigene-auswahl) .feld { display: flex; flex-direction: column; gap: .3rem; }
:is(.filter, .eigene-auswahl) :is(.feld > label, .feld-name) { font-size: var(--schrift-klein); font-weight: 600; color: var(--leise); }
.filter :is(select, input:not([type="checkbox"])) { font: inherit; font-size: var(--schrift-text); font-weight: 400; padding: .45rem .7rem;
  border: 1px solid var(--linie); border-radius: var(--rund-feld); background: var(--grund); color: var(--text); }
/* appearance: none, or Safari on iOS draws its own search field and leaves the
   magnifier at the top left of a field made higher (the narrow plan's). */
.filter input[type="search"] { -webkit-appearance: none; appearance: none; padding-left: 2rem; background-repeat: no-repeat; background-position: .65rem 50%; background-size: .95rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.zaehler { margin-left: auto; padding: .2rem .75rem; border-radius: 999px; background: var(--grund); font-size: var(--schrift-neben); font-weight: 600; }
/* On a narrow screen the filter folds and its summary carries the count;
   once below it is once too often. */
@media (max-width: 40rem) { .filter-felder .zaehler { display: none; } }

/* The classes of an event, one pill each. */
.pillen { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.pille { padding: 0 .5rem; border-radius: 999px; background: var(--akzent-hell); color: var(--akzent);
         font-size: var(--schrift-marke); font-weight: 700; line-height: 1.6; white-space: nowrap; }
.pille[title] { cursor: help; }
/* "nur weiblich", Kata, Ne-Waza, Taiso: not a class, so not in the classes' colour. */
.pille:is(.geschlecht, .disziplin) { background: var(--flaeche); color: var(--text); box-shadow: inset 0 0 0 1px var(--linie); }

/* "★ Vereinstermin" and "Hinweis", the one in the accent, the other in the colour of notes. */
.verein { display: inline-block; padding: 0 .45rem; border: 1px solid var(--akzent); border-radius: 999px;
          color: var(--akzent); font-size: var(--schrift-marke); font-weight: 700; line-height: 1.5; vertical-align: .12em; white-space: nowrap; }
.verein.notiz { border-color: var(--hinweis); color: var(--hinweis); }

/* The deadline a pill like the status beside it, the date telling it apart.
   Red only when close: a warning that is always there warns of nothing.
   Past: grey, "vorbei" in its text. */
.frist { display: inline-block; padding: 0 .6rem; border-radius: 999px; border: 1px solid var(--linie);
         background: var(--flaeche); color: var(--text); font-size: var(--schrift-marke); font-weight: 700; white-space: nowrap; }
/* Close: the red of the chosen filters, the accent of the club. */
.frist.bald { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }
.frist.vorbei { background: none; color: var(--leise); }

/* The date as a calendar leaf: the month on top, the day large, the
   weekday below. `.klein` in the lists of the interface. */
.blatt { display: flex; flex-direction: column; flex: none; width: 4.5rem; height: 4.5rem; box-sizing: border-box;
         border: 1px solid var(--karte-rand); border-radius: var(--rund-feld);
         overflow: hidden; text-align: center; line-height: 1.1; background: var(--grund); }
.blatt-monat { flex: none; background: var(--akzent); color: var(--auf-akzent); font-size: .68rem; font-weight: 700;
               letter-spacing: .08em; text-transform: uppercase; padding: .2rem 0; }
.blatt-tag { flex: 1; display: flex; align-items: center; justify-content: center; font-size: var(--schrift-seite); font-weight: 700; color: var(--text); }
.blatt.spanne .blatt-tag { font-size: var(--schrift-titel); }
.blatt-wt { flex: none; font-size: .72rem; color: var(--leise); padding-bottom: .3rem; }
.blatt.klein { width: 3.25rem; height: 3.25rem; border-radius: var(--rund-feld); }
.blatt.klein .blatt-monat { font-size: .58rem; padding: .1rem 0; }
.blatt.klein .blatt-tag { font-size: var(--schrift-titel); }
.blatt.klein.spanne .blatt-tag { font-size: var(--schrift-klein); }
.blatt.klein .blatt-wt { font-size: .6rem; padding-bottom: .15rem; }

/* A button that is a link. */
/* As high as a button beside it: its padding and its edge. */
.knopf { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem; border: 1px solid var(--akzent); border-radius: var(--rund-feld);
         background: var(--akzent); color: var(--auf-akzent); font-size: var(--schrift-neben); font-weight: 600; text-decoration: none; }
/* Hover only where a pointer hovers: on a touch screen it sticks after a tap,
   a red frame on a card nobody points at (here and in style.css). */
@media (hover: hover) { .knopf:hover { filter: brightness(1.1); } }

/* Calendars and downloads as cards (the plan under its events, the
   interface on Veröffentlichen): the subscription as a button, the files
   below as small pills. */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .75rem; }
.karte { display: flex; flex-direction: column; align-items: var(--kasten-ausrichtung); gap: .5rem; padding: .9rem 1rem;
         border: 1px solid var(--linie); border-radius: var(--rund-karte); }
.karte h3 { margin: 0; font-size: var(--schrift-text); }
.symbol { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.neben { margin: 0; font-size: var(--schrift-klein); color: var(--leise); }
.neben a, .neben button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.karte.android .neben-google { display: none; }
/* An own selection (ADR-062): across the whole row, in the shape of the
   filter; what it makes in a card below, as any other. */
.eigene-auswahl { grid-column: 1 / -1; margin: 0; }
.eigene-auswahl h3 { margin: 0; font-size: var(--schrift-text); }
.eigene-auswahl > .neben { margin: .15rem 0 .75rem; }
.eigene-auswahl .feld-klassen { flex-basis: 100%; }
.pdfs { display: flex; flex-wrap: wrap; justify-content: var(--kasten-ausrichtung); gap: .35rem; align-self: stretch; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--linie); }
.karte h3 + .pdfs { margin-top: 0; padding-top: 0; border-top: 0; }
.pdfs a { padding: .1rem .5rem; border: 1px solid var(--linie); border-radius: var(--rund-feld); color: var(--text); font-size: var(--schrift-klein); text-decoration: none; }
.pdfs a::before { content: "PDF "; color: var(--akzent); font-size: var(--schrift-marke); font-weight: 700; }
@media (hover: hover) { .pdfs a:hover { border-color: var(--akzent); } }

/* Read out, not shown: the date beside a leaf that is hidden from a screen reader. */
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A list of events by month, the month above its cards. */
.monat-gruppe[hidden] { display: none; }
.monat-kopf { margin: 1.25rem 0 .6rem; font-size: var(--schrift-titel); line-height: 1.3; }

/* An event as a card, the same on every page (ADR-046, _karte.html): left
   the checkbox, if any, above the leaf; beside them the name, the markers
   at the right, the pills below it; under them place and Betreuer, what
   else the page says, its buttons. The list decides wide or narrow. */
.terminkarten { container-type: inline-size; display: flex; flex-direction: column; gap: .6rem;
                list-style: none; margin: 0; padding: 0; }
.terminkarte { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto 1fr; grid-template-areas: "seite kopf" "seite pillen" "seite unten";
  column-gap: 1.25rem; padding: 1rem 1.25rem; border: 1px solid var(--karte-rand); border-radius: var(--rund-karte);
  background: var(--grund); color: var(--text); box-shadow: var(--karte-schatten); }
.terminkarte[hidden] { display: none; }
.karte-seite { grid-area: seite; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.karte-wahl { display: flex; }
.karte-wahl input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--akzent); }
.karte-kopf { grid-area: kopf; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.karte-name { flex: 1 1 14rem; min-width: 0; font-size: var(--schrift-text); line-height: 1.35; font-weight: 600;
              overflow-wrap: anywhere; hyphens: auto; }
.karte-name a { color: inherit; text-decoration: none; }
/* What opens elsewhere, the announcement: a small sign at the right of the
   card, in the middle, with room kept for it; the pill below carries it
   where there is one. */
.terminkarte:not(:has(.karte-ziel-art)):has(.karte-ziel[target="_blank"]) { padding-right: 3rem; }
.terminkarte:not(:has(.karte-ziel-art)) .karte-ziel[target="_blank"]::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 1rem; height: 1rem;
  translate: 0 -50%; background: var(--leise); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Where the plan's link leads ("Ausschreibung", "Einladung", "DJB-Seite",
   "IJF-Seite"): a pill with the sign, at the right in the middle of the
   card. The name and the markers keep the whole width above it: the pill
   keeps the height of their line free at the top and the same at the
   bottom, so it stays in the middle. On a narrow card behind the other
   pills, in their row (.karte-zeile, only there a box of its own). The look
   of the announcement buttons (.pdf-link). Inside, where the name leads to
   the event's page, the pill is a link of its own. */
.karte-zeile { display: contents; }
.terminkarte:has(.karte-ziel-art) { grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "seite kopf kopf" "seite pillen ." "seite unten ."; }
.karte-ziel-art { grid-area: 1 / 3 / -1 / 4; align-self: center; margin: 1.6rem 0 1.6rem .75rem; padding: .05rem .5rem; border: 1px solid var(--linie);
  border-radius: var(--rund-feld); color: var(--text); font-size: var(--schrift-marke); font-weight: 600; white-space: nowrap; }
a.karte-ziel-art { text-decoration: none; }
.karte-ziel-art::before { content: "↗ "; color: var(--akzent); }
@media (hover: hover) { a.karte-ziel-art:hover { border-color: var(--akzent); } }
.karte-hinweise { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .3rem; margin-left: auto;
                  font-size: var(--schrift-klein); }
.karte-hinweise .frist { margin: 0; }
.karte-pillen { grid-area: pillen; margin-top: .4rem; min-width: 0; }
.karte-unten { grid-area: unten; display: flex; flex-direction: column; gap: .3rem; margin-top: .5rem; min-width: 0; font-size: var(--schrift-neben); }
.karte-details { display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; color: var(--leise); }
.karte-details strong { color: var(--text); }
.karte-weiteres { color: var(--leise); font-size: var(--schrift-klein); overflow-wrap: anywhere; }
.karte-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .2rem; }
.karte-ort a { color: inherit; text-decoration: none; }
@media (hover: hover) { .karte-ort a:hover { color: var(--akzent); text-decoration: underline; } }
.karte-ort::before { content: ""; display: inline-block; width: .85em; height: .85em; margin-right: .3em;
  vertical-align: -.05em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* The map behind a card (ADR-068, minimap.py): a third of its width at the
   right, under everything, fading out to the left; it takes no room and
   moves nothing. The picture is twice as sharp as shown, the hall at 40px
   from its right and 20px above its bottom, where the pin goes: below the
   pill at the right ("↗ Ausschreibung"), which stands in the middle; only
   the town known, the pin at its centre, zoomed out. On a narrow card,
   where that pill stands among the others, the pin in the middle. The
   picture reaches 200px around the pin and fades out at its top: a taller
   card shows no edge.
   Pointed at its strong part
   (.ueber-karte, karte.js) brighter, with where a click leads. */
.karte-hintergrund, .zur-karte { display: none; }
.terminkarte:has(.karte-hintergrund) { isolation: isolate; }
.terminkarte .karte-hintergrund { display: block; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 33.333%; max-width: 300px;
  overflow: hidden; border-radius: 0 var(--rund-karte) var(--rund-karte) 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, rgb(0 0 0 / .6) 40%, #000 80%);
  mask-image: linear-gradient(to right, transparent, rgb(0 0 0 / .6) 40%, #000 80%); }
.karte-hintergrund img { position: absolute; right: 0; bottom: -180px; width: 300px; height: 400px; max-width: none;
  opacity: .75; filter: saturate(.6); transition: opacity .15s, filter .15s;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70px); mask-image: linear-gradient(to bottom, transparent, #000 70px); }
.karte-hintergrund::after { content: ""; position: absolute; right: 32px; bottom: 20px; width: 16px; height: 21px;
  background: var(--akzent); filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / .5));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34'%3E%3Cpath fill-rule='evenodd' d='M13 1C6.4 1 1 6.3 1 12.8 1 21.7 13 33 13 33s12-11.3 12-20.2C25 6.3 19.6 1 13 1zm0 7.2a4.6 4.6 0 1 1 0 9.2 4.6 4.6 0 0 1 0-9.2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34'%3E%3Cpath fill-rule='evenodd' d='M13 1C6.4 1 1 6.3 1 12.8 1 21.7 13 33 13 33s12-11.3 12-20.2C25 6.3 19.6 1 13 1zm0 7.2a4.6 4.6 0 1 1 0 9.2 4.6 4.6 0 0 1 0-9.2z'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Marks without a fill of their own get the card's, so they stay legible
   over the map and look as before everywhere else. */
.terminkarte { --karte-grund: var(--grund); }
.terminkarte:is(.vergangen, .intern) { --karte-grund: var(--flaeche); }
.terminkarte :is(.karte-ziel-art, .verein, .frist.vorbei, .relevanz, .pdf-link, .aus-plan .pille) { background: var(--karte-grund); }
.terminkarte.ueber-karte { cursor: pointer; }
.terminkarte.klickbar.ueber-karte { border-color: var(--karte-rand); }
.terminkarte.ueber-karte .karte-hintergrund img { opacity: 1; }
.terminkarte .zur-karte { display: block; position: absolute; right: 3.6rem; bottom: .9rem; padding: .05rem .45rem; border-radius: var(--rund-marke);
  background: color-mix(in srgb, var(--grund) 88%, transparent); color: var(--text); font-size: var(--schrift-marke); font-weight: 600;
  text-decoration: none; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.terminkarte.ueber-karte .zur-karte { opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-farbe="hell"]) .karte-hintergrund img { opacity: .85; filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9) saturate(.35); }
  :root:not([data-farbe="hell"]) .ueber-karte .karte-hintergrund img { opacity: 1; filter: invert(1) hue-rotate(180deg) brightness(1.15) contrast(.95) saturate(.6); }
}
:root[data-farbe="dunkel"] .karte-hintergrund img { opacity: .85; filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9) saturate(.35); }
:root[data-farbe="dunkel"] .ueber-karte .karte-hintergrund img { opacity: 1; filter: invert(1) hue-rotate(180deg) brightness(1.15) contrast(.95) saturate(.6); }

/* The whole card is what one clicks (karte.js); pointed at, only its edge
   lights up. */
.terminkarte.klickbar { cursor: pointer; }
@media (hover: hover) { .terminkarte.klickbar:hover { border-color: var(--akzent); } }
.karte-name a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: var(--rund-marke); }

/* The look of a card, everywhere alike. The club's own: the red edge.
   A note: dashed and blue. Past or only inside: flat and grey.
   Cancelled: struck through and faint. */
.terminkarte.eigen { box-shadow: inset 4px 0 0 var(--akzent), var(--karte-schatten); }
.terminkarte.hinweis { border-style: dashed; border-color: color-mix(in srgb, var(--hinweis) 45%, var(--grund)); box-shadow: none; }
.terminkarte.hinweis .karte-name { font-weight: 500; }
.terminkarte.hinweis .pille { background: color-mix(in srgb, var(--hinweis) 15%, var(--grund)); color: var(--hinweis); }
.terminkarte.hinweis .blatt-monat { background: var(--hinweis); color: var(--grund); }
.terminkarte:is(.vergangen, .intern) { background: var(--flaeche); box-shadow: none; }
.terminkarte:is(.vergangen, .intern) .blatt-monat { background: var(--leise); color: var(--grund); }
.terminkarte:is(.vergangen, .intern) .pille { background: var(--karte-grund); box-shadow: inset 0 0 0 1px var(--linie); color: var(--leise); }
.terminkarte.vergangen, .terminkarte.vergangen :is(.blatt-tag, .karte-details strong) { color: var(--leise); }
.terminkarte.abgesagt { opacity: .6; }
.terminkarte.abgesagt .karte-name { text-decoration: line-through; }

/* A narrow card (a phone, a column): the markers under the name, where the
   link leads behind the pills, what comes below over the whole width, the
   leaf a little smaller. */
@container (max-width: 34rem) {
  .terminkarte { grid-template-rows: auto auto 1fr auto; grid-template-areas: "seite kopf" "seite pillen" "seite ." "unten unten";
                 column-gap: .85rem; padding: .85rem; }
  .karte-hintergrund img { bottom: calc(50% - 210.5px); }
  .karte-hintergrund::after { bottom: calc(50% - 10.5px); }
  .karte-kopf { flex-direction: column; align-items: flex-start; }
  .karte-name { flex: none; }
  .karte-hinweise { align-self: stretch; justify-content: flex-start; margin-left: 0; }
  .karte-hinweise .frist { white-space: normal; }
  .karte-unten { margin-top: .6rem; }
  .terminkarte:has(.karte-ziel-art) { grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "seite kopf" "seite pillen" "seite ." "unten unten"; }
  .karte-zeile { grid-area: pillen; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin-top: .4rem; min-width: 0; }
  .karte-pillen { display: contents; }
  .karte-ziel-art { grid-area: auto; margin: 0; }
  .terminkarte .blatt { width: 4rem; height: 4rem; }
  .terminkarte .blatt-tag { font-size: var(--schrift-gross); }
  .terminkarte .blatt.spanne .blatt-tag { font-size: var(--schrift-text); }
}

/* "Filter zurücksetzen": the filter stays as set on the device (merken.js,
   ADR-052); this forgets it. A quiet pill at the end of the filter,
   the switches' shape without their fill. */
.zuruecksetzen { margin: 0; padding: .3rem .85rem; border: 1px solid var(--linie); border-radius: 999px; background: none;
                 font: inherit; font-size: var(--schrift-neben); font-weight: 400; color: var(--leise); text-decoration: none;
                 white-space: nowrap; cursor: pointer; }
.zuruecksetzen::before { content: "↺ "; }
@media (hover: hover) { .zuruecksetzen:hover { border-color: var(--akzent); color: var(--text); filter: none; } }

/* The parts of the plan (_plan_teile.html, ADR-053), in the published page
   and on the app's pages Kalender, Jahrgänge and Downloads. */
.jahrgang { margin: -.25rem 0 1rem; color: var(--leise); font-size: var(--schrift-neben); }
.leiste { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 .5rem; }
.leiste .legende { margin: 0; color: var(--leise); font-size: var(--schrift-klein); }
.monat-gruppe.vergangen .monat-kopf { color: var(--leise); }
.keiner { color: var(--leise); }
.fussnote { color: var(--leise); font-size: var(--schrift-klein); margin: .6rem 0 0; }
.karte .fussnote { margin: 0; }
/* The lead of Downloads, as the lead of every page: text size, grey. */
.abo-satz { color: var(--leise); font-size: var(--schrift-text); margin: 0 0 1rem; }
h2 + .abo-satz { margin-top: -.5rem; }
/* The birth years, a tile per class; "nur weiblich" as the cards' pill says it. */
/* The tiles as wide as the widest, measured (--breite, plan.js) or until then
   guessed from its characters (--zeichen), as many a row as fit, the rest of
   the row shared among them. */
.jahrgaenge-rahmen .kacheln { display: grid; gap: .6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--breite, calc(var(--zeichen, 14) * .45rem + 1.4rem))), 1fr)); }
.jahrgaenge-rahmen .kachel { background: var(--flaeche); border-radius: var(--rund-karte); padding: .65rem .7rem; }
.jahrgaenge-rahmen .kachel b { display: block; font-size: var(--schrift-gross); color: var(--akzent); }
.jahrgaenge-rahmen .kachel span { display: block; font-size: var(--schrift-neben); white-space: nowrap; }
.jahrgaenge-rahmen .kachel .jahr { display: inline; color: var(--leise); }
.jahrgaenge-rahmen .kachel .pille { display: inline-block; margin: 0 0 .2rem; font-size: var(--schrift-marke); }
