/* ==========================================================================
   Startseite Overhaul März 2026
   ========================================================================== */

/* ---------- Glasmorphism utility ---------- */
.startseite-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

/* ---------- Hero Section ---------- */
.startseite-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  margin-top: 0;
  overflow: hidden;
}
@media screen and (min-width: 40em) {
  .startseite-hero {
    min-height: 760px;
  }
}
@media screen and (min-width: 64em) {
  .startseite-hero {
    min-height: 70vh;
    margin-top: 0;
  }
}

/* Background image — focal point via CSS custom properties
   Mobile:  center image horizontally (form overlaps people = OK)
   Tablet+: use focal point from backend sliders so people stay visible */
.startseite-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.startseite-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--hero-focal-y, 33%);
  display: block;
  /* Promote to own GPU layer — prevents blurriness caused by
     backdrop-filter compositing from the glassmorphism search card */
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* Tablet: start using the focal point */
@media screen and (min-width: 40em) {
  .startseite-hero-img {
    object-position: var(--hero-focal-x, 50%) var(--hero-focal-y, 33%);
  }
}
.startseite-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(41, 50, 98, 0.03) 0%,
    rgba(41, 50, 98, 0.08) 55%,
    rgba(41, 50, 98, 0.15) 100%
  );
}

/* ---------- Hero inner layout (headline + search) ---------- */
.startseite-hero-inner {
  position: static;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media screen and (min-width: 40em) {
  .startseite-hero-inner {
    padding: 8rem 2rem 5rem;
    gap: 2rem;
  }
}
@media screen and (min-width: 64em) {
  .startseite-hero-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 9rem 2.5rem 5rem;
    gap: 0;
  }
}

/* Headline sits centered in the upper hero image area */
.startseite-hero-headline {
  position: absolute;
  top: clamp(0.75rem, 3.5vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 62rem;
  font-size: 1.9rem;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
  font-weight: 800;
  text-align: center;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.55),
    0 6px 24px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.7);
  -webkit-font-smoothing: antialiased;
}
@media screen and (min-width: 25em) {
  .startseite-hero-headline {
    top: clamp(1rem, 4vh, 2.5rem);
    font-size: 2.2rem;
  }
}
@media screen and (min-width: 30em) {
  .startseite-hero-headline {
    top: clamp(1rem, 4vh, 2.5rem);
    font-size: 2.5rem;
  }
}
@media screen and (min-width: 35em) {
  .startseite-hero-headline {
    top: clamp(1rem, 4vh, 2.5rem);
    font-size: 2.9rem;
  }
}
@media screen and (min-width: 40em) {
  .startseite-hero-headline {
    top: clamp(1rem, 4vh, 2.5rem);
    font-size: 3.2rem;
  }
}
@media screen and (min-width: 64em) {
  .startseite-hero-headline {
    top: clamp(1.25rem, 5vh, 3rem);
    font-size: 3.2rem;
    text-align: center;
  }
}

/* ---------- Search wrap (right-aligned on desktop, glassmorphism bg) ---------- */
.startseite-hero-search-wrap {
  width: 100%;
  max-width: 500px;
  /* Glassmorphism background */
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.25rem;
}
@media screen and (min-width: 64em) {
  .startseite-hero-search-wrap {
    width: 480px;
    margin-left: auto;
  }
}
@media screen and (min-width: 80em) {
  .startseite-hero-search-wrap {
    width: 500px;
  }
}

/* Reset searchfield wrapper */
.startseite-hero-search-wrap .searchfield {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0.75rem;
}
.startseite-hero-search-wrap .searchfield .hero-search-form {
  display: block !important;
}

/* ---------- Hero search buttons ---------- */
.hero-search-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  line-height: 1.4;
}

/* "Ganze Jobbörse ansehen" — dark navy */
.hero-search-btn--jobs {
  background: #293262;
  color: #fff !important;
  font-size: 1.2rem;
}
.hero-search-btn--jobs:hover {
  background: #1e2449;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(41, 50, 98, 0.3);
}

/* "Initiativbewerbung" — green */
.hero-search-btn--initiative {
  background: #00a285;
  color: #fff !important;
  font-size: 1.2rem;
}
.hero-search-btn--initiative:hover {
  background: #008d73;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0, 162, 133, 0.3);
}

/* ---------- Search form ---------- */
.hero-search-form {
  margin: 0;
}
.hero-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.hero-search-input {
  width: 100%;
  height: 3.25rem;
  padding: 0 3.25rem 0 1.1rem !important;
  border: 2px solid #d0d4e8 !important;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #293262 !important;
  font-size: 1.1rem !important;
  margin: 0 !important;
  outline: none;
  transition: border-color 0.2s ease;
}
.hero-search-input:focus {
  border-color: #293262 !important;
}
.hero-search-input::placeholder {
  color: #888 !important;
  font-style: normal;
}
.hero-search-icon-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  color: #293262;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
}
.hero-search-icon-btn:hover {
  color: #00a285;
}

/* ---------- Responsive adjustments for search ---------- */
@media screen and (min-width: 40em) {
  .hero-search-btn {
    padding: 1.05rem 1.5rem;
    font-size: 1.2rem;
  }
  .hero-search-input {
    height: 3.4rem;
    font-size: 1.15rem !important;
  }
}
@media screen and (min-width: 64em) {
  .hero-search-btn {
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
  }
  .hero-search-input {
    height: 3.4rem;
    font-size: 1.15rem !important;
  }
}

/* ---------- #searchbox-container fallback (blog home) ---------- */
#searchbox-container .searchfield {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}
#searchbox-container .hero-search-btn--jobs {
  background: #293262;
}
#searchbox-container .hero-search-btn--initiative {
  background: #00a285;
}

/* ---------- Horizontal ticker bar (Aktienticker) ---------- */
.startseite-tickerbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 42px;
  overflow: hidden;
  border-radius: 0;
  border: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -42px; /* overlap hero bottom */
}
/* Label on the left */
.startseite-tickerbar-label {
  flex-shrink: 0;
  padding: 0 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 42px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.startseite-tickerbar-label:hover {
  color: rgba(255, 255, 255, 0.9);
}
/* Track: holds the horizontally scrolling items */
.startseite-tickerbar-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  width: 100%;
}

/* Override Foundation grid classes */
.startseite-tickerbar article.widget.row {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
  width: 100% !important;
}
.startseite-tickerbar article.widget.row::before,
.startseite-tickerbar article.widget.row::after {
  display: none !important;
}
.startseite-tickerbar article.widget .columns {
  padding: 0 !important;
  height: 100%;
  width: 100% !important;
  float: none !important;
}
.startseite-tickerbar article.widget h6.sub-header,
.startseite-tickerbar .latest-vacancies-title {
  display: none;
}
.startseite-tickerbar .latest-vacancies-container {
  width: 100%;
  height: 42px;
  overflow: hidden;
  padding-left: 0;
  position: relative;
}
.startseite-tickerbar .latest-vacancies-listing-container {
  width: 100%;
  height: 42px;
  overflow: hidden;
}
/* Horizontal scrolling row */
.startseite-tickerbar .latest-vacancies-listing {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  height: 42px;
  margin: 0;
  padding: 0 1rem;
  list-style: none;
  position: relative;
  /* Mobile: längere Duration = langsamere Geschwindigkeit,
     weil dasselbe px/s auf kleinem Viewport optisch rasend schnell wirkt */
  animation: startseite-ticker-scroll 100s linear infinite;
  width: max-content;
}
@media screen and (min-width: 700px) {
  .startseite-tickerbar .latest-vacancies-listing {
    animation-duration: 75s;
  }
}
@media screen and (min-width: 1280px) {
  .startseite-tickerbar .latest-vacancies-listing {
    animation-duration: 55s;
  }
}
.startseite-tickerbar .latest-vacancies-listing:hover {
  animation-play-state: paused;
}
/* Each entry inline */
.startseite-tickerbar .vacancy-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  height: auto;
  margin: 0;
  padding: 0 1.2rem 0 0;
  border: none;
  white-space: nowrap;
}
/* Dot separator */
.startseite-tickerbar .vacancy-entry + .vacancy-entry::before {
  content: "\2022";
  color: rgba(255, 255, 255, 0.35);
  margin-right: 1.2rem;
  font-size: 0.6rem;
}
.startseite-tickerbar .vacancy-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1;
}
.startseite-tickerbar .vacancy-entry a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.startseite-tickerbar .vacancy-entry a:hover {
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.4);
}

@keyframes startseite-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Main Content ---------- */
.startseite-content {
  max-width: 70rem;
  margin: 0 auto;
  padding: 2.5rem 0.9375rem 3rem;
}

/* About Text */
.startseite-about {
  background: #fff;
  border-left: 4px solid #00a285;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  font-size: 1.05rem;
}
.startseite-about p:last-child {
  margin-bottom: 0;
}

/* Two Column Boxes */
.startseite-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.startseite-box {
  flex: 1 1 300px;
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-top: 3px solid #293262;
  transition: box-shadow 0.25s, transform 0.25s;
}
.startseite-box:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}
.startseite-box h2 {
  color: #293262;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.startseite-box p {
}
.startseite-box p:last-child {
  margin-bottom: 0;
}

/* CTA */
.startseite-cta {
  text-align: center;
  margin: 3rem 0 1rem;
}
.startseite-cta a {
  display: inline-block;
  background: #00a285;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.9rem 2.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.25s, box-shadow 0.25s;
  box-shadow: 0 3px 12px rgba(0, 162, 133, 0.3);
}
.startseite-cta a:hover {
  background: #008d73;
  box-shadow: 0 5px 20px rgba(0, 162, 133, 0.4);
  color: #fff;
}

/* ── Slider Section ──────────────────────────────────────────────────────── */
.startseite-slider-section {
  max-width: 72rem;
  margin: 3rem auto 4rem;
  padding: 0 0.9375rem;
}

/* ── Button + Track Wrapper ──────────────────────────────────────────────── */
.startseite-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Scrollable list ─────────────────────────────────────────────────────── */
.startseite-slider {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  flex: 1;
  min-width: 0;

  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 18rem);

  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;

  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;

  /* Thin scrollbar on mobile / fallback */
  scrollbar-width: thin;
  scrollbar-color: #00a285 #e6e6e6;
}

/* Desktop: hide scrollbar — buttons handle nav */
@media screen and (min-width: 40em) {
  .startseite-slider {
    scrollbar-width: none;
    grid-auto-columns: calc(50% - 0.625rem);
  }
  .startseite-slider::-webkit-scrollbar {
    display: none;
  }
}

@media screen and (min-width: 64em) {
  .startseite-slider {
    grid-auto-columns: calc(33.333% - 0.84rem);
  }
}

.startseite-slider::-webkit-scrollbar {
  height: 5px;
}
.startseite-slider::-webkit-scrollbar-track {
  background: #e6e6e6;
  border-radius: 999px;
}
.startseite-slider::-webkit-scrollbar-thumb {
  background: #00a285;
  border-radius: 999px;
}

/* ── Prev / Next Buttons ─────────────────────────────────────────────────── */
.startseite-slider-btn {
  display: none; /* Mobile: touch-scroll, no buttons needed */
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 2px 8px rgba(41, 50, 98, 0.12),
    0 6px 20px rgba(41, 50, 98, 0.14);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  color: #293262;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.startseite-slider-btn:hover {
  background: #00a285;
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 162, 133, 0.4);
  transform: scale(1.1);
}

.startseite-slider-btn:active {
  transform: scale(0.95);
}

@media screen and (min-width: 40em) {
  .startseite-slider-btn {
    display: grid;
    place-items: center;
  }
}

/* ── Einzelne Karte (full-image, kein Caption-Streifen) ──────────────────── */
.startseite-slide {
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #dde2ec;
}

/* Farbschleier-Overlay */
.startseite-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #293262;
  opacity: 0.2;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.startseite-slide:hover::after {
  opacity: 0;
}

/* ── Bildbehälter füllt gesamte Karte ───────────────────────────────────── */
.startseite-slide-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.startseite-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.startseite-slide:hover .startseite-slide-img {
  transform: scale(1.03);
}


