/*
Theme Name: MC Pipechecker Child
Theme URI: https://mcpipechecker.com/
Description: Child Theme für den MC Pipechecker Onepager auf Basis von Blocksy.
Author: Dein Name
Template: blocksy
Version: 1.0.0
Text Domain: mcpipechecker-child
*/

:root {
  --mpc-bg: #0e1115;
  --mpc-bg-soft: #11151b;
  --mpc-panel: #171c23;
  --mpc-panel-2: #1b2028;
  --mpc-border: rgba(39, 176, 89, 0.16);
  --mpc-border-soft: rgba(255, 255, 255, 0.07);
  --mpc-green: #27b059;
  --mpc-green-dark: #00893c;
  --mpc-text: #f5f7f6;
  --mpc-muted: #a3abb7;
  --mpc-muted-2: #7e8795;
  --mpc-max: 1120px;
  --mpc-radius: 10px;
  --mpc-radius-lg: 16px;
  --mpc-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);

  --mpc-font-heading: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  --mpc-font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--mpc-bg);
  color: var(--mpc-text);
  font-family: var(--mpc-font-body);
}

body.home,
body.page {
  background: var(--mpc-bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
.mpc-h1,
.mpc-h2,
.mpc-card h3,
.mpc-scenario-card h3,
.mpc-benefit h3,
.mpc-form-card h3,
.mpc-tech h3,
.mpc-norms h3 {
  font-family: var(--mpc-font-heading);
}

button,
input,
textarea,
select,
.mpc-btn,
#header,
#header a,
.mpc-kicker,
.mpc-stat,
.mpc-form-card .fluentform {
  font-family: var(--mpc-font-body);
}

.entry-content {
  margin: 0;
}

.entry-content > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.site-main,
#main,
.ct-container-full {
  background: var(--mpc-bg);
}

/* Header */

#header,
header#header {
  background: rgba(10, 13, 17, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

#header a {
  color: rgba(255, 255, 255, 0.78);
}

#header a:hover {
  color: var(--mpc-green);
}

.nav-cta > a,
[class*="menu"] .nav-cta > a {
  background: var(--mpc-green);
  color: #061009 !important;
  border-radius: 4px;
  padding: 10px 16px !important;
  font-weight: 700;
}

.nav-cta > a:hover,
[class*="menu"] .nav-cta > a:hover {
  background: #33c969;
  color: #061009 !important;
}

/* General Sections */

.mpc-section {
  position: relative;
  padding: 112px 20px;
  background: var(--mpc-bg);
  color: var(--mpc-text);
  scroll-margin-top: 92px;
}

.mpc-section:nth-of-type(even) {
  background: var(--mpc-bg-soft);
}

.mpc-inner,
.mpc-section > .wp-block-group__inner-container {
  width: min(100%, var(--mpc-max));
  margin-inline: auto;
}

.mpc-kicker {
  margin: 0 0 10px;
  color: var(--mpc-green);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 800;
}

.mpc-h1,
.mpc-h2 {
  margin: 0;
  color: var(--mpc-text);
  text-align: center;
  font-family: var(--mpc-font-heading);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.mpc-h1 {
  max-width: 840px;
  margin-inline: auto;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
}

.mpc-h1 span {
  color: var(--mpc-green);
}

.mpc-h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.mpc-lead,
.mpc-section-lead {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--mpc-muted);
  text-align: center;
  font-size: 16px;
  line-height: 1.75;
}

.mpc-section-lead {
  max-width: 620px;
  font-size: 15px;
}

/* Buttons */

.mpc-btn-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.mpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.mpc-btn:hover {
  transform: translateY(-1px);
}

.mpc-btn-primary {
  background: var(--mpc-green);
  color: #061009;
}

.mpc-btn-primary:hover {
  background: #34cc6d;
  color: #061009;
}

.mpc-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--mpc-text);
  background: transparent;
}

.mpc-btn-secondary:hover {
  border-color: var(--mpc-green);
  color: var(--mpc-green);
}

/* Hero */

.mpc-hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(39, 176, 89, 0.14), transparent 26%),
    linear-gradient(180deg, #080b0f 0%, #0e1115 74%);
}

.mpc-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--mpc-bg));
  pointer-events: none;
}

.mpc-hero-inner {
  position: relative;
  z-index: 2;
}

/* Stats */

.mpc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 58px;
}

.mpc-stat {
  text-align: center;
}

.mpc-icon,
.mpc-card-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--mpc-green);
  background: rgba(39, 176, 89, 0.09);
  border: 1px solid rgba(39, 176, 89, 0.18);
  font-size: 15px;
}

.mpc-stat strong {
  display: block;
  color: var(--mpc-green);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.mpc-stat span {
  display: block;
  margin-top: 8px;
  color: var(--mpc-muted-2);
  font-size: 13px;
}

/* Cards */

.mpc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.mpc-card {
  min-height: 190px;
  padding: 26px;
  border-radius: var(--mpc-radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
    var(--mpc-panel);
  border: 1px solid var(--mpc-border-soft);
  box-shadow: 0 0 0 1px rgba(39, 176, 89, 0.02);
}

.mpc-card:hover {
  border-color: rgba(39, 176, 89, 0.36);
}

.mpc-card .mpc-card-icon {
  margin-inline: 0;
  margin-bottom: 18px;
}

.mpc-card h3 {
  margin: 0 0 10px;
  color: var(--mpc-text);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.mpc-card p {
  margin: 0;
  color: var(--mpc-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Media / Technik */

.mpc-tech .wp-block-columns {
  gap: 44px;
  align-items: center !important;
  margin-top: 44px;
}

.mpc-tech h3,
.mpc-norms h3 {
  color: var(--mpc-text);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.mpc-tech p,
.mpc-tech li {
  color: var(--mpc-muted);
  font-size: 15px;
  line-height: 1.75;
}

.mpc-tech ul {
  padding-left: 20px;
}

.mpc-tech li::marker {
  color: var(--mpc-green);
}

.mpc-media-img,
.mpc-tech img,
.mpc-map-img {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--mpc-shadow);
}

/* Scenarios */

.mpc-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.mpc-scenario-card {
  overflow: hidden;
  border-radius: var(--mpc-radius);
  background: var(--mpc-panel);
  border: 1px solid var(--mpc-border-soft);
}

.mpc-scenario-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.04);
}

.mpc-scenario-card div {
  padding: 20px;
}

.mpc-scenario-card h3 {
  margin: 0 0 8px;
  color: var(--mpc-text);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.mpc-scenario-card p {
  margin: 0;
  color: var(--mpc-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Vorteile */

.mpc-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 52px;
  text-align: center;
}

.mpc-benefit h3 {
  margin: 0 0 8px;
  color: var(--mpc-text);
  font-size: 17px;
}

.mpc-benefit p {
  margin: 0;
  color: var(--mpc-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Map */

.mpc-map-wrap {
  margin-top: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #090c10;
  box-shadow: var(--mpc-shadow);
}

.mpc-map-wrap img {
  width: 100%;
  display: block;
}

/* Norms */

.mpc-norm-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.mpc-norm-list {
  margin-top: 18px;
  padding: 30px;
  border-radius: var(--mpc-radius);
  background: var(--mpc-panel);
  border: 1px solid var(--mpc-border-soft);
}

.mpc-norm-list ul {
  columns: 2;
  gap: 42px;
  margin: 0;
  padding-left: 18px;
}

.mpc-norm-list li {
  break-inside: avoid;
  margin-bottom: 12px;
  color: var(--mpc-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mpc-norm-list strong {
  color: var(--mpc-green);
}

/* Kontakt */

.mpc-contact {
  background:
    radial-gradient(circle at 50% 20%, rgba(39, 176, 89, 0.12), transparent 24%),
    var(--mpc-bg);
}

.mpc-form-card {
  max-width: 460px;
  margin: 42px auto 0;
  padding: 28px;
  border-radius: var(--mpc-radius);
  background: var(--mpc-panel);
  border: 1px solid var(--mpc-border-soft);
  box-shadow: var(--mpc-shadow);
}

.mpc-form-card h3 {
  margin: 0 0 18px;
  color: var(--mpc-text);
  font-size: 22px;
  letter-spacing: -0.03em;
}

/* Fluent Forms Styling */

.mpc-form-card .fluentform {
  color: var(--mpc-text);
}

.mpc-form-card .fluentform label {
  color: var(--mpc-text);
  font-size: 13px;
  font-weight: 600;
}

.mpc-form-card .fluentform .ff-el-form-control {
  min-height: 42px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #2a2825;
  color: var(--mpc-text);
  box-shadow: none;
}

.mpc-form-card .fluentform textarea.ff-el-form-control {
  min-height: 110px;
}

.mpc-form-card .fluentform .ff-el-form-control:focus {
  border-color: var(--mpc-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 176, 89, 0.16);
}

.mpc-form-card .fluentform .ff-btn-submit {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 3px;
  background: var(--mpc-green);
  color: #061009;
  font-weight: 800;
}

.mpc-form-card .fluentform .ff-btn-submit:hover {
  background: #34cc6d;
  color: #061009;
}

.mpc-direct-contact {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.mpc-direct-contact a {
  min-width: 150px;
  padding: 13px 16px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.13);
  color: var(--mpc-text);
}

.mpc-direct-contact a:first-child {
  background: var(--mpc-green);
  color: #061009;
  border-color: var(--mpc-green);
}

/* Footer */

footer,
.ct-footer {
  background: #0a0d11;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--mpc-muted);
}

/* Responsive */

@media (max-width: 900px) {
  .mpc-section {
    padding: 86px 18px;
  }

  .mpc-hero {
    min-height: 640px;
  }

  .mpc-stats-grid,
  .mpc-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mpc-card-grid,
  .mpc-scenario-grid,
  .mpc-norm-card-row {
    grid-template-columns: 1fr 1fr;
  }

  .mpc-norm-list ul {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .mpc-section {
    padding: 72px 16px;
  }

  .mpc-h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .mpc-h2 {
    font-size: 30px;
  }

  .mpc-stats-grid,
  .mpc-card-grid,
  .mpc-scenario-grid,
  .mpc-benefit-grid,
  .mpc-norm-card-row {
    grid-template-columns: 1fr;
  }

  .mpc-card {
    min-height: auto;
  }

  .mpc-form-card {
    padding: 22px;
  }
}