@font-face { font-family: "FreightSans"; src: url(assets/FreightSans-Medium.otf) format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "FreightText"; src: url(assets/FreightText-Book.otf) format("opentype"); font-weight: 400; font-display: swap; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: #1c1a17; font-family: "FreightSans", Helvetica, sans-serif; font-weight: 500; -webkit-font-smoothing: antialiased; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-on { opacity: 1; }
a { color: #1c1a17; text-decoration: none; }
a:hover { color: #b2996f; }
::selection { background: #c0a97d; color: #fff; }
#einblickeSlider::-webkit-scrollbar { display: none; }
/* Beim Einrasten bündig mit dem Seitenrand (Titel und Pfeile), nicht mit dem Bildschirmrand */
#einblickeSlider { scroll-padding-inline: 40px; }
.h1:hover{color: #1c1a17 !important}
.h2:hover{background: #c0a97d !important}
.h3:hover{border-color: #1c1a17 !important}
.h4:hover{background: #262119 !important}
.h5:hover{border-color: #c0a97d !important;color: #c0a97d !important}
.h6:hover{color: #fff !important}

/* ---------------------------------------------------------------
   Responsive: Ergänzung zum Design-Master (Desktop bleibt 1:1).
   Inline-Styles des Masters werden hier gezielt übersteuert.
   --------------------------------------------------------------- */
.nav-toggle { display: none; }

/* Testimonial-Videos: Klick auf Vorschaubild startet das Video */
.play { cursor: pointer; transition: background 200ms ease; }
.play:hover, .play:focus-visible { background: rgba(28,26,23,0.32) !important; outline: none; }
.testimonial-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #1c1a17; }


/* Kopfzeile fixieren: Im Master hebt overflow-x: hidden am äusseren Container
   das sticky der Kopfzeile auf. clip schneidet gleich ab, ohne sticky zu brechen.
   (Browser ohne clip-Support ignorieren die Regel und verhalten sich wie der Master.) */
body > div:first-child { overflow-x: clip !important; }
/* Anker landen bündig unter der Kopfzeile (Kopfzeile Desktop = 93px) */
section[id] { scroll-margin-top: 0; }

@media (max-width: 1100px) {
  .tagline { display: none !important; }
}

@media (max-width: 1024px) {
  .wrap { padding-top: 88px !important; padding-bottom: 88px !important; }
  .grid2 { gap: 56px !important; }
  .benefits { grid-template-columns: repeat(3, 1fr) !important; gap: 36px 0 !important; background: transparent !important; }
  .benefit { padding: 0 28px 0 0 !important; }
}

@media (max-width: 860px) {
  /* Kopfzeile Handy/Tablet = 81px */

  /* Menü */
  .hdr { padding: 14px 20px !important; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; border: 0; background: transparent; cursor: pointer; }
  .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); }
  .nav { display: none !important; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch !important; gap: 0 !important; padding: 4px 20px 20px; background: #fff; border-bottom: 1px solid #eae5dc; font-size: 17px !important; }
  .nav.open { display: flex !important; }
  .nav a { padding: 15px 0; border-bottom: 1px solid #eae5dc; }
  .nav a.h2 { margin-top: 18px; padding: 15px 20px !important; border-bottom: 0; text-align: center; }

  /* Spalten untereinander */
  .grid2 { grid-template-columns: 1fr !important; }
  .ueber { padding-bottom: 88px !important; }
  .ueber-img { transform: none !important; }
  .cols3 { grid-template-columns: 1fr 1fr !important; }
  .form { margin-top: 0 !important; }

  /* Stellenliste */
  .job { grid-template-columns: 1fr auto !important; gap: 6px 16px !important; padding: 24px 4px !important; }
  .job-title, .job-meta { grid-column: 1; }
  .job-arrow { grid-column: 2; grid-row: 1 / span 3; font-size: 22px; }
}

@media (max-width: 640px) {
  .wrap, .ueber { padding: 64px 20px !important; }
  .wrap-sm { padding: 48px 20px !important; }
  .h2t { font-size: 30px !important; }

  /* Hero */
  .hero { height: auto !important; min-height: 0 !important; }
  .hero-in { padding: 400px 16px 16px !important; box-sizing: border-box; }
  .hero-card { padding: 28px 24px !important; }
  .hero-title { font-size: 34px !important; }
  .hero-lead { font-size: 18px !important; margin-bottom: 26px !important; }

  .benefits { grid-template-columns: 1fr !important; gap: 28px !important; }
  .benefit { padding: 0 !important; }
  .stats { gap: 16px !important; }
  .stats > div > div:first-child { font-size: 28px !important; }
  .cols3, .cols2, .values { grid-template-columns: 1fr !important; }
  .cols3 { gap: 24px !important; }
  .cols2 { gap: 32px !important; }
  .value { padding: 28px 24px 32px !important; }
  .facts { grid-template-columns: 100px 1fr !important; }
  .job-title { font-size: 20px !important; }

  /* Einblicke-Slider */
  .einblicke { padding: 64px 0 !important; }
  .einblicke-head { padding: 0 20px 28px !important; }
  #einblickeSlider { padding: 0 20px !important; gap: 20px !important; scroll-padding-inline: 20px; }
  .slide-a, .slide-b, .slide-c, .slide-d { height: 420px !important; }
  /* Pro Blättern genau ein Block, bündig mit dem Seitenrand, ohne Vorschau aufs nächste Bild */
  .slide-a, .slide-b, .slide-c, .slide-d { flex-basis: calc(100vw - 40px) !important; }
  .slide-a > div:last-child, .slide-c, .slide-d > div:first-child { gap: 12px !important; }

  /* Kontakt */
  .form { padding: 28px 20px !important; }
  .names2 { grid-template-columns: 1fr !important; }

  /* Footer */
  .foot { padding: 40px 20px !important; flex-direction: column; align-items: flex-start !important; gap: 28px !important; }
  .foot-links { flex-wrap: wrap; gap: 14px 24px !important; }
}

/* XADUNO. Stellenliste (data-unstyled): sieht aus wie die Stellen-Zeilen im Master.
   Markup vom Widget: .xad-jobs > a.xad-job-card > .xad-job-logo + .xad-job-body(.xad-job-title + .xad-job-meta) + .xad-job-arrow */
.xad-jobs { display: grid; gap: 1px; background: #34302a; border-bottom: 1px solid #34302a; }
.xad-job-card { display: grid; grid-template-columns: 1fr 40px; gap: 24px; align-items: center; padding: 30px 8px; background: #1c1a17; color: #fff; text-decoration: none; transition: background 200ms ease; }
.xad-job-card:hover { background: #262119; color: #fff; }
.xad-job-logo { display: none; }
.xad-job-body { display: grid; grid-template-columns: 1fr 384px; gap: 24px; align-items: center; min-width: 0; }
.xad-job-title { font-family: 'FreightSans', Helvetica, sans-serif; font-size: 24px; line-height: 1.3; }
.xad-job-meta { display: grid; grid-template-columns: 200px 160px; gap: 24px; font-size: 16px; line-height: 1.5; color: #a59d90; }
.xad-job-meta-item { display: block; }
.xad-job-meta-item svg { display: none; }
.xad-job-arrow { display: flex; justify-content: flex-end; padding-right: 8px; color: #c0a97d; }
.xad-job-arrow svg { width: 18px; height: 18px; }
.xad-empty { margin: 0; padding: 30px 8px; background: #1c1a17; font-size: 17px; color: #a59d90; }
.xad-skeleton { height: 92px; background: #1c1a17; animation: xad-pulse 1.3s ease-in-out infinite; }
@keyframes xad-pulse { 50% { opacity: .6; } }

@media (max-width: 860px) {
  .xad-job-card { gap: 16px; padding: 24px 4px; }
  .xad-job-body { grid-template-columns: 1fr; gap: 6px; }
  .xad-job-meta { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 640px) {
  .xad-job-title { font-size: 20px; }
}

/* Mitarbeiterstimmen: Namen unten bündig, auch wenn die Zitate unterschiedlich lang sind */
.cols3 > figure { display: flex; flex-direction: column; }
.cols3 > figure > blockquote { flex: 1; }

/* ---------------------------------------------------------------
   Aufbau wie vetschpartner.ch: Logo und Menü fix, Hero (Bild oben,
   Text unten) steht still, der Inhalt schiebt sich wie ein Blatt
   darüber und überdeckt dabei das Logo. Unten wird ein Projektfoto frei.
   --------------------------------------------------------------- */
.vp-logo { position: fixed; top: 10px; left: 20px; z-index: 25; display: block; }
.vp-logo img { display: block; height: 40px; width: auto; }
body.nav-open .vp-logo { z-index: 95; }
.vp-menu { position: fixed; top: 0; right: 0; z-index: 100; width: 52px; height: 50px; padding: 0 16px; border: 0; background: rgba(165,165,165,0.83); cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.vp-menu span { display: block; height: 2px; background: #fff; transition: transform 200ms ease, opacity 200ms ease; }
.vp-menu[aria-expanded="true"] { background: transparent; }
.vp-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.vp-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.vp-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.vp-nav { position: fixed; inset: 0; z-index: 90; background: #bfa97c; color: #fff; overflow-y: auto; display: none; }
.vp-nav.open { display: block; }
.vp-nav-in { max-width: 1240px; margin: 0 auto; padding: 170px 40px 60px; }
.vp-nav-links a { display: block; font-family: 'FreightText', Georgia, serif; font-size: 50px; line-height: 1.8; color: #fff; }
.vp-nav-links a:hover { opacity: 0.75; }
.vp-nav-info { margin-top: 24px; font-size: 16px; line-height: 1.6; }
.vp-nav-info p { margin: 0 0 22px; }
.vp-nav-info a { color: #fff; border-bottom: 1px solid currentColor; margin-right: 10px; }

.vp-hero { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100svh; z-index: 20; background: #fff; display: flex; flex-direction: column; }
/* Bilder bekommen den grösseren Teil, der Text darunter nur so viel Platz wie nötig */
.vp-hero-img { position: relative; height: max(50%, calc(100% - 320px)); overflow: hidden; background: #1c1a17; }
/* Leichter Verlauf oben, damit das weisse Logo auf hellen Bildern lesbar bleibt */
.vp-hero-img::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; background: linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0)); pointer-events: none; }
.vp-hero-text { flex: 1; overflow: hidden; }
.vp-hero-in { max-width: 1240px; margin: 0 auto; padding: 34px 40px 0; box-sizing: border-box; }
.vp-hero-in > p:first-child { margin-bottom: 14px !important; }
.vp-hero-in h1 { margin-bottom: 18px !important; }
.vp-hero-in .hero-lead { font-size: 20px !important; line-height: 1.5 !important; margin-bottom: 18px !important; max-width: 640px !important; }
.vp-link { display: inline-block; font-size: 20px; color: #1c1a17; border-bottom: 1px solid currentColor; }
.vp-down { display: block; width: max-content; margin-top: 14px; font-size: 30px; line-height: 1; color: #1c1a17; }
.vp-hero-spacer { height: 100vh; height: 100svh; }
.vp-main { position: relative; z-index: 30; background: #fff; }
.vp-hero.is-gone { visibility: hidden; }

.vp-footer { background: #fff; }
.vp-footer-in { max-width: 1240px; margin: 0 auto; padding: 100px 40px; display: flex; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; font-size: 20px; line-height: 1.5; }
.vp-footer-in p { margin: 0; }
.vp-footer-in a { color: inherit; }
.vp-footer-links a { border-bottom: 1px solid currentColor; margin-left: 20px; }
.vp-foot-img { position: fixed; left: 0; right: 0; bottom: 0; height: 260px; z-index: 10; display: block; overflow: hidden; }
.vp-foot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-foot-img span { position: absolute; left: 20px; bottom: 16px; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.25; }
.vp-foot-spacer { height: 260px; }

@media (max-width: 860px) {
  .vp-logo { top: 12px; left: 16px; }
  .vp-logo img { height: 30px; }
  .vp-nav-in { padding: 110px 20px 40px; }
  .vp-nav-links a { font-size: 34px; line-height: 1.7; }
  .vp-hero-img { height: 42%; }
  .vp-hero-in { padding: 28px 20px 0; }
  .vp-hero-in h1 { font-size: 34px !important; }
  .vp-hero-in .hero-lead { font-size: 18px !important; }
  .vp-link { font-size: 18px; }
  .vp-footer-in { padding: 60px 20px; flex-direction: column; font-size: 18px; }
  .vp-footer-links a { margin: 0 20px 0 0; }
  .vp-foot-img, .vp-foot-spacer { height: 180px; }
}
