/* Technik-Labor: eigenständige Werkzeugoberfläche, passend zum Bros-Bytes-Terminal. */
.tech-menu {
    position: sticky;
    top: 72px;
    z-index: 20;
    width: 100%;
    background: rgba(8, 10, 9, .94);
    border-bottom: 1px solid #202522;
    backdrop-filter: blur(12px);
}

.tech-menu-inner {
    width: min(1200px, 100%);
    min-height: 54px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 27px;
}

.tech-menu-label,
.tech-menu-link,
.tech-kicker,
.tech-version,
.stage-topline,
.stage-caption,
.tech-footnote > span {
    font-family: 'Orbitron', monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tech-menu-label {
    color: #5f6c63;
    font-size: 10px;
}

.tech-menu-link {
    position: relative;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #abb6ad;
    text-decoration: none;
    font-size: 11px;
    transition: color .2s ease;
}

.tech-menu-link span { color: #ff9933; font-size: 9px; }
.tech-menu-link::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #ff9933; content: ''; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.tech-menu-link:hover, .tech-menu-link:focus-visible { color: #fff; }
.tech-menu-link:hover::after, .tech-menu-link:focus-visible::after { transform: scaleX(1); }
.tech-menu-link.active { color: #ffad5c; }
.tech-menu-link.active::after { transform: scaleX(1); }

.tech-page {
    width: 100%;
    padding: 32px 0 64px;
    scroll-margin-top: 142px;
}

.tech-shell { width: min(1200px, 100%); margin: 0 auto; padding: 0 40px; }

.tech-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 25px;
}

.tech-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; color: #849187; font-size: 10px; }
.signal-dot, .stage-topline i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #65d18c; box-shadow: 0 0 11px rgba(101, 209, 140, .8); }
.tech-heading h1 { color: #f2f4f1; font-family: 'Orbitron', sans-serif; font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.tech-lead { max-width: 62ch; margin-top: 9px; color: #919b94; font: 14px/1.65 'Courier New', monospace; }

.tech-version { display: flex; flex-shrink: 0; flex-direction: column; align-items: flex-end; gap: 6px; padding: 0 0 4px; color: #66736a; font-size: 9px; }
.tech-version b { color: #d0d9d2; font-size: 11px; font-weight: 600; }

.iso-tool { padding: 17px; border: 1px solid #29312b; border-radius: 9px; background: linear-gradient(145deg, #111512, #090b0a 70%); box-shadow: 0 22px 70px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .025); }

.tool-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.tool-field { display: grid; gap: 7px; color: #c6cec8; font: 12px 'Courier New', monospace; }
.select-wrap { position: relative; }
.select-wrap::after { position: absolute; top: 50%; right: 16px; width: 8px; height: 8px; border-right: 1px solid #9aa49c; border-bottom: 1px solid #9aa49c; content: ''; pointer-events: none; transform: translateY(-70%) rotate(45deg); }
.tool-field select { width: 100%; min-height: 44px; appearance: none; padding: 0 42px 0 14px; border: 1px solid #393f3a; border-radius: 6px; outline: none; background: #202421; color: #f1f3f0; font: 13px 'Courier New', monospace; cursor: pointer; }
.tool-field select:hover, .tool-field select:focus-visible { border-color: #ff9933; }
.tool-field select option { background: #202421; color: #f1f3f0; }

.iso-stage { position: relative; width: min(100%, 920px); min-height: 0; margin: 0 auto; overflow: hidden; aspect-ratio: 920 / 520; border: 1px solid #242b26; border-radius: 6px; background: #050706; }
.stage-topline { position: absolute; z-index: 2; top: 14px; right: 16px; left: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: #68766c; font-size: 9px; pointer-events: none; }
.stage-topline span:first-child { display: flex; align-items: center; gap: 8px; }
.stage-topline i { width: 6px; height: 6px; }
.iso-scene { display: block; width: 100%; height: 100%; }
.stage-axis { position: absolute; bottom: 40px; left: 18px; width: 72px; opacity: .8; pointer-events: none; }
.stage-axis svg { width: 100%; overflow: visible; }
.stage-axis line { fill: none; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 3px currentColor); }
.stage-axis .axis-x { color: #ff9933; stroke: #ff9933; }
.stage-axis .axis-y { color: #63dc91; stroke: #63dc91; }
.stage-axis .axis-z { color: #71b6ff; stroke: #71b6ff; }
.stage-axis .axis-origin { fill: #f4fff7; stroke: #0b100d; stroke-width: 1; }
.stage-axis .axis-depth-mark { fill: #71b6ff; stroke: #07101a; stroke-width: 1.5; }
.stage-axis text { fill: #edf4ef; font: 10px 'Orbitron', monospace; paint-order: stroke; stroke: #050706; stroke-width: 2px; }
.stage-axis .axis-label-x { fill: #ffb25f; }
.stage-axis .axis-label-y { fill: #80efa8; }
.stage-axis .axis-label-z { fill: #8cc5ff; }
.stage-caption { position: absolute; right: 14px; bottom: 14px; left: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; color: #5f6a62; font-size: 8px; pointer-events: none; }

.camera-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding: 22px 7px 6px; }
.range-control { min-width: 0; display: grid; gap: 9px; color: #d7ddd8; font: 13px 'Courier New', monospace; }
.range-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.range-heading output { color: #ffad5c; font: 13px 'Orbitron', monospace; white-space: nowrap; }
.range-control input[type="range"] { width: 100%; height: 20px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.range-control input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: #343b36; }
.range-control input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: #343b36; }
.range-control input[type="range"]::-webkit-slider-thumb { width: 17px; height: 17px; margin-top: -7px; appearance: none; border: 2px solid #111512; border-radius: 50%; background: #e6ebe7; box-shadow: 0 0 0 1px #78857b; transition: background .15s, box-shadow .15s; }
.range-control input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid #111512; border-radius: 50%; background: #e6ebe7; box-shadow: 0 0 0 1px #78857b; transition: background .15s, box-shadow .15s; }
.range-control input[type="range"]:hover::-webkit-slider-thumb, .range-control input[type="range"]:focus-visible::-webkit-slider-thumb { background: #ffad5c; box-shadow: 0 0 0 3px rgba(255, 153, 51, .2); }
.range-control input[type="range"]:hover::-moz-range-thumb, .range-control input[type="range"]:focus-visible::-moz-range-thumb { background: #ffad5c; box-shadow: 0 0 0 3px rgba(255, 153, 51, .2); }

.projection-note { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 15px 7px 22px; color: #7e8a81; font: 11px 'Courier New', monospace; }
.projection-note span:not(.projection-mark) { color: #434d46; }
.projection-mark { color: #65d18c; font-size: 17px; }
.prompt-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #d7ddd8; font: 13px 'Courier New', monospace; }
.copy-prompt { min-height: 34px; padding: 0 11px; border: 1px solid #3b443d; border-radius: 4px; background: #171b18; color: #aab5ac; font: 10px 'Orbitron', monospace; letter-spacing: .03em; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.copy-prompt:hover, .copy-prompt:focus-visible { border-color: #ff9933; background: #211a12; color: #ffad5c; }
.camera-prompt { display: block; width: 100%; min-height: 94px; resize: vertical; padding: 13px 14px; border: 1px solid #363d38; border-radius: 5px; outline: none; background: #202421; color: #ecf1ed; font: 13px/1.55 'Courier New', monospace; }
.camera-prompt:focus-visible { border-color: #ff9933; }
.copy-feedback { min-height: 17px; padding-top: 5px; color: #70d695; font: 11px 'Courier New', monospace; }
.tech-footnote { display: flex; align-items: baseline; gap: 10px; margin: 14px 2px 0; color: #758078; font: 11px/1.6 'Courier New', monospace; }
.tech-footnote > span { color: #ff9933; font-size: 9px; }
.sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 900px) {
    .tech-menu { position: relative; top: auto; }
    .tech-menu-inner { min-height: 46px; flex-wrap: wrap; gap: 4px 18px; padding: 7px 18px; }
    .tech-page { padding-top: 25px; }
    .tech-shell { padding: 0 20px; }
    .iso-tool { padding: 12px; }
    .iso-stage { width: 100%; }
}

@media (max-width: 600px) {
    .tech-menu-inner { gap: 4px 12px; padding: 7px 12px; }
    .tech-menu-label { font-size: 8px; }
    .tech-menu-link { font-size: 9px; }
    .tech-heading { align-items: flex-start; }
    .tech-heading h1 { font-size: 25px; }
    .tech-lead { font-size: 12px; }
    .tech-version { display: none; }
    .tech-shell { padding: 0 12px; }
    .tool-selects { grid-template-columns: 1fr; }
    .stage-topline { top: 10px; right: 10px; left: 10px; font-size: 8px; }
    .stage-caption { right: 10px; bottom: 9px; left: 10px; font-size: 7px; }
    .stage-axis { bottom: 33px; left: 9px; width: 56px; }
    .camera-controls { grid-template-columns: 1fr; gap: 12px; padding: 18px 4px 4px; }
    .range-control { font-size: 12px; }
    .projection-note { font-size: 10px; }
    .prompt-header { align-items: flex-start; font-size: 12px; }
    .copy-prompt { flex-shrink: 0; font-size: 8px; }
    .camera-prompt { font-size: 12px; }
}

@media (max-width: 380px) {
    .stage-caption span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .tech-menu-link, .tech-menu-link::after, .tool-field select, .copy-prompt, .range-control input[type="range"]::-webkit-slider-thumb, .range-control input[type="range"]::-moz-range-thumb { transition: none; }
}
