/*
Theme Name:   Brenner Metallbau
Theme URI:    https://www.brenner-metallbau.de
Template:     generatepress
Author:       Brenner Metallbau
Description:  Child-Theme für GeneratePress – One-Page-Design für Brenner Metallbau (Geländer, Treppen, Balkone, Metallbau). Inhalte über ACF & Custom Post Types.
Version:      1.19.1
License:      GNU General Public License v2 or later
Text Domain:  brenner-metallbau
*/

/* ===== Self-hosted fonts (DSGVO: no Google CDN request) =====
   Defined here in the LINKED stylesheet with same-origin file URLs, so they load
   under a Content-Security-Policy that allows 'self' (an inline <style> or a
   data: URI would be blocked by a strict CSP). */
@font-face {
  font-family: 'Archivo';
  font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('assets/fonts/archivo-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/rajdhani-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/rajdhani-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/rajdhani-700.woff2') format('woff2');
}
:root {
  --brand: #ae2045;
  --brand-hover: #c62651;
  --ink: #16181a;
  --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Rajdhani', 'Archivo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x:clip verhindert horizontales Verschieben am Smartphone (langes Wort,
   eingebettetes Fremd-Element wie ein reCAPTCHA-Badge o. Ä.) – ohne den
   sticky-Header zu brechen (anders als overflow:hidden). */
html { scroll-behavior: smooth; overflow-x: clip; }
/* Leichte gebürstete Metallstruktur + sanfter Verlauf über die gesamte Seite.
   Die hellen, transparenten Sektionen (Über uns, Projekte, Ablauf) zeigen diese
   Fläche voll durch; die Akzentbänder (Leistungen, Kontakt) setzen einen etwas
   graueren Metall-Ton darüber. Alles über die verlinkte style.css (CSP-konform). */
body {
  font-family: var(--font-sans); color: #1a1c1e; -webkit-font-smoothing: antialiased;
  background-color: #eef0f1;
  background-image: linear-gradient(180deg, rgba(252,252,252,0.88) 0%, rgba(238,240,242,0.90) 55%, rgba(231,233,235,0.92) 100%), url('assets/img/steel-light.png');
  background-repeat: no-repeat, repeat;
  background-size: cover, 760px auto;
  background-position: top center;
  overflow-x: clip; max-width: 100%;
}
::selection { background: var(--brand); color: #fff; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font-family: inherit; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand) !important; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

@keyframes bmRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }

.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow--light { color: #e59bb0; }

.h2 { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1.2; color: var(--ink); overflow-wrap: break-word; }
.hero__title, .project-card__title, .ptile__title { overflow-wrap: break-word; }
.h2--wide { font-weight: 800; font-size: 30px; line-height: 1.12; max-width: 640px; }
.h2--tight { font-weight: 800; font-size: 28px; line-height: 1.16; }
.h2--light { font-weight: 800; font-size: 30px; line-height: 1.12; color: #fff; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 52px; }
.section-head--stack { display: block; margin-bottom: 48px; }
.section-head__note { font-size: 16px; color: #62666b; max-width: 340px; line-height: 1.55; }
.section-head__note--light { color: #9aa0a8; max-width: 320px; font-size: 15px; }

.btn { display: inline-block; padding: 15px 30px; font-weight: 700; font-size: 15px; border-radius: 8px; border: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid #cfd2d6; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--muted { background: #f6f6f4; border: 1.5px solid #d9dadd; color: var(--ink); padding: 13px 26px; }
.btn--muted:hover { border-color: var(--ink); }
.btn--block { width: 100%; margin-top: 4px; padding: 15px 24px; border-radius: 9px; }

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid #ececec; }
.nav { padding-top: 15px; padding-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 13px; }
.nav__mark { height: 34px; width: auto; display: block; }
.nav__logo { height: 56px; width: auto; display: block; }
.nav__brand--logo { gap: 0; }
.nav__wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.nav__wordmark-top { font-weight: 900; font-size: 16px; letter-spacing: 0.5px; color: #1a1c1e; }
.nav__wordmark-bottom { font-size: 10.5px; letter-spacing: 3px; color: #8b9199; font-weight: 600; text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav__link { padding: 9px 14px; font-size: 14px; font-weight: 600; color: #4a4e54; border-radius: 6px; transition: color .15s ease; }
.nav__link:hover { color: var(--brand); }
.nav__cta { margin-left: 8px; padding: 11px 22px; font-size: 14px; font-weight: 700; background: var(--brand); color: #fff; border-radius: 7px; transition: background-color .15s ease; }
.nav__cta:hover { background: var(--brand-hover); }

/* Hero */
.hero { position: relative; background-color: #eef0f2; background-image: linear-gradient(180deg, rgba(247,248,249,0.66), rgba(255,255,255,0.9)), url('assets/img/steel-light.png'); background-size: cover, 560px auto; background-position: center; border-bottom: 1px solid #e0e2e4; overflow: hidden; }
.hero__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand); }
.hero__inner { padding: 102px 32px 88px; animation: bmRise 0.7s ease both; }
.hero__eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; color: #7c8188; margin-bottom: 24px; }
.hero__title { font-family: var(--font-display); font-weight: 600; font-size: 46px; line-height: 1.16; color: var(--ink); max-width: 840px; margin-bottom: 26px; }
.hero__title-accent { color: var(--brand); }
.hero__lead { font-size: 20px; line-height: 1.55; color: #4c5056; max-width: 600px; margin-bottom: 38px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__badge { display: inline-flex; align-items: center; gap: 12px; padding: 11px 18px; border-radius: 10px; background-image: linear-gradient(rgba(20,22,25,0.5), rgba(20,22,25,0.5)), url('assets/img/steel-dark.png'); background-size: cover; border: 1px solid rgba(0,0,0,0.18); box-shadow: 0 10px 22px -14px rgba(0,0,0,0.6); }
.hero__badge-code { font-family: var(--font-display); font-size: 12px; color: #fff; letter-spacing: 0.5px; }
.hero__badge-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.25); }
.hero__badge-label { font-size: 13.5px; color: #e7e8ea; font-weight: 600; }
.hero__process { font-size: 14px; color: #6b7077; font-weight: 600; }

/* Full-bleed image */
.hero-image { width: 100%; height: min(58vw, 560px); overflow: hidden; animation: bmRise 0.9s ease both; }
.hero-image picture, .hero-image__img { display: block; width: 100%; height: 100%; }
.hero-image__img { object-fit: cover; object-position: center 40%; }

/* Über uns */
.about { padding-top: 116px; padding-bottom: 116px; }
.about__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px; align-items: stretch; }
.about__text { font-size: 18px; line-height: 1.62; color: #3f4349; margin-bottom: 22px; }
.about__text p { margin-bottom: 16px; }
.about__stats { display: flex; gap: 26px; flex-wrap: wrap; padding-top: 8px; }
.about__stat-value { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.about__stat-label { font-size: 13px; color: #7c8188; font-weight: 600; margin-top: 4px; }
.about__stat-divider { width: 1px; background: #e2e3e5; }
.about__panel { border-radius: 16px; overflow: hidden; position: relative; min-height: 300px; background-image: linear-gradient(140deg, rgba(20,22,25,0.68), rgba(20,22,25,0.88)), url('assets/img/steel-dark.png'); background-size: cover; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; }
.about__panel-bar { position: absolute; left: 0; top: 0; width: 5px; height: 64px; background: var(--brand); }
.about__panel-title { font-family: var(--font-display); font-size: 26px; line-height: 1.28; color: #fff; }
.about__panel-title-accent { color: #e59bb0; }
.about__panel-text { font-size: 14.5px; color: #9aa0a8; line-height: 1.55; margin-top: 14px; max-width: 300px; }

/* Leistungen */
.services { background-color: #ecedeb; background-image: linear-gradient(180deg, rgba(236,237,236,0.80), rgba(223,225,226,0.90)), url('assets/img/steel-light.png'); background-repeat: no-repeat, repeat; background-size: cover, 760px auto; background-position: center; border-top: 1px solid #e2e3e2; border-bottom: 1px solid #e2e3e2; padding-top: 116px; padding-bottom: 116px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { background: #fff; border: 1px solid #e7e7e5; border-radius: 14px; padding: 30px 28px 34px; transition: box-shadow .2s, transform .2s; }
.service-card:hover { box-shadow: 0 18px 40px -24px rgba(0,0,0,0.35); transform: translateY(-4px); }
.service-card__num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #c8c8c4; }
.service-card__rule { width: 46px; height: 3px; background: var(--brand); margin: 16px 0 22px; border-radius: 2px; }
.service-card__title { font-weight: 800; font-size: 22px; color: var(--ink); line-height: 1.15; margin-bottom: 10px; }
.service-card__desc { font-size: 14.5px; color: #62666b; line-height: 1.55; }

/* Projekte */
.projects { padding-top: 116px; padding-bottom: 116px; }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { background: #fff; border: 1px solid #e8e8e6; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: box-shadow .25s ease, transform .25s ease; }
.project-card:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,0.38); transform: translateY(-6px); }
.project-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e9e7; }
.project-card__media picture { display: block; width: 100%; height: 100%; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card__chip { position: absolute; left: 14px; bottom: 14px; padding: 6px 13px; background: rgba(255,255,255,0.94); backdrop-filter: blur(6px); border-radius: 100px; font-size: 11px; font-weight: 800; letter-spacing: 0.7px; text-transform: uppercase; color: var(--brand); box-shadow: 0 4px 12px -4px rgba(0,0,0,0.25); }
.project-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.project-card__title { font-weight: 800; font-size: 20px; color: var(--ink); line-height: 1.25; margin-bottom: 11px; }
.project-card__desc { font-size: 14.5px; color: #62666b; line-height: 1.55; flex: 1; }
.project-card__meta { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #efefed; font-size: 13px; font-weight: 600; }
.project-card__ort { color: #3f4349; }
.project-card__dot { width: 3px; height: 3px; background: #c4c4c0; border-radius: 50%; }
.project-card__jahr { color: #8b9199; }

/* Projekt-Kacheln (Thema -> öffnet Bildergalerie) */
.ptile { display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid #e8e8e6; border-radius: 18px; overflow: hidden; padding: 0; font: inherit; color: inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: box-shadow .25s ease, transform .25s ease; }
.ptile:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,0.38); transform: translateY(-6px); }
.ptile__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e9e7; display: block; }
.ptile__media picture { display: block; width: 100%; height: 100%; }
.ptile__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ptile:hover .ptile__media img { transform: scale(1.05); }
.ptile__badge { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 6px 13px; background: rgba(255,255,255,0.94); backdrop-filter: blur(6px); border-radius: 100px; font-size: 11px; font-weight: 800; letter-spacing: 0.7px; text-transform: uppercase; color: var(--brand); box-shadow: 0 4px 12px -4px rgba(0,0,0,0.25); }
.ptile__hover { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; background: rgba(20,22,25,0.42); opacity: 0; transition: opacity .2s ease; }
.ptile:hover .ptile__hover { opacity: 1; }
.ptile__hover-txt { padding: 11px 20px; border: 1.5px solid rgba(255,255,255,0.85); border-radius: 8px; color: #fff; font-weight: 700; font-size: 14px; }
.ptile__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.ptile__title { font-weight: 800; font-size: 20px; color: var(--ink); line-height: 1.22; }
.ptile__sub { font-size: 14px; color: #62666b; }

/* Slideshow-Steuerung der Lightbox */
.bm-lightbox__stage { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 95vw; max-height: 90vh; }
.bm-lightbox__stage .bm-lightbox__img { max-height: 82vh; }
.bm-lightbox__cap { color: #e7e8ea; font-size: 14px; font-weight: 600; text-align: center; }
.bm-lightbox__cap:empty { display: none; }
.bm-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; border-radius: 50%; cursor: pointer; display: none; align-items: center; justify-content: center; transition: background .15s ease; }
.bm-lightbox__nav:hover { background: rgba(255,255,255,.28); }
.bm-lightbox__prev { left: 18px; }
.bm-lightbox__next { right: 18px; }
.bm-lightbox.is-multi .bm-lightbox__nav { display: flex; }
.bm-lightbox__counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #cfd1d4; font-size: 13px; font-weight: 600; letter-spacing: .5px; }

/* Focal-point utilities (allow-listed tokens -> object-position) */
.focal-center    { object-position: center center; }
.focal-top       { object-position: center top; }
.focal-bottom    { object-position: center bottom; }
.focal-center-30 { object-position: center 30%; }
.focal-center-45 { object-position: center 45%; }

.img-fallback { width: 100%; height: 100%; background: repeating-linear-gradient(135deg, #e9e9e7, #e9e9e7 12px, #e3e3e1 12px, #e3e3e1 24px); }

/* Galerie – Masonry: volle Bild-Seitenverhältnisse, größere Kacheln, kein
   hartes Anschneiden (die Bilder werden nicht in feste Höhen gequetscht). */
.gallery { background: var(--ink); }
.gallery .container { padding-top: 116px; padding-bottom: 116px; }
.gallery__grid { columns: 3; column-gap: 20px; }
.gallery__tile { position: relative; break-inside: avoid; margin: 0 0 20px; border-radius: 16px; overflow: hidden; background: #202226; }
.gallery__tile picture { display: block; }
.gallery__tile img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.gallery__tile:hover img { transform: scale(1.045); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 18px 15px; color: #fff; font-weight: 600; font-size: 15px; letter-spacing: .2px; background: linear-gradient(0deg, rgba(10,11,12,.82), rgba(10,11,12,0)); opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.gallery__tile:hover .gallery__cap { opacity: 1; transform: none; }

/* Betrieb */
.process { padding-top: 116px; padding-bottom: 116px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.process__text { font-size: 16.5px; color: #62666b; line-height: 1.6; margin: 22px 0 30px; }
.process__cert { display: inline-flex; align-items: center; gap: 16px; padding: 18px 22px; background: #f6f6f4; border: 1px solid #e7e7e5; border-radius: 12px; }
.process__cert-badge { width: 52px; height: 52px; border-radius: 10px; background: var(--brand); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: #fff; text-align: center; line-height: 1.05; }
.process__cert-title { font-weight: 800; font-size: 16px; color: var(--ink); }
.process__cert-sub { font-size: 13.5px; color: #62666b; font-weight: 600; }
.process__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.process-card { background: #fff; border: 1px solid #e7e7e5; border-radius: 14px; padding: 26px 24px; }
.process-card__num { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--brand); line-height: 1; margin-bottom: 14px; }
.process-card__title { font-weight: 800; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.process-card__desc { font-size: 13.5px; color: #62666b; line-height: 1.5; }

/* Kontakt */
.contact { background-color: #ecedeb; background-image: linear-gradient(180deg, rgba(236,237,236,0.80), rgba(223,225,226,0.90)), url('assets/img/steel-light.png'); background-repeat: no-repeat, repeat; background-size: cover, 760px auto; background-position: center; border-top: 1px solid #e2e3e2; }
.contact__grid { padding-top: 116px; padding-bottom: 116px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact__text { font-size: 16.5px; color: #62666b; line-height: 1.6; margin: 20px 0 36px; }
.contact__details { display: flex; flex-direction: column; gap: 22px; }
.contact__row { display: flex; gap: 16px; align-items: flex-start; }
.contact__label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #8b9199; width: 74px; flex-shrink: 0; padding-top: 2px; }
.contact__value { font-size: 16px; color: var(--ink); font-weight: 600; line-height: 1.45; }
.contact__link { transition: color .15s ease; }
.contact__link:hover { color: var(--brand); }

.contact-form-panel { background: #fff; border: 1px solid #e7e7e5; border-radius: 18px; padding: 36px 34px; box-shadow: 0 24px 50px -34px rgba(0,0,0,0.3); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form__label-row { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #8b9199; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form__note { font-size: 12px; color: #9aa0a8; line-height: 1.5; text-align: center; }
.contact-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: #62666b; line-height: 1.45; }
.contact-consent input { margin-top: 2px; }
/* Honeypot — visually and semantically hidden from real users. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 13px; font-weight: 700; color: #3a3e44; }
.field input, .field textarea, .field select { padding: 12px 14px; border: 1.5px solid #dcdcda; border-radius: 8px; font-size: 15px; color: var(--ink); background: #fff; }
.field textarea { resize: vertical; line-height: 1.5; }
.field select { appearance: none; }
.contact-success { text-align: center; padding: 40px 8px; }
.contact-success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; margin: 0 auto 22px; }
.contact-success__title { font-family: var(--font-display); font-weight: 400; font-size: 21px; color: var(--ink); margin-bottom: 12px; }
.contact-success__text { font-size: 16px; color: #62666b; line-height: 1.55; max-width: 340px; margin: 0 auto 26px; }

/* Legal pages */
.legal { padding-top: 84px; padding-bottom: 96px; max-width: 820px; }
.legal__title { margin: 6px 0 28px; }
.legal__body { font-size: 16px; line-height: 1.7; color: #3f4349; }
.legal__body p { margin-bottom: 16px; }
.legal__back { margin-top: 36px; }

/* Footer */
.site-footer { background: var(--ink); }
.site-footer__inner { padding-top: 44px; padding-bottom: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__mark { width: 44px; height: 44px; background: #fff; border-radius: 7px; display: flex; align-items: center; justify-content: center; padding: 7px; }
.site-footer__mark img { width: 100%; display: block; }
.site-footer__name { font-weight: 900; font-size: 16px; color: #fff; letter-spacing: 0.5px; }
.site-footer__addr { font-size: 12.5px; color: #8b9199; font-weight: 600; }
.site-footer__legal { font-size: 13px; color: #7b8188; font-weight: 600; text-align: right; }
.site-footer__link { color: #b9bec4; }
.site-footer__link:hover { color: #fff; }
.social { display: inline-flex; gap: 8px; margin-top: 12px; }
.social__link { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid rgba(255,255,255,0.16); color: #b9bec4; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.social__link svg { width: 17px; height: 17px; }
.social__link:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.08); }

/* Responsive */
@media (max-width: 900px) {
  .about__grid, .process, .contact__grid { grid-template-columns: 1fr; }
  .services__grid, .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { columns: 2; }
  .hero__title { font-size: 36px; }
  .contact-form__row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .services__grid, .projects__grid { grid-template-columns: 1fr; }
  .gallery__grid { columns: 1; }
  .site-footer__legal { text-align: left; }
  .hero__inner { padding: 72px 32px 64px; }
}

/* ===== Contact Form 7 — an das Design angepasst ===== */
.contact-form-panel .wpcf7-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form-panel .wpcf7-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; color: #3a3e44; }
.contact-form-panel .wpcf7-form-control-wrap { display: block; }
.contact-form-panel input.wpcf7-form-control:not([type=submit]),
.contact-form-panel select.wpcf7-form-control,
.contact-form-panel textarea.wpcf7-form-control {
  width: 100%; padding: 12px 14px; border: 1.5px solid #dcdcda; border-radius: 8px;
  font-size: 15px; color: #16181a; background: #fff; font-family: inherit;
}
.contact-form-panel textarea.wpcf7-form-control { resize: vertical; line-height: 1.5; min-height: 120px; }
.contact-form-panel .wpcf7-form input:focus,
.contact-form-panel .wpcf7-form select:focus,
.contact-form-panel .wpcf7-form textarea:focus { outline: none; border-color: #ae2045; }
.contact-form-panel .wpcf7-acceptance { font-weight: 600; font-size: 12.5px; color: #62666b; }
.contact-form-panel input.wpcf7-submit {
  width: 100%; padding: 15px 24px; margin-top: 4px; background: #ae2045; color: #fff;
  border: none; border-radius: 9px; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background-color .15s ease;
}
.contact-form-panel input.wpcf7-submit:hover { background: #c62651; }
.contact-form-panel .wpcf7-response-output { border-radius: 8px; font-size: 14px; margin: 4px 0 0; }

/* ===== Mobiles Menü (Hamburger) ===== */
.nav__toggle-cb { display: none; }
.nav__burger { display: none; }
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; position: relative; }
  .nav__logo { height: 46px; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 5px; width: 46px; height: 42px;
    align-items: center; justify-content: center; cursor: pointer; border: 1px solid #e2e3e5;
    border-radius: 9px; background: #fff; -webkit-tap-highlight-color: transparent;
  }
  .nav__burger span { width: 24px; height: 2px; background: #16181a; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .nav__links {
    display: none; flex-direction: column; align-items: stretch; width: 100%;
    order: 3; gap: 2px; padding: 10px 0 4px; margin-top: 12px; border-top: 1px solid #ececec;
  }
  .nav__toggle-cb:checked ~ .nav__links { display: flex; }
  .nav__links .nav__link { padding: 13px 10px; font-size: 16px; border-radius: 8px; }
  .nav__links .nav__cta { margin-left: 0; margin-top: 6px; text-align: center; padding: 14px 10px; font-size: 16px; }
  /* Hamburger -> X, wenn geöffnet */
  .nav__toggle-cb:checked ~ .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle-cb:checked ~ .nav__burger span:nth-child(2) { opacity: 0; }
  .nav__toggle-cb:checked ~ .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Lightbox (Projekt-/Galeriebilder vergrößern) ===== */
.bm-zoom { cursor: zoom-in; }
.bm-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(10,11,12,.92); padding: 24px; }
.bm-lightbox.is-open { display: flex; }
.bm-lightbox__img { max-width: 95vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.bm-lightbox__close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; border-radius: 50%; cursor: pointer; transition: background .15s ease; }
.bm-lightbox__close:hover { background: rgba(255,255,255,.26); }

/* ===== Schrift gegen Parent-Theme (GeneratePress) durchsetzen =====
   In der verlinkten CSS (nicht inline), damit es auch unter einer CSP greift. */
body, input, textarea, select, button { font-family: var(--font-sans) !important; }
.h2, .hero__title, .about__panel-title, .about__panel-title-accent, .about__stat-value,
.hero__badge-code, .service-card__num, .process-card__num, .process__cert-badge,
.contact-success__title { font-family: var(--font-display) !important; }
