/* ==========================================================================
   TrueLinePersonal — zentrales Stylesheet
   Mobile-first. Alle Farben/Abstände/Radien als CSS-Variablen (siehe :root).
   ========================================================================== */

/* Urdu-Schrift lokal eingebunden (SIL Open Font License) – keine Verbindung zu Google */
@font-face {
  font-family: "Noto Nastaliq Urdu"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/noto-nastaliq-urdu-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Noto Nastaliq Urdu"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/noto-nastaliq-urdu-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* Farben - komplett warme Palette (Gold/Amber + Terrakotta statt Teal/Blau,
     warmes Braun-Anthrazit statt Marineblau). Variablennamen --teal/--blue aus
     historischen Gründen beibehalten (viele Stellen referenzieren sie), Werte
     sind jetzt aber warm. Siehe DESIGNPLAN.md. */
  --ink: #2A1D14;
  --ink-soft: #3D2B1E;
  --ink-line: rgba(255, 255, 255, 0.14);
  --teal: #E2963C;
  --blue: #D9603A;
  --mist: #F8F1E7;
  --paper: #FFFFFF;
  --text-on-light: #2E2018;
  --text-muted-on-light: #7C6B5C;
  --text-on-dark: #FBF3EA;
  --text-muted-on-dark: #D8C4B0;
  --danger: #C6432E;

  --grad-accent: linear-gradient(120deg, var(--teal), var(--blue));

  /* Abstände */
  --space-1: 0.4rem;
  --space-2: 0.8rem;
  --space-3: 1.2rem;
  --space-4: 1.8rem;
  --space-5: 2.6rem;
  --space-6: 3.6rem;
  --space-7: 5.2rem;
  --space-8: 7.4rem;

  /* Radien */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  /* Schriften */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-ur: "Noto Nastaliq Urdu", var(--font-sans);

  --shadow-sm: 0 1px 2px rgba(42, 29, 20, 0.06), 0 1px 3px rgba(42, 29, 20, 0.07);
  --shadow-md: 0 4px 12px rgba(42, 29, 20, 0.07), 0 2px 4px rgba(42, 29, 20, 0.06);
  --shadow-lg: 0 16px 40px rgba(42, 29, 20, 0.14);
  --shadow-glow: 0 18px 40px -14px rgba(42, 29, 20, 0.28);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-elegant: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

/* -- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-on-light);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
html[dir="rtl"] body { font-family: var(--font-ur); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-light);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
p { margin: 0 0 1em; max-width: 62ch; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* -- Scroll-Reveal: Inhalte "gleiten" beim Scrollen sanft in Position -------
   Einmalig pro Element (kein erneutes Aus-/Einblenden beim Zurückscrollen) -
   siehe initScrollReveal() in main.js. */
.reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.8s var(--ease-elegant), transform 0.8s var(--ease-elegant), filter 0.8s var(--ease-elegant);
  will-change: opacity, transform, filter;
}
/* .pre-reveal wird erst per JS gesetzt, kurz bevor der IntersectionObserver
   startet - läuft JS gar nicht oder bricht ab, bleiben Inhalte einfach sichtbar
   statt dauerhaft unsichtbar zu bleiben. */
.reveal.pre-reveal { opacity: 0; transform: translateY(20px); filter: blur(6px); }
.reveal.pre-reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* -- Icons: dezente Hover-/Klick-Lebendigkeit -------------------------------------------------
   Rein dekorativ (siehe initIconPulse in main.js): kurzer, gedämpfter Bounce bei Klick/Tap,
   sanftes Wachsen bei Hover - modern, aber ohne ins Verspielte zu kippen. */
/* -- Spotlight-Hover: sanftes Licht folgt dem Mauszeiger auf Karten -------------------------------
   Rein dekorativ, Position kommt per JS über --spot-x/--spot-y (siehe initCardSpotlight in main.js). */
.service-card::after,
.industry-card::after,
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(217, 96, 58, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.service-card:hover::after,
.industry-card:hover::after,
.stat-card:hover::after { opacity: 1; }
@media (hover: none) {
  .service-card::after, .industry-card::after, .stat-card::after { display: none; }
}

.icon { transition: transform 0.25s var(--ease); }
.icon:hover { transform: scale(1.04); }
@keyframes icon-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.icon.icon-pulse { animation: icon-pulse 0.4s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .icon, .icon:hover { transform: none; transition: none; }
  .icon.icon-pulse { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.9em;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--grad-accent);
  color: #241407;
  box-shadow: 0 6px 16px -7px rgba(226, 150, 60, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 18px -7px rgba(217, 96, 58, 0.4); }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease-elegant);
}
.btn-primary:hover::after { left: 130%; }
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after { display: none; }
}
.btn-outline {
  background: transparent;
  color: var(--text-on-light);
  border-color: rgba(42, 29, 20, 0.25);
}
.btn-outline:hover { border-color: var(--ink); background: rgba(42, 29, 20, 0.05); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--ink-soft); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: var(--space-3) 0;
  background: linear-gradient(180deg, rgba(20, 12, 5, 0.55) 0%, rgba(20, 12, 5, 0) 100%);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(20, 12, 5, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  padding: var(--space-2) 0;
  box-shadow: var(--shadow-lg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.brand img { height: 40px; width: auto; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: fixed;
  inset: 0 0 0 auto;
  top: 0;
  width: min(320px, 86vw);
  height: 100vh;
  background: var(--ink);
  padding: calc(var(--header-h) + var(--space-3)) var(--space-4) var(--space-4);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}
.main-nav.is-open { transform: translateX(0); }
.nav-list { display: grid; gap: var(--space-1); }
.nav-list a {
  display: block;
  padding: var(--space-2) var(--space-1);
  font-size: 1.1rem;
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--ink-line);
}
.nav-cta { margin-top: var(--space-4); }
.nav-cta .btn { width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    transform: none;
    padding: 0;
    overflow: visible;
  }
  .nav-list { display: flex; align-items: center; gap: var(--space-4); }
  .nav-list a {
    border-bottom: none;
    padding: 0.4em 0;
    font-size: 0.98rem;
    color: #fff;
    position: relative;
  }
  .nav-list a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
    background: var(--grad-accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .nav-list a:hover::after { transform: scaleX(1); }
  .nav-cta { margin-top: 0; margin-left: var(--space-2); }
  .nav-cta .btn { width: auto; }
}

/* -- Sprachumschalter (DE/EN/TR/UR) -------------------------------------------------------------- */
.lang-switch { position: relative; margin-left: var(--space-2); }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  padding: 0.5em 0.9em;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--teal); background: rgba(255, 255, 255, 0.14); }
.lang-toggle .caret {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.25s var(--ease);
}
.lang-switch.open .lang-toggle .caret { transform: rotate(-135deg); margin-top: 3px; }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  background: var(--paper);
  border: 1px solid rgba(42, 29, 20, 0.1);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 950;
}
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .lang-menu button { text-align: right; }
.lang-switch.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  color: var(--text-muted-on-light);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
}
.lang-menu button:hover { background: var(--mist); color: var(--text-on-light); }
.lang-menu button[aria-current="true"] { color: var(--blue); font-weight: 700; }
@media (max-width: 959px) {
  .lang-toggle { padding: 0.45em 0.7em; font-size: 0.78rem; }
}

/* ==========================================================================
   Hero — Vollbild-Hintergrundvideo (mehrere kurze Clips im Crossfade-Wechsel,
   siehe initHeroVideo() in main.js). Vorbild: großformatige Video-Hero-Sektionen
   wie bei world.org.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--text-on-dark);
  background: linear-gradient(160deg, #4a2f18, #241407);
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease-elegant);
}
.hero-video.is-ready { opacity: 1; }

/* -- Video-Showcase: klar sichtbares, gerahmtes Feature-Video (volle Deckkraft, kein Wash-Effekt) -------- */
.video-feature { padding: var(--space-6) 0; background: var(--paper); }
.video-feature-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  box-shadow: var(--shadow-lg);
  background: var(--ink);
}
.video-feature-frame .section-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1s var(--ease-elegant);
}
.video-feature-frame .section-video.is-ready { opacity: 1; }
.video-feature-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
}
.video-feature-caption strong { display: block; font-size: 1.15rem; margin-bottom: 0.2em; }
.video-feature-caption span { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; }
@media (max-width: 640px) {
  .video-feature-frame { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  .video-feature-frame .section-video { display: none; }
  .video-feature-frame { background: linear-gradient(135deg, var(--ink), #4a2f18); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(42, 29, 20, 0.42) 0%, rgba(42, 29, 20, 0.22) 42%, rgba(42, 29, 20, 0.84) 100%);
}
.hero-inner {
  position: relative;
  z-index: 3;
  padding: calc(var(--header-h) + var(--space-6)) var(--space-4) var(--space-7);
  display: grid;
  gap: var(--space-3);
  max-width: 760px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  opacity: 0.9;
}
.hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-accent);
  flex-shrink: 0;
}
.hero-inner h1 {
  color: #fff;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  max-width: 16ch;
  margin: 0;
}
.hero-inner p {
  color: var(--text-muted-on-dark);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 46ch;
  margin: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.hero .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }


/* ==========================================================================
   Trust-Marquee: endlos scrollender Branchen-/Vertrauens-Streifen direkt unter der
   Hero-Diashow (Vorbild: world.org-artige Partner-/Kennzahlen-Leiste)
   ========================================================================== */
.trust-marquee {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 34px 0;
}
.trust-marquee::before, .trust-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.trust-marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.trust-marquee::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.trust-marquee-track {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: max-content;
  animation: trust-marquee 36s linear infinite;
}
.trust-marquee-item {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.045);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  padding: 0.75em 1.5em;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.trust-marquee-item:hover {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px -10px rgba(226, 150, 60, 0.45);
  transform: translateY(-2px);
}
.trust-marquee-item { transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.trust-marquee-item .icon {
  width: 20px; height: 20px;
  color: var(--teal);
  flex-shrink: 0;
  display: flex;
}
.trust-marquee-item .icon svg { width: 100%; height: 100%; }
@keyframes trust-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-marquee-track { animation: none; }
}

/* ==========================================================================
   Sections — gemeinsame Bausteine
   ========================================================================== */
.section { padding: var(--space-7) 0; }
.section--light { background: var(--paper); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--text-muted-on-dark); }

.section-head { max-width: 680px; margin: 0 0 var(--space-6); }
.section-head h2 { font-size: clamp(2.1rem, 6vw, 3.8rem); letter-spacing: -0.025em; line-height: 1.05; }
.section-head p { color: var(--text-muted-on-light); font-size: 1.08rem; }
.section--dark .section-head p { color: var(--text-muted-on-dark); }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }

/* Kleines Eyebrow-Label vor Section-Überschriften — gleiche Bauweise wie .hero-eyebrow,
   damit die ganze Seite von der Hero-Diashow bis zum Footer wie aus einem Guss wirkt. */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-2);
}
.section-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-accent);
  flex-shrink: 0;
}
.section--dark .section-eyebrow { color: var(--teal); }

/* ==========================================================================
   Leistungen
   ========================================================================== */
.services-grid {
  display: grid;
  gap: var(--space-4);
}
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(42, 29, 20, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-elegant), box-shadow 0.4s var(--ease-elegant), border-color 0.4s var(--ease-elegant);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: var(--blue); }
.service-card h3 { font-size: 1.3rem; }
.service-card .service-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-2);
}
.service-list { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.service-list li {
  display: flex;
  gap: 0.7em;
  align-items: baseline;
  color: var(--text-on-light);
}
.service-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-accent);
  transform: translateY(-2px);
}

@media (min-width: 860px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

/* Dunkle Glas-Karten auf .section--dark statt heller Karten - fügt sich in den kinoartigen,
   durchgehend dunklen Look der Hero-/Vorteile-Sektionen ein (Vorbild: world.org). */
.section--dark .service-card,
.section--dark .stat-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.section--dark .service-card h3,
.section--dark .stat-card strong { color: #fff; }
.section--dark .service-card p,
.section--dark .service-list li { color: var(--text-muted-on-dark); }
.section--dark .service-card:hover,
.section--dark .stat-card:hover { border-color: var(--teal); background: rgba(255, 255, 255, 0.08); }
.section--dark .stat-card--lead { background: rgba(255, 255, 255, 0.1); }
.section--dark .stat-label { color: var(--text-muted-on-dark); }

/* ==========================================================================
   Branchen — bewusste Hierarchie statt gleichförmigem Raster
   ========================================================================== */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  counter-reset: industry;
}
.industry-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(42, 29, 20, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 188px;
  counter-increment: industry;
  transition: transform 0.4s var(--ease-elegant), box-shadow 0.4s var(--ease-elegant), border-color 0.4s var(--ease-elegant);
}
.industry-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); border-color: var(--blue); }
.industry-card--primary {
  grid-column: span 2;
  min-height: 260px;
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.1);
}
.industry-card--primary h3 { color: #fff; }
.industry-card--primary p { color: var(--text-muted-on-dark); }
.industry-card--primary::before { color: #fff; }
.industry-card::before {
  content: counter(industry, decimal-leading-zero);
  position: absolute;
  top: 2px;
  right: 16px;
  z-index: 0;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
}
.industry-card--primary::before { font-size: 5rem; }
.industry-card .icon,
.industry-card h3,
.industry-card p { position: relative; z-index: 2; }
.industry-card .icon {
  width: 40px; height: 40px; margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
  background: rgba(217, 96, 58, 0.1);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease-elegant), background 0.4s var(--ease-elegant), color 0.4s var(--ease-elegant);
}
.industry-card .icon svg { width: 20px; height: 20px; }
.industry-card--primary .icon { width: 48px; height: 48px; color: var(--teal); background: rgba(255, 255, 255, 0.08); }
.industry-card--primary .icon svg { width: 24px; height: 24px; }
.industry-card:hover .icon { background: var(--grad-accent); color: #fff; transform: scale(1.08) rotate(-4deg); }
.industry-card h3 { font-size: 1rem; margin: 0; font-family: var(--font-sans); font-weight: 600; color: var(--text-on-light); }
.industry-card--primary h3 { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.01em; }
.industry-card p {
  margin: var(--space-1) 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted-on-light);
}
.industry-card--primary p { font-size: 0.95rem; max-width: 42ch; }

@media (min-width: 860px) {
  .industries-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 172px; }
  .industry-card--primary { grid-column: span 2; grid-row: span 2; min-height: 0; }
  .industry-card--secondary { grid-column: span 1; grid-row: span 1; }
  /* Bei ungerader Anzahl Sekundärkarten bleibt die letzte allein in der Zeile übrig -
     die lässt man dann bewusst zwei Spalten breit laufen statt verwaist klein zu wirken. */
  .industry-card--secondary:last-child { grid-column: span 2; }
}

/* ==========================================================================
   Ablauf — mit sich zeichnender Brücken-Linie
   ========================================================================== */
.process {
  position: relative;
}
.process-track {
  position: relative;
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}
.process-line {
  position: absolute;
  background: linear-gradient(180deg, var(--teal), var(--blue));
  background-repeat: no-repeat;
  background-size: 100% 0%;
  transition: background-size 1.6s var(--ease);
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 2px;
}
.process-line.is-visible { background-size: 100% 100%; }
.process-step {
  position: relative;
  padding-left: var(--space-6);
}
.process-step .step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.process-step h3 { color: var(--text-on-light); font-size: 1.4rem; letter-spacing: -0.01em; margin-bottom: 0.35em; }
.process-step p { color: var(--text-muted-on-light); }

@media (min-width: 860px) {
  .process-track { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
  .process-line {
    left: 24px; right: 24px; top: 24px; bottom: auto; height: 2px; width: auto;
    background: linear-gradient(90deg, var(--teal), var(--blue));
    background-size: 0% 100%;
  }
  .process-line.is-visible { background-size: 100% 100%; }
  .process-step { padding-left: 0; padding-top: var(--space-6); }
  .process-step .step-num { left: 0; top: 0; }
}

/* ==========================================================================
   Vorteile — asymmetrisch: eine Leitzahl + drei kleinere
   ========================================================================== */
.stats-grid {
  display: grid;
  gap: var(--space-3);
}
.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid rgba(42, 29, 20, 0.08);
  transition: border-color 0.4s var(--ease-elegant), box-shadow 0.4s var(--ease-elegant);
}
.stat-card:hover { border-color: var(--blue); box-shadow: var(--shadow-glow); }
.stat-card--lead {
  background: var(--ink);
  color: #fff;
  padding: var(--space-6);
}
.stat-value {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: block;
  margin-bottom: 0.3em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card--lead .stat-value { font-size: clamp(3rem, 8vw, 4.4rem); }
.stat-label { font-size: 0.95rem; color: var(--text-muted-on-light); }
.stat-card--lead .stat-label { color: var(--text-muted-on-dark); }

@media (min-width: 760px) {
  .stats-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; align-items: stretch; }
}

/* ==========================================================================
   Über uns
   ========================================================================== */
.about-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.about-quote {
  margin: 0;
  padding: var(--space-5);
  border-left: 4px solid var(--teal);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.about-quote p {
  margin: 0;
  max-width: none;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: var(--space-5);
}
.contact-form {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(42, 29, 20, 0.08);
}
.form-row { margin-bottom: var(--space-3); }
.form-row.two-col { display: grid; gap: var(--space-3); }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4em;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1.5px solid rgba(42, 29, 20, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  font: inherit;
  color: var(--text-on-light);
  background: var(--mist);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--blue);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(217, 96, 58, 0.15);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row.has-error input,
.form-row.has-error textarea,
.form-row.has-error select { border-color: var(--danger); background: #FDF1F1; }

/* -- Radio-Auswahl (z. B. Berufserfahrung ja/nein) -------------------------------------------------------------- */
.radio-row { display: flex; gap: var(--space-4); margin-top: 0.3em; }
.radio-option { display: flex; align-items: center; gap: 0.5em; font-size: 0.96rem; cursor: pointer; }
.radio-option input { width: auto; accent-color: var(--blue); }

/* -- Datei-Upload (Lebenslauf) -------------------------------------------------------------- */
.file-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4em;
  flex-direction: column;
  border: 1.5px dashed rgba(42, 29, 20, 0.28);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  background: var(--mist);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  font-size: 0.92rem;
  color: var(--text-muted-on-light);
}
.file-drop:hover { border-color: var(--blue); background: #fff; }
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-drop .file-name { font-weight: 600; color: var(--text-on-light); }

/* -- Hinweisbox (z. B. fehlender Web3Forms-Access-Key) -------------------------------------------------------------- */
.config-warning {
  background: #FFF3DE;
  border: 1px solid #E4A93B;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  color: #8A5A00;
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
}
.config-warning code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.form-error {
  display: none;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.4em;
}
.form-row.has-error .form-error { display: block; }
.form-check {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-muted-on-light);
}
.form-check input { margin-top: 0.25em; width: 18px; height: 18px; flex-shrink: 0; }
.form-status {
  margin-top: var(--space-3);
  padding: 0.9em 1.1em;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { background: rgba(226, 150, 60, 0.16); color: #8A5A17; }
.form-status.error { background: rgba(209, 67, 67, 0.1); color: var(--danger); }
.form-status.info { background: rgba(42, 29, 20, 0.06); color: var(--text-on-light); }

.contact-info { display: grid; gap: var(--space-4); align-content: start; }
.contact-info-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-info-item .icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--mist); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item strong { display: block; margin-bottom: 0.2em; }
.placeholder-tag {
  display: inline-block;
  background: #FFF3DE;
  color: #8A5A00;
  border: 1px dashed #E4A93B;
  border-radius: 6px;
  padding: 0.05em 0.5em;
  font-size: 0.85em;
  font-weight: 600;
}

@media (min-width: 640px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; } }

/* ==========================================================================
   Rechtliche Seiten (Impressum, Datenschutz)
   ========================================================================== */
.page-hero {
  background: var(--mist);
  color: var(--text-on-light);
  padding: calc(var(--header-h) + var(--space-6)) 0 var(--space-5);
}
.page-hero h1 { color: var(--text-on-light); font-size: clamp(1.7rem, 4vw, 2.3rem); }
.page-hero p { color: var(--text-muted-on-light); }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted-on-light); margin-bottom: var(--space-3); }
.breadcrumb a { color: var(--text-muted-on-light); }
.breadcrumb a:hover { color: var(--ink); }
.legal-content { max-width: 74ch; }
.legal-content h2 { font-size: 1.25rem; margin-top: 2em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { padding-left: 1.3em; list-style: disc; margin-bottom: 1em; }
.legal-content li { margin-bottom: 0.4em; }
.legal-note {
  background: var(--mist);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: 0.92rem;
  color: var(--text-on-light);
  margin-bottom: var(--space-5);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--text-muted-on-dark);
  padding: var(--space-6) 0 var(--space-4);
}
.footer-top {
  display: grid;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--ink-line);
}
.footer-brand img { height: 34px; margin-bottom: var(--space-2); margin-left: -4px; }
.footer-brand p { color: var(--text-muted-on-dark); max-width: 34ch; }
.footer-col h4 { font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.03em; color: #fff; margin-bottom: var(--space-2); }
.footer-col ul { display: grid; gap: 0.6em; }
.footer-col a { color: var(--text-muted-on-dark); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-3);
  color: var(--text-muted-on-dark);
  font-size: 0.85rem;
}
.footer-group img { height: 18px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; flex-shrink: 0; }
.footer-group a { color: var(--text-muted-on-dark); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s var(--ease); }
.footer-group a:hover { color: #fff; }
.footer-bottom {
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: 0.85rem;
}
.footer-bottom nav { display: flex; gap: var(--space-3); }

@media (min-width: 760px) {
  /* Dritte Spalte bewusst schmal und inhaltsbreit (statt 1fr) - so bleibt kein leerer
     Raum zwischen "Kontakt"/"Impressum" und dem rechten Rand übrig, beide Zeilen benutzen
     exakt dasselbe Maß und beginnen dadurch garantiert an derselben Stelle. */
  .footer-top { grid-template-columns: 1.4fr 1fr 230px; }
  .footer-bottom {
    display: grid;
    grid-template-columns: 1.4fr 1fr 230px;
    gap: var(--space-5);
  }
  .footer-bottom nav { grid-column: 3; }
}

/* ==========================================================================
   Responsive Container-Feinschliff
   ========================================================================== */
@media (min-width: 640px) {
  :root { --header-h: 84px; }
  .container { padding: 0 var(--space-5); }
}

/* Formulare: Spam-Falle unsichtbar, große Erfolgsmeldung nach dem Absenden */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-form[hidden] { display: none !important; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none !important; }
.form-success {
  background: var(--paper); border-radius: var(--radius-md); padding: 48px 32px; text-align: center;
  box-shadow: var(--shadow-md); display: grid; justify-items: center; gap: 10px; animation: fadeInUp .5s var(--ease-elegant) both;
}
.form-success-icon {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(226,150,60,.16); color: #B06A1E;
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px; box-shadow: 0 0 0 10px rgba(226,150,60,.08);
}
.form-success-icon svg { width: 36px; height: 36px; }
.form-success h3 { font-size: 1.4rem; margin: 0; color: var(--text-on-light); }
.form-success p { color: var(--text-muted-on-light); max-width: 44ch; margin: 0 0 10px; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* Hinweis auf die Voraussetzungen bei Bewerbungen aus dem Ausland */
.abroad-hint {
  margin: 0 0 var(--space-3); padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(226,150,60,.12); border-left: 4px solid var(--teal); color: var(--text-on-light); font-size: .93rem;
}
html[dir="rtl"] .abroad-hint { border-left: none; border-right: 4px solid var(--teal); }
.abroad-hint[hidden] { display: none; }

/* Korrekturen Design-Prüfung 2026-09-26 */
/* 1) Große Branchen-Karten: Überschrift weiß (wurde von .industry-card h3 überschrieben) */
.industry-card.industry-card--primary h3 { color: #fff; }
/* 2) Letzte kleine Branchen-Karte füllt die Zeile, statt eine Lücke zu lassen */
@media (min-width: 900px) { .industry-card--secondary:last-child { grid-column: 1 / -1; } }
/* 3) Button im Menü: eigener Innenabstand + Glanzeffekt statt Unterstrich */
@media (min-width: 960px) {
  .nav-list a.btn { padding: 0.62em 1.4em; }
  .nav-list a.btn::after {
    top: 0; bottom: auto; left: -60%; right: auto; width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg); transform-origin: center; transition: left 0.7s var(--ease-elegant);
  }
  .nav-list a.btn:hover::after { transform: skewX(-20deg); left: 130%; }
}

/* Bewerbungsseite: 4 Schritte – auf dem Handy untereinander statt abgeschnitten */
.process-track.apply-steps { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 560px) { .process-track.apply-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .process-track.apply-steps { grid-template-columns: repeat(4, 1fr); } }


/* ==========================================================================
   Wortband + Footer-Schriftzug (wie truelinegroup.de, in Markenfarben)
   ========================================================================== */
.word-band { position: relative; overflow: hidden; padding: 70px 0 64px; background: #ffffff; }
.word-row {
  display: flex; width: max-content; white-space: nowrap; direction: ltr;
  font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  color: #2A1D14; will-change: transform; animation: wordFlow 42s linear infinite;
}
.word-row + .word-row { margin-top: 6px; }
.word-row--outline { color: transparent; -webkit-text-stroke: 1.5px rgba(42,29,20,.32); animation-duration: 52s; animation-direction: reverse; }
.word-set { display: flex; align-items: center; flex-shrink: 0; }
.word-set > * { margin-right: 36px; }
.word-row i { display: inline-block; width: .28em; height: .28em; border-radius: 50%; background: linear-gradient(120deg, #E2963C, #D9603A); flex-shrink: 0; }
.word-row--outline i { background: none; border: 2px solid rgba(226,150,60,.6); }
.word-band::before, .word-band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.word-band::before { left: 0; background: linear-gradient(90deg, #ffffff, transparent); }
.word-band::after { right: 0; background: linear-gradient(270deg, #ffffff, transparent); }
@keyframes wordFlow { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
html[dir="rtl"] .word-row { font-family: var(--font-ur); letter-spacing: 0; line-height: 1.9; }
@media (max-width: 620px) { .word-band { padding: 44px 0; } }

/* Großer Schriftzug im Footer – wie ein leichter Schatten */
.site-footer { position: relative; overflow: hidden; }
.footer-mark {
  font-size: clamp(2.4rem, 7.2vw, 6.1rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  margin: 36px 0 -8px; white-space: nowrap; user-select: none; direction: ltr;
  background: linear-gradient(180deg, rgba(243,195,129,.2), transparent 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Branchen: gleichmäßiges Raster – 4 gleich große Karten pro Reihe (Tablet 2, Handy 1) */
.industries-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: auto; gap: var(--space-3); }
@media (min-width: 560px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .industries-grid { grid-template-columns: repeat(4, 1fr); } }
.industries-grid .industry-card,
.industries-grid .industry-card--secondary,
.industries-grid .industry-card--secondary:last-child { grid-column: auto; grid-row: auto; min-height: 210px; justify-content: flex-start; }
.industries-grid .industry-card .icon { margin-bottom: var(--space-3); }
.industries-grid .industry-card h3 { font-size: 1.08rem; }
/* 8. Karte: Einladung zum Kontakt, gleiche Größe, farblich hervorgehoben */
.industry-card--cta { background: var(--ink); border-color: rgba(255,255,255,.1); text-decoration: none; }
.industry-card--cta::before { content: "+"; color: #fff; }
.industry-card--cta h3 { color: #fff !important; }
.industry-card--cta p { color: var(--text-muted-on-dark); }
.industry-card--cta .icon { background: rgba(255,255,255,.08); color: var(--teal); }
.industry-more { position: relative; z-index: 2; margin-top: auto; padding-top: var(--space-2); font-weight: 700; font-size: .9rem; color: var(--teal); }
.industry-card--cta:hover { text-decoration: none; }
