/**
 * GR Kandidaten – Frontend-Styles
 *
 * Übersicht (Karten-Grid + Filter), Einzelprofil, Lead-Formular.
 * Markenfarben & Schriften zentral als CSS-Custom-Properties (:root).
 */

/* =============================================
   MARKEN-TOKENS (germanrecruiting.de Branding)
   Zentral definiert – Farben/Schriften nur hier pflegen.
   ============================================= */
:root {
	--gr-primary: #ee212b;        /* Rot – Buttons, Akzente, Links */
	--gr-primary-hover: #c81923;  /* dunkleres Rot für Hover-Zustand */
	--gr-accent: #ffd936;         /* Gelb/Gold – sekundärer Akzent */
	--gr-text: #232323;           /* Standard-Textfarbe */
	--gr-bg: #ffffff;             /* Hintergrund (Karten) */
	--gr-surface: #f7f8fa;        /* warmes Hellgrau – Grundfläche der Sektion */
	--gr-radius-btn: 9px;         /* Eckenradius der Buttons */
	--gr-radius-card: 14px;       /* Eckenradius der Karten (Markenstil) */

	/* Schriften: germanrecruiting.de lädt Rubik + Roboto über das Theme.
	   Die Fallbacks greifen, falls die Fonts (z. B. lokal) fehlen. */
	--gr-font-base: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--gr-font-btn:  "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* === Smooth Scroll für Anker-Links === */
html {
	scroll-behavior: smooth;
}

/* === Nur für Screenreader sichtbar (visuell ausgeblendet) === */
.gr-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* =============================================
   ÜBERSICHT (Shortcode [gr_kandidaten])
   ============================================= */

.gr-kandidaten-uebersicht {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
	font-family: var(--gr-font-base);
	color: var(--gr-text);

	/* Warmes Hellgrau als ruhige Grundfläche; die Karten setzen sich in Weiß ab. */
	background-color: var(--gr-surface);
	border-radius: 20px;

	/* Dezentes Markenmotiv: weiche Bögen in Rot (oben rechts) und Gold (unten links)
	   mit sehr niedriger Deckkraft – gibt der Fläche Charakter, ohne die Fotos zu stören. */
	background-image:
		radial-gradient(120% 80% at 100% 0%, rgba(238, 33, 43, 0.05) 0%, rgba(238, 33, 43, 0) 60%),
		radial-gradient(90% 70% at 0% 100%, rgba(255, 217, 54, 0.07) 0%, rgba(255, 217, 54, 0) 55%);
	background-repeat: no-repeat;
}

/* --- Einleitungs-/Kopfbereich über Reitern & Filtern (Designvorlage intro-header-beispiel.svg) ---
   Liefert die Überschrift „Sofort verfügbar". Der Theme-Seitentitel wird dafür
   ausgeblendet (GR_Shortcode::maybe_hide_theme_title()), damit der Titel nicht
   doppelt erscheint. Der Bereich bleibt transparent und sitzt auf der bestehenden
   warmgrauen Sektionsfläche; nur die drei Fakten-Kärtchen setzen sich in Weiß ab. */

.gr-intro {
	margin: 0 0 2.25rem;
}

/* Kleines rotes Label über der Überschrift. */
.gr-intro-eyebrow {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gr-primary);
}

.gr-intro-titel {
	margin: 0.45rem 0 0;
	font-family: var(--gr-font-base);
	font-size: clamp(1.9rem, 4.2vw, 3rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--gr-text);
}

/* Kurze rot-goldene Linie unter der Überschrift (Markenakzent, wie in der Vorlage). */
.gr-intro-linie {
	display: block;
	width: 120px;
	height: 6px;
	margin: 0.85rem 0 0;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--gr-primary) 0%, #ffd936 100%);
}

.gr-intro-text {
	/* Volle Breite: der Absatz läuft bis zum rechten Rand der Sektion (wie die
	   Fakten-Kärtchen), nicht nur bis ~2/3. Die Sektion ist auf 1200px begrenzt,
	   daher bleibt die Zeilenlänge insgesamt im Rahmen. */
	margin: 1.15rem 0 0;
	font-size: clamp(1rem, 1.4vw, 1.12rem);
	line-height: 1.65;
	color: #3f3f46;
}

/* Drei Fakten als kleine Kärtchen: Desktop nebeneinander, Handy gestapelt. */
.gr-intro-fakten {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin: 1.85rem 0 0;
	padding: 0;
	list-style: none;
}

.gr-intro-fakt {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 1.1rem 1.25rem;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 8px 18px rgba(35, 35, 35, 0.08);
}

.gr-intro-fakt-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--gr-primary);
	color: #fff;
}

.gr-intro-fakt-icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.gr-intro-fakt-textwrap {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gr-intro-fakt-titel {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--gr-text);
}

.gr-intro-fakt-sub {
	margin-top: 0.15rem;
	font-size: 0.85rem;
	line-height: 1.3;
	color: #6b7280;
}

@media (max-width: 768px) {
	.gr-intro-fakten {
		grid-template-columns: 1fr;
	}
}

/* --- Reiter „Alle / Fachkräfte / Ausbildung" (Umschalten nach Art) --- */

.gr-typ-reiter {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}

.gr-typ-tab {
	padding: 0.5rem 1.25rem;
	border: 1px solid #d1d5db;
	border-radius: 50px;
	background: #fff;
	color: #374151;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.gr-typ-tab:hover {
	border-color: var(--gr-primary);
	color: var(--gr-primary);
}

.gr-typ-tab.is-active {
	background: var(--gr-primary);
	border-color: var(--gr-primary);
	color: #fff;
}

.gr-typ-tab:focus-visible {
	outline: 2px solid var(--gr-primary);
	outline-offset: 2px;
}

/* --- Filter-Leiste --- */

.gr-filter {
	display: flex;
	gap: 1rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.gr-filter select {
	padding: 0.5rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: var(--gr-radius-btn);
	font-size: 1rem;
	background: #fff;
	color: #374151;
	cursor: pointer;
	min-width: 200px;
	flex: 1;
	max-width: 300px;
}

.gr-filter select:focus {
	outline: 2px solid var(--gr-primary);
	outline-offset: 1px;
	border-color: var(--gr-primary);
}

/* --- Karten-Grid --- */

/*
 * 2 Karten nebeneinander auf dem Desktop (1 auf dem Handy, siehe Media-Query).
 * Dadurch deutlich mehr Raum pro Person – größere Medienfläche, größere Schrift.
 */
.gr-kandidaten-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.gr-kandidat-karte {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--gr-bg);
	border-radius: var(--gr-radius-card);
	overflow: hidden;
	color: inherit;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Dünne Akzentlinie oben (Rot → Gold) als markenkonformer Karten-Kopf. */
.gr-kandidat-karte::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--gr-primary) 0%, var(--gr-primary) 55%, var(--gr-accent) 100%);
	z-index: 4;
	pointer-events: none;
}

.gr-kandidat-karte:hover {
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
	transform: translateY(-4px);
}

/* Sichtbarer Tastatur-Fokus auf dem Info-Link (Astra entfernt den Standard-Outline). */
.gr-karte-link:focus-visible {
	outline: 3px solid var(--gr-primary);
	outline-offset: 2px;
}

/* Astra unterstreicht Links in .entry-content (Spezifität 0,2,1).
   Die Karten-Links – höhere Spezifität (0,3,0) entfernt die Unterstreichung. */
.gr-kandidaten-uebersicht .gr-kandidaten-grid .gr-karte-link,
.gr-kandidaten-uebersicht .gr-kandidaten-grid .gr-karte-link:hover,
.gr-kandidaten-uebersicht .gr-kandidaten-grid .gr-slide-link,
.gr-kandidaten-uebersicht .gr-kandidaten-grid .gr-karte-foto-link {
	text-decoration: none;
	color: inherit;
}

/* --- Karten-Medien (gemeinsame Slider-Komponente im „karte"-Kontext) --- */

.gr-karte-media {
	position: relative;
}

/* Auf der Karte hat bereits die Karte selbst Radius + overflow:hidden –
   der Slider darf daher keine eigenen runden Ecken setzen (sonst Lücken).
   Zudem hochformat-freundlich (3/4 statt 4/3 wie im Profil): höhere Fläche,
   damit vertikale Videos und Hochkant-/Quadrat-Fotos die Karte gut füllen
   (object-fit:cover bei Fotos, deutlich schmalere Ränder bei 9:16-Videos)
   und die Person größer und besser erkennbar wird. */
.gr-karte-media .gr-media-slider--karte {
	border-radius: 0;
	aspect-ratio: 3 / 4;
}

/* Verlinkte Bild-Folie (Tippen aufs Foto öffnet das Profil). */
.gr-slide-link {
	display: flex;
	width: 100%;
	height: 100%;
}

/* Verlinkter Initialen-Platzhalter, falls kein Foto hinterlegt ist. */
.gr-karte-foto-link {
	display: block;
}

/*
 * Die Karten-Medienfläche ist jetzt großzügig (Hochformat), daher skalieren
 * die Bedienelemente mit: Play-Button in voller Größe (72 px wie im Profil)
 * und etwas kräftigere Pfeile (48 statt 44 px). Bedienung bleibt unverändert
 * per Klick, Pfeiltasten und Wischgeste.
 */
.gr-media-slider--karte .gr-video-facade .gr-video-play {
	width: 72px;
	height: 72px;
}

.gr-media-slider--karte .gr-video-facade .gr-video-play::before {
	border-width: 13px 0 13px 22px;
}

.gr-media-slider--karte .gr-slider-prev,
.gr-media-slider--karte .gr-slider-next {
	width: 48px;
	height: 48px;
}

/* Info-Bereich der Karte ist jetzt selbst der Profil-Link. */
.gr-karte-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* Kein Foto hinterlegt → markenkonformer Initialen-Platzhalter (wie ein
   Profil-Avatar bei Gmail/Slack) statt generischem „Person fehlt"-Icon. So
   wirkt die Karte als bewusster Platzhalter, nicht als Fehlzustand, und das
   Grid bleibt auch ohne Fotos aufgeräumt. */
.gr-karte-platzhalter,
.gr-profil-platzhalter {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f4f5f7 0%, #e7e9ee 100%);
}

/* Gleiche Hochformat-Fläche wie der Karten-Slider (3/4), damit Karten mit und
   ohne Foto im 2-Spalten-Raster gleich hoch wirken. */
.gr-karte-platzhalter {
	width: 100%;
	aspect-ratio: 3 / 4;
}

/* Auf der nun größeren Karten-Fläche darf der Initialen-Avatar kräftiger sein,
   damit Karten ohne Foto bewusst wirken (nicht wie eine leere Fläche). */
.gr-karte-platzhalter .gr-platzhalter-initialen {
	width: 160px;
	height: 160px;
	font-size: 3.6rem;
}

.gr-profil-platzhalter {
	width: 100%;
	min-height: 320px;
	border-radius: var(--gr-radius-card);
}

.gr-platzhalter-initialen {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
	color: var(--gr-primary);
	font-family: var(--gr-font-base);
	font-size: 2.1rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1;
}

.gr-profil-platzhalter .gr-platzhalter-initialen {
	width: 120px;
	height: 120px;
	font-size: 2.6rem;
}

/*
 * Info-Bereich unter der (nun deutlich größeren) Medienfläche.
 * Da die Karten im 2-Spalten-Raster breiter sind, bekommt der Textblock
 * etwas mehr Innenabstand und eine kräftigere Typo, damit Name und
 * Zielposition zur großen Foto-/Videofläche passen. Auf dem Handy (1 Spalte)
 * sind die Karten schmaler – 1.5rem für den Namen bleibt dort gut lesbar.
 */
.gr-karte-info {
	padding: 1.5rem;
}

.gr-karte-info h3 {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--gr-text);
}

.gr-karte-position {
	margin: 0 0 0.9rem;
	color: #6b7280;
	font-size: 1.05rem;
}

.gr-karte-details {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
	flex-wrap: wrap;
}

.gr-karte-branche,
.gr-karte-niveau {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 500;
}

.gr-karte-branche {
	background: #fdeced;
	color: var(--gr-primary-hover);
}

/*
 * Deutschniveau bewusst neutral (statt Gold): Die Referenz germanrecruiting.de
 * setzt Gold nur sehr sparsam ein. Ein Gold-Pill auf jeder Karte über das ganze
 * Grid hinweg würde Gold zu prominent machen. Neutrales Grau lässt das Marken-Rot
 * (Branche-Pill) der einzige Farbakzent pro Karte sein.
 */
.gr-karte-niveau {
	background: #f3f4f6;
	color: #374151;
}

/* --- Typ-Badge auf der Karte (Fachkraft / Ausbildung) --- */
.gr-karte-typ {
	margin: 0;
}

.gr-typ-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.3rem 0.8rem;
	border: 1px solid #e5e7eb;
	border-radius: 50px;
	background: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--gr-text);
	line-height: 1.2;
}

/*
 * Kleiner farbiger Punkt als markenkonformer Akzent statt Vollfarb-Pill:
 * Rot = Fachkraft, Gold = Ausbildung. Hält Gold sparsam (nur als 8-px-Punkt),
 * die Badge-Fläche bleibt ruhig weiß.
 */
.gr-typ-badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #9ca3af;
	flex: 0 0 auto;
}

.gr-typ-badge--fachkraft::before {
	background: var(--gr-primary);
}

.gr-typ-badge--ausbildung::before {
	background: var(--gr-accent);
}

/*
 * Astra setzt in .entry-content allen <p> ein margin-bottom: 1.6em (höhere
 * Spezifität als unsere Klassen). Dadurch erbt die Position-Zeile ~24 px und die
 * „verfügbar"-Zeile ~22 px statt unserer gewollten Werte – die Karte wird unten
 * kopflastig und der vertikale Rhythmus uneben. Mit (0,3,0) setzen wir unsere
 * beabsichtigten Abstände durch (gleiche Technik wie beim Link-Unterstreichen).
 */
.gr-kandidaten-uebersicht .gr-kandidaten-grid .gr-karte-position {
	margin: 0 0 0.75rem;
}
.gr-kandidaten-uebersicht .gr-kandidaten-grid .gr-karte-typ {
	margin: 0;
}

/* --- Keine Ergebnisse --- */

.gr-keine-ergebnisse {
	grid-column: 1 / -1;
	text-align: center;
	padding: 3rem 1rem;
	color: #6b7280;
	font-size: 1.1rem;
}

.gr-keine-kandidaten {
	text-align: center;
	padding: 3rem 1rem;
	color: #6b7280;
	font-size: 1.1rem;
}

/* --- Trefferanzeige (role=status) --- */
.gr-filter-status {
	margin: -1rem 0 1.5rem;
	color: #6b7280;
	font-size: 0.95rem;
}

/* --- „Filter zurücksetzen" im Leerzustand --- */
.gr-keine-ergebnisse p {
	margin: 0 0 1.25rem;
}

.gr-filter-reset {
	display: inline-block;
	background: var(--gr-primary);
	color: #fff;
	padding: 12px 28px;
	border: none;
	border-radius: var(--gr-radius-btn);
	font-size: 1rem;
	font-weight: 500;
	font-family: var(--gr-font-btn);
	cursor: pointer;
	transition: background 0.2s ease;
}

.gr-filter-reset:hover {
	background: var(--gr-primary-hover);
}

.gr-filter-reset:focus-visible {
	outline: 2px solid var(--gr-primary);
	outline-offset: 2px;
}

/* =============================================
   EINZELPROFIL (Single-Template)
   ============================================= */

.gr-einzelprofil {
	/* Etwas breiter (war 900px), damit die größere Medienfläche links und die
	   Kerndaten rechts beide komfortabel Platz haben. */
	max-width: 960px;
	margin: 0 auto;
	padding: 2rem 1rem;
	font-family: var(--gr-font-base);
	color: var(--gr-text);
}

/* --- Zurück-Link --- */

.gr-zurueck {
	display: inline-block;
	margin-bottom: 1.5rem;
	color: var(--gr-primary);
	text-decoration: none;
	font-size: 0.95rem;
}

.gr-zurueck:hover {
	text-decoration: underline;
}

/* --- Profil-Header: Foto + Kerndaten --- */

.gr-profil-header {
	display: flex;
	gap: 2rem;
	margin-bottom: 2.5rem;
	align-items: flex-start;
}

.gr-profil-media {
	/* Größere Medienfläche (war 420px): Foto und Video wirken größer, und das
	   Kurzprofil bekommt mehr Höhe (4/3 → 500×375 statt 420×315), sodass der
	   dichte Lebenslauf ohne Scrollbalken passt. */
	flex: 0 0 500px;
	max-width: 100%;
}

/* =============================================
   MEDIEN-SLIDER (Foto → Video → weitere Bilder)
   Reiner CSS/JS-Slider, keine externe Bibliothek.
   ============================================= */

.gr-media-slider {
	position: relative;
	width: 100%;
	border-radius: var(--gr-radius-card);
	overflow: hidden;
	background: #f3f4f6;
	/* Quadratische Medienfläche (war 4/3): Die meisten Kandidatenfotos und die
	   Vorstellungsvideos sind im Hochformat – ein Quadrat zeigt sie größer und mit
	   weniger schwarzen Rändern, und der datengetriebene Kurzprofil-Slide bekommt
	   genug Höhe, um ohne Scrollbalken zu passen. (Karte bleibt 3/4 über die
	   .gr-media-slider--karte-Regel.) */
	aspect-ratio: 1 / 1;
	outline: none;
}

.gr-media-slider:focus-visible {
	outline: 3px solid var(--gr-primary);
	outline-offset: 2px;
}

.gr-slider-viewport {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.gr-slider-track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.35s ease;
	will-change: transform;
}

.gr-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3f4f6;
}

/* Bilder füllen die Folie. */
.gr-slide-bild img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Native Videos werden eingepasst (Letterbox auf neutralem Grund). */
.gr-slide-video {
	background: #000;
}

.gr-slide-video video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background: #000;
}

/* oEmbed-Facade (YouTube/Vimeo). */
.gr-video-facade {
	position: relative;
	width: 100%;
	height: 100%;
	cursor: pointer;
	background: #000 center / cover no-repeat;
}

.gr-video-facade .gr-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--gr-primary);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.15s ease;
}

.gr-video-facade .gr-video-play::before {
	content: "";
	display: block;
	margin-left: 4px;
	border-style: solid;
	border-width: 13px 0 13px 22px;
	border-color: transparent transparent transparent #fff;
}

.gr-video-facade:hover .gr-video-play {
	background: var(--gr-primary-hover);
	transform: translate(-50%, -50%) scale(1.05);
}

.gr-video-facade.is-loaded .gr-video-play {
	display: none;
}

.gr-video-embed {
	position: absolute;
	inset: 0;
}

.gr-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* --- Pfeil-Buttons --- */

.gr-slider-prev,
.gr-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--gr-primary);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	transition: background 0.2s ease, opacity 0.2s ease;
	z-index: 2;
}

.gr-slider-prev { left: 12px; }
.gr-slider-next { right: 12px; }

.gr-slider-prev:hover,
.gr-slider-next:hover {
	background: var(--gr-primary-hover);
}

.gr-slider-prev:focus-visible,
.gr-slider-next:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -3px;
}

.gr-slider-prev:disabled,
.gr-slider-next:disabled {
	opacity: 0;
	pointer-events: none;
}

/* --- Punkte-Indikator --- */

.gr-slider-dots {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 50px;
	background: rgba(0, 0, 0, 0.35);
	z-index: 2;
}

.gr-slider-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.gr-slider-dot.is-active {
	background: var(--gr-primary);
	border-color: #fff;
	transform: scale(1.2);
}

.gr-slider-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* =============================================
   KURZPROFIL-SLIDE (dritte Folie: Lebenslauf-Kurzfassung)
   Datengetrieben gerendert (kein Bild) – markenkonform wie die Vorlage.
   Skaliert per Container-Query-Einheiten, damit dieselbe Folie auf der
   schmaleren Profil-Fläche (4/3) UND der hohen Karten-Fläche (3/4) passt.
   ============================================= */

.gr-slide-kurzprofil {
	/* Container für cq-Einheiten: Schrift skaliert mit der Foliengröße. */
	container-type: size;
	align-items: stretch;
	justify-content: stretch;
	padding: clamp(8px, 2.4cqmin, 18px);
	background: #f7f8fa;
}

/* Profil-Kontext (Querformat 4/3, flachere Folie): Das vertikale Folien-Padding
   der Kurzprofil-Folie wird reduziert, damit der dichte Lebenslauf ohne
   Scrollbalken in die niedrigere Fläche passt. Das horizontale Padding bleibt
   erhalten, damit die seitlich zentrierten Slider-Pfeile weiterhin Abstand zum
   Text halten. Auf der Karte (Hochformat, .gr-media-slider--karte) bleibt das
   großzügige Rundum-Padding bestehen – dort ist reichlich Höhe vorhanden. */
.gr-media-slider:not(.gr-media-slider--karte) .gr-slide-kurzprofil {
	padding-top: 4px;
	padding-bottom: 4px;
}

.gr-kurzprofil {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	width: 100%;
	overflow: hidden;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(35, 35, 35, 0.10);
	text-align: left;
	/* Fallback ohne Container-Query-Unterstützung. */
	font-family: var(--gr-font-base);
	font-size: 14px;
	/* Obergrenze bewusst bei 14px: Auf sehr breiten Karten (2-Spalten-Raster,
	   große Desktops) würde die Schrift sonst bis 16px hochskalieren und der
	   dichte Lebenslauf-Inhalt überschritte die 3/4-Folie (Fußzeile abgeschnitten).
	   Schmale Karten und die Profil-Fläche bleiben unverändert (liegen ohnehin
	   unter dieser Grenze). */
	font-size: clamp(11px, 3.4cqmin, 14px);
	line-height: 1.4;
	color: #232323;
}

/* Rot-goldene Akzentlinie am oberen Kartenrand (wie in der Vorlage). */
.gr-kurzprofil-akzent {
	flex: 0 0 auto;
	height: 0.55em;
	min-height: 6px;
	background: linear-gradient(90deg, var(--gr-primary) 0%, #ffd936 100%);
}

/* Innenbereich scrollt als Sicherheitsnetz, falls Inhalt mal höher ist als
   die Folie (z. B. auf der niedrigen Profil-Fläche). */
.gr-kurzprofil-inner {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	padding: 1.3em 1.5em 1.15em;
	overflow-y: auto;
	scrollbar-width: thin;
}

.gr-kurzprofil-kopf {
	flex: 0 0 auto;
}

.gr-kurzprofil-label {
	margin: 0;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gr-primary);
}

.gr-kurzprofil-name {
	margin: 0.18em 0 0;
	font-size: 2em;
	font-weight: 800;
	line-height: 1.1;
	color: #232323;
}

.gr-kurzprofil-beruf {
	margin: 0.18em 0 0;
	font-size: 1.05em;
	color: #6b7280;
}

.gr-kurzprofil-trennlinie {
	display: block;
	width: 3.2em;
	height: 0.28em;
	margin: 0.7em 0 0;
	border-radius: 0.14em;
	background: linear-gradient(90deg, var(--gr-primary) 0%, #ffd936 100%);
}

.gr-kurzprofil-block {
	flex: 0 0 auto;
	margin-top: 0.78em;
}

.gr-kurzprofil-block-label {
	margin: 0 0 0.25em;
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gr-primary);
}

.gr-kurzprofil-block-text {
	margin: 0;
	font-size: 0.95em;
	line-height: 1.4;
	color: #232323;
}

.gr-kurzprofil-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45em;
	margin: 0.15em 0 0;
	padding: 0;
	list-style: none;
}

.gr-kurzprofil-chip {
	padding: 0.32em 0.8em;
	border-radius: 999px;
	background: #fde7e8;
	color: var(--gr-primary);
	font-size: 0.82em;
	font-weight: 600;
	line-height: 1.2;
}

/* Fußzeile: drei Marken-Punkte (Schwarz/Rot/Gold) + Name + Claim.
   margin-top:auto drückt sie ans untere Ende, wenn Platz frei ist. */
.gr-kurzprofil-fuss {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
	margin-top: auto;
	padding-top: 0.9em;
	border-top: 1px solid #ededed;
}

.gr-kurzprofil-punkte {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}

.gr-kp-punkt {
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
}

.gr-kp-punkt--schwarz { background: #232323; }
.gr-kp-punkt--rot { background: var(--gr-primary); }
.gr-kp-punkt--gold { background: #ffd936; }

/* Echtes Marken-Logo in der Fußzeile (ersetzt die drei Punkte, sobald eine
   Logo-Datei in assets/img/ hinterlegt ist). Höhe in em → skaliert mit der
   Folienschrift und bleibt damit auf Karte (groß) wie Profil (klein) dezent.
   Der Schriftzug „GermanRecruiting · …" steht klein daneben. */
.gr-kurzprofil-logo {
	flex: 0 0 auto;
	display: block;
	width: auto;
	height: 1.7em;
}

.gr-kurzprofil-marke {
	font-size: 0.82em;
	font-weight: 700;
	color: #232323;
}

.gr-kurzprofil-claim {
	font-size: 0.82em;
	color: #9aa0a6;
}

/* Die Profil-Medienfläche ist im Querformat (4/3) deutlich niedriger als die
   hohe Karten-Fläche (3/4). Dort wird das Kurzprofil kompakter gesetzt und die
   vier Textblöcke (ab genügend Breite) zweispaltig angeordnet, damit es ohne
   Scrollen in die Folie passt. Im Hochformat (Karte) bleibt das einspaltige
   Vorlagen-Layout erhalten. Greift via Container-Query auf die Folie. */
@container (orientation: landscape) {
	/* Vertikal kompakter, damit die dichtere Kurzfassung möglichst ohne Scrollen
	   in die niedrige Profil-Fläche passt. Die seitlichen Pfeil-Freiräume kosten
	   Breite (mehr Umbrüche) – das wird hier durch engere Abstände aufgefangen. */
	.gr-kurzprofil-inner {
		padding-top: 0.7em;
		padding-right: 1.2em;
		padding-left: 1.2em;
	}

	.gr-kurzprofil-name {
		font-size: 1.35em;
	}

	.gr-kurzprofil-beruf {
		margin-top: 0.1em;
	}

	.gr-kurzprofil-trennlinie {
		margin-top: 0.4em;
	}

	.gr-kurzprofil-block {
		margin-top: 0.5em;
	}

	.gr-kurzprofil-block-label {
		margin-bottom: 0.12em;
	}
}

@container (orientation: landscape) and (min-width: 360px) {
	.gr-kurzprofil-blocks {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 1.3em;
		row-gap: 0;
	}
}

/* Kleine Karten-Fläche (Hochformat auf dem Handy, 1-Spalten-Raster): Dort ist die
   3/4-Folie deutlich niedriger als auf dem Desktop, und die Schrift steht bereits
   an ihrer Untergrenze (11px) – sie kann also nicht weiter schrumpfen. Damit der
   dichte Lebenslauf möglichst vollständig (inklusive Marken-Fußzeile) sichtbar
   bleibt, werden hier die vertikalen Abstände kompakter gesetzt. Reicht der Platz
   für sehr ausführliche Profile dennoch nicht, scrollt der Innenbereich sanft
   (overflow-y:auto) als Sicherheitsnetz. Greift nur im Hochformat mit niedriger
   Folie – die hohe Desktop-Karte (3/4, ~730px) bleibt unberührt, das Querformat-
   Profil hat seine eigenen Regeln weiter oben. */
@container (orientation: portrait) and (max-height: 620px) {
	.gr-kurzprofil-inner {
		padding: 0.7em 1.1em 0.7em;
	}

	.gr-kurzprofil-name {
		font-size: 1.55em;
	}

	.gr-kurzprofil-beruf {
		margin-top: 0.1em;
	}

	.gr-kurzprofil-trennlinie {
		margin-top: 0.45em;
	}

	.gr-kurzprofil-block {
		margin-top: 0.5em;
	}

	.gr-kurzprofil-block-label {
		margin-bottom: 0.12em;
	}

	.gr-kurzprofil-block-text {
		line-height: 1.32;
	}

	.gr-kurzprofil-chips {
		gap: 0.35em;
		margin-top: 0.1em;
	}

	.gr-kurzprofil-chip {
		padding: 0.26em 0.7em;
	}

	.gr-kurzprofil-fuss {
		padding-top: 0.55em;
	}
}

/* --- Slider-Bedienelemente vom Text freihalten ---
   Die Pfeil-Buttons liegen vertikal mittig über der Folie und reichen bis ~60px
   von der Folienkante (12px Abstand + bis 48px Durchmesser auf der Karte). Der
   Punkt-Indikator sitzt unten mittig und ist ~34px hoch. Damit beide den
   Kurzprofil-Text nicht überdecken, bekommen NUR die mittleren Textblöcke
   seitlichen Freiraum (Kopf/Name behalten die volle Breite, da die Pfeile sie
   nicht erreichen) und die Folie unten zusätzlichen Freiraum für die Punkte.
   Bewusst feste px-Werte, weil die Bedienelemente selbst in px positioniert sind. */
.gr-slide-kurzprofil .gr-kurzprofil-blocks,
.gr-slide-kurzprofil .gr-kurzprofil-inner > .gr-kurzprofil-block {
	padding-left: 40px;
	padding-right: 40px;
}

/* Auf der Kurzprofil-Folie blendet der Slider seinen generischen Punkte-
   Indikator aus (siehe gr-slider.js): Die Textfolie hat ihre eigene
   Marken-Fußzeile, und der Indikator würde sonst den Text überlagern. */
.gr-media-slider.gr-slider--kurzprofil-aktiv .gr-slider-dots {
	display: none;
}

.gr-profil-info {
	flex: 1;
}

.gr-profil-info h1 {
	margin: 0 0 0.5rem;
	font-size: 2rem;
	font-weight: 800;
	color: var(--gr-text);
}

.gr-profil-position {
	font-size: 1.2rem;
	color: #6b7280;
	margin: 0 0 1.5rem;
}

.gr-profil-daten {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gr-profil-daten li {
	padding: 0.5rem 0;
	border-bottom: 1px solid #f3f4f6;
	display: flex;
	gap: 0.5rem;
}

.gr-profil-daten .gr-label {
	font-weight: 600;
	min-width: 140px;
	color: #374151;
}

.gr-profil-daten .gr-wert {
	color: #1f2937;
}

/* --- Video-Embed --- */

.gr-profil-video {
	margin: 2.5rem 0;
}

.gr-profil-video h2 {
	margin: 0 0 1rem;
	font-size: 1.4rem;
	font-weight: 800;
}

.gr-video-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: var(--gr-radius-card);
}

.gr-video-wrapper iframe,
.gr-video-wrapper object,
.gr-video-wrapper embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* --- Stichpunkte --- */

.gr-profil-stichpunkte {
	margin: 2.5rem 0;
	background: #f9fafb;
	padding: 1.5rem 2rem;
	border-radius: var(--gr-radius-card);
}

.gr-profil-stichpunkte h2 {
	margin: 0 0 1rem;
	font-size: 1.4rem;
	font-weight: 800;
}

/* Kurze persönliche Vorstellung über den Stärken-Stichpunkten („Auf einen Blick"). */
.gr-profil-vorstellung {
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
	line-height: 1.6;
	color: #374151;
}

.gr-profil-stichpunkte ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gr-profil-stichpunkte li {
	padding: 0.5rem 0;
	padding-left: 1.5rem;
	position: relative;
	font-size: 1.05rem;
}

.gr-profil-stichpunkte li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--gr-primary);
	font-weight: 700;
}

/* --- CTA-Button --- */

.gr-profil-cta {
	text-align: center;
	margin: 2.5rem 0;
}

.gr-btn-anfrage {
	display: inline-block;
	background: var(--gr-primary);
	color: #fff !important;
	padding: 17px 40px;
	border-radius: var(--gr-radius-btn);
	font-size: 1rem;
	font-weight: 500;
	font-family: var(--gr-font-btn);
	text-decoration: none;
	transition: background 0.2s ease;
}

.gr-btn-anfrage:hover {
	background: var(--gr-primary-hover);
	color: #fff !important;
}

/* --- Anfrage-Formular --- */

.gr-anfrage-formular {
	margin: 3rem 0;
	background: #f9fafb;
	padding: 2rem;
	border-radius: var(--gr-radius-card);
	border: 1px solid #e5e7eb;
}

.gr-anfrage-formular h2 {
	margin: 0 0 0.5rem;
	font-size: 1.4rem;
	font-weight: 800;
}

.gr-anfrage-hinweis {
	color: #6b7280;
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
}

.gr-formular-feld {
	margin-bottom: 1.25rem;
}

.gr-formular-feld label {
	display: block;
	margin-bottom: 0.375rem;
	font-weight: 600;
	color: #374151;
	font-size: 0.95rem;
}

.gr-formular-feld input,
.gr-formular-feld textarea {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1px solid #d1d5db;
	border-radius: var(--gr-radius-btn);
	font-size: 1rem;
	color: #1f2937;
	box-sizing: border-box;
}

/* Mehrzeiliges Nachrichtenfeld: gleiche Optik wie die Inputs, aber mit etwas
   Mindesthöhe, vertikal vergrößerbar und in der Formular-Schrift (statt der
   Browser-Standard-Monospace für textarea). */
.gr-formular-feld textarea {
	min-height: 6.5rem;
	resize: vertical;
	font-family: inherit;
	line-height: 1.5;
}

.gr-formular-feld input:focus,
.gr-formular-feld textarea:focus {
	outline: 2px solid var(--gr-primary);
	outline-offset: 1px;
	border-color: var(--gr-primary);
}

.gr-btn-absenden {
	display: inline-block;
	background: var(--gr-primary);
	color: #fff;
	padding: 14px 36px;
	border: none;
	border-radius: var(--gr-radius-btn);
	font-size: 1rem;
	font-weight: 500;
	font-family: var(--gr-font-btn);
	cursor: pointer;
	transition: background 0.2s ease;
}

.gr-btn-absenden:hover {
	background: var(--gr-primary-hover);
}

.gr-formular-datenschutz {
	margin: -0.25rem 0 1.5rem;
	font-size: 0.85rem;
	line-height: 1.5;
	color: #6b7280;
}

.gr-formular-datenschutz a {
	color: var(--gr-primary);
	text-decoration: underline;
}

/* --- Erfolgs-/Fehlermeldung --- */

.gr-meldung {
	padding: 1rem 1.25rem;
	border-radius: var(--gr-radius-btn);
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}

.gr-meldung-erfolg {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #15803d;
}

.gr-meldung-fehler {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
	.gr-profil-header {
		flex-direction: column;
	}

	.gr-profil-foto,
	.gr-profil-media {
		flex: none;
		width: 100%;
	}

	.gr-kandidaten-grid {
		grid-template-columns: 1fr;
	}

	.gr-filter {
		flex-direction: column;
	}

	.gr-filter select {
		min-width: unset;
		width: 100%;
	}

	.gr-profil-daten .gr-label {
		min-width: 120px;
	}
}

/* =============================================
   REDUZIERTE BEWEGUNG (Barrierefreiheit)
   Respektiert das Betriebssystem-Setting „weniger Bewegung".
   ============================================= */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.gr-slider-track,
	.gr-kandidat-karte,
	.gr-slider-prev,
	.gr-slider-next,
	.gr-video-play,
	.gr-btn-anfrage,
	.gr-btn-absenden,
	.gr-filter-reset {
		transition: none;
	}

	.gr-kandidat-karte:hover {
		transform: none;
	}
}
