/* Container für das Overlay */
#voice-search-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999; /* Sehr hoch, damit es über allem liegt */
    display: none; /* Standardmäßig ausgeblendet */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    pointer-events: all; /* Sicherstellen, dass Klicks abgefangen werden */
}

/* Das pulsierende Mikrofon-Icon */
#voice-mic-icon {
    font-size: 50px;
    margin-bottom: 25px;
    width: 90px;
    height: 90px;
    background: #ef4444; /* Ein schönes Rot */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: voice-pulse 1.5s infinite;
    user-select: none;
}

/* Status Text (z.B. "Zuhören...") */
#voice-status-text {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

/* Der erkannte Text als Vorschau */
#voice-transcript {
    font-size: 18px;
    color: #e5e7eb;
    margin-top: 10px;
    font-style: italic;
    max-width: 80%;
    text-align: center;
    min-height: 24px;
}

/* Pulsier-Animation */
@keyframes voice-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); transform: scale(1.1); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); transform: scale(1); }
}


/* 1. Desktop: Das Icon standardmäßig ausblenden */
#audiosearch {
	display: none !important;
	cursor: pointer;
}

/* 2. Mobile (bis 768px): Das Icon einblenden */
@media (max-width: 768px) {
	#audiosearch {
		display: inline-block !important;
	}
}
