/* ============================================================
   HOTEL RADETZKY – Critical CSS (Above-the-Fold)
   Header, Hero, Page-Hero, Basis-Typografie, Reveal-Reset.
   Vollständiges Styling in style.css (async geladen).
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  --navy: #08456B;
  --navy-light: #0a5a8a;
  --gold: #A89662;
  --gold-light: #c4b07a;
  --cream: #F5F0E8;
  --cream-dark: #E8E0D0;
  --white: #FFFFFF;
  --dark: #1A1A1A;
  --dark-soft: #3a3a3a;
  --sage: #7A8B6F;
  --wine: #8B2252;
  --light: #E8E0D0;
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(8, 69, 107, 0.08);
  --shadow-md: 0 8px 30px rgba(8, 69, 107, 0.12);
  --shadow-lg: 0 20px 60px rgba(8, 69, 107, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture { display: block; }

.hero__slide picture,
.hero__bg picture,
.page-hero__bg picture {
  width: 100%;
  height: 100%;
}

.nav__logo picture {
  display: inline-block;
  height: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--transition);
}

ul, ol { list-style: none; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

p {
  font-size: 1rem;
  color: var(--dark-soft);
  max-width: 72ch;
}

/* ── Section Label ── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 50px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.section-label--hero {
  color: var(--gold-light);
  padding-left: 0;
}

.section-label--hero::before { display: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Buttons (above-the-fold only) ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
}

/* ── HEADER / NAVIGATION ──────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.5s ease, padding 0.4s ease, box-shadow 0.4s ease,
              border-color 0.4s ease;
  padding: 1.2rem 0;
  border-bottom: 1px solid transparent;
}

.header--transparent {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.12) 60%,
    transparent 100%
  );
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.header--scrolled::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  opacity: 0.45;
  pointer-events: none;
}

.header--scrolled .nav__logo-text { color: var(--navy); }
.header--scrolled .nav__link { color: var(--dark); }
.header--scrolled .nav__link:hover,
.header--scrolled .nav__link--active { color: var(--gold); }

.header--scrolled .nav__cta {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 2px 16px rgba(168, 150, 98, 0.3);
}

.header--scrolled .hamburger span { background: var(--navy); }
.header--scrolled.header--menu-open .nav__logo-img { filter: brightness(0) invert(1); }
.header--scrolled.header--menu-open .hamburger span { background: var(--white); }

.nav__whatsapp-mobile { display: none; }

/* Dropdowns hidden by default – prevent FOUC while style.css loads async */
.nav__lang-dropdown,
.nav__dropdown-menu {
  opacity: 0;
  visibility: hidden;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.nav__logo-img {
  height: 44px;
  width: auto;
  transition: all 0.4s var(--transition);
  filter: brightness(0) invert(1);
}

.header--scrolled .nav__logo-img {
  filter: none;
  height: 40px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
  transition: color 0.3s var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.4s var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after { width: 100%; }

.nav__link:hover,
.nav__link--active { color: var(--gold); }

.nav__cta {
  padding: 0.65rem 1.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--transition);
  transform-origin: center;
}

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: max(100vh, 700px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero__slide--active { opacity: 1; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 69, 107, 0.6) 0%, rgba(8, 69, 107, 0.35) 50%, rgba(8, 69, 107, 0.5) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4rem;
}

.hero__glass {
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(8, 69, 107, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 3.5rem 3.5rem 3rem;
  max-width: 580px;
  text-align: left;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  animation: glassReveal 1.2s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes glassReveal {
  from {
    backdrop-filter: blur(0px) saturate(1);
    -webkit-backdrop-filter: blur(0px) saturate(1);
    background: rgba(8, 69, 107, 0);
    border-color: rgba(255, 255, 255, 0);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0);
    transform: translateY(20px);
  }
  to {
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    background: rgba(8, 69, 107, 0.2);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
  }
}

.hero__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(168, 150, 98, 0.3);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 0.5rem + 3.5vw, 3.8rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 0.7rem + 0.4vw, 1.05rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  max-width: 460px;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── HERO BOOKING VARIANT (CLS-critical) ────────────────── */
.hero--booking { min-height: 100vh; }
.hero--booking .hero__glass { max-width: 700px; }
.hero--booking .hero__title { font-size: clamp(1.45rem, 0.35rem + 3.5vw, 3.8rem); letter-spacing: -0.5px; }
.hero--booking .hero__subtitle { font-size: clamp(0.85rem, 0.65rem + 0.5vw, 1.15rem); opacity: 0.9; max-width: 520px; margin: 0 auto; }

/* ── BOOKING BAR SKELETON (CLS-critical) ────────────────── */
.booking-bar-section { position: relative; z-index: 100; padding: 0 2rem; margin-top: -4rem; }
.booking-bar { max-width: 700px; margin: 0 auto; padding: 2rem 2.5rem; }

.hero__dots {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.75rem;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s var(--transition);
  padding: 0;
}

.hero__dot--active {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: scale(1.2);
}

.hero__scroll {
  position: absolute;
  bottom: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUpCentered 1s 1.5s forwards;
}

@keyframes fadeUpCentered {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ── PAGE HERO (subpages) ──────────────────────────────── */
.page-hero {
  position: relative;
  min-height: max(60vh, 450px);
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 69, 107, 0.8) 0%, rgba(8, 69, 107, 0.3) 60%, rgba(8, 69, 107, 0.2) 100%);
  z-index: 1;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.page-hero__title {
  font-size: clamp(1.35rem, 0.5rem + 4.5vw, 4rem);
  color: var(--white);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.page-hero__subtitle {
  font-size: clamp(0.85rem, 0.65rem + 0.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  max-width: 750px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ── Sections (basic) ── */
.section { padding: 7rem 0; }
.section--cream { background: var(--cream); }

/* ── Scroll Reveal (prevent FOUC) ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE (critical elements only) ───────────────── */

@media (max-height: 800px) {
  .hero { min-height: max(85vh, 500px); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(7, 23, 43, 0.91);
    backdrop-filter: blur(36px) saturate(1.4);
    -webkit-backdrop-filter: blur(36px) saturate(1.4);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.25);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2rem 1.5rem;
  }

  .nav__menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    pointer-events: none;
  }

  .nav__menu.active { right: 0; }
  .nav__menu.active::before { background: rgba(0, 0, 0, 0.45); }

  .nav__menu .nav__link {
    color: var(--white);
    font-size: 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
  }

  .nav__menu .nav__link::after { display: none; }

  .nav__menu .nav__cta {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    text-align: center;
    padding: 0.75rem 2rem;
  }

  .nav__whatsapp-mobile { display: block; }

  .section { padding: 4rem 0; }
  .page-hero { min-height: 50vh; padding-top: 5rem; padding-bottom: 2.5rem; }
  .page-hero__subtitle { line-height: 1.5; }

  .hero { align-items: center; justify-content: center; padding-top: 5rem; }
  .hero__content { padding: 0 0.4rem; }
  .hero .hero__glass {
    max-width: 100%;
    width: 100%;
    text-align: center;
    padding: 1.5rem 1.35rem 1.75rem;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .hero .hero__subtitle { max-width: 100%; line-height: 1.6; }
  .hero--booking .hero__glass { max-width: 100%; width: 100%; padding: 2rem 1.35rem 1.75rem; border-radius: 20px; text-align: center; }
  .hero--booking .hero__title { font-size: clamp(1.45rem, 0.35rem + 4.2vw, 1.7rem); }
  .hero--booking .hero__subtitle { font-size: clamp(0.9rem, 0.7rem + 0.5vw, 1.05rem); max-width: 100%; }
  .hero .hero__actions { justify-content: center; flex-direction: column; width: 100%; gap: 0.75rem; }
  .hero .hero__actions .btn { width: 100%; text-align: center; justify-content: center; padding-top: 0.4rem; padding-bottom: 0.4rem; font-size: 0.8rem; letter-spacing: 0.5px; }
  .hero--booking .hero__scroll { bottom: 1.5rem; animation-delay: 0.3s; }
  .hero__dots { bottom: 0; }
  .hero__dot { width: 8px; height: 8px; }
  .hero--booking { min-height: 60vh; }
  .booking-bar-section { margin-top: 0; padding: 0 1rem; }
  .booking-bar { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 100vw; }
}

@media (min-width: 1600px) {
  .hero__glass { max-width: 640px; }
  .hero__content { padding: 0 5rem; }
}

@media (min-width: 2200px) {
  .hero__glass { max-width: 750px; }
  .hero__content { padding: 0 6rem; }
}
