/* =========================================================
   BASE
========================================================= */

* {
  box-sizing: border-box;
}

/* =========================================================
   HEADER (MOBILE FIRST)
========================================================= */

.site-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    "logo toggle cta"
    "nav nav nav";

  align-items: center;
  gap: 0.75rem;

  padding: 1rem;
}

/* =========================================================
   LOGO
========================================================= */

.site-logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  display: block;
  max-width: 95px;
  height: auto;
  margin-top: 3px;
}

/* =========================================================
   CTA
========================================================= */

.header-cta {
  grid-area: cta;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  max-width: 4em;
  padding: 0.4rem;

  background: var(--gold);
  color: #fff;

  text-decoration: none;
  text-align: center;
  line-height: 1.1;

  border-radius: 6px;

  transition: background-color 0.2s ease;
}

.header-cta:hover {
  background: var(--green);
  color: #000;
}

.header-cta__mail {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.15rem;
  width: 18px;
  height: 18px;
  margin-top: 0.3rem;
}

/* =========================================================
   TOGGLE
========================================================= */

.nav-toggle {
  grid-area: toggle;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: none;
  border: 0;
  cursor: pointer;

  color: var(--green);
  font-size: 2.8rem;
  line-height: 1;
}

.nav-toggle__icon::before {
  content: "☰";
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  content: "✕";
}

/* =========================================================
   NAVIGATION MOBILE
========================================================= */

.main-navigation {
  grid-area: nav;
  display: none;
  width: 100%;
}

.main-navigation.is-open {
  display: block;
}

.main-navigation__list {
  display: flex;
  flex-direction: column;

  gap: 0.4rem;

  margin: 0;
  padding: 0;

  list-style: none;
}

.main-navigation__link {
  display: block;

  padding: 0.9rem 1rem;

  background: var(--green);
  color: #fff;

  text-decoration: none;
  text-align: center;

  transition: background-color 0.2s ease;
}

.main-navigation__link:hover {
  background: var(--darkgreen);
}

.main-navigation__link.is-current {
  font-weight: 700;
}

/* =========================================================
   DESKTOP
========================================================= */
@media (min-width: 56.25em) {
  /* Mobile Toggle ausblenden */

  .header-cta {
    position: sticky;
    margin-left: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--gold);
    color: #fff;
    text-decoration: none;

    border-radius: 8px;

    min-width: 90px;
    min-height: 90px;
  }
  .main-navigation__list {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .main-navigation__link {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;

    /* font-weight: 600; */
    padding: 0;
    background: none;
    text-align: left;
  }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 72px;
    padding: 0 1rem;
  }
  .site-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 70px;
    background: var(--green);
    z-index: 0;
  }
  .site-logo,
  .main-navigation,
  .header-cta {
    position: relative;
    z-index: 1;
  }

  .nav-toggle {
    display: none;
  }

  .main-navigation {
    display: block;
    flex: 1;
  }
}
