/*
Theme Name: BAUFORM SEO
Theme URI: https://bau-form.com/
Author: BAUFORM GmbH
Description: SEO-optimiertes WordPress-Theme für BAUFORM – Ladenbau, Innenausbau und Gebäudetechnik.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: bauform-seo
*/

:root {
  --font-geist-sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-geist-mono: "SFMono-Regular", Consolas, monospace;
  --ink: #263031;
  --muted: #66716e;
  --paper: #f2f3f4;
  --stone: #e2e5e7;
  --line: #cfd4d6;
  --white: #ffffff;
  --accent: #6f857b;
  --accent-dark: #526b61;
  --shell: min(1360px, calc(100vw - 96px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.admin-bar .site-header { top: 32px; }
.wp-site-blocks { padding: 0; }
.current-menu-item > a, .current_page_item > a { color: var(--accent); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
::selection { background: var(--accent); color: white; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; background: var(--ink); color: white; padding: 12px 18px; }
.skip-link:focus { top: 16px; }
.page-shell { width: var(--shell); margin-inline: auto; }
.section-space { padding-block: 120px; }

.site-header {
  height: 88px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 243, 244, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-inner { width: calc(100% - 64px); height: 100%; margin: auto; display: flex; align-items: center; gap: 36px; }
.brand-logo-link { display: block; flex: 0 0 220px; line-height: 0; }
.brand-logo { width: 220px; height: 64px; object-fit: contain; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.desktop-nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 25px; }
.desktop-nav a { font-size: 14px; position: relative; white-space: nowrap; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: var(--accent); transition: width .2s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { width: 100%; }
.header-contact { border-left: 1px solid var(--ink); padding-left: 28px; color: var(--accent); display: flex; gap: 10px; align-items: center; font-weight: 600; }
.mobile-nav { display: none; margin-left: auto; position: relative; }
.mobile-nav summary { list-style: none; width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { width: 24px; height: 2px; background: var(--ink); display: block; }
.mobile-nav nav { position: fixed; inset: 88px 0 auto; background: var(--paper); border-bottom: 1px solid var(--line); padding: 22px 30px 28px; display: grid; }
.mobile-nav-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-nav nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; }

.content-list article { padding: 30px 0; border-bottom: 1px solid var(--line); }
.content-list article h2 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 38px); }
.content-list article p { margin: 0; color: var(--muted); }
.search-form { max-width: 720px; display: flex; gap: 14px; margin-top: 32px; }
.search-form label { flex: 1; }
.search-form input { width: 100%; min-height: 58px; padding: 0 18px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.error-page .button { margin-top: 24px; }

.eyebrow { margin: 0 0 28px; padding-left: 18px; position: relative; color: var(--muted); font-size: 13px; font-weight: 620; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; position: absolute; left: 0; top: .1em; width: 3px; height: 1.3em; background: var(--accent); }
.button { min-height: 58px; display: inline-flex; align-items: center; justify-content: center; padding: 0 32px; border: 1px solid transparent; font-weight: 620; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-outline { border-color: var(--ink); background: transparent; }
.button-outline:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: white; }
.button-dark { color: white; background: var(--accent-dark); gap: 28px; }
.button-dark:hover { background: var(--accent); }
.text-link { display: inline-flex; gap: 24px; align-items: center; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
.text-link span { color: var(--accent); }

.home-hero { min-height: calc(100vh - 88px); display: grid; grid-template-columns: 45% 55%; border-bottom: 1px solid var(--line); }
.home-hero-copy { padding: clamp(72px, 8vw, 132px) 6vw 64px 5.5vw; display: flex; flex-direction: column; justify-content: center; }
.home-hero h1 { max-width: 720px; margin: 0; font-size: clamp(52px, 5vw, 78px); line-height: 1; letter-spacing: -.052em; font-weight: 680; }
.hero-subtitle { max-width: 660px; margin: 28px 0 0; font-size: clamp(25px, 2.2vw, 34px); line-height: 1.2; letter-spacing: -.03em; font-weight: 540; color: var(--accent-dark); }
.hero-lead { max-width: 580px; margin: 22px 0 0; color: var(--muted); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; }
.hero-actions { display: flex; gap: 22px; margin-top: 38px; }
.location-line { margin: 32px 0 0; font-size: 14px; color: var(--muted); }
.location-line span { margin-right: 12px; font-size: 23px; color: var(--accent); vertical-align: -2px; }
.location-line b { color: var(--accent); margin-inline: 10px; }
.home-hero-media { min-height: 720px; position: relative; overflow: hidden; background: #dde1e3; }
.home-hero-media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 46% 47%; }
.image-label { position: absolute; bottom: 0; right: 0; background: var(--paper); padding: 15px 24px; font: 600 11px/1 var(--font-geist-mono), monospace; text-transform: uppercase; letter-spacing: .12em; }

.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10vw; align-items: end; margin-bottom: 62px; }
.section-heading h2, .split-copy h2, .focus-copy h2, .contact-band h2 { margin: 0; font-size: clamp(42px, 4vw, 68px); line-height: 1.03; letter-spacing: -.045em; font-weight: 650; }
.section-heading > p { margin: 0 0 8px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 330px; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.28); transition: background .25s ease, transform .25s ease; }
.service-card:hover { background: var(--white); transform: translateY(-4px); }
.service-card > span { color: var(--accent); font: 600 12px var(--font-geist-mono), monospace; }
.service-card h3 { margin: 56px 0 16px; font-size: 27px; letter-spacing: -.035em; }
.service-card p { color: var(--muted); margin: 0; }
.service-card b { display: block; margin-top: 28px; font-size: 13px; }

.split-feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 800px; background: white; }
.split-image { overflow: hidden; }
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-copy { padding: clamp(70px, 8vw, 140px); display: flex; justify-content: center; flex-direction: column; }
.split-copy > p:not(.eyebrow) { color: var(--muted); font-size: 19px; max-width: 620px; margin: 30px 0; }
.check-list { padding: 0; margin: 6px 0 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; list-style: none; }
.check-list li { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 600; }
.check-list li::before { content: "+"; color: var(--accent); margin-right: 10px; }

.focus-section { display: grid; grid-template-columns: 100px 1fr 1fr; gap: 40px; align-items: center; }
.focus-number { align-self: start; color: var(--accent); font: 600 14px var(--font-geist-mono), monospace; border-top: 2px solid var(--accent); padding-top: 12px; }
.focus-copy { padding-right: 4vw; }
.focus-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 28px 0 38px; }
.focus-image { height: 620px; overflow: hidden; }
.focus-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.process-section { padding: 110px 0; background: #e7ebe7; color: var(--ink); }
.process-section .eyebrow { color: var(--muted); }
.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
.process-grid li { padding: 28px 30px 10px; min-height: 260px; border-right: 1px solid var(--line); }
.process-grid span { color: var(--accent); font: 600 12px var(--font-geist-mono), monospace; }
.process-grid h3 { margin: 64px 0 12px; font-size: 26px; }
.process-grid p { color: var(--muted); margin: 0; }

.contact-band { background: var(--accent); color: white; padding: 92px 0; }
.contact-band .eyebrow { color: white; opacity: .8; }
.contact-band .eyebrow::before { background: white; }
.contact-band-inner { display: flex; align-items: end; justify-content: space-between; gap: 60px; }
.contact-band h2 { max-width: 800px; }
.contact-band-actions { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.contact-band-actions a:last-child { font-weight: 650; }

.partner-logo-section { padding: 90px 0; background: #e7ebe7; }
.partner-logo-panel { padding: 36px; background: #cbd4ce; border: 1px solid #bdc8c1; overflow: hidden; }
.partner-logo-panel img { display: block; width: 100%; height: auto; }
.premium-gallery-section { padding: 110px 0; }
.premium-tone-groups { display: grid; gap: 90px; }
.premium-tone-heading { display: grid; grid-template-columns: .65fr 1.35fr; gap: 8vw; align-items: baseline; padding-top: 24px; margin-bottom: 30px; border-top: 1px solid var(--line); }
.premium-tone-heading h3 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -.035em; }
.premium-tone-heading p { max-width: 620px; margin: 0; color: var(--muted); font-size: 17px; }
.premium-gallery { columns: 3; column-gap: 18px; }
.premium-item { break-inside: avoid; margin: 0 0 18px; overflow: hidden; background: var(--stone); }
.premium-item img { width: 100%; height: auto; object-fit: cover; transition: transform .45s ease; }
.premium-item:hover img { transform: scale(1.025); }

.reference-gallery-section { padding: 110px 0; }
.reference-groups { display: grid; gap: 90px; }
.reference-heading { display: grid; grid-template-columns: .65fr 1.35fr; gap: 8vw; align-items: baseline; padding-top: 24px; margin-bottom: 30px; border-top: 1px solid var(--line); }
.reference-heading h3 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -.035em; }
.reference-heading p { max-width: 620px; margin: 0; color: var(--muted); font-size: 17px; }
.reference-orientation-groups { display: grid; gap: 42px; }
.reference-format-label { margin: 0 0 16px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.reference-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.reference-gallery--landscape { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reference-item { aspect-ratio: 4 / 3; margin: 0; overflow: hidden; background: var(--stone); }
.reference-item--portrait { aspect-ratio: 3 / 4; }
.reference-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s ease; }
.reference-item:hover img { transform: scale(1.025); }

.page-hero { padding: 92px 0 100px; border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 8vw; align-items: center; }
.page-hero h1 { max-width: 870px; margin: 0; font-size: clamp(54px, 6.3vw, 96px); line-height: .96; letter-spacing: -.055em; font-weight: 660; }
.page-hero .lead { max-width: 750px; margin: 32px 0 0; color: var(--muted); font-size: 21px; line-height: 1.55; }
.page-hero-media { height: 580px; overflow: hidden; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumbs { width: var(--shell); margin: 28px auto 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; display: flex; gap: 10px; }
.breadcrumbs a:hover { color: var(--accent); }

.content-section { padding: 100px 0; }
.content-section.white { background: white; }
.content-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 10vw; }
.content-grid h2 { margin: 0; font-size: clamp(38px, 4vw, 62px); line-height: 1.05; letter-spacing: -.04em; }
.content-copy { color: var(--muted); font-size: 18px; }
.content-copy > :first-child { margin-top: 0; }
.content-copy h3 { color: var(--ink); font-size: 27px; margin: 44px 0 8px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; list-style: none; padding: 0; margin: 32px 0; }
.feature-list li { border-top: 1px solid var(--line); padding: 18px 0; color: var(--ink); font-weight: 620; }
.feature-list li::before { content: "+"; color: var(--accent); margin-right: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.detail-card { padding: 42px; background: var(--paper); min-height: 280px; }
.detail-card .number { color: var(--accent); font: 600 12px var(--font-geist-mono), monospace; }
.detail-card h2, .detail-card h3 { font-size: 30px; line-height: 1.15; letter-spacing: -.035em; margin: 42px 0 14px; }
.detail-card p { margin: 0; color: var(--muted); }
.image-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 520px; }
.image-strip img { width: 100%; height: 100%; object-fit: cover; }

.faq-list { max-width: 1000px; margin-left: auto; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 25px 44px 25px 0; font-weight: 650; font-size: 20px; list-style: none; position: relative; }
.faq-list summary::after { content: "+"; position: absolute; right: 10px; color: var(--accent); font-size: 24px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); padding: 0 50px 24px 0; margin: 0; }

.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9vw; }
.contact-card { padding: 46px; background: white; border: 1px solid var(--line); }
.contact-card h2 { font-size: 30px; margin: 0 0 26px; }
.contact-card address { font-style: normal; color: var(--muted); }
.contact-card a { display: block; font-size: 21px; font-weight: 650; margin-top: 10px; }
.contact-card a:hover { color: var(--accent); }
.contact-meta { margin-top: 34px; padding-top: 25px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-meta strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.contact-meta span { color: var(--muted); }
.contact-steps { list-style: none; padding: 0; margin: 38px 0 0; }
.contact-steps li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; }
.contact-steps span { color: var(--accent); font: 600 12px var(--font-geist-mono), monospace; }
.contact-steps h3 { margin: 0; font-size: 20px; }
.contact-steps p { grid-column: 2; margin: 5px 0 0; color: var(--muted); }

.legal { max-width: 900px; }
.legal h1 { font-size: clamp(48px, 6vw, 86px); line-height: 1; letter-spacing: -.05em; margin: 0 0 50px; }
.legal h2 { font-size: 28px; margin: 48px 0 8px; }
.legal h3 { font-size: 20px; margin: 30px 0 6px; }
.legal p, .legal li { color: var(--muted); }
.legal address { font-style: normal; }

.site-footer { background: #e4e9e5; color: var(--ink); padding-top: 82px; border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 8vw; padding-bottom: 70px; }
.footer-main > div:first-child p { max-width: 450px; color: var(--muted); margin-top: 26px; }
.footer-logo-link { display: block; width: 320px; max-width: 100%; line-height: 0; }
.footer-brand-logo { width: 320px; height: auto; object-fit: contain; }
.footer-main h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 18px; }
.footer-main a, .footer-main address { display: block; color: var(--muted); font-style: normal; margin: 7px 0; }
.footer-main a:hover { color: var(--accent-dark); }
.footer-bottom { border-top: 1px solid var(--line); padding: 25px 0; color: var(--muted); display: flex; justify-content: space-between; font-size: 13px; }
.footer-links { display: flex; gap: 24px; }

@media (max-width: 1180px) {
  :root { --shell: min(100% - 56px, 1160px); }
  .desktop-nav, .desktop-nav-list { gap: 15px; }
  .desktop-nav a { font-size: 13px; }
  .home-hero { grid-template-columns: 50% 50%; }
  .home-hero-copy { padding-left: 4vw; padding-right: 4vw; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-section { grid-template-columns: 60px 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --shell: calc(100% - 40px); }
  .section-space { padding-block: 82px; }
  .site-header { height: 76px; }
  .header-inner { width: calc(100% - 36px); }
  .desktop-nav, .header-contact { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav nav { inset: 76px 0 auto; }
  .home-hero { min-height: auto; grid-template-columns: 1fr; }
  .home-hero-copy { padding: 78px 28px 64px; }
  .home-hero-media { min-height: 620px; }
  .section-heading, .content-grid, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .section-heading { align-items: start; }
  .split-feature { grid-template-columns: 1fr; }
  .split-image { height: 560px; }
  .split-copy { padding: 74px 28px; }
  .focus-section { grid-template-columns: 50px 1fr; }
  .focus-image { grid-column: 2; height: 540px; }
  .process-grid { grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .process-grid li { border-top: 1px solid var(--line); }
  .contact-band-inner { align-items: start; flex-direction: column; }
  .contact-band-actions { align-items: flex-start; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { height: 520px; }
  .premium-gallery { columns: 2; }
  .reference-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-gallery--landscape,
  .reference-gallery--portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --shell: calc(100% - 32px); }
  .brand-logo-link { flex-basis: 176px; }
  .brand-logo { width: 176px; height: 54px; }
  .home-hero-copy { padding: 62px 20px 54px; }
  .home-hero h1 { font-size: clamp(46px, 14vw, 64px); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .home-hero-media { min-height: 480px; }
  .section-heading { margin-bottom: 42px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; }
  .split-image { height: 420px; }
  .check-list, .feature-list { grid-template-columns: 1fr; }
  .focus-section { display: block; }
  .focus-number { width: 50px; margin-bottom: 36px; }
  .focus-copy { margin-bottom: 44px; }
  .focus-image { height: 420px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li { min-height: 220px; }
  .contact-band { padding: 72px 0; }
  .contact-band-actions { width: 100%; }
  .page-hero { padding: 72px 0 76px; }
  .page-hero h1 { font-size: clamp(48px, 14vw, 70px); }
  .page-hero-media { height: 420px; }
  .detail-grid { grid-template-columns: 1fr; }
  .premium-tone-groups { gap: 66px; }
  .premium-tone-heading { grid-template-columns: 1fr; gap: 10px; }
  .premium-gallery { columns: 1; }
  .reference-groups { gap: 66px; }
  .reference-heading { grid-template-columns: 1fr; gap: 10px; }
  .reference-gallery { grid-template-columns: 1fr; }
  .partner-logo-panel { padding: 14px; }
  .detail-card { padding: 30px; }
  .image-strip { grid-template-columns: 1fr; height: auto; }
  .image-strip img { height: 360px; }
  .contact-card { padding: 30px; }
  .contact-meta { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-main > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

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