 /* ---------- Grundlayout ---------- */
        body {
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            background: #f4f4f4;
            color: #333;
        }
        .container {
            display: flex;
            flex-wrap: wrap;
            height: 100vh;
        }

        /* ---------- Canvas‑Bereich ---------- */
        .display {
            flex: 2 1 600px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #222;
        }
        #pwmCanvas {
            background: #fff;
            border: 2px solid #444;
        }

        /* ---------- Bedienfeld ---------- */
        .controls {
            flex: 1 1 300px;
            padding: 1rem;
            background: #fff;
            overflow-y: auto;
        }
        .controls h3 { margin-top: 0; }
        .controls label,
        .controls p,
        .controls fieldset {
            display: block;
            margin: 0.8rem 0;
        }
        .controls input[type="range"] { width: 100%; }
        .controls fieldset {
            border: 1px solid #ccc;
            padding: 0.5rem;
        }
        .controls button {
            margin-top: 1rem;
            padding: 0.5rem 1rem;
            font-size: 1rem;
        }

        /* ---------- Responsives Design ---------- */
        @media (max-width: 768px) {
            .container { flex-direction: column; }
            .display,
            .controls { flex: 1 1 auto; width: 100%; }
            #pwmCanvas { width: 100%; height: auto; }
        }