/*
 * Landingpage /karriere (Nutzerwunsch 2026-08-13, Entwurf "Reliability & Growth").
 *
 * Bewusst handgeschriebenes CSS statt Tailwind-Utilities: assets/styles.css ist ein vorab
 * kompiliertes, gepurgtes Bundle, und es gibt in diesem Projekt KEINEN Tailwind-Build-Schritt
 * (siehe Kommentar in templates/helfer.php). Neue Utility-Klassen wie die aus dem Entwurf
 * (bg-background, px-md, shadow-soft-lift, rounded-2xl ...) existieren dort schlicht nicht und
 * wuerden wirkungslos bleiben. Gleiches Vorgehen wie bei assets/cockpit.css.
 *
 * Farben kommen aus assets/branding.css — der Entwurf verwendet exakt dieselbe Palette
 * (#0047b3 = --color-primaer-700, #0d2443 = --color-primaer-950, #9dc2f5 = --color-primaer-300),
 * daher keine neuen Farbwerte, nur Rueckgriff auf die vorhandenen Variablen.
 *
 * Alle Klassen mit Praefix "lp-", damit sie sich nicht mit styles.css oder cockpit.css beissen.
 */

.lp-seite {
  --lp-flaeche: #f7f9fe;
  --lp-flaeche-grau: #f1f4f9;
  --lp-rand: rgba(157, 194, 245, 0.4);
  --lp-schatten: 0 4px 20px rgba(13, 36, 67, 0.08);
  --lp-radius: 0.5rem;
  --lp-radius-gross: 1rem;
  background: var(--lp-flaeche);
  color: var(--color-primaer-950, #0d2443);
}

.lp-breite {
  margin-inline: auto;
  max-width: 1280px;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .lp-breite { padding-inline: 1.5rem; }
}

.lp-abschnitt { padding-block: 3.5rem; }
.lp-abschnitt--grau { background: var(--lp-flaeche-grau); }

@media (min-width: 768px) {
  .lp-abschnitt { padding-block: 5rem; }
}

/* --- Ueberschriften ------------------------------------------------------ */

.lp-h2 {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-primaer-950, #0d2443);
}

.lp-h2-unter {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.95rem;
  color: #4b5f81;
}

@media (min-width: 768px) {
  .lp-h2 { font-size: 2rem; }
}

/* --- Hero ---------------------------------------------------------------- */

.lp-hero { position: relative; overflow: hidden; }

.lp-hero-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* Heller Verlauf ueber dem Foto, damit die Textkarte auf jeder Bildstelle lesbar bleibt —
   auf Mobil deckender, weil die Karte dort ueber dem Motiv statt daneben liegt. */
.lp-hero-schleier {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(247, 249, 254, 0.97) 0%, rgba(247, 249, 254, 0.9) 45%, rgba(247, 249, 254, 0.35) 100%);
}

@media (max-width: 767px) {
  .lp-hero-schleier { background: rgba(247, 249, 254, 0.93); }
}

.lp-hero-inhalt {
  position: relative;
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .lp-hero-inhalt { padding-block: 5.5rem; }
}

.lp-hero-karte {
  max-width: 34rem;
  border-radius: var(--lp-radius-gross);
  background: #fff;
  padding: 1.75rem;
  box-shadow: var(--lp-schatten);
}

@media (min-width: 768px) {
  .lp-hero-karte { padding: 2.5rem; }
}

.lp-hero-titel {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-primaer-950, #0d2443);
}

@media (min-width: 768px) {
  .lp-hero-titel { font-size: 2.75rem; }
}

.lp-hero-text {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #434653;
}

/* --- Schaltflaechen ------------------------------------------------------ */

.lp-knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--lp-radius);
  background: var(--color-primaer-700, #0047b3);
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.lp-knopf:hover { background: var(--color-primaer-600, #1f5cc4); }
.lp-knopf:focus-visible { outline: 2px solid var(--color-primaer-950, #0d2443); outline-offset: 2px; }

.lp-knopf--hell {
  background: #fff;
  color: var(--color-primaer-700, #0047b3);
}

.lp-knopf--hell:hover { background: #eef3fd; }

.lp-knopf svg { width: 1rem; height: 1rem; }

/* --- Karten-Raster ------------------------------------------------------- */

.lp-raster {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .lp-raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-raster--3 { grid-template-columns: repeat(3, 1fr); } }

.lp-karte {
  border-radius: var(--lp-radius-gross);
  border: 1px solid var(--lp-rand);
  background: #fff;
  padding: 1.5rem;
  transition: box-shadow 0.15s ease;
}

.lp-karte:hover { box-shadow: var(--lp-schatten); }

.lp-karte-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--lp-radius);
  background: rgba(157, 194, 245, 0.25);
  color: var(--color-primaer-700, #0047b3);
}

.lp-karte-icon svg { width: 1.15rem; height: 1.15rem; }

.lp-karte-titel {
  margin-top: 1rem;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primaer-950, #0d2443);
}

.lp-karte-text {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4b5f81;
}

/* --- Ablauf in drei Schritten -------------------------------------------- */

.lp-schritt { text-align: center; }

.lp-schritt-nummer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--color-primaer-700, #0047b3);
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.lp-schritt .lp-karte-titel { margin-top: 1rem; }
.lp-schritt .lp-karte-text { margin-top: 0.35rem; }

/* --- Vorteile (Karten mit Icon, Titel und Beschreibung) ------------------- */

.lp-vorteil-karte {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: var(--lp-radius-gross);
  background: #fff;
  border: 1px solid var(--lp-rand);
  padding: 1.5rem;
}

.lp-vorteil-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--lp-radius);
  background: rgba(157, 194, 245, 0.25);
  color: var(--color-primaer-700, #0047b3);
}

.lp-vorteil-icon svg { width: 1.15rem; height: 1.15rem; }

.lp-vorteil-titel {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primaer-950, #0d2443);
}

.lp-vorteil-karte .lp-karte-text { margin-top: 0.35rem; }

/* --- Einleitungstexte unter den Abschnittsueberschriften ------------------ */

/* Der Nutzertext arbeitet mit kurzen, aufeinander aufbauenden Saetzen ("Vielleicht suchen Sie
   ... Vielleicht moechten Sie ..."). Deshalb zentriert, schmal gesetzt und mit deutlichem
   Zeilenabstand — das laesst den Rhythmus wirken, statt ihn zu einem Textblock zu verkleben. */
.lp-einleitung {
  margin: 1.5rem auto 0;
  max-width: 44rem;
  text-align: center;
}

.lp-einleitung p {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #4b5f81;
}

.lp-einleitung p:first-child { margin-top: 0; }
.lp-einleitung strong { color: var(--color-primaer-950, #0d2443); }

.lp-einleitung + .lp-raster { margin-top: 2.5rem; }

/* Betonte Zeile direkt unter einem Kartentitel ("Direkt ankommen."). */
.lp-karte-slogan {
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-primaer-700, #0047b3);
}

.lp-karte-text + .lp-karte-text { margin-top: 0.75rem; }

.lp-knopf-zeile { margin-top: 1.5rem; }

.lp-raster--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .lp-raster--2 { grid-template-columns: repeat(2, 1fr); } }

/* Textlink mit Pfeil ("Industriejobs entdecken"). */
.lp-textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primaer-700, #0047b3);
  text-decoration: none;
}

.lp-textlink:hover { text-decoration: underline; }
.lp-textlink svg { width: 0.9rem; height: 0.9rem; transition: transform 0.15s ease; }
.lp-textlink:hover svg { transform: translateX(2px); }

/* --- Bildstrecke Einsatzbereiche ------------------------------------------ */

/* Seitenverhaeltnis 3:4 = exakt das Format der Motive in medien/ (600x800). Ein
   Querformat-Zuschnitt wuerde die abgebildeten Personen oben und unten anschneiden. */
.lp-bereich {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--lp-radius-gross);
  aspect-ratio: 3 / 4;
}

.lp-bereich:focus-visible { outline: 2px solid var(--color-primaer-700, #0047b3); outline-offset: 3px; }

/* Auf kleinen Bildschirmen liegen die drei Kacheln untereinander — dort waere volles
   Hochformat unnoetig hoch, deshalb flacher zugeschnitten. */
@media (max-width: 639px) {
  .lp-bereich { aspect-ratio: 4 / 3; }
  .lp-bereich img { object-position: center 30%; }
}

.lp-bereich img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lp-bereich:hover img { transform: scale(1.04); }

.lp-bereich-verlauf {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 36, 67, 0.75) 0%, rgba(13, 36, 67, 0.15) 45%, rgba(13, 36, 67, 0) 70%);
}

.lp-bereich-label {
  position: absolute;
  /* logische Eigenschaft statt "left": spiegelt automatisch mit dir="rtl" (Arabisch) */
  inset-inline-start: 1rem;
  bottom: 1rem;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

/* --- Abschluss-Banner ----------------------------------------------------- */

.lp-banner {
  background: var(--color-primaer-700, #0047b3);
  padding-block: 3.5rem;
  text-align: center;
}

@media (min-width: 768px) { .lp-banner { padding-block: 4.5rem; } }

.lp-banner-titel {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

@media (min-width: 768px) { .lp-banner-titel { font-size: 2.25rem; } }

.lp-banner-text {
  margin-top: 0.6rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #dae2ff;
}

.lp-banner-text strong { color: #fff; }

.lp-banner-zwischentitel {
  margin-top: 1.75rem;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.lp-banner .lp-knopf { margin-top: 1.25rem; }

/* --- Rechtslaeufige Sprachen (Arabisch) ---------------------------------- */

/* Der Aufmacher-Verlauf laeuft von der Textseite ins Bild. Bei dir="rtl" liegt die Textkarte
   rechts (Blockelemente richten sich nach der Schreibrichtung), also muss der Verlauf spiegeln —
   sonst deckt der helle Teil die falsche Seite ab und der Text steht auf dem Motiv. */
[dir="rtl"] .lp-hero-schleier {
  background: linear-gradient(260deg, rgba(247, 249, 254, 0.97) 0%, rgba(247, 249, 254, 0.9) 45%, rgba(247, 249, 254, 0.35) 100%);
}

@media (max-width: 767px) {
  [dir="rtl"] .lp-hero-schleier { background: rgba(247, 249, 254, 0.93); }
}

/* Der Pfeil in der Schaltflaeche zeigt in Leserichtung. */
[dir="rtl"] .lp-knopf svg { transform: scaleX(-1); }

/* Bewegungsreduktion respektieren (Barrierefreiheit). */
@media (prefers-reduced-motion: reduce) {
  .lp-bereich img,
  .lp-knopf,
  .lp-karte { transition: none; }
  .lp-bereich:hover img { transform: none; }
}
