/* ===========================================================
   IM BAU Solutions – Stylesheet
   Farben aus dem Logo: Blau (#1d4f8f) & Grün (#6ba539) auf Weiß
   =========================================================== */

:root {
  --blue: #1d4f8f;
  --blue-dark: #16406f;
  --blue-deep: #122f52;
  --green: #6ba539;
  --green-dark: #588a2c;

  --ink: #1f2a37;       /* Überschriften */
  --body: #45525f;      /* Fließtext */
  --muted: #6b7682;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --border: #e4e9ef;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(18, 47, 82, 0.08);
  --shadow-sm: 0 4px 14px rgba(18, 47, 82, 0.06);
  --maxw: 1120px;
  --space: clamp(56px, 8vw, 96px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.97rem; cursor: pointer;
  border: 2px solid transparent; transition: all 0.18s ease; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { display: inline-flex; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: "Poppins", sans-serif; font-size: 1.18rem; letter-spacing: 0.5px; }
.brand-name b { color: var(--blue); font-weight: 700; }
.brand-name em { color: var(--green); font-style: normal; font-weight: 700; }
.brand-tag { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.3px; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-weight: 500; font-size: 0.96rem; }
.nav a:hover { color: var(--blue); }
.nav .nav-cta { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 460px at 88% -8%, rgba(107, 165, 57, 0.10), transparent 60%),
    radial-gradient(1000px 520px at 0% 0%, rgba(29, 79, 143, 0.10), transparent 55%),
    var(--bg);
  padding: clamp(64px, 10vw, 120px) 0 var(--space);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.78rem;
  font-weight: 600; color: var(--blue); margin: 0 0 12px;
}
.eyebrow-green { color: var(--green-dark); }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.5rem); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--body); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.hero-points {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: flex; flex-wrap: wrap; gap: 14px 28px;
}
.hero-points li { position: relative; padding-left: 26px; font-weight: 500; color: var(--ink); }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--green);
}

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section-soft { background: var(--bg-soft); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section-intro { color: var(--muted); max-width: 560px; font-size: 1.05rem; }

/* ---------- Leistungen / Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(29, 79, 143, 0.08); margin-bottom: 18px;
}
.card h3 { font-size: 1.25rem; }
.card p { margin: 0; color: var(--body); }

/* ---------- Projekte / Vorher-Nachher ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.project { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.ba-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); }
.ba-photo { position: relative; margin: 0; }
.ba-photo img { width: 100%; height: 190px; object-fit: cover; display: block; background: var(--bg-soft); }
.ba-photo figcaption {
  position: absolute; top: 10px; left: 10px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; padding: 4px 10px; border-radius: 6px; background: rgba(31, 42, 55, 0.78);
}
.ba-photo:last-child figcaption { background: var(--green); }
.project-body { padding: 20px 24px 24px; }
.project-body h3 { color: var(--blue); font-size: 1.15rem; margin-bottom: 4px; }
.project-body p { margin: 0; color: var(--muted); }

/* ---------- Vorteile ---------- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px 32px; margin-top: 40px; }
.benefit { border-top: 3px solid var(--green); padding-top: 18px; }
.benefit-num { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--blue); opacity: 0.35; font-size: 1.4rem; }
.benefit h3 { font-size: 1.18rem; margin-top: 6px; }
.benefit p { margin: 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--blue); }

.hours { margin-top: 32px; }
.hours-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 14px; }
.hours-list { margin: 0; display: grid; gap: 8px; max-width: 360px; }
.hours-list > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.hours-list dt { color: var(--ink); font-weight: 500; }
.hours-list dd { margin: 0; color: var(--body); }
.hours-list dd.closed { color: var(--muted); }

.contact-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: 0.92rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 79, 143, 0.15);
}
.field textarea { resize: vertical; }
.form-status { margin: 14px 0 0; font-weight: 500; font-size: 0.95rem; min-height: 1.2em; }
.form-status.ok { color: var(--green-dark); }
.form-status.err { color: #c0392b; }

.map-wrap { margin-top: 48px; }
.map-embed {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }
.map-link { margin: 14px 0 0; font-weight: 500; }
.map-link a { color: var(--blue); }
.map-link a:hover { color: var(--blue-dark); }

/* Schwebender WhatsApp-Button */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-float:hover { color: #fff; transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55); }
.wa-float:focus-visible { outline: 3px solid rgba(37, 211, 102, 0.5); outline-offset: 3px; }
@media (max-width: 480px) { .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: #c9d4e2; padding: 48px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-name { font-size: 1.15rem; }
.footer-name b { color: #fff; }
.footer-name em { color: var(--green); font-style: normal; }
.footer-brand p { color: #9fb0c4; margin: 10px 0 0; font-size: 0.92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; }
.footer-nav a { color: #c9d4e2; font-size: 0.95rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 32px; padding-top: 20px; }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: #8d9fb4; }

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 3px solid rgba(29, 79, 143, 0.45); outline-offset: 2px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.2s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { margin-top: 14px; border-bottom: 0; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
}
