/* =========================================================
   MBcom – gemeinsame Styles der Branchen-Landingpages
   ========================================================= */
:root {
  --bg: #201820;
  --bg-2: #2b222b;
  --ink: #f4f4f2;
  --ink-dim: #a89da3;
  --accent: #95C11F;
  --accent-soft: rgba(149, 193, 31, 0.12);
  --line: rgba(244, 244, 242, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(32,24,32,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-mark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.15rem;
  text-decoration: none;
}
.nav-mark { display: inline-flex; align-items: center; gap: 0.6rem; }
.nav-mark img { width: 38px; height: 38px; display: block; }
.nav-mark .nav-word span { color: var(--accent); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-cta {
  color: var(--bg);
  background: var(--accent);
  padding: 0.45rem 1rem;
  border-radius: 99px;
  font-weight: 600;
}
.nav-links .nav-cta:hover { color: var(--bg); opacity: 0.88; }

/* ---------- PARALLAX BASIS ---------- */
.parallax {
  background-color: var(--bg-2);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(32,24,32,0.82) 0%, rgba(32,24,32,0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: calc(1080px - 3rem);
  width: 100%;
  margin: 0 auto;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 17ch;
  margin: 0 auto;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.hero .lead {
  margin: 1.5rem auto 0;
  max-width: 48ch;
  font-size: 1.1rem;
  color: rgba(244,244,242,0.85);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { border: 1px solid rgba(244,244,242,0.35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- SECTIONS ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 6.5rem) 1.5rem;
}

.section-head { max-width: 62ch; margin: 0 auto 2.75rem; text-align: center; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

.section-head h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.12;
}
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head p { margin-top: 1rem; color: var(--ink-dim); }

/* ---------- PAIN POINTS ---------- */
.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pain {
  background: var(--bg);
  padding: 1.75rem 1.5rem;
}

.pain-mark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.pain p { font-size: 0.98rem; color: rgba(244,244,242,0.88); }

/* ---------- LEISTUNGEN ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.service {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.9rem 1.6rem;
  transition: border-color 0.25s ease, opacity 0.6s ease, transform 0.6s ease;
}
.service:hover { border-color: var(--accent); }
.service.is-focus {
  background: linear-gradient(160deg, rgba(149, 193, 31,0.10), var(--bg-2) 55%);
  border-color: rgba(149, 193, 31,0.35);
}

.service-num {
  font-family: 'Instrument Serif', Georgia, serif;
  color: var(--accent);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.9rem;
}

.service-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(149, 193, 31,0.45);
  border-radius: 99px;
  padding: 0.2rem 0.6rem;
}

.service h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.service p { font-size: 0.92rem; color: var(--ink-dim); }
.service a { color: var(--accent); text-decoration: none; }
.service a:hover { text-decoration: underline; }

/* ---------- PARALLAX BREAK ---------- */
.break {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  text-align: center;
}

.break::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,24,32,0.55), rgba(32,24,32,0.8));
}

.break blockquote {
  position: relative;
  max-width: 24ch;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.18;
}
.break blockquote em { font-style: italic; color: var(--accent); }

/* ---------- ABLAUF ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step { border-top: 2px solid var(--line); padding-top: 1.25rem; position: relative; }
.step::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
}

.step h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.step h3::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero) ' ';
  color: var(--accent);
}
.step p { font-size: 0.92rem; color: var(--ink-dim); }

/* ---------- KONTAKT ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-left h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.contact-left p { color: var(--ink-dim); max-width: 36ch; }

.contact-direct { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.contact-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.contact-link:hover { color: var(--accent); }
.meta { color: var(--ink-dim); font-size: 0.9rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  padding: 0.6rem 0.1rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button {
  align-self: flex-start;
  margin-top: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 99px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.contact-form button:hover { opacity: 0.85; }
.contact-form button:disabled { opacity: 0.55; cursor: not-allowed; }
.form-status { font-size: 0.88rem; min-height: 1.2em; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #d9737a; }

/* ---------- WEITERE BRANCHEN ---------- */
.more {
  border-top: 1px solid var(--line);
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.more a { text-decoration: none; color: var(--ink); transition: color 0.2s ease; }
.more a:hover { color: var(--accent); }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--ink-dim);
  font-size: 0.85rem;
}
footer a { color: var(--ink-dim); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; }

/* ---------- REVEAL ---------- */
.reveal-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-up.is-visible { opacity: 1; transform: none; }

.hero-inner > * { opacity: 0; transform: translateY(14px); animation: fadeUp 0.8s ease forwards; }
.hero-inner > *:nth-child(2) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.2s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.3s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- RESPONSIVE / MOTION ---------- */
@media (max-width: 900px) {
  .parallax { background-attachment: scroll; }
}

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { min-height: 86vh; padding-top: 6rem; }
  .hero::before {
    background: linear-gradient(180deg, rgba(32,24,32,0.7) 0%, rgba(32,24,32,0.9) 60%, var(--bg) 100%);
  }
  .contact { grid-template-columns: 1fr; gap: 2rem; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parallax { background-attachment: scroll; }
  .reveal-up, .hero-inner > * { opacity: 1; transform: none; animation: none; transition: none; }
}
