/* ============================================================
   VEH – Ergänzungen zum Prototyp-Stylesheet.
   style.css bleibt unverändert, damit der Prototyp-Stand
   nachvollziehbar bleibt. Alles Neue steht hier.
   ============================================================ */

/* ---------- Inhalt bleibt ohne JavaScript sichtbar ---------- */
/* Der Prototyp blendete alle Abschnitte per .reveal mit
   opacity:0 aus und machte sie erst durch JavaScript sichtbar.
   Lädt das Skript nicht — falscher Pfad, blockiert, Tippfehler
   im Dateinamen —, war die Seite bis auf den Hero leer.
   Jetzt gilt die Umkehrung: sichtbar ist der Normalfall,
   ausgeblendet wird nur, wenn JavaScript sich vorher gemeldet
   hat (Klasse "js" am <html>-Element, gesetzt von
   js-erkennung.js). Das schützt zugleich Suchmaschinen und
   Vorlesewerkzeuge vor einer scheinbar leeren Seite. */

.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Barrierefreiheit: Grundausstattung -------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--veh-turquoise);
  color: var(--veh-blue-dark);
  padding: 12px 20px;
  font-family: var(--font-headline);
  font-weight: 700;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--veh-turquoise);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Navigation ------------------------------------- */
/* Der Prototyp startet die Navigation transparent und lässt den
   Hintergrund per JavaScript einblenden, sobald gescrollt wird.
   Läuft das Skript nicht, schwebt weiße Schrift über weißem
   Inhalt – unlesbar. Deshalb dieselbe Umkehrung wie bei den
   Einblendungen: Hintergrund ist der Normalfall, transparent
   wird sie nur, wenn JavaScript sich gemeldet hat. */

.nav {
  background: var(--veh-blue);
}

html.js .nav:not(.solid) {
  background: transparent;
}

html.js .nav:not(.solid).scrolled {
  background: rgba(32, 50, 92, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 40px rgba(0,0,0,0.15);
}

/* Unterseiten haben einen hellen Hintergrund – dort ist die
   Navigation immer deckend, unabhängig von JavaScript. */
.nav.solid {
  background: var(--veh-blue);
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

.page-offset { padding-top: var(--nav-height); }

/* Ohne JavaScript lässt sich das Klappmenü nicht öffnen. Auf
   schmalen Bildschirmen bleiben die Links deshalb sichtbar und
   bei Bedarf seitlich verschiebbar; der Knopf verschwindet.
   Die Höhe der Leiste bleibt dabei unverändert, damit der
   Abstand der Unterseiten weiter passt. */
@media (max-width: 1024px) {
  html:not(.js) .nav-menu-btn { display: none; }

  html:not(.js) .nav-links {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: 20px;
  }
  html:not(.js) .nav-links::-webkit-scrollbar { display: none; }
  html:not(.js) .nav-links > li { flex: 0 0 auto; }
  html:not(.js) .nav-links a { font-size: 0.82rem; }
  html:not(.js) .nav-cta { display: none; }
}

/* ---------- Mobile Navigation ------------------------------- */

.nav-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-menu-btn span { transition: transform 0.3s ease, opacity 0.2s ease; }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--veh-blue);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 8px 0 20px;
  z-index: 999;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.nav-mobile.open { display: block; }

.nav-mobile ul { list-style: none; }
.nav-mobile a {
  display: block;
  padding: 15px 32px;
  color: rgba(255,255,255,0.88);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-mobile a:hover,
.nav-mobile a:focus { color: var(--veh-turquoise); }

@media (min-width: 1025px) {
  .nav-mobile { display: none !important; }
}

/* ---------- Seitenkopf für Unterseiten ---------------------- */

.page-head {
  background: var(--gradient-blue-dark);
  color: var(--veh-white);
  padding: 70px 0 60px;
}
.page-head h1 { color: var(--veh-white); margin-bottom: 14px; }
.page-head p {
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  font-size: 1.1rem;
}
.page-head .section-label { color: var(--veh-turquoise); }

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
  font-family: var(--font-headline);
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--veh-turquoise); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* ---------- Stellenübersicht -------------------------------- */

.jobs-section { padding: 80px 0 100px; }

.stellen-liste { display: grid; gap: 16px; max-width: 900px; }

.stellen-karte {
  display: block;
  background: var(--veh-white);
  border: 1px solid #e3e5ea;
  border-left: 4px solid var(--veh-turquoise);
  border-radius: 4px;
  padding: 26px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.stellen-karte:hover,
.stellen-karte:focus-within {
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(32,50,92,0.10);
  border-color: #d3d7de;
  border-left-color: var(--veh-blue);
}
.stellen-karte h2,
.stellen-karte h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--veh-blue);
}
.stellen-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.stellen-tag {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--veh-blue);
  background: var(--veh-grey-light);
  padding: 5px 12px;
  border-radius: 3px;
}
.stellen-karte p { color: var(--veh-grey-dark); font-size: 1rem; margin-bottom: 0; }

.stellen-leer {
  background: var(--veh-grey-light);
  border-radius: 4px;
  padding: 44px 36px;
  max-width: 900px;
}
.stellen-leer h2 { font-size: 1.4rem; margin-bottom: 10px; }

/* ---------- Stellendetail ----------------------------------- */

.job-detail { padding: 70px 0 90px; }
.job-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
.job-body h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--veh-grey-light);
}
.job-body h2:first-child { margin-top: 0; }
.job-body ul { margin: 0 0 8px 0; padding-left: 0; list-style: none; }
.job-body li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  line-height: 1.65;
}
.job-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--veh-turquoise);
  border-radius: 1px;
}
.job-body p { margin-bottom: 16px; }

.job-aside {
  background: var(--veh-grey-light);
  border-radius: 4px;
  padding: 32px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.job-aside h3 { font-size: 1.1rem; margin-bottom: 18px; }
.job-aside dl { margin-bottom: 24px; }
.job-aside dt {
  font-family: var(--font-headline);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--veh-grey);
  margin-top: 14px;
}
.job-aside dd { font-size: 1rem; color: var(--veh-blue); font-weight: 700; }
.job-aside .btn { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .job-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .job-aside { position: static; }
}

/* ---------- Rechtstexte ------------------------------------- */

.legal { padding: 70px 0 90px; }
.legal-inner { max-width: 780px; }
.legal h2 {
  font-size: 1.45rem;
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--veh-grey-light);
}
.legal h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.legal p, .legal li { line-height: 1.75; }
.legal ul { margin: 0 0 18px 22px; }
.legal li { margin-bottom: 7px; }
.legal address { font-style: normal; line-height: 1.8; margin-bottom: 18px; }

/* Platzhalter, die vor dem Livegang gefüllt werden müssen */
.todo {
  background: #fff4e0;
  border-left: 4px solid #e8a33d;
  padding: 3px 9px;
  font-family: monospace;
  font-size: 0.92em;
  color: #7a5410;
}

/* ---------- Systemmeldungen --------------------------------- */

.hinweis {
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.6;
}
.hinweis-ok    { background: #e8f7f3; border-left: 4px solid var(--veh-turquoise); color: #145c4c; }
.hinweis-fehler{ background: #fdeceb; border-left: 4px solid #c0392b; color: #7d2019; }
.hinweis ul { margin: 8px 0 0 20px; }

/* Honeypot: für Menschen unsichtbar, für Bots verlockend.
   Bewusst kein display:none – manche Bots ignorieren das. */
.hp-feld {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
