/* =====================================================
   BÖHM & SCHAAF — Karriere Website
   Design Tokens & Global Styles
   ===================================================== */

:root {
  /* Colors */
  --red: #B5131D;
  --red-dark: #8E0E16;
  --red-deep: #5A080D;
  --black: #0F0F12;
  --ink: #1A1A1F;
  --graphite: #2A2A30;
  --steel: #5A5A63;
  --mute: #8B8B92;
  --line: #E5E5E8;
  --bone: #F4F2EE;
  --paper: #FAF8F5;
  --white: #FFFFFF;

  /* Type */
  --font: 'Overpass', system-ui, -apple-system, Arial, sans-serif;

  /* Layout */
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== Typography ===== */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}

h1, h2, h3, h4 {
  font-weight: 900;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.h-hero {
  font-size: clamp(44px, 7.2vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.h-section {
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.94;
}
.h-card {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
}

.lead {
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.55;
  color: var(--graphite);
  max-width: 64ch;
  text-wrap: pretty;
}

/* ===== Layout ===== */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { position: relative; }

/* ===== Button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .2s var(--ease), transform .2s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn .arrow {
  width: 22px;
  height: 12px;
  position: relative;
  transition: transform .25s var(--ease);
}
.btn .arrow::before, .btn .arrow::after {
  content: ""; position: absolute; top: 50%; right: 0;
  background: currentColor;
}
.btn .arrow::before { width: 22px; height: 2px; transform: translateY(-50%); }
.btn .arrow::after {
  width: 9px; height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  background: transparent;
  transform: translateY(-50%) rotate(45deg);
  right: -1px;
}
.btn:hover .arrow { transform: translateX(4px); }

.btn--white { background: var(--white); color: var(--red); }
.btn--white:hover { background: var(--bone); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 16px 26px;
}
.btn--ghost:hover { background: var(--ink); color: var(--white); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
  padding: 18px 0;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .nav a {
  color: var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: block;
  width: 220px;
  height: 44px;
  background: url("assets/logo-cropped.png") left center / contain no-repeat;
  flex-shrink: 0;
}
.nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav a:hover { color: var(--red); }

.header-cta {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  border: 2px solid var(--red);
  padding: 10px 18px;
  background: var(--red);
  border-radius: var(--radius);
  transition: all .2s var(--ease);
}
.header-cta:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(15,15,18,0.55) 0%,
    rgba(15,15,18,0.35) 40%,
    rgba(15,15,18,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
}
.hero h1 { margin-top: 18px; max-width: 18ch; }
.hero .lead {
  margin-top: 28px;
  color: rgba(255,255,255,0.92);
  font-size: clamp(18px, 1.4vw, 22px);
  max-width: 56ch;
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-actions .btn--ghost { color: var(--white); border-color: var(--white); }
.hero-actions .btn--ghost:hover { background: var(--white); color: var(--ink); }

.hero-marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--red);
  padding: 14px 0;
  overflow: hidden;
  z-index: 3;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(14px, 1.1vw, 16px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.hero-marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.hero-marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.hero-marquee-track span::after {
  content: "▲";
  color: rgba(255,255,255,0.5);
  font-size: 10px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.eyebrow--hero {
  color: var(--white);
}
.eyebrow--hero::before { background: var(--white); }

/* ===== Benefits ===== */
.benefits {
  padding: 120px 0;
  background: var(--white);
}
.benefits-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.benefit {
  background: var(--white);
  padding: 40px 32px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: background .3s var(--ease);
}
.benefit:hover { background: var(--bone); }
.benefit-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.18em;
}
.benefit-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  margin-bottom: 4px;
}
.benefit-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { font-size: 22px; }
.benefit p { color: var(--graphite); font-size: 15.5px; line-height: 1.55; }

/* ===== SPEDITION Principle ===== */
.principle {
  padding: 140px 0;
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.principle::before {
  content: "";
  position: absolute;
  top: 0; right: -10%;
  width: 60%; height: 100%;
  background: radial-gradient(circle at center, rgba(181,19,29,0.25), transparent 60%);
  pointer-events: none;
}
.principle-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}
.principle h2 { color: var(--white); }
.principle .lead { color: rgba(255,255,255,0.78); }
.principle .eyebrow { color: var(--white); }
.principle .eyebrow::before { background: var(--red); }

.principle-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.principle-item {
  display: grid;
  grid-template-columns: 200px 240px 1fr;
  align-items: center;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: padding .3s var(--ease);
}
.principle-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.principle-letter {
  font-family: var(--font);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(96px, 11vw, 156px);
  line-height: 0.85;
  color: var(--red);
  letter-spacing: -0.04em;
}
.principle-word {
  font-weight: 900;
  font-style: italic;
  font-size: clamp(28px, 2.6vw, 38px);
  color: var(--white);
  line-height: 1;
}
.principle-desc {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 56ch;
}
.principle-item:hover .principle-letter {
  color: var(--white);
  transition: color .3s var(--ease);
}

/* ===== Positions ===== */
.positions {
  padding: 140px 0;
  background: var(--paper);
}
.positions-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.positions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.position {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.position:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.25); }
.position-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--bone);
}
.position-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.position:hover .position-img img { transform: scale(1.06); }
.position-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
}
.position-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.position-body h3 { font-size: 22px; line-height: 1.1; }
.position-body p { font-size: 15px; color: var(--graphite); line-height: 1.5; flex: 1; }
.position-cta {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.position-cta::after {
  content: "→";
  transition: transform .2s var(--ease);
}
.position:hover .position-cta::after { transform: translateX(4px); }

/* ===== Apprenticeship ===== */
.apprentice {
  padding: 140px 0;
  background: var(--red);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.apprentice::before {
  content: "AZUBIS";
  position: absolute;
  top: -20px;
  right: -40px;
  font-size: clamp(180px, 22vw, 340px);
  font-weight: 900;
  font-style: italic;
  color: rgba(255,255,255,0.06);
  line-height: 0.8;
  letter-spacing: -0.04em;
  pointer-events: none;
}
.apprentice-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}
.apprentice h2 { color: var(--white); }
.apprentice .lead { color: rgba(255,255,255,0.92); }
.apprentice .eyebrow { color: var(--white); }
.apprentice .eyebrow::before { background: var(--white); }
.apprentice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.app-card {
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease);
}
.app-card:hover { transform: translateY(-4px); }
.app-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bone);
}
.app-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.app-card:hover .app-img img { transform: scale(1.06); }
.app-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.app-body h3 { font-size: 22px; line-height: 1.1; }
.app-body p { font-size: 15px; color: var(--graphite); line-height: 1.5; flex: 1; }
.app-cta {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.app-cta::after { content: "→"; transition: transform .2s var(--ease); }
.app-card:hover .app-cta::after { transform: translateX(4px); }

.apprentice-promise {
  margin-top: 48px;
  padding: 32px 36px;
  background: rgba(0,0,0,0.18);
  border-left: 4px solid var(--white);
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.apprentice-promise strong {
  font-style: italic;
  font-weight: 900;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.1;
}
.apprentice-promise p { font-size: 16px; color: rgba(255,255,255,0.92); line-height: 1.5; }

/* ===== About ===== */
.about {
  padding: 140px 0;
  background: var(--paper);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-visual::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 50%;
  height: 8px;
  background: var(--red);
}
.about-content h2 { margin-top: 18px; }
.about-content .lead { margin-top: 24px; }

.stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.stat-num {
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 900;
  font-style: italic;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* ===== CTA ===== */
.cta {
  background: var(--ink);
  color: var(--white);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 0, 35% 100%, 0 0);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.cta h2 { color: var(--white); }
.cta-text .lead { color: rgba(255,255,255,0.82); margin-top: 28px; max-width: 48ch; }
.cta-actions { margin-top: 40px; display: flex; gap: 18px; flex-wrap: wrap; }
.cta .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.4); }
.cta .btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card .eyebrow { color: var(--white); }
.contact-card .eyebrow::before { background: var(--red); }
.contact-name {
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  line-height: 1;
  margin-top: 8px;
}
.contact-role {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-top: 4px;
}
.contact-info {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color .2s var(--ease);
}
.contact-info a:last-child { border-bottom: none; }
.contact-info a:hover { color: var(--red); }
.contact-info svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .7; }

/* ===== Footer ===== */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  width: 200px;
  height: 36px;
  background: url("assets/logo-cropped.png") left center / contain no-repeat;
  margin-bottom: 20px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--white);
  font-style: normal;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .positions-grid { grid-template-columns: repeat(2, 1fr); }
  .apprentice-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-item { grid-template-columns: 140px 200px 1fr; gap: 28px; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav, .header-cta { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: var(--red);
    border-radius: var(--radius);
  }
  .menu-toggle span { width: 22px; height: 2px; background: var(--white); }

  .benefits, .principle, .positions, .apprentice, .about, .cta { padding: 80px 0; }

  .benefits-head, .principle-head, .positions-head, .apprentice-head, .cta-inner, .about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-inner { gap: 48px; }
  .stats { gap: 16px; }

  .benefits-grid { grid-template-columns: 1fr; }
  .positions-grid { grid-template-columns: 1fr; }
  .apprentice-grid { grid-template-columns: 1fr; }

  .principle-item {
    grid-template-columns: 100px 1fr;
    grid-template-areas: "letter word" "letter desc";
    gap: 8px 24px;
    padding: 24px 0;
  }
  .principle-letter { grid-area: letter; }
  .principle-word { grid-area: word; }
  .principle-desc { grid-area: desc; }

  .apprentice-promise { flex-direction: column; align-items: flex-start; padding: 24px; }

  .brand { width: 160px; }
  .hero { padding-top: 100px; padding-bottom: 100px; }
}
