/* Die Leseseite ist unabhängig vom gewählten Anwendungsthema gut lesbar.
   Tabellen dürfen auf schmalen Bildschirmen innerhalb ihres eigenen Rahmens scrollen. */
:root { color-scheme: light dark; font: 16px/1.65 system-ui, "Segoe UI", Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; color: #18353c; background: #f2f5f6; }
a { color: #087e82; text-underline-offset: .17em; }
a:focus-visible { outline: 2px solid #087e82; outline-offset: 3px; }
.handbuch-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px max(18px, calc((100% - 1060px)/2)); background: #fff; border-bottom: 1px solid #dfe8ea; }
.handbuch-kopf nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.handbuch-reiter { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.handbuch-kopf a { color: inherit; text-decoration: none; }
.handbuch-kopf a[aria-current="page"] { color: #087e82; font-weight: 700; }
.handbuch-zurueck { white-space: nowrap; font-weight: 700; }
/* Das native Details-Element klappt die Handbuchauswahl mobil ohne JavaScript auf. */
.handbuch-hamburger { display: none; position: relative; }
.handbuch-hamburger summary { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 11px; border: 1px solid #cbdadd; border-radius: 10px; cursor: pointer; font-weight: 650; list-style: none; white-space: nowrap; }
.handbuch-hamburger summary::-webkit-details-marker { display: none; }
.handbuch-hamburger-links { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; display: grid; gap: 3px; width: min(270px, calc(100vw - 36px)); padding: 7px; border: 1px solid #d5e0e2; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px #17323926; }
.handbuch-hamburger-links a { display: block; padding: 10px 11px; border-radius: 8px; }
.handbuch-hamburger-links a:hover, .handbuch-hamburger-links a:focus-visible { background: #edf4f5; }
.handbuch-inhalt { max-width: 1060px; margin: 22px auto; padding: 28px clamp(18px, 4vw, 46px); background: #fff; border: 1px solid #dfe8ea; border-radius: 16px; }
.handbuch-inhalt h1, .handbuch-inhalt h2, .handbuch-inhalt h3 { line-height: 1.25; scroll-margin-top: 18px; }
.handbuch-inhalt h1 { margin: 0 0 18px; font-size: clamp(27px, 5vw, 38px); }
.handbuch-inhalt h2 { margin: 36px 0 14px; padding-top: 10px; border-top: 1px solid #dfe8ea; font-size: clamp(21px, 3vw, 27px); }
.handbuch-inhalt h3 { margin: 26px 0 10px; font-size: 19px; }
.handbuch-inhalt p, .handbuch-inhalt ul, .handbuch-inhalt ol { margin: 12px 0; }
.handbuch-inhalt li { margin: 5px 0; }
.handbuch-fussnoten-ziffer { margin-left: .08em; font-size: .72em; line-height: 0; vertical-align: super; }
.handbuch-fussnote { padding-left: 1.8em; text-indent: -1.8em; font-size: .94em; }
.handbuch-inhalt blockquote { margin: 18px 0; padding: 7px 16px; border-left: 4px solid #087e82; background: #e4f3f1; }
.handbuch-inhalt code { padding: .12em .3em; border-radius: 4px; background: #edf2f3; font: .88em/1.5 ui-monospace, Consolas, monospace; }
.handbuch-inhalt pre { overflow: auto; padding: 16px; border-radius: 9px; background: #172b32; color: #edf6f6; }
.handbuch-inhalt pre code { padding: 0; background: transparent; color: inherit; }
.handbuch-tabelle { overflow-x: auto; margin: 18px 0; border: 1px solid #dfe8ea; border-radius: 9px; }
.handbuch-tabelle table { width: 100%; border-collapse: collapse; }
.handbuch-tabelle th, .handbuch-tabelle td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #dfe8ea; }
.handbuch-tabelle th { background: #edf4f5; }
.handbuch-tabelle tr:last-child td { border-bottom: 0; }
.handbuch-inhalt figure { margin: 20px 0; }
.handbuch-inhalt figure img { display: block; max-width: 100%; height: auto; border: 1px solid #dfe8ea; border-radius: 9px; }
.handbuch-inhalt figcaption { margin-top: 6px; color: #60767c; font-size: 13px; }
.handbuch-fuss { max-width: 1060px; margin: 0 auto; padding: 0 18px 25px; color: #60767c; font-size: 13px; }
@media (max-width: 700px) {
    /* Auf schmalen Displays ersetzt ein kompaktes Klappmenü die horizontale Reiterreihe. */
    .handbuch-kopf { align-items: center; flex-direction: row; }
    .handbuch-kopf nav { flex: 0 0 auto; margin-left: auto; }
    .handbuch-reiter { display: none; }
    .handbuch-hamburger { display: block; }
    .handbuch-inhalt { margin: 0; border: 0; border-radius: 0; }
}
@media (prefers-color-scheme: dark) {
    body { color: #e6f0f1; background: #0e1c22; }
    a { color: #78d8d2; }
    .handbuch-kopf, .handbuch-inhalt { background: #172a32; border-color: #35505a; }
    .handbuch-kopf a[aria-current="page"] { color: #78d8d2; }
    .handbuch-hamburger summary { border-color: #46616a; }
    .handbuch-hamburger-links { background: #172a32; border-color: #46616a; box-shadow: 0 12px 32px #0008; }
    .handbuch-hamburger-links a:hover, .handbuch-hamburger-links a:focus-visible { background: #233c44; }
    .handbuch-inhalt h2, .handbuch-tabelle, .handbuch-tabelle td, .handbuch-inhalt figure img { border-color: #35505a; }
    .handbuch-inhalt blockquote, .handbuch-tabelle th, .handbuch-inhalt code { background: #233c44; }
    .handbuch-inhalt figcaption, .handbuch-fuss { color: #a6bac0; }
}

/* Erklärgrafiken behalten am Desktop ihre lesbare Breite und passen sich schmalen Displays an. */
.handbuch-inhalt figure img { width:100%; max-width:640px; }

/* Das Terminal-Handbuch ist ein DOS-Lesefenster. Kopf und Fuß bleiben beim
   Blättern stehen, der Textbereich unterstützt native Bild- und Pfeiltasten. */
@font-face {
    font-family:"Nouveau IBM";
    src:url("fonts/Nouveau_IBM.ttf") format("truetype");
    font-display:block;
}
html.handbuch-dos {
    color-scheme:dark;
    background:#000;
    font:clamp(12px,2.25vw,20px)/1.2 "Nouveau IBM",monospace;
    font-synthesis:none;
}
.handbuch-dos body {
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    width:min(100%,80ch);
    height:100dvh;
    margin:auto;
    color:#fff;
    background:#0000aa;
    border:4px double #00aaaa;
}
.handbuch-dos :is(.handbuch-kopf,.handbuch-inhalt,.handbuch-fuss) {
    width:100%;
    max-width:none;
    margin:0;
    padding:.45em 1ch;
    border:0;
    border-radius:0;
    color:inherit;
    background:transparent;
}
.handbuch-dos .handbuch-kopf {
    flex-wrap:wrap;
    gap:.35em 2ch;
    color:#000;
    background:#aaa;
}
.handbuch-dos .handbuch-reiter { display:flex; gap:.25em 2ch; }
.handbuch-dos .handbuch-hamburger { display:none; }
.handbuch-dos .handbuch-kopf a { font-weight:normal; }
.handbuch-dos .handbuch-kopf a[aria-current="page"] { color:#000; background:#00aaaa; }
.handbuch-dos .handbuch-inhalt {
    overflow:auto;
    overflow-wrap:anywhere;
    scrollbar-color:#aaa #0000aa;
}
.handbuch-dos .handbuch-inhalt :is(h1,h2,h3) {
    margin:1em 0 .5em;
    padding:0;
    border:0;
    color:#ffff55;
    font:inherit;
}
.handbuch-dos .handbuch-inhalt a { color:#55ffff; }
.handbuch-dos :is(a,.handbuch-inhalt):focus-visible { outline:1px dotted #ffff55; outline-offset:-1px; }
.handbuch-dos .handbuch-fuss { border-top:1px solid #00aaaa; font:inherit; }
.handbuch-dos .handbuch-inhalt :is(blockquote,pre,code,th) { color:#fff; background:#000; border-radius:0; }
.handbuch-dos .handbuch-inhalt code { font:inherit; }
.handbuch-dos :is(.handbuch-tabelle,.handbuch-tabelle td,.handbuch-inhalt img) { border-color:#00aaaa; border-radius:0; }
.handbuch-dos .handbuch-inhalt figcaption { color:#aaa; font:inherit; }
@media (max-width:780px) and (orientation:portrait) {
    /* Wie das Terminal liegt das Lesefenster hochkant mittig im 4:3-Format. */
    html.handbuch-dos { display:grid; place-items:center; min-height:100dvh; }
    .handbuch-dos body { height:min(75vw,100dvh); }
}
