/* HERKUNFT: Lichtschalter aus ~/_ClaudeWorkspace/MAD42-Webseite/runde-1/erlebnis/start.css, Zeilen 133–146 (Kippschalter, Platte 26 × 42 px),
   übernommen am 01.12.2026. Zugschnur-Variante weggelassen. Farben kommen über die Brücke in alfred-tokens.css. */

.lichtschalter { position: fixed; right: 12px; top: 58vh; z-index: 6; padding: 8px; margin: 0; border: 0; background: none; cursor: pointer;
  color: var(--text-2); -webkit-tap-highlight-color: transparent; }
.lichtschalter:focus { outline: none; }
.lichtschalter:focus-visible { outline: 1px solid var(--markierung); outline-offset: 2px; border-radius: 4px; }
.platte { position: relative; display: block; width: 26px; height: 42px; border: 1px solid var(--linie-hover); border-radius: 4px; background: var(--flaeche); }
.platte::before, .platte::after { content: ""; position: absolute; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: var(--linie-hover); }
.platte::before { top: 3px; } .platte::after { bottom: 3px; }   /* zwei Schrauben */
.kipp { position: absolute; left: 50%; top: 50%; width: 10px; height: 20px; margin: -10px 0 0 -5px; border-radius: 2px;
  border: 1px solid var(--linie-hover); background: linear-gradient(to bottom, var(--text-3) 0 50%, var(--flaeche-hover) 50% 100%);
  transform: perspective(60px) rotateX(22deg); transition: transform .16s cubic-bezier(.3, 1.6, .5, 1), background .2s ease; }
html[data-theme="hell"] .kipp { background: linear-gradient(to bottom, var(--flaeche-hover) 0 50%, var(--text-3) 50% 100%); transform: perspective(60px) rotateX(-22deg); }
.lichtschalter:hover .platte { border-color: var(--markierung); }
.lichtschalter.klick .platte { animation: lichtschalter-klick .22s ease; }
@keyframes lichtschalter-klick { 40% { transform: scale(.93); } 100% { transform: scale(1); } }

@media (max-width: 860px) { .lichtschalter { position: static; padding: 4px; } }
@media (prefers-reduced-motion: reduce) { .kipp { transition: none; } .lichtschalter.klick .platte { animation: none; } }

/* Ergänzung andrefritz.de: Tippziel mindestens 44 px (Vorlage hatte 42 px Breite), Platte selbst unverändert. */
.lichtschalter { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
