/**
 * Hettstedt Live Dokumentenfinder - Frontend-Styles.
 * Scoped unter .hldf-df-widget, damit nichts mit dem Kadence-Theme oder
 * anderen Plugins kollidiert. Kritische Werte per !important abgesichert,
 * analog zum etablierten Muster bei anderen Hettstedt-Live-Plugins.
 */

.hldf-df-widget {
	--hldf-navy: #1a1a2e;
	--hldf-blue: #0077cc;
	--hldf-blue-light: #e6f2fb;
	--hldf-green: #22c55e;
	--hldf-amber: #f59e0b;
	--hldf-slate: #94a3b8;

	box-sizing: border-box !important;
	max-width: 460px;
	margin: 0 auto;
	background: linear-gradient(180deg, #ffffff 0%, #eaf3fb 100%) !important;
	border-radius: 18px !important;
	padding: 32px 24px 28px !important;
	box-shadow: 0 8px 30px rgba(26, 26, 46, 0.10) !important;
	text-align: center !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
.hldf-df-widget *,
.hldf-df-widget *::before,
.hldf-df-widget *::after {
	box-sizing: inherit;
}

.hldf-df-title {
	margin: 0 0 28px !important;
	font-size: 1.6rem !important;
	font-weight: 700 !important;
	color: var(--hldf-navy) !important;
	letter-spacing: -0.01em;
}

.hldf-df-mic-wrap {
	position: relative;
	width: 148px;
	height: 148px;
	margin: 0 auto 26px;
}
.hldf-df-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--hldf-blue-light);
	opacity: 0.6;
}
.hldf-df-ring.r2 { inset: -14px; opacity: 0.35; }
.hldf-df-ring.r3 { inset: -28px; opacity: 0.18; }

@media (prefers-reduced-motion: no-preference) {
	.hldf-df-ring { animation: hldf-df-pulse 2.6s ease-in-out infinite; }
	.hldf-df-ring.r2 { animation-delay: .3s; }
	.hldf-df-ring.r3 { animation-delay: .6s; }
}
@keyframes hldf-df-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

.hldf-df-mic-btn {
	position: absolute;
	inset: 22px;
	border-radius: 50%;
	background: #ffffff !important;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 119, 204, 0.25);
	transition: transform .15s ease;
}
.hldf-df-mic-btn:hover { transform: scale(1.04); }
.hldf-df-mic-btn:focus-visible {
	outline: 3px solid var(--hldf-blue);
	outline-offset: 3px;
}
.hldf-df-mic-btn.listening {
	box-shadow: 0 0 0 6px rgba(0, 119, 204, 0.25), 0 4px 14px rgba(0, 119, 204, 0.35);
}
.hldf-df-mic-btn svg { width: 42px; height: 42px; }
.hldf-df-mic-btn[hidden] { display: none !important; }

.hldf-df-privacy-tip {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 10px;
	background: var(--hldf-navy);
	color: #fff;
	font-size: 12.5px;
	line-height: 1.4;
	padding: 10px 14px;
	border-radius: 10px;
	width: 240px;
	z-index: 5;
	display: none;
}
.hldf-df-privacy-tip.show { display: block; }

.hldf-df-zone {
	min-height: 96px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-bottom: 22px;
	text-align: left;
}
.hldf-df-idle-text {
	color: var(--hldf-navy) !important;
	font-size: 1.05rem;
	line-height: 1.5;
	font-weight: 600;
	margin: 0;
	text-align: center;
}
.hldf-df-hint {
	font-size: 0.9rem;
	color: #55597a;
	margin: 0 0 14px;
}
.hldf-df-loading {
	text-align: center;
	color: #55597a;
	font-size: 0.92rem;
}

.hldf-df-card {
	background: #fff !important;
	border-radius: 12px !important;
	border-left: 6px solid var(--hldf-blue) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08) !important;
	padding: 14px 16px !important;
	margin-bottom: 10px !important;
}
.hldf-df-card-title {
	font-weight: 700;
	color: var(--hldf-navy);
	font-size: 0.98rem;
	margin: 0 0 4px;
}
.hldf-df-herkunft {
	font-weight: 500;
	color: #6b7280;
	font-size: 0.82rem;
}
.hldf-df-card-desc {
	font-size: 0.85rem;
	color: #555;
	margin: 0 0 10px;
}
.hldf-df-card-link {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #fff !important;
	background: var(--hldf-blue) !important;
	padding: 7px 14px;
	border-radius: 8px;
	text-decoration: none !important;
}
.hldf-df-card-link:hover { background: #005fa3 !important; }

.hldf-df-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
	margin-bottom: 6px;
}
.hldf-df-badge.hoch { background: #dcfce7; color: #15803d; }
.hldf-df-badge.mittel { background: #fef3c7; color: #92400e; }
.hldf-df-badge.gering { background: #e2e8f0; color: #475569; }

.hldf-df-empty {
	font-size: 0.92rem;
	color: var(--hldf-navy);
	line-height: 1.5;
}
.hldf-df-empty strong { display: block; margin-bottom: 4px; }

.hldf-df-search-row {
	position: relative;
	margin-bottom: 22px;
}
.hldf-df-search-row label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.hldf-df-search-row input[type="text"] {
	width: 100% !important;
	padding: 14px 16px 14px 44px !important;
	border-radius: 14px !important;
	border: none !important;
	background: #fff !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
	font-size: 0.95rem;
	color: var(--hldf-navy);
}
.hldf-df-search-row input[type="text"]:focus-visible {
	outline: 2px solid var(--hldf-blue);
	outline-offset: 2px;
}
.hldf-df-search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #9aa0b4;
	pointer-events: none;
}
.hldf-df-search-row button.hldf-df-submit {
	position: absolute;
	right: 6px;
	top: 6px;
	bottom: 6px;
	padding: 0 14px;
	border: none;
	border-radius: 10px;
	background: var(--hldf-blue) !important;
	color: #fff !important;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
}

.hldf-df-signature {
	font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
	color: var(--hldf-blue);
	font-size: 1.15rem;
	line-height: 1.4;
	margin: 0;
	text-align: center;
}
.hldf-df-signature .hldf-df-underline {
	text-decoration: underline;
	text-decoration-color: var(--hldf-blue);
}

@media (min-width: 600px) {
	.hldf-df-widget { padding: 40px 36px 32px !important; }
	.hldf-df-title { font-size: 1.8rem !important; }
}
