/* ==========================================================================
   Homepage — Company Hub
   Konsumiert: --pw-* aus global.css. Dark Mode kommt primär via Token-Cascade
   (alle Surfaces/Texte sind tokenisiert). Der @media-Block unten ergänzt nur
   Stellen, die der Cascade nicht erreicht — primär Schatten, die im Dark
   Mode auf dunklem Grund unsichtbar wären.
   ========================================================================== */

#content.hp-page { padding-bottom: 0; overflow-x: clip; position: relative; z-index: 0; }

.hp-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 var(--pw-space-xl);
}

/* --- Sections (z-index below hero image) --- */
.hp-section { padding: var(--pw-section-standard); position: relative; z-index: 1; }
.hp-section--alt { background: var(--pw-bg-alt); }
.hp-section__title {
	text-align: center;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	color: var(--pw-text);
	letter-spacing: -0.02em;
	margin: 0 0 var(--pw-space-2xl);
}
.hp-section__bottom-link { text-align: center; margin-top: 40px; }

/* --- Links --- */
.hp-link {
	font-size: 16px; font-weight: 600;
	color: var(--pw-brand); }
.hp-link:hover { color: var(--pw-brand-hover); }

/* ==========================================================================
   Dark Hero — Interactive Product Switcher
   ========================================================================== */
.hp-hero-dark {
	position: relative;
	z-index: 5;
	color: var(--pw-fg);
	background:
		radial-gradient(1000px 600px at 85% 0%, rgba(var(--pw-accent-rgb),0.12), transparent 60%),
		radial-gradient(800px 500px at 10% 100%, rgba(var(--pw-brand-rgb),0.10), transparent 60%),
		var(--pw-bg-dark-gradient);
	/* Symmetrisches Padding: gleicher Abstand ueber dem Produkt-Slider wie unter
	   den Reviews. Gesamthoehe bleibt identisch zur alten 58/10-Aufteilung
	   (58+10 = 34+34), die Inhalte werden nur gleichmaessig verteilt. */
	padding: 34px 0;
}
.hp-hero-dark::before {
	content: "";
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
	background-size: 24px 24px;
	pointer-events: none;
}

/* ==========================================================================
   App Tiles — Produkt-Auswahl unterhalb des Hero
   ========================================================================== */
.hp-app-tiles {
	position: relative;
	z-index: 2;
	background: var(--pw-bg-alt);
	padding: 56px 0;
}
.hp-app-tiles__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
/* „Unsere Apps"-Kacheln: verlinkte Karten (weiss auf grauer Sektion).
   Bewusst KEIN transform/translateY beim Hover: Diese Kacheln liegen unter
   dem ueberlappenden Hero-Bild (.hp-hero-dark__visual mit filter + will-change),
   das eine eigene Compositing-Ebene bildet. Ein transform auf der Kachel wuerde
   einen Ebenen-Konflikt erzeugen, der ein dauerhaftes Zittern (Auf-/Ab-Springen)
   ausloest, auch ohne Mausbewegung. Hover-Feedback daher nur ueber Schatten/Rahmen. */
.hp-app-tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--pw-space-md);
	padding: var(--pw-space-lg);
	background: var(--pw-bg);
	border: 1px solid var(--pw-border);
	border-radius: var(--pw-radius-md);
	text-align: left;
	font-family: inherit;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: box-shadow 0.2s, border-color 0.2s;
}
.hp-app-tile:hover {
	box-shadow: var(--pw-shadow-md);
	border-color: var(--pw-brand);
}
.hp-app-tile:focus-visible {
	outline: 2px solid var(--pw-accent);
	outline-offset: 4px;
}
.hp-app-tile__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.hp-app-tile__icon img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 12px;
}
.hp-app-tile__body {
	display: flex;
	flex-direction: column;
	gap: var(--pw-space-sm);
}
.hp-app-tile__label {
	font-size: 18px;
	font-weight: 700;
	color: var(--pw-text);
	line-height: 1.2;
}
.hp-app-tile__desc {
	font-size: 14px;
	line-height: 1.55;
	color: var(--pw-text-secondary);
}

/* --- Slides --- */
.hp-hero-dark__slides {
	position: relative; z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--pw-space-xl);
	min-height: 480px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}
.hp-hero-dark__slide {
	display: block;
}
.hp-hero-dark__slide[hidden] { display: none; }

/* --- Slide Content --- */
.hp-hero-dark__content {
	max-width: 540px;
}

/* App-Switcher — ersetzt die Eyebrow. Geteiltes Segment-Control mit gleitender
   Pill; aktives Item zeigt Logo + Name, inaktive nur das Logo. */
.hp-hero-switch {
	position: relative;
	display: inline-flex;
	align-items: stretch;
	gap: 4px;
	padding: 4px;
	margin: 0 0 var(--pw-space-xl);
	border-radius: 999px;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.12);
}
.hp-hero-switch__pill {
	position: absolute;
	top: 4px; left: 0;
	width: 0; height: calc(100% - 8px);
	border-radius: 999px;
	background: rgba(255,255,255,0.14);
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
	pointer-events: none;
	z-index: 0;
}
.hp-hero-switch__item {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	padding: 5px 14px;
	border: 0;
	background: transparent;
	color: var(--pw-fg-muted);
	font-family: inherit;
	font-size: 16px; font-weight: 600; line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	border-radius: 999px;
	transition: color 0.3s ease;
}
.hp-hero-switch__item--active { color: #fff; }
.hp-hero-switch__icon {
	width: 38px; height: 38px;
	object-fit: contain;
	border-radius: 50%;
	flex-shrink: 0;
}
.hp-hero-switch__name {
	display: inline-block;
	max-width: 0; opacity: 0; margin-left: 0;
	overflow: hidden; white-space: nowrap;
	transition: max-width 0.32s ease, opacity 0.28s ease, margin-left 0.32s ease;
}
.hp-hero-switch__item--active .hp-hero-switch__name {
	max-width: 320px; opacity: 1; margin-left: 12px;
}
.hp-hero-switch__item:focus-visible {
	outline: 2px solid var(--pw-accent);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.hp-hero-switch__name, .hp-hero-switch__item { transition: none; }
}
/* Titel und Untertitel reservieren feste Hoehen (Titel 2 Zeilen, Untertitel
   1 Zeile), damit Button und Reviews ueber alle drei Produkt-Slides hinweg auf
   exakt gleicher Hoehe stehen, egal wie lang der jeweilige Text ist. */
#content .hp-hero-dark__title {
	font-size: clamp(28px, 4vw, 44px); font-weight: 700;
	line-height: 1.12; letter-spacing: -0.03em;
	color: #fff; margin: 0 0 20px;
	min-height: 2.24em; /* 2 Zeilen (2 x line-height 1.12) */
}
.hp-hero-dark__sub {
	font-size: 17px; line-height: 1.6;
	color: var(--pw-fg-muted); margin: 0 0 var(--pw-space-xl); max-width: 520px;
	min-height: 1.6em; /* 1 Zeile */
}

/* --- Dark CTAs --- */
.hp-hero-dark__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 36px; }
.hp-hero-dark .pw-btn--primary {
	background: var(--pw-brand); color: #fff;
	box-shadow: 0 8px 24px rgba(var(--pw-brand-rgb),0.3);
}
.hp-hero-dark .pw-btn--primary:hover {
	background: var(--pw-brand-hover); color: #fff;
	transform: translateY(-1px);
}

/* --- Inline Proof --- */
/* min-height reserviert die Review-Zeile auch dort, wo keine Reviews stehen
   (adoc Studio). So bleibt die Slide-Hoehe konstant und der Slider/Titel
   springt beim Produktwechsel nicht. */
.hp-hero-dark__proof { display: flex; flex-wrap: wrap; gap: var(--pw-space-xl); min-height: 22px; }
.hp-hero-dark__proof-item {
	display: inline-flex; align-items: center; gap: var(--pw-space-sm);
	font-size: 13px; color: var(--pw-fg-muted);
	transition: color 0.15s;
}
.hp-hero-dark__proof-item:hover { color: #fff; }
.hp-hero-dark__proof-stars { color: #ffb95e; font-size: 11px; letter-spacing: 1px; }
.hp-hero-dark__proof-rating { font-weight: 700; color: #fff; }
.hp-hero-dark__proof-source { color: var(--pw-fg-dim); }

/* --- Hero Visual — oversized, bleeds into app banner below.
   Positioniert relativ zu .hp-hero-dark__slides (vertikal zentriert), damit es
   mit dem ebenfalls zentrierten Textblock links auf einer Achse liegt. --- */
.hp-hero-dark__visual {
	position: absolute;
	right: -40px;
	top: 50%;
	transform: translateY(-45%);
	width: 58%;
	z-index: 10;
	pointer-events: none;
	/* Schatten unter dem Laptop, der in die helle Sektion uebergeht. BEWUSST OHNE
	   will-change/translateZ/backface-visibility: diese GPU-Layer-Hints lassen den
	   drop-shadow in WebKit beim ersten Paint abgehackt rastern (erst ein Repaint,
	   z. B. Cursor-Bewegung, glaettet ihn). Ohne Promotion malt der Haupt-Thread
	   den Schatten sofort in voller Aufloesung. */
	filter: drop-shadow(0 40px 60px rgba(0,0,0,0.5));
	/* Alle drei Visuals liegen gestapelt; nur das aktive ist sichtbar. Dauerhaft
	   gerendert (kein display:none) -> von Anfang an gemalt/dekodiert, kein Flackern. */
	opacity: 0;
}
.hp-hero-dark__visual--active { opacity: 1; }
.hp-hero-dark__visual img {
	width: 820px; max-width: none; height: auto;
	display: block; margin-left: auto;
}

/* --- Hero Responsive --- */
@media (max-width: 1024px) {
	.hp-hero-dark__slides { align-items: center; text-align: center; min-height: auto; }
	.hp-hero-dark__content { max-width: 100%; text-align: center; }
	.hp-hero-dark__sub { margin-left: auto; margin-right: auto; }
	.hp-hero-dark__ctas { justify-content: center; }
	.hp-hero-dark__proof { justify-content: center; }
	.hp-hero-dark__visual { display: none; }
}
@media (max-width: 1024px) {
	.hp-app-tiles__grid { grid-template-columns: 1fr; gap: var(--pw-space-md); }
}
@media (max-width: 768px) {
	.hp-hero-dark { padding: 36px 0 var(--pw-space-2xl); }
	.hp-hero-dark__slides { padding: 0 20px; }
	.hp-hero-dark__tabs { width: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-bottom: var(--pw-space-xl); }
	.hp-hero-dark__tabs::-webkit-scrollbar { display: none; }
	#content .hp-hero-dark__title { font-size: clamp(24px, 6.5vw, 32px); }
	.hp-hero-dark__ctas { flex-direction: column; align-items: stretch; }
	.hp-hero-dark .pw-btn--primary, .pw-btn--ghost-dark { width: 100%; justify-content: center; }
	.hp-hero-dark__proof { flex-direction: column; gap: var(--pw-space-sm); align-items: center; }
	.hp-hero-dark__visual { display: none; }
	.hp-app-tiles { padding: 40px 0; }
}

/* --- Company --- */
.hp-company { text-align: center; }
.hp-company__body { max-width: 720px; margin: 0 auto var(--pw-space-lg); }
.hp-company__body p { font-size: 17px; line-height: 1.65; color: var(--pw-text); margin: 0 0 var(--pw-space-md); }

/* --- Industries --- */
.hp-industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-industry-card {
	background: var(--pw-bg); border: 1px solid var(--pw-border);
	border-radius: var(--pw-radius-md); padding: 28px var(--pw-space-lg); 	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.hp-industry-card:hover { transform: translateY(-2px); box-shadow: var(--pw-shadow-md); border-color: var(--pw-brand); }
.hp-industry-card__title { font-size: 17px; font-weight: 700; color: var(--pw-text); margin: 0 0 6px; }
.hp-industry-card__desc { font-size: 14px; line-height: 1.5; color: var(--pw-text-secondary); margin: 0; }

/* --- Trust --- */
.hp-trust { text-align: center; }
.hp-trust__meta   { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-bottom: var(--pw-space-lg); }
.hp-trust__badges { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.hp-trust__badge { display: flex; flex-direction: column; align-items: center; gap: var(--pw-space-xs); }
.hp-trust__badge-stars { font-size: 20px; font-weight: 700; color: var(--pw-brand); }
.hp-trust__badge-label { font-size: 14px; font-weight: 600; color: var(--pw-text-muted); }
.hp-trust__links { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; gap: var(--pw-space-lg); max-width: 720px; margin: 0 auto; }

/* --- Value Prop --- */
.hp-valueprop { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pw-space-xl); }
.hp-valueprop__col { text-align: center; padding: var(--pw-space-lg); }
.hp-valueprop__col h3 { font-size: 20px; font-weight: 700; color: var(--pw-text); margin: 0 0 12px; }
.hp-valueprop__col p { font-size: 15px; line-height: 1.6; color: var(--pw-text-secondary); margin: 0; }

/* --- Closing CTA --- */
.hp-closing { padding: var(--pw-section-standard); text-align: center; background: var(--pw-bg); position: relative; z-index: 1; }
#content .hp-closing__title {
	font-size: clamp(24px, 3.5vw, 36px); font-weight: 700;
	color: var(--pw-text); letter-spacing: -0.025em; margin: 0 0 12px;
}
.hp-closing__sub { font-size: 17px; color: var(--pw-text-secondary); margin: 0 0 var(--pw-space-xl); }

/* --- Responsive (remaining light sections) --- */
@media (max-width: 768px) {
	.hp-section { padding: 56px 0; }
	.hp-container { padding: 0 20px; }
	.hp-industries { grid-template-columns: 1fr; }
	.hp-valueprop { grid-template-columns: 1fr; gap: var(--pw-space-lg); }
	.hp-trust__meta   { gap: var(--pw-space-lg); }
	.hp-trust__badges { gap: var(--pw-space-lg); }
	.hp-trust__links { grid-template-columns: 1fr; gap: var(--pw-space-md); }
	.hp-closing { padding: 56px 0; }
}
@media (max-width: 480px) {
	.hp-container { padding: 0 var(--pw-space-md); }
}

/* ============================================================
   Dark-Mode-Feinschliff — Token-Cascade greift überall,
   außer bei harten Schatten-Werten (rgba(0,0,0,0.06) ist
   auf dunklem Grund unsichtbar). Hier nur die echten Lücken.
   ============================================================ */
@media (prefers-color-scheme: dark) {
	.hp-industry-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
}
