/* evolution consulting – Seitenrahmen: Kopf, Navigation, Raster, Fuß
   Wird als letztes geladen und gewinnt bei Konflikten. */

/* ---- Schriften -------------------------------------------------
   Self-hosted, DSGVO-konform. Legen Sie die vier Dateien in
   /assets/fonts/ ab. Fehlen sie, greift automatisch Georgia/Arial.
   Download: fonts.google.com → Outfit, Cormorant Garamond (woff2)   */
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 300 700;
  font-display: swap; src: url("/assets/fonts/outfit.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2");
}

:root {
  --shell-max: 1180px;
  --head-h: 74px;
}

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

.sect { padding: 72px 0; }
.sect:first-of-type { padding-top: 0; }

.grid { display: grid; gap: 28px; align-items: stretch; }
.grid.cols-1 { grid-template-columns: 1fr; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid > .col { min-width: 0; }
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .sect { padding: 48px 0; }
}

/* ---- Kopf ---- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--grey-l, #EDEEE9);
}
.head-inner {
  max-width: var(--shell-max); margin: 0 auto; padding: 0 24px;
  height: var(--head-h); display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { display: block; }
.site-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none; color: var(--grey-d, #3a3e36);
  font-size: 15px; font-weight: 500; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--green, #3B6D11); }
.site-nav a.active { color: var(--green, #3B6D11); border-bottom-color: var(--gold, #C9A84C); }
.site-nav a.nav-cta {
  background: var(--green, #3B6D11); color: #fff;
  padding: 10px 18px; border-radius: 8px; border-bottom: 0;
}
.site-nav a.nav-cta:hover { background: var(--green-d, #27500A); color: #fff; }
.site-nav a:focus-visible { outline: 3px solid var(--gold, #C9A84C); outline-offset: 3px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none;
  border: 0; cursor: pointer; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--grey-d, #3a3e36); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; order: 3; }
  .site-nav {
    display: none; position: absolute; top: var(--head-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--grey-l, #EDEEE9);
    padding: 18px 24px 26px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-nav a.nav-cta { margin-top: 6px; }
}

/* ---- Fuß ---- */
.site-foot { background: var(--green-d, #27500A); color: #fff; padding: 56px 0 0; margin-top: 40px; }
.foot-inner {
  max-width: var(--shell-max); margin: 0 auto; padding: 0 24px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.site-foot p, .site-foot li, .site-foot a, .site-foot div { color: #fff; }
.site-foot a { text-decoration: none; opacity: .85; }
.site-foot a:hover { opacity: 1; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer-col-title { font-weight: 600; margin-bottom: 12px; text-indent: 0 !important; }
.footer-tagline { margin-top: 14px; font-size: 15px; line-height: 1.6; }
.foot-legal {
  border-top: 1px solid rgba(255,255,255,.18);
  max-width: var(--shell-max); margin: 0 auto; padding: 20px 24px 28px;
  display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; opacity: .85;
}
.foot-legal span { margin-right: auto; }
@media (max-width: 860px) { .foot-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-inner { grid-template-columns: 1fr; } }

/* Hero: im Joomla-Template lag der Hero außerhalb des Containers */
#top-a .container { max-width: none; padding: 0; }

/* Vollbreite Sektionen (Hero) */
.container-full { width: 100%; padding: 0; }
.container-full .grid { gap: 0; }

/* Sektionsrhythmus: Titel-Sektionen kleben an ihrer Inhaltssektion */
.sect + .sect { padding-top: 40px; }
.sect { padding: 56px 0; }
#top-a.sect, .sec-1.sect { padding: 0; }


/* ---- Feinschliff (Runde 2) ---- */

/* Logo und Navigation kompakt */
.brand img { height: 44px !important; width: auto; }
.site-nav a { font-size: 14px; white-space: nowrap; }
.site-nav ul { gap: 18px; }
.site-nav a.nav-cta { padding: 9px 15px; font-size: 14px; }

/* Hero: Overlay bleibt in der Sektion, laeuft nicht in die naechste */
.sect.hero { position: relative; overflow: hidden; padding: 0;
  min-height: 640px; height: 86vh; display: flex; align-items: center; }
.sect.hero .container-full, .sect.hero .container { position: static; width: 100%; }
.sect.hero .grid, .sect.hero .col { position: static; }
.sect.hero .hero-content { position: relative; z-index: 2; }

/* Karten in Rastern: gleiche Hoehe */
.row { align-items: stretch; }
.row > [class*="col-"] { display: flex; }
.row .card { height: 100%; width: 100%; display: flex; flex-direction: column; }
.row .card .card-body { flex: 1 1 auto; }
.grid > .col > .card { height: 100%; }

/* Herausgeloeste Titelzeilen vor breiten Rastern */
.grid-title { margin-bottom: 34px; }
.grid-title .section-title { margin-bottom: 0; }
