/* chain2supply – Designsystem, Entwurf 2
   Leitidee: Das Kettenglied aus dem Logo IST die Formsprache.
   Stadion-Formen (Rechteck mit Halbkreis-Enden) für Bilder, Buttons, Rahmen;
   ineinandergreifende Glieder für Hero und Ablauf. Kräftige Flächen in den Logofarben,
   breite Grotesk (Archivo Expanded), Weiß statt Creme. */

:root {
  --ink: #14273C;
  --ink-deep: #0D1B2B;
  --rust: #A63D2A;
  --rust-light: #D0634C;
  --cloud: #EDF0F3;
  --cloud-2: #DDE3E9;
  --slate: #5A6B7D;
  --white: #FFFFFF;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);

  --c2s-a: var(--ink);
  --c2s-b: var(--rust);
  --c2s-bg: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; font-stretch: 115%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Logo (unverändert aus Entwurf 1) ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 46px; height: 27px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark { font: 600 22px/1 "IBM Plex Sans", var(--font); letter-spacing: -0.02em; color: var(--c2s-a); }
.wordmark b { font-weight: 600; color: var(--c2s-b); }
.brand-sub { font: 500 9.5px/1 "IBM Plex Sans", var(--font); letter-spacing: 0.24em; color: var(--slate); margin-top: 6px; }
.on-dark { --c2s-a: var(--white); --c2s-b: var(--rust-light); --c2s-bg: var(--ink-deep); }
.on-dark .brand-sub { color: #8D9BAA; }

/* Mini-Glied als Aufzählungszeichen */
.glyph { display: inline-block; width: 22px; height: 13px; flex: none; }

/* ---------- Buttons in Gliedform ---------- */
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px; border-radius: 999px;
  font: 600 15.5px/1 var(--font); text-decoration: none; border: 2px solid var(--rust); background: var(--rust); color: var(--white);
  transition: background .15s, color .15s, border-color .15s; cursor: pointer; }
.pill:hover { background: var(--ink); border-color: var(--ink); }
.pill.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.pill.line:hover { background: var(--ink); color: var(--white); }
.pill.light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.pill.light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Kopf ---------- */
header.site { position: sticky; top: 0; z-index: 30; background: var(--white); box-shadow: 0 1px 0 var(--cloud-2); }
header.site .wrap { display: flex; align-items: center; height: 84px; gap: 40px; }
nav.main { display: flex; align-items: center; gap: 30px; margin-left: auto; }
nav.main a { text-decoration: none; font-weight: 500; font-size: 15.5px; }
nav.main a:not(.pill):hover { color: var(--rust); }
.lang { display: flex; gap: 2px; background: var(--cloud); border-radius: 999px; padding: 4px; font-size: 13px; font-weight: 600; }
.lang a { text-decoration: none; padding: 5px 10px; border-radius: 999px; color: var(--slate); }
.lang a[aria-current] { background: var(--white); color: var(--ink); }
.nav-toggle, .nav-btn { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--ink-deep); color: var(--white); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 0.95fr 1.2fr; gap: 48px; align-items: center; min-height: min(78vh, 720px); padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(38px, 4.4vw, 66px); line-height: 1.02; letter-spacing: -0.025em; }
.hero h1 .r { color: var(--rust-light); }
.hero p.lead { font-size: 19px; color: #B9C4CF; max-width: 46ch; margin: 28px 0 38px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-links { width: 100%; height: auto; overflow: visible; }

/* Leiste unter dem Hero */
.facts-bar { background: var(--rust); color: var(--white); }
.facts-bar .wrap { display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.facts-bar span { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }
.facts-bar .glyph { --c2s-a: var(--white); --c2s-b: var(--ink-deep); --c2s-bg: var(--rust); }

/* ---------- Abschnitte ---------- */
section { padding: clamp(72px, 10vw, 136px) 0; }
.head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 72px); }
.head h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.06; letter-spacing: -0.02em; }
.head p { font-size: 19px; color: var(--slate); margin: 22px 0 0; max-width: 60ch; }

/* Warum: große Aussage links, Versprechen rechts */
.why .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.why .head { margin: 0; position: sticky; top: 130px; }
.promise { padding: 34px 0; border-bottom: 2px solid var(--cloud); }
.promise:first-child { padding-top: 0; }
.promise h3 { display: flex; align-items: center; gap: 16px; font-size: 26px; margin-bottom: 12px; }
.promise h3 .glyph { width: 34px; height: 20px; }
.promise p { color: var(--slate); margin: 0; padding-left: 50px; }

/* Brücke: drei Glieder nebeneinander */
.bridge { background: var(--cloud); }
.chain3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.station { position: relative; padding: 44px 48px 40px; background: var(--white); border-radius: 999px; text-align: center;
  border: 3px solid var(--ink); margin-right: -36px; z-index: 1; min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
.station:nth-child(2) { border-color: var(--rust); background: var(--rust); color: var(--white); z-index: 2; }
.station:last-child { margin-right: 0; }
.station .where { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.station:nth-child(2) .where { color: #F3C9BE; }
.station h3 { font-size: 26px; margin: 10px 0 12px; }
.station p { font-size: 15.5px; color: var(--slate); max-width: 28ch; margin: 0 auto; }
.station:nth-child(2) p { color: #F7E3DD; }

/* Leistungen: abwechselnde Reihen mit Gliedbildern */
.services .list { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 104px); }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.svc:nth-child(even) .svc-img { order: 2; }
.svc-img { position: relative; isolation: isolate; }
.svc-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 999px; background: var(--cloud); }
.svc-img::after { content: ""; position: absolute; inset: 16% -5% -12% 34%; border: 3px solid var(--rust); border-radius: 999px; z-index: -1; }
.svc:nth-child(even) .svc-img::after { inset: -12% 34% 16% -5%; border-color: var(--ink); }
.svc-img.contain img { object-fit: contain; padding: 3% 16%; }
.svc h3 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 16px; }
.svc p { color: var(--slate); font-size: 18px; }
.svc ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc li { padding: 8px 16px; border-radius: 999px; background: var(--cloud); font-size: 14.5px; font-weight: 500; }

/* Teile: Kacheln mit Gliedfenster */
.parts { background: var(--ink-deep); color: var(--white); }
.parts .head p { color: #AEB9C5; }
.part-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.part .win { background: var(--white); border-radius: 999px; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; transition: transform .2s; }
.part:hover .win { transform: translateY(-4px); }
.part .win img { height: 82%; width: 78%; object-fit: contain; }
.part h3 { font-size: 20px; margin: 18px 0 4px 10px; }
.part p { color: #AEB9C5; font-size: 15px; margin: 0 0 0 10px; }

/* Ablauf: Kette aus vier Gliedern */
.process-chain { width: 100%; height: auto; display: block; margin-bottom: 36px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps h3 { font-size: 21px; margin-bottom: 10px; }
.steps p { color: var(--slate); font-size: 16px; margin: 0; }

/* Qualität: geteilte Fläche */
.quality { padding: 0; }
.q-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.q-photo { background: url("../img/borrowed/e-system.jpg") center / cover no-repeat; position: relative; }
.q-photo .badge { position: absolute; left: var(--gutter); bottom: 40px; background: var(--white); border-radius: 999px; padding: 16px 30px 16px 20px;
  display: flex; align-items: center; gap: 16px; font-weight: 600; box-shadow: 0 10px 30px rgba(13,27,43,.18); }
.q-photo .badge .glyph { width: 40px; height: 23px; }
.q-text { background: var(--cloud); padding: clamp(56px, 7vw, 104px) clamp(24px, 6vw, 96px); }
.q-text h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; margin-bottom: 18px; }
.q-text > p { color: var(--slate); font-size: 18px; margin-bottom: 36px; }
.q-list { list-style: none; padding: 0; margin: 0; }
.q-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-top: 2px solid var(--cloud-2); }
.q-list li .glyph { width: 30px; height: 18px; margin-top: 4px; --c2s-bg: var(--cloud); }
.q-list b { display: block; font-size: 17px; }
.q-list span { color: var(--slate); font-size: 15.5px; }

/* Über uns */
.about .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about .head { margin-bottom: 28px; }
.about blockquote { margin: 0 0 32px; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.45; font-weight: 500;
  padding: 26px 36px; background: var(--cloud); border-radius: 48px; }
.about .rows div { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 2px solid var(--cloud); font-size: 16px; }
.about .rows dt { color: var(--slate); }
.about .rows dd { margin: 0; font-weight: 600; text-align: right; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.member .ph { aspect-ratio: 4 / 5; border-radius: 999px; background: var(--cloud); display: grid; place-items: center; color: var(--slate); font-size: 14px; font-weight: 600; }
.member:nth-child(2) .ph, .member:nth-child(3) .ph { background: var(--cloud-2); }
.member h3 { font-size: 17px; margin: 14px 0 2px; text-align: center; }
.member p { color: var(--slate); font-size: 14.5px; margin: 0; text-align: center; }

/* Kontakt */
.contact { background: var(--rust); color: var(--white); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); }
.contact h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; }
.contact .sub { color: #F6DCD5; font-size: 19px; margin: 22px 0 36px; max-width: 40ch; }
.contact address { font-style: normal; font-size: 17px; line-height: 1.7; }
.contact address a { color: var(--white); font-weight: 600; }
form.rfq { background: var(--white); color: var(--ink); border-radius: 40px; padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.rfq label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; }
form.rfq .full { grid-column: span 2; }
form.rfq input, form.rfq textarea { font: 400 16px var(--font); border: 2px solid var(--cloud-2); border-radius: 999px; padding: 12px 18px; color: var(--ink); background: var(--white); outline: none; }
form.rfq textarea { border-radius: 24px; min-height: 110px; resize: vertical; }
form.rfq input:focus, form.rfq textarea:focus { border-color: var(--ink); }
form.rfq .drop { border: 2px dashed var(--cloud-2); border-radius: 999px; padding: 16px; text-align: center; color: var(--slate); font-weight: 400; }
form.rfq .send { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
form.rfq small { color: var(--slate); font-weight: 400; }

/* Fuß */
footer.site { background: var(--ink-deep); color: #8D9BAA; padding: 64px 0 36px; font-size: 15px; }
footer.site .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
footer.site h4 { margin: 0 0 14px; color: var(--white); font-size: 15px; }
footer.site a { text-decoration: none; display: block; padding: 3px 0; }
footer.site a:hover { color: var(--white); }
footer.site a.brand { display: inline-flex; }
footer.site .bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; margin-top: 20px; border-top: 1px solid #22344A; font-size: 13.5px; }
.note { color: var(--rust-light); }

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  nav.main { gap: 22px; }
  .chain3 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .station { margin: 0 0 -30px; min-height: 0; padding: 48px; }
  .station:last-child { margin-bottom: 0; }
  .part-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  header.site .wrap { height: 72px; }
  nav.main { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px var(--gutter) 24px; box-shadow: 0 12px 24px rgba(13,27,43,.12); }
  nav.main a:not(.pill) { padding: 14px 0; border-bottom: 2px solid var(--cloud); }
  nav.main .pill { margin-top: 18px; justify-content: center; }
  nav.main .lang { align-self: flex-start; margin-top: 16px; }
  nav.main .lang a { border-bottom: 0; padding: 5px 10px; }
  .nav-toggle:checked ~ nav.main { display: flex; }
  .nav-btn { display: inline-flex; margin-left: auto; cursor: pointer; padding: 8px; }
  .nav-btn svg { width: 40px; height: 23px; }
  .hero .wrap, .why .wrap, .svc, .q-split, .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .hero .wrap { min-height: 0; padding-top: 48px; padding-bottom: 40px; }
  .why .head { position: static; }
  .svc:nth-child(even) .svc-img { order: 0; }
  .q-photo { min-height: 360px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .facts-bar .wrap { flex-direction: column; gap: 10px; }
  .station { padding: 40px 30px; }
  .part-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .promise p { padding-left: 0; }
  .about .rows div { flex-direction: column; gap: 2px; }
  .about .rows dd { text-align: left; }
  form.rfq { grid-template-columns: 1fr; border-radius: 28px; }
  form.rfq .full { grid-column: span 1; }
  footer.site .wrap { grid-template-columns: 1fr; }
  .brand svg { width: 40px; height: 23px; }
  .wordmark { font-size: 20px; }
}

/* Freigestellte Produktfotos: Weiß geht in die Gliedfläche über */
.svc-img.contain::before { content: ""; position: absolute; inset: 0; background: var(--cloud); border-radius: 999px; z-index: -1; }
.svc-img.contain::after { z-index: -2; }
.svc-img.contain img { background: none; mix-blend-mode: multiply; }

/* Rechtliche Seiten */
.legal-page { padding: clamp(56px, 8vw, 104px) 0; }
.legal-page h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.06; margin-bottom: 12px; }
.legal-page .lead { color: var(--slate); font-size: 18px; max-width: 60ch; margin-bottom: 40px; }
.legal-page .box { background: var(--cloud); border-radius: 40px; padding: clamp(28px, 4vw, 48px); max-width: 820px; }
.legal-page h2 { font-size: 20px; margin: 30px 0 8px; }
.legal-page h2:first-child { margin-top: 0; }
.legal-page p { margin: 0; color: var(--ink); }
.legal-page .todo { background: #F6DCD5; color: var(--rust); border-radius: 999px; padding: 2px 10px; font-size: 14px; font-weight: 600; }
.legal-page .hint { margin-top: 28px; color: var(--slate); font-size: 15px; max-width: 70ch; }

/* Deutsch: längere Wörter */
html[lang="de"] .hero h1 { font-size: clamp(34px, 3.7vw, 56px); }

/* Chinesisch: Noto Sans SC als Schrift, keine Laufweiten-Tricks */
html[lang="zh-Hans"] body, html[lang="zh-Hans"] .pill, html[lang="zh-Hans"] input, html[lang="zh-Hans"] textarea { font-family: "Archivo", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3 { letter-spacing: 0.01em; }
html[lang="zh-Hans"] .hero h1 { font-size: clamp(36px, 4.2vw, 64px); line-height: 1.15; }
html[lang="zh-Hans"] p, html[lang="zh-Hans"] .q-list span { line-height: 1.75; }
