/* ==========================================================================
   Layout: Header, Mega-Menü, Mobile-Navigation, Footer
   ========================================================================== */
body[data-header="solid"] main {
  padding-top: var(--hh);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--hh);
  transition:
    background-color 0.35s,
    color 0.35s,
    box-shadow 0.35s;
}
.site-header__bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.site-header.is-solid {
  background: rgba(247, 248, 244, 0.94);
  color: var(--night);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(38, 51, 47, 0.12);
}
.site-header.is-over {
  background: transparent;
  color: var(--porcelain);
}
.site-header.is-over.is-scrolled,
.site-header.is-over.is-open {
  background: rgba(38, 51, 47, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(247, 248, 244, 0.12);
}
.site-header.is-solid.is-open {
  background: var(--porcelain);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}
.brand__mark {
  width: 1.35rem;
  height: 1.35rem;
  position: relative;
  display: block;
}
.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.brand__mark::before {
  top: 0;
  clip-path: polygon(50% 0, 100% 100%, 82% 100%, 50% 26%, 18% 100%, 0 100%);
  background: currentColor;
}
.brand__mark::after {
  height: 2px;
  left: 22%;
  right: 22%;
  background: var(--ice);
}
.brand__name {
  font-family: var(--f-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav {
  margin-left: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__item {
  position: static;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.9688rem;
  font-weight: 520;
  position: relative;
  border-radius: var(--r);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.4rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after,
.nav__toggle[aria-expanded="true"]::after {
  transform: scaleX(1);
}
.nav__link .icon {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-header.is-over .btn--header {
  background: var(--porcelain);
  color: var(--night);
  border-color: var(--porcelain);
}
.site-header.is-solid .btn--header {
  background: var(--pine);
  color: var(--porcelain);
}
.site-header:not(.is-over).is-solid .site-header__bar {
  --focus: var(--pine);
}
.site-header.is-over {
  --focus: var(--ice);
}
.menu-btn {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
}
.menu-btn .icon {
  width: 1.6rem;
  height: 1.6rem;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* Mega-Menü */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--porcelain);
  color: var(--night);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(29, 37, 35, 0.35);
  animation: megaIn 0.35s var(--ease);
}
@keyframes megaIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.mega__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(16rem, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 2.5rem 3rem;
}
.mega--small .mega__inner {
  grid-template-columns: 1fr;
}
.mega__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.mega__title {
  font-family: var(--f-display);
  font-stretch: 75%;
  font-size: 1.5rem;
  font-weight: 450;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.mega__col a,
.mega__simple a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  position: relative;
  transition: padding 0.3s var(--ease);
}
.mega__col a:hover,
.mega__simple a:hover {
  padding-left: 0.5rem;
}
.mega__col a[aria-current],
.mega__simple a[aria-current] {
  font-weight: 620;
}
.mega__name {
  font-weight: 540;
}
.mega__price,
.mega__desc {
  font-size: 0.875rem;
  color: var(--muted-l);
}
.mega__simple {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 2.5rem;
}
.mega__simple a {
  flex-direction: column;
  gap: 0.15rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.mega__aside {
  background: var(--pine);
  color: var(--porcelain);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  --accent: var(--ice);
  --focus: var(--ice);
}
.mega__lead {
  font-family: var(--f-display);
  font-stretch: 75%;
  font-size: 1.6rem;
  line-height: 1.1;
}
.mega__aside p {
  font-size: 0.95rem;
  color: #d4dcd7;
}

.link-line {
  display: inline-block;
  font-weight: 560;
  background: linear-gradient(currentColor, currentColor) 0 100%/100% 1px
    no-repeat;
  padding-bottom: 0.2em;
  transition:
    background-size 0.4s var(--ease),
    color 0.3s;
  width: fit-content;
}
.link-line:hover {
  background-size: 35% 1px;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--night);
  color: var(--porcelain);
  overflow-y: auto;
  --focus: var(--ice);
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.mobile-nav__inner {
  min-height: 100%;
  padding: 1rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(var(--hh) - 1rem);
}
.mobile-nav__list > li {
  border-bottom: 1px solid rgba(240, 241, 236, 0.15);
}
.mobile-nav__list a,
.mobile-nav__acc {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  font-family: var(--f-display);
  font-stretch: 75%;
  font-size: 2rem;
  font-weight: 380;
  line-height: 1.1;
}
.mobile-nav__acc .icon {
  width: 1.4rem;
  height: 1.4rem;
  transition: transform 0.3s;
}
.mobile-nav__acc[aria-expanded="true"] .icon {
  transform: rotate(45deg);
}
.mobile-nav__sub {
  padding: 0 0 1rem 0.75rem;
}
.mobile-nav__sub a {
  font-family: var(--f-body);
  font-stretch: 100%;
  font-size: 1.05rem;
  padding: 0.45rem 0;
  color: var(--muted-d);
}
.mobile-nav .btn {
  margin-top: auto;
}
body.nav-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .site-header__actions {
    margin-left: auto;
  }
}
@media (max-width: 520px) {
  .btn--header {
    display: none;
  }
}

/* Footer */
.site-footer {
  background: var(--night);
  color: var(--porcelain);
  padding-top: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  --focus: var(--ice);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}
.site-footer__lead {
  font-family: var(--f-display);
  font-stretch: 75%;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.05;
  font-weight: 360;
  max-width: 14em;
  text-wrap: balance;
}
.site-footer__operator {
  margin-top: 1.2rem;
  color: var(--ice);
  font-size: 0.95rem;
}
.site-footer__contact {
  display: grid;
  gap: 0.25rem;
  margin-top: 2rem;
  font-style: normal;
  color: var(--muted-d);
  font-size: 0.97rem;
}
.site-footer__contact a {
  color: var(--porcelain);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-h {
  font-weight: 620;
  font-size: 0.97rem;
  margin-bottom: 1rem;
  color: var(--ice);
}
.site-footer__cols li {
  margin-bottom: 0.5rem;
}
.site-footer__cols a {
  color: #d5dcd8;
  font-size: 0.97rem;
  transition:
    color 0.25s,
    padding 0.3s var(--ease);
}
.site-footer__cols a:hover {
  color: #fff;
  padding-left: 0.35rem;
}
.wordmark {
  margin-top: clamp(3rem, 7vw, 6rem);
  line-height: 0;
  overflow: hidden;
  user-select: none;
}
.wordmark img {
  display: block;
  width: 100%;
  height: clamp(9rem, 18vw, 16rem);
  object-fit: cover;
  object-position: center 90%;
  filter: saturate(0.88) brightness(0.9);
  transition:
    transform 0.6s var(--ease),
    filter 0.45s var(--ease);
}
.wordmark:hover img {
  transform: scale(1.025);
  filter: saturate(1) brightness(0.95);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.4rem 2rem;
  border-top: 1px solid rgba(240, 241, 236, 0.15);
  margin-top: clamp(1rem, 2vw, 1.5rem);
  font-size: 0.875rem;
  color: var(--muted-d);
}
.site-footer__legal ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer__legal a:hover {
  color: #fff;
  text-decoration: underline;
}
.wordmark + .site-footer__legal {
  margin-top: 0;
}
@media (max-width: 860px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
  .site-footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* Brotkrumen */
.crumbs {
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}
.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.5;
}
.crumbs a:hover {
  text-decoration: underline;
}
.crumbs [aria-current] {
  color: var(--fg);
}
.page-head {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* Reveal – zurückhaltend: nur Deckkraft und kurzer Weg */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
