/*
Theme Name: Menting Kältetechnik
Theme URI: https://menting-kaeltetechnik.de
Author: Menting Kältetechnik
Description: Maßgeschneidertes WordPress-Theme für Menting Kältetechnik.
Version: 1.2.0
Text Domain: menting-kaeltetechnik
*/

:root {
  --navy: #062f52;
  --navy-dark: #052844;
  --green: #159c2a;
  --green-dark: #0d851e;
  --ink: #102e4c;
  --muted: #5e6873;
  --ice: #f2f9fc;
  --line: #dce6eb;
  --white: #fff;
  --shadow: 0 10px 28px rgba(15, 53, 80, .08);
  --radius: 12px;
  --max: 1240px;
}

* { box-sizing: border-box; }
[id] { scroll-margin-top: 125px; }
.seo-links { display:flex; flex-wrap:wrap; gap:14px; margin:24px 0 36px; }
.seo-links a { display:block; padding:14px 18px; background:#fff; border:1px solid #dce6eb; border-radius:8px; color:#062f52; font-weight:700; text-decoration:none; }
.seo-links a:hover { border-color:#159c2a; color:#0d851e; }
.seo-article h1 { max-width:920px; font-size:clamp(32px,4vw,54px); line-height:1.12; margin:24px 0 36px; }
.seo-article .eyebrow { text-align:left; margin-top:32px; }
.seo-copy { max-width:850px; font-size:17px; }
.seo-copy h2 { font-size:29px; line-height:1.25; margin:36px 0 16px; }
.seo-copy h3 { font-size:21px; margin:24px 0 8px; }
.seo-copy p,.seo-copy li { color:#46535e; }
.seo-copy a { color:#0c5f93; text-underline-offset:3px; }
.seo-article .btn { margin:24px 0; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 80; height: 112px; background: rgba(255,255,255,.98); border-bottom: 1px solid #edf1f3; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand img { width: 132px; height: 92px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 42px; font-weight: 700; }
.main-nav a, .main-nav button { padding: 0; color: inherit; background: none; border: 0; font-weight: 700; text-decoration: none; transition: color .2s; cursor: pointer; }
.main-nav a:hover, .main-nav button:hover { color: var(--green); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 52px; padding: 13px 24px; color: #fff; background: linear-gradient(135deg,var(--green),#0b8d1c); border: 0; border-radius: 8px; box-shadow: 0 12px 24px rgba(21,156,42,.18); text-decoration: none; font-weight: 700; cursor: pointer; }
.btn:hover { background: linear-gradient(135deg,#13aa2a,var(--green-dark)); }
.btn-outline { color: var(--navy); background: #fff; border: 1px solid #0c527e; box-shadow: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px auto; background: var(--navy); }

.hero { background: #fbfdfe; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 615px; }
.hero-copy { padding: 82px 64px max(62px,7vw) max(24px,calc((100vw - var(--max))/2)); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { max-width: 570px; margin: 0 0 16px; font-size: clamp(45px,4.2vw,68px); line-height: 1.02; letter-spacing: -2px; }
.hero h2 { margin: 0 0 17px; color: var(--green); font-size: 26px; }
.hero p { max-width: 600px; margin: 0 0 28px; color: #3c4650; font-size: 17px; }
.hero .btn { align-self: flex-start; }
.trust-row { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 38px; font-size: 14px; font-weight: 700; }
.trust-row span::before { content: '✓'; display: inline-grid; width: 19px; height: 19px; margin-right: 9px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; }
.hero-image { min-height: 615px; background-position: center; background-size: cover; }

.section { padding: 76px 0 90px; }
.section-ice { background: var(--ice); }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-align: center; text-transform: uppercase; }
.section-title { margin: 0; font-size: clamp(34px,3.3vw,48px); line-height: 1.15; text-align: center; letter-spacing: -1px; }
.section-title::after { content: ''; display: block; width: 34px; height: 3px; margin: 20px auto 42px; background: var(--green); border-radius: 2px; }
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.service-card { min-height: 326px; padding: 34px 28px; background: #fff; border: 1px solid #e3ebef; border-radius: var(--radius); box-shadow: var(--shadow); }
.service-icon { display: grid; width: 62px; height: 62px; margin: 0 auto 10px; place-items: center; color: var(--green); font-size: 42px; }
.service-card:nth-child(odd) .service-icon { color: #1474bc; }
.service-card h3 { margin: 5px 0 18px; text-align: center; font-size: 18px; }
.check-list { padding: 0; margin: 0; list-style: none; color: var(--muted); }
.check-list li { margin: 7px 0; }
.check-list li::before { content: '✓'; display: inline-grid; width: 16px; height: 16px; margin-right: 9px; place-items: center; color: var(--green); background: #edfaef; border: 1px solid #ccebd1; border-radius: 50%; font-size: 10px; }

.benefit-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.benefit { padding: 0 34px; text-align: center; border-right: 1px solid var(--line); }
.benefit:last-child { border: 0; }
.benefit-icon { color: var(--green); font-size: 46px; font-weight: 300; line-height: 1; }
.benefit h3 { margin: 16px 0 10px; font-size: 17px; }
.benefit p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 66px; counter-reset: step; }
.step { position: relative; text-align: center; counter-increment: step; }
.step:not(:last-child)::after { content: '→'; position: absolute; top: 48px; right: -42px; color: var(--green); }
.step-icon { position: relative; display: grid; width: 94px; height: 94px; margin: 0 auto 20px; place-items: center; background: #fff; border-radius: 50%; box-shadow: var(--shadow); font-size: 35px; }
.step-icon::before { content: counter(step); position: absolute; top: -4px; left: -4px; display: grid; width: 22px; height: 22px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 11px; font-weight: 700; }
.step h3 { margin: 0 0 12px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.reference-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 15px; }
.reference-card { position: relative; min-height: 280px; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: #dfe7eb; box-shadow: var(--shadow); cursor: pointer; text-align: left; }
.reference-card img { width: 100%; height: 280px; object-fit: cover; transition: transform .35s; }
.reference-card:hover img { transform: scale(1.04); }
.reference-card::after { content: ''; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent,rgba(2,34,59,.96)); }
.reference-caption { position: absolute; z-index: 2; right: 15px; bottom: 16px; left: 15px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; }
.reference-caption small { display: block; margin-bottom: 5px; color: #62ce73; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.reference-action { margin-top: 35px; text-align: center; }

.contact { padding: 75px 0; color: #fff; background: var(--navy); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.contact .eyebrow { text-align: left; }
.contact h2 { margin: 0 0 18px; color: #fff; font-size: clamp(38px,4vw,56px); line-height: 1.2; }
.contact p { color: #dce7ee; }
.contact-list { padding: 0; margin: 25px 0 0; list-style: none; }
.contact-list li { margin: 11px 0; }
.contact-list a { text-decoration: none; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; color: #273847; background: #fff; border: 0; border-radius: 6px; outline: 0; }
.contact-form input:focus, .contact-form textarea:focus { box-shadow: 0 0 0 3px rgba(47,190,68,.35); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.span-2 { grid-column: 1 / -1; }
.form-note { margin: 0; font-size: 12px; }
.form-note button { padding: 0; color: #fff; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.contact-form .btn { width: 100%; }
.form-message { padding: 10px 14px; border-radius: 6px; background: rgba(255,255,255,.12); }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 46px 0 50px; color: #fff; background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,.15); }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3,1fr); gap: 70px; }
.footer-brand img { width: 115px; height: 105px; object-fit: contain; filter: brightness(.78); }
.footer-brand p { font-size: 12px; color: #d4e0e7; }
.site-footer h3 { margin: 12px 0 15px; font-size: 14px; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li { margin: 7px 0; color: #d4e0e7; font-size: 13px; }
.site-footer a, .site-footer button { padding: 0; color: inherit; background: none; border: 0; text-decoration: none; cursor: pointer; }

.modal { position: fixed; z-index: 200; inset: 0; display: none; padding: 28px; background: rgba(2,25,43,.84); }
.modal.is-open { display: grid; place-items: center; }
.modal-panel { position: relative; width: min(980px,100%); max-height: calc(100vh - 56px); padding: 42px; overflow: auto; background: #fff; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.modal-wide .modal-panel { width: min(1120px,100%); }
.modal-close { position: sticky; z-index: 3; top: -28px; float: right; width: 40px; height: 40px; margin: -24px -24px 0 15px; color: var(--navy); background: #eef4f6; border: 0; border-radius: 50%; cursor: pointer; font-size: 25px; }
.modal-label { margin: 0 0 3px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.modal h2 { margin: 0 0 28px; font-size: 38px; }
.modal h3 { margin: 30px 0 8px; }
.modal p, .modal li { color: #46535e; }
.modal a { color: #0c5f93; }
.project { padding: 28px 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; }
.project-tag { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; }
.project h3 { margin-top: 5px; }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.gallery button { padding: 0; overflow: hidden; background: #e8eef0; border: 0; border-radius: 7px; cursor: zoom-in; }
.gallery img { width: 100%; height: 240px; object-fit: cover; transition: transform .25s; }
.gallery button:hover img { transform: scale(1.025); }
.lightbox { position: fixed; z-index: 300; inset: 0; display: none; padding: 24px; background: rgba(0,15,27,.95); }
.lightbox.is-open { display: grid; place-items: center; }
.lightbox img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; object-fit: contain; }
.lightbox-close { position: absolute; top: 18px; right: 20px; width: 44px; height: 44px; color: #fff; background: rgba(255,255,255,.13); border: 0; border-radius: 50%; cursor: pointer; font-size: 28px; }

@media (max-width: 980px) {
  .site-header { height: 88px; }
  .brand img { width: 108px; height: 75px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 88px; right: 0; left: 0; display: none; padding: 22px 24px; flex-direction: column; align-items: flex-start; gap: 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .header-inner > .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 58px max(24px,calc((100vw - var(--max))/2)); }
  .hero-image { min-height: 430px; order: -1; }
  .service-grid, .benefit-grid { grid-template-columns: repeat(2,1fr); }
  .benefit:nth-child(2) { border-right: 0; }
  .benefit { padding: 28px; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step::after { display: none; }
  .reference-grid { grid-template-columns: repeat(3,1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 30px,var(--max)); }
  .hero-image { min-height: 310px; }
  .hero h1 { font-size: 43px; letter-spacing: -1.5px; }
  .hero h2 { font-size: 22px; }
  .trust-row { display: grid; gap: 12px; }
  .section { padding: 58px 0 66px; }
  .service-grid, .benefit-grid, .steps, .reference-grid, .gallery, .footer-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .benefit { border-right: 0; }
  .reference-card, .reference-card img { height: 330px; }
  .contact-form { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .modal { padding: 10px; }
  .modal-panel { max-height: calc(100vh - 20px); padding: 28px 20px; }
  .modal-close { top: -18px; margin: -15px -7px 0 10px; }
  .modal h2 { font-size: 31px; }
  .gallery img { height: 300px; }
  .footer-grid > div:last-child { grid-column: auto; }
}
