.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
}

.head__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  height: var(--header);
  padding-inline: clamp(1rem, 2.4vw, 2.6rem);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-decoration: none;
}

.brand svg {
  width: 54px;
  height: 36px;
  color: var(--ink);
  transition: transform 0.6s var(--ease);
}

.brand:hover svg {
  transform: translateY(-2px) rotate(-4deg);
}

.brand b {
  font-family: var(--f-serif);
  font-weight: 500;
  font-variation-settings: "opsz" 36, "SOFT" 0;
  font-size: 1.22rem;
  line-height: 1;
  letter-spacing: -0.005em;
}

.nav {
  display: flex;
  gap: 0.2rem;
  justify-self: start;
}

.nav a {
  position: relative;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.25s var(--ease);
}

.nav a:hover {
  background: rgba(255, 201, 40, 0.24);
}

.nav a[aria-current="page"] {
  background: rgba(255, 201, 40, 0.42);
}

.head__rechts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4rem;
}

.head__mail {
  font-size: 0.88rem;
  color: var(--ink-2);
  text-decoration: none;
}

.head__mail:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.head__cta {
  white-space: nowrap;
  padding: 0.85rem 1.1rem 0.85rem 1.35rem;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px -10px rgba(242, 169, 0, 0.8);
}

.head__cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.burger i {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.burger i:first-of-type {
  top: 18px;
}

.burger i:last-of-type {
  top: 25px;
}

.burger[aria-expanded="true"] i:first-of-type {
  top: 21.5px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] i:last-of-type {
  top: 21.5px;
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: var(--header) 0 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem var(--side) 2rem;
  background: var(--paper);
  overflow-y: auto;
}

.menu[hidden] {
  display: none;
}

.menu nav {
  display: grid;
}

.menu nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-serif);
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 0;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  line-height: 1.05;
  text-decoration: none;
}

.menu nav a small {
  font-family: var(--f-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.menu__foot {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
}

body.menu-open {
  overflow: hidden;
}

/* Hauptinhalt liegt wie ein Blatt über der Fußzeile und gibt sie beim Scrollen frei */
main {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(5rem, 10vw, 9rem);
  background: var(--paper);
  border-radius: 0 0 clamp(28px, 4vw, 64px) clamp(28px, 4vw, 64px);
  box-shadow: 0 40px 60px -40px rgba(150, 95, 0, 0.45);
}

.foot {
  position: relative;
  z-index: 0;
  margin-top: calc(-1 * clamp(28px, 4vw, 64px));
  padding-top: clamp(28px, 4vw, 64px);
  overflow: hidden;
  background: linear-gradient(180deg, #ffd860 0%, #ffc928 45%, #ffb11c 100%);
  color: var(--ink);
}

.foot__glut {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1400px, 110vw);
  aspect-ratio: 1;
  top: auto;
  bottom: 0;
  translate: -50% 55%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 252, 235, 0.85), rgba(255, 245, 200, 0.35) 45%, rgba(255, 240, 190, 0) 100%);
  pointer-events: none;
}

.foot .wrap {
  position: relative;
}

.foot__word {
  display: flex;
  justify-content: center;
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
  padding-bottom: 0.2em;
  font-size: calc(min(100vw - 2 * var(--side), var(--max)) / 7.2);
  line-height: 0.95;
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
}

.foot__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(26, 30, 58, 0.22);
}

.foot__pitch {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
  align-content: start;
}

.foot__pitch p {
  font-family: var(--f-serif);
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 0;
  font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 14em;
}

.foot__pitch .btn:hover {
  background: var(--paper);
  color: var(--ink);
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.foot__cols h2 {
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26, 30, 58, 0.72);
}

.foot__cols a,
.foot__cols p {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
}

.foot__cols a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding: 1.1rem 0 1.4rem;
  border-top: 1px solid rgba(26, 30, 58, 0.22);
  font-size: 0.8rem;
  color: rgba(26, 30, 58, 0.78);
}

.foot__base a {
  color: var(--ink);
  font-weight: 600;
}

/* Wie ein Blatt: Fußzeile klebt unten, die Seite schiebt sich darüber weg und deckt sie von unten auf.
   Nur wenn sie ganz in den Bildschirm passt (prüft nav.js). */
.foot.klebt {
  position: sticky;
  bottom: 0;
}

@media (max-width: 1520px) {
  .head__mail {
    display: none;
  }
}

@media (max-width: 1400px) {
  .nav a {
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 1180px) {
  .head__inner {
    grid-template-columns: 1fr auto;
  }

  .nav,
  .head__rechts {
    display: none;
  }

  .brand {
    flex-direction: row;
    gap: 0.6rem;
    justify-self: start;
  }

  .brand svg {
    width: 42px;
    height: 28px;
  }

  .burger {
    display: block;
  }

  :root {
    --header: 68px;
  }
}

@media (max-width: 760px) {
  .foot__top {
    grid-template-columns: 1fr;
  }

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

  .foot__cols > div:last-child {
    grid-column: 1 / -1;
  }
}
