/* ==========================================================================
   HGM Service – gemeinsames Stylesheet für alle Seiten
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Farben & Grundwerte (hier ändern, wirkt auf der ganzen Seite)
   -------------------------------------------------------------------------- */
:root {
  --gruen: #73ab14;
  --gruen-text: #4a7609;
  --grau: #2b323a;
  --grau-2: #363e47;
  --mittel: #586471;
  --bg: #dde1e5;
  --karte: #eceff1;
  --linie: #c8cfd5;
  --r: 18px;
}


/* --------------------------------------------------------------------------
   2. Grundlagen
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.65;
  color: var(--grau);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 750;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
  max-width: 68ch;
}

a {
  color: var(--gruen-text);
}

:focus-visible {
  outline: 3px solid var(--gruen);
  outline-offset: 3px;
}


/* --------------------------------------------------------------------------
   3. Kopfzeile & Navigation
   -------------------------------------------------------------------------- */
header {
  background: var(--grau);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  font-weight: 800;
  font-size: 1.45rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.01em;
}

.logo span {
  color: var(--gruen);
}

nav ul {
  list-style: none;
  display: flex;
  gap: .3rem;
  margin: 0;
  padding: 0;
}

nav a {
  display: block;
  padding: .55rem 1.1rem;
  color: #d3d9df;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  transition: background .2s, color .2s;
}

nav a:hover {
  background: var(--grau-2);
  color: #fff;
}

nav a.aktiv {
  background: var(--gruen);
  color: var(--grau);
}

.menue-btn {
  display: none;
  background: var(--grau-2);
  border: 0;
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}


/* --------------------------------------------------------------------------
   4. Startseite: Hero-Bereich
   -------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(115, 171, 20, .28), transparent 60%),
    var(--grau);
  color: #fff;
  padding: 6rem 0 6.5rem;
  border-radius: 0 0 40px 40px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gruen);
}

.hero p {
  font-size: 1.2rem;
  color: #c9d0d7;
  margin-bottom: 2rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
}

.hero h1 {
  max-width: 13ch;
}

/* Rundes Bild mit grünem Schein */
.halo {
  margin: 0;
  position: relative;
}

.halo::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(115, 171, 20, .55), transparent 72%);
  filter: blur(10px);
}

.halo .bild {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--gruen);
  background: linear-gradient(135deg, #46505b, #343c45);
  display: grid;
  place-items: center;
  color: #c9d0d7;
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}

.halo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.halo figcaption {
  position: relative;
  text-align: center;
  margin-top: 1rem;
  color: #c9d0d7;
  font-size: .95rem;
}


/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--gruen);
  color: var(--grau);
  padding: .9rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s, background .2s;
}

.btn:hover {
  background: #82c018;
  transform: translateY(-2px);
}

.btn.hell {
  background: transparent;
  color: #fff;
  border: 2px solid #56606b;
  margin-left: .6rem;
}

.btn.hell:hover {
  border-color: var(--gruen);
  background: transparent;
}

.btn.dunkel {
  background: var(--grau);
  color: #fff;
}

.btn.dunkel:hover {
  background: var(--grau-2);
}


/* --------------------------------------------------------------------------
   6. Abschnitte, Karten, Icons, Band
   -------------------------------------------------------------------------- */
section {
  padding: 4.5rem 0;
}

.raster {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.karte {
  background: var(--karte);
  border-radius: var(--r);
  padding: 2rem;
  box-shadow:
    0 1px 0 #f6f8f9 inset,
    0 8px 24px rgba(43, 50, 58, .08);
}

/* Listen in Karten: Liste mit grünen Häkchen */
.karte ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
  color: var(--grau);
}

.karte li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
}

.karte li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: .2rem;
  border-radius: 50%;
  background: var(--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b323a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--grau);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}

.icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--gruen);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.band {
  background: var(--grau);
  color: #fff;
  border-radius: 40px;
  margin: 0 1rem;
  text-align: center;
  padding: 4rem 1rem;
}

.band p {
  margin-inline: auto;
  color: #c9d0d7;
}

/* Text neben Haken-Liste (Startseite, "Wir laufen auch bei Ihnen mit") */
.sub {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.sub ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .8rem;
}

.sub li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-weight: 600;
}

.sub li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: .15rem;
  border-radius: 50%;
  background: var(--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b323a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}


/* --------------------------------------------------------------------------
   7. Unterseiten: Seitenkopf & Textkarten
   -------------------------------------------------------------------------- */
.seitenkopf {
  background: var(--grau);
  color: #fff;
  padding: 3.5rem 0 4rem;
  border-radius: 0 0 40px 40px;
}

.seitenkopf h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}

.seitenkopf h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  border-radius: 3px;
  background: var(--gruen);
  margin-top: .8rem;
}

.text {
  background: var(--karte);
  border-radius: var(--r);
  padding: 2.2rem;
  box-shadow: 0 8px 24px rgba(43, 50, 58, .08);
}

.text h2 {
  font-size: 1.35rem;
  margin-top: 1.6em;
}

.text h2:first-child {
  margin-top: 0;
}

.zwei {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1.4fr;
}


/* --------------------------------------------------------------------------
   8. Kontaktseite: Formular, Kontaktliste, Karte
   -------------------------------------------------------------------------- */
label {
  display: block;
  font-weight: 600;
  margin-bottom: .3rem;
}

input, textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 2px solid var(--linie);
  border-radius: 12px;
  font: inherit;
  margin-bottom: 1rem;
  background: #f6f8f9;
  color: var(--grau);
}

input:focus, textarea:focus {
  border-color: var(--gruen);
  outline: 0;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.check {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-weight: 400;
}

.check input {
  width: auto;
  margin: .35rem 0 0;
}

.kliste {
  display: grid;
  gap: .9rem;
  margin-bottom: 1.2rem;
}

.kliste a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
  border-radius: 14px;
  background: #e1e5e8;
  color: var(--grau);
  text-decoration: none;
  font-weight: 600;
  transition: background .2s;
}

.kliste a:hover {
  background: #d3d9de;
}

.kliste .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin: 0;
  flex: none;
}

.kliste .icon svg {
  width: 22px;
  height: 22px;
}

.kliste small {
  display: block;
  font-weight: 400;
  color: var(--mittel);
}

.karte-box {
  margin-top: 1.5rem;
}

.karte-rahmen {
  aspect-ratio: 16 / 9;
  min-height: 280px;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(135deg, #c3cad1, #aeb7bf);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}

.karte-rahmen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.karte-rahmen p {
  margin: 0 auto 1rem;
}

.aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
}


/* --------------------------------------------------------------------------
   9. Galerie
   -------------------------------------------------------------------------- */

/* Ältere Galerie-Variante (aktuell nicht im Einsatz, .platzhalter wird aber genutzt) */
.galerie {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.galerie figure {
  margin: 0;
  background: var(--karte);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(43, 50, 58, .08);
}

.galerie img,
.platzhalter {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.platzhalter {
  background: linear-gradient(135deg, #c3cad1, #aeb7bf);
  display: grid;
  place-items: center;
  color: var(--grau);
  font-weight: 700;
}

.galerie figcaption {
  padding: .9rem 1.2rem;
  font-weight: 600;
}

/* Ablaufleiste: Ursprungszustand → Im Bau → Fertiges Projekt */
.ablauf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 1.5rem 0 .6rem;
}

.ablauf span {
  position: relative;
  background: var(--grau);
  color: #fff;
  border-radius: 999px;
  padding: .55rem 1rem;
  font-weight: 700;
  text-align: center;
  font-size: .95rem;
}

.ablauf span:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 1.2rem;
  height: 3px;
  background: var(--gruen);
}

.ablauf span:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(100% + .75rem);
  top: 50%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-left: 8px solid var(--gruen);
  z-index: 1;
}

.ablauf span:last-child {
  background: var(--gruen);
  color: var(--grau);
}

.hinweis {
  color: var(--mittel);
  margin-bottom: 2rem;
}

.projekt {
  margin-bottom: 2.8rem;
}

.projekt h2 {
  font-size: 1.35rem;
  margin-bottom: .9rem;
}

.reihe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.reihe figure {
  margin: 0;
  background: var(--karte);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(43, 50, 58, .08);
}

.reihe .platzhalter {
  position: relative;
  aspect-ratio: 4 / 3;
  font-size: .9rem;
}

.reihe img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reihe figcaption {
  padding: .6rem 1rem;
  font-weight: 600;
  font-size: .92rem;
}

.reihe figure:last-child figcaption {
  background: var(--gruen);
  color: var(--grau);
}


/* --------------------------------------------------------------------------
   10. Partner (Startseite)
   -------------------------------------------------------------------------- */
.partner-raster {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 760px;
}

.partner {
  display: block;
  text-decoration: none;
  color: var(--grau);
  background: var(--karte);
  border-radius: var(--r);
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(43, 50, 58, .08);
  transition: transform .15s;
}

.partner:hover {
  transform: translateY(-3px);
}

.logo-box {
  position: relative;
  display: grid;
  place-items: center;
  height: 110px;
  border-radius: 12px;
  background: #f6f8f9;
  font-weight: 800;
  font-size: 1.2rem;
  text-align: center;
  padding: .5rem;
  margin-bottom: .8rem;
}

.logo-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .8rem;
  background: #f6f8f9;
  border-radius: 12px;
}

.partner small {
  display: block;
  color: var(--mittel);
}


/* --------------------------------------------------------------------------
   11. Fußzeile
   -------------------------------------------------------------------------- */
footer {
  background: var(--grau);
  color: #b8c0c8;
  padding: 2.2rem 0;
  margin-top: auto;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

footer a {
  color: #fff;
  margin-left: 1.2rem;
}

footer a:first-child {
  margin-left: 0;
}


/* --------------------------------------------------------------------------
   12. Responsive (Tablet & Handy) – bewusst am Ende, damit sie gewinnen
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid,
  .sub {
    grid-template-columns: 1fr;
  }

  .halo {
    max-width: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .ablauf,
  .reihe {
    grid-template-columns: repeat(2, 1fr);
  }

  .ablauf span::before,
  .ablauf span::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .menue-btn {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--grau);
  }

  nav.offen {
    display: block;
  }

  nav ul {
    flex-direction: column;
    padding: .5rem 1.5rem 1.2rem;
  }

  .zwei {
    grid-template-columns: 1fr;
  }

  .btn.hell {
    margin: .7rem 0 0;
  }

  .hero {
    padding: 4rem 0 4.5rem;
  }

  section {
    padding: 3rem 0;
  }
}


/* --------------------------------------------------------------------------
   13. Barrierefreiheit: weniger Bewegung
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
