/* ============================================
   HOCHBAU-WAGNER – Bauunternehmen
   (Aufbau angelehnt an bau-wagner.de)
   ============================================ */
:root {
  --primary: #e30613;        /* Signalrot wie klassische Bau-Logos */
  --primary-dark: #b30510;
  --dark: #222222;
  --gray: #666f7b;
  --light: #f5f6f8;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 3px 18px rgba(0, 0, 0, 0.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark);
  line-height: 1.65;
  background: var(--white);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark); color: #cfd4db; font-size: 0.88rem; }
.topbar-inner { display: flex; justify-content: flex-end; gap: 28px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: #cfd4db; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--white); }

/* ---------- Header ---------- */
header.main {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.10);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--dark); letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.logo small { display: block; font-size: 0.68rem; font-weight: 600; color: var(--gray); letter-spacing: 2px; text-transform: uppercase; }
nav ul { display: flex; gap: 26px; list-style: none; align-items: center; }
nav a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 0.95rem; }
nav a:hover { color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.7rem; cursor: pointer; color: var(--dark); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(24, 26, 30, 0.55), rgba(24, 26, 30, 0.55)), url('https://commons.wikimedia.org/wiki/Special:FilePath/Construction_Crane_Residential_Building_I.jpg?width=1200') center/cover;
  color: var(--white);
  padding: 130px 0;
  text-align: center;
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.1; margin-bottom: 10px; letter-spacing: -1px; }
.hero h2 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 500; opacity: 0.95; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
section.alt { background: var(--light); }
.section-title { text-align: center; font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 44px; }
.section-title small { display: block; font-size: 0.95rem; color: var(--gray); font-weight: 400; margin-top: 4px; }

/* ---------- Vorteile (3 Kacheln) ---------- */
.vorteile { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.vorteil { text-align: center; padding: 10px 16px; }
.vorteil .icon {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--light); display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; border: 3px solid var(--primary);
}
.vorteil h3 { font-size: 1.15rem; margin-bottom: 8px; }
.vorteil p { color: var(--gray); font-size: 0.95rem; }
.vorteil a { color: var(--primary); text-decoration: none; font-weight: 700; }

/* ---------- Referenzen (Liste) ---------- */
.ref-list { max-width: 760px; margin: 0 auto; list-style: none; }
.ref-list li { border-bottom: 1px solid #e3e6ea; }
.ref-list a {
  display: block; padding: 14px 6px; text-decoration: none; color: var(--dark);
  font-weight: 600; font-size: 1.02rem;
}
.ref-list a:hover { color: var(--primary); padding-left: 12px; transition: all 0.15s; }
.mehr-link { display: block; text-align: center; margin-top: 26px; color: var(--primary); font-weight: 700; text-decoration: none; }

/* ---------- Großes Bild ---------- */
.bigimage img { width: 100%; height: 420px; object-fit: cover; display: block; }

/* ---------- Leistungen (Icon-Grid) ---------- */
.leistung-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 26px; }
.leistung {
  background: var(--white); border-radius: var(--radius); padding: 30px 18px;
  box-shadow: var(--shadow); text-align: center; text-decoration: none; color: var(--dark);
  transition: transform 0.15s;
}
.leistung:hover { transform: translateY(-4px); }
.leistung .icon { font-size: 2.6rem; margin-bottom: 12px; }
.leistung h3 { font-size: 1.02rem; }

/* ---------- Aktuelles ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.news {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
}
.news h3 { font-size: 1.1rem; margin-bottom: 6px; }
.news .datum { color: var(--gray); font-size: 0.85rem; margin-bottom: 10px; }
.news p { color: var(--gray); font-size: 0.94rem; margin-bottom: 12px; }
.news a { color: var(--primary); text-decoration: none; font-weight: 700; font-size: 0.92rem; }

/* ---------- Kontakt-Band ---------- */
.kontakt-band {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.kontakt-band .text {
  background: var(--primary); color: var(--white); padding: 60px 46px;
  display: flex; flex-direction: column; justify-content: center;
}
.kontakt-band h2 { font-size: 1.8rem; margin-bottom: 14px; }
.kontakt-band p { opacity: 0.95; margin-bottom: 24px; }
.kontakt-band .btn {
  display: inline-block; background: var(--white); color: var(--primary);
  padding: 14px 30px; border-radius: 6px; text-decoration: none; font-weight: 700;
  align-self: flex-start;
}
.kontakt-band img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 280px; }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 60px 20px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal .stand { color: var(--gray); font-size: 0.9rem; margin-bottom: 34px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; color: var(--dark); }
.legal p, .legal li { color: #374151; font-size: 0.97rem; margin-bottom: 10px; }
.legal ul { padding-left: 24px; margin-bottom: 14px; }
.placeholder { background: #fef3c7; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.hinweis-box {
  background: #fef3c7; border-left: 4px solid #d97706; padding: 16px 20px;
  border-radius: 6px; margin-bottom: 30px; font-size: 0.92rem;
}

/* ---------- Footer ---------- */
footer { background: var(--dark); color: #b9bfc8; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer .logo { color: var(--white); }
footer h4 { color: var(--white); margin-bottom: 14px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; }
footer a { color: #b9bfc8; text-decoration: none; font-size: 0.93rem; }
footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #3a3f47; padding-top: 22px; font-size: 0.85rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    box-shadow: 0 12px 20px rgba(0,0,0,0.12); padding: 10px 0; align-items: flex-start;
  }
  nav ul.open { display: flex; }
  nav ul li { padding: 12px 24px; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .kontakt-band { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
}
