/* 3D-Betrachter, Stand 12.11.2026. Nur Regeln für .modell…; Tokens kommen aus site-*.css.
   Die vier --modell-* liest public/modell-20261112.js am figure-Element (hell und dunkel getrennt).
   Caddy liefert CSS mit „immutable“ aus: Wer diese Datei ändert, gibt ihr einen neuen Namen. */

.modell {
    --modell-grund: var(--platte);
    --modell-hell: var(--raster);
    --modell-dunkel: var(--tinte);
    --modell-wahl: var(--daten);
    margin: 0;
}

/* Dunkel: Teile von mittelgrau (dunkel) bis hellgrau (hell) auf dunkler Platte */
@media (prefers-color-scheme: dark) {
    .modell {
        --modell-hell: var(--bahn);
        --modell-dunkel: #565c66;
    }
}

.modell-buehne {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--platte);
    border: 1px solid var(--raster);
}

.modell-flaeche {
    display: block;
    width: 100%;
    height: 100%;
}
.modell-buehne.ist-aktiv .modell-flaeche { touch-action: none; }

.modell-start,
.modell-zurueck {
    min-height: 44px;
    padding: 0 18px;
    font: inherit;
    color: var(--tinte);
    background: var(--seite);
    border: 1px solid var(--tinte);
    border-radius: 0;
    cursor: pointer;
}
.modell-start:hover,
.modell-zurueck:hover { background: var(--platte); }

.modell-start {
    position: absolute;
    right: 12px;
    bottom: 12px;
}
.modell-buehne.ist-aktiv .modell-start { display: none; }

.modell-fehler {
    margin: 0;
    padding: 24px 16px;
    color: var(--tinte-2);
}

.modell-teil {
    min-height: 1.55em;
    margin: 8px 0 0;
    font-weight: 600;
}

.modell-bedienung { margin-top: 8px; }

.modell-gruppen {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    min-width: 0;
}
.modell-gruppen legend {
    padding: 0;
    margin-bottom: 4px;
    color: var(--tinte-2);
    font-size: 14px;
}
.modell-gruppen {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.modell-gruppen legend { flex: 0 0 100%; }
.modell-gruppen label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    font-size: 14px;
    cursor: pointer;
}
.modell-gruppen input { margin: 0; accent-color: var(--tinte); }

.modell-hilfe {
    margin: 12px 0 0;
    color: var(--tinte-2);
    font-size: 14px;
}

@media (min-width: 560px) {
    .modell-buehne { aspect-ratio: 4 / 3; }
}
