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

:root {
  --green:      #1D3D6B;
  --green-dark: #122540;
  --green-light:#2A5490;
  --gold:       #C4A35A;
  --gold-light: #d9bb7e;
  --cream:      #F8F5F0;
  --cream-dark: #ede9e2;
  --text:       #2A2A2A;
  --text-light: #666;
  --white:      #ffffff;
  --shadow:     0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ── Header ───────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}

#header.scrolled {
  background: rgba(18, 37, 64, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  padding: 0.75rem 2rem;
}

.header-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.header-logo span { color: var(--gold); }

.header-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.header-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--gold); }

/* ── Language Switcher ────────────────────────────────────── */
.lang-switcher {
  margin-left: 2rem;
}

.lang-select {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.4)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  padding-right: 1.4rem;
  transition: border-color 0.2s, color 0.2s;
}

.lang-select:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.lang-select:focus {
  outline: none;
  border-color: var(--gold);
  color: var(--gold);
}

.lang-select option {
  background: var(--green-dark);
  color: #fff;
  font-weight: 700;
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/outside.jpg') center center / cover no-repeat;
  transform: scale(1.05);
  transition: transform 0.1s linear;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(8, 15, 36, 0.60) 60%,
    rgba(8, 15, 36, 0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 2rem;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.4rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,163,90,0.4);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--green-dark);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
}

.hero-scroll svg {
  width: 22px;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Apartment Section ────────────────────────────────────── */
#apartment {
  background: var(--white);
  padding: 7rem 0;
}

.apartment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.apartment-text h2 { margin-bottom: 1.2rem; }

.apartment-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.apartment-features {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.feature-text span {
  font-size: 0.82rem;
  color: var(--text-light);
}

.apartment-image {
  position: relative;
}

.apartment-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
}

#lightbox.single .lb-nav { display: none; }

.apartment-image::before {
  content: '';
  position: absolute;
  top: -18px;
  left: -18px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--gold);
  border-radius: 8px;
  opacity: 0.5;
  z-index: -1;
}

/* ── Gallery / Slideshow ──────────────────────────────────── */
#gallery {
  background: var(--green-dark);
  padding: 7rem 0;
}

#gallery .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

#gallery h2 { color: var(--white); }
#gallery .section-label { color: var(--gold); }

.slideshow-wrap {
  display: flex;
  justify-content: center;
}

.slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  cursor: zoom-in;
}
.slide.active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ── Lightbox ─────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lb-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
  display: block;
}

.lb-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 501;
}
.lb-close:hover { color: var(--gold); }

.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.25);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  z-index: 501;
}
.lb-nav:hover {
  background: rgba(196,163,90,0.7);
  border-color: var(--gold);
}
.lb-nav svg { width: 20px; height: 20px; }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}
.slide-btn:hover {
  background: rgba(196,163,90,0.7);
  border-color: var(--gold);
}
.slide-btn svg { width: 20px; height: 20px; }
.slide-btn.prev { left: 1.2rem; }
.slide-btn.next { right: 1.2rem; }

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}
.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ── Aflenz Section ───────────────────────────────────────── */
#aflenz {
  background: var(--cream);
  padding: 7rem 0;
}

.aflenz-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4.5rem;
}

.aflenz-header h2 { margin-bottom: 1rem; }
.aflenz-header p { color: var(--text-light); font-size: 1.05rem; }

.aflenz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.aflenz-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.aflenz-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.aflenz-card-icon {
  width: 52px;
  height: 52px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 1.2rem;
}
.aflenz-card-icon svg { width: 26px; height: 26px; }

.aflenz-card h3 { margin-bottom: 0.6rem; color: var(--green-dark); }
.aflenz-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.65; }

.aflenz-kurort-badge {
  margin-top: 4rem;
  background: var(--green);
  border-radius: 8px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  color: var(--white);
}

.badge-icon {
  min-width: 72px;
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(196,163,90,0.5);
}
.badge-icon svg { width: 36px; height: 36px; color: var(--gold); }

.badge-text h3 {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.badge-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* ── Book Section ─────────────────────────────────────────── */
#book {
  background: var(--white);
  padding: 7rem 0;
}

.book-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.book-header h2 { margin-bottom: 0.8rem; }
.book-header p { color: var(--text-light); font-size: 1.05rem; }

.book-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.book-card {
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.book-card.primary {
  background: var(--green);
  color: var(--white);
}

.book-card.secondary {
  background: var(--cream);
  border: 2px solid var(--cream-dark);
}

.book-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.book-card.primary .book-card-icon {
  background: rgba(255,255,255,0.12);
  color: var(--gold);
}
.book-card.secondary .book-card-icon {
  background: var(--white);
  color: var(--green);
}

.book-card-icon svg { width: 28px; height: 28px; }

.book-card h3 { margin-bottom: 0.6rem; font-size: 1.25rem; }

.book-card.primary h3 { color: var(--white); }
.book-card.secondary h3 { color: var(--green-dark); }

.book-card p {
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}
.book-card.primary p { color: rgba(255,255,255,0.75); }
.book-card.secondary p { color: var(--text-light); }

.contact-info {
  margin-bottom: 1.8rem;
}

.contact-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.3rem;
}

.contact-phone {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.03em;
}

/* ── Location block (in #aflenz) ─────────────────────────── */
.location-block {
  margin-top: 2.5rem;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.location-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
}

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

.location-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.location-icon svg { width: 22px; height: 22px; }

.location-address {
  font-size: 1rem;
  color: var(--text);
  display: block;
}

.map-wrap {
  width: 100%;
  height: 380px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Second Property (Almhütte) ───────────────────────────── */
#almhuette {
  background: var(--green-dark);
  padding: 5rem 0;
}

.almhuette-card {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.almhuette-text {
  flex: 1;
}

#almhuette .section-label {
  color: var(--gold);
}

#almhuette h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

#almhuette p {
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.alm-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}

.alm-features li {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  padding-left: 1rem;
  position: relative;
}

.alm-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

#almhuette .btn-outline {
  border-color: var(--gold);
  color: var(--gold);
}

#almhuette .btn-outline:hover {
  background: var(--gold);
  color: var(--green-dark);
}

.almhuette-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.alm-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(196,163,90,0.3);
  border-radius: 12px;
  padding: 1.5rem 2.5rem;
  text-align: center;
}

.alm-score-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.alm-score-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.4rem;
  letter-spacing: 0.03em;
}

.alm-address-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin: 0 0 1.5rem;
}

.alm-address-line svg {
  flex-shrink: 0;
  opacity: 0.6;
  color: var(--gold);
}

.alm-score-date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .almhuette-card { flex-direction: column; gap: 2.5rem; }
  .alm-features { grid-template-columns: 1fr; }
  .almhuette-meta { width: 100%; }
}

/* ── Footer ───────────────────────────────────────────────── */
#footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
  border-top: 1px solid rgba(196,163,90,0.25);
}

#footer a {
  color: var(--gold);
  transition: opacity 0.2s;
}
#footer a:hover { opacity: 0.75; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .apartment-grid { grid-template-columns: 1fr; gap: 3rem; }
  .apartment-image::before { display: none; }
  .aflenz-grid { grid-template-columns: 1fr; }
  .book-cards { grid-template-columns: 1fr; max-width: 420px; }
  .aflenz-kurort-badge { flex-direction: column; text-align: center; padding: 2rem; }
}

@media (max-width: 600px) {
  .header-nav { display: none; }
  .apartment-features { grid-template-columns: 1fr; }
  #apartment, #gallery, #aflenz, #book { padding: 5rem 0; }
}
