/*
Theme Name: Alpha Bau Software Solutions
Theme URI: https://example.com/
Author: OpenAI
Description: Corporate one-page theme for Alpha Bau Constructions GmbH — software selection and vendor coordination.
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: alpha-bau
*/

:root {
  --ab-ink: #15263a;
  --ab-green: #163c66;
  --ab-green-2: #245f96;
  --ab-sage: #dfeaf4;
  --ab-mint: #edf4fa;
  --ab-cream: #f5f7fa;
  --ab-white: #ffffff;
  --ab-muted: #687789;
  --ab-line: rgba(21, 38, 58, .12);
  --ab-shadow: 0 22px 60px rgba(22, 60, 102, .14);
  --ab-radius: 24px;
  --ab-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ab-ink); background: var(--ab-white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
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; }
.container { width: min(var(--ab-max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 104px 0; }
.section-soft { background: var(--ab-cream); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--ab-green-2); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3 { margin-top: 0; font-weight: 650; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(44px, 6.4vw, 82px); }
h2 { max-width: 760px; margin-bottom: 22px; font-size: clamp(34px, 4.5vw, 58px); }
h3 { margin-bottom: 12px; font-size: 22px; }
p { margin: 0 0 20px; }
.lead { max-width: 680px; color: var(--ab-muted); font-size: clamp(18px, 2vw, 21px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 50px; }
.section-head .lead { max-width: 480px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 25px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 750; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--ab-green); }
.btn-primary:hover { background: var(--ab-green-2); }
.btn-light { color: var(--ab-green); background: #fff; }
.btn-outline { border-color: var(--ab-line); background: rgba(255,255,255,.64); }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; padding: 18px 0; transition: background .2s ease, box-shadow .2s ease, padding .2s ease; }
.site-header.is-scrolled { padding: 10px 0; background: rgba(255,255,255,.94); box-shadow: 0 8px 34px rgba(21,38,58,.08); backdrop-filter: blur(14px); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: white; background: var(--ab-green); font-size: 16px; letter-spacing: -.08em; }
.brand-text small { display: block; color: var(--ab-muted); font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.custom-logo { max-width: 210px; max-height: 56px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { font-size: 14px; font-weight: 700; }
.main-nav a:not(.btn):hover { color: var(--ab-green-2); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--ab-line); border-radius: 14px; background: #fff; cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 19px; height: 2px; margin: 4px auto; background: var(--ab-ink); transition: .2s; }

.hero { position: relative; min-height: 820px; display: flex; align-items: center; padding: 150px 0 92px; overflow: hidden; background: var(--ab-cream); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245,247,250,.98) 0%, rgba(245,247,250,.94) 36%, rgba(245,247,250,.36) 65%, rgba(245,247,250,.04) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 740px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--ab-line); color: #465b73; font-size: 13px; font-weight: 700; }
.hero-trust span { display: flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: var(--ab-green); font-size: 12px; }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { min-height: 280px; padding: 34px; border: 1px solid var(--ab-line); border-radius: var(--ab-radius); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--ab-shadow); }
.icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 42px; border-radius: 16px; color: var(--ab-green); background: var(--ab-mint); }
.icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card p { max-width: 470px; margin-bottom: 0; color: var(--ab-muted); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { padding: 28px; border-top: 3px solid var(--ab-green); background: #fff; }
.value-card p { margin: 0; color: var(--ab-muted); }

.split { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(48px, 8vw, 108px); }
.visual-panel { position: relative; min-height: 520px; overflow: hidden; border-radius: 34px; background: var(--ab-sage); box-shadow: var(--ab-shadow); }
.visual-panel img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.visual-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 56px; background: radial-gradient(circle at 20% 15%, #f8fafc, transparent 34%), linear-gradient(145deg, #cbdbea, #edf3f8); }
.visual-placeholder::before { content: ""; width: 72%; aspect-ratio: 1; border: 1px solid rgba(22,60,102,.22); border-radius: 32% 68% 60% 40%; transform: rotate(14deg); box-shadow: inset 0 0 0 28px rgba(255,255,255,.28), 0 0 0 54px rgba(255,255,255,.18); }
.check-list { display: grid; gap: 18px; margin: 32px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 34px; font-weight: 650; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: var(--ab-green); font-size: 12px; }

.process { color: #fff; background: var(--ab-green); }
.process .eyebrow { color: #acc8e2; }
.process .lead { color: #ceddea; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 52px; }
.process-card { position: relative; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.25); }
.process-card::before { content: ""; position: absolute; top: -5px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #b8d2e8; }
.process-card p { color: #ceddea; font-size: 15px; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card { padding: 30px; border: 1px solid var(--ab-line); border-radius: var(--ab-radius); background: #fff; }
.case-label { display: inline-block; margin-bottom: 24px; padding: 7px 11px; border-radius: 999px; color: var(--ab-green); background: var(--ab-mint); font-size: 12px; font-weight: 800; }
.case-card p { color: var(--ab-muted); }
.case-result { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--ab-line); color: var(--ab-ink) !important; font-weight: 700; }

.contact { padding: 80px 0; background: var(--ab-cream); }
.contact-shell { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border-radius: 32px; background: #fff; box-shadow: var(--ab-shadow); }
.contact-info { padding: 56px; color: #fff; background: var(--ab-green); }
.contact-info .eyebrow { color: #b8d2e8; }
.contact-info h2 { font-size: clamp(36px, 4vw, 54px); }
.contact-info > p { color: #d7e4ef; }
.contact-details { display: grid; gap: 22px; margin-top: 42px; }
.contact-details small { display: block; color: #acc8e2; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-details a, .contact-details address { font-size: 17px; font-style: normal; font-weight: 650; }
.contact-form { padding: 56px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 750; }
.field input, .field textarea { width: 100%; padding: 14px 15px; border: 1px solid var(--ab-line); border-radius: 12px; outline: none; background: #fbfcfb; }
.field input:focus, .field textarea:focus { border-color: var(--ab-green-2); box-shadow: 0 0 0 3px rgba(36,95,150,.1); }
.field textarea { min-height: 132px; resize: vertical; }
.hp-field { position: absolute !important; left: -9999px !important; }
.form-note { margin-top: 13px; color: var(--ab-muted); font-size: 12px; }
.form-status { display: none; margin: 16px 0 0; padding: 13px 15px; border-radius: 10px; font-size: 14px; font-weight: 650; }
.form-status.show { display: block; }
.form-status.success { color: #155a3e; background: #e4f5ec; }
.form-status.error { color: #8b2b2b; background: #fdeaea; }

.legal { padding: 34px 0 60px; background: var(--ab-cream); }
.legal details { border-top: 1px solid var(--ab-line); }
.legal summary { padding: 18px 0; cursor: pointer; font-weight: 750; }
.legal-content { max-width: 820px; padding: 0 0 28px; color: var(--ab-muted); font-size: 14px; }
.legal-content h3 { margin-top: 26px; color: var(--ab-ink); font-size: 18px; }
.site-footer { padding: 30px 0; color: #d5e1ec; background: #0c243d; font-size: 13px; }
.footer-wrap { display: flex; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a:hover { color: #fff; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 0 0 0 24%; z-index: -1; flex-direction: column; justify-content: center; align-items: stretch; padding: 80px 38px; background: #fff; transform: translateX(110%); transition: transform .25s ease; box-shadow: -20px 0 50px rgba(21,38,58,.12); }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a:not(.btn) { padding: 12px 0; font-size: 20px; }
  .menu-open .nav-toggle span { opacity: 0; }
  .menu-open .nav-toggle::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .nav-toggle::after { transform: translateY(-6px) rotate(-45deg); }
  .hero { min-height: 760px; }
  .hero-media::after { background: linear-gradient(90deg, rgba(245,247,250,.98), rgba(245,247,250,.89) 64%, rgba(245,247,250,.5)); }
  .split, .contact-shell { grid-template-columns: 1fr; }
  .value-grid, .case-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .visual-panel { order: 2; min-height: 420px; }
  .visual-panel img { min-height: 420px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--ab-max)); }
  .section { padding: 74px 0; }
  .section-head { display: block; margin-bottom: 34px; }
  .section-head .lead { margin-top: 18px; }
  .brand { min-width: auto; }
  .brand-text { display: none; }
  .hero { min-height: 720px; padding-top: 122px; align-items: flex-start; }
  .hero-media img { object-position: 67% center; }
  .hero-media::after { background: linear-gradient(180deg, rgba(245,247,250,.98) 0%, rgba(245,247,250,.94) 58%, rgba(245,247,250,.72) 100%); }
  h1 { font-size: clamp(39px, 12vw, 58px); }
  .hero-trust { gap: 12px; }
  .services-grid, .value-grid, .case-grid, .process-grid, .form-row { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 26px; }
  .icon { margin-bottom: 28px; }
  .contact-info, .contact-form { padding: 36px 25px; }
  .footer-wrap { flex-direction: column; }
}

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