/* Version 1.2: Maße und Schriften gegenüber 1.1 um ca. 15 % reduziert.
   Responsive Umbrüche bleiben erhalten; keine CSS-Zoom-Skalierung. */
:root {
    color-scheme: dark;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20.4px;
    color: #e1e4d8;
    background: #202522;
    --lime: #00FF00;
    --muted: #c5ccbf;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: repeating-linear-gradient(0deg, #232925 0, #232925 2px, #252b27 3px);
}
main { max-width: 1411px; margin: auto; padding: 20.4px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 17px; margin: 6.8px 0 20.4px; }
h1 { margin: 6.8px 0 4px; font-size: clamp(33.15px, 5.1vw, 56.1px); letter-spacing: .08em; }
h1 span { font-weight: 400; color: var(--lime); }
header p { color: var(--muted); margin: 0; font-size: 20.4px; }
.brand, footer { font-size: 15.3px; letter-spacing: .1em; color: #c8b58b; }
.clock { padding: 12.75px 18.7px; background: #101711; border: 2px inset #66705e; text-align: center; color: var(--lime); flex-shrink: 0; }
.clock time { font: 33.15px monospace; display: block; }
.clock span { font-size: 15.3px; letter-spacing: .1em; }
.panel { background: #353c35; border: 1px solid #687062; border-top: 3px solid #7b8272; padding: 15.3px; margin-bottom: 15.3px; box-shadow: 0 5px 10.2px #0003; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8.5px; margin-bottom: 10.2px; }
h2 { font-size: 15.3px; letter-spacing: .14em; margin: 0; color: #e0ceaa; }
.section-head > span { font: 15.3px monospace; color: var(--lime); }
.controls, .adjustments { display: flex; flex-wrap: wrap; gap: 11.9px; align-items: end; margin: 13.6px 0; }
label { display: flex; flex-direction: column; gap: 6.8px; font-size: 15.3px; color: #d3d9cd; min-width: 0; }
.monitoring .monitor-volume { flex: 0 1 300px; }
label.grow { flex: 1 1 297.5px; min-width: 0; }
button, select, input[type=number], .file-button {
    font: 17.85px Arial, Helvetica, sans-serif;
    min-height: 44.2px;
    border: 1px solid #858c7e;
    border-bottom: 3px solid #151b15;
    border-radius: 3px;
    background: #525b4f;
    color: #fff;
    padding: 9.35px 11.9px;
    max-width: 100%;
}
button, .file-button { cursor: pointer; overflow-wrap: anywhere; }
button:hover, .file-button:hover { background: #66735d; }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--lime); color: #101810; font-weight: bold; }
input[type=number] { width: 136px; background: #172018; color: var(--lime); }
select { min-width: 0; }
input[type=range], input[type=checkbox] { accent-color: var(--lime); }
input[type=range] { min-height: 30.6px; width: 100%; }
.check { flex-direction: row; align-items: center; min-height: 44.2px; }
input[type=checkbox] { width: 21.25px; height: 21.25px; flex-shrink: 0; }
.file-button { position: relative; overflow: hidden; justify-content: center; }
.file-button input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
:focus-visible, .file-button:focus-within { outline: 3px solid var(--lime); outline-offset: 3px; }
.hint { font-size: 15.3px; color: var(--muted); line-height: 1.6; margin: 8.5px 0; }
.tone-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; color: #ff8c83; font-size: 17.85px; padding: 6.8px 0; }
.tone-labels span:nth-child(2) { text-align: center; }
.tone-labels span:last-child { text-align: right; }
.scope { position: relative; height: 170px; background: black; border: 2px inset #78816c; }
.scope canvas { width: 100%; height: 100%; position: absolute; inset: 0; }
#markers { touch-action: pan-y; cursor: crosshair; }
.scale { display: flex; justify-content: space-between; font: 15.3px monospace; color: var(--lime); margin: 6.8px 0; }
.level { display: grid; gap: 6.8px; min-width: 127.5px; font-size: 15.3px; }
meter { width: 100%; height: 25.5px; accent-color: var(--lime); }
meter::-webkit-meter-optimum-value { background: #00FF00; }
meter::-moz-meter-bar { background: #00FF00; }
.adjustments { border-top: 1px solid #626b5b; padding-top: 13.6px; }
.adjustments label:not(.check) { flex: 1 1 161.5px; min-width: 0; }
output { color: var(--lime); }
.paper { height: 442px; overflow: auto; background: #0e140f; border: 2px inset #727c69; position: relative; }
#empty { text-align: center; padding: 123.25px 12.75px; color: var(--lime); font: 20.4px monospace; line-height: 2; margin: 0; }
#empty small { font: 15.3px Arial, sans-serif; }
#fax { width: 100%; display: block; background: #fff; }
#fax[hidden] { display: none; }
#fax.native { width: auto; max-width: none; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 10.2px; padding: 11.9px 0 0; font-size: 17px; }
#progress { margin-left: auto; font: 15.3px monospace; color: var(--lime); }
.led { height: 11.05px; width: 11.05px; border-radius: 50%; background: #727970; flex: 0 0 auto; }
.led.on { background: var(--lime); box-shadow: 0 0 6.8px var(--lime); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(238px, 100%), 1fr)); gap: 11.9px; }
.gallery article { background: #262e27; padding: 11.9px; border: 1px solid #6d7865; min-width: 0; }
.gallery img { width: 100%; height: 136px; object-fit: contain; background: white; }
.gallery p { font-size: 15.3px; overflow-wrap: anywhere; }
.gallery a { display: inline-block; padding: 10.2px; font-size: 17.85px; }
a { color: var(--lime); }
summary { cursor: pointer; min-height: 37.4px; font-size: 17.85px; }
details li, details p { font-size: 17.85px; line-height: 1.6; margin-bottom: 8.5px; }
button[aria-pressed=true] { background: var(--lime); color: #101810; }
footer { text-align: center; padding: 10.2px 0 20.4px; overflow-wrap: anywhere; }
@media(max-width:800px) {
    header { align-items: flex-start; flex-wrap: wrap; }
    .clock { margin-left: auto; }
    .controls > button, .controls > .file-button { flex: 1 1 195.5px; text-align: center; }
    .tuning > label { flex: 1 1 204px; }
}
@media(max-width:600px) {
    main { padding: 8.5px; }
    header { gap: 11.9px; }
    .brand { letter-spacing: .04em; }
    header p { font-size: 15.3px; }
    .panel { padding: 10.2px; }
    .controls, .adjustments { gap: 11.9px; }
    .controls > label, .adjustments > label { flex-basis: 100%; }
    .paper { height: 357px; }
    .scope { height: 144.5px; }
    .tone-labels { font-size: 15.3px; }
    #progress { width: 100%; margin-left: 0; }
    .scale span:nth-child(2), .scale span:nth-child(4), .scale span:nth-child(5) { display: none; }
    .clock time { font-size: 25.5px; }
    #empty { padding: 93.5px 8.5px; }
    details ol { padding-left: 21.25px; }
}

/* Anleitung: Praxis bleibt zuerst sichtbar, Theorie separat aufklappbar. */
.help h3 { font-size: 20px; margin: 24px 0 10px; line-height: 1.35; }
.help dt { font-size: 18px; font-weight: bold; color: var(--lime); margin-top: 18px; }
.help dd { font-size: 17.85px; line-height: 1.6; margin: 6px 0 16px; }
.help code, .help a { overflow-wrap: anywhere; }
.help code { font-size: .95em; }
.help .schedule-links { padding-left: 22px; }
.help .schedule-links a { display: inline-block; padding: 8px 0; }
.theory { border-top: 1px solid #687062; padding-top: 16px; margin-top: 24px; }
summary { min-height: 44px; }
