/* Praxis - Stylesheet (Stufe 0, 9.10.2026). Bewusst schlicht: grosse Schrift und Knoepfe,
   ein gemeinsamer PC fuer Menschen mit sehr unterschiedlicher Computererfahrung. */

:root {
    --grund: #f5f6f4;
    --karte: #ffffff;
    --text: #1f2421;
    --leise: #5d665f;
    --linie: #d9ddd8;
    --akzent: #2f6f5e;
    --akzent-dunkel: #24574a;
    --fehler: #a32020;
    --fehler-grund: #fbeaea;
    --ok: #1e6b3a;
    --ok-grund: #e7f4ec;
    color-scheme: light;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--grund);
    color: var(--text);
    font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--akzent); }

.kopfzeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 18px;
    background: var(--karte);
    border-bottom: 1px solid var(--linie);
}

.ort {
    font-weight: 650;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
}

.profil { position: relative; }
.profil summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
}
.profil summary::-webkit-details-marker { display: none; }
.profil summary:focus-visible { outline: 2px solid var(--akzent); }
.kreis {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--akzent);
    color: #fff;
    font-weight: 650;
}
.profil-menue {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 200px;
    padding: 8px 0;
    background: var(--karte);
    border: 1px solid var(--linie);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    z-index: 10;
}
.profil-menue a,
.profil-menue button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.profil-menue a:hover,
.profil-menue button:hover { background: var(--grund); }
.profil-rolle { margin: 0 16px 6px; color: var(--leise); font-size: 0.9rem; }

.inhalt { max-width: 1000px; margin: 0 auto; padding: 20px 16px 48px; }
.mitte  { min-height: 100vh; display: grid; place-items: center; padding: 16px; }

.karte {
    background: var(--karte);
    border: 1px solid var(--linie);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
}
.karte.schmal { max-width: 520px; }
.karte h1, .karte h2 { margin-top: 0; font-size: 1.25rem; }
details.karte summary { cursor: pointer; font-weight: 600; }

.anmeldekarte { width: 100%; max-width: 400px; }
.marke-gross { margin: 0; font-size: 1.8rem; font-weight: 700; color: var(--akzent); }
.unterzeile { margin: 2px 0 16px; color: var(--leise); }
.hinweis { color: var(--leise); font-size: 0.92rem; margin: 14px 0 0; }

label { display: block; margin: 14px 0 4px; font-weight: 600; }
label.auswahl { font-weight: 400; display: flex; gap: 8px; align-items: center; }
input[type=text], input[type=password], input[type=email], select {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    border: 1px solid #b9c0b8;
    border-radius: 8px;
    background: #fff;
}
input:focus, select:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
input[type=checkbox] { width: 20px; height: 20px; }

.knopf {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--akzent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.knopf:hover { background: var(--akzent-dunkel); }
.knopf:disabled { opacity: 0.5; cursor: not-allowed; }
.knopf.zweit { background: none; color: var(--akzent); border: 1px solid var(--linie); margin-left: 8px; }
.anmeldekarte .knopf { width: 100%; }
button.verweis {
    border: 0; background: none; padding: 0; color: var(--akzent);
    font: inherit; text-decoration: underline; cursor: pointer;
}

.meldung { padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; }
.meldung.fehler { background: var(--fehler-grund); color: var(--fehler); }
.meldung.ok { background: var(--ok-grund); color: var(--ok); }

.liste { width: 100%; border-collapse: collapse; }
.liste th, .liste td { padding: 8px 10px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.liste th { color: var(--leise); font-weight: 600; font-size: 0.92rem; }
.liste tr.inaktiv td { color: var(--leise); }
.aktionen { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.aktionen form { margin: 0; }

.kacheln {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.kachel {
    background: var(--karte);
    border: 1px solid var(--linie);
    border-radius: 12px;
    padding: 16px;
    display: grid;
    gap: 4px;
}
.kachel.spaeter { opacity: 0.6; }
.kachel span { color: var(--leise); font-size: 0.92rem; }

@media (max-width: 700px) {
    .liste thead { display: none; }
    .liste tr { display: block; border-bottom: 1px solid var(--linie); padding: 8px 0; }
    .liste td { display: block; border: 0; padding: 2px 0; }
    .profil-name { display: none; }
}

/* ---- Hauptmenue und Wissen (9.10.2026) ---- */
.kopfzeile .ort { margin-right: auto; }
.hauptmenue { display: flex; gap: 4px; }
.hauptmenue a { padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.hauptmenue a:hover { background: var(--grund); }
.hauptmenue a[aria-current="page"] { background: var(--grund); font-weight: 600; }
.kachel a { color: var(--text); text-decoration: none; }
.kachel a:hover strong { text-decoration: underline; }
.kachel .zahl { color: var(--akzent); font-weight: 600; }
.pfad { margin: 0 0 12px; color: var(--leise); font-size: 0.95rem; }
.pfad a { color: var(--leise); }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.suche { display: flex; gap: 8px; margin-bottom: 18px; }
.suche input { flex: 1; padding: 10px 12px; font: inherit; border: 1px solid #b9c0b8; border-radius: 8px; }
.suche .knopf { margin-top: 0; }
input[type=search], input[type=date], textarea {
    width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #b9c0b8; border-radius: 8px; background: #fff;
}
textarea.wissen-eingabe { font-family: ui-monospace, Consolas, monospace; font-size: 0.95rem; }
.marke { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
         background: #fff3d6; color: #7a5300; vertical-align: middle; }
.marke.ueberholt { background: #eee; color: #666; }
.marke.leise { background: var(--grund); color: var(--leise); font-weight: 400; }
.wissen-liste { list-style: none; margin: 0; padding: 0; }
.wissen-eintrag { padding: 10px 0; border-bottom: 1px solid var(--linie); }
.wissen-eintrag:last-child { border-bottom: 0; }
.wissen-eintrag a { font-weight: 600; }
.wissen-eintrag p { margin: 2px 0 0; color: var(--leise); font-size: 0.95rem; }
.wissen-artikel h1 { font-size: 1.4rem; margin-bottom: 4px; }
.marken { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.kurzfassung { font-size: 1.05rem; color: var(--leise); border-left: 3px solid var(--akzent); padding-left: 12px; }
.wissen-text h2 { font-size: 1.15rem; margin: 1.4em 0 0.4em; }
.wissen-text h3, .wissen-text h4 { font-size: 1.02rem; margin: 1.2em 0 0.3em; }
.wissen-text blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--linie); color: var(--leise); }
.wissen-text code, .angaben code { background: var(--grund); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
.wissen-code { background: var(--grund); padding: 10px; border-radius: 8px; overflow-x: auto; }
.wissen-haken { list-style: none; padding-left: 4px; }
.wissen-tabelle-rahmen { overflow-x: auto; margin: 10px 0; }
.wissen-tabelle { border-collapse: collapse; }
.wissen-tabelle td { border: 1px solid var(--linie); padding: 6px 10px; vertical-align: top; }
.wissen-tabelle tr:first-child td { font-weight: 600; background: var(--grund); }
.wissen-fehlt { border-bottom: 1px dashed var(--leise); color: var(--leise); }
.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.angaben dt { color: var(--leise); }
.angaben dd { margin: 0; }
.fassungen { padding-left: 20px; }
.aktionen-leiste { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.aktionen-leiste form { margin: 0; }
.aktionen-leiste .knopf { margin-top: 0; }
.aktionen-leiste details { flex-basis: 100%; }
form.zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 6px; }
form.zeile label { flex-basis: 100%; }
form.zeile select { flex: 1; width: auto; }
form.zeile .knopf { margin: 0; }
@media (max-width: 700px) {
    .hauptmenue a { padding: 6px; }
    .angaben { grid-template-columns: 1fr; }
    .angaben dd { margin-bottom: 6px; }
}
