/* exsos Landingpage Bewerber Polen
   Gestaltung angelehnt an exsos.com und das exsos Identitets- og designmanual:
   - Überschriften und Bedienelemente Sharp Sans No1 (Book und Bold), Fließtext Adobe Caslon Pro
   - Tan als heller Grund, große Flächen in Flat Green und Dark Green, Text darauf in Tan
   - eckige Buttons, eng gesetzte Überschriften, schräge Abschnittskanten
   - Icons weiß in Flat-Green-Kreisen
   Schriften lokal ausgeliefert (DSGVO), Untermenge Latin + Latin Extended-A (Polnisch). */

@font-face {
  font-family: 'Sharp Sans';
  src: url('/assets/fonts/sharpsans-book.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sharp Sans';
  src: url('/assets/fonts/sharpsans-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Caslon';
  src: url('/assets/fonts/caslon-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Caslon';
  src: url('/assets/fonts/caslon-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Caslon';
  src: url('/assets/fonts/caslon-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark: #00302f;
  --darker: #031d1c; /* Fußleiste wie auf exsos.com */
  --flat: #0f9f7e;
  --flat-hover: #0b8669;
  --light-green: #aac9ab;
  --sand: #f8f7ec;
  --tan: #f2e4d2;
  --white: #ffffff;
  --text: #00302f;
  --muted: #2f5150;
  --line: rgba(0, 48, 47, 0.16);
  --error: #b3261e;

  --font: 'Sharp Sans', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Caslon', Georgia, 'Times New Roman', serif;
  --surface: var(--sand); /* Karten und Formular auf Tan */
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --slant: clamp(28px, 5vw, 72px); /* Höhe der schrägen Kante */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--tan);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.15rem + 0.2vw, 21px);
  line-height: 1.5;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

figure {
  margin: 0;
}

h1,
h2,
h3,
.btn,
.lang-switch,
.chips,
.hero-sub,
.tile-label,
.after,
.since,
.step-list .num,
.points li::before,
.apply-form,
.site-footer,
.sticky-cta {
  font-family: var(--font);
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(30px, 1.4rem + 3.2vw, 66px);
}
h2 {
  font-size: clamp(32px, 1.6rem + 2vw, 52px);
}
h3 {
  font-size: clamp(20px, 1.05rem + 0.45vw, 24px);
  line-height: 1.15;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--flat);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* schmale Spalte, aber linksbündig mit den anderen Abschnitten */
.wrap.narrow > * {
  max-width: 820px;
}

.section {
  padding: var(--section) 0;
}

.intro {
  font-size: 1.12em;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2em;
}

/* Abschnitt mit schräger Oberkante wie auf exsos.com: links tiefer, rechts höher */
.slant {
  position: relative;
  margin-top: calc(var(--slant) * -1);
  padding-top: calc(var(--section) + var(--slant));
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 56px;
  padding: 0.85em 1.7em;
  border: 2px solid transparent;
  border-radius: 0;
  font: 700 1em/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary {
  background: var(--flat);
  color: var(--tan);
}
.btn-primary:hover {
  background: var(--flat-hover);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-primary[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.btn-dark {
  background: var(--dark);
  color: var(--tan);
}
.btn-dark:hover {
  background: var(--darker);
}
.btn-ghost {
  background: transparent;
  color: var(--dark);
  border-color: rgba(0, 48, 47, 0.35);
}
.btn-ghost:hover {
  border-color: var(--dark);
}

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

.site-header {
  background: var(--white);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo img {
  width: clamp(140px, 14vw, 180px);
  height: auto;
}
.lang-switch {
  font-size: 0.85em;
  text-decoration: none;
  padding: 0.5em 0.9em;
  border: 1.5px solid rgba(0, 48, 47, 0.3);
}
.lang-switch:hover {
  border-color: var(--dark);
}

/* ---------- Hero: klares Bild mit schräger Unterkante, Textblock sitzt auf der Kante ---------- */

.hero {
  position: relative;
  background: var(--dark);
  color: var(--tan);
}
.hero picture {
  display: block;
}
.hero-img {
  width: 100%;
  height: clamp(300px, 52vw, 640px);
  object-fit: cover;
  object-position: 60% 55%;
  /* gleiche Schräge wie bei den Abschnitten: links tiefer, rechts höher */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.hero-panel {
  position: relative;
  margin-top: clamp(-220px, -14vw, -64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.hero-box {
  position: relative;
  max-width: 720px;
  padding: clamp(28px, 4vw, 52px);
  background: var(--flat);
  color: var(--tan);
}
.hero h1 {
  color: var(--tan);
  max-width: 17ch;
}
.hero-sub {
  font-size: clamp(19px, 1.1rem + 0.5vw, 25px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--dark);
  max-width: 34ch;
  margin-bottom: 1.4em;
}

/* Die vier Fakten: schlichte Zeile unter dem Block, ohne Kästen */
.chips {
  list-style: none;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 14px 48px;
}
.chips li {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.25;
}
.chips li::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--flat);
}
@media (max-width: 640px) {
  .chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    font-size: 0.92em;
  }
}

/* ---------- Vier Fragen: nur Text, wie die Textblöcke auf exsos.com ---------- */

.cards {
  display: grid;
  gap: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 72px);
}
@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.card h3 {
  color: var(--flat);
}
.card p {
  margin: 0;
}

/* ---------- Berufe: wie exsos.com/de/jobs – Flat Green, dunkle Kreise, Icons in Tan ---------- */

.jobs {
  background: var(--flat);
  color: var(--tan);
}
.jobs h2 {
  color: var(--tan);
}
.jobs .intro {
  color: var(--tan);
}
.tiles {
  list-style: none;
  margin: 0 0 2.5em;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 16px;
}
@media (min-width: 760px) {
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px 24px;
  }
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.tile-icon {
  display: grid;
  place-items: center;
  width: clamp(104px, 12vw, 140px);
  height: clamp(104px, 12vw, 140px);
  border-radius: 50%;
  background: var(--dark);
  color: var(--tan);
}
.tile-icon svg {
  width: 56%;
  height: 56%;
  stroke-width: 1.6;
}
.tile-label {
  font-weight: 400;
  font-size: 1em;
  line-height: 1.25;
  hyphens: auto;
}
.after {
  max-width: 52ch;
  font-weight: 700;
  margin: 0;
}

/* ---------- Über exsos ---------- */

.about-grid {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}
.about-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-text p {
  max-width: 44ch;
}
.about-text .since {
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1.1;
  color: var(--flat);
}
.video {
  margin-top: clamp(32px, 5vw, 56px);
}
.video video {
  width: 100%;
  background: var(--dark);
}

/* ---------- Wo ist der Haken: ruhige Liste auf Flat Green ---------- */

.catch {
  background: var(--flat);
  color: var(--tan);
}
.catch h2,
.catch h3,
.catch .intro {
  color: var(--tan);
}
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: p;
}
.points li {
  counter-increment: p;
  position: relative;
  padding: 28px 0 24px 72px;
  border-top: 1px solid rgba(242, 228, 210, 0.35);
}
.points li:last-child {
  border-bottom: 1px solid rgba(242, 228, 210, 0.35);
}
.points li::before {
  content: counter(p, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 26px;
  font-weight: 700;
  font-size: 1.5em;
  line-height: 1;
  color: var(--dark);
}
.points p {
  margin: 0;
}

/* ---------- Ablauf (Dark Green) ---------- */

.steps {
  background: var(--dark);
  color: var(--tan);
}
.steps h2 {
  color: var(--tan);
}
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
}
@media (min-width: 760px) {
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .step-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.step-list li {
  border-top: 2px solid rgba(242, 228, 210, 0.3);
  padding-top: 20px;
}
.step-list .num {
  display: block;
  font-size: clamp(64px, 3rem + 3vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--flat);
  margin-bottom: 14px;
}
.step-list h3 {
  color: var(--tan);
}
.step-list p {
  margin: 0;
  color: rgba(242, 228, 210, 0.85);
}

/* ---------- Formular: ohne Kasten, ruhig wie eine Liste ---------- */

.apply-form {
  position: relative;
}
.progress {
  display: none;
  height: 4px;
  background: rgba(0, 48, 47, 0.12);
  margin-bottom: 32px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--flat);
  transition: width 0.3s ease;
}
.is-stepped .progress {
  display: block;
}

.step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.apply-form:not(.is-stepped) .step + .step {
  margin-top: 48px;
}
.apply-form:not(.is-stepped) .step-nav {
  display: none;
}
.apply-form:not(.is-stepped) .step:last-child .step-nav {
  display: flex;
}
.apply-form:not(.is-stepped) .step:last-child [data-back] {
  display: none;
}
.step legend {
  padding: 0;
  margin-bottom: 20px;
  outline: none;
}
.step-count {
  margin: 0 0 8px;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--flat);
}
.step .q {
  display: block;
  font-size: clamp(24px, 1.3rem + 0.8vw, 32px);
  font-weight: 700;
  line-height: 1.08;
}
.hint {
  font-size: 0.88em;
  color: var(--muted);
  margin: 6px 0 0;
}
.step > .hint {
  margin: -10px 0 16px;
}

/* Antworten als Liste mit Trennlinien, kein Kasten je Antwort */
.options {
  display: grid;
  column-gap: 40px;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.option {
  position: relative;
  display: block;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.option span {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 400;
  line-height: 1.3;
}
.option span::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(0, 48, 47, 0.45);
  transition: border-color 0.12s, box-shadow 0.12s, background-color 0.12s;
}
.option:hover span::before {
  border-color: var(--flat);
}
.option input:checked + span {
  font-weight: 700;
}
.option input:checked + span::before {
  border-color: var(--flat);
  background: var(--flat);
  box-shadow: inset 0 0 0 4px var(--tan);
}
.option input:focus-visible + span {
  outline: 3px solid var(--flat);
  outline-offset: 2px;
}
/* Anrufzeit: drei Antworten nebeneinander */
.options-inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 16px;
  border-top: 0;
}
.options-inline .option {
  border-bottom: 2px solid var(--line);
}

.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}
.step-nav .btn-primary {
  margin-left: auto;
}
.btn-submit {
  flex: 1 1 auto;
  max-width: 480px;
}

.field {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field > label,
.field > legend {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  padding: 0;
}
.opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9em;
}
/* Eingabefelder nur mit Unterstrich */
.field input[type='text'],
.field input[type='tel'],
.field input[type='email'] {
  width: 100%;
  min-height: 52px;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid rgba(0, 48, 47, 0.35);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: 400 1.05em/1.3 var(--font);
}
.field input:focus {
  outline: none;
  border-bottom-color: var(--flat);
}
.field input[aria-invalid='true'] {
  border-bottom-color: var(--error);
}
.field input[type='file'] {
  width: 100%;
  padding: 10px 0;
  font: 400 0.95em var(--font);
}
.field input[type='file']::file-selector-button {
  margin-right: 14px;
  padding: 10px 18px;
  border: 0;
  background: var(--dark);
  color: var(--tan);
  font: 700 0.9em var(--font);
  cursor: pointer;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92em;
  line-height: 1.45;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--flat);
}
.check a {
  color: var(--flat-hover);
}

.error {
  color: var(--error);
  font-size: 0.9em;
  font-weight: 700;
  margin: 10px 0 0;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Danke / Absage / Rechtliches ---------- */

.message-main,
.legal-main {
  padding: clamp(48px, 10vw, 120px) 0;
  min-height: 55vh;
}
.message-main p {
  font-size: 1.15em;
  max-width: 46ch;
}
.message-main .btn {
  margin-top: 1em;
}
.prose h1 {
  font-size: clamp(32px, 1.6rem + 1.8vw, 48px);
  hyphens: auto;
  overflow-wrap: break-word;
}
.prose h2 {
  font-size: 1.2em;
  line-height: 1.2;
  margin-top: 2em;
}

/* ---------- Footer (wie exsos.com: Dark Green mit großem Icon, dunkle Fußleiste) ---------- */

.site-footer {
  background: var(--dark);
  color: var(--tan);
  font-size: 0.95em;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(40px, 6vw, 64px);
}
.footer-logo {
  width: clamp(96px, 10vw, 128px);
  height: auto;
}
.site-footer address {
  font-style: normal;
  line-height: 1.5;
}
.footer-links {
  display: flex;
  gap: 10px;
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-bottom {
  background: var(--darker);
  text-align: center;
  padding: 1.4rem var(--gutter) 1.6rem;
  font-size: 0.85rem;
  color: rgba(242, 228, 210, 0.75);
}
.credit {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ---------- Sticky-Button (Handy) ---------- */

.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  background: var(--flat);
  color: var(--tan);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(0, 48, 47, 0.55);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.sticky-cta.is-hidden {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }
}
@media (max-width: 899px) {
  .home .footer-bottom {
    padding-bottom: 92px;
  }
}

/* ---------- Nach oben (wie exsos.com: weißer Kreis mit Pfeil) ---------- */

.to-top {
  position: fixed;
  right: 50px;
  bottom: 50px;
  z-index: 19;
  display: grid;
  place-items: center;
  width: 59px;
  height: 59px;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  /* auf hellem Grund sonst kaum sichtbar */
  filter: drop-shadow(0 0 1.5px rgba(0, 48, 47, 0.45));
  transition: opacity 0.25s ease, transform 0.15s ease;
}
.to-top:hover {
  transform: translateY(-2px);
}
.to-top.is-hidden {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 899px) {
  .to-top {
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }
  .to-top svg {
    width: 21px;
    height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
