/* ── Alpine Cloak ─────────────────────────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ── Schriften ────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'APHeading';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'APHeading';
  src: url('../fonts/Montserrat-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Design-Variablen ─────────────────────────────────────────────────────── */
:root {
  --ap-font-heading: 'APHeading', Arial, sans-serif;
  --ap-primary:  #96981f;
  --ap-circle:   #b7be2e;
  --ap-cta-bg:   #575958;
  --ap-heading:  #636363;
  --ap-map-bg:   #edeeee;
}

.will-transform { will-change: transform; }

/* Hero Scroll-Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.75;
  transition: opacity 0.2s;
  animation: heroScrollBounce 2s ease-in-out infinite;
  z-index: 10;
}
.hero-scroll-indicator:hover {
  opacity: 1;
}
@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
/* (wheel animation removed – replaced by chevron indicator) */

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

.hero-slogan {
  font-family: var(--ap-font-heading);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}

.hero-kicker {
  font-family: var(--ap-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}

.hero-subline {
  font-family: var(--ap-font-heading);
  font-weight: 500;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
  max-width: 38rem;
}

.hero-slogan::selection,
.hero-kicker::selection,
.hero-subline::selection,
.hero-slogan *::selection,
.hero-kicker *::selection,
.hero-subline *::selection {
  background: #000;
  color: #fff;
}

.hero-fullscreen {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-slide-overscan {
  top: -180px;
  bottom: -48px;
}

.hero-brand-row {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 55;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}

.hero-brand-inner a,
.hero-brand-inner button {
  pointer-events: auto;
}

.hero-brand-row.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.hero-brand-row.is-hidden .hero-brand-inner a,
.hero-brand-row.is-hidden .hero-brand-inner button {
  pointer-events: none;
}

.hero-brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 1.5rem;
}

.hero-mallnitz-logo {
  width: auto;
  height: 72px;
  display: block;
}

.hero-ap-logo {
  width: auto;
  height: 34px;
  display: block;
}

.nav-primary,
.nav-primary a {
  font-family: var(--ap-font-heading);
  font-weight: 700;
  letter-spacing: 0.015em;
}

@media (max-width: 768px) {
  .hero-slogan {
    letter-spacing: 0.025em;
    -webkit-text-stroke: 0.015em transparent;
    text-rendering: geometricPrecision;
  }

  .hero-kicker {
    -webkit-text-stroke: 0.01em transparent;
    text-rendering: geometricPrecision;
  }

  .hero-subline {
    -webkit-text-stroke: 0.01em transparent;
    text-rendering: geometricPrecision;
  }

  .hero-slide-overscan {
    top: -120px;
    bottom: -32px;
  }
}

@media (min-width: 640px) {

  .hero-brand-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1.75rem;
  }

  .hero-mallnitz-logo {
    height: 86px;
  }

  .hero-ap-logo {
    height: 42px;
  }

}

@media (min-width: 768px) {

  .nav-primary,
  .nav-primary a {
    letter-spacing: 0.01em;
  }

}

@media (min-width: 1024px) {

  .hero-brand-inner {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 2.25rem;
  }

  .hero-mallnitz-logo {
    height: 148px;
  }

  .hero-ap-logo {
    height: 56px;
  }

}

.content-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  overflow: hidden;
}

.content-layer {
  position: relative;
  z-index: 1;
}

.pearl-circle {
  position: absolute;
  border: 1.5px solid var(--ap-circle);
  border-radius: 50%;
  opacity: 0.65;
  pointer-events: none;
}

.pearl-circle-left {
  width: 520px;
  height: 520px;
}

.pearl-circle-right {
  width: 400px;
  height: 400px;
}

.pearl-l-1 { left: -300px; top: 180px; }
.pearl-l-2 { left: -320px; top: 1280px; }
.pearl-r-1 { right: -220px; top: 760px; }

/* Unterkünfte-Karten: Trennlinie zeilenweise ausrichten (subgrid) */
@media (min-width: 768px) {
  .uk-card-grid {
    grid-auto-rows: auto;
    align-items: start;
  }
  .uk-card-grid > article {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

.ap-card-badge {
  position: absolute;
  right: 16px;
  bottom: -12px;
  z-index: 12;
  width: 60px;
  transform: rotate(-6deg);
  pointer-events: none;
}

.ap-card-badge img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 640px) {
  .ap-card-badge {
    right: 22px;
    bottom: -14px;
    width: 60px;
  }
}

/* Hero content spacing */
.hero-copy-wrap {
  padding-bottom: 6.75rem;
}

.hero-slider-dots {
  margin-top: 1.75rem;
}

@media (max-width: 639px) {
  .hero-copy-wrap {
    padding-bottom: 7.25rem;
  }

  .hero-slider-dots {
    margin-top: 1.5rem;
  }
}

@media (min-width: 640px) {
  .hero-copy-wrap {
    padding-bottom: 7rem;
  }

  .hero-slider-dots {
    margin-top: 1.85rem;
  }
}

@media (min-width: 1024px) {
  .hero-copy-wrap {
    padding-bottom: 7.5rem;
  }

  .hero-slider-dots {
    margin-top: 2rem;
  }
}

.hero-slide-media {
  position: absolute;
  left: 0;
  right: 0;
  display: block;
  overflow: hidden;
}

.hero-slide-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Focal-point helpers */
.hero-slide-media--top    img { object-position: center top; }
.hero-slide-media--bottom img { object-position: center bottom; }
.hero-slide-media--left   img { object-position: left center; }
.hero-slide-media--right  img { object-position: right center; }

/* Slider progress dot fill animation */
@keyframes hero-dot-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-dot-progress {
  transform-origin: left;
  animation: hero-dot-fill var(--hero-interval, 7s) linear forwards;
}

/* CTA-Balken Buttons (#575958 Hintergrund) */
.bg-\[\#575958\] a.inline-flex {
  background-color: transparent;
  border-color: var(--ap-primary);
  color: #fff;
}
.bg-\[\#575958\] a.inline-flex:active,
.bg-\[\#575958\] a.inline-flex.cta-btn-active {
  background-color: var(--ap-primary);
  border-color: var(--ap-primary);
  color: #fff;
}

@media (hover: hover) {
  .bg-\[\#575958\] a.inline-flex:hover {
    background-color: var(--ap-primary);
    border-color: var(--ap-primary);
    color: #fff;
  }
}

/* CTA-Balken Kicker (#575958 Hintergrund) */
.bg-\[\#575958\] .text-white\/70,
.bg-\[\#575958\] .text-pearl-400 {
  color: var(--ap-primary);
  font-size: 0.9rem;
}

/* Kicker-Farbe global (text-pearl-700) */
.text-pearl-700 {
  color: var(--ap-primary) !important;
  font-size: 1rem !important;
}

/* CTA-Balken Nummernkreise */
.cta-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

/* CTA-Balken Überschrift: Montserrat Bold */
.bg-\[\#575958\] h2 {
  font-family: var(--ap-font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  line-height: 1.1;
}

@supports (-webkit-touch-callout: none) {
  .hero-slogan,
  .hero-kicker,
  .hero-subline,
  .nav-primary,
  .nav-primary a {
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    font-synthesis: none;
  }

  .hero-slogan {
    -webkit-text-stroke: 0.015em transparent;
  }

  .hero-kicker {
    -webkit-text-stroke: 0.01em transparent;
  }
}
