/*
Theme Name: Wathling
Theme URI: https://www.wathling.com/
Author: Wathling Logistik- und Personallösungen GmbH
Description: Individuelles Theme für Wathling — Personaldienstleistung für Produktion und Logistik in der Region Hannover. Alle Inhalte sind über den Customizer sowie über die Menüpunkte Stellenangebote, FAQ, Mitarbeiterstimmen und Referenzen im WordPress-Backend pflegbar.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietär
Text Domain: wathling
Tags: business, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

@font-face {
  font-family: 'Onest';
  src: url('assets/fonts/Onest-Variable.ttf') format('truetype-variations');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Onest', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #101519;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
a { color: #007099; text-decoration: none; }
a:hover { color: #00ADEE; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #00ADEE; color: #0B1015; }

@keyframes wDrift1 { 0% { transform: translate3d(0,0,0); } 50% { transform: translate3d(5%,-3%,0); } 100% { transform: translate3d(0,0,0); } }
@keyframes wDrift2 { 0% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-6%,4%,0); } 100% { transform: translate3d(0,0,0); } }
@keyframes wMarqueeL { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-50%,0,0); } }
@keyframes wMarqueeR { 0% { transform: translate3d(-50%,0,0); } 100% { transform: translate3d(0,0,0); } }
@keyframes wFadeUp { 0% { opacity: 0; transform: translate3d(0,10px,0); } 100% { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes wPulse { 0% { opacity: .5; transform: scale(1); } 70% { opacity: 0; transform: scale(2.2); } 100% { opacity: 0; transform: scale(2.2); } }

/* Screenreader-Text, WordPress-Standard */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0;
  overflow: hidden; position: absolute !important; word-wrap: normal !important;
}

/* Inhalte, die im Gutenberg-Editor geschrieben werden (Blogbeiträge, Rechtstexte) */
.w-prose { font-size: 17px; line-height: 1.78; color: #22303B; }
.w-prose > * { margin: 0 0 20px; }
.w-prose > *:last-child { margin-bottom: 0; }
.w-prose h2 { margin: 44px 0 0; font-size: clamp(23px, 2.7vw, 32px); line-height: 1.16; letter-spacing: -.03em; font-weight: 700; color: #101519; text-wrap: balance; scroll-margin-top: 100px; }
.w-prose h3 { margin: 32px 0 0; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.25; letter-spacing: -.02em; font-weight: 700; color: #101519; text-wrap: balance; }
.w-prose h2 + *, .w-prose h3 + * { margin-top: 18px; }
.w-prose p { text-wrap: pretty; }
.w-prose ul, .w-prose ol { padding-left: 22px; }
.w-prose li { margin-bottom: 10px; line-height: 1.7; }
.w-prose strong { font-weight: 700; color: #101519; }
.w-prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.w-prose img, .w-prose figure { border-radius: 16px; overflow: hidden; }
.w-prose figure { margin: 32px 0; }
.w-prose figcaption { margin-top: 10px; font-size: 14px; color: #5C6874; }
.w-prose blockquote {
  margin: 32px 0; padding: 24px 26px;
  background: #F4F7F9; border-radius: 16px;
  font-size: 18px; line-height: 1.6; color: #101519;
}
.w-prose blockquote p:last-child { margin-bottom: 0; }
.w-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.w-prose th, .w-prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #EAF0F4; }
.w-prose th { font-weight: 700; color: #101519; background: #F7FAFC; }
.w-prose hr { border: 0; border-top: 1px solid #EAF0F4; margin: 40px 0; }

/* ------------------------------------------------------------------
   Hover-Zustände
   Inline-Styles können kein :hover, deshalb hier gebündelt.
   ------------------------------------------------------------------ */
[data-hover="kopf"]:hover        { background: #F1F5F8; color: #007099; }
[data-hover="mobil"]:hover       { background: #F1F5F8; }
[data-hover="fuss"]:hover        { color: #00ADEE; }
[data-hover="link"]:hover        { color: #007099; }
[data-hover="cta-hell"]:hover    { background: #0B1015; color: #ffffff; }
[data-hover="cta-weiss"]:hover   { background: #ffffff; color: #0B1015; }
[data-hover="cta-dunkel"]:hover  { background: #00ADEE; border-color: #00ADEE; color: #0B1015; }
[data-hover="rand"]:hover        { border-color: #101519; }
[data-hover="rand-hell"]:hover   { border-color: #ffffff; }
[data-hover="wa"]:hover          { background: #101519; color: #ffffff; }
[data-hover="hell"]:hover        { color: #00ADEE; }
[data-hover="karte"]              { transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s; }
[data-hover="karte"]:hover        { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(11,16,21,.32); }
[data-hover="karte"]:hover img    { transform: scale(1.04); }
[data-hover="karte"] img          { transition: transform .7s cubic-bezier(.16,1,.3,1); }

/* ------------------------------------------------------------------
   Sprunglink für Tastaturnutzer
   ------------------------------------------------------------------ */
.w-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 14px 20px; background: #0B1015; color: #ffffff;
  font-size: 15px; font-weight: 600; border-radius: 0 0 12px 0;
}
.w-skip:focus { left: 0; color: #ffffff; }

/* ------------------------------------------------------------------
   Navigation: Umschaltpunkt zwischen Desktop und Mobil
   ------------------------------------------------------------------ */
.w-burger { display: none; }

@media (min-width: 961px) {
  .w-mobilmenu, .w-mobilbar { display: none !important; }
}

@media (max-width: 960px) {
  header nav { display: none !important; }
  .w-header-cta { display: none !important; }

  .w-burger {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 48px; height: 48px; margin-left: auto;
    background: #ffffff; border: 1px solid #DCE4EA; border-radius: 12px; cursor: pointer;
  }
  .w-burger span {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: #101519;
    transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .2s;
  }
  .w-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .w-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .w-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .w-mobilmenu nav { display: flex !important; }

  .w-mobilbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: flex; gap: 10px; padding: 12px 12px 16px;
    background: rgba(255,255,255,.96); border-top: 1px solid #E4EBF0;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  body { padding-bottom: 84px; }
}

/* ------------------------------------------------------------------
   Stellen-Karussell auf der Startseite
   Die Karten liegen gestapelt übereinander, JavaScript setzt
   Position und Tiefe. Ohne JavaScript bleibt die erste Karte lesbar.
   ------------------------------------------------------------------ */
.w-jobkarte {
  position: absolute; top: 0; left: 50%;
  width: min(380px, 100%); height: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  background: #ffffff; border: 1px solid #EAF0F4; border-radius: 22px;
  box-shadow: 0 32px 64px -36px rgba(11,16,21,.34);
  transform: translateX(-50%);
  transition: transform .55s cubic-bezier(.16,1,.3,1), opacity .45s, filter .45s;
  will-change: transform;
}
.w-jobkarte a { text-decoration: none; }
.w-jobkarte h3 { color: #101519; }
.w-jobkarte:hover { box-shadow: 0 40px 72px -36px rgba(11,16,21,.42); }

/* ------------------------------------------------------------------
   Einblenden beim Scrollen
   ------------------------------------------------------------------ */
[data-reveal] { opacity: 0; }
[data-reveal].w-sichtbar { animation: wFadeUp .8s cubic-bezier(.16,1,.3,1) forwards; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; animation: none !important; }
  [data-marquee] { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; padding-bottom: 0; }
  .w-noprint, .w-burger, .w-mobilmenu, .w-mobilbar { display: none !important; }
}
