/* ==========================================================================
   CSS Variables - High-End Design System (Soft Structuralism / Editorial Luxury)
   ========================================================================== */
/* Local Fonts */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url('fonts/outfit-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/outfit-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/outfit-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/outfit-600.woff2') format('woff2');
}

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


:root {
  /* Colors */
  --bg-primary: #f5ede0;
  --bg-secondary: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --accent: #8e735b;
  /* Warm bronze/earth tone */
  --accent-light: #c5b4a2;

  /* Borders & Shadows */
  --border-light: rgba(0, 0, 0, 0.08);
  --border-inner: rgba(255, 255, 255, 0.5);
  --shadow-diffuse: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  --shadow-inner: inset 0 1px 1px rgba(255, 255, 255, 1);

  /* Radii */
  --radius-outer: 2rem;
  --radius-inner: calc(2rem - 0.5rem);
  --radius-pill: 9999px;

  /* Spacing */
  --space-sm: 0.5rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;

  /* Transitions */
  --transition-spring: 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Outfit', -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-inner);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

h1 {
  font-size: 3rem;
  /* Fallback for old browsers */
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: 2.5rem;
  /* Fallback */
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.8rem;
  /* Fallback */
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 65ch;
  margin-bottom: var(--space-md);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: var(--border-light);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
}

/* ==========================================================================
   Layout & Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
  /* Standard padding for mobile */
}

@media (min-width: 768px) {
  .container {
    padding: 0 4rem;
    /* More generous padding on desktop */
  }
}

.text-block-bg {
  background: var(--bg-secondary);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  box-shadow: var(--shadow-diffuse);
  border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
  .text-block-bg {
    padding: 3rem 4rem;
  }
}

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .grid {
    gap: var(--space-md);
  }
}

.grid-cols-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-cols-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Stagger Grid for Apartments */
.stagger-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .stagger-grid {
    grid-template-columns: 1.2fr 0.8fr;
    min-height: 500px;
    /* Slightly taller for more elegance */
  }

  .stagger-grid.reverse {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .stagger-grid>div:not(.image-core) {
    padding: var(--space-xl) !important;
    /* More space for the text */
  }
}

@media (max-width: 768px) {
  .stagger-grid .image-core {
    aspect-ratio: 16/9;
    height: auto !important;
  }

  .stagger-grid>div {
    padding: var(--space-lg) !important;
  }

  .stagger-grid h3 {
    font-size: 1.8rem !important;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.split-screen {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
  padding-top: var(--space-xl);
}

@media (max-width: 1023px) {
  .split-screen.hero-mobile-enhanced {
    display: flex !important;
    flex-direction: column-reverse !important;
    text-align: center !important;
    gap: var(--space-lg);
    background: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
    border-radius: 40px;
    padding: 6rem 1.25rem 2rem !important;
    margin-top: 1rem;
  }

  .hero-mobile-enhanced .hero-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-mobile-enhanced .hero-image {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto 1rem !important;
    transform: none;
  }

  .hero-mobile-enhanced .hero-image .image-core {
    min-height: 250px !important;
    aspect-ratio: 1/1 !important;
  }

  .hero-mobile-enhanced .hero-text .eyebrow {
    margin: 0 auto 0.5rem !important;
  }

  .hero-mobile-enhanced .hero-text h1 {
    font-size: 2.8rem !important;
  }

  .hero-mobile-enhanced .hero-text .grid {
    text-align: left !important;
    width: 100% !important;
  }
}

@media (min-width: 1024px) {
  .split-screen {
    grid-template-columns: 1.2fr 0.8fr;
    padding-top: 8rem; /* Increased to prevent overlap with fixed nav */
    min-height: 80vh;
    align-items: center;
  }

  .hero-image {
    height: 600px; /* Specific height for desktop */
  }

  .hero-image .card-shell {
    height: 100%;
  }
}

/* ==========================================================================
   Components: Double-Bezel Cards
   ========================================================================== */
.card-shell {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  border-radius: var(--radius-outer);
  box-shadow: var(--shadow-diffuse);
  overflow: hidden;
  /* Ensure inner content doesn't break rounding */
}

.card-core {
  background: var(--bg-secondary);
  border-radius: var(--radius-inner);
  padding: var(--space-lg);
  box-shadow: var(--shadow-inner);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Image Core overrides */
.card-core.image-core {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.card-core.image-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Explicitly disable all scaling/zooming on all images for Safari and other browsers */
img,
.image-core img,
.card-shell img,
.card-shell:hover img {
  transform: none !important;
  -webkit-transform: none !important;
  scale: 1 !important;
}

.card-shell {
  transition: none;
  /* Removed shadow transition */
}

/* ==========================================================================
   Navigation: Fluid Island Nav
   ========================================================================== */
.nav-wrapper {
  position: fixed;
  top: 1.5rem;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-island {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-inner);
  box-shadow: var(--shadow-diffuse);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: var(--transition-spring);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  transition: var(--transition-spring);
}

.mobile-menu-btn span:nth-child(1) {
  top: 6px;
}

.mobile-menu-btn span:nth-child(2) {
  top: 16px;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(245, 237, 224, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-spring);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-overlay .nav-link {
  font-size: 2rem;
  transform: translateY(2rem);
  opacity: 0;
  transition: var(--transition-spring);
}

.mobile-nav-overlay.open .nav-link {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .nav-wrapper {
    top: 0.75rem;
  }

  .nav-island {
    justify-content: space-between;
    width: calc(100% - 2rem);
    padding: 0.35rem 1rem;
  }

  .nav-island>a {
    font-size: 0.95rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-nav-overlay {
    gap: 0.75rem;
    padding-top: 6rem;
    justify-content: flex-start;
  }

  .mobile-nav-overlay .nav-link {
    font-size: 1.4rem;
  }
}

.nav-open .mobile-menu-btn span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.nav-open .mobile-menu-btn span:nth-child(2) {
  top: 11px;
  transform: rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--text-primary);
  color: white;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
  border: none;
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  transition: var(--transition-spring);
}

.btn:hover .btn-icon {
  transform: translate(4px, -1px);
  background: rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.btn-secondary .btn-icon {
  background: rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover .btn-icon {
  background: white;
}

/* ==========================================================================
   Motion & Scroll Interpolation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity var(--transition-spring),
    transform var(--transition-spring);
}

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

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-2xl);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Forms
   ========================================================================== */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  /* Increased padding */
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1.1rem;
  /* Increased font size */
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(142, 115, 91, 0.1);
}

input[type="checkbox"] {
  accent-color: var(--accent);
  cursor: pointer;
  width: 1.2rem;
  /* Slightly larger checkbox */
  height: 1.2rem;
}

label {
  cursor: pointer;
  font-size: 1rem;
  /* Base label size */
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================================================
   Content Pages (AGB, Datenschutz, etc)
   ========================================================================== */
.editorial-content {
  max-width: 75ch;
  margin: 0 auto;
  padding-top: 9rem;
}

.editorial-content h1 {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.editorial-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.editorial-content p,
.editorial-content ul {
  margin-bottom: var(--space-md);
}

.editorial-content ul {
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.editorial-content li {
  margin-bottom: 0.5rem;
}

.editorial-content strong {
  color: var(--text-primary);
}

.preise-card-price {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--space-md) 0;
  line-height: 1;
}

.preise-card-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ==========================================================================
   Equipment Grid (Airbnb Style)
   ========================================================================== */
.airbnb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  .airbnb-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.airbnb-grid ul {
  list-style: none;
}

.airbnb-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

/* Custom bullet to ensure it stays aligned */
.airbnb-grid li::before {
  content: "•";
  color: var(--accent);
  flex-shrink: 0;
  font-weight: bold;
}

/* ==========================================================================
   Room Sections
   ========================================================================== */
.room-section {
  padding: var(--space-lg) 0;
  border-bottom: none;
}

.room-section:nth-child(even) {
  background: transparent;
}

.room-content {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border-radius: var(--radius-outer);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  /* Increased gap between title and gallery */
}

.room-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0;
  color: var(--text-primary);
  display: inline-block;
}

@media (min-width: 1024px) {
  .room-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-xl);
    align-items: start;
    padding: var(--space-xl);
  }

  /* Scroll Focus Effect */
  .room-gallery .card-shell {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
    opacity: 1;
  }

  .room-gallery .card-shell.is-focused {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
  }


  .room-section h2 {
    position: sticky;
    top: 140px;
    text-align: left;
  }
}

/* ==========================================================================
   FINAL RESET - NO MORE IMAGE ZOOM
   ========================================================================== */
.card-shell,
.card-shell:hover,
.card-core,
.card-core:hover,
img,
img:hover {
  transform: none !important;
  -webkit-transform: none !important;
  scale: 1 !important;
}

.card-shell {
  transition: none !important;
}

.btn:hover .btn-icon {
  transform: translate(4px, -1px) !important;
  /* Removed  */
  background: rgba(255, 255, 255, 0.3);
}