/* Ascom MMS 90 — Sirenensteuerung (FW-Leitstelle, Vollfläche) */
#leitSubAscom.leitstelle-subpane.active {
    min-height: 0;
}

.leit-ascom-wrap {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: auto;
    padding: 18px 22px 28px;
    background: linear-gradient(180deg, rgba(12, 18, 28, 0.4), rgba(8, 12, 20, 0.12));
    box-sizing: border-box;
}

.ascom-rack {
    width: 100%;
    max-width: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: "Rajdhani", Arial, Helvetica, sans-serif;
    color: #1a1a1a;
}

.ascom-brand {
    text-align: center;
    font-size: clamp(16px, 1.4vw, 22px);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(230, 236, 245, 0.9);
    margin-bottom: 4px;
}

.ascom-brand strong {
    color: #e74c3c;
}

.ascom-row {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(10px, 1.2vw, 18px);
    margin-bottom: 0;
    flex: 1;
    min-height: 0;
    align-items: stretch;
}

.ascom-row-top {
    flex: 0 0 auto;
    min-height: 110px;
}

.ascom-row-bottom {
    flex: 1 1 auto;
    min-height: 280px;
}

.ascom-module {
    background: linear-gradient(180deg, #ececec 0%, #d6d6d6 42%, #c4c4c4 100%);
    border: 2px solid #8f8f8f;
    border-radius: 4px;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.7),
        0 3px 10px rgba(0, 0, 0, 0.4);
    padding: clamp(12px, 1.2vw, 18px) clamp(14px, 1.4vw, 20px);
    min-height: 96px;
}

.ascom-module-title {
    font-size: clamp(11px, 0.95vw, 14px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2a2a2a;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.14);
    padding-bottom: 6px;
}

.ascom-led-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(11px, 0.9vw, 13px);
    font-weight: 700;
    text-transform: uppercase;
    margin: 6px 0;
}

.ascom-led {
    width: clamp(14px, 1.2vw, 18px);
    height: clamp(14px, 1.2vw, 18px);
    border-radius: 50%;
    border: 2px solid #555;
    background: #3a3a3a;
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.ascom-led.on-green {
    background: #2ecc40;
    box-shadow: 0 0 10px rgba(46, 204, 64, 0.9);
    border-color: #1e8a2e;
}

.ascom-led.on-red {
    background: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.9);
    border-color: #a93226;
}

.ascom-led.on-orange {
    background: #f39c12;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.9);
    border-color: #c87f0a;
}

.ascom-mod-blm { flex: 0 0 clamp(120px, 10vw, 160px); }
.ascom-mod-spv { flex: 0 0 clamp(110px, 9vw, 140px); }
.ascom-mod-lv { flex: 0 0 clamp(90px, 7vw, 110px); }
.ascom-mod-sv { flex: 0 0 clamp(90px, 7vw, 110px); }
.ascom-mod-speaker {
    flex: 1 1 200px;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ascom-speaker-grille {
    width: clamp(100px, 10vw, 150px);
    height: clamp(100px, 10vw, 150px);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0a0a0a 70%);
    border: 4px solid #777;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.95);
}

.ascom-row-bottom .ascom-module {
    min-height: 100%;
}

.ascom-mod-srl {
    flex: 0 0 clamp(100px, 8vw, 130px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.ascom-key-slot {
    width: 44px;
    height: 28px;
    background: #bbb;
    border: 2px solid #777;
    border-radius: 3px;
}

.ascom-btn-rect {
    width: 100%;
    min-height: clamp(32px, 3vh, 44px);
    border: 2px solid #666;
    border-radius: 3px;
    background: linear-gradient(180deg, #f8f8f8, #c8c8c8);
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    color: #222;
    padding: 8px 10px;
    text-align: center;
}

.ascom-btn-rect:hover:not(:disabled) {
    filter: brightness(1.06);
}

.ascom-btn-rect:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.28);
}

.ascom-btn-rect:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ascom-btn-red {
    width: clamp(56px, 5vw, 72px);
    height: clamp(56px, 5vw, 72px);
    border: 3px solid #922b21;
    background: linear-gradient(180deg, #e74c3c, #c0392b);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.ascom-btn-red:hover:not(:disabled) {
    filter: brightness(1.1);
}

.ascom-mod-sig {
    flex: 2 1 320px;
    min-width: 280px;
}

.ascom-sig-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.ascom-sig-start {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 700;
    text-transform: uppercase;
}

.ascom-signal-btn {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 16px;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    pointer-events: auto;
}

.ascom-signal-btn .ascom-led {
    cursor: pointer;
    pointer-events: none;
}

.ascom-signal-btn .ascom-sig-label {
    text-align: left;
    font-size: clamp(13px, 1.1vw, 17px);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #f4f4f4, #d0d0d0);
    border: 2px solid #777;
    border-radius: 3px;
    padding: clamp(10px, 1vh, 14px) clamp(12px, 1.2vw, 18px);
    color: #1a1a1a;
    min-height: clamp(40px, 4vh, 52px);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.ascom-signal-btn:hover .ascom-sig-label {
    filter: brightness(1.05);
    border-color: #555;
}

.ascom-signal-btn.active .ascom-led {
    background: #2ecc40;
    box-shadow: 0 0 12px rgba(46, 204, 64, 0.95);
}

.ascom-signal-btn.active .ascom-sig-label {
    background: linear-gradient(180deg, #d5f5d8, #8fd99a);
    border-color: #27ae60;
}

.ascom-mod-adf {
    flex: 0 0 clamp(72px, 6vw, 96px);
}

.ascom-adf-leds {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding-top: 8px;
}

.ascom-mod-tpm {
    flex: 0 0 clamp(140px, 12vw, 180px);
}

.ascom-mic-ring {
    width: clamp(52px, 5vw, 68px);
    height: clamp(52px, 5vw, 68px);
    border-radius: 50%;
    border: 4px solid #666;
    background: #222;
    margin: 0 auto 12px;
}

.ascom-tpm-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ascom-btn-green {
    background: linear-gradient(180deg, #58d68d, #27ae60);
    border-color: #1e8449;
    color: #fff;
}

.ascom-btn-red-sm {
    background: linear-gradient(180deg, #ec7063, #c0392b);
    border-color: #922b21;
    color: #fff;
}

.ascom-btn-orange {
    background: linear-gradient(180deg, #f5b041, #e67e22);
    border-color: #ca6f1e;
    color: #fff;
}

.ascom-mod-loc {
    flex: 0 0 clamp(120px, 10vw, 150px);
}

.ascom-loc-keys {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ascom-loc-num {
    font-size: clamp(14px, 1.2vw, 18px);
}

.ascom-loc-name {
    font-size: clamp(10px, 0.85vw, 12px);
    line-height: 1.25;
    padding: 8px 6px;
    text-align: center;
}

.ascom-mod-dsw {
    flex: 0 0 clamp(150px, 12vw, 190px);
}

.ascom-status-line {
    flex: 0 0 auto;
    margin-top: 4px;
    padding: 12px 16px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 600;
    color: rgba(230, 236, 245, 0.92);
    min-height: 24px;
}

.ascom-status-line.is-busy { color: #f39c12; }
.ascom-status-line.is-error { color: #e74c3c; }
.ascom-status-line.is-ok { color: #58d68d; }

@media (max-width: 1100px) {
    .ascom-row {
        flex-wrap: wrap;
    }
    .ascom-row-bottom .ascom-module {
        min-height: 200px;
    }
}
