/* ==========================================================================
   WETABO GmbH — Karriereseite Design-System
   Markenfarben: Tiefblau #005495 / #0C3966 (Logo, wetabo.de) + Orange #F55830
   Typo: Roboto Variable (self-hosted), wie Elementor-Kit der Hauptseite
   ========================================================================== */

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #005495;
  --blue-deep: #0c3966;
  --blue-night: #082b4e;
  --blue-600: #1e5495;
  --blue-100: #e7eff7;
  --orange: #f55830;
  --orange-hover: #e04a24;
  --ink: #1b1d21;
  --gray-700: #4a5568;
  --gray-500: #6e7a8a;
  --gray-300: #b9c3cf;
  --line: #e2e8f0;
  --bg-soft: #f2f5f9;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 14px 44px rgba(8, 43, 78, 0.14);
  --shadow-soft: 0 6px 22px rgba(8, 43, 78, 0.08);
  --container: 1200px;
  --header-h: 84px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); overflow-x: clip; }

body {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.14; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.26rem; }
p { margin: 0 0 1.1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }

.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-soft { background: var(--bg-soft); }
.section-blue { background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%); color: var(--white); }
.section-blue h2, .section-blue h3 { color: var(--white); }
.section-blue p { color: #cfe0f0; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.17em; color: var(--blue); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--orange); border-radius: 2px; }
.section-blue .kicker { color: #9fc2e2; }

.section-head { max-width: 760px; margin-bottom: clamp(30px, 5vw, 54px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.lead { font-size: 1.14rem; color: var(--gray-700); }
.section-blue .lead { color: #cfe0f0; }

/* --------------------------------- Buttons -------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--orange); color: var(--white);
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  padding: 15px 30px; border: 2px solid var(--orange); border-radius: 999px;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.btn:hover { background: var(--orange-hover); border-color: var(--orange-hover); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 0.94rem; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.65); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); transform: translateY(-2px); }
.btn-blue { background: var(--blue); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

/* --------------------------------- Header --------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: var(--white);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(8, 43, 78, 0.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { width: 150px; height: auto; }

.main-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.main-nav a {
  text-decoration: none; font-weight: 600; font-size: 0.99rem; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: var(--transition);
}
.main-nav a:hover { color: var(--blue); border-bottom-color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; color: var(--blue-deep);
}
.header-phone svg { width: 18px; height: 18px; fill: var(--orange); }
.header-phone:hover { color: var(--blue); }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2.5px;
  background: var(--blue-deep); border-radius: 2px; transition: var(--transition);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -8px; }
.nav-toggle span::after { left: 0; top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(92vh, 860px); margin-top: var(--header-h);
  color: var(--white); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(76deg, rgba(8, 43, 78, 0.92) 0%, rgba(0, 84, 149, 0.62) 44%, rgba(8, 43, 78, 0.18) 72%, rgba(8, 43, 78, 0.45) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 88px); width: 100%; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #ffd9ce; margin-bottom: 18px;
}
.hero-kicker::before { content: ""; width: 28px; height: 3px; background: var(--orange); border-radius: 2px; }
.hero h1 { max-width: 15ch; }
.hero h1 .accent { color: #ffb59f; }
.hero-sub { max-width: 560px; font-size: 1.18rem; color: #e3edf7; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding: 0; list-style: none; }
.hero-pills li {
  background: rgba(255, 255, 255, 0.13); border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px); border-radius: 999px;
  padding: 7px 16px; font-size: 0.92rem; font-weight: 600;
}

/* ------------------------------- Zahlen-Band ------------------------------- */

.stats-band { background: var(--blue-night); color: var(--white); padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat-num { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; color: var(--white); line-height: 1.1; }
.stat-num .unit { font-size: 0.6em; font-weight: 700; color: #9fc2e2; }
.stat-label { font-size: 0.95rem; color: #9fc2e2; margin-top: 4px; }

/* ------------------------------ Hook-Karten ------------------------------- */

.hook-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hook-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 30px 28px; border-top: 4px solid var(--orange);
  display: flex; flex-direction: column;
}
.hook-card .pain { font-weight: 800; font-size: 1.16rem; color: var(--blue-deep); margin-bottom: 12px; line-height: 1.3; }
.hook-card p { color: var(--gray-700); margin: 0; }
.hook-card .hook-role {
  margin-top: 18px; align-self: flex-start;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-100); border-radius: 999px; padding: 5px 13px;
}

/* -------------------------------- Benefits -------------------------------- */

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit-card {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius); padding: 28px 26px; transition: var(--transition);
}
.benefit-card:hover { background: rgba(255, 255, 255, 0.13); transform: translateY(-4px); }
.benefit-card svg { width: 40px; height: 40px; fill: var(--orange); margin-bottom: 16px; }
.benefit-card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.benefit-card p { font-size: 0.99rem; margin: 0; }

.benefit-more { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.benefit-more li {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px; padding: 8px 17px; font-size: 0.93rem; font-weight: 600; color: #e3edf7;
}
.benefit-more li::before { content: "✓"; color: var(--orange); font-weight: 800; }

/* --------------------------------- Gehalt --------------------------------- */

.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pay-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 30px 28px; text-align: center;
  display: flex; flex-direction: column; gap: 6px;
}
.pay-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.pay-role { font-weight: 700; color: var(--gray-700); font-size: 1rem; }
.pay-amount { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; color: var(--blue-deep); line-height: 1.15; }
.pay-amount .unit { font-size: 0.5em; font-weight: 700; color: var(--gray-500); }
.pay-extra { font-size: 0.94rem; color: var(--gray-500); margin: 0; }
.pay-note { margin-top: 26px; text-align: center; color: var(--gray-500); font-size: 0.95rem; }

/* --------------------------------- Galerie -------------------------------- */

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a.wide { grid-column: span 2; }
.gallery a.tall { grid-row: span 2; }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px);
}
dialog.lightbox::backdrop { background: rgba(8, 43, 78, 0.88); }
dialog.lightbox img { border-radius: var(--radius); max-height: 86vh; width: auto; margin: 0 auto; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px;
  border-radius: 50%; border: 0; background: var(--orange); color: var(--white);
  font-size: 1.3rem; font-weight: 700; cursor: pointer; line-height: 1;
}

/* --------------------------------- Stellen -------------------------------- */

.job {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); margin-bottom: 16px; overflow: hidden;
}
.job summary {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 22px 26px; cursor: pointer; list-style: none;
  font-size: 1.13rem; font-weight: 700; color: var(--blue-deep);
  transition: background var(--transition);
}
.job summary::-webkit-details-marker { display: none; }
.job summary::after {
  content: ""; margin-left: auto; width: 12px; height: 12px; flex: 0 0 auto;
  border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange);
  transform: rotate(45deg); transition: transform var(--transition);
}
.job[open] summary::after { transform: rotate(-135deg); }
.job summary:hover { background: var(--bg-soft); }
.job-tag {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--blue-100); color: var(--blue); border-radius: 999px; padding: 5px 13px;
}
.job-tag.pay { background: #fdeae4; color: var(--orange-hover); }
.job-body {
  padding: 6px 26px 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px;
}
.job-body h4 { margin: 14px 0 8px; font-size: 1.02rem; color: var(--blue); }
.job-cta { grid-column: 1 / -1; margin-top: 16px; }

.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 4px 0 4px 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px;
  background: var(--blue-100); border-radius: 50%;
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: 13px; width: 8px; height: 5px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

/* --------------------------------- Ablauf --------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px;
  background: var(--orange); color: var(--white); font-weight: 800; font-size: 1.15rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: 0.97rem; margin: 0; }

/* ------------------------------- Formular --------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 60px); }

.form-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.95rem; }
.form-field .optional { color: var(--gray-500); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color var(--transition);
  width: 100%;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue);
}
.form-consent { grid-column: 1 / -1; display: flex; gap: 12px; font-size: 0.92rem; color: var(--gray-700); }
.form-consent input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--blue); }
.form-consent a { color: var(--blue); }
.form-note { grid-column: 1 / -1; font-size: 0.88rem; color: var(--gray-500); margin: 0; }
.form-status { grid-column: 1 / -1; font-weight: 600; margin: 0; display: none; }
.form-status.ok { display: block; color: #157347; }
.form-status.error { display: block; color: #c0392b; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; margin: 0; }

.apply-aside .contact-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-weight: 600; text-decoration: none; }
.apply-aside .contact-row svg { width: 22px; height: 22px; fill: var(--orange); flex: 0 0 auto; }
.apply-aside .contact-row:hover { color: var(--blue); }
.no-cv {
  margin-top: 26px; padding: 18px 22px; background: var(--blue-100);
  border-left: 4px solid var(--blue); border-radius: var(--radius-sm);
  font-size: 0.97rem; color: var(--blue-deep);
}

/* --------------------------------- Footer --------------------------------- */

.site-footer { background: var(--blue-night); color: #b9cee2; font-size: 0.97rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 60px);
  padding: clamp(48px, 7vw, 72px) 0 40px;
}
.footer-brand img { width: 150px; background: var(--white); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.site-footer h4 { color: var(--white); font-size: 1.02rem; margin-bottom: 14px; }
.footer-links, .footer-contact { margin: 0; padding: 0; list-style: none; font-style: normal; }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .footer-contact a { text-decoration: none; transition: color var(--transition); }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact span, .footer-contact a { display: block; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 20px 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--white); }

/* --------------------------- Sticky Mobile-Bar ---------------------------- */

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--white); box-shadow: 0 -6px 24px rgba(8, 43, 78, 0.18);
  transform: translateY(110%); transition: transform 0.3s ease;
}
.sticky-bar.show { transform: translateY(0); }
.sticky-bar .btn { flex: 1; padding: 13px 10px; font-size: 0.98rem; }
.sticky-bar .btn-tel { flex: 0 0 auto; background: var(--blue); border-color: var(--blue); padding: 13px 16px; }
.sticky-bar .btn-tel svg { width: 20px; height: 20px; fill: var(--white); }

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

.legal-page { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 70px)); }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal-page h2 { font-size: 1.5rem; margin-top: 2em; }
.legal-page h3 { font-size: 1.15rem; margin-top: 1.6em; }

/* --------------------------------- Reveal --------------------------------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------- Responsive ------------------------------ */

@media (max-width: 1020px) {
  .hook-grid, .benefit-grid, .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 50;
    flex-direction: column; justify-content: flex-start; gap: 6px;
    background: var(--white); padding: 30px 24px;
    transform: translateX(100%); transition: transform 0.3s ease, visibility 0.3s;
    overflow-y: auto; visibility: hidden; width: 100%;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a { font-size: 1.22rem; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-toggle { display: block; }
  .header-phone span { display: none; }
  .header-cta { display: none; }
  .split, .job-body { grid-template-columns: 1fr; }
  .sticky-bar { display: flex; }
  body { padding-bottom: 72px; }
}

@media (max-width: 640px) {
  .hook-grid, .benefit-grid, .pay-grid, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 84vh; }
  .hero-media img { object-position: 62% 30%; }
  .stats-grid { gap: 18px; }
}
