/* Mundner Komforttechnik – Stylesheet
   Markenfarben aus dem Logo: Grün #5BD400, Blau #0057D9 */
:root {
  --green: #4fb800;
  --green-bright: #5bd400;
  --blue: #0057d9;
  --blue-dark: #0a2a5c;
  --ink: #14202e;
  --muted: #5b6878;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 42, 92, .08);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); margin-bottom: .8rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.section-head { max-width: 720px; margin-bottom: 48px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, background .15s, color .15s, box-shadow .15s;
  font-size: 1rem; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green-bright); color: #0b2400; box-shadow: 0 8px 20px rgba(91, 212, 0, .3); }
.btn--primary:hover { background: #66e60a; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: #0049b8; }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav a:hover { color: var(--blue); }
.nav .btn { color: #fff; padding: .6em 1.2em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(91,212,0,.28), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(0,87,217,.55), transparent 60%),
    linear-gradient(135deg, #071a38 0%, #0a2a5c 55%, #0b3f8a 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero__inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px;
  align-items: center; padding: clamp(72px, 10vw, 128px) 20px;
}
.hero h1 span { color: var(--green-bright); }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.82); max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 40px; color: rgba(255,255,255,.75); font-size: .95rem; }
.hero__badges div { display: flex; align-items: center; gap: 8px; }
.hero__badges svg { color: var(--green-bright); flex: none; }

.hero__visual { position: relative; }
.panel {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 22px;
  padding: 24px; backdrop-filter: blur(6px); box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.panel__title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 18px; }
.panel__title small { font-weight: 500; color: rgba(255,255,255,.6); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  background: rgba(255,255,255,.08); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid rgba(255,255,255,.08);
}
.tile svg { color: var(--green-bright); }
.tile strong { font-size: 1.35rem; }
.tile span { font-size: .85rem; color: rgba(255,255,255,.65); }
.tile--on { background: rgba(91,212,0,.16); border-color: rgba(91,212,0,.4); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; }
}

/* Cards / Leistungen */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #cfd9e6; }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(0,87,217,.1), rgba(91,212,0,.14)); color: var(--blue);
}

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--green-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2400' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.compare { display: grid; gap: 16px; }
.compare__row { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.compare__row > div { padding: 18px 20px; font-size: .97rem; }
.compare__row > div:first-child { background: #fbfcfe; color: var(--muted); border-right: 1px solid var(--line); }
.compare__row > div:last-child { font-weight: 600; }
.compare__head > div { font-size: .78rem !important; font-weight: 800 !important; letter-spacing: .1em; text-transform: uppercase; padding: 12px 20px !important; }
.compare__head > div:last-child { color: var(--green); }
.partner { display: flex; align-items: center; gap: 16px; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.partner img { height: 34px; width: auto; }

/* Referenz */
.ref { display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ref__img { min-height: 360px; background: #111 center/cover no-repeat; }
.ref__body { padding: clamp(28px, 5vw, 56px); }
.ref__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--blue-dark); border: 1px solid var(--line); }
@media (max-width: 860px) { .ref { grid-template-columns: 1fr; } .ref__img { min-height: 260px; } }

/* Ablauf */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 18px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 2.6rem; font-weight: 800; color: transparent;
  -webkit-text-stroke: 1.5px var(--blue); margin-bottom: 10px; line-height: 1;
}
.step::after { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: var(--green-bright); }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about-card { background: var(--blue-dark); color: #fff; border-radius: 22px; padding: clamp(28px, 5vw, 48px); position: relative; overflow: hidden; }
.about-card::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(91,212,0,.35), transparent 70%); }
.about-card .stat { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 28px; position: relative; }
.about-card .stat strong { display: block; font-size: 2rem; color: var(--green-bright); line-height: 1.1; }
.about-card .stat span { color: rgba(255,255,255,.7); font-size: .9rem; }
.about-card p { color: rgba(255,255,255,.85); position: relative; }
.about-card h3 { position: relative; }

/* Kontakt */
.contact { background: linear-gradient(135deg, #071a38, #0a2a5c 60%, #0b3f8a); color: #fff; border-radius: 26px; padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.contact p { color: rgba(255,255,255,.8); }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact__list a, .contact__list div {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none;
  transition: background .15s;
}
.contact__list a:hover { background: rgba(255,255,255,.14); }
.contact__list svg { color: var(--green-bright); flex: none; }
.contact__list small { display: block; color: rgba(255,255,255,.6); font-size: .8rem; }
.contact__list strong { word-break: break-word; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--blue); }

/* Rechtstexte */
.legal { max-width: 780px; padding: 64px 20px 96px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: #2b3846; }
.note { background: #fff8e1; border: 1px solid #f3d27a; border-radius: 10px; padding: 14px 18px; font-size: .95rem; }

/* Reveal-Animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
