
*{box-sizing:border-box}
body{margin:0;background:#fff;color:#171717;font:16px/1.65 Inter,system-ui,sans-serif}
.book-page{width:min(1120px,calc(100% - 40px));margin:auto;padding:clamp(28px,6vw,72px) 0 64px}
.book-page :is(h1,h2,h3,h4){line-height:1.2;overflow-wrap:anywhere;letter-spacing:-.025em;margin:0 0 .65em}
.book-page h1{font-size:clamp(2.2rem,6vw,4.4rem);letter-spacing:-.045em}
.book-page h2{font-size:clamp(1.5rem,3vw,2.25rem)}
.book-page h3{font-size:clamp(1.25rem,2vw,1.6rem)}
.book-page h4{font-size:1.08rem}
.book-page :is(p,ul,ol){margin:0 0 1em}
.book-page a{color:inherit;text-underline-offset:4px}
.book-page :is(a,summary,button,textarea,select):focus-visible{outline:2px solid #171717;outline-offset:3px}
.book-page [id]{scroll-margin-top:24px}
.book-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,220px);gap:clamp(18px,5vw,64px);align-items:start}
.book-cover{display:block;width:100%;height:auto;border:1px solid #e6e6e6}
.book-meta,.book-small{font-size:.875rem;color:#555}
.book-lead{font-size:clamp(1.03rem,2vw,1.3rem)}
.book-page .actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:16px 0}
.book-page .actions a,.book-page .actions button,.book-cta{display:inline-flex;align-items:center;min-height:44px;max-width:100%}
.book-page .button,.book-page .btn,.book-page .book-cta{background:#171717;color:#fff;border:1px solid #171717;text-decoration:none;padding:8px 14px;font:inherit;font-weight:650}
.book-page .secondary{background:#fff;color:#171717;border-color:#aaa}
.book-page .textlink{padding:0;border:0;background:none;color:inherit;text-decoration:underline;text-underline-offset:4px}
.book-page button,.book-page summary{cursor:pointer}
.book-block{border-top:1px solid #e6e6e6;padding:clamp(22px,4vw,40px) 0;margin-top:24px}
.book-width{max-width:72ch;margin-inline:0}
.book-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}
.book-paths a,.book-toc a{display:flex;align-items:center;min-height:44px;padding:5px 0}
.book-paths a{border-bottom:1px solid #e6e6e6}
.book-toc summary,.book-notes summary{padding:8px 0;min-height:44px;font-weight:650}
.book-toc :is(ol,ul){padding-inline-start:1.35em}
.book-text :is(h2,h3,h4){margin-top:1.65em}
.book-text p,.book-text li{line-height:1.75}
.book-text blockquote,.book-text .in-book-bridge{border-left:2px solid #777;margin:16px 0;padding:10px 14px}
.book-text blockquote p{margin:0}
.book-text figure{margin:20px 0}
.book-text img{display:block;max-width:100%;height:auto}
.book-text .book-qr img{width:112px}
.book-text figcaption{font-size:.875rem;color:#555}
.book-text table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:.91rem;overflow-wrap:anywhere;margin:18px 0}
.book-text :is(th,td){text-align:left;vertical-align:top;padding:8px;border:1px solid #ddd}
.book-text thead th{background:#f5f5f5}
.book-notes label,.book-notes .hint{display:block;margin:6px 0}
.book-notes .hint{color:#555;font-size:.875rem}
.book-notes :is(textarea,select){font:inherit;max-width:100%;border:1px solid #aaa;border-radius:16px;padding:8px;background:#fff;color:#171717}
.book-notes textarea{width:100%;min-height:85px;resize:vertical}
.book-notes :is(.formgrid,details){margin-block:12px}
.book-notes details{border-top:1px solid #ddd}
.book-notes .formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
.book-notes .notice{border-left:2px solid #aaa;padding-inline-start:12px}
.book-notes :is(dd,.output){margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere}
.book-notes dt{font-weight:650}
.book-page [hidden],.book-page .print-only{display:none!important}
.book-overview .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.book-overview .card{padding:18px;border:1px solid #e6e6e6}
.book-overview .card img{display:block;width:min(100%,130px);height:auto;margin-bottom:14px}
.book-overview .eyebrow{font-size:.875rem;color:#555}
@media(max-width:650px){
 .book-page{width:calc(100% - 32px)}
 .book-hero,.book-paths,.book-notes .formgrid,.book-overview .grid{grid-template-columns:minmax(0,1fr)}
 .book-cover{width:min(40%,150px)}
 .book-text :is(th,td){padding:5px}
}
@media print{
 #osm-site-head,.osm-footer,.book-page.print-note > :not(.book-notes),.book-page.print-note .book-notes > :not(#result),.book-page.print-note #result :is(.actions,.status,.export-note){display:none!important}
 .book-page.print-note .print-only{display:block!important}
}
.draft-marker{display:inline-block;font-size:.7em;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#555;background:#f0f0eb;border:1px solid #d8d8d2;border-radius:999px;padding:2px 8px;vertical-align:middle;margin-left:6px}
.book-text section[id] h4{scroll-margin-top:24px;margin-top:1.8em}
.book-text section[id]{margin:1.4em 0}

/* Kapitel-Finder */
.finder{display:grid;gap:18px;margin-top:8px}
.finder-questions{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.finder-questions .visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.finder-option{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid #e6e6e6;border-radius:16px;cursor:pointer;min-height:44px}
.finder-option:hover{border-color:#b3b3b3}
.finder-option:has(input:checked){border-color:#171717;background:#fafafa}
.finder-option input{margin-top:4px;flex:0 0 auto;width:18px;height:18px}
.finder-option span{overflow-wrap:anywhere}
.finder-result{border-top:1px solid #e6e6e6;padding-top:18px}
.finder-book{font-size:.875rem;color:#555;margin:0 0 4px}
.finder-chapter{margin:0 0 12px}
.finder-note{font-size:.875rem;color:#555;margin:12px 0 0}
@media(max-width:650px){.finder{gap:14px}}

/* Übergangshilfe: vom Kapitel zur Anwendung */
.transition-help{margin:18px 0 0;border:1px solid #e6e6e6;border-radius:16px;background:#fafafa;padding:0}
.transition-help summary{cursor:pointer;font-weight:600;min-height:48px;display:flex;align-items:center;padding:14px 16px;list-style:none}
.transition-help summary::-webkit-details-marker{display:none}
.transition-help summary::after{content:"+";margin-left:auto;font-size:20px;font-weight:400}
.transition-help[open] summary::after{content:"−"}
.transition-help-body{padding:0 16px 16px}
.transition-help-body p{margin:0 0 12px;max-width:54ch}
.transition-help .btn{display:inline-flex;align-items:center;justify-content:center;background:#171717;color:#fff;border:1px solid #171717;padding:8px 14px;text-decoration:none;font-weight:650;min-height:44px}
