/* visual.css — Editorial Photo Hero, Photo-Accents, Motion Upgrades
   Tokens: alle via var(--agx-*) aus tokens.css. Keine hardcodierten Farben/Fonts.
   Override-Schicht — lädt nach style.css.
   ======================================================================= */

/* ==========================================================================
   1. HERO — Editorial Two-Column mit Photo
   ========================================================================== */

/* Section: kein padding, overflow hidden für Bild-Bleed */
.agx-hero--editorial {
	padding: 0;
	overflow: hidden;
}

/* Der agx-wrap innen wird zum Träger des Grids — full bleed */
.agx-hero--editorial > .agx-wrap {
	max-width: none;
	padding: 0;
	margin: 0;
	/* z-index erhalten (Grain-Overlay ist body::before fixed, kein Problem) */
}

/* Grid: zwei gleiche Hälften, volle Viewport-Höhe (gecappt) */
.agx-hero__grid--photo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	align-items: stretch;
	min-height: clamp(540px, 78vh, 880px);
}

/* ---------- Text-Kolonne -------------------------------------------------- */
.agx-hero__text-col {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: clamp(3.5rem, 8vh, 6rem);
	padding-bottom: clamp(3.5rem, 8vh, 6rem);
	padding-left: clamp(20px, 4vw, 48px);
	padding-right: clamp(2rem, 4vw, 4rem);
}

/* Headline: italic-Moment auf "Experten" (Fraunces italic) */
.agx-hero--editorial h1 em {
	font-style: italic;
	color: var(--agx-accent-display);
}

/* Stat-Block: unter den CTAs, jetzt horizontal in 3 Spalten */
.agx-hero--editorial .agx-hero__aside {
	border-left: 0;
	padding-left: 0;
	border-top: 1px solid var(--agx-hairline);
	padding-top: 1.5rem;
	margin-top: 2.25rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(0.5rem, 1.5vw, 1.25rem);
	/* Override animation delay — aside kommt nach den CTAs */
	animation-delay: 0.38s !important;
}

.agx-hero--editorial .agx-hero__stat {
	padding: 0;
	border-bottom: 0;
	border-right: 1px solid var(--agx-hairline);
	padding-right: clamp(0.5rem, 1.2vw, 1rem);
}

.agx-hero--editorial .agx-hero__stat:last-child {
	border-right: 0;
}

.agx-hero--editorial .agx-hero__stat b {
	font-size: clamp(1.25rem, 1.8vw, 1.7rem);
}

/* ---------- Photo-Kolonne ------------------------------------------------- */
.agx-hero__photo-col {
	position: relative;
	overflow: hidden;
}

.agx-hero__photo-frame {
	position: absolute;
	inset: 0;
}

.agx-hero__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 80% 15%; /* Frau sitzt rechts im Foto — Ausschnitt nach rechts, sonst Gesicht angeschnitten */
	display: block;
	animation: agx-photo-rise 1.0s cubic-bezier(0.15, 0.7, 0.2, 1) 0.2s both;
}

/* Terracotta-Akzent-Linie: vertikal, links am Foto */
.agx-hero__photo-accent {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 5px;
	background: var(--agx-accent-display);
	opacity: 0.9;
	z-index: 2;
}

/* Photo Rise — subtile Kamera-Pull-Back Wirkung */
@keyframes agx-photo-rise {
	from {
		opacity: 0;
		transform: scale(1.06);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.agx-hero__photo {
		animation: none;
	}
	.agx-hero--editorial .agx-hero__aside {
		animation: none !important;
	}
}

/* ---------- Responsive ---------------------------------------------------- */

/* Tablet: Text-Col bekommt mehr Platz, Photo etwas schmaler */
@media (max-width: 1024px) {
	.agx-hero__grid--photo {
		grid-template-columns: 55fr 45fr;
	}
}

/* Mobile: Photo als breites Querformat-Banner oben, Text darunter */
@media (max-width: 720px) {
	.agx-hero--editorial {
		overflow: visible; /* Kein Clip auf mobile nötig */
	}

	.agx-hero__grid--photo {
		display: flex;
		flex-direction: column;
		min-height: unset;
	}

	/* Photo-Block oben */
	.agx-hero__photo-col {
		position: relative;
		height: clamp(240px, 40vw, 340px);
		order: -1;
		flex-shrink: 0;
	}

	/* Terracotta-Akzent auf mobile: unten statt links */
	.agx-hero__photo-accent {
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		width: auto;
		height: 4px;
	}

	.agx-hero__text-col {
		padding: clamp(2rem, 5vw, 2.5rem) clamp(20px, 4vw, 48px);
		max-width: none;
		margin-left: 0;
	}

	/* Stat-Block auf mobile: 1 Spalte */
	.agx-hero--editorial .agx-hero__aside {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.agx-hero--editorial .agx-hero__stat {
		border-right: 0;
		padding-right: 0;
		border-bottom: 1px solid var(--agx-hairline);
		padding-bottom: 0.8rem;
		padding-top: 0.8rem;
	}

	.agx-hero--editorial .agx-hero__stat:last-child {
		border-bottom: 0;
	}
}

/* ==========================================================================
   2. BERATUNGS-SEKTION (03) — Photo links, Content rechts
   ========================================================================== */

.agx-section--beratung {
	/* Kein padding-top — kommt von style="padding-top:0" */
}

.agx-beratung__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2.5rem, 5vw, 5rem);
	align-items: start;
	padding-top: clamp(3.5rem, 8vh, 6.5rem);
	padding-bottom: clamp(3.5rem, 8vh, 6.5rem);
}

/* Sticky: Image bleibt sichtbar beim Scroll durch Services */
.agx-beratung__img-col {
	position: sticky;
	top: 90px;
}

/* Terracotta-Akzentlinie oben am Image-Block */
.agx-beratung__img-col::before {
	content: "";
	display: block;
	width: 3px;
	height: 52px;
	background: var(--agx-accent-display);
	margin-bottom: 1.25rem;
	border-radius: 2px;
}

.agx-beratung__img {
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 6;
	object-fit: cover;
	object-position: center 10%;
	border-radius: var(--agx-radius-lg);
	box-shadow:
		0 2px 6px rgba(26, 23, 20, 0.05),
		0 16px 48px rgba(26, 23, 20, 0.10);
}

.agx-beratung__content {
	padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

/* Services-Grid innerhalb Beratungs-Content: kein eigenes Reveal (Parent hat es) */
.agx-beratung__content .agx-services {
	margin-top: 2rem;
}

@media (max-width: 820px) {
	.agx-beratung__inner {
		grid-template-columns: 1fr;
	}

	.agx-beratung__img-col {
		position: static;
		max-width: 380px;
	}

	.agx-beratung__img-col::before {
		height: 36px;
		margin-bottom: 0.9rem;
	}

	.agx-beratung__img {
		aspect-ratio: 4 / 3;
	}
}

/* ==========================================================================
   3. CTA-BAND — Partnership Photo mit Espresso-Overlay
   ========================================================================== */

.agx-cta--photo {
	position: relative;
	overflow: hidden;
	background: var(--agx-dark);
	color: var(--agx-bg);
}

/* Foto-Layer hinter dem Inhalt */
.agx-cta__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.agx-cta__bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	/* Warm photo zeigt sich durch, dunkel genug für Text */
	opacity: 0.22;
}

/* Content über dem Overlay */
.agx-cta__content {
	position: relative;
	z-index: 2;
}

/* Texte auf dunklem Hintergrund */
.agx-cta--photo h2 {
	color: var(--agx-bg);
}

.agx-cta--photo p {
	color: color-mix(in srgb, var(--agx-bg) 75%, var(--agx-dark));
}

/* Terracotta-Punkt (warm, auf dark) */
.agx-cta__dot {
	color: var(--agx-accent-on-dark);
}

/* ==========================================================================
   4. ROLLEN-GRID — Terracotta-Hauch beim Hover
   ========================================================================== */

.agx-role:hover {
	background: color-mix(in srgb, var(--agx-accent-display) 4%, var(--agx-surface));
}

/* ==========================================================================
   5. PROZESS-SCHRITTE (agx-dark) — Schritt-Nummer prominenter
   ========================================================================== */

.agx-step__no {
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* --- Hero-Video-Modus (nur localhost) --------------------------------------
   Video als Vollbreite-Hintergrund, Off-White-Veil mit Gradient: links deckend
   (Headline lesbar), nach rechts durchlässig (Whiteboard "agentic experts" scheint durch). */
.agx-hero--video { position: relative; overflow: hidden; }
.agx-hero--video .agx-hero__bgvideo {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: center; z-index: 0;
}
.agx-hero--video .agx-hero__veil {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(95deg,
		var(--agx-bg) 0%,
		color-mix(in srgb, var(--agx-bg) 86%, transparent) 30%,
		color-mix(in srgb, var(--agx-bg) 58%, transparent) 55%,
		color-mix(in srgb, var(--agx-bg) 22%, transparent) 80%,
		color-mix(in srgb, var(--agx-bg) 8%, transparent) 100%);
}
/* zusätzlicher vertikaler Verlauf für sauberen Übergang oben/unten */
.agx-hero--video .agx-hero__veil::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 60%, var(--agx-bg) 100%);
}
.agx-hero--video .agx-wrap { position: relative; z-index: 2; }
.agx-hero--video .agx-hero__grid { align-items: center; min-height: clamp(460px, 64vh, 680px); }
/* Text bleibt links, rechte Spalte frei fürs Video */
.agx-hero--video .agx-hero__text-col { max-width: 38rem; }
@media (max-width: 820px) {
	/* mobil: stärkerer Veil, damit Text über dem Video lesbar bleibt */
	.agx-hero--video .agx-hero__veil { background: color-mix(in srgb, var(--agx-bg) 78%, transparent); }
}

/* --- AX-Terminal-Block: echter CLI-Output als brand-gestyltes Fenster -------
   Für AX-Optimize/Assurance-Produktseiten. Ehrlich: zeigt reale Tool-Ausgaben,
   kein Mockup. Dunkles Fenster, Fragment Mono, eine Akzentfarbe auf dunkel. */
.agx-term {
	background: var(--agx-dark);
	border-radius: var(--agx-radius-lg);
	border: 1px solid rgba(255,255,255,0.08);
	box-shadow: 0 20px 48px -24px rgba(26,23,20,0.5);
	margin: 2rem 0;
	overflow: hidden;
	font-family: var(--agx-font-mono);
}
.agx-term__bar {
	display: flex; align-items: center; gap: 0.5rem;
	padding: 0.7rem 1rem;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	background: rgba(255,255,255,0.02);
}
.agx-term__dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.agx-term__title {
	margin-left: 0.4rem; font-size: 0.74rem; letter-spacing: 0.04em;
	color: rgba(255,255,255,0.5); text-transform: none;
}
.agx-term pre {
	margin: 0; padding: 1.15rem 1.3rem;
	font-size: 0.8rem; line-height: 1.65;
	color: #E7E0D6;
	overflow-x: auto; white-space: pre; tab-size: 2;
	background: none; border: 0;
}
.agx-term .agx-term__cmd { color: var(--agx-accent-on-dark); }     /* Prompt/Befehl */
.agx-term .agx-term__ok  { color: #7FB680; }                        /* grün: passed/erlaubt */
.agx-term .agx-term__no  { color: #E08A6E; }                        /* akzent: blockiert/rot */
.agx-term .agx-term__dim { color: rgba(231,224,214,0.5); }          /* Kommentar/Nebensache */
.agx-term .agx-term__hi  { color: #fff; font-weight: 500; }         /* Kernzahl */
@media (max-width: 600px) { .agx-term pre { font-size: 0.72rem; } }

/* ==========================================================================
   6. PILLAR IMAGE-HERO — Hero-Text ueber dem Bild (.agx-imghero)
   Bild ungeschnitten (height:auto, behaelt den eingebrannten Text); Text unten
   links ueber einem Gradient-Scrim. Mobile: Text als Block UNTER dem Bild.
   ========================================================================== */
.agx-imghero { padding: clamp(1.25rem, 3.5vh, 2.5rem) 0 0; }
.agx-imghero__frame {
	position: relative;
	border-radius: var(--agx-radius-lg);
	overflow: hidden;
	border: 1px solid var(--agx-hairline);
	box-shadow: 0 18px 48px -28px rgba(26, 23, 20, 0.45);
	animation: agx-photo-rise 1.0s cubic-bezier(0.15, 0.7, 0.2, 1) 0.1s both;
}
.agx-imghero__frame > img { display: block; width: 100%; height: auto; }
.agx-imghero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	/* weicher mehrstufiger Verlauf wie der Startseiten-Hero: stark unten/links,
	   transparent nach oben/rechts -> Schrift bleibt lesbar, Bild bleibt sichtbar */
	background:
		linear-gradient(to top,
			rgba(18, 14, 10, 0.94) 0%,
			rgba(18, 14, 10, 0.78) 14%,
			rgba(18, 14, 10, 0.45) 32%,
			rgba(18, 14, 10, 0.12) 50%,
			rgba(18, 14, 10, 0) 66%),
		linear-gradient(105deg,
			rgba(18, 14, 10, 0.62) 0%,
			rgba(18, 14, 10, 0.3) 28%,
			rgba(18, 14, 10, 0) 56%);
}
.agx-imghero__content {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 2;
	padding: clamp(1.25rem, 3vw, 2.75rem) clamp(20px, 4vw, 3rem);
	color: #fff;
}
.agx-imghero__content h1 {
	color: #fff;
	font-size: clamp(1.9rem, 4.2vw, 3.4rem);
	font-weight: 700;
	line-height: 1.04;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.agx-imghero__content h1 .dot { color: var(--agx-accent-on-dark); }
.agx-imghero__tag {
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	max-width: 42em;
	margin-top: 0.6rem;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.agx-eyebrow--light { color: rgba(255, 255, 255, 0.85); }
.agx-eyebrow--light::after { background: var(--agx-accent-on-dark); }

@media (prefers-reduced-motion: reduce) {
	.agx-imghero__frame { animation: none; }
}

/* Mobile: Bild wird zu flach fuer Overlay -> Text als dunkler Block darunter */
@media (max-width: 720px) {
	.agx-imghero__frame { display: flex; flex-direction: column; }
	.agx-imghero__scrim { display: none; }
	.agx-imghero__content {
		position: static;
		background: var(--agx-dark);
		padding: clamp(1.5rem, 6vw, 2rem) clamp(20px, 5vw, 1.75rem);
	}
}
