/* Wreesmann Karriereseite - Look & Feel der bisherigen softgarden-Seite.
   Diese Datei wird vom Generator unveraendert in den Ausgabeordner kopiert. */

/* Optional: Open Sans lokal ablegen (template\fonts\OpenSans.woff2, Variable Font).
   Fehlt die Datei, greift die Ersatzschrift. Bewusst KEIN Google-Fonts-Link (DSGVO). */
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans"), url("fonts/OpenSans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --green: #00893f;      /* Wreesmann-Gruen wie auf wreesmann.com */
  --green-dark: #00702f; /* Hover */
  --dark: #18282f;
  --grey: #ebf0f4;
  --footer: #0f191e;
  --radius: 12.8px;
  --shadow: 0 32px 52px rgba(0, 0, 0, .05), 0 20px 64px rgba(0, 0, 0, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--dark);
  background: #fff;
}
img { display: block; max-width: 100%; }
a { color: var(--green); }

.container { max-width: 1260px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 840px; margin: 0 auto; }

/* ---------- Kopfzeile ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px;
}
/* Logo von wreesmann.com (SVG, Format 391 x 44) */
.header-logo img { width: 170px; height: auto; }
.burger {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 52px; height: 64px; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.burger span { display: block; width: 20px; height: 2px; background: #000; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px;
  background: var(--green); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none;
  border: 0; border-radius: 9.6px; cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--green-dark); }
.btn-large { height: 56px; padding: 0 32px; font-size: 16px; }
.nav {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: rgba(255, 255, 255, .95);
  display: none; flex-direction: column; align-items: center;
  padding: 32px 0 40px; gap: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.nav.open { display: flex; }
.nav a {
  color: var(--dark); text-decoration: none; text-transform: uppercase;
  font-size: 18px; font-weight: 600; letter-spacing: .02em;
}
.nav a:hover { color: var(--green); }

/* ---------- Hero-Slider ---------- */
/* Hoehe waechst mit der Breite (Bildformat 1440x618 wie bei softgarden), sonst
   schneidet "cover" auf breiten Bildschirmen oben und unten immer mehr ab. */
.hero { position: relative; aspect-ratio: 1440 / 618; margin-top: 64px; overflow: hidden; background: var(--dark); }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s;
}
.hero-slide.active { opacity: 1; }
.hero-title {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 60px; text-align: center;
  color: #fff; font-size: clamp(40px, 7.5vw, 96px); font-weight: 700; line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 80px; border: 0; cursor: pointer;
  background: #17282f; display: flex; align-items: center; justify-content: center;
}
.hero-arrow svg { width: 16px; height: 24px; stroke: #fff; fill: none; stroke-width: 2.5; }
.hero-prev { left: 0; }
.hero-next { right: 0; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; }
.hero-dots button { width: 23px; height: 23px; border: 0; background: none; padding: 6px; cursor: pointer; }
.hero-dots button::before {
  content: ""; display: block; width: 7px; height: 7px; margin: 2px; border-radius: 50%;
  background: rgba(255, 255, 255, .7);
}
.hero-dots button.active::before { background: var(--green); width: 9px; height: 9px; margin: 1px; }

/* ---------- Textsektionen ---------- */
.section { padding: 64px 0 80px; }
.section h2, .jobs h2 {
  margin: 0 0 24px; text-align: center; text-transform: uppercase;
  color: var(--green); font-size: clamp(30px, 4vw, 48px); font-weight: 700; line-height: 1.2;
}
.lead { margin: 0; text-align: center; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.5; }
.section-green { background: var(--green); color: #fff; }
.section-green h2 { color: #fff; }
.section-grey { background: var(--grey); }

/* ---------- Bildergalerien ---------- */
.gallery-large { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 4px; }
.gallery-large img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-large img:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
.gallery-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; }
.gallery-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Kennzahlen ---------- */
.stats { display: flex; justify-content: center; flex-wrap: wrap; padding: 48px 0; }
.stat { width: 315px; padding: 8px 16px 40px; text-align: center; }
.stat-number { font-size: 96px; font-weight: 600; line-height: 1.2; color: var(--green); }
.stat-label { font-size: 24px; font-weight: 600; }
.stat p { margin: 8px 0 0; font-size: 18px; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 48px; }
.benefit { padding: 16px 26px 48px; text-align: center; }
.benefit svg { width: 104px; height: 104px; stroke: #fff; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.benefit h4 { margin: 8px 0 0; font-size: 24px; font-weight: 400; line-height: 1.2; color: #fff; }

/* ---------- Karrierebereiche ---------- */
.careers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 16px; }
.career-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0 20px 28px; display: flex; flex-direction: column; overflow: hidden;
}
.career-img { display: block; margin: 0 -20px; overflow: hidden; }
.career-card img { width: 100%; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.career-img:hover img { transform: scale(1.04); }
.career-card h3 { margin: 24px 0 12px; font-size: 24px; font-weight: 600; line-height: 1.25; color: var(--green); text-transform: uppercase; }
.career-card p { margin: 0 0 24px; flex: 1; line-height: 24px; }
.link-arrow {
  font-weight: 600; text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.link-arrow::before { content: "\2192"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Stellenliste ---------- */
.jobs { background: var(--grey); padding: 80px 0; }
.jobs-inner { max-width: 1155px; margin: 0 auto; }
.jobs h2 { text-transform: none; font-weight: 600; margin-bottom: 40px; }
.job-filter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; margin-bottom: 16px; }
.job-filter input { grid-column: 1 / -1; }
.job-filter input, .job-filter select {
  width: 100%; height: 44px; padding: 0 11px;
  font: inherit; font-size: 14px; color: var(--dark);
  background: rgba(255, 255, 255, .45); border: 1px solid #fff; border-radius: 5.76px;
}
.job-filter select { border-width: 0 0 1px; border-radius: 0; background: none; cursor: pointer; }
.job-filter input:focus, .job-filter select:focus { outline: 0; border-color: var(--green); }
.job-filter-foot { min-height: 28px; margin-bottom: 24px; display: flex; gap: 16px; align-items: center; }
.job-preset { background: var(--green); color: #fff; border-radius: 99px; padding: 2px 12px; font-size: 14px; font-weight: 600; }
.job-reset { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--green); cursor: pointer; }
.job-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.job-tile {
  background: #fff; border-radius: 8px; box-shadow: var(--shadow); overflow: hidden;
  text-decoration: none; color: var(--dark);
  display: flex; flex-direction: column;
  transition: transform .15s;
}
.job-tile:hover { transform: translateY(-4px); }
.job-tile[hidden] { display: none; }
.job-poster { position: relative; }
.job-poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.job-new {
  position: absolute; top: 12px; right: 12px;
  background: var(--green); color: #fff; border-radius: 4px;
  padding: 2px 8px; font-size: 11px; font-weight: 700;
}
.job-tile-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; min-height: 150px; }
.job-tile-head, .job-tile-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.job-tile-foot { justify-content: flex-start; }
.job-title { flex: 1; font-size: 18px; line-height: 1.3; color: var(--green); }

/* ---------- Stellenseite ---------- */
.job-hero {
  margin-top: 64px; padding: 96px 0 72px; position: relative;
  /* 30 % von oben: bei Personenfotos bleiben die Gesichter im flachen Kopfbereich sichtbar */
  background: var(--green) center 30% / cover no-repeat; color: #fff;
}
.job-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 92, 42, .88), rgba(0, 92, 42, .35)); }
.job-hero .container { position: relative; }
.job-hero-loc { font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.job-hero h1 { margin: 8px 0 32px; max-width: 840px; font-size: clamp(30px, 4.5vw, 56px); font-weight: 700; line-height: 1.15; }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: var(--grey); }
.job-body { padding: 48px 0 80px; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.link-back { display: inline-block; margin-bottom: 32px; font-weight: 600; text-decoration: none; }
.link-back::before { content: "\2190\00a0"; }
.link-back:hover { text-decoration: underline; }
.job-block { margin-bottom: 40px; }
.job-block h2 { margin: 0 0 12px; text-align: left; text-transform: uppercase; color: var(--green); font-size: 28px; font-weight: 700; }
.job-text { font-size: 18px; }
.job-text ul { padding-left: 22px; }
.job-text li { margin-bottom: 6px; }
.job-facts {
  position: sticky; top: 96px;
  background: var(--grey); border-radius: var(--radius); padding: 28px 24px;
}
.job-facts h3 { margin: 0 0 16px; font-size: 20px; text-transform: uppercase; color: var(--green); }
.fact { padding: 10px 0; border-bottom: 1px solid #d5dde3; }
.fact:has(b:empty) { display: none; }
.fact span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #5b6b73; }
.fact b { font-weight: 600; }
.job-facts .btn { width: 100%; margin-top: 24px; }
.jobs-related { padding: 64px 0 80px; }

/* ---------- eingebettetes Bewerbungsformular (Personio) ---------- */
.apply { background: var(--grey); padding: 48px 0 64px; }
.apply[hidden] { display: none; }
.apply-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.apply-head h2 { margin: 0; color: var(--green); font-size: clamp(22px, 3vw, 32px); }
.apply-head .link-back { margin: 0; }
/* Personio zeigt oben im Formular Sprachauswahl und "Zurueck zur Stelle" (fuehrt auf die
   Personio-Seite). Diese oberste Zeile (bei allen Breiten die ersten ~77 px) wird
   weggeschnitten. Das iframe ist so hoch, dass es nicht in sich scrollt - sonst wuerde
   der abgeschnittene Streifen beim Scrollen Formularinhalt verdecken. */
.apply-frame {
  --crop: 90px;
  overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
}
.apply-frame { position: relative; }
/* Waehrend Personio laedt, steht der Button kurz tiefer (Logo-Platz) und waere sichtbar.
   Deshalb erst einblenden, wenn das Formular fertig ist (Klasse "bereit" per Skript). */
.apply-frame::before {
  content: "Bewerbungsformular wird geladen \2026"; position: absolute; left: 0; right: 0; top: 48px;
  text-align: center; color: #5b6b73; font-size: 16px;
}
#apply-frame {
  position: relative; display: block; width: 100%; height: 1900px;
  margin-top: calc(-1 * var(--crop)); border: 0; background: #fff;
  opacity: 0; transition: opacity .25s;
}
.apply-frame.bereit #apply-frame { opacity: 1; }
@media (max-width: 760px) {
  #apply-frame { height: 2400px; }
}
.apply-hint { margin: 12px 0 0; font-size: 14px; color: #5b6b73; }

/* ---------- Fusszeile ---------- */
.footer { background: var(--footer); padding: 28px 0; }
.footer .container { display: flex; gap: 24px; }
.footer a { color: #fff; font-size: 14px; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header { padding: 0 16px; }
  .benefits, .careers, .job-list { grid-template-columns: repeat(2, 1fr); }
  .gallery-row { grid-template-columns: repeat(2, 1fr); }
  .job-layout { grid-template-columns: 1fr; }
  .job-facts { position: static; }
}
@media (max-width: 640px) {
  .hero { aspect-ratio: auto; height: 380px; }
  .header .btn { height: 40px; padding: 0 12px; font-size: 13px; }
  .header-logo img { width: 120px; }
  .careers, .job-list, .job-filter { grid-template-columns: 1fr; }
  .gallery-large { grid-template-columns: 1fr; }
  .gallery-large img:first-child { aspect-ratio: 3 / 2; }
  .stat-number { font-size: 64px; }
  .benefit { padding: 12px 8px 32px; }
  .benefit svg { width: 72px; height: 72px; }
  .benefit h4 { font-size: 18px; }
}
