/* Marzin Engineering – Website
   Farben und Regeln aus dem CI-Handbuch. Keine externen Schriften (Datenschutz):
   Ersatzschrift laut CI ist Arial Narrow, dann Arial. */

:root {
  --brand: #D7263D;
  --brand-strong: #A81C2E;
  --ink: #111214;
  --ink-muted: #4A4B4F;
  --surface: #FFFFFF;
  --surface-alt: #F1F1EF;
  --line: #D4D4D2;
  --font: "Barlow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

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

/* Kopf */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 12px 0; }
.nav a:hover { color: var(--brand-strong); }

/* Typo */
.label {
  font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-strong); margin: 0 0 16px;
}
h1, h2, h3 { font-style: italic; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 { font-weight: 900; font-size: clamp(40px, 7vw, 68px); }
h2 { font-weight: 800; font-size: clamp(28px, 4vw, 38px); margin-bottom: 32px; }
h3 { font-weight: 800; font-size: 24px; margin: 16px 0 8px; }
.lead { font-size: 20px; color: var(--ink-muted); max-width: 32em; margin: 24px 0 32px; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 24px; border-radius: 4px; font-weight: 700; font-size: 17px; text-decoration: none;
  border: 2px solid var(--ink); color: var(--ink); background: transparent;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }

/* Hero mit roter Fläche im Markenwinkel (-11°) */
.hero { background: var(--surface-alt); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 30%;
  background: var(--brand); transform: skewX(-11deg); transform-origin: bottom right;
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: 1.15fr 1fr;
  align-items: center; gap: 24px; padding-top: 72px; padding-bottom: 72px;
}
.hero-img { mix-blend-mode: multiply; width: 100%; max-width: 480px; justify-self: end; }

/* Abschnitte */
section { padding: 88px 0; }
.alt { background: var(--surface-alt); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid3 p, .grid4 p { color: var(--ink-muted); margin: 0; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
#leistungen h2 { margin-bottom: 40px; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; } }
@media (max-width: 600px) { .grid4 { grid-template-columns: 1fr; } }
.icon { width: 32px; height: 32px; stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: square; stroke-linejoin: miter; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; }
.contact dt { font-weight: 700; }
.contact dd { margin: 0; }
.note { color: var(--ink-muted); font-size: 15px; }

/* Strömungssimulation */
#simulation h2 { margin-bottom: 16px; }
.sim-intro { color: var(--ink-muted); max-width: 44em; margin: 0 0 28px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs button {
  font: inherit; font-weight: 700; font-size: 15px; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: 4px; cursor: pointer;
}
.tabs button:hover { background: var(--surface); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.stage { position: relative; background: #fff; border: 1px solid var(--line); }
.stage img { width: 100%; }
.chip {
  position: absolute; top: 12px; font-weight: 700; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 10px; color: #fff;
}
.chip-l { left: 12px; background: var(--ink); }
.chip-r { right: 12px; background: var(--brand); }
.stage-note { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--ink-muted); }
.stage-note > span { max-width: 40em; }
.scale { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.scale-bar { width: 200px; height: 10px; background: linear-gradient(90deg,#30123b,#4662d7,#36aaf9,#1ae4b6,#72fe5e,#c8ef34,#faba39,#f66b19,#ca2a04,#7a0403); }
@media (max-width: 600px) {
  .chip { font-size: 11px; padding: 4px 6px; top: 6px; }
  .chip-l { left: 6px; } .chip-r { right: 6px; }
  .scale-bar { width: 140px; }
}

/* Produkte */
.page-intro { padding: 64px 0 56px; }
.page-intro h1 { margin-bottom: 0; }
.page-intro .lead { margin-bottom: 32px; }
.nav a[aria-current="page"] { color: var(--brand-strong); }
.notice {
  display: flex; gap: 16px; align-items: flex-start; max-width: 860px;
  background: #FFF3D6; color: #6B4300; padding: 20px 24px; border-left: 4px solid #6B4300;
}
.notice .icon { stroke: #6B4300; flex: none; margin-top: 2px; }
.notice p { margin: 6px 0 0; font-size: 15px; }
.products-section h2 { margin-bottom: 32px; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.card img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; }
.card-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 21px; margin: 0; }
.card-body p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.card-body .meta { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.card-body p:last-of-type { margin-bottom: 12px; }
.disclaimer { margin-top: 32px; }
.scope { font-size: 14px; border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 12px; }
.scope strong { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.scope ul { margin: 0; padding-left: 18px; color: var(--ink-muted); }
.scope li { margin: 2px 0; }

/* Projekt-Kopf auf der Produktseite */
.project-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; margin-bottom: 40px; }
.project-head h2 { margin-bottom: 16px; }
.project-text { color: var(--ink-muted); margin: 0 0 24px; max-width: 38em; }
.project-head .notice { max-width: none; }

/* Galerie in der Produktkarte */
.card-img { position: relative; display: block; padding: 0; border: 0; background: #fff; cursor: zoom-in; width: 100%; }
.card-img img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; }
.img-count {
  position: absolute; right: 10px; bottom: 10px; background: rgba(17,18,20,.8); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 8px;
}
.render-note, .fig-note {
  position: absolute; left: 10px; bottom: 10px; font-size: 11px; letter-spacing: .06em;
  color: var(--ink-muted); background: rgba(255,255,255,.75); padding: 2px 6px;
}
.thumbs { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; }
.thumb { flex: none; width: 52px; height: 52px; padding: 0; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.on { border-color: var(--brand); }

/* Großansicht */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(17,18,20,.94);
  display: flex; align-items: center; justify-content: center; padding: 56px 64px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: #fff; }
.lightbox figcaption { color: #D4D4D2; font-size: 14px; margin-top: 12px; }
.lightbox button {
  position: absolute; background: transparent; border: 0; color: #fff; cursor: pointer;
  font-size: 44px; line-height: 1; width: 56px; height: 56px; font-family: inherit;
}
.lb-close { top: 8px; right: 8px; font-size: 28px !important; }
.lb-prev { left: 4px; top: 50%; margin-top: -28px; }
.lb-next { right: 4px; top: 50%; margin-top: -28px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.lightbox button:hover { color: #ff6b7c; }

/* Projektseite: Vergleich */
.sec-intro { color: var(--ink-muted); max-width: 46em; margin: -16px 0 32px; }
.fig-grid { display: grid; gap: 20px; margin: 0 0 40px; }
.fig-grid-3 { grid-template-columns: repeat(3, 1fr); }
.fig-grid-2 { grid-template-columns: repeat(2, 1fr); }
.fig { margin: 0; min-width: 0; }
.fig button { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
.fig img { width: 100%; }
.fig figcaption { font-size: 14px; color: var(--ink-muted); margin-top: 8px; }
.fig-wide { grid-column: 1 / -1; max-width: 820px; }
.legend { display: block; margin-top: 6px; line-height: 1.9; }
.legend i { display: inline-block; width: 14px; height: 14px; margin: 0 6px 0 16px; vertical-align: -2px; }
.legend i:first-child { margin-left: 0; }
.compare { margin-bottom: 40px; max-width: 760px; }
.compare h3 { margin-top: 0; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; background: #fff; }
.spec th, .spec td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.spec th:first-child, .spec td:first-child { text-align: left; }
.spec thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.spec td:last-child { font-weight: 700; color: var(--brand-strong); }
.fine { font-size: 13px; color: var(--ink-muted); }
@media (max-width: 820px) {
  .fig-grid-3, .fig-grid-2 { grid-template-columns: 1fr; }
  .spec { font-size: 13px; } .spec th, .spec td { padding: 8px 6px; }
}

/* Projektseite */
.project-hero { background: var(--surface-alt); padding: 56px 0; }
.project-hero h1 { margin: 0 0 20px; }
.project-hero .lead { margin: 0 0 28px; }
.facts-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts-list li { padding-left: 20px; position: relative; color: var(--ink-muted); }
.facts-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--brand); transform: skewX(-11deg); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-col h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 16px; }
.two-col p { color: var(--ink-muted); }
.path { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 0; }
.path span { background: #fff; border: 1px solid var(--line); padding: 6px 10px; font-weight: 600; font-size: 14px; }
.path i { color: var(--brand); font-style: normal; font-weight: 800; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.info { background: #fff; border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.info h3 { margin: 0; font-size: 20px; }
.info p { margin: 0; color: var(--ink-muted); font-size: 15px; flex: 1; }
.info .soon { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--surface-alt); color: var(--ink-muted); padding: 4px 8px; }
.info a.more { font-weight: 700; }
@media (max-width: 820px) {
  .project-head, .two-col { grid-template-columns: 1fr; gap: 28px; }
  .lightbox { padding: 56px 8px; }
  .lb-prev, .lb-next { top: auto !important; bottom: 8px; margin-top: 0 !important; }
}

/* Rechtstexte */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 6vw, 52px); margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal h3 { font-size: 19px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal address { font-style: normal; }
.legal .stand { color: var(--ink-muted); font-size: 15px; margin-top: 48px; }

/* Fuß */
.site-footer { background: var(--ink); color: #D4D4D2; padding: 48px 0 32px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer img { height: 34px; width: auto; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; gap: 24px; }

@media (max-width: 1000px) {
  .products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .products { grid-template-columns: 1fr; }
}

/* Handy */
@media (max-width: 820px) {
  :root { --gutter: 16px; }
  .nav { gap: 16px; }
  .nav a { font-size: 15px; }
  .brand img { height: 32px; }
  .hero::before { width: 40%; top: auto; height: 300px; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 24px; }
  .hero-img { max-width: 300px; justify-self: center; }
  section { padding: 64px 0; }
  .grid3, .contact { grid-template-columns: 1fr; gap: 32px; }
  .page-intro { padding: 40px 0; }
  .notice { padding: 16px; }
}
@media (max-width: 420px) {
  .nav a[href$="#leistungen"] { display: none; }
}
