/* =========================================================
   Placetel VoIP KI Hero: 1:1 von Success Story übernommen
   (aus index.php extrahiert, damit CSS vor First Paint geladen wird)
   ========================================================= */
.subpage-hero {
	min-height: auto !important;
}

.subpage-hero-panel {
	min-height: auto !important;
}

/* CTA Banner Panel soll auto bleiben */
.placetel-cta-panel.subpage-hero-panel {
	min-height: auto !important;
}

.subpage-hero .subpage-hero-inner {
	/* Global: grid-template-columns bleibt 1.1/0.9 – hier etwas ausgewogener */
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: auto;
	grid-template-areas: "headline text";
	align-content: start;
	padding: 72px 60px 72px; /* oben == unten */
}

/* Rechts den Copy-Text auf H1-Höhe starten lassen (Kicker sitzt links darüber) */
.subpage-hero .subpage-hero-copy {
	align-self: start !important;
	/* Kicker-Höhe (~24px) + margin-bottom (16px) = ~40px */
	padding-top: 40px !important;
}

/* Animierte Sprachaufnahme-Komponente im Hero */
.subpage-hero .subpage-hero-copy {
	padding-top: 0 !important;
	align-self: stretch !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 1024px) {
	.subpage-hero .subpage-hero-inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"headline"
			"text";
		padding: 56px 60px 56px;
		gap: 18px;
	}

	/* Im Stack-Layout kein Offset nötig */
	.subpage-hero .subpage-hero-copy {
		padding-top: 0 !important;
	}

	.subpage-hero .subpage-hero-logo-only-img {
		max-width: min(256px, 70%);
		max-height: 96px;
	}
}

@media (max-width: 768px) {
	.subpage-hero .subpage-hero-inner {
		padding: 28px 30px 28px; /* 50% Reduzierung: 56px -> 28px, 60px -> 30px */
	}
}

.subpage-hero .subpage-hero-cards,
.subpage-hero .scroll-indicator {
	display: none !important;
}

/* Hero: Meta-Badges unter der H1 (links) */
.subpage-hero .subpage-hero-copy {
	display: flex;
	flex-direction: column;
	align-self: stretch !important;
}

.subpage-hero .subpage-hero-copy > p {
	margin: 0;
}

.subpage-hero .subpage-hero-meta-badges {
	margin-top: 75px;
	display: flex;
	flex-direction: column;
	gap: 12px; /* Abstand nach unten zwischen den Zeilen */
	align-items: flex-start;
}

.subpage-hero .subpage-hero-meta-row {
	display: flex;
	gap: 16px; /* Abstand zwischen 2 Spezifikationen in einer Zeile */
	justify-content: flex-start;
}

.subpage-hero .subpage-hero-meta-badges .routing-badge {
	text-transform: none;
	letter-spacing: 0.2px;
	font-weight: 600;
	padding: 8px 14px;
	width: auto; /* Breite passt sich Inhalt an */
	white-space: nowrap;
}

.subpage-hero .subpage-hero-meta-badges.is-grey .routing-badge::before {
	background: linear-gradient(180deg, rgba(241, 245, 249, 0.98) 0%, rgba(226, 232, 240, 0.98) 100%);
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.subpage-hero .subpage-hero-meta-badges.is-grey .routing-badge {
	color: #334155;
	background: none;
	-webkit-background-clip: initial;
	background-clip: initial;
	-webkit-text-fill-color: currentColor;
}

/* Icons in Meta-Badges komplett ausblenden für Placetel VoIP KI */
.subpage-hero .subpage-hero-meta-icon {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
}

.subpage-hero .subpage-hero-meta-icon svg {
	width: 12px;
	height: 12px;
	stroke: #ffffff;
}

/* Icons in Meta-Badges komplett ausblenden (auch für grey Variante) */
.subpage-hero .subpage-hero-meta-badges.is-grey .subpage-hero-meta-icon {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
}

.subpage-hero .subpage-hero-meta-badges.is-grey .subpage-hero-meta-icon svg {
	stroke: #334155;
}

.subpage-hero .subpage-hero-meta-label {
	font-weight: 700;
	margin-right: 6px;
}

@media (max-width: 1024px) {
	.subpage-hero .subpage-hero-meta-badges {
		margin-top: 18px;
		align-items: flex-start;
	}
	.subpage-hero .subpage-hero-meta-row {
		justify-content: flex-start;
		flex-wrap: wrap;
	}
}

@media (max-width: 560px) {
	.subpage-hero .subpage-hero-meta-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	/* In Mobile-Version nur die ersten 2 Meta-Badges anzeigen */
	.subpage-hero .subpage-hero-meta-badges .subpage-hero-meta-row:nth-child(n+2) {
		display: none;
	}

	.subpage-hero .subpage-hero-meta-badges .subpage-hero-meta-row:first-child .subpage-hero-meta-badge:nth-child(n+3) {
		display: none;
	}
}

/* =========================================================
   Animierte Sprachaufnahme-Komponente
   ========================================================= */
.subpage-hero .subpage-hero-copy {
	position: relative;
}

.placetel-call-card-wrapper {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 1;
}

/* Call Card */
.call-card {
	position: relative;
	width: 360px;
	max-width: 90%;
	padding: 20px;
	background: rgba(30, 41, 59, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.05),
		0 20px 50px -12px rgba(0, 0, 0, 0.5),
		0 8px 24px -8px rgba(0, 0, 0, 0.3);
	animation: callCardFloat 6s ease-in-out infinite;
	pointer-events: auto;
	min-height: 420px; /* Feste Höhe, damit die Seite nicht springt */
	display: flex;
	flex-direction: column;
}

.call-card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
	pointer-events: none;
}

/* Header */
.call-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.call-card-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(100, 116, 139, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
}

.call-card-avatar svg {
	width: 20px;
	height: 20px;
	color: rgba(148, 163, 184, 1);
}

.call-card-contact-name {
	font-size: 14px;
	font-weight: 500;
	color: rgba(248, 250, 252, 1);
	margin-bottom: 2px;
}

.call-card-contact-phone {
	font-size: 12px;
	color: rgba(148, 163, 184, 1);
}

/* Timer Row */
.call-card-timer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.call-card-timer-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.call-card-timer {
	font-size: 24px;
	font-weight: 300;
	font-family: 'SF Mono', 'Fira Code', monospace;
	color: rgba(248, 250, 252, 0.8);
	letter-spacing: 0.05em;
}

/* Waveform */
.call-card-waveform {
	display: flex;
	align-items: center;
	gap: 2px;
	height: 24px;
}

.call-card-wave-bar {
	width: 2px;
	background: rgba(148, 163, 184, 0.4);
	border-radius: 2px;
	animation: callCardWave 1s ease-in-out infinite;
}

.call-card-wave-bar.stopped {
	animation: none;
}

.call-card-wave-bar:nth-child(1) { height: 12px; animation-delay: 0s; }
.call-card-wave-bar:nth-child(2) { height: 18px; animation-delay: 0.1s; }
.call-card-wave-bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.call-card-wave-bar:nth-child(4) { height: 22px; animation-delay: 0.3s; }
.call-card-wave-bar:nth-child(5) { height: 14px; animation-delay: 0.4s; }
.call-card-wave-bar:nth-child(6) { height: 20px; animation-delay: 0.5s; }
.call-card-wave-bar:nth-child(7) { height: 8px; animation-delay: 0.6s; }
.call-card-wave-bar:nth-child(8) { height: 16px; animation-delay: 0.7s; }
.call-card-wave-bar:nth-child(9) { height: 12px; animation-delay: 0.8s; }
.call-card-wave-bar:nth-child(10) { height: 20px; animation-delay: 0.9s; }
.call-card-wave-bar:nth-child(11) { height: 10px; animation-delay: 1s; }
.call-card-wave-bar:nth-child(12) { height: 14px; animation-delay: 1.1s; }

/* Call Button */
.call-card-button {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #22c55e;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
	transition: all 0.3s ease;
}

.call-card-button:hover {
	transform: scale(1.05);
}

.call-card-button.ended {
	background: #ef4444;
	box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.call-card-button svg {
	width: 16px;
	height: 16px;
	color: white;
}

/* Divider */
.call-card-divider {
	height: 1px;
	background: rgba(100, 116, 139, 0.3);
	margin-bottom: 16px;
}

/* Transcript */
.call-card-transcript-label {
	font-size: 12px;
	color: rgba(148, 163, 184, 1);
	margin-bottom: 8px;
}

.call-card-transcript-content {
	font-size: 14px;
	color: rgba(248, 250, 252, 0.8);
	line-height: 1.6;
	white-space: pre-line;
	margin-bottom: 16px;
	min-height: 120px;
	flex: 1; /* Nimmt verfügbaren Platz ein */
}

.call-card-typing-cursor {
	display: inline-block;
	width: 2px;
	height: 14px;
	background: rgba(148, 163, 184, 0.6);
	margin-left: 2px;
	animation: callCardBlink 1s ease-in-out infinite;
	vertical-align: middle;
}

/* Forward Status */
.call-card-forward-status {
	padding-top: 16px;
	border-top: 1px solid rgba(100, 116, 139, 0.3);
}

.call-card-forward-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.call-card-forward-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.5s ease;
}

.call-card-forward-icon.waiting {
	background: rgba(100, 116, 139, 0.5);
}

.call-card-forward-icon.sent {
	background: rgba(34, 197, 94, 0.2);
}

.call-card-forward-icon svg {
	width: 20px;
	height: 20px;
	transition: color 0.5s ease;
}

.call-card-forward-icon.waiting svg {
	color: rgba(148, 163, 184, 1);
}

.call-card-forward-icon.sent svg {
	color: #22c55e;
}

.call-card-forward-text {
	flex: 1;
}

.call-card-forward-title {
	font-size: 14px;
	font-weight: 500;
	transition: color 0.3s ease;
}

.call-card-forward-title.waiting {
	color: rgba(148, 163, 184, 1);
}

.call-card-forward-title.sent {
	color: rgba(248, 250, 252, 1);
}

.call-card-forward-subtitle {
	font-size: 12px;
	color: rgba(148, 163, 184, 1);
}

.call-card-badge {
	font-size: 10px;
	font-weight: 500;
	color: #22c55e;
	padding: 2px 8px;
	border-radius: 9999px;
	background: rgba(34, 197, 94, 0.1);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.call-card-badge.visible {
	opacity: 1;
}

/* Animations */
@keyframes callCardFloat {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-8px); }
}

@keyframes callCardWave {
	0%, 100% { transform: scaleY(0.5); }
	50% { transform: scaleY(1); }
}

@keyframes callCardBlink {
	0%, 50% { opacity: 1; }
	51%, 100% { opacity: 0; }
}

@media (max-width: 1024px) {
	.call-card {
		width: 320px;
		max-width: 85%;
		min-height: 400px; /* Etwas kleiner auf Tablets */
	}
}

@media (max-width: 768px) {
	.placetel-call-card-wrapper {
		display: none !important; /* Komplett ausblenden auf Mobile */
	}

	.call-card {
		width: 100%;
		max-width: calc(100% - 40px);
		padding: 16px;
		margin: 0 auto;
		min-height: 380px; /* Etwas kleiner auf Mobile */
	}

	.call-card-timer {
		font-size: 20px;
	}

	.call-card-transcript-content {
		min-height: 100px;
		font-size: 13px;
	}
}

