:root { --text: #202122; --leise: #54595d; --linie: #c8ccd1; --flaeche: #f8f9fa; --link: #3366cc; --akzent: #8a5a2b; --w: #c2185b; --m: #1565c0; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2 { font-family: 'Linux Libertine', Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { font-size: 30px; margin: 6px 0 12px; } h1 small, h2 small { font-family: Arial, sans-serif; font-size: 14px; color: var(--leise); }
h2 { font-size: 23px; border-bottom: 1px solid var(--linie); padding-bottom: 3px; margin: 28px 0 12px; }
.kopf { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding: 10px 24px; border-bottom: 1px solid var(--linie); background: var(--flaeche); position: sticky; top: 0; z-index: 5; }
.logo { font-family: Georgia, serif; font-size: 21px; color: var(--text); white-space: nowrap; }
.suche { flex: 1 1 220px; } .suche input { width: 100%; padding: 8px 12px; border: 1px solid var(--linie); border-radius: 4px; font-size: 16px; }
.menue { display: flex; gap: 4px; flex-wrap: wrap; } .menue a { padding: 6px 12px; border-radius: 4px; color: var(--text); }
.menue a.an { background: #fff; border: 1px solid var(--linie); } .menue a.aus { color: #a2a9b1; pointer-events: none; }
.inhalt { max-width: 1180px; margin: 0 auto; padding: 18px 24px 60px; }
.fuss { text-align: center; color: var(--leise); font-size: 14px; padding: 20px; border-top: 1px solid var(--linie); }
.fuss form { display: inline; } .fuss button { background: none; border: 0; color: var(--link); font: inherit; cursor: pointer; }
.titelzeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--linie); margin-bottom: 14px; }
.knopf { display: inline-block; background: var(--akzent); color: #fff !important; border: 0; border-radius: 6px; padding: 9px 18px; font: inherit; font-size: 16px; cursor: pointer; text-decoration: none !important; }
.knopf.hell { background: #fff; color: var(--akzent) !important; border: 1px solid var(--akzent); } .knopf:disabled { opacity: .6; }
.leise { color: var(--leise); } .hinweis { background: #fef6e7; border: 1px solid #fc3; border-radius: 6px; padding: 10px 14px; }
.willkommen { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 22px 26px; }
.zahlen { display: flex; gap: 26px; flex-wrap: wrap; } .zahlen b { font-size: 28px; display: block; color: var(--text); }
.aktionen { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.raster a { display: block; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 4px; overflow: hidden; color: var(--leise); }
.raster img { width: 100%; height: 150px; object-fit: cover; display: block; } .raster small { display: block; padding: 2px 8px; font-size: 13px; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pkarte { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--linie); border-left: 4px solid #a2a9b1; border-radius: 6px; color: var(--text); }
.pkarte.w { border-left-color: var(--w); } .pkarte.m { border-left-color: var(--m); }
.pkarte img, .pkarte .ohne { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ohne { display: grid; place-items: center; background: #eaecf0; color: var(--leise); font-size: 22px; font-family: Georgia, serif; }
.pkarte small { display: block; color: var(--leise); font-size: 14px; }
.artikel { display: flex; flex-direction: row-reverse; gap: 26px; align-items: flex-start; }
.infobox { width: 300px; flex-shrink: 0; border: 1px solid var(--linie); background: var(--flaeche); padding: 8px; font-size: 15px; }
.infobox img { width: 100%; display: block; margin-bottom: 8px; } .infobox table { width: 100%; border-collapse: collapse; }
.infobox th { text-align: left; vertical-align: top; padding: 4px 8px 4px 0; width: 38%; } .infobox td { padding: 4px 0; }
.text { flex: 1; min-width: 0; } .lesen { max-width: 760px; font-size: 18px; } .lebensdaten { color: var(--leise); margin-top: 0; }
.rot { color: #d73333; }
.liste { padding-left: 20px; } .liste li { margin: 4px 0; } .liste small { color: var(--leise); margin-left: 8px; } .liste.gross li { font-size: 19px; }
.formular label { display: block; margin: 10px 0; font-weight: 600; } .formular small { font-weight: 400; color: var(--leise); }
.formular input, .formular select, .formular textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--linie); border-radius: 4px; font: inherit; font-weight: 400; }
.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 18px; }
.wahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.wahl { border: 1px solid var(--linie); border-radius: 6px; padding: 8px 10px; margin: 10px 0; background: var(--flaeche); }
.wahl-kopf { margin: 0 0 6px; } .wahl-filter { width: 100%; margin-top: 4px; padding: 7px 10px; border: 1px solid var(--linie); border-radius: 4px; font: inherit; }
.wahl-liste { max-height: 260px; overflow-y: auto; } .wahl-liste label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; padding: 4px 6px; border-radius: 4px; cursor: pointer; }
.wahl-liste label.an { background: #eaf3ff; font-weight: 600; } .wahl-liste input { width: auto !important; display: inline !important; margin: 0 !important; }
.loeschen { margin-top: 40px; } .loeschen button { background: none; border: 1px solid #d33; color: #d33; border-radius: 4px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 14px; }
.hochladen { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-bottom: 10px; }
.ablage { flex: 1 1 300px; border: 2px dashed var(--linie); border-radius: 8px; padding: 18px; cursor: pointer; background: var(--flaeche); }
.ablage input { display: none; }
.foto-seite { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.foto-seite figure { margin: 0; } .foto-seite img { max-width: 100%; max-height: 75vh; display: block; margin: 0 auto; box-shadow: 0 1px 6px rgba(0,0,0,.2); }
.foto-seite figcaption { margin-top: 8px; color: var(--leise); }
.blaettern { display: flex; gap: 16px; }
/* Stammbaum: klassischer Baum von oben nach unten, seitlich scrollbar */
.baum-rahmen { overflow-x: auto; padding: 10px 0 30px; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); }
.baum, .baum ul { display: flex; justify-content: center; padding: 18px 0 0; margin: 0; position: relative; list-style: none; }
.baum { width: max-content; min-width: 100%; padding: 10px 20px 0; }
.baum li { position: relative; padding: 18px 8px 0; display: flex; flex-direction: column; align-items: center; }
.baum li::before, .baum li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 18px; border-top: 2px solid #a2a9b1; }
.baum li::after { right: auto; left: 50%; border-left: 2px solid #a2a9b1; }
.baum li:only-child::before, .baum li:only-child::after { display: none; } .baum li:only-child { padding-top: 0; }
.baum li:first-child::before, .baum li:last-child::after { border: 0 none; }
.baum li:last-child::before { border-right: 2px solid #a2a9b1; border-radius: 0 6px 0 0; } .baum li:first-child::after { border-radius: 6px 0 0 0; }
.baum ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 18px; border-left: 2px solid #a2a9b1; }
.baum > li::before, .baum > li::after { display: none; } .baum > li { padding-top: 0; }
.paar { display: flex; align-items: center; gap: 4px; }
.herz { color: var(--leise); font-size: 18px; }
.bp { display: flex; flex-direction: column; align-items: center; width: 132px; padding: 8px 6px; background: #fff; border: 1px solid var(--linie); border-top: 4px solid #a2a9b1; border-radius: 6px; color: var(--text); text-align: center; font-size: 14px; line-height: 1.3; }
.bp.w { border-top-color: var(--w); } .bp.m { border-top-color: var(--m); } .bp.klein { width: 112px; opacity: .92; }
.bp img, .bp .ohne { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; margin-bottom: 4px; }
.bp small { color: var(--leise); font-size: 12px; } .bp i { font-style: normal; font-size: 12px; color: var(--leise); margin-top: 2px; }
.vorfahren { text-align: center; margin-bottom: 10px; } .reihe { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 4px 0; }
.vf { border: 1px dashed var(--linie); border-radius: 6px; padding: 4px 10px; font-size: 14px; } .vf small { color: var(--leise); }
.baum-wahl select { font: inherit; padding: 6px 8px; margin-left: 6px; }
body.login { display: grid; place-items: center; min-height: 100vh; background: var(--flaeche); }
.login-karte { background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 30px 34px; width: min(380px, 92vw); text-align: center; }
.login-karte label { display: block; text-align: left; font-weight: 600; margin-top: 16px; } .login-karte input { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--linie); border-radius: 6px; margin: 6px 0 16px; }
.logo-gross { font-size: 42px; margin: 0; } .fehler { color: #d33; }
@media (max-width: 800px) {
  .inhalt { padding: 14px 14px 50px; } .kopf { padding: 8px 14px; position: static; } .artikel { flex-direction: column; } .infobox { width: 100%; }
  .foto-seite { grid-template-columns: 1fr; } h1 { font-size: 26px; } .raster { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); } .raster img { height: 110px; }
}
.entwurf { border: 1px solid var(--linie); border-radius: 8px; padding: 6px 18px 12px; margin: 14px 0; background: #fff; }
.entwurf.uebernommen { background: #f1f8f1; border-color: #8bc34a; } .entwurf.verworfen { opacity: .5; }
.entwurf h3 { font-family: Georgia, serif; font-weight: 400; font-size: 21px; margin: 10px 0 4px; } .entwurf h3 small { font-family: Arial, sans-serif; font-size: 14px; color: var(--leise); }
.entwurf .aktionen form { display: inline; }
.mitschrift { max-height: 520px; overflow-y: auto; border: 1px solid var(--linie); border-radius: 8px; padding: 8px 14px; background: var(--flaeche); font-size: 16px; }
.mitschrift p { margin: 4px 0; } .mitschrift a { font-family: monospace; font-size: 13px; margin-right: 6px; }
.feld-gruppe { margin: 10px 0; } .feld-titel { display: block; font-weight: 600; margin-bottom: 4px; }
.formular select { cursor: pointer; }
/* iPad mit Maus (25.10.): Zeiger "springt" - Safari laesst den Zeiger an Elementen mit cursor:pointer einrasten; in den dicht gepackten
   Auswahllisten springt er dadurch zwischen den Zeilen. Ausserdem die versteckten Knopf-Felder an ihren Platz binden (kein Scroll-Sprung beim Anklicken). */
.wahl-liste label, .wahl-liste { overscroll-behavior: contain; }
/* iPad-Maus (25.10.): Header nicht mehr klebend (verursachte Scroll-Spruenge beim Fokussieren); Felder sauber gruppiert */
.kopf { position: static; }
.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 18px; align-items: start; }
.felder .feld label, .formular .feld label { margin: 0 0 4px; }
.felder .feld input, .formular .feld input { margin-top: 0; }
label, .feld-titel { cursor: default; }
input[type=text], input:not([type]), textarea { cursor: text; }

/* iPad: Doppeltipp-Zoom auf Bedienelementen abschalten (nicht den Pinch-Zoom) + Felder sicher auf 16px, damit Safari beim Fokus nicht hineinzoomt */
input, select, textarea, button, a, label { touch-action: manipulation; }
input, select, textarea { font-size: 16px; }
.jt-fokus, .willkommen h1 { font-size: 17px; }

/* Geschlecht: normale Auswahlpunkte, nichts aus dem Fluss geloest */
.radiozeile { display: flex; flex-wrap: wrap; gap: 8px; }
.radiozeile .radio { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 8px 14px; border: 1px solid var(--linie); border-radius: 6px; background: #fff; font-weight: 400; cursor: default; }
.radiozeile .radio input { width: auto; margin: 0; }
.zu-alex { padding: 6px 12px; border-radius: 4px; color: var(--leise); border: 1px solid var(--linie); background: #fff; }
.zu-alex:hover { color: var(--text); text-decoration: none; }
@media (max-width: 800px) { .zu-alex { order: -1; } }
