/* ==========================================================================
   🐔 ZETTELHUHN - OVERLAY VIRTUELLE TASTATUR STYLES (TEXT-ICONS)
   ========================================================================== */

/* Hauptcontainer - FIXED am Body verankert */
#v-keyboard {
    position: fixed;
    bottom: 120px; 
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    background: rgb(254, 254, 254) !important;
    border: none;
    border-radius: 12px;
    padding: 25px 8px 35px 8px;
    box-sizing: border-box;
    z-index: 999999;
    display: block;
    touch-action: none; 
    
    transition: transform 0.02s ease-out; 
}

/* Der sichtbare Griff-Balken (Oben zum Verschieben) */
.v-keyboard-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 26px;
    background: #ffffff;
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Verschieben-Symbol (4-Wege-Kreuz) */
.v-keyboard-handle::after {
    content: "✥";
    color: #000000;
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
    opacity: 0.8;
}

/* Zieh-Ecke (Unten rechts zum Skalieren) */
.v-keyboard-resize-handle {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 32px;
    height: 32px;
    cursor: se-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

/* Skalieren-Symbol (Diagonal-Pfeile) */
.v-keyboard-resize-handle::after {
    content: "⤡";
    color: #000000;
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
    opacity: 0.8;
}

/* Bombensicherer versteckter Zustand */
#v-keyboard.v-keyboard-hidden {
    display: none !important;
}

/* Schließen-Button */
.v-keyboard-close {
    position: absolute;
    top: -14px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #6280bb;
    color: #ffffff;
    border: 3px solid #000000;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.05s ease;
    touch-action: manipulation;
    z-index: 10;
}

.v-keyboard-close:active {
    transform: scale(0.9);
}

/* Eine Tastatur-Reihe */
.v-keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
    touch-action: none;
}

.v-keyboard-row:last-child {
    margin-bottom: 0;
}

/* JEDE EINZELNE TASTE */
.v-keyboard-key {
    position: relative;
    flex: 1;
    margin: 0 2px;
    height: 48px;
    background: transparent !important;
    border: none;
    padding: 0;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.05s ease;
}

.v-keyboard-key svg {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    object-fit: contain; 
}

.v-keyboard-key svg #vtastefarbe {
    fill: #cfcccc !important;
}

.v-keyboard-key svg #vtaste {
    stroke: #000000 !important;
    stroke-width: 0.5px !important;
}

.v-key-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-family: "Comic Sans MS", "Chalkboard", sans-serif;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 2;
}

.v-keyboard-key:active {
    transform: scale(0.92) translateY(2px);
}
.v-keyboard-key:active svg #vtastefarbe {
    fill: #e6e6e6 !important;
}

.v-key-special {
    flex: 1.5;
}

.v-key-special .v-key-label {
    font-size: 11px;
}

.v-key-special:first-child {
    flex: 2.5;
}