/* ==========================================================
   Steynhart LLC — Website Styles
   Schriften lokal eingebunden (keine Drittanbieter, DSGVO-konform)
   ========================================================== */

@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  /* Steynhart */
  --ink: #2B313B;          /* Logofarbe */
  --ink-deep: #1E232B;
  --ink-soft: #4A515D;
  --stone: #F5F3EF;
  --stone-2: #ECE8E1;
  --line: #DDD8CF;
  --muted: #6E7480;
  --white: #FFFFFF;
  --bronze: #A88A5E;

  /* Operations Engineering (CI) */
  --oe-navy: #1C2548;
  --oe-blue: #2E55E4;
  --oe-light: #7089E6;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }

.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { font-size: clamp(32px, 4.2vw, 52px); }
.section-head p { margin-top: 24px; font-size: 19px; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px;
  font: 500 14px/1 "Poppins", sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--stone-2); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-deep); }
.btn-oe { background: var(--oe-blue); color: var(--white); }
.btn-oe:hover { background: #2448cc; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); }
.brand img { height: 38px; width: auto; }
.brand .logo-dark { display: none; }
.brand span { font-weight: 500; font-size: 17px; letter-spacing: 0.3em; }
.nav { display: flex; gap: 36px; align-items: center; }
.nav a {
  font-size: 13px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: rgba(255,255,255,.82); transition: color .2s;
}
.nav a:hover { color: var(--white); }
.nav .nav-cta { padding: 11px 20px; border: 1px solid rgba(255,255,255,.4); }
.nav .nav-cta:hover { border-color: var(--white); }

.site-header.scrolled, .site-header.solid { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled .brand, .site-header.solid .brand { color: var(--ink); }
.site-header.scrolled .logo-light, .site-header.solid .logo-light { display: none; }
.site-header.scrolled .logo-dark, .site-header.solid .logo-dark { display: block; }
.site-header.scrolled .nav a, .site-header.solid .nav a { color: var(--ink-soft); }
.site-header.scrolled .nav a:hover, .site-header.solid .nav a:hover { color: var(--ink); }
.site-header.scrolled .nav-cta, .site-header.solid .nav-cta { border-color: var(--ink) !important; color: var(--ink) !important; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--ink-deep); color: var(--white); overflow: hidden;
}
.hero-pattern { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.hero-pattern svg { position: absolute; right: -8%; top: 50%; transform: translateY(-50%); width: min(70vw, 900px); height: auto; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(168,138,94,.10), transparent 55%),
              linear-gradient(180deg, transparent 60%, rgba(0,0,0,.25));
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; }
.hero h1 {
  font-size: clamp(42px, 6.6vw, 88px); font-weight: 400; max-width: 14ch; letter-spacing: -0.025em;
}
.hero h1 em { font-style: normal; color: var(--bronze); }
.hero-lead { max-width: 560px; margin: 36px 0 48px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.72); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 36px; z-index: 1;
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.45);
}
.hero-meta .container { display: flex; justify-content: space-between; gap: 24px; padding-top: 0; padding-bottom: 0; }

/* ---------- Kennzahlen ---------- */
.facts { background: var(--ink); color: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 56px 32px 56px 0; border-right: 1px solid rgba(255,255,255,.12); }
.fact + .fact { padding-left: 32px; }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-size: clamp(34px, 3.6vw, 48px); font-weight: 400; letter-spacing: -0.02em; line-height: 1; margin-bottom: 14px; }
.fact span { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.5; display: block; }

/* ---------- Unternehmen ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.about-grid h2 { font-size: clamp(32px, 4.2vw, 52px); }
.about-text p { font-size: 19px; color: var(--ink-soft); }
.about-text p:first-child { font-size: 22px; color: var(--ink); font-weight: 400; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line); }
.principle { padding: 40px 32px 0 0; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle .num { font-size: 13px; letter-spacing: .2em; color: var(--bronze); font-weight: 500; }
.principle h3 { font-size: 22px; margin: 18px 0 14px; }
.principle p { font-size: 16px; color: var(--muted); margin: 0; }

/* ---------- Geschäftsbereiche ---------- */
.divisions { background: var(--stone); }
.division-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.division {
  position: relative; background: var(--white); padding: 44px 36px 40px;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.division:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(30,35,43,.35); }
.division .tag { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.division h3 { font-size: 24px; margin: 18px 0 16px; }
.division p { font-size: 16px; color: var(--ink-soft); flex: 1; }
.division .more { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; margin-top: 16px; }

.division.featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  background: var(--oe-navy); color: var(--white); border-color: var(--oe-navy); padding: clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.division.featured .tag { color: var(--oe-light); }
.division.featured h3 { font-size: clamp(28px, 3.2vw, 40px); }
.division.featured p { color: rgba(255,255,255,.75); }
.division.featured .oe-logo { height: 34px; width: auto; margin-bottom: 28px; }
.division.featured .featured-visual { display: flex; justify-content: center; }
.division.featured .featured-visual img { width: min(260px, 70%); opacity: .95; }

/* ---------- Operations Engineering Spotlight ---------- */
.oe { background: var(--oe-navy); color: var(--white); position: relative; overflow: hidden; }
.oe::before {
  content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%;
  right: -300px; top: -300px; background: radial-gradient(circle, rgba(46,85,228,.35), transparent 65%);
}
.oe .container { position: relative; }
.oe .eyebrow { color: var(--oe-light); }
.oe-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.oe-head h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 500; }
.oe-head .byline { margin-top: 20px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.oe-head p { font-size: 19px; color: rgba(255,255,255,.75); margin: 0; }

.systems { display: grid; grid-template-columns: 1fr 1.15fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.sys {
  border: 1px solid rgba(112,137,230,.35); background: rgba(255,255,255,.03);
  padding: 30px 28px; border-radius: 4px;
}
.sys .k { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--oe-light); }
.sys h4 { font-size: 19px; font-weight: 500; margin: 12px 0 10px; }
.sys p { font-size: 15px; color: rgba(255,255,255,.65); margin: 0; line-height: 1.6; }
.sys-core {
  grid-column: 2; grid-row: 1 / span 2;
  background: var(--oe-blue); border-color: var(--oe-blue);
  display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 44px 36px;
  box-shadow: 0 30px 80px -30px rgba(46,85,228,.8);
}
.sys-core .k { color: rgba(255,255,255,.8); }
.sys-core h4 { font-size: 26px; }
.sys-core p { color: rgba(255,255,255,.88); font-size: 16px; }
.sys-core img { width: 56px; margin: 0 auto 22px; }
.systems .s1 { grid-column: 1; grid-row: 1; }
.systems .s2 { grid-column: 3; grid-row: 1; }
.systems .s3 { grid-column: 1; grid-row: 2; }
.systems .s4 { grid-column: 3; grid-row: 2; }

.oe-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid rgba(255,255,255,.14); }
.oe-step { padding: 36px 32px 0 0; }
.oe-step + .oe-step { padding-left: 32px; border-left: 1px solid rgba(255,255,255,.14); }
.oe-step .k { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--oe-light); }
.oe-step h4 { font-size: 20px; font-weight: 500; margin: 14px 0 10px; }
.oe-step p { font-size: 15px; color: rgba(255,255,255,.65); margin: 0; }

.oe-cta { margin-top: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.14); }
.oe-cta p { margin: 0; font-size: 18px; color: rgba(255,255,255,.8); }
.oe-cta a.url { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--oe-light); }

/* ---------- Gründer ---------- */
.founder-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.portrait {
  position: sticky; top: 120px;
  aspect-ratio: 4 / 5; background: var(--stone-2); position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.portrait img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.portrait .placeholder img { width: 38%; opacity: .14; }
.portrait figcaption { position: relative; z-index: 1; width: 100%; padding: 28px 30px; background: linear-gradient(transparent, rgba(30,35,43,.75)); color: var(--white); }
.portrait figcaption strong { display: block; font-weight: 500; font-size: 20px; }
.portrait figcaption span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.founder-text h2 { font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 36px; }
.founder-text p { font-size: 18px; color: var(--ink-soft); }
.founder-text .lead { font-size: 22px; color: var(--ink); font-weight: 400; }
.quote {
  margin: 48px 0; padding: 8px 0 8px 32px; border-left: 2px solid var(--bronze);
  font-size: clamp(21px, 2.2vw, 26px); font-weight: 300; line-height: 1.5; color: var(--ink);
}
.timeline { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.timeline li b { font-weight: 500; letter-spacing: .06em; color: var(--bronze); }
.timeline li span { color: var(--ink-soft); }

/* ---------- Kontakt ---------- */
.contact { background: var(--ink-deep); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 8vw, 120px); align-items: end; }
.contact h2 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 400; }
.contact p.lead { margin: 28px 0 40px; font-size: 19px; color: rgba(255,255,255,.7); max-width: 560px; }
.contact-details { border-top: 1px solid rgba(255,255,255,.14); }
.contact-details div { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-details small { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 6px; }
.contact-details a, .contact-details address { font-style: normal; color: var(--white); text-decoration: none; font-size: 16px; line-height: 1.6; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding-top: 32px; padding-bottom: 32px; }
.site-footer .brand img { height: 28px; }
.site-footer .brand span { font-size: 13px; color: rgba(255,255,255,.85); }
.site-footer nav { display: flex; gap: 28px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.65); letter-spacing: .08em; }
.site-footer a:hover { color: var(--white); }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: 170px 0 120px; background: var(--white); }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 400; margin-bottom: 16px; }
.legal .sub { color: var(--muted); font-size: 15px; margin-bottom: 64px; }
.legal h2 { font-size: 22px; margin: 56px 0 18px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 17px; font-weight: 500; margin: 32px 0 10px; }
.legal p, .legal address { font-size: 16px; color: var(--ink-soft); font-style: normal; }
.legal .card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.legal .card { background: var(--stone); padding: 28px 30px; border: 1px solid var(--line); }
.legal .card small { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--bronze); margin-bottom: 12px; font-weight: 500; }
.legal .card address, .legal .card p { margin: 0; color: var(--ink); line-height: 1.7; }
.legal a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(3) { padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .division-grid { grid-template-columns: 1fr 1fr; }
  .systems { grid-template-columns: 1fr 1fr; }
  .sys-core { grid-column: 1 / -1; grid-row: 1; }
  .systems .s1, .systems .s2, .systems .s3, .systems .s4 { grid-column: auto; grid-row: auto; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; color: var(--white); }
  .site-header.scrolled .menu-toggle, .site-header.solid .menu-toggle, .site-header.open .menu-toggle { color: var(--ink); }
  .nav {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 12px var(--gutter) 28px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .site-header.open { background: var(--white); }
  .site-header.open .brand { color: var(--ink); }
  .site-header.open .logo-light { display: none; }
  .site-header.open .logo-dark { display: block; }
  .site-header.open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { color: var(--ink) !important; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .about-grid, .founder-grid, .contact-grid, .oe-head { grid-template-columns: 1fr; }
  .principles, .oe-steps { grid-template-columns: 1fr; }
  .principle, .oe-step { padding: 32px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .oe-step { border-bottom-color: rgba(255,255,255,.14); }
  .division.featured { grid-template-columns: 1fr; }
  .division.featured .featured-visual { display: none; }
  .portrait { position: relative; top: 0; max-width: 420px; }
  .hero-meta { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand span { font-size: 15px; letter-spacing: .24em; }
  .facts-grid, .division-grid, .systems, .legal .card-grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 36px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .fact:first-child { border-top: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .btn { width: 100%; justify-content: center; }
}

/* Overflow-Schutz für schmale Viewports */
html, body { overflow-x: clip; }
.division.featured > * { min-width: 0; }
.division-grid > * { min-width: 0; }
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; }
  .division.featured .btn-ghost { font-size: 12px; letter-spacing: .06em; }
}
h1, h2, h3, h4 { overflow-wrap: break-word; }
.division h3, .sys h4, .oe-step h4 { hyphens: auto; -webkit-hyphens: auto; }

/* Gründerfoto (freigestellt) */
.portrait { background: linear-gradient(160deg, var(--stone) 0%, var(--stone-2) 55%, #D9D3C8 100%); }
.portrait img.photo { object-fit: contain; object-position: center bottom; top: 6%; height: 94%; }
.contact-grid.single { grid-template-columns: 1fr; max-width: 820px; }
.division.featured h3 { hyphens: manual; -webkit-hyphens: manual; }
.facts-grid { grid-template-columns: repeat(2, 1fr); }
.fact:nth-child(2) { border-right: 0; }
@media (max-width: 600px) { .facts-grid { grid-template-columns: 1fr; } }
