
:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203c3d;background:#f3f6f3;font-synthesis:none;--teal:#244c4d;--muted:#586d6b;--line:#bdd0c9}
*{box-sizing:border-box}html{scroll-behavior:auto;-webkit-text-size-adjust:100%;text-size-adjust:100%;max-width:100%;overflow-x:hidden}body{margin:0;max-width:100%;overflow-x:hidden}a{color:inherit;text-decoration:none}button,input{font:inherit}a,label,summary,button{touch-action:manipulation;-webkit-tap-highlight-color:#315f6226}a:focus-visible,summary:focus-visible,input:focus-visible,label:focus-visible{outline:3px solid #bb781d;outline-offset:3px}[hidden]{display:none!important}
.de{display:none}#de:checked~main .de,#de:checked~.langbar .de{display:inline}#de:checked~main .ru,#de:checked~.langbar .ru{display:none}.language-radio{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.langbar{min-height:72px;padding:9px max(14px,env(safe-area-inset-right)) 9px max(14px,env(safe-area-inset-left));display:flex;align-items:center;gap:12px;background:#244c4d;color:#fff;width:100%;overflow:hidden}.brand-wrap{display:flex;align-items:center;gap:12px;min-width:0}.brand{font:600 22px/1.05 Georgia,serif;white-space:nowrap}.private-badge{font-size:12px;font-weight:650;color:#d7e7df;line-height:1.15}.lang-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}.auth-user{font-size:12px;color:#d1e1db;white-space:nowrap}.logout-button{display:flex;align-items:center;justify-content:center;min-height:42px;padding:8px 11px;border:1px solid #ffffff66;border-radius:11px;color:#fff;font-size:13px;font-weight:750;white-space:nowrap}.logout-short{display:none}.logout-button:hover{background:#ffffff18}.languages{display:flex;gap:3px;flex:0 0 auto}.languages label{display:flex;align-items:center;justify-content:center;min-width:48px;min-height:44px;padding:10px;border-radius:11px;cursor:pointer;text-align:center;font-size:14px;font-weight:800}#ru:checked~.langbar label[for=ru],#de:checked~.langbar label[for=de]{color:#244c4d;background:#fff}
main{max-width:1040px;margin:auto;padding:0 16px calc(28px + env(safe-area-inset-bottom));min-width:0}h1,h2,h3,h4,p{margin:0}h1{font:600 clamp(28px,7vw,40px)/1.12 Georgia,"Times New Roman",serif;overflow-wrap:anywhere}h2{font-size:15px;text-align:center;margin:14px 0}h3,h4{font-size:14px}.eyebrow{display:block;font-size:12px;letter-spacing:.07em;color:#4f6967;line-height:1.5}.home-heading{padding:32px 0 24px}.home-heading h1{font-size:clamp(34px,8vw,52px);white-space:pre-line;margin:10px 0 14px}.home-heading p,.screen-heading p{font-size:15px;line-height:1.5;color:var(--muted);max-width:560px}
.home-search{margin:0 0 22px;padding:14px;border:1px solid #cbd9d2;border-radius:16px;background:#fff;box-shadow:0 3px 14px #244c4d08}.home-search label{display:block;margin-bottom:7px;font-size:14px;font-weight:700}.home-search input{width:100%;min-height:50px;padding:12px 14px;border:1px solid #90aaa0;border-radius:11px;font-size:16px;background:#fff}.home-search-status{font-size:12px;color:var(--muted);min-height:18px;margin-top:7px}.home-search-results{display:grid;gap:0;margin-top:4px;border-top:1px solid #e0e8e1}.home-search-results:empty{display:none}
.screen-search{position:relative;margin:10px 0 2px}.screen-search-input{width:100%;min-height:46px;padding:10px 14px 10px 42px;border:1px solid #9fb3aa;border-radius:12px;background:#fff;font-size:16px;box-shadow:0 2px 9px #244c4d0a}.screen-search:before{content:"⌕";position:absolute;left:15px;top:10px;font-size:22px;line-height:1;color:#58716b;pointer-events:none}.screen-search-status{min-height:0;margin:5px 3px 0;font-size:12px;color:var(--muted)}.screen-search-status:empty{display:none}.screen-search-results{position:relative;z-index:4;display:grid;margin-top:5px;border:1px solid #d5e0db;border-radius:12px;background:#fff;box-shadow:0 8px 22px #244c4d1b;overflow:hidden}.screen-search-results:empty{display:none}.screen-search-result{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-top:1px solid #e5ece8;min-height:54px;background:#fff}.screen-search-result:first-child{border-top:0}.screen-search-result strong{font-size:14px;line-height:1.3}.screen-search-result:active{background:#edf4f1}
.branch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.branch{display:flex;position:relative;flex-direction:column;padding:18px 38px 18px 18px;min-height:146px;border:1px solid #d4e0da;border-radius:18px;background:#fff;box-shadow:0 3px 14px #244c4d08;overflow-wrap:anywhere;min-width:0}.branch-number{font-size:12px;color:#758780;margin-bottom:18px}.branch strong{font:600 22px/1.2 Georgia,serif}.branch-sub{font-size:13px;line-height:1.4;margin-top:7px;color:var(--muted)}.branch-arrow{position:absolute;right:16px;top:18px;font-size:21px}.branch.featured{background:#244c4d;color:#fff;border-color:#244c4d}.featured .branch-number,.featured .branch-sub{color:#c7ded4}.branch:active,.person:active{box-shadow:inset 0 0 0 2px #89b2a8}
.person-screen{display:none;scroll-margin-top:0}.person-screen:target{display:block}.person-screen:target~#home{display:none}.screen-nav{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;background:#f3f6f3f5;backdrop-filter:blur(12px);border-bottom:1px solid #d4e0da}.back{display:flex;align-items:center;min-height:48px;font-weight:700;font-size:15px;gap:5px}.details-link{font-size:14px;padding:12px 4px;min-height:44px;color:var(--muted)}.screen-heading{padding:20px 0 8px}.screen-heading h1{margin:8px 0}.screen-heading p{font-size:14px}.research-notice{margin:8px 0;padding:9px 12px;border-radius:10px;background:#fff5cf;color:#6e5517;font-size:12px}
.tree-flow{max-width:820px;margin:auto}.parent-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;position:relative;padding-bottom:22px}.lane{min-width:0;display:flex;flex-direction:column;border-radius:14px;background:#fff;padding:9px;border:1px solid #d5dfdb}.lane:nth-child(odd){background:#fbf0f1;border-color:#e6c7ce}.lane:nth-child(even){background:#edf4fb;border-color:#c6d8e8}.grandparents{display:grid;gap:8px;flex:1;align-content:end}.parent-slot{position:relative;margin-top:12px;padding-top:14px}.parent-slot:before{content:"";position:absolute;left:50%;top:0;height:12px;border-left:2px solid var(--line)}.lane-title{text-align:center;font-size:14px;font-weight:750;margin-bottom:8px}.person{display:flex;flex-direction:column;width:100%;min-width:0;min-height:100px;gap:5px;padding:12px;border:1px solid #bccfc7;border-radius:12px;background:#fff;overflow-wrap:anywhere}.person strong{font-size:15px;line-height:1.35}.pid{font-size:12px;letter-spacing:.04em;color:#51716a}.date{font-size:12px;line-height:1.4;color:#536963}.person.provisional{border-style:dashed;background:#fff8df}.uncertain{font-size:12px;color:#705114}.unknown{display:flex;align-items:center;justify-content:center;padding:14px 6px;min-height:100px;color:#617670;font-size:13px;text-align:center;line-height:1.4;border:1px dashed #becdc6;border-radius:12px}.focus-person{position:relative;width:min(360px,88%);margin:0 auto;padding:14px 0 22px;text-align:center}.focus-person>.eyebrow{margin-bottom:8px}.selected{background:#244c4d;color:#fff;border-color:#244c4d;text-align:left;box-shadow:0 6px 20px #244c4d20}.selected strong{font-size:19px}.selected .pid,.selected .date{color:#d1e1db}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.unions{display:grid;gap:12px}.union{border:1px solid #cad8d0;background:#fff;border-radius:16px;padding:14px}.union h3{color:#526b60;margin-bottom:12px}.union h4{padding:14px 0 10px;border-top:1px solid #dce5df;margin-top:12px}.partner-label{font-size:13px;color:var(--muted);margin-bottom:8px}.union-note{font-size:12px;color:var(--muted);line-height:1.5;margin-top:9px}.empty{padding:18px;color:var(--muted);text-align:center;font-size:14px}.more,.directory,.credits{margin-top:18px;border:1px solid #d1dcd5;border-radius:14px;background:#fff;padding:0 14px}summary{cursor:pointer;min-height:56px;padding:17px 0;font-size:15px;font-weight:650;line-height:1.4}summary>span{font-size:12px;color:var(--muted);margin-left:6px}.more .cards{padding-bottom:14px}.notes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.6;padding-bottom:16px}.bio-hint{margin:0 0 10px;padding:8px 10px;border-radius:9px;background:#f0f6f3;color:#4d6862;font-size:12px;line-height:1.4}.bio-link{color:#0b625f;font-weight:750;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;text-decoration-color:#4e8b83;background:#e8f3ef;border-radius:5px;padding:1px 3px;box-decoration-break:clone;-webkit-box-decoration-break:clone;cursor:pointer}.bio-link::after{content:" ↗";font-size:.72em;font-weight:900;color:#507b74;vertical-align:.08em}.bio-link:hover{background:#d9ece5;color:#064e4c}.bio-link:active{background:#cbe5dc}.bio-link:focus-visible{outline:2px solid #bb781d;outline-offset:2px}.note-hint{font-size:13px;color:var(--muted);margin-bottom:12px}.bottom-back{margin-top:22px;justify-content:center;background:#e5eee8;border-radius:12px}.directory-list{display:grid;gap:0;max-height:60vh;overflow-y:auto;margin-bottom:12px}.directory-person{display:flex;flex-direction:column;gap:5px;padding:14px 3px;border-top:1px solid #e0e8e1;min-height:64px}.directory-person strong{font-size:15px;line-height:1.4}.credits{font-size:13px;line-height:1.55;color:var(--muted)}.privacy-card-note{font-style:italic}.database-note{margin:14px 0 0;font-size:12px;color:var(--muted)}.person-photo{width:62px;height:62px;object-fit:cover;object-position:center;border-radius:14px;align-self:center;border:2px solid #d5e2dc;background:#eef3f0;box-shadow:0 2px 8px #244c4d18}.selected .person-photo{width:88px;height:88px;border-color:#d7e6e0}.contact-card{margin:20px 0 0;padding:16px;border:1px solid #c8d8d0;border-radius:16px;background:#fff;box-shadow:0 3px 14px #244c4d08}.contact-copy strong{display:block;font:600 19px/1.25 Georgia,"Times New Roman",serif;color:#244c4d}.contact-copy p{margin-top:7px;font-size:13px;line-height:1.5;color:var(--muted)}.contact-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:13px}.contact-button{display:flex;flex-direction:column;justify-content:center;min-height:56px;padding:10px 12px;border-radius:11px;border:1px solid #9fb8ae;background:#edf5f1;font-weight:800;font-size:14px;line-height:1.25;text-align:center;color:#244c4d}.contact-button>span:last-child{font-size:12px;font-weight:650;margin-top:2px;overflow-wrap:anywhere}.contact-button:hover{background:#e2efea}.contact-button:active{box-shadow:inset 0 0 0 2px #89b2a8}
@media(min-width:760px){.branch-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.grandparents{grid-template-columns:repeat(2,minmax(0,1fr))}.unions{grid-template-columns:repeat(2,minmax(0,1fr))}.screen-heading{text-align:center}.screen-heading p{margin:auto}}
@media(max-width:620px){
  .langbar{min-height:66px;padding:8px 10px;gap:7px;overflow:hidden}.brand-wrap{gap:7px;flex:1 1 auto;min-width:0}.brand{font-size:19px;white-space:normal;line-height:.98;max-width:84px}.private-badge{display:none}.auth-user{display:none}.lang-actions{gap:5px;flex:0 0 auto}.languages{order:-1}.languages label{min-width:43px;min-height:44px;padding:8px 7px;font-size:14px}.logout-button{min-height:44px;padding:8px 9px;font-size:12px}.logout-long{display:none!important}.logout-short{display:inline}
}
@media(max-width:480px){main{padding-left:12px;padding-right:12px}.contact-actions{grid-template-columns:1fr}.branch-grid{gap:10px}.branch{padding:14px 28px 14px 14px;min-height:164px}.branch strong{font-size:20px}.branch-sub{font-size:12px}.branch-arrow{right:10px;font-size:18px}.parent-pair{gap:8px}.lane{padding:6px}.cards{grid-template-columns:1fr}.back{font-size:14px}.details-link{font-size:13px}.screen-heading h1{font-size:29px}}
@media(max-width:370px){.brand{font-size:18px;max-width:74px}.languages label{min-width:40px}.logout-button{padding:7px;font-size:11px}}
#ru:checked~.langbar .logout-short.de{display:none}#de:checked~.langbar .logout-short.ru{display:none}#ru:checked~.langbar .logout-short.ru,#de:checked~.langbar .logout-short.de{display:inline}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* App-style launch button; the pedigree preview/print CSS below is copied verbatim from Stammbaum App v0.5.5. */
.pedigree-launch-row{display:flex;justify-content:center;margin:8px 0 18px}
.btn{border:0;border-radius:11px;padding:10px 13px;background:#2d5b4f;color:white;font-weight:700;cursor:pointer}
.btn.secondary{background:white;color:#242522;border:1px solid #dedfd9}

.pedigree-modal{position:fixed;inset:0;z-index:9999;background:rgba(22,32,26,.76);display:flex;padding:14px;justify-content:center;color:#28392e}
.pedigree-shell{width:min(1640px,100%);height:100%;background:#f6f1e7;border-radius:16px;display:flex;flex-direction:column;box-shadow:0 24px 80px #0005;overflow:hidden}
.pedigree-bar{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fffefb;border-bottom:1px solid #d9dfd4;flex-shrink:0}
.pedigree-bar strong{font-size:16px}.pedigree-bar .spacer{flex:1}.pedigree-bar .preview-person{max-width:28%;font-size:13px}
.pedigree-print,.pedigree-close{font:600 14px Arial,sans-serif;border-radius:9px;padding:11px 15px;cursor:pointer}.pedigree-print{border:1px solid #365d46;background:#365d46;color:#fff}.pedigree-close{border:1px solid #c8d2c7;background:white;color:#314c3c}
.pedigree-print:focus-visible,.pedigree-close:focus-visible,.pedigree-preview-scroll:focus-visible{outline:3px solid #8aaa5d;outline-offset:2px}
.pedigree-guide{font-size:13px;line-height:1.45;margin:0;padding:8px 16px;color:#576650;background:#f5f2e9;border-bottom:1px solid #e4e0d6;flex-shrink:0}
.pedigree-preview-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;background:#ede9df}
.pedigree-sheet{width:max-content;margin:0 auto;padding:18px 20px 24px;box-sizing:content-box}
.pedigree-zoom-stage{position:relative;transform-origin:0 0}
.pedigree-zoom-stage>.pedigree-sheet{transform-origin:0 0}
.pedigree-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:10px}.pedigree-head h1{font:700 24px Arial,sans-serif;margin:0 0 4px;color:#2e4837}.pedigree-sub{font:13px/1.4 Arial,sans-serif;color:#596956;max-width:460px}
.pedigree-diagram{background:#faf7ef;border:1px solid #d4d9cc;border-radius:12px;overflow:visible}.pedigree-svg{display:block;max-width:none;font-family:Arial,sans-serif;overflow:visible}
.pedigree-foot{display:flex;justify-content:space-between;gap:20px;font:11px/1.5 Arial,sans-serif;color:#697763;margin-top:8px}
.pedigree-print-pages{display:none}.pedigree-page{break-after:page;page-break-after:always;break-inside:avoid;page-break-inside:avoid}.pedigree-page:last-child{break-after:auto;page-break-after:auto}
.pedigree-svg .kin{stroke:#516b58;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}.pedigree-svg .root-bus{stroke:#365d46;stroke-width:2.6;fill:none}.pedigree-svg .junction{stroke-width:2;fill:#fffdf7}.pedigree-svg .card-outline{fill:#fffefbf5;stroke:#b3c1af;stroke-width:1.4}.pedigree-svg .root .card-outline{fill:#fffefa;stroke:#365d46;stroke-width:3.2}.pedigree-svg .co-parent .card-outline,.pedigree-svg .partner .card-outline{fill:#fffaf1f5}.pedigree-svg .pc-name{fill:#24392d;font-weight:600}.pedigree-svg .root .pc-name{font-weight:700}.pedigree-svg .pc-meta{fill:#566550}.pedigree-svg .pc-id{fill:#71816a}.pedigree-svg .pc-tag{fill:#5a6b51;font-weight:600;letter-spacing:.4px}.pedigree-svg .gen-label{fill:#596d4f;font-size:12px;font-weight:700;letter-spacing:1.1px}.pedigree-svg .union-number{font-size:12px;font-weight:700;text-anchor:middle;dominant-baseline:central}.pedigree-svg .union-region{fill:#fffdfa;fill-opacity:.37;stroke:#d5ddcf;stroke-width:1}.pedigree-svg .pc-more{fill:#80663f;font-size:12px}
.pedigree-preview-scroll .person-card{cursor:pointer}.pedigree-preview-scroll .person-card .card-outline{transition:stroke .12s ease,stroke-width .12s ease,fill .12s ease}.pedigree-preview-scroll .person-card:hover .card-outline,.pedigree-preview-scroll .person-card:focus .card-outline{stroke:#2d5b4f;stroke-width:3;fill:#f4f8f5}.pedigree-preview-scroll .person-card:focus{outline:none}
@media(max-width:700px){.pedigree-modal{padding:0}.pedigree-shell{border-radius:0}.pedigree-bar{flex-wrap:wrap;padding:10px 12px;gap:8px}.pedigree-bar strong{flex:1;min-width:55%;font-size:15px}.pedigree-bar .preview-person{display:none}.pedigree-bar .spacer{display:none}.pedigree-print,.pedigree-close{font-size:14px;min-height:42px}.pedigree-guide{font-size:12px;padding:7px 12px}.pedigree-preview-scroll{touch-action:none;user-select:none;-webkit-user-select:none}.pedigree-sheet{padding:14px 16px 22px}.pedigree-zoom-stage>.pedigree-sheet{margin:0}.pedigree-head h1{font-size:22px}}
@page{size:A4 landscape;margin:8mm}
@media print{
 html,body{margin:0!important;padding:0!important;background:white!important;overflow:visible!important;color:#28392e!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 body.pedigree-printing>*:not(#pedigreeModal){display:none!important}
 body.pedigree-printing #pedigreeModal{position:static!important;display:block!important;background:white!important;padding:0!important;width:100%!important}
 body.pedigree-printing .pedigree-shell{width:100%!important;height:auto!important;max-width:none!important;display:block!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;background:white!important}
 body.pedigree-printing .pedigree-bar,body.pedigree-printing .pedigree-guide,body.pedigree-printing .pedigree-preview-scroll{display:none!important}
 body.pedigree-printing .pedigree-print-pages{display:block!important}
 .pedigree-page{width:281mm!important;height:193mm!important;padding:0!important;margin:0!important;overflow:visible!important}
 .pedigree-page .pedigree-head{height:14mm;margin:0!important;align-items:flex-start}.pedigree-page .pedigree-head h1{font-size:16px;margin:0 0 2px}.pedigree-page .pedigree-sub{font-size:10px;max-width:150mm}
 .pedigree-page .pedigree-diagram{border:0!important;border-radius:0!important;height:171mm;display:flex;align-items:flex-start;justify-content:center}
 .pedigree-page .pedigree-foot{font-size:9px;height:7mm;margin:0!important;align-items:center}
}
