/* sections.css — section layouts (hero + generic section shell). */

/* ---- Generic section shell ---- */
.sec {
  padding: var(--section-y) 0;
  position: relative;
  border-top: 1px solid var(--line-soft);
}
.sec-head { max-width: var(--hero-col); margin-bottom: clamp(36px, 5vw, 52px); }
.sec h2 {
  font-weight: var(--w-semi);
  font-size: var(--text-h2);
  line-height: var(--lh-heading);
  margin-top: 16px;
}
.sec-lede { color: var(--fg-muted); margin-top: 16px; font-size: 18px; }

/* ---- Decorative Kreise pattern (signature motif) ---- */
.circles { position: absolute; pointer-events: none; color: var(--circles); z-index: 0; }
.circles .c-nodes { fill: var(--circles-node); }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 8vw, 100px);
  padding-bottom: clamp(52px, 8vw, 92px);
}
/* pulled in from the right so it reads as the hero's second column, not just a bleed */
.hero .circles { top: 50%; right: -40px; transform: translateY(-50%); width: min(600px, 50%); }
@media (max-width: 860px) { .hero .circles { top: -40px; right: -120px; transform: none; width: min(460px, 70%); opacity: .7; } }
/* hero-inner keeps the centered container (.wrap); text sits in a left column */
.hero-inner { position: relative; z-index: 1; }
.hero-inner h1,
.hero-inner .lede,
.hero-inner .cta-row,
.hero-inner .stats { max-width: var(--hero-col); }

.hero h1 {
  font-weight: var(--w-semi);
  font-size: var(--text-h1);
  line-height: var(--lh-tight);
  margin: 22px 0 0;
}
.hero .lede {
  font-size: var(--text-lede);
  color: var(--fg-muted);
  font-weight: 450;
  margin-top: 24px;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* headline accent word */
.hero h1 .u { position: relative; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .u::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: .06em;
    height: .09em;
    background: var(--green);
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    animation: draw .8s 1s both var(--ease);
  }
}
@media (prefers-reduced-motion: reduce) {
  /* static underline fallback when motion is off */
  .hero h1 .u { box-shadow: inset 0 -.09em 0 var(--green); }
}
@keyframes draw { to { transform: scaleX(1); } }

/* stats row */
.hero .stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero .stat b {
  font-family: var(--disp);
  font-weight: var(--w-semi);
  font-size: clamp(26px, 3vw, 34px);
  display: block;
  line-height: 1;
}
.hero .stat span { font-size: 14px; color: var(--fg-subtle); margin-top: 7px; display: block; }

/* ---- Warum: value cards grid ---- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }

/* ---- Über Harald ---- */
.ueber .circles { top: 40px; left: -170px; width: min(520px, 44%); }
.ueber-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
/* portrait — real premium photo, framed to match the shape language */
.portrait { margin: 0; }
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: block;
}
.portrait-cap { margin-top: 14px; font-size: var(--text-sm); line-height: 1.4; }
.portrait-cap strong { display: block; font-weight: var(--w-semi); color: var(--fg); }
.portrait-cap span { color: var(--fg-subtle); }
.portrait-cap em { font-style: normal; color: var(--green-deep); }

.ueber-story { color: var(--fg-muted); font-size: 18px; line-height: 1.7; max-width: 60ch; }
.ueber-story + .ueber-story { margin-top: 16px; }
.ueber-story strong { color: var(--fg); font-weight: var(--w-semi); }

.philo { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.philo li {
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 8px 16px;
  font-weight: var(--w-medium);
  font-size: var(--text-sm);
  color: var(--fg);
}
.pullquote {
  margin-top: 32px;
  padding-left: 22px;
  border-left: 3px solid var(--green);
  font-family: var(--disp);
  font-weight: var(--w-semi);
  font-size: clamp(21px, 3vw, 29px);
  line-height: var(--lh-snug);
  letter-spacing: var(--track-tight);
  color: var(--fg);
}
@media (max-width: 820px) {
  .ueber-grid { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: 340px; }
}

/* ---- Teaser-CTA (sales close) ---- */
.teaser-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(36px, 6vw, 72px);
}
/* faint blurred "more content behind glass" */
.teaser-ghost {
  position: absolute;
  inset: 0;
  z-index: -2;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  filter: blur(7px);
  opacity: .5;
  pointer-events: none;
}
.teaser-ghost .g-line { height: 16px; border-radius: 6px; background: var(--line); width: 100%; }
.teaser-ghost .g-line.wide { width: 55%; }
.teaser-ghost .g-line.short { width: 35%; }
.teaser-ghost .g-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.teaser-ghost .g-cards span { height: clamp(70px, 10vw, 110px); border: 1px solid var(--line); border-radius: var(--r); }
.teaser-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.teaser-content { max-width: 60ch; }
.teaser-content h2 {
  font-weight: var(--w-semi);
  font-size: var(--text-h2);
  line-height: var(--lh-heading);
  margin-top: 16px;
}
.teaser-content p { color: var(--fg-muted); font-size: 18px; line-height: 1.6; margin-top: 16px; }
.teaser-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 30px; }
.teaser-note { font-size: var(--text-sm); color: var(--fg-subtle); }

/* ---- Offene Stellen (JSON-driven list + accordion) ---- */
.jobs .circles { top: 30px; right: -70px; width: min(520px, 42%); }
.jobs-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.jobs-count { font-size: 14px; color: var(--fg-subtle); border: 1px solid var(--line); border-radius: var(--pill); padding: 7px 14px; white-space: nowrap; }
.job-list { position: relative; z-index: 1; margin-top: clamp(28px, 4vw, 40px); }

.job {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}
.job + .job { margin-top: 14px; }
.job:hover, .job.featured { border-color: var(--green-line); }

.job-head { display: flex; align-items: flex-start; gap: 22px; padding: 24px; cursor: pointer; }
.job-main { flex: 1; min-width: 0; }
.job-titlerow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.job-title { font-weight: var(--w-semi); font-size: clamp(18px, 2vw, 21px); line-height: 1.2; }
.flag {
  font-size: 11.5px; font-weight: var(--w-semi); letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary-fg); background: var(--primary); border-radius: var(--pill); padding: 3px 10px;
}
.job .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.job-teaser { margin-top: 14px; color: var(--fg-muted); font-size: 15px; max-width: 64ch; }
.job-side { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.chev { color: var(--fg-subtle); transition: transform var(--dur-slow) var(--ease); }
.job.open .chev { transform: rotate(180deg); }

/* Body: open by default (no-JS reads everything); JS collapses + animates it. */
.job-body { overflow: hidden; }
.js .job-body { max-height: 0; transition: max-height var(--dur-slow) var(--ease); }
.js .job.open .job-body { max-height: 1400px; }
.job-body-inner { padding: 4px 24px 26px; border-top: 1px solid var(--line-soft); }

.job-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 20px; }
.job-detail-grid h4, .job-offer h4 {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 12px;
}
.job-detail-grid ul, .job-offer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.job-detail-grid li, .job-offer li { position: relative; padding-left: 24px; font-size: 15px; color: var(--fg-muted); }
.job-detail-grid li::before, .job-offer li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 6px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.job-offer { margin-top: 24px; }
.job-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

@media (max-width: 760px) {
  .job-head { flex-direction: column; gap: 16px; }
  .job-side { width: 100%; justify-content: space-between; }
  .job-detail-grid { grid-template-columns: 1fr; gap: 22px; }
  .job-side .btn { flex: 1; }
}

/* ---- 404 ---- */
.error-sec {
  position: relative;
  overflow: hidden;
  border-top: none;
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: clamp(60px, 10vw, 120px) 0;
}
.error-sec .circles { top: 50%; right: -40px; transform: translateY(-50%); width: min(600px, 50%); }
.error-inner { position: relative; z-index: 1; max-width: var(--hero-col); }
.error-inner h1 { font-size: var(--text-h1); font-weight: var(--w-semi); line-height: var(--lh-tight); margin: 20px 0 0; }
.error-inner .lede { font-size: var(--text-lede); color: var(--fg-muted); margin-top: 20px; }
.error-inner .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 860px) { .error-sec .circles { top: -40px; right: -120px; transform: none; width: min(460px, 70%); opacity: .7; } }
