/* su-brand.css — Kopf rem×1.8, Fuss rem×1.6 (gemessen gg. statisch: footAddr 14.4px, navLink 15px; Source html=62.5%/10px). */

/* --- Topbar (Action Bar) --- */
.topbar {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding: 0.72rem 0;
  padding-left: max(clamp(1.8rem, 3vw, 3.6rem), calc((100vw - var(--max-width, 1220px)) / 2));
  padding-right: max(clamp(1.8rem, 3vw, 3.6rem), calc((100vw - var(--max-width, 1220px)) / 2));
  background: var(--color-navbar, #206f40);
  font-family: var(--font-body);
  font-size: 1.62rem;
  border-bottom: 1px dashed rgba(255,255,255,0.5);
}

.topbar a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.topbar a:hover { color: #fff; }

.topbar-cta {
  padding: 0.35em 1.2em;
  border: 1px solid #fff;
  background: #fff;
  color: var(--color-primary, #006633) !important;
  letter-spacing: 0.5px;
  font-weight: 700;
  font-size: 1.35rem;
  transition: all 0.2s;
  border-radius: 4px;
}

.topbar-cta:hover {
  background: var(--color-primary, #006633);
  border-color: var(--color-primary, #006633);
  color: #fff !important;
}

.topbar-right { margin-left: auto; }

/* --- Navigation: Split-Layout (Logo zentriert) --- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 100;
  background: var(--color-primary, #006633);
  min-height: 90px;
  padding: 0;
  padding-left: max(clamp(1.8rem, 3vw, 3.6rem), calc((100vw - var(--max-width, 1220px)) / 2));
  padding-right: max(clamp(1.8rem, 3vw, 3.6rem), calc((100vw - var(--max-width, 1220px)) / 2));
  transition: box-shadow 0.3s;
}

.site-nav--sticky {
  position: sticky;
  top: 0;
}

.site-nav.scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  min-height: 60px;
  transition: min-height 0.3s;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--max-width, 1220px);
  margin: 0 auto;
}

/* Logo zentriert (absolute Position) */
.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -45px;
  z-index: 300;
  text-decoration: none;
}

.nav-logo img {
  height: 210px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: height 0.3s;
}

.site-nav.scrolled .nav-logo {
  top: -10px;
}

.site-nav.scrolled .nav-logo img {
  height: 80px;
}

.site-nav__logo-text {
  font-family: var(--font-heading);
  font-size: 2.7rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

/* Nav-Links links/rechts */
.nav-left, .nav-right {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  gap: 0;
}

.nav-left { justify-content: flex-start; padding-right: 130px; }
.nav-right { justify-content: flex-end; padding-left: 130px; }
.nav-mobile { display: none; }

.nav-left > li > a,
.nav-right > li > a {
  display: block;
  padding: 30px 18px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-left > li > a:hover,
.nav-right > li > a:hover,
[aria-current="page"] { color: #fff; }

/* Dropdowns */
.has-children { position: relative; }

.has-children > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  list-style: none;
  margin: 0;
  padding: 0.9rem 0;
  z-index: 200;
}

.has-children:hover > ul { display: block; }

.has-children > ul a {
  display: block;
  padding: 0.9rem 2.7rem;
  color: var(--color-text, #554030);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.has-children > ul a:hover {
  background: var(--color-primary, #006633);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.9rem;
  position: absolute;
  right: clamp(1.8rem, 3vw, 3.6rem);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.2s;
}

/* Sticky: Nav-Links verkleinern */
.site-nav.scrolled .nav-left > li > a,
.site-nav.scrolled .nav-right > li > a {
  padding: 18px 15px;
}

/* --- Responsive: Mobile Nav --- */
@media (max-width: 1099px) {
  .topbar { display: none; }

  .site-nav { flex-wrap: wrap; min-height: auto; padding: 0.9rem clamp(1.8rem, 3vw, 3.6rem); }
  .nav-toggle { display: block; }

  .nav-logo {
    position: relative;
    left: auto; top: auto;
    transform: none;
    padding: 0.9rem 0;
  }
  .nav-logo img { height: 60px; filter: none; }

  .nav-left, .nav-right,
  .nav-desktop { display: none !important; }

  .nav-mobile {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0;
    list-style: none;
    margin: 0;
  }

  .site-nav.open .nav-mobile { display: flex; }

  .nav-mobile > li > a {
    display: block;
    padding: 1.35rem 1.8rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1.53rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  .nav-mobile > li > a:hover { color: #fff; }

  /* Mobile Dropdowns: Klick-Toggle */
  .nav-mobile .has-children > ul {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,0.1);
    display: none;
  }

  .nav-mobile .has-children.open > ul { display: block; }

  .nav-mobile .has-children > ul a {
    color: rgba(255,255,255,0.8);
    padding: 0.9rem 3.6rem;
  }

  .nav-mobile .has-children > ul a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
  }
}


/* --- Footer (3 Spalten) --- */
.site-footer {
  background: var(--color-primary, #006633);
  color: rgba(255,255,255,0.8);
  padding: clamp(3.2rem, 5vw, 4.8rem) 0 3.2rem;
}

.site-footer__inner {
  max-width: var(--max-width, 1220px);
  margin: 0 auto;
  padding: 0 clamp(1.6rem, 3vw, 3.2rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.2rem;
}

.site-footer__brand img {
  filter: brightness(10);
}

.site-footer__brand-top {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.site-footer__logo { flex: 0 0 auto; }

.site-footer__brand-top .site-footer__address { margin: 0; }

.site-footer__email {
  font-size: 1.44rem;
  margin: 0 0 1.6rem;
}

.site-footer__email a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.site-footer__email a:hover { color: #fff; }

.site-footer__address {
  font-size: 1.44rem;
  line-height: 1.6;
  margin: 0 0 1.6rem;
}

.site-footer__address a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.site-footer__address a:hover { color: #fff; }

.site-footer__social {
  display: flex;
  gap: 1.2rem;
}

.site-footer__social a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.site-footer__social a:hover { color: #fff; }

.site-footer h5 {
  color: #fff;
  font-size: 1.68rem;
  letter-spacing: 0.5px;
  margin: 0 0 1.6rem;
}

.site-footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__nav a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 1.44rem;
}

.site-footer__nav a:hover { color: #fff; }

.site-footer__nav li + li {
  margin-top: 0.48rem;
}

.site-footer__about p {
  font-size: 1.44rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(255,255,255,0.7);
}

.site-footer__copy {
  font-size: 1.28rem;
  color: rgba(255,255,255,0.5);
  grid-column: 1 / -1;
  text-align: left;
}

.site-footer__copy p { margin: 0; }

.site-footer__copy a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.site-footer__copy a:hover { color: #fff; }

@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__copy {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2.4rem;
    margin-top: 1.6rem;
  }
}


/* Tag-Seite: Abstand letzter Post -> Footer */
body.tag-template .gh-main { padding-bottom: 64px; }
