:root {
  --blue: #212a72;
  --blue-deep: #181f5c;
  --blue-pattern: #164194;
  --gold: #d5b56e;
  --ink: #1a171b;
  --white: #ffffff;
  --page-max: 26.25rem; /* ~420px – schmale Mobile-Spalte auch auf Desktop */
  --bar-width: 96%;
  --radius-card: 1.35rem;
  --font: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --contact-gap: 1.1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: #e8e6e1;
}

.page {
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background-color: var(--blue);
  background-image: url('../img/AES-TEXTURE.svg');
  background-size: 14.5rem auto;
  background-repeat: repeat;
  box-shadow: 0 0 40px rgba(26, 23, 27, 0.12);
}

/* —— Scrollbarer Inhalt (volle Höhe, Kontaktleiste darüber) —— */
.hero {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 0 calc(5.75rem + var(--contact-gap) * 2);
  color: var(--white);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.hero__logo {
  display: block;
  flex: 0 0 auto;
  width: min(52vw, 11.5rem);
  height: auto;
  margin: 0 auto 1.1rem;
  animation: logo-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__tagline {
  flex: 0 0 auto;
  margin: 0 1.25rem 1.75rem;
  text-align: center;
  font-size: clamp(1.05rem, 4.6vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--gold);
  line-height: 1.25;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* —— Angebotskarte —— */
.offer {
  flex: 0 0 auto;
  width: 76.5%;
  max-width: 20.5rem;
  margin: 0 auto;
  background: var(--blue-deep);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  animation: fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.offer__media {
  flex-shrink: 0;
  line-height: 0;
}

.offer__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 384 / 212;
  object-fit: cover;
}

.offer__copy {
  flex-shrink: 0;
  padding: 1rem 0.9rem 1.15rem;
  text-align: center;
}

.offer__copy p {
  margin: 0;
  font-size: clamp(0.78rem, 3.35vw, 0.9rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--white);
}

.offer__copy p + p {
  margin-top: 0.12rem;
}

.plus {
  color: var(--gold);
  font-weight: 500;
}

/* —— Kontaktleiste (Overlay unten, Inhalt scrollt darunter) —— */
.contact-bar {
  position: absolute;
  left: 50%;
  bottom: var(--contact-gap);
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  width: var(--bar-width);
  max-width: calc(var(--page-max) * 0.96);
  margin: 0;
  padding: 0.95rem 0.5rem 0.75rem;
  background: var(--blue-deep);
  border-radius: 0.75rem;
  text-decoration: none;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
  z-index: 10;
}

.contact-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  color: var(--white);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-bar__item:hover,
.contact-bar__item:focus-visible {
  opacity: 0.88;
  transform: translateY(-2px);
  outline: none;
}

.contact-bar__item img {
  display: block;
  width: 1.85rem;
  height: auto;
}

/* SVG enthält bereits den weißen Rand – etwas größer als Mail/Anruf */
.contact-bar__item--whatsapp img {
  width: 2.35rem;
}

/* —— Motion —— */
@keyframes logo-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo,
  .hero__tagline,
  .offer {
    animation: none;
  }

  .contact-bar__item {
    transition: none;
  }
}

/* Desktop: gleiche schmale Spalte, etwas Luft ums Logo */
@media (min-width: 480px) {
  body {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(33, 42, 114, 0.12), transparent 55%),
      #e8e6e1;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .hero__logo {
    width: 12rem;
  }

  .offer {
    width: 76.5%;
  }
}
