/* ==========================================================
   MSH Photovoltaik – Styles
   ========================================================== */

/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("assets/fonts/outfit-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("assets/fonts/outfit-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #0b1c30;
  --navy-2: #13283f;
  --navy-3: #1c3450;
  --orange: #ff8a00;
  --orange-dark: #e67a00;
  --orange-soft: #fff1e0;
  --text: #0b1c30;
  --muted: #55616f;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f3f5f8;

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(11, 28, 48, 0.18);
  --container: 1280px;
  --header-h: 80px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.15; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.container--narrow { max-width: 980px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.text-accent { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  letter-spacing: 0.02em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn--lg { padding: 16px 28px; }
.btn--block { width: 100%; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); }
.btn--orange { background: var(--orange); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(255, 138, 0, .7); }
.btn--orange:hover { background: var(--orange-dark); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 800; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--orange);
}
.eyebrow--line { color: var(--orange); }
.eyebrow--line::before { width: 16px; height: 4px; border-radius: 2px; }
.eyebrow--onDark { color: var(--orange); }

.h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 16.5px; margin-top: 14px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: #fff; border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(11,28,48,.25); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-head); color: var(--navy); }
.logo__msh { font-weight: 800; font-size: 21px; letter-spacing: 0.01em; }
.logo__bar { color: var(--orange); font-weight: 500; font-size: 20px; }
.logo__pv { font-weight: 500; font-size: 16px; letter-spacing: 0.04em; }
.logo--light { color: #fff; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__link { font-weight: 500; font-size: 15px; color: #3a4654; position: relative; padding: 6px 0; transition: color .2s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__link:hover, .nav__link.is-active { color: var(--navy); }
.nav__link.is-active { font-weight: 700; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 860px); padding-top: var(--header-h);
  display: flex; align-items: center; overflow: hidden; background: var(--navy); color: #fff;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  transform: scale(1.04); animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 36, .88) 0%, rgba(8, 20, 36, .66) 42%, rgba(8, 20, 36, .22) 100%),
    linear-gradient(0deg, rgba(8, 20, 36, .55) 0%, rgba(8, 20, 36, 0) 45%);
}
.hero__content { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 96px; }
.hero__title { font-size: clamp(34px, 6.4vw, 84px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin-top: 8px; }
.hero__text { max-width: 700px; margin-top: 28px; font-size: clamp(16px, 1.4vw, 18.5px); color: rgba(255,255,255,.9); line-height: 1.65; }
/* Hero entrance: transform only, so the text is painted immediately (good LCP) */
.hero__in { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__title.hero__in { animation-delay: .06s; }
.hero__text.hero__in { animation-delay: .12s; }
.hero__actions.hero__in { animation-delay: .18s; }
@keyframes heroIn { from { transform: translateY(18px); } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 40px; }


/* ---------- Trust bar ---------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.trust__item h2 { font-size: 20px; font-weight: 700; }
.trust__item p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--light { background: var(--bg-light); }
.section--gray { background: var(--bg-gray); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy .lead { color: rgba(255,255,255,.82); }

.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about__media img { width: 100%; aspect-ratio: 560 / 480; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.checklist { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.checklist li { display: flex; gap: 16px; align-items: flex-start; }
.checklist__icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--orange-soft); color: var(--orange);
  display: grid; place-items: center; margin-top: 1px;
}
.checklist__icon svg { width: 14px; height: 14px; }
.checklist h3 { font-size: 16.5px; font-weight: 700; }
.checklist p { color: var(--muted); font-size: 15px; margin-top: 2px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px clamp(24px, 4vw, 56px); margin: clamp(56px, 7vw, 88px) 0 0; }
.stat { display: flex; flex-direction: column-reverse; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin: 0; }
.stat__value {
  margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(48px, 5vw, 64px);
  line-height: 1; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums;
}
.stat__unit { color: var(--orange); margin-left: 4px; }
.stat__label { margin-top: 14px; font-size: 16.5px; font-weight: 600; color: var(--text); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { overflow: hidden; aspect-ratio: 630 / 260; }
.card__media--ref { aspect-ratio: 410 / 260; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 28px 24px 40px; flex: 1; }
.card__body h3 { font-size: 22px; font-weight: 700; }
.card__body p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.card__meta { color: var(--orange) !important; font-weight: 800; font-size: 12.5px !important; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 6px !important; }
.refs .card__body h3 { font-size: 20px; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: none; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 28px 30px 34px; display: flex; flex-direction: column;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.step:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-3px); }
.step__top { display: flex; justify-content: space-between; align-items: flex-start; }
.step__num { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--orange); line-height: 1; }
.step__icon { width: 22px; height: 22px; color: #b3bcc7; transition: color .3s; }
.step:hover .step__icon { color: var(--orange); }
.step h3 { font-size: 18px; font-weight: 700; margin-top: 64px; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* ---------- Region ---------- */
.region { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.region .h2 { color: #fff; }
.region__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; align-items: start; }
.tile {
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm);
  padding: 24px 22px; transition: border-color .3s, background .3s;
}
.tile:hover { border-color: rgba(255,138,0,.55); background: var(--navy-3); }
.tile h3 { color: var(--orange); font-size: 18px; font-weight: 700; }
.tile p { color: rgba(255,255,255,.82); font-size: 14px; margin-top: 10px; }
.region__map { padding: 8px; background: var(--navy-3); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.region__map img { width: 100%; border-radius: 12px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 18px; }
.faq__item {
  background: var(--bg-light); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .25s, background .25s;
}
.faq__item[open] { background: #fff; border-color: #d8dde5; box-shadow: 0 8px 24px -16px rgba(11,28,48,.2); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 24px; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: translateY(-3px) rotate(45deg); transition: transform .25s;
}
.faq__item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__item summary:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; border-radius: 12px; }
.faq__answer { padding: 0 24px 24px; color: var(--muted); font-size: 15px; }

/* ---------- CTA / Form ---------- */
.cta {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.cta .h2 { font-size: clamp(30px, 3.4vw, 42px); }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 16px; }
.contact-list svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
.contact-list a:hover { color: var(--orange-dark); }
.contact-list a { overflow-wrap: anywhere; }
.cta > *, .footer__top > *, .about > *, .region > * { min-width: 0; }

.quick-form { background: var(--bg-light); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: grid; gap: 16px; }
.quick-form h3 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.quick-form input {
  width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 6px;
  border: 1px solid #d9dee5; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.quick-form input::placeholder { color: #6b7684; }
.quick-form input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,138,0,.2); }
.quick-form input.is-invalid { border-color: #d93a3a; box-shadow: 0 0 0 3px rgba(217,58,58,.14); }
.quick-form__msg { font-size: 14px; font-weight: 600; min-height: 1em; }
.quick-form__msg.is-error { color: #c62f2f; }
.quick-form__msg.is-success { color: #1b8a4b; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #fff; padding: 88px 0 0; }
.footer__top { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand p { margin-top: 26px; max-width: 360px; font-size: 14.5px; color: rgba(255,255,255,.85); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { color: var(--orange); font-family: var(--font-body); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.footer__col a { color: rgba(255,255,255,.88); font-size: 14.5px; transition: color .2s; }
.footer__col a:hover { color: var(--orange); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 32px 0 40px; font-size: 13.5px; color: rgba(255,255,255,.8); }

.footer__credit { color: #fff; font-weight: 700; transition: color .2s; }
.footer__credit:hover { color: var(--orange); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__video, .hero__in { animation: none; transform: none; }
  * { transition-duration: .01ms !important; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .region { grid-template-columns: 1fr; }
  .region__map { max-width: 560px; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 32px;
    background: #fff; border-top: 1px solid var(--line);
    transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__link { font-size: 20px; font-family: var(--font-head); padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 24px; padding: 16px; }
  body.nav-open { overflow: hidden; }

  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .about { grid-template-columns: 1fr; }
  .refs { grid-template-columns: 1fr 1fr; }
  .refs .card:last-child { grid-column: 1 / -1; }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero { min-height: 100svh; }
  .hero__overlay { background: linear-gradient(0deg, rgba(8,20,36,.9) 0%, rgba(8,20,36,.7) 55%, rgba(8,20,36,.5) 100%); }
  .hero__content { padding-top: 40px; padding-bottom: 104px; }
  .hero__title { font-size: clamp(34px, 10.4vw, 52px); }
  .hero__actions .btn { width: 100%; }
  .services, .refs, .steps { grid-template-columns: 1fr; }
  .refs .card:last-child { grid-column: auto; }
  .step { min-height: 0; }
  .step h3 { margin-top: 28px; }
  .region__tiles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item h2 { font-size: 17px; }
  .trust__item p { font-size: 13.5px; }
  .faq__item summary { font-size: 16.5px; padding: 20px; }
  .faq__answer { padding: 0 20px 20px; }
  .quick-form { padding: 24px 20px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; }
}
