/* Handy zuerst. Eine Datei, kein Framework, keine Build-Stufe.
   Farben und Schrift sind die von vaues.de (dort am 14.11.2026 ausgelesen):
   Blau #0C5AA6, Dunkelrot #962615, Text #505051, Grund #F8F8FB.
   Text, Knoepfe und Eingaben stehen in Sen (SIL OFL 1.1, Lizenz in
   static/schrift/OFL.txt) und liegen selbst gehostet bei der Anwendung: kein
   Aufruf an Google, die CSP erlaubt dafuer nur font-src 'self'. Ueberschriften
   setzt die Website in Avenir Next LT Pro; die ist lizenzpflichtig und wird
   NICHT eingebettet, sondern greift als Systemschrift Avenir Next auf Mac und
   iPhone. Sonst faellt sie auf Sen zurueck. */
@font-face { font-family: "Sen"; font-weight: 400; font-style: normal; font-display: swap;
             src: url("/static/schrift/sen-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Sen"; font-weight: 600; font-style: normal; font-display: swap;
             src: url("/static/schrift/sen-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sen"; font-weight: 700; font-style: normal; font-display: swap;
             src: url("/static/schrift/sen-latin-700-normal.woff2") format("woff2"); }
:root {
  --text-schrift: "Sen", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --schrift: "Avenir Next LT Pro", "Avenir Next", Avenir, "Sen", system-ui, sans-serif;
  --schatten: 0 1px 4px rgba(17,17,26,.05), 0 0 8px rgba(17,17,26,.1);
  --rahmen: #dcdce3; --grund: #f8f8fb; --flaeche: #ffffff;
  --text: #505051; --gedaempft: #66666b; --akzent: #0c5aa6; --warnung: #962615;
  --dunkel: #2b3a46;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--text-schrift); background: var(--grund); color: var(--text);
       line-height: 1.5; font-size: 16px; }
header { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(17,17,26,.08);
         border-bottom: 1px solid var(--rahmen); padding: 0.6rem 1rem;
         display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1.2rem; }
header .kopfzeile { display: contents; }
header .logo { order: 1; display: block; line-height: 0; }
header .logo img { height: 32px; width: auto; }
header .konto { order: 2; margin-left: auto; display: flex; gap: 0.8rem; align-items: center; }
header nav { order: 3; flex: 1 0 100%; display: flex; flex-wrap: nowrap; align-items: center;
             gap: 0 0.3rem; overflow-x: auto; }
header nav > *, header nav a { flex: none; white-space: nowrap; }
header a { color: var(--text); text-decoration: none; }
header nav a:hover, header nav summary:hover { color: var(--akzent); }
header nav a[aria-current] { color: var(--akzent); }
header form.abmelden { margin: 0; }
header form.abmelden button { background: #fff; color: var(--akzent); }
@media (min-width: 56rem) {
  header { padding: 0.7rem 1.5rem; }
  header .logo img { height: 40px; }
  header nav { order: 2; flex: 1 1 0; flex-wrap: wrap; overflow-x: visible; }
  header .konto { order: 3; }
}
main { padding: 1rem; max-width: 64rem; margin: 0 auto; }
/* vaues.de setzt Ueberschriften in Normalstaerke mit enger Zeilenhoehe. */
h1, h2, h3 { font-weight: 400; line-height: 1.2; }
h1 { font-size: 1.45rem; margin: 0 0 0.8rem; color: var(--akzent); }
h2 { font-size: 1.1rem; margin: 1.4rem 0 0.5rem; }
a { color: var(--akzent); }
/* Ein Raster fuer alle Filterformulare: so viele Spalten, wie in 14rem passen.
   Die schmale Anmeldekarte bekommt damit von selbst eine Spalte. */
form.filter { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
              align-items: end; background: var(--flaeche); box-shadow: var(--schatten);
              border-radius: 16px; padding: 1rem; }
form.filter .feldhinweis { grid-column: 1 / -1; margin: 0; }
label { display: grid; gap: 0.2rem; font-size: 0.82rem; color: var(--gedaempft); }
input, select, button { font: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--rahmen);
                        border-radius: 4px; background: #fff; color: var(--text); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--akzent); outline-offset: 2px; }
button { background: var(--akzent); color: #fff; border-color: var(--akzent); cursor: pointer;
         font-weight: 600; font-size: 15px; padding: 0.6rem 1.2rem; }
form.abmelden button, details.loeschen button { font-size: 15px; }
/* Auf dem Handy soll die Trefferliste oben stehen, nicht sechs Filterfelder. */
details.filterbox { margin-bottom: 0.9rem; background: var(--flaeche); box-shadow: var(--schatten);
                   border-radius: 16px; padding: 0 1rem; }
details.filterbox[open] { padding-bottom: 1rem; }
details.filterbox > summary { cursor: pointer; font-weight: 600; }
details.filterbox form.filter { box-shadow: none; padding: 0; margin-top: 0.2rem; }
details.filterbox > .karte { box-shadow: none; border-top: 1px solid var(--rahmen); border-radius: 0;
                             padding: 0.8rem 0 0; margin: 0.8rem 0 0; }
.karte { background: var(--flaeche); box-shadow: var(--schatten); border-radius: 16px;
         padding: 1rem; margin-bottom: 0.9rem; }
@media (min-width: 40rem) { .karte { padding: 1.25rem; } }
.karte h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.zeile { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.86rem;
         color: var(--gedaempft); }
.marke { display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
         padding: 0.1rem 0.6rem; border-radius: 100px; border: 1px solid var(--rahmen);
         background: #fff; color: var(--gedaempft); }
.marke.unklar { border-color: var(--warnung); color: var(--warnung); }
.marke.bestaetigt { border-color: #b9cde4; background: #eef3f9; color: var(--akzent); }
.herkunft { font-size: 0.76rem; color: var(--gedaempft); margin-top: 0.35rem; }
.auszug mark, .auszug .treffer { background: #e4edf7; padding: 0 0.1rem; }
.kennzahlen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.kennzahl { background: var(--flaeche); box-shadow: var(--schatten); border-radius: 16px;
            padding: 1rem; }
.kennzahl b { display: block; font-size: 1.4rem; }
.leer { color: var(--gedaempft); }
@media (min-width: 40rem) {
  .kennzahlen { grid-template-columns: repeat(3, 1fr); }
}

.hinweis { color: var(--gedaempft); font-size: 0.86rem; max-width: 62ch; }

.warnung { color: var(--warnung); font-weight: 600; }
/* Anmeldung: eine zentrierte Karte, Logo oben, alles in voller Breite. */
main:has(.anmeldekarte) { display: grid; place-items: start center; padding-top: 2.5rem; }
.anmeldekarte { width: 100%; max-width: 24rem; background: var(--flaeche); box-shadow: var(--schatten);
                border-radius: 16px; padding: 1.5rem; }
.anmeldekarte .logo-gross { display: block; width: 200px; max-width: 100%; height: auto; margin: 0 auto 1rem; }
.anmeldekarte h1 { text-align: center; }
.anmeldekarte form.filter { box-shadow: none; padding: 0; grid-template-columns: 1fr; }
.anmeldekarte button { width: 100%; }

/* Durchsicht: Quelle und Eingabe nebeneinander, auf dem Handy untereinander. */
.gegenueber { display: grid; gap: 0.7rem; }
.gegenueber .quelle { background: var(--grund); border-radius: 12px; padding: 0.7rem; font-size: 0.88rem; }
.gegenueber .quelle p { margin: 0 0 0.5rem; }
.gegenueber .quelle p:last-child { margin-bottom: 0; }
@media (min-width: 48rem) {
  .gegenueber { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Bericht: Bezeichnung und Zahl als Paar, auf dem Handy untereinander lesbar
   und beim Drucken unveraendert. Bewusst kein <table>: der Rest der Anwendung
   kommt ohne aus, und eine Tabelle laeuft auf 375 Pixeln rechts hinaus. */
dl.bericht { margin: 0; background: var(--flaeche); box-shadow: var(--schatten);
             border-radius: 16px; padding: 0.5rem 1rem; }
dl.bericht dt { display: inline-block; width: 68%; padding: 0.35rem 0; font-size: 0.9rem; }
dl.bericht dd { display: inline-block; width: 30%; margin: 0; padding: 0.35rem 0;
                text-align: right; font-variant-numeric: tabular-nums; }
dl.bericht .abschnitt { font-weight: 600; color: var(--text); border-top: 1px solid var(--rahmen);
                        margin-top: 0.2rem; }
dl.bericht dt:first-of-type.abschnitt, dl.bericht dd:first-of-type.abschnitt { border-top: none; }

/* Drucken heisst hier: als PDF sichern. Also nur der Inhalt, ohne Navigation
   und ohne Hinweise, die auf dem Papier nichts zu suchen haben. */
@media print {
  header, .nurbildschirm, form { display: none; }
  body { background: #fff; font-size: 10pt; }
  main { max-width: none; padding: 0; }
  dl.bericht { border: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
}

/* Hilfe: die Antwort steht erst da, wenn die Frage angeklickt wird — sonst
   waere die Seite eine Wand aus Text, die niemand liest. */
details.frage > summary { cursor: pointer; font-size: 0.95rem; }
details.frage[open] > summary { margin-bottom: 0.4rem; font-weight: 600; }
details.frage p { margin: 0; max-width: 62ch; }
nav.inhalt { margin-bottom: 1rem; }
dl.erklaerung { margin: 0; }
dl.erklaerung dt { margin-top: 0.7rem; }
dl.erklaerung dd { margin: 0.2rem 0 0; max-width: 62ch; font-size: 0.9rem;
                   color: var(--gedaempft); }

/* Mappe einspielen: eine Spalte auch auf breiten Schirmen, grosse Ziele fuer
   den Daumen. */
form.filter.einspielen { grid-template-columns: 1fr; max-width: 36rem; }
form.einspielen input[type="file"] { padding: 0.8rem; background: var(--grund); }
form.einspielen button { padding: 0.8rem; font-size: 1rem; }
.ohne-abstand { margin: 0; }
.karte h2.ohne-abstand { margin-bottom: 0.6rem; }
ul.liste { margin: 0; padding: 0; list-style: none; }
ul.liste li { padding: 0.45rem 0; border-top: 1px solid var(--rahmen); font-size: 0.9rem; }
ul.liste li:first-child { border-top: none; }
ul.liste .herkunft { display: block; margin-top: 0.1rem; }
a.knopf { display: inline-flex; align-items: center; min-height: 44px; padding: 0.6rem 1.2rem;
          border-radius: 4px; background: var(--akzent); color: #fff; text-decoration: none;
          font-weight: 600; font-size: 15px; }
.karte h3.zwischen { margin: 1rem 0 0.3rem; font-size: 0.95rem; }

/* Schnellnotiz: oben auf der Startseite, ein grosses Feld und ein grosser
   Knopf. Diktiert wird ueber das Mikrofon der iPhone-Tastatur; 16 px Schrift
   verhindert, dass iOS beim Antippen in die Seite hineinzoomt. */
textarea { font: inherit; font-size: 16px; width: 100%; padding: 0.7rem; resize: vertical;
           border: 1px solid var(--rahmen); border-radius: 4px; background: #fff;
           color: var(--text); }
textarea:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
form.schnellnotiz { display: grid; gap: 0.5rem; background: var(--flaeche); max-width: 40rem;
                    box-shadow: var(--schatten); border-radius: 16px; padding: 1rem;
                    margin-bottom: 1rem; }
form.schnellnotiz > label { font-size: 0.9rem; color: var(--text); }
form.schnellnotiz button, form.schnellnotiz a.knopf { padding: 0.8rem 1rem; font-size: 1rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.notiztext { white-space: pre-wrap; margin: 0 0 0.4rem; }
blockquote.notiztext { margin: 0; padding: 0.6rem 0.8rem; background: var(--grund);
                       border-left: 3px solid var(--akzent); border-radius: 4px; }
fieldset.auswahl { border: 1px solid var(--rahmen); border-radius: 12px; margin: 0;
                   padding: 0.4rem 0.7rem 0.6rem; }
fieldset.auswahl legend { font-size: 0.82rem; color: var(--gedaempft); padding: 0 0.3rem; }
/* Ganze Zeile antippbar, nicht nur der kleine Kreis. */
label.wahl { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.6rem 0;
             border-top: 1px solid var(--rahmen); font-size: 0.95rem; color: var(--text);
             cursor: pointer; }
label.wahl:first-of-type { border-top: none; }
label.wahl input { margin-top: 0.25rem; width: 1.2rem; height: 1.2rem; flex: none; }
label.wahl .herkunft { display: block; margin-top: 0.1rem; }
details.loeschen { margin-top: 0.3rem; font-size: 0.86rem; }
details.loeschen > summary { cursor: pointer; color: var(--gedaempft); }
details.loeschen button { margin-top: 0.4rem; background: var(--warnung);
                          border-color: var(--warnung); }

ul.liste form.inline { margin-top: 0.35rem; }
ul.liste form.inline button { font-size: 0.8rem; padding: 0.3rem 0.7rem; }
.suchzeile { display: flex; gap: 0.5rem; }
.suchzeile input { flex: 1; min-width: 0; font-size: 16px; }

/* Handy-Durchgang (13.11.2026): Navigation, antippbare Kontakte, kompakte
   Hauskarten. Alles ohne Script: <details>, Anker, GET-Parameter. */
header nav > a, header nav summary { display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 0.5rem; }
header nav > a:first-child { padding-left: 0; }
header nav summary { cursor: pointer; list-style: none; }
header nav summary::-webkit-details-marker { display: none; }
header nav summary::after { content: " ▾"; }
details.mehr { position: relative; }
details.mehr > div { display: flex; gap: 0 0.3rem; }
details.mehr > div a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.5rem; }

/* Nichts darf die Seite seitlich aufreissen: lange Mailadressen und
   Institutsnamen brechen um, Grid-Kinder duerfen schrumpfen. */
main, .karte, .zeile, form.filter, form.filter > *, label { min-width: 0; }
html, body { max-width: 100vw; overflow-x: hidden; }
.karte, .zeile span, .kontakt, summary { overflow-wrap: anywhere; }
main button, main input:not([type="radio"]):not([type="checkbox"]), main select { min-height: 44px; }

.kontakte { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.3rem 0; }
a.kontakt { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem;
            border: 1px solid var(--akzent); border-radius: 4px; background: #fff;
            text-decoration: none; font-size: 0.95rem; }
.kontakte:empty { display: none; }
p.partner { margin: 0; font-size: 0.95rem; color: var(--text); }
p.letzter { margin: 0.4rem 0; padding: 0.5rem 0.7rem; background: var(--grund);
            border-left: 3px solid var(--akzent); border-radius: 4px; font-size: 0.9rem; }
/* Die Hausliste ist eine weisse Karte; die Trennlinien bleiben. */
details.haus { border-top: 1px solid var(--rahmen); background: #fff; padding: 0 1rem; }
.hausliste { margin-bottom: 0.9rem; box-shadow: var(--schatten); border-radius: 16px; }
details.haus:first-of-type { border-top: none; border-radius: 16px 16px 0 0; }
details.haus:last-of-type { border-radius: 0 0 16px 16px; }
details.haus:only-of-type { border-radius: 16px; }
details.haus > summary { cursor: pointer; display: flex; align-items: center; gap: 0.6rem;
                         min-height: 44px; overflow-wrap: normal; }
details.haus .kopf { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
                     white-space: nowrap; overflow-wrap: normal; }
details.haus .datum { flex: none; font-size: 0.85rem; color: var(--gedaempft); }
details.haus > summary .marke { flex: none; }
details.haus > summary, details.filterbox > summary { list-style: none; }
details.haus > summary::-webkit-details-marker,
details.filterbox > summary::-webkit-details-marker { display: none; }
details.haus > summary::after, details.filterbox > summary::after {
  content: "›"; flex: none; margin-left: auto; padding-left: 0.6rem;
  color: var(--gedaempft); font-size: 1.2rem; transition: none; }
details.haus[open] > summary::after,
details.filterbox[open] > summary::after { transform: rotate(90deg); }
details.haus[open] > summary { font-weight: 600; }
.haus-inhalt { padding: 0 0 0.9rem; }
form.suchfeld { display: grid; gap: 0.3rem; margin-bottom: 1rem; }
form.suchfeld > label { font-size: 0.9rem; }
details.filterbox > summary { display: flex; align-items: center; min-height: 44px; }
details.filterbox[open] { margin-bottom: 0.9rem; }
details.filterbox > .karte { margin-top: 0.7rem; }
details.haus form.filter { box-shadow: none; padding: 0; }
header nav summary::after { font-size: 0.8em; }
details.mehr { display: flex; align-items: center; }
