/*
Theme Name: BAUREFORM Modern
Theme URI: https://www.baureform.ch
Author: BAUREFORM AG
Description: Individuelles, responsives WordPress-Theme für die BAUREFORM AG.
Version: 1.0.0
Requires at least: 5.3
Requires PHP: 7.3
Text Domain: baureform-modern
*/

:root {
  --br-red: #ef252b;
  --br-red-dark: #c91319;
  --br-ink: #171a1f;
  --br-ink-soft: #272c33;
  --br-copy: #535b66;
  --br-muted: #7a838f;
  --br-line: #e5e8eb;
  --br-paper: #ffffff;
  --br-surface: #f5f6f7;
  --br-surface-warm: #f2f0ed;
  --br-radius: 18px;
  --br-shadow: 0 24px 60px rgba(23, 26, 31, .10);
  --br-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--br-ink);
  background: var(--br-paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--br-red); }
button, input, textarea, select { font: inherit; }
::selection { background: var(--br-red); color: #fff; }

.br-container { width: min(calc(100% - 40px), var(--br-container)); margin-inline: auto; }
.br-narrow { width: min(calc(100% - 40px), 840px); margin-inline: auto; }
.br-section { padding: 104px 0; }
.br-section--compact { padding: 72px 0; }
.br-section--surface { background: var(--br-surface); }
.br-section--dark { color: #fff; background: var(--br-ink); }
.br-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--br-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}
.br-eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.br-display,
.br-page-title,
.br-section-title,
h1, h2, h3, h4 {
  margin-top: 0;
  color: var(--br-ink);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.br-display { max-width: 900px; margin-bottom: 24px; font-size: clamp(46px, 7vw, 88px); }
.br-page-title { margin-bottom: 22px; font-size: clamp(42px, 6vw, 72px); }
.br-section-title { max-width: 820px; margin-bottom: 24px; font-size: clamp(34px, 4vw, 56px); }
.br-lead { max-width: 760px; margin: 0; color: var(--br-copy); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.5; }
.br-section--dark .br-section-title,
.br-section--dark h2,
.br-section--dark h3 { color: #fff; }
.br-section--dark .br-lead { color: rgba(255,255,255,.72); }

.br-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--br-red);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.br-button:hover { transform: translateY(-2px); background: var(--br-red-dark); color: #fff; }
.br-button--ghost { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.br-button--ghost:hover { border-color: #fff; background: #fff; color: var(--br-ink); }
.br-button--dark { background: var(--br-ink); }
.br-button--dark:hover { background: var(--br-ink-soft); }
.br-arrow { font-size: 1.15em; transition: transform .2s ease; }
.br-button:hover .br-arrow, .br-text-link:hover .br-arrow { transform: translateX(4px); }
.br-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--br-red); font-size: 15px; font-weight: 800; }

.br-topbar { position: relative; z-index: 60; background: var(--br-ink); color: rgba(255,255,255,.74); font-size: 13px; }
.br-topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.br-topbar__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.br-topbar a:hover { color: #fff; }
.br-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(23,26,31,.08);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
}
.admin-bar .br-header { top: 32px; }
.br-header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.br-brand { flex: 0 0 auto; }
.br-brand .custom-logo-link { display: block; }
.br-brand .custom-logo { width: auto; height: 48px; }
.br-brand__fallback { color: var(--br-red); font-size: 26px; font-weight: 900; letter-spacing: -.04em; }
.br-nav { display: flex; align-items: center; gap: 30px; }
.br-nav a { position: relative; color: var(--br-ink); font-size: 14px; font-weight: 750; }
.br-nav a:not(.br-button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--br-red); transition: right .2s ease; }
.br-nav a:not(.br-button):hover::after, .br-nav .current-menu-item > a::after { right: 0; }
.br-nav .br-button { color: #fff; }
.br-menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--br-surface); cursor: pointer; }
.br-menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--br-ink); transition: transform .2s ease, opacity .2s ease; }
.nav-open .br-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .br-menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .br-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.br-hero {
  position: relative;
  min-height: min(820px, calc(100vh - 120px));
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  color: #fff;
}
.br-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(10,12,15,.90) 0%, rgba(10,12,15,.68) 50%, rgba(10,12,15,.20) 100%); }
.br-hero::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 46%; background: linear-gradient(transparent, rgba(10,12,15,.60)); }
.br-hero__content { width: min(100%, 970px); padding: 130px 0 92px; }
.br-hero .br-eyebrow { color: #fff; }
.br-hero .br-display { color: #fff; }
.br-hero__lead { max-width: 760px; margin: 0 0 34px; color: rgba(255,255,255,.82); font-size: clamp(20px, 2vw, 26px); line-height: 1.55; }
.br-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.br-hero__rail { position: absolute; right: max(24px, calc((100vw - var(--br-container))/2)); bottom: 92px; display: grid; grid-template-columns: repeat(2, minmax(120px,1fr)); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 14px; background: rgba(255,255,255,.18); backdrop-filter: blur(14px); }
.br-hero__rail-item { min-width: 160px; padding: 20px; background: rgba(12,14,17,.45); }
.br-hero__rail-item strong { display: block; margin-bottom: 3px; color: #fff; font-size: 15px; }
.br-hero__rail-item span { color: rgba(255,255,255,.62); font-size: 12px; }

.br-intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 110px); align-items: start; }
.br-intro-copy p { margin: 0 0 22px; color: var(--br-copy); font-size: 19px; }
.br-capabilities { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--br-line); border-bottom: 1px solid var(--br-line); }
.br-capability { padding: 34px 24px; border-right: 1px solid var(--br-line); }
.br-capability:last-child { border-right: 0; }
.br-capability__number { display: block; margin-bottom: 24px; color: var(--br-red); font-size: 13px; font-weight: 850; }
.br-capability strong { display: block; margin-bottom: 8px; font-size: 17px; }
.br-capability span { color: var(--br-copy); font-size: 14px; }

.br-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; margin-top: 50px; }
.br-service-card { position: relative; min-height: 480px; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--br-radius); isolation: isolate; background: var(--br-ink); box-shadow: var(--br-shadow); }
.br-service-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,12,15,.05) 20%, rgba(10,12,15,.93) 100%); }
.br-service-card__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.br-service-card:hover .br-service-card__image { transform: scale(1.04); }
.br-service-card__body { padding: clamp(28px, 4vw, 44px); color: #fff; }
.br-service-card__kicker { display: block; margin-bottom: 12px; color: rgba(255,255,255,.62); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.br-service-card h3 { margin-bottom: 14px; color: #fff; font-size: clamp(28px,3vw,40px); }
.br-service-card p { max-width: 530px; margin: 0 0 24px; color: rgba(255,255,255,.76); }
.br-service-card .br-text-link { color: #fff; }

.br-process { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 54px; border-top: 1px solid rgba(255,255,255,.16); }
.br-process__step { position: relative; padding: 38px 28px 12px 0; }
.br-process__step:not(:last-child)::after { content: ""; position: absolute; top: -1px; right: 28px; width: 10px; height: 10px; border-radius: 50%; background: var(--br-red); transform: translateY(-50%); }
.br-process__step span { display: block; margin-bottom: 24px; color: var(--br-red); font-size: 13px; font-weight: 850; }
.br-process__step h3 { margin-bottom: 12px; font-size: 23px; }
.br-process__step p { margin: 0; color: rgba(255,255,255,.64); font-size: 15px; }

.br-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(38px, 7vw, 90px); align-items: center; }
.br-split--reverse .br-split__media { order: 2; }
.br-split__media { min-height: 560px; overflow: hidden; border-radius: var(--br-radius); box-shadow: var(--br-shadow); }
.br-split__media img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.br-split__content p { color: var(--br-copy); font-size: 18px; }
.br-checks { display: grid; gap: 14px; padding: 0; margin: 28px 0 34px; list-style: none; }
.br-checks li { position: relative; padding-left: 30px; color: var(--br-copy); }
.br-checks li::before { content: ""; position: absolute; left: 0; top: .65em; width: 12px; height: 12px; border: 3px solid var(--br-red); border-radius: 50%; transform: translateY(-50%); }

.br-values { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 48px; }
.br-value { padding: 34px; border: 1px solid var(--br-line); border-radius: var(--br-radius); background: #fff; }
.br-value__icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 50%; background: rgba(239,37,43,.09); color: var(--br-red); font-size: 21px; font-weight: 900; }
.br-value h3 { margin-bottom: 12px; font-size: 24px; }
.br-value p { margin: 0; color: var(--br-copy); font-size: 15px; }

.br-cta { position: relative; overflow: hidden; border-radius: 24px; background: var(--br-red); color: #fff; }
.br-cta::after { content: ""; position: absolute; width: 440px; height: 440px; right: -180px; top: -210px; border: 80px solid rgba(255,255,255,.10); border-radius: 50%; }
.br-cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 44px; padding: clamp(38px, 6vw, 72px); }
.br-cta h2 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(34px,4vw,56px); }
.br-cta p { max-width: 650px; margin: 18px 0 0; color: rgba(255,255,255,.82); }
.br-cta .br-button { flex: 0 0 auto; background: #fff; color: var(--br-ink); }
.br-cta .br-button:hover { background: var(--br-ink); color: #fff; }

.br-page-hero { padding: 110px 0 82px; background: var(--br-surface); }
.br-page-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; }
.br-page-hero__aside { padding-left: 30px; border-left: 2px solid var(--br-red); color: var(--br-copy); }
.br-page-hero__aside p { margin: 0; }
.br-page-hero--image { position: relative; min-height: 610px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background-position: center; background-size: cover; color: #fff; }
.br-page-hero--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,12,15,.88), rgba(10,12,15,.30)); }
.br-page-hero--image .br-page-title { color: #fff; }
.br-page-hero--image .br-lead { color: rgba(255,255,255,.78); }
.br-page-hero--image .br-container { padding-bottom: 76px; }

.br-detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 46px; }
.br-detail { padding: 38px; border-radius: var(--br-radius); background: var(--br-surface); }
.br-detail__number { display: block; margin-bottom: 30px; color: var(--br-red); font-size: 13px; font-weight: 850; }
.br-detail h3 { margin-bottom: 14px; font-size: 28px; }
.br-detail p { margin: 0; color: var(--br-copy); }
.br-detail ul { margin: 18px 0 0; padding-left: 20px; color: var(--br-copy); }

.br-project-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; margin-top: 50px; }
.br-project-grid .br-project-card:first-child { grid-row: span 2; min-height: 700px; }
.br-project-card { position: relative; min-height: 338px; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--br-radius); isolation: isolate; }
.br-project-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, rgba(10,12,15,.88)); }
.br-project-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.br-project-card__body { padding: 34px; color: #fff; }
.br-project-card h3 { margin: 0 0 8px; color: #fff; font-size: 30px; }
.br-project-card p { margin: 0; color: rgba(255,255,255,.70); }

.br-contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 26px; align-items: start; }
.br-contact-panel { padding: 42px; border-radius: var(--br-radius); background: var(--br-ink); color: #fff; }
.br-contact-panel h2, .br-contact-panel h3 { color: #fff; }
.br-contact-panel > p { color: rgba(255,255,255,.68); }
.br-contact-list { display: grid; gap: 22px; margin-top: 34px; }
.br-contact-item { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.br-contact-item span { display: block; margin-bottom: 6px; color: rgba(255,255,255,.48); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.br-contact-item a, .br-contact-item strong { color: #fff; font-size: 18px; }
.br-contact-form { padding: 42px; border: 1px solid var(--br-line); border-radius: var(--br-radius); background: #fff; box-shadow: var(--br-shadow); }
.br-contact-form h2 { margin-bottom: 12px; font-size: 34px; }
.br-contact-form > p { color: var(--br-copy); }
.wpcf7-form label { display: block; margin-bottom: 16px; color: var(--br-ink); font-size: 14px; font-weight: 750; }
.wpcf7-form input:not([type="submit"]), .wpcf7-form textarea, .wpcf7-form select {
  width: 100%; margin-top: 7px; padding: 13px 15px; border: 1px solid #d8dde2; border-radius: 10px; outline: 0; background: #fff; color: var(--br-ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus, .wpcf7-form select:focus { border-color: var(--br-red); box-shadow: 0 0 0 4px rgba(239,37,43,.09); }
.wpcf7-form textarea { min-height: 160px; resize: vertical; }
.wpcf7-form input[type="submit"] { min-height: 52px; padding: 13px 24px; border: 0; border-radius: 999px; background: var(--br-red); color: #fff; font-weight: 800; cursor: pointer; }
.wpcf7-form input[type="submit"]:hover { background: var(--br-red-dark); }
.wpcf7-not-valid-tip { margin-top: 5px; color: var(--br-red); font-size: 13px; }
.wpcf7-response-output { margin: 20px 0 0 !important; padding: 14px !important; border-radius: 10px; }

.br-prose { padding: 84px 0; }
.br-prose h2 { margin: 48px 0 16px; font-size: 32px; }
.br-prose h3 { margin: 34px 0 12px; font-size: 24px; }
.br-prose p, .br-prose li { color: var(--br-copy); }
.br-prose a { color: var(--br-red); text-decoration: underline; text-underline-offset: 3px; }
.br-prose table { width: 100%; border-collapse: collapse; }
.br-prose td, .br-prose th { padding: 12px; border: 1px solid var(--br-line); text-align: left; }

.br-footer { background: #111418; color: rgba(255,255,255,.64); }
.br-footer__main { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 54px; padding: 76px 0 58px; }
.br-footer__brand .custom-logo { width: auto; height: 48px; margin-bottom: 24px; }
.br-footer__brand p { max-width: 390px; margin: 0; }
.br-footer h3 { margin-bottom: 20px; color: #fff; font-size: 15px; letter-spacing: -.01em; }
.br-footer ul { margin: 0; padding: 0; list-style: none; }
.br-footer li { margin-bottom: 9px; }
.br-footer a:hover { color: #fff; }
.br-footer__bottom { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid rgba(255,255,255,.10); font-size: 13px; }
.br-footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.br-back-to-top { color: #fff; font-weight: 750; }

.br-notice { padding: 18px 20px; border-left: 4px solid var(--br-red); border-radius: 8px; background: var(--br-surface); color: var(--br-copy); }
.br-empty-form { padding: 22px; border-radius: 12px; background: var(--br-surface); color: var(--br-copy); }
.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; }

@media (max-width: 1024px) {
  .br-hero__rail { display: none; }
  .br-intro-grid, .br-split, .br-contact-grid, .br-page-hero__grid { grid-template-columns: 1fr; }
  .br-split--reverse .br-split__media { order: 0; }
  .br-capabilities, .br-process { grid-template-columns: repeat(2,1fr); }
  .br-capability:nth-child(2) { border-right: 0; }
  .br-capability:nth-child(-n+2) { border-bottom: 1px solid var(--br-line); }
  .br-values { grid-template-columns: 1fr; }
  .br-footer__main { grid-template-columns: 1.5fr 1fr 1fr; }
  .br-footer__main > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 820px) {
  .admin-bar .br-header { top: 46px; }
  .br-topbar__inner { min-height: 34px; justify-content: center; }
  .br-topbar__meta span:first-child { display: none; }
  .br-menu-toggle { display: block; position: relative; z-index: 2; }
  .br-nav { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: 110px 34px 40px; background: #fff; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .22s ease, visibility .22s ease, transform .22s ease; }
  .nav-open .br-nav { opacity: 1; visibility: visible; transform: none; }
  .br-nav a { font-size: 27px; }
  .br-nav a:not(.br-button)::after { display: none; }
  .br-nav .br-button { margin-top: 12px; font-size: 16px; }
  .br-section { padding: 80px 0; }
  .br-card-grid, .br-detail-grid, .br-project-grid { grid-template-columns: 1fr; }
  .br-project-grid .br-project-card:first-child { grid-row: auto; min-height: 480px; }
  .br-service-card { min-height: 430px; }
  .br-cta__inner { display: block; }
  .br-cta .br-button { margin-top: 28px; }
  .br-footer__main { grid-template-columns: 1fr 1fr; }
  .br-footer__brand { grid-column: 1 / -1; }
  .br-footer__main > :last-child { grid-column: auto; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .br-container, .br-narrow { width: min(calc(100% - 28px), var(--br-container)); }
  .br-topbar__meta { gap: 12px; font-size: 11px; }
  .br-header__inner { min-height: 72px; }
  .br-brand .custom-logo { height: 38px; }
  .br-hero { min-height: 680px; }
  .br-hero__content { padding: 100px 0 58px; }
  .br-display { font-size: clamp(42px, 13vw, 62px); }
  .br-actions { display: grid; }
  .br-button { width: 100%; }
  .br-capabilities, .br-process { grid-template-columns: 1fr; }
  .br-capability { border-right: 0; border-bottom: 1px solid var(--br-line); }
  .br-capability:last-child { border-bottom: 0; }
  .br-process__step:not(:last-child)::after { display: none; }
  .br-process__step { padding-right: 0; }
  .br-split__media, .br-split__media img { min-height: 380px; }
  .br-service-card { min-height: 400px; }
  .br-contact-panel, .br-contact-form, .br-detail, .br-value { padding: 28px; }
  .br-footer__main { grid-template-columns: 1fr; gap: 34px; padding: 56px 0 44px; }
  .br-footer__brand, .br-footer__main > :last-child { grid-column: auto; }
  .br-footer__bottom { min-height: 96px; flex-direction: column; justify-content: center; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Structured Contact Form 7 layout */
.br-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.wpcf7-form input[type="checkbox"] { width: auto; margin: .25em 0 0; accent-color: var(--br-red); }
.wpcf7-form .wpcf7-acceptance { display: block; margin: 20px 0 24px; }
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7-form .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--br-copy); font-size: 13px; font-weight: 500; line-height: 1.5; }
.wpcf7-form .wpcf7-acceptance a { color: var(--br-red); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) { .br-form-row { grid-template-columns: 1fr; gap: 0; } }
