/* ==========================================================================
   M&S Power Systems — Design System
   Schwarz / Gold · Premium · "Energie. Zukunft. Unabhängigkeit."
   ========================================================================== */

:root {
  /* Farben */
  --black:        #0a0a0b;
  --black-soft:   #111114;
  --panel:        #16161a;
  --panel-2:      #1d1d22;
  --line:         #2a2a31;
  --line-gold:    rgba(212,175,55,.28);

  --gold:         #d4af37;
  --gold-bright:  #f3d98b;
  --gold-deep:    #a87e1f;
  --gold-grad:    linear-gradient(135deg, #f6e6a8 0%, #d4af37 38%, #a87e1f 72%, #e8cd72 100%);
  --silver:       #c7ccd1;
  --silver-grad:  linear-gradient(135deg, #ffffff 0%, #c7ccd1 45%, #8a9097 100%);

  --text:         #ece9e3;
  --text-dim:     #a7a39b;
  --text-mute:    #76726b;

  --ok:           #4caf78;
  --radius:       14px;
  --radius-sm:    9px;
  --maxw:         1200px;
  --shadow:       0 18px 50px -18px rgba(0,0,0,.85);
  --shadow-gold:  0 14px 40px -14px rgba(212,175,55,.35);
  --font:         "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Reset ------------------------------------------------------------------ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* Hintergrund-Textur ----------------------------------------------------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(212,175,55,.10), transparent 60%),
    radial-gradient(700px 500px at 5% 100%, rgba(212,175,55,.06), transparent 55%),
    var(--black);
}

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
h1,h2,h3,h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
.lead { color: var(--text-dim); font-size: 1.08rem; max-width: 62ch; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .lead { margin: 14px auto 0; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.silver-text {
  background: var(--silver-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold-grad); color: #1a1407;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 46px -12px rgba(212,175,55,.5); }
.btn-ghost { border-color: var(--line-gold); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-dark { background: var(--panel-2); border-color: var(--line); color: var(--text); }
.btn-dark:hover { border-color: var(--gold); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-badge {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: var(--gold-grad); color: #14110a;
  display: grid; place-items: center; font-weight: 900; font-size: 1.05rem;
  box-shadow: var(--shadow-gold); position: relative; overflow: hidden;
}
.brand-badge span { position: relative; z-index: 1; letter-spacing: -.04em; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-size: 1.02rem; font-weight: 800; letter-spacing: .02em; }
.brand-name small { font-size: .6rem; letter-spacing: .24em; color: var(--gold); text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  padding: 9px 14px; border-radius: 8px; font-size: .92rem; font-weight: 500;
  color: var(--text-dim); transition: color .2s, background .2s;
}
.menu a:hover, .menu a.active { color: var(--gold-bright); background: rgba(212,175,55,.08); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-gold);
  font-size: .9rem; font-weight: 600; color: var(--text);
}
.cart-link:hover { border-color: var(--gold); color: var(--gold-bright); }
.cart-count {
  background: var(--gold-grad); color: #14110a; font-weight: 800; font-size: .72rem;
  min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px;
}
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div b { font-size: 1.7rem; font-weight: 800; display: block; }
.hero-stats div span { font-size: .82rem; color: var(--text-dim); }

.hero-visual {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line-gold); box-shadow: var(--shadow);
  aspect-ratio: 4/3; background: var(--panel);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,10,11,.65) 100%);
}

/* Trust bar -------------------------------------------------------------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--black-soft); }
.trustbar .container { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: center; align-items: center; padding-top: 26px; padding-bottom: 26px; }
.trustbar .ti { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: .92rem; font-weight: 600; }
.trustbar .ti b { color: var(--text); }
.ico-gold { color: var(--gold); flex-shrink: 0; }

/* Cards / Pillars -------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--black-soft) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--line-gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.card .card-ico {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(212,175,55,.10); border: 1px solid var(--line-gold); color: var(--gold);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: .95rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--gold); font-weight: 600; font-size: .9rem; }
.card .card-link:hover { gap: 10px; }
.badge {
  display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(212,175,55,.12); color: var(--gold-bright); border: 1px solid var(--line-gold);
}
.badge-soft { background: var(--panel-2); color: var(--text-dim); border-color: var(--line); }

/* Produkt-Karten --------------------------------------------------------- */
.product-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--black-soft) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .25s, transform .25s, box-shadow .25s;
}
.product-card:hover { border-color: var(--line-gold); transform: translateY(-5px); box-shadow: var(--shadow); }
.product-media {
  position: relative; aspect-ratio: 4/3;
  background:
    radial-gradient(120% 120% at 50% 0%, #26262c 0%, #121215 70%);
  display: grid; place-items: center;
}
.product-media .pm-badge { position: absolute; top: 12px; left: 12px; }
.product-media .hp-art { width: 70%; }
.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-body .brand-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.product-body h3 { font-size: 1.08rem; margin: 6px 0 4px; }
.product-body .spec { color: var(--text-dim); font-size: .88rem; margin-bottom: 14px; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-size: 1.25rem; font-weight: 800; }
.price small { display: block; font-size: .68rem; color: var(--text-mute); font-weight: 500; }
.price .placeholder-note { color: var(--gold); }

/* Produktdetail ---------------------------------------------------------- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.pd-gallery {
  border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #26262c 0%, #121215 70%);
  aspect-ratio: 1/1; display: grid; place-items: center; padding: 8%;
}
.pd-info h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 10px 0 14px; }
.pd-price { font-size: 2rem; font-weight: 800; margin: 18px 0 6px; }
.pd-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--text-dim); font-size: .9rem; margin: 8px 0 22px; }
.pd-meta b { color: var(--ok); }
.spec-table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table th { color: var(--text-dim); font-weight: 500; width: 45%; }
.spec-table td { font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { background: var(--panel-2); border: 0; color: var(--text); width: 40px; height: 44px; font-size: 1.2rem; }
.qty input { width: 46px; height: 44px; text-align: center; background: transparent; border: 0; color: var(--text); font-weight: 700; font-size: 1rem; }
.buy-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* Förder-/Info-Banner ---------------------------------------------------- */
.cta-band {
  background:
    linear-gradient(135deg, rgba(212,175,55,.14), rgba(212,175,55,.03)),
    var(--panel);
  border: 1px solid var(--line-gold); border-radius: 20px; padding: 46px;
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--text-dim); max-width: 60ch; }

/* Steps ------------------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  background: var(--gold-grad); color: #14110a; font-weight: 900; display: grid; place-items: center;
}
.step h3 { font-size: 1.05rem; margin-bottom: 3px; }
.step p { color: var(--text-dim); font-size: .94rem; }

/* Forms ------------------------------------------------------------------ */
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--text-dim); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--black-soft); border: 1px solid var(--line); color: var(--text); font-size: .95rem;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .8rem; color: var(--text-mute); margin-top: 10px; }
.form-success { background: rgba(76,175,120,.1); border: 1px solid rgba(76,175,120,.4); color: #8fe0ad; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .92rem; }

/* Info two-col ----------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.feature-list { display: grid; gap: 14px; margin-top: 22px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); }
.feature-list .ico-gold { margin-top: 3px; }
.feature-list b { color: var(--text); display: block; }

.media-frame {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line-gold);
  box-shadow: var(--shadow); background: var(--panel);
}

/* Tabelle / Warenkorb ---------------------------------------------------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); border-bottom: 1px solid var(--line); }
.cart-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-prod { display: flex; align-items: center; gap: 14px; }
.cart-thumb { width: 58px; height: 58px; border-radius: 10px; background: radial-gradient(120% 120% at 50% 0%, #26262c, #121215); display: grid; place-items: center; flex-shrink: 0; }
.cart-remove { background: none; border: 0; color: var(--text-mute); font-size: 1.2rem; }
.cart-remove:hover { color: #e57373; }
.cart-summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; color: var(--text-dim); font-size: .95rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; color: var(--text); font-size: 1.2rem; font-weight: 800; }

/* Pagebanner ------------------------------------------------------------- */
.page-banner { padding: 60px 0 34px; border-bottom: 1px solid var(--line); background: var(--black-soft); }
.crumbs { font-size: .82rem; color: var(--text-mute); margin-bottom: 12px; }
.crumbs a:hover { color: var(--gold); }

/* Partner ---------------------------------------------------------------- */
.partner-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.partner {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center;
  background: var(--panel);
}
.partner .pname { font-size: 1.3rem; font-weight: 800; letter-spacing: .04em; }
.partner small { display: block; color: var(--text-dim); font-size: .82rem; margin-top: 6px; }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--black-soft); padding: 60px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); margin-bottom: 16px; }
.footer-grid a, .footer-grid p { color: var(--text-dim); font-size: .92rem; display: block; margin-bottom: 9px; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--text-mute); font-size: .82rem;
}
.slogan-strip { text-align: center; letter-spacing: .34em; font-size: .76rem; color: var(--gold); text-transform: uppercase; padding: 18px 0; border-top: 1px solid var(--line-gold); }

/* Heat-pump SVG art helper ---------------------------------------------- */
.hp-art rect, .hp-art line { vector-effect: non-scaling-stroke; }

/* Animations ------------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp .6s ease both; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .pd-grid, .split, .cta-band { grid-template-columns: 1fr; }
  .cta-band { text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cols-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .menu, .cart-link span.lbl { display: none; }
  .menu.open {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    background: var(--black-soft); border-bottom: 1px solid var(--line); padding: 12px;
  }
  .menu.open a { padding: 12px; }
  .nav-toggle { display: block; }
  .cols-3, .cols-4, .cols-2, .partner-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}
