/* MatchMetrics Landing Page Styles */

:root {
  --mm-primary: #C94432;
  --mm-primary-hover: #B93828;
  --mm-secondary: #FFEAE6;
  --mm-bg: #F7F9FC;
  --mm-text: #2E2E38;
  --mm-text-muted: #676C78;
  --mm-card-border: #E6E8EE;
  --mm-white: #FFFFFF;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--mm-text);
  line-height: 1.6;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mm-card-border);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 800;
  color: var(--mm-primary) !important;
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--mm-text-muted);
  font-weight: 500;
  margin: 0 5px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--mm-primary);
}

/* Sections */
section {
  padding: 100px 0;
}

.section-title {
  font-weight: 800;
  margin-bottom: 50px;
  text-align: center;
}

.section-subtitle {
  color: var(--mm-primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
  text-align: center;
}

/* Hero Section */
.hero-section {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F7F9FC 100%);
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
}

.hero-subheadline {
  font-size: 1.25rem;
  color: var(--mm-text-muted);
  margin-bottom: 35px;
}

.hero-image-placeholder {
  background: var(--mm-secondary);
  border-radius: 24px;
  height: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mm-primary);
  font-weight: 600;
  border: 2px dashed var(--mm-primary);
}

.trust-bar {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--mm-card-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mm-text-muted);
  font-weight: 500;
}

.trust-item i {
  color: var(--mm-primary);
  font-size: 1.2rem;
}

/* Features */
.feature-card {
  background: var(--mm-white);
  border: 1px solid var(--mm-card-border);
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--mm-secondary);
  color: var(--mm-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Pricing */
.pricing-card {
  background: var(--mm-white);
  border: 1px solid var(--mm-card-border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  transition: transform 0.3s ease;
}

.pricing-card.featured {
  background: var(--mm-text);
  color: white;
  border-color: var(--mm-primary);
  box-shadow: 0 20px 40px rgba(255, 107, 87, 0.1);
  transform: scale(1.05);
  z-index: 1;
}

.pricing-card.featured h3 {
  color: white;
}

.featured-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mm-primary);
  color: white;
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.price-value {
  font-size: 3rem;
  font-weight: 800;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: super;
}

.price-period {
  color: var(--mm-text-muted);
}

.pricing-card.featured .price-period {
  color: #D7D9E0;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.pricing-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-list i {
  color: #28a745;
}

/* How it works */
.step-item {
  position: relative;
  padding-bottom: 30px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--mm-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 15px;
}

/* FAQ */
.accordion-item {
  border: 1px solid var(--mm-card-border);
  border-radius: 15px !important;
  margin-bottom: 15px;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  padding: 20px;
}

.accordion-button:not(.collapsed) {
  background-color: var(--mm-secondary);
  color: var(--mm-primary);
}

.accordion-button:focus {
  box-shadow: none;
}

/* Buttons */
.btn-primary {
  background-color: var(--mm-primary);
  border-color: var(--mm-primary);
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--mm-primary-hover);
  border-color: var(--mm-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(255, 107, 87, 0.2);
}

.btn-outline-primary {
  color: var(--mm-primary);
  border-color: var(--mm-primary);
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--mm-primary);
  border-color: var(--mm-primary);
  color: white;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 80px 0 40px;
}

.footer-link {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--mm-primary);
}

.mini-disclaimer {
  font-size: 0.8rem;
  color: #A0A0A0;
  border-top: 1px solid #333;
  padding-top: 20px;
  margin-top: 40px;
}

footer .text-muted {
  color: #B8B8B8 !important;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-headline {
    font-size: 2.5rem;
  }
  .pricing-card.featured {
    transform: none;
    margin: 20px 0;
  }

  .hero-section {
    padding: 30px 0 100px;
  }
}

/* Modern Mobile Navigation Overlay */
.navbar-toggler {
  position: relative;
  z-index: 1100;
  border: none !important;
  padding: 0;
  width: 30px;
  height: 24px;
  transition: all 0.3s ease;
}

.navbar-toggler.open {
  position: fixed;
  right: 15px;
  top: 25px;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--mm-primary);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.navbar-toggler span:nth-child(1) { top: 0px; }
.navbar-toggler span:nth-child(2), 
.navbar-toggler span:nth-child(3) { top: 10px; }
.navbar-toggler span:nth-child(4) { top: 20px; }

.navbar-toggler.open span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
}
.navbar-toggler.open span:nth-child(2) { transform: rotate(45deg); }
.navbar-toggler.open span:nth-child(3) { transform: rotate(-45deg); }
.navbar-toggler.open span:nth-child(4) {
  top: 10px;
  width: 0%;
  left: 50%;
}

.mm-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.mm-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
  z-index:99;
}

.mm-mobile-overlay .nav-list {
  list-style: none;
  padding: 0;
  text-align: center;
}

.mm-mobile-overlay .nav-item {
  margin: 20px 0;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.mm-mobile-overlay.active .nav-item {
  transform: translateY(0);
  opacity: 1;
}

/* Staggered animation for nav items */
.mm-mobile-overlay.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
.mm-mobile-overlay.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
.mm-mobile-overlay.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
.mm-mobile-overlay.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
.mm-mobile-overlay.active .nav-item:nth-child(5) { transition-delay: 0.3s; }
.mm-mobile-overlay.active .nav-item:nth-child(6) { transition-delay: 0.35s; }

.mm-mobile-overlay .nav-link {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2E2E38;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mm-mobile-overlay .nav-link:hover {
  color: var(--mm-primary);
}

.mm-mobile-overlay .btn-mobile {
  margin-top: 30px;
  width: 200px;
}

/* v2.4 — Abrechnungs-Umschalter (Monat/Jahr) */
.mm-billing-toggle { display: inline-flex; background: #fff; border: 1px solid #E6E8EE; border-radius: 50px; padding: 5px; gap: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.mm-billing-toggle button { border: 0; background: transparent; border-radius: 50px; padding: 9px 20px; font-weight: 700; font-size: 0.9rem; color: #5A5F6E; cursor: pointer; transition: all 0.15s ease; }
.mm-billing-toggle button.is-active { background: var(--mm-primary, #FF6B57); color: #fff; }
.mm-billing-toggle .save-badge { display: inline-block; background: #DFF6ED; color: #12633F; font-size: 0.68rem; font-weight: 800; border-radius: 50px; padding: 2px 8px; margin-left: 6px; }
.mm-billing-toggle button.is-active .save-badge { background: rgba(255,255,255,0.25); color: #fff; }

/* ==========================================================================
   v2.9 — Moderner Landing-Overhaul: Aurora, Reveal, Micro-Interactions
   ========================================================================== */

/* --- Scroll-Reveal --- */
/* Ausblenden NUR bei aktivem Effekt-Skript (html.mm-fx) – ohne JS bleibt alles sichtbar. */
html.mm-fx .mm-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,.7,.2,1), transform .7s cubic-bezier(.22,.7,.2,1); will-change: opacity, transform; }
html.mm-fx .mm-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.mm-fx .mm-reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* --- Animierter Aurora-Hero --- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 15% -10%, #FFEAE6 0%, rgba(255,234,230,0) 60%),
              radial-gradient(900px 500px at 100% 0%, #EAF0FF 0%, rgba(234,240,255,0) 55%),
              linear-gradient(135deg, #FFFFFF 0%, #F7F9FC 100%);
}
.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}
.hero-section::before { width: 380px; height: 380px; background: #FF6B57; top: -120px; left: -60px; animation: mmFloat1 14s ease-in-out infinite; }
.hero-section::after  { width: 320px; height: 320px; background: #7AA2FF; bottom: -140px; right: -40px; animation: mmFloat2 18s ease-in-out infinite; }
.hero-section > .container { position: relative; z-index: 1; }
@keyframes mmFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.08); } }
@keyframes mmFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-36px,-24px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .hero-section::before, .hero-section::after { animation: none; } }

/* feiner Raster-Overlay im Hero */
.hero-section .hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(#2E2E38 1px, transparent 1px), linear-gradient(90deg, #2E2E38 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%);
  opacity: .04;
}

/* Gradient-Akzent im Headline-Wort */
.mm-grad {
  background: linear-gradient(100deg, #FF6B57 0%, #FF9678 55%, #7AA2FF 120%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  position: relative; white-space: nowrap;
}

/* Hero-Bild: sanftes Schweben + Eintritt */
.hero-section img.img-fluid {
  animation: mmHeroIn .9s cubic-bezier(.2,.7,.2,1) both;
  transition: transform .5s ease;
}
.hero-section img.img-fluid:hover { transform: translateY(-6px) rotate(-.4deg); }
@keyframes mmHeroIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-section img.img-fluid { animation: none; } }

/* --- Nav: Blur/Shadow beim Scrollen --- */
.navbar { transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
body.mm-scrolled .navbar {
  background-color: rgba(255,255,255,.82) !important;
  -webkit-backdrop-filter: saturate(160%) blur(12px);
          backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 6px 24px rgba(20,25,40,.06);
}

/* --- Buttons: Lift + Shine-Sweep --- */
.btn-primary {
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
  box-shadow: 0 8px 22px rgba(255,107,87,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,107,87,.38); filter: saturate(108%); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -140%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 160%; }
.btn-outline-primary { transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease; }
.btn-outline-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,107,87,.16); }
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-outline-primary { transition: none; }
  .btn-primary:hover, .btn-outline-primary:hover { transform: none; }
  .btn-primary::after { display: none; }
}

/* --- Feature-Cards: Glow-Rand beim Hover --- */
.feature-card { position: relative; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.feature-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,107,87,.55), rgba(122,162,255,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
.feature-card:hover { border-color: transparent; box-shadow: 0 24px 48px rgba(20,25,40,.09); }
.feature-card:hover::before { opacity: 1; }

/* Icon-Kachel in Feature-Cards leicht animieren, falls vorhanden */
.feature-card .feature-icon, .feature-card [class*="icon"] { transition: transform .3s ease; }
.feature-card:hover .feature-icon, .feature-card:hover [class*="icon"] { transform: scale(1.06) rotate(-3deg); }

/* --- Pricing-Cards: Hover-Lift + hervorgehobene Karte --- */
.pricing-card { transition: transform .3s ease, box-shadow .3s ease; }
.pricing-card:hover { transform: translateY(-8px); box-shadow: 0 26px 52px rgba(20,25,40,.10); }

/* --- Zähler --- */
.mm-count { font-variant-numeric: tabular-nums; }

/* --- Section-Übergänge etwas luftiger --- */
section { position: relative; }

/* --- Accordion (FAQ) smoother --- */
.accordion-button { transition: background-color .2s ease, color .2s ease; }

/* KickMetrix: clear product story, readable mobile pricing and less visual noise. */
.hero-section { background: radial-gradient(ellipse at 90% 10%, #ffe4dc 0, transparent 48%), linear-gradient(140deg,#fff,#f3f6fb); }
.hero-headline { font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.hero-subheadline { max-width: 38rem; line-height: 1.75; }
.km-journey { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; padding: 1.5rem; border: 1px solid #e6e8ee; border-radius: 24px; background: #fff; box-shadow: 0 18px 48px #16223808; }
.km-journey-wrap { margin-top: clamp(2.5rem, 5vw, 5rem); }
.km-journey strong { display: block; margin-bottom: .35rem; color: #232936; }
.km-journey p { font-size: .9rem; color: #596273; margin: 0; }
.km-step { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: .7rem; border-radius: 9px; background: #ffeae6; color: #a83625; font-weight: 800; }
@media(max-width:767px) {
 .hero-section { padding: 115px 0 48px; }
 section { padding: 52px 0; }
 .hero-section .btn { width: 100%; }
 .hero-subheadline { font-size: 1rem; }
 .km-journey { grid-template-columns: 1fr; padding: 1.25rem; }
 .km-journey-wrap { margin-top: 2rem; }
 .km-journey > div + div { border-top: 1px solid #e6e8ee; padding-top: 1rem; }
 .trust-bar { row-gap: 1rem; }
 .trust-item span { overflow-wrap: anywhere; font-size: .75rem; }
}

@media(max-width:767px) { footer .row.g-5 { --bs-gutter-x: 1.5rem; } }

@media(max-width:767px) { .container > .row.g-5 { --bs-gutter-x: 1.5rem; } .hero-section .badge { white-space: normal; line-height: 1.5; } }

/* Öffentlicher Leistungsnachweis */
.km-performance-card {
  margin-top: 48px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  position: relative;
  overflow: hidden;
  border: 1px solid #e8eaf0;
  background: linear-gradient(145deg, #fff 0%, #fbfcff 68%, #fff2ee 140%);
  box-shadow: 0 24px 70px rgba(27, 36, 58, .08);
}
.km-performance-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -110px;
  top: -130px;
  border-radius: 50%;
  background: rgba(255, 107, 87, .09);
  filter: blur(2px);
  pointer-events: none;
}
.km-performance-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; position: relative; }
.km-performance-head p { max-width: 680px; line-height: 1.65; }
.km-audit-badge { display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto; padding: .62rem .85rem; border: 1px solid #cdebdc; border-radius: 999px; background: #effaf5; color: #176848; font-size: .78rem; font-weight: 750; }
.km-performance-kpi, .km-performance-chart { border: 1px solid #e7eaf0; border-radius: 20px; background: rgba(255,255,255,.86); }
.km-performance-kpi { padding: 1.35rem; display: flex; flex-direction: column; }
.km-performance-label { color: #697386; font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.km-performance-kpi > strong { display: block; margin: .35rem 0; color: #ff5f49; font-size: clamp(2.7rem, 6vw, 4.25rem); line-height: 1; letter-spacing: -.055em; }
.km-performance-kpi > strong small { font-size: .42em; margin-left: .12em; }
.km-performance-kpi > p { margin: .25rem 0 1.3rem; color: #3f4859; font-weight: 600; }
.km-performance-kpi dl { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid #edf0f4; }
.km-performance-kpi dl > div { display: flex; justify-content: space-between; gap: .8rem; padding: .28rem 0; font-size: .76rem; }
.km-performance-kpi dt { color: #7a8393; font-weight: 600; }
.km-performance-kpi dd { margin: 0; color: #283142; font-weight: 700; text-align: right; }
.km-performance-chart { padding: 1rem 1.1rem .65rem; min-height: 300px; }
.km-chart-heading { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem .3rem .8rem; color: #697386; font-size: .78rem; font-weight: 700; }
.km-chart-canvas { height: 245px; }
.km-performance-note { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; margin-top: 1rem; padding: .85rem 1rem; border-radius: 14px; background: #f5f7fa; color: #606a7b; font-size: .76rem; }
.km-performance-note > i { color: #16845b; font-size: 1rem; }
.km-performance-note a { color: #d64b37; font-weight: 750; text-decoration: none; white-space: nowrap; }
.km-performance-empty { display: flex; align-items: center; gap: 1rem; padding: 1.4rem; border: 1px dashed #d8dce5; border-radius: 18px; background: #fafbfc; }
.km-empty-icon { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px; background: #ffeae6; color: #d64b37; font-size: 1.25rem; }
.km-performance-empty h3 { margin: 0 0 .25rem; font-size: 1rem; }
.km-performance-empty p { margin: 0; color: #687284; font-size: .86rem; }
@media(max-width:767px) {
  .km-performance-card { margin-top: 24px; border-radius: 20px; }
  .km-performance-head { display: block; }
  .km-audit-badge { margin-top: 1rem; }
  .km-performance-chart { min-height: 270px; }
  .km-chart-canvas { height: 220px; }
  .km-performance-note { grid-template-columns: auto 1fr; }
  .km-performance-note a { grid-column: 2; white-space: normal; }
}
