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

*,
*::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: var(--blue-pattern);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.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: 19.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(var(--contact-bar-height) + 1.25rem);
  color: var(--white);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.hero__logo {
  position: relative;
  flex: 0 0 auto;
  width: min(52vw, 11.5rem);
  aspect-ratio: 1;
  margin: 0 auto 1rem;
}

.hero__logo__circle,
.hero__logo__center {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* —— Laufschrift —— */
.hero__marquee {
  flex: 0 0 auto;
  width: 100%;
  margin: 0 0 1.5rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hero__marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-left 14s linear infinite;
}

.hero__marquee-item {
  flex: 0 0 auto;
  padding-right: 2rem;
  font-size: clamp(1.35rem, 5.8vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--gold);
  line-height: 1.2;
  white-space: nowrap;
}

/* —— Angebotskarte —— */
.offer {
  flex: 0 0 auto;
  width: var(--card-width);
  max-width: var(--card-max);
  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);
}

.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: 1.05rem 0.95rem 1.2rem;
  text-align: center;
}

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

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

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

/* —— Adresse & Instagram —— */
.company {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  width: var(--card-width);
  max-width: var(--card-max);
  margin: 1.5rem auto 0.5rem;
  padding: calc(1.35rem + 8px) calc(1.25rem + 8px) calc(1.45rem + 8px);
  background: var(--blue-deep);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.company__text {
  flex: 1 1 auto;
  min-width: 0;
}

.company__text p {
  margin: 0;
  font-size: clamp(0.92rem, 3.9vw, 1.05rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--white);
}

.company__text p + p {
  margin-top: 0.15rem;
}

.company__text a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.company__text a:hover,
.company__text a:focus-visible {
  color: var(--gold);
  outline: none;
}

.company__instagram {
  flex: 0 0 auto;
  display: block;
  align-self: flex-end;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.company__instagram img {
  display: block;
  width: 2.5rem;
  height: auto;
}

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

/* —— Kontaktleiste (fix unten, volle Satzspiegel-Breite) —— */
.contact-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.5rem 0.45rem;
  background: var(--blue-deep);
  border-radius: 0;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
  overflow: visible;
  z-index: 10;
}

.contact-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  color: var(--white);
  text-decoration: none;
  font-size: 0.68rem;
  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;
}

.contact-bar__item--whatsapp {
  position: relative;
  margin-top: -2.85rem;
}

.contact-bar__item--whatsapp img {
  width: 3.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* —— Motion —— */
@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__marquee-track {
    animation: none;
    justify-content: center;
    width: 100%;
  }

  .hero__marquee-item:last-child {
    display: none;
  }

  .contact-bar__item,
  .company__instagram,
  .company__text a {
    transition: none;
  }
}

/* Desktop: gleiche schmale Spalte, etwas Luft ums Logo */
@media (min-width: 480px) {
  body {
    background: var(--blue-pattern);
  }

  .hero {
    padding-top: 2.75rem;
  }

  .hero__logo {
    width: 12rem;
  }

  .offer,
  .company {
    width: var(--card-width);
  }
}
