/* =========================================================
   MUNOVIA Gebäudeservice — Stylesheet
   ========================================================= */

:root {
  /* Farben */
  --navy: #0B2E59;
  --navy-deep: #082140;
  --navy-tint: #EEF2F7;
  --black: #111111;
  --white: #FFFFFF;
  --grey-50: #F6F7F9;
  --grey-100: #EFF1F4;
  --grey-200: #E3E6EB;
  --grey-400: #9AA1AC;
  --grey-500: #656B76;
  --grey-700: #3A3F47;

  /* Typografie */
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --container-w: 1180px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-s: 0 2px 10px rgba(11, 46, 89, 0.06);
  --shadow-m: 0 12px 34px rgba(11, 46, 89, 0.10);
  --shadow-l: 0 24px 60px rgba(11, 46, 89, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================== Reset =========================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--black); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2.5px solid var(--navy);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* =========================== Utility type =========================== */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px;
}
.eyebrow-light { color: #9FB4CE; }

.section { padding: 112px 0; }
.section-alt { background: var(--grey-50); }
.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.18; font-weight: 800; }
.section-lead { margin-top: 16px; color: var(--grey-500); font-size: 17px; line-height: 1.6; }

/* =========================== Buttons =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(11, 46, 89, 0.22);
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(11, 46, 89, 0.28);
}
.btn-outline {
  background: transparent;
  border-color: var(--grey-200);
  color: var(--black);
}
.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-small { padding: 11px 20px; font-size: 13.5px; }
.btn-full { width: 100%; }

/* =========================== Header =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--grey-200);
  box-shadow: 0 4px 20px rgba(11,46,89,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--black);
}
.brand-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--navy);
}

.main-nav {
  display: flex;
  margin: 0 auto;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--grey-700);
  position: relative;
  padding: 4px 0;
  margin-left: 34px;
  transition: color 0.25s ease;
}
.main-nav a:first-child { margin-left: 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover { color: var(--black); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 2.5px auto;
  background: var(--black);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.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;
  padding: 96px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #FCFDFE 0%, #F5F7FA 100%);
}
.hero-inner { text-align: center; }
.hero-copy { max-width: 760px; margin: 0 auto; padding-bottom: 120px; }
.hero-logo {
  width: 96px;
  height: auto;
  margin: 0 auto 28px;
}
.hero-copy .eyebrow { display: flex; justify-content: center; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--black);
}
.hero-sub {
  margin: 24px auto 0;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--grey-500);
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-horizon {
  width: 100%;
  line-height: 0;
}
.hero-horizon svg { width: 100%; height: 90px; display: block; }
.horizon-fill { fill: var(--navy); opacity: 0.94; }

/* =========================== Leistungen =========================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-l);
  padding: 44px 38px;
  box-shadow: var(--shadow-s);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-l);
  border-color: rgba(11,46,89,0.14);
}
.service-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--navy-tint);
  color: var(--navy);
  margin-bottom: 26px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.service-card > p { color: var(--grey-500); line-height: 1.65; font-size: 15.5px; }
.service-list { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.service-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--grey-700);
  line-height: 1.5;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--navy);
}
.expansion-note {
  margin-top: 40px;
  text-align: center;
  color: var(--grey-500);
  font-size: 15px;
}
.expansion-note strong { color: var(--navy); font-weight: 700; }

/* =========================== Warum MUNOVIA =========================== */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.benefit {
  padding-top: 26px;
  border-top: 1.5px solid var(--grey-200);
}
.benefit-icon { width: 30px; height: 30px; color: var(--navy); margin-bottom: 20px; }
.benefit h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.benefit p { color: var(--grey-500); font-size: 14.5px; line-height: 1.6; }

/* =========================== Über uns =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
.about-copy h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.2; font-weight: 800; }
.about-copy p { margin-top: 20px; color: var(--grey-500); font-size: 16.5px; line-height: 1.75; }
.about-copy p:first-of-type { margin-top: 22px; }
.about-visual svg { width: 100%; height: auto; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }

/* =========================== Ablauf =========================== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: step;
  position: relative;
}
.process-step {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 32px 26px;
  border: 1px solid var(--grey-200);
  position: relative;
}
.process-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--grey-400);
  margin-bottom: 22px;
}
.process-icon { width: 28px; height: 28px; color: var(--navy); margin-bottom: 18px; }
.process-step h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.process-step p { color: var(--grey-500); font-size: 14.5px; line-height: 1.6; }

/* =========================== Kontakt =========================== */
.contact {
  background: var(--navy);
  color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 {
  color: var(--white);
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 4px;
}
.contact-lead {
  margin-top: 20px;
  color: #C6D3E4;
  font-size: 16px;
  line-height: 1.7;
  max-width: 460px;
}
.contact-details {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7F9AB9;
}
.contact-item a { font-size: 18px; font-weight: 600; color: var(--white); }
.contact-item a:hover { color: #BFD3EA; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 40px;
  box-shadow: var(--shadow-l);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--grey-700);
}
.form-row .optional { font-weight: 400; color: var(--grey-400); }
.form-row input,
.form-row textarea {
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-s);
  padding: 13px 14px;
  font-size: 15px;
  color: var(--black);
  background: var(--grey-50);
  transition: border-color 0.25s ease, background 0.25s ease;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}
.form-status {
  font-size: 14px;
  min-height: 20px;
  color: var(--navy);
  font-weight: 600;
}

/* =========================== Footer =========================== */
.site-footer {
  background: var(--grey-50);
  border-top: 1px solid var(--grey-200);
  padding-top: 56px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { height: 33px; }
.footer-nav, .footer-legal { display: flex; flex-wrap: wrap; }
.footer-nav a, .footer-legal a {
  font-size: 14px;
  color: var(--grey-500);
  margin-left: 26px;
  transition: color 0.25s ease;
}
.footer-nav a:first-child, .footer-legal a:first-child { margin-left: 0; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--navy); }
.footer-bottom {
  border-top: 1px solid var(--grey-200);
  padding: 22px 28px 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--grey-400);
}
.footer-slogan { font-style: italic; }

/* =========================== Scroll reveal =========================== */
/* Progressive enhancement: Inhalte sind standardmäßig sichtbar.
   Erst wenn JS aktiv ist und die Klasse "reveal-active" gesetzt wurde,
   starten Elemente unsichtbar und blenden beim Scrollen ein. */
.reveal-active [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-active [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================== Legal pages =========================== */
.legal-page { padding-top: 72px; }
.legal-container { max-width: 760px; }
.legal-container h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 40px;
}
.legal-container h2 {
  font-size: 19px;
  font-weight: 800;
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal-container p {
  color: var(--grey-500);
  font-size: 15.5px;
  line-height: 1.75;
}
.legal-container a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.legal-note {
  margin-top: 48px;
  padding: 18px 20px;
  background: var(--grey-50);
  border-radius: var(--radius-s);
  border: 1px solid var(--grey-200);
  font-size: 14px !important;
}

/* =========================== Responsive =========================== */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-small { display: none; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 20px;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow-m);
  }
  .site-header.nav-open .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--grey-100);
  }
  .site-header.nav-open .header-actions .btn-small {
    display: none;
  }

  .card-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 420px; margin: 0 auto; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .hero { padding-top: 64px; }
  .hero-copy { padding-bottom: 84px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}
