:root {
  --blue: #0074be;
  --blue-dark: #00497e;
  --navy: #071426;
  --ink: #1c2228;
  --muted: #626c76;
  --surface: #f4f7fa;
  --line: #dce3e9;
  --white: #fff;
  --max: 1500px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
a { color: inherit; }

.site-header {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 18px clamp(22px, 4vw, 70px);
  background: #fff;
}
.cmg-logo { width: min(560px, 52vw); height: auto; }
.language-switch { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid #cbd2d9; border-radius: 12px; padding: 9px 13px; background: #fafafa; box-shadow: 0 2px 8px rgba(5,18,35,.06); }
.language-option { display: inline-flex; align-items: center; gap: .45rem; border: 0; background: transparent; color: #1b2530; font-weight: 800; cursor: pointer; padding: 4px; opacity: .55; }
.language-option.is-active { opacity: 1; color: var(--blue-dark); }
.language-divider { color: #99a2aa; }
.flag { width: 30px; height: 20px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.flag-nl { background: linear-gradient(#ae1c28 0 33.33%, #fff 33.33% 66.66%, #21468b 66.66%); }
.flag-de { background: linear-gradient(#000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%); }

.usp-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--blue-dark); color: #fff; min-height: 104px; }
.usp-item { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px 24px; position: relative; }
.usp-item + .usp-item::before { content: ""; position: absolute; left: 0; top: 22%; height: 56%; width: 1px; background: rgba(255,255,255,.65); }
.usp-item strong { font-size: clamp(.93rem, 1.25vw, 1.2rem); line-height: 1.2; }
.usp-item span { margin-top: .45rem; font-size: clamp(.72rem, 1vw, .93rem); color: rgba(255,255,255,.88); }

.hero { min-height: 760px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr); align-items: center; padding: 70px clamp(32px, 5vw, 90px); background: radial-gradient(circle at 78% 45%, rgba(0,116,190,.34), transparent 29%), linear-gradient(120deg, #030810, var(--navy) 68%, #06192c); color: #fff; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0 56% 0 0; background: linear-gradient(90deg, rgba(0,0,0,.5), transparent); z-index: -1; }
.hero-glow { position: absolute; width: 740px; height: 740px; right: 3%; top: 3%; border-radius: 50%; background: rgba(0,116,190,.22); filter: blur(90px); z-index: -1; }
.hero-angle { position: absolute; left: 0; bottom: 0; width: 30%; height: 100px; background: var(--blue-dark); clip-path: polygon(0 0,100% 0,91% 100%,0 100%); opacity: .96; }
.hero-copy { position: relative; z-index: 2; align-self: center; max-width: 760px; padding-bottom: 70px; }
.hero h1 { margin: 0; font-size: clamp(3rem, 5.2vw, 6.15rem); line-height: 1.03; letter-spacing: -.045em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy p { max-width: 690px; margin: 2.3rem 0 0; font-size: clamp(1.15rem, 1.65vw, 1.75rem); line-height: 1.5; color: rgba(255,255,255,.9); }
.hero-product { border: 0; padding: 0; background: transparent; cursor: zoom-in; display: grid; place-items: center; align-self: stretch; min-height: 610px; position: relative; z-index: 2; }
.hero-product img { max-height: 690px; width: auto; filter: drop-shadow(32px 44px 30px rgba(0,0,0,.45)); transition: transform .35s ease; }
.hero-product:hover img { transform: scale(1.025); }

.brand-section { background: #fff; padding: 34px 0 42px; overflow: hidden; }
.brand-section h2 { margin: 0 24px 24px; text-align: center; font-size: clamp(1.35rem, 2.1vw, 2rem); }
.brand-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.brand-track { width: max-content; display: flex; align-items: center; gap: 72px; animation: brand-scroll 26s linear infinite; padding: 18px 0; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
.brand { color: #a6adb4; font-weight: 800; font-size: clamp(1.6rem, 2.3vw, 2.5rem); white-space: nowrap; filter: grayscale(1); }
.brand.chloe { font-family: Georgia, serif; font-weight: 500; text-transform: none; }
.brand.adidas { text-transform: lowercase; letter-spacing: -.08em; }
.brand.beurer { text-transform: lowercase; }
.brand.bmw { font-family: Arial Black, sans-serif; letter-spacing: .03em; }
.brand.kijimea { font-family: Georgia, serif; font-weight: 500; letter-spacing: .05em; }
.brand.olbas { font-family: Georgia, serif; font-style: italic; }
.brand.yokebe { font-weight: 700; }
.brand.abus { border: 4px solid currentColor; border-radius: 12px; padding: 2px 10px; font-style: italic; }
@keyframes brand-scroll { to { transform: translateX(-50%); } }

.section-shell { width: min(var(--max), calc(100% - 56px)); margin-inline: auto; }
.solutions { padding: 72px 0 84px; }
.section-heading h2, .process h2, .contact h2, .copacking h2 { margin: 0; font-size: clamp(2.15rem, 3.3vw, 3.5rem); line-height: 1.1; }
.section-heading p { margin: .6rem 0 2.5rem; color: var(--muted); font-size: 1.15rem; }
.solution-layout { display: grid; grid-template-columns: minmax(360px, .85fr) 1.25fr; gap: 24px; }
.product-grid-small { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 32px rgba(10,25,45,.05); display: flex; flex-direction: column; min-height: 0; }
.product-card-featured { min-height: 920px; }
.product-image { width: 100%; border: 0; background: #f8fafc; cursor: zoom-in; display: grid; place-items: center; padding: 20px; min-height: 305px; flex: 1; overflow: hidden; }
.product-card-featured .product-image { min-height: 760px; padding: 35px; }
.product-image img { max-height: 100%; object-fit: contain; transition: transform .35s ease; }
.product-image:hover img { transform: scale(1.035); }
.product-copy { padding: 24px 28px 30px; }
.product-copy h3 { margin: 0 0 .55rem; font-size: 1.45rem; }
.product-copy p { margin: 0; color: var(--muted); line-height: 1.5; }

.copacking { background: linear-gradient(135deg, #061426, #071c31); color: #fff; padding: 72px 0 80px; }
.copacking-intro { max-width: 1020px; margin: 1rem 0 2.3rem; color: rgba(255,255,255,.82); font-size: 1.2rem; line-height: 1.6; }
.copacking-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.metric { padding: 28px; border: 1px solid rgba(80,180,240,.75); border-radius: 14px; background: rgba(255,255,255,.035); }
.metric strong { display: block; font-size: 1.5rem; }
.metric span { display: block; margin-top: .6rem; color: rgba(255,255,255,.72); }

.process { padding: 70px 0 85px; }
.process-grid { list-style: none; padding: 0; margin: 3.2rem 0 0; display: grid; grid-template-columns: repeat(5,1fr); gap: 32px; }
.process-grid li { min-width: 0; }
.process-grid b { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.25rem; }
.process-grid h3 { margin: 1.3rem 0 .5rem; font-size: 1.2rem; }
.process-grid p { color: var(--muted); line-height: 1.55; margin: 0; }

.contact { background: #eaf1f6; padding: 70px 0; }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: start; }
.contact-copy > p { max-width: 740px; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.contact-copy dl { margin: 2.5rem 0 0; }
.contact-copy dl div { display: flex; gap: 1.4rem; margin: .7rem 0; }
.contact-copy dt { font-weight: 800; min-width: 80px; }
.contact-copy dd { margin: 0; font-weight: 700; }
.project-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 15px 38px rgba(7,20,38,.07); }
.project-form h3 { margin: 0 0 1.3rem; font-size: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.project-form label { display: block; margin-bottom: 15px; font-size: .86rem; font-weight: 700; color: #4d5964; }
.project-form label span { display: block; margin-bottom: 6px; }
.project-form input, .project-form textarea { width: 100%; border: 1px solid #d2dae2; border-radius: 8px; background: #fafbfd; padding: 12px 14px; color: var(--ink); outline: none; }
.project-form input:focus, .project-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,116,190,.12); }
.project-form input.is-invalid, .project-form textarea.is-invalid { border-color: #d33b3b; box-shadow: 0 0 0 3px rgba(211,59,59,.12); }
.field-error { display: block; min-height: 1.1em; margin-top: 5px; font-size: .78rem; font-weight: 600; color: #b91c1c; }
.privacy-check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; }
.privacy-check input { width: auto; margin-top: 3px; }
.privacy-check span { margin: 0 !important; }
.project-form button[type="submit"] { border: 0; border-radius: 8px; background: var(--blue-dark); color: #fff; font-weight: 800; padding: 13px 20px; cursor: pointer; }
.project-form button[type="submit"]:hover { background: var(--blue); }
.form-status { min-height: 1.4em; margin: .9rem 0 0; font-size: .9rem; }
.form-status.is-success { color: #16713a; }
.form-status.is-error { color: #a12020; }
.form-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 28px clamp(26px, 4vw, 70px); background: #070d16; color: #fff; }
.site-footer nav { display: flex; gap: 28px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.lightbox { width: min(1100px, 94vw); height: min(900px, 88vh); padding: 20px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.4); }
.lightbox::backdrop { background: rgba(1,7,14,.82); backdrop-filter: blur(5px); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; right: 12px; top: 10px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #071426; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }

.thanks-modal {
  width: min(440px, 92vw);
  border: 0;
  border-radius: 24px;
  padding: 46px 38px 38px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 30px 80px rgba(7,20,38,.28), 0 8px 24px rgba(7,20,38,.12);
  opacity: 0;
  transform: translateY(14px) scale(.96);
  transition: opacity .28s cubic-bezier(.2,.8,.3,1), transform .32s cubic-bezier(.2,.8,.3,1), overlay .32s allow-discrete, display .32s allow-discrete;
}
.thanks-modal[open] { opacity: 1; transform: translateY(0) scale(1); }
@starting-style { .thanks-modal[open] { opacity: 0; transform: translateY(14px) scale(.96); } }
.thanks-modal::backdrop {
  background: radial-gradient(circle at 50% 30%, rgba(0,74,126,.35), rgba(1,7,14,.72));
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .32s ease, overlay .32s allow-discrete, display .32s allow-discrete;
}
.thanks-modal[open]::backdrop { opacity: 1; }
@starting-style { .thanks-modal[open]::backdrop { opacity: 0; } }
.thanks-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d9a52, #16713a);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  font-weight: 800;
  box-shadow: 0 0 0 8px rgba(22,113,58,.1), 0 14px 30px rgba(22,113,58,.28);
  animation: thanks-pop .5s cubic-bezier(.34,1.56,.64,1) .05s both;
}
@keyframes thanks-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.thanks-modal h3 { margin: 0 0 .7rem; font-size: 1.55rem; letter-spacing: -.01em; color: var(--navy); }
.thanks-modal p { margin: 0 0 2rem; color: var(--muted); line-height: 1.6; font-size: 1.02rem; }
.thanks-close { position: absolute; right: 16px; top: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #9aa4ad; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease; }
.thanks-close:hover { background: #f0f3f6; color: #4d5964; }
.thanks-ok { border: 0; border-radius: 10px; background: var(--blue-dark); color: #fff; font-weight: 800; padding: 13px 36px; cursor: pointer; font-size: .98rem; box-shadow: 0 10px 24px rgba(0,73,126,.28); transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.thanks-ok:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0,116,190,.32); }
.thanks-ok:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .thanks-modal, .thanks-modal::backdrop, .thanks-icon { animation: none !important; transition: none !important; }
}

@media (max-width: 1050px) {
  .usp-strip { grid-template-columns: repeat(2,1fr); }
  .usp-item:nth-child(3)::before { display: none; }
  .hero { grid-template-columns: 1fr .82fr; min-height: 680px; }
  .hero h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); }
  .solution-layout { grid-template-columns: 1fr; }
  .product-card-featured { min-height: 760px; }
  .product-card-featured .product-image { min-height: 600px; }
  .process-grid { grid-template-columns: repeat(3,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header { min-height: 84px; padding: 12px 18px; }
  .cmg-logo { width: 56vw; }
  .language-switch { padding: 7px 9px; gap: .3rem; }
  .flag { width: 24px; height: 16px; }
  .usp-strip { grid-template-columns: 1fr 1fr; }
  .usp-item { min-height: 92px; padding: 15px 10px; }
  .usp-item strong { font-size: .8rem; }
  .usp-item span { font-size: .67rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 48px 24px 36px; }
  .hero-copy { padding-bottom: 20px; }
  .hero h1 { font-size: clamp(2.65rem, 12vw, 4.25rem); }
  .hero-copy p { font-size: 1.05rem; }
  .hero-product { min-height: 500px; }
  .hero-product img { max-height: 520px; }
  .hero-angle { width: 58%; height: 58px; }
  .section-shell { width: min(100% - 32px, var(--max)); }
  .brand-track { gap: 45px; }
  .product-grid-small { grid-template-columns: 1fr; }
  .product-card-featured { min-height: 650px; }
  .product-card-featured .product-image { min-height: 500px; }
  .copacking-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer nav { flex-wrap: wrap; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .brand-track { animation: none; }
}
