/* ============================================================
   NOWABAU – Stylesheet
   Farben aus dem Firmenlogo: Grün / Blau
   ============================================================ */

:root {
  --gruen: #007858;
  --gruen-dunkel: #005c44;
  --blau: #2050a8;
  --blau-dunkel: #173c80;
  --tinte: #1c2733;
  --grau: #5a6673;
  --linie: #dde3e9;
  --hell: #f4f6f8;
  --weiss: #ffffff;
  --radius: 10px;
  --schatten: 0 2px 14px rgba(28, 39, 51, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--tinte);
  background: var(--weiss);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blau); }
a:hover { color: var(--blau-dunkel); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Kopfbereich ---------- */

.siteheader {
  position: sticky; top: 0; z-index: 50;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
  box-shadow: 0 1px 8px rgba(28, 39, 51, .06);
}

.headbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 10px; padding-bottom: 10px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--tinte); }
.brand img { width: 92px; height: auto; }
.brandtext { display: flex; flex-direction: column; line-height: 1.25; }
.brandtext strong { font-size: 1.25rem; letter-spacing: .04em; color: var(--gruen); }
.brandtext span { font-size: .78rem; color: var(--grau); }

.mainnav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.mainnav a {
  display: block; padding: 10px 14px; text-decoration: none;
  color: var(--tinte); font-weight: 600; font-size: .98rem;
  border-radius: 6px;
}
.mainnav a:hover { background: var(--hell); color: var(--blau); }
.mainnav a.aktiv { color: var(--blau); box-shadow: inset 0 -3px 0 var(--blau); border-radius: 6px 6px 0 0; }

.nav-cta a {
  background: var(--gruen); color: var(--weiss) !important;
  border-radius: 999px; padding: 10px 18px;
}
.nav-cta a:hover { background: var(--gruen-dunkel); }

.navtoggle { display: none; }

/* ---------- Held / Bühne ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: 440px; display: flex; align-items: center;
  background: var(--tinte);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.6s ease;
}
.hero-slides img.an { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15, 30, 45, .78) 0%, rgba(15, 30, 45, .45) 55%, rgba(15, 30, 45, .15) 100%);
}
.hero-inhalt { position: relative; z-index: 2; color: var(--weiss); padding: 70px 0; }
.hero-inhalt h1 {
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.2; max-width: 21ch; margin-bottom: 14px;
}
.hero-inhalt p.unterzeile {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 52ch; color: #e8edf2; margin-bottom: 26px;
}
.hero-inhalt .btn { margin-right: 10px; margin-bottom: 10px; }

/* Jubiläumsbanner */
.jubilaeum {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--gruen); color: var(--weiss);
  border-radius: 999px; padding: 8px 20px 8px 10px;
  font-weight: 600; margin-bottom: 22px;
  box-shadow: var(--schatten);
}
.jubilaeum .zahl {
  background: var(--weiss); color: var(--gruen);
  border-radius: 999px; padding: 4px 12px;
  font-size: 1.15rem; font-weight: 800; letter-spacing: .02em;
}
.jubilaeum small { display: block; font-weight: 400; font-size: .78rem; opacity: .9; }

/* ---------- Schaltflächen ---------- */

.btn {
  display: inline-block; background: var(--blau); color: var(--weiss);
  text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 12px 26px; border-radius: 999px; border: 2px solid var(--blau);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: var(--weiss); }
.btn-ghost { background: transparent; color: var(--weiss); border-color: var(--weiss); }
.btn-ghost:hover { background: var(--weiss); color: var(--tinte); border-color: var(--weiss); }
.btn-gruen { background: var(--gruen); border-color: var(--gruen); }
.btn-gruen:hover { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); }

/* ---------- Abschnitte ---------- */

section { padding: 64px 0; }
section.hell { background: var(--hell); }

.kicker {
  color: var(--gruen); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .82rem; margin-bottom: 6px;
}
h2.abschnitt { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 18px; }
.einleitung { max-width: 68ch; color: var(--grau); margin-bottom: 34px; }

/* Leistungen */
.leistungsgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.leistung {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--schatten);
  border-top: 4px solid var(--gruen);
}
.leistung:nth-child(even) { border-top-color: var(--blau); }
.leistung h3 { font-size: 1.08rem; margin-bottom: 8px; }
.leistung p { font-size: .93rem; color: var(--grau); }

/* Infoband: Geschäftszeiten + Kontakt */
.infoband {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.infokarte {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--schatten);
}
.infokarte h3 { margin-bottom: 12px; color: var(--blau); }
.hourstable td { padding: 4px 18px 4px 0; }
.hourstable td:first-child { font-weight: 600; }

/* Referenzen */
.refgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.refkarte {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten);
  display: flex; flex-direction: column;
}
.refkarte figure { aspect-ratio: 16 / 9; overflow: hidden; margin: 0; }
.refkarte figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.refkarte:hover figure img { transform: scale(1.04); }
.refkarte .reftext { padding: 20px 24px 24px; flex: 1; }
.refkarte .refbeschreibung { margin-top: 10px; color: var(--grau); font-size: .95rem; }
.refkarte h3 { font-size: 1.15rem; margin-bottom: 4px; }
.refkarte .ort { color: var(--grau); font-size: .9rem; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li {
  background: var(--hell); color: var(--gruen-dunkel);
  border: 1px solid var(--linie);
  font-size: .8rem; font-weight: 600; border-radius: 999px; padding: 3px 12px;
}

.refgalerie { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 24px; }
.refgalerie figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; margin: 0; }
.refgalerie img { width: 100%; height: 100%; object-fit: cover; }

/* Zeitstrahl (Geschichte) */
.zeitstrahl { position: relative; margin: 30px 0; padding-left: 34px; max-width: 760px; }
.zeitstrahl::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px;
  width: 3px; background: linear-gradient(var(--gruen), var(--blau));
  border-radius: 2px;
}
.etappe { position: relative; padding-bottom: 34px; }
.etappe:last-child { padding-bottom: 0; }
.etappe::before {
  content: ""; position: absolute; left: -31px; top: 7px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--weiss); border: 4px solid var(--gruen);
}
.etappe:nth-child(even)::before { border-color: var(--blau); }
.etappe .jahr { font-weight: 800; color: var(--blau); font-size: 1.05rem; }
.etappe h3 { margin: 2px 0 6px; font-size: 1.15rem; }
.etappe p { color: var(--grau); max-width: 62ch; }

.zitat {
  border-left: 5px solid var(--gruen); background: var(--hell);
  padding: 22px 28px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.25rem; font-weight: 700; color: var(--gruen-dunkel);
  margin: 34px 0; max-width: 640px;
}

/* Kontakt */
.kontaktgrid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
.ansprechtabelle { width: 100%; border-collapse: collapse; }
.ansprechtabelle th, .ansprechtabelle td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--linie);
  vertical-align: top;
}
.ansprechtabelle th { color: var(--grau); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.ansprechtabelle td:first-child { font-weight: 700; }
.ansprechtabelle a { white-space: nowrap; }

/* Rechtstexte */
.textseite { max-width: 800px; }
.textseite h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 20px; }
.textseite h2 { font-size: 1.25rem; margin: 30px 0 10px; color: var(--blau); }
.textseite h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.textseite p, .textseite ul { margin-bottom: 14px; }
.textseite ul { padding-left: 22px; }
.textseite address { font-style: normal; }

/* Seitenkopf für Unterseiten */
.seitenkopf {
  background: linear-gradient(100deg, var(--blau-dunkel), var(--blau));
  color: var(--weiss); padding: 46px 0;
}
.seitenkopf h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.seitenkopf p { color: #dce6f5; max-width: 62ch; margin-top: 8px; }

/* ---------- Fußbereich ---------- */

.sitefooter { background: var(--tinte); color: #c8d2dc; margin-top: 40px; }
.sitefooter .footgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px; padding-top: 46px; padding-bottom: 36px;
}
.sitefooter h2 { color: var(--weiss); font-size: 1rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; }
.sitefooter a { color: #9fc3ff; text-decoration: none; }
.sitefooter a:hover { text-decoration: underline; }
.sitefooter address { font-style: normal; }
.sitefooter .footclaim { margin-top: 12px; font-weight: 600; color: var(--weiss); }
.footnav { list-style: none; }
.footnav li { margin-bottom: 6px; }
.footline { border-top: 1px solid #33404d; padding: 16px 0; font-size: .85rem; }

/* ---------- Popup ---------- */

.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 25, 35, .6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-box {
  position: relative; background: var(--weiss); border-radius: var(--radius);
  max-width: 480px; width: 100%; padding: 34px 34px 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  border-top: 6px solid var(--gruen);
}
.modal-kicker { color: var(--gruen); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.modal-box h2 { margin: 4px 0 14px; font-size: 1.5rem; }
.modal-box h2 span { color: var(--grau); font-size: 1rem; font-weight: 400; }
.joblist { list-style: none; margin-bottom: 14px; }
.joblist li {
  padding: 8px 0 8px 30px; font-weight: 700; font-size: 1.05rem;
  background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23007858'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat left center / 20px;
  border-bottom: 1px dashed var(--linie);
}
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.modal-actions .btn-ghost { color: var(--blau); border-color: var(--blau); }
.modal-actions .btn-ghost:hover { background: var(--blau); color: var(--weiss); }
.modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: 0; font-size: 2rem; line-height: 1;
  color: var(--grau); cursor: pointer;
}
.modal-close:hover { color: var(--tinte); }

/* ---------- Responsiv ---------- */

@media (max-width: 900px) {
  .refgrid, .kontaktgrid, .infoband { grid-template-columns: 1fr; }

  .navtoggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .navtoggle span:not(.visually-hidden) {
    width: 26px; height: 3px; background: var(--tinte); border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }
  .navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .mainnav ul {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--weiss); border-bottom: 1px solid var(--linie);
    box-shadow: 0 12px 24px rgba(28, 39, 51, .12);
    padding: 8px 14px 16px;
  }
  .mainnav ul.offen { display: flex; }
  .mainnav a.aktiv { box-shadow: inset 4px 0 0 var(--blau); border-radius: 6px; }
  .nav-cta a { text-align: center; margin-top: 8px; }

  .brandtext span { display: none; }
  section { padding: 46px 0; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand img { width: 72px; }
  .refgalerie { grid-template-columns: 1fr; }
}
