/* ============================================================
   reset.css
   ============================================================ */
/* Modern CSS Reset — adapted from Andy Bell's reset (piccalil.li/blog/a-modern-css-reset) */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  overflow-x: clip; /* clip horizontal overflow without creating a scroll container (preserves position:sticky) */
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   tokens.css
   ============================================================ */
/* CSS Design Tokens — Two-layer custom property system */
/* Layer 1: Primitive tokens (raw values) */
/* Layer 2: Semantic tokens (purpose-driven aliases) */

:root {

  /* ============================================================
     PRIMITIVE COLOR TOKENS
     Phase 7: Palette B — Chalk & Slate (Rügen forest + Baltic sky)
     ============================================================ */

  --color-blue-300: rgb(157, 187, 223);
  --color-blue-500: rgb(100, 140, 190);   /* darker variant for contrast */
  --color-blue-700: rgb(60, 100, 150);    /* dark for text on light backgrounds */

  /* Rügen forest sage — Palette B (orange primitives removed) */
  --color-sage-700: #4A6741;    /* Forest sage — primary accent (WCAG AA: 5.6:1 vs white) */
  --color-sage-800: #3A5332;    /* Darker sage — hover state */
  --color-sage-300: #C2CFC0;    /* Light sage — tints, backgrounds */

  --color-neutral-900: #1a1a1a;
  --color-neutral-700: #4a4a4a;
  --color-neutral-400: #999999;
  --color-neutral-200: #e5e5e5;
  --color-neutral-100: #F6F4F1;  /* Cool chalk white — Rügen coastal palette */
  --color-white: #ffffff;

  /* ============================================================
     SEMANTIC COLOR TOKENS
     Purpose-driven aliases that map to primitives
     ============================================================ */

  --color-brand: var(--color-blue-300);
  --color-accent: var(--color-sage-700);         /* Sage green replaces orange */
  --color-accent-hover: var(--color-sage-800);   /* Darker sage for hover */

  --color-text: var(--color-neutral-900);
  --color-text-muted: var(--color-neutral-700);

  --color-bg: var(--color-neutral-100);
  --color-surface: var(--color-white);
  --color-border: var(--color-neutral-200);
  --color-heading: #2C3830;    /* Dark forest tone — pairs with Cormorant Garamond */

  /* ============================================================
     TYPOGRAPHY TOKENS
     ============================================================ */

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Raleway', system-ui, -apple-system, sans-serif;

  /* Font size scale */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.5rem;      /* 24px */
  --font-size-2xl: 2rem;       /* 32px */
  --font-size-3xl: 3rem;       /* 48px */

  /* Line heights */
  --line-height-body: 1.6;
  --line-height-heading: 1.2;

  /* ============================================================
     SPACING SCALE — 4px base unit
     ============================================================ */

  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-7: 1.75rem;    /* 28px */
  --space-8: 2rem;       /* 32px */
  --space-9: 2.25rem;    /* 36px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-14: 3.5rem;    /* 56px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px — large sections */
  --space-24: 6rem;      /* 96px — large sections */

  /* ============================================================
     LAYOUT TOKENS
     ============================================================ */

  --container-max: 1200px;
  --container-padding: var(--space-4);

  /* ============================================================
     BREAKPOINTS — documented here for reference only
     Cannot be used as CSS custom properties in media queries.
     Reference values: mobile-first base (0–479px),
     --bp-sm: 480px, --bp-md: 768px,
     --bp-lg: 1200px, --bp-xl: 1920px
     ============================================================ */

  /* ============================================================
     NAVIGATION LAYOUT TOKENS
     ============================================================ */

  --header-height: 64px;
  --z-header: 100;
  --z-mobile-nav: 200;
  --z-overlay: 99;  /* below header (100) so nav panel renders above the backdrop */
  --color-nav-transparent: var(--color-white);
  --transition-header: 0.3s ease;

}

html {
  scroll-padding-top: var(--header-height);
  scroll-behavior: smooth;
}


/* ============================================================
   nav.css
   ============================================================ */
/* Navigation Stylesheet — Villa Ankerplatz */
/* Mobile-first approach: base styles apply to all sizes, enhanced via min-width */

/* ============================================================
   SCROLL SENTINEL
   1px element used by IntersectionObserver to detect scroll position
   ============================================================ */

#scroll-sentinel {
  height: 1px;
  margin-bottom: -1px;
  pointer-events: none;
}

/* ============================================================
   PAGE-LEVEL GRID
   body becomes a 3-row grid: header / main / footer
   ============================================================ */

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

/* ============================================================
   STICKY HEADER — base (transparent over hero)
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  width: 100%;
  background-color: transparent;
  transition: background-color var(--transition-header), box-shadow var(--transition-header);
}

/* Unscrolled state on hero pages — subtle tint so dark text is always readable
   against the hero image background. Transitions to solid when scrolled. */
.site-header:not(.is-scrolled) {
  background-color: rgba(246, 244, 241, 0.82); /* chalk white semi-transparent */
}

/* Scrolled state — solid background + 3px sage green top accent via inset shadow */
.site-header.is-scrolled {
  background-color: var(--color-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 3px 0 0 var(--color-accent);
}

/* Frosted glass enhancement for browsers that support backdrop-filter */
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px) saturate(1.4);
    -webkit-backdrop-filter: blur(8px) saturate(1.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 3px 0 0 var(--color-accent);
  }
}

/* ============================================================
   HEADER INNER — Flexbox layout
   ============================================================ */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-height);
  padding-block: var(--space-2);
}

/* Mobile: logo absolutely centered between hamburger (left) and DE/EN (right) */
@media (max-width: 767px) {
  .header-inner {
    position: relative;
  }

  .site-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ============================================================
   SITE LOGO
   ============================================================ */

.site-logo {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  color: var(--color-text);
  font-weight: 700;
  white-space: nowrap;
}

/* Logo always uses dark text — hero image is behind the header but its top
   portion can be bright (sky/walls), making white text invisible at scroll-top.
   User decision: force dark text at all scroll positions. */

/* ============================================================
   DESKTOP NAV LINKS
   ============================================================ */

.site-nav ul {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: var(--font-size-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--color-brand);
}

.site-nav a[aria-current="page"] {
  color: var(--color-brand);
}

/* Underline-grow hover effect on desktop nav links */
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.2s ease;
  border-radius: 1px;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

/* Active page: underline always full width */
.site-nav a[aria-current="page"]::after {
  width: 100%;
  background-color: var(--color-brand); /* brand blue for current page */
}

/* Nav links always use dark text — matches logo/hamburger decision above */

/* ============================================================
   HEADER ACTIONS — language switcher + CTA
   ============================================================ */

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.lang-switch {
  font-size: var(--font-size-sm);
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 600;
}

.lang-switch--active {
  color: var(--color-text);
}

.lang-switch-divider {
  color: var(--color-neutral-400);
  font-size: var(--font-size-sm);
}

/* Language switcher always uses default dark text */

/* ============================================================
   CTA BUTTON — tonal (border-based), NOT orange accent
   Per user decision: use border/text style, not colored fill
   ============================================================ */

.btn--nav-cta {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn--nav-cta:hover {
  background-color: var(--color-text);
  color: var(--color-surface);
}

/* CTA button always uses default dark text/border */

/* Secondary CTA — Booking.com, subtler outlined style */
.btn--nav-cta--secondary {
  color: var(--color-text-muted);
  border-color: var(--color-neutral-400);
}

.btn--nav-cta--secondary:hover {
  background-color: var(--color-text-muted);
  color: var(--color-surface);
  border-color: var(--color-text-muted);
}

/* ============================================================
   HEADER BOOKING BUTTON — single "Jetzt buchen" dropdown CTA
   Extends booking-nav-btn (button reset) with the bordered
   CTA appearance. Double-class selector wins over booking-nav-btn.
   ============================================================ */

.header-booking-btn.booking-nav-btn {
  border: 1.5px solid var(--color-text);
  border-radius: 4px;
  padding: var(--space-2) var(--space-4);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-booking-btn.booking-nav-btn:hover {
  background-color: var(--color-text);
  color: var(--color-surface);
}

/* header-booking-item: hidden on mobile (hamburger menu has it there),
   shown on desktop where the nav booking item is hidden instead */
.header-booking-item {
  display: none;
}

@media (min-width: 768px) {
  .header-booking-item {
    display: block;
    position: relative;
  }
}

.header-booking-item .booking-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
  padding: var(--space-2) 0;
  margin: 0;
  z-index: calc(var(--z-header) + 1);
}

.header-booking-item .booking-dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.header-booking-item .booking-dropdown-link:hover {
  background-color: var(--color-bg);
  color: var(--color-accent);
}

/* ============================================================
   BOOKING DROPDOWN — nav "Jetzt buchen" item
   ============================================================ */

/* Trigger button — matches nav link styling exactly */
.booking-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.booking-nav-btn:hover {
  color: var(--color-brand);
}

/* Chevron rotates when dropdown is open */
.booking-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.booking-nav-btn[aria-expanded="true"] .booking-chevron {
  transform: rotate(180deg);
}

/* Dropdown list — mobile: inline below trigger */
.booking-dropdown {
  list-style: none;
  margin: var(--space-2) 0 0 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.booking-dropdown-link {
  display: block;
  padding: var(--space-2) 0;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  transition: color 0.15s ease;
}

.booking-dropdown-link:hover {
  color: var(--color-accent);
}

/* ============================================================
   HAMBURGER TOGGLE BUTTON — mobile only
   ============================================================ */

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--color-text);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Animate to X when nav is open (aria-expanded="true") */
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hamburger always uses dark color (currentColor = var(--color-text) from .nav-toggle) */

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: var(--z-overlay);
  transition: opacity 0.25s ease;
}

.nav-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   MOBILE NAV PANEL — slide in from right (default = mobile)
   Panel properties live on BOTH states so they're preserved
   when JS switches nav--hidden → nav--open
   ============================================================ */

.site-nav.nav--hidden,
.site-nav.nav--open {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: 80vw;
  max-width: 320px;
  background-color: var(--color-surface);
  transition: transform 0.25s ease;
  z-index: var(--z-mobile-nav);
  padding: var(--space-16) var(--space-6) var(--space-6);
  overflow-y: auto;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
}

.site-nav.nav--hidden {
  transform: translateX(100%); /* hidden off-screen */
}

.site-nav.nav--open {
  transform: translateX(0); /* slide in */
}

/* Stack links vertically inside mobile nav */
.site-nav.nav--hidden ul,
.site-nav.nav--open ul {
  flex-direction: column;
  gap: var(--space-4);
}

/* Larger link size for mobile nav */
.site-nav.nav--hidden a,
.site-nav.nav--open a {
  font-size: var(--font-size-lg);
  color: var(--color-text);
}

/* ============================================================
   DESKTOP OVERRIDES — min-width: 768px
   ============================================================ */

@media (min-width: 768px) {
  /* Hide hamburger on desktop */
  .nav-toggle,
  .nav-toggle-placeholder {
    display: none;
  }

  /* Hide overlay on desktop */
  .nav-overlay {
    display: none;
  }

  /* Reset mobile panel transforms — nav is always visible on desktop */
  .site-nav.nav--hidden,
  .site-nav.nav--open {
    position: static;
    height: auto;
    width: auto;
    max-width: none;
    transform: none;
    padding: 0;
    overflow: visible;
    box-shadow: none;
    background-color: transparent;
    transition: none;
  }

  /* Reset vertical stacking — ul goes back to horizontal row */
  .site-nav.nav--hidden ul,
  .site-nav.nav--open ul {
    flex-direction: row;
    gap: var(--space-6);
  }

  /* Reset enlarged mobile link size */
  .site-nav.nav--hidden a,
  .site-nav.nav--open a {
    font-size: var(--font-size-sm);
    color: var(--color-text);
  }

  /* Desktop booking nav button — same size as nav links */
  .booking-nav-btn {
    font-size: var(--font-size-sm);
  }

  /* Direct booking links hidden on desktop — header-actions button handles it */
  .booking-nav-direct {
    display: none;
  }

  /* Desktop dropdown — absolute panel below the trigger */
  .booking-nav-item {
    position: relative;
  }

  .booking-dropdown {
    position: absolute;
    top: calc(100% + var(--space-3));
    right: 0;
    min-width: 220px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    padding: var(--space-2) 0;
    margin: 0;
    z-index: 10;
  }

  .booking-dropdown-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    white-space: nowrap;
  }

  .booking-dropdown-link:hover {
    background-color: var(--color-bg);
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-nav,
  .hamburger-bar,
  .nav-overlay,
  .btn--nav-cta,
  .site-nav a,
  .site-nav a::after {
    transition: none;
  }
}


/* ============================================================
   footer.css
   ============================================================ */
/* Footer Stylesheet — Villa Ankerplatz */
/* Mobile-first approach: base styles apply to all sizes, enhanced via min-width */

/* ============================================================
   FOOTER BASE
   ============================================================ */

.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-6) 0;
  margin-top: auto;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   FOOTER INNER — stack on mobile, row on desktop
   ============================================================ */

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

/* ============================================================
   FOOTER ROW MAIN — contact + nav + social
   ============================================================ */

.footer-row--main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

/* ============================================================
   FOOTER CONTACT
   ============================================================ */

.footer-contact a {
  color: var(--color-text-muted);
  text-decoration: none;
}

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

/* ============================================================
   FOOTER NAV
   ============================================================ */

.footer-nav {
  display: flex;
  gap: var(--space-4);
}

.footer-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
}

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

/* ============================================================
   FOOTER SOCIAL ICONS
   ============================================================ */

.footer-social {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.footer-social a {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

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

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   FOOTER COPYRIGHT
   ============================================================ */

.footer-copyright {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* ============================================================
   DESKTOP OVERRIDES — min-width: 768px
   ============================================================ */

@media (min-width: 768px) {
  .footer-row--main {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-inner {
    text-align: left;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .footer-social a,
  .footer-contact a,
  .footer-nav a {
    transition: none;
  }
}


/* ============================================================
   home.css
   ============================================================ */
/* Home Page Styles — Villa Ankerplatz */

/* ============================================================
   SHARED SECTION UTILITIES
   ============================================================ */

.section {
  padding-block: var(--space-16);
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-8);
  font-family: var(--font-heading);
  position: relative;
  padding-bottom: var(--space-6);
}

.section-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin: var(--space-3) auto 0;
  border-radius: 2px;
}

/* For left-aligned headings — bar aligns left, not centered: */
.section-heading--left::after {
  margin-left: 0;
}

.section--alt {
  background-color: var(--color-surface);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-height)); /* pull hero behind sticky header so white text reads against the image */
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Strengthen the gradient — start fade earlier at 20%, deepen to 0.62 at 100% */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.62) 100%);
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  padding-bottom: var(--space-16);
  padding-inline: var(--space-4);
}

.hero-heading {
  font-size: var(--font-size-2xl);
  color: var(--color-white);
  /* Strengthen text-shadow: was 0.3, increase to 0.45 */
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  margin-bottom: var(--space-3);
}

.hero-subheading {
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: var(--space-8);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.30);
}

.btn--hero {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-3) var(--space-8);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn--hero:hover,
.btn--hero:focus-visible {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* Hero CTA row wrapper */
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

/* Ghost secondary CTA */
.btn--ghost {
  display: inline-block;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--color-white);
  padding: var(--space-2) var(--space-6);
  border-radius: 4px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  transform: translateY(-1px);
}

/* Outlined accent — secondary action on light backgrounds */
.btn--secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  padding: var(--space-3) var(--space-8);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Booking CTA pair — side-by-side on ≥480 px, stacked below */
.booking-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* ============================================================
   VILLA PREVIEW SECTION
   ============================================================ */

.section-heading--left {
  text-align: left;
}

.link-more {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  margin-top: var(--space-4);
}

.link-more:hover,
.link-more:focus-visible {
  text-decoration: underline;
  color: var(--color-accent-hover);
}

.villa-preview-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.villa-preview-text {
  margin-bottom: 0;
}

.villa-preview-text .section-heading--left {
  margin-bottom: var(--space-4);
}

.villa-preview-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.villa-preview-images picture {
  border-radius: 4px;
  overflow: hidden;
}

.villa-preview-images img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   KEY FEATURES SECTION
   ============================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-4);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-accent);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   REVIEWS TEASER SECTION
   ============================================================ */

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.review-card {
  background: var(--color-bg);
  padding: var(--space-6);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--color-accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-1);
  left: var(--space-3);
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}

.review-stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  color: var(--color-accent);
}

.review-text {
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-3);
  color: var(--color-text);
  quotes: none;
}

.review-attribution {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Review language label */
.review-language-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

/* <details>/<summary> expand pattern — hides disclosure triangle */
.review-details {
  margin-bottom: var(--space-3);
}

.review-details > summary {
  list-style: none;
  cursor: pointer;
}

.review-details > summary::-webkit-details-marker {
  display: none;
}

/* Truncated text shown in summary (closed state) */
.review-text--truncated {
  display: block;
}

/* When open: hide truncated version */
.review-details[open] .review-text--truncated {
  display: none;
}

.review-read-more {
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  display: inline-block;
  margin-top: var(--space-1);
  text-decoration: underline;
}

/* Full text revealed when details is open */
.review-text--full {
  display: none;
}

.review-details[open] .review-text--full {
  display: block;
}

/* Subtle fade-in for expanded text (respects reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .review-details[open] .review-text--full {
    animation: reviewFadeIn 0.2s ease;
  }
}

@keyframes reviewFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Airbnb attribution link */
.reviews-source {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.reviews-source a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

/* ============================================================
   LOCATION TEASER SECTION
   ============================================================ */

.location-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.location-map-iframe {
  width: 100%;
  height: 350px;
  display: block;
  border: 0;
  border-radius: 8px;
}

.location-text {
  margin-bottom: var(--space-4);
}

.location-distances {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-4);
}

.location-distances li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
}

.location-distances li::before {
  content: '';
  position: absolute;
  left: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* ============================================================
   RESPONSIVE OVERRIDES — 768px+
   ============================================================ */

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-24);
  }

  .hero-content {
    padding-inline: var(--space-12);
  }

  .hero-heading {
    font-size: calc(var(--font-size-3xl) * 1.4);
  }

  .hero-subheading {
    font-size: var(--font-size-xl);
  }

  /* Villa preview: side-by-side */
  .villa-preview-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
  }

  /* Features: 4 columns */
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Reviews: 3 columns */
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Location: side-by-side */
  .location-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
  }
}

/* ============================================================
   RESPONSIVE OVERRIDES — 1200px+
   ============================================================ */

@media (min-width: 1200px) {
  .hero-content {
    padding-inline: var(--space-12);
  }
}

/* ============================================================
   HERO RATING BADGE — Airbnb-style ★ score + review count
   Sits above the H1 in the hero content area.
   ============================================================ */

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-rating-stars {
  display: flex;
  align-items: center;
  color: #FFD700; /* star gold */
}

.hero-rating-sep {
  opacity: 0.6;
  margin-inline: var(--space-1);
}

.hero-rating-count {
  opacity: 0.9;
}

/* Mobile: slightly smaller badge */
@media (max-width: 479px) {
  .hero-rating {
    font-size: 0.8125rem; /* 13px */
    padding: 3px var(--space-2);
  }
}

/* ============================================================
   MOBILE HERO CTA — full-width on small screens (Airbnb style)
   ============================================================ */

@media (max-width: 479px) {
  .hero-ctas {
    width: 100%;
  }

  .hero-ctas .btn--hero,
  .hero-ctas .btn--ghost {
    width: 100%;
    text-align: center;
    display: block;
  }
}

/* ============================================================
   HOME MOBILE STICKY BOOKING BAR
   Airbnb-style persistent booking CTA at the bottom of the
   viewport on mobile. Hidden on desktop (hero CTAs are visible).
   Main content gets extra padding-bottom to clear the bar.
   ============================================================ */

.home-booking-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.10);
  padding: var(--space-3) var(--space-4);
  /* Hidden by default — slides in once hero scrolls out of view (via JS + .is-visible) */
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.home-booking-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.home-booking-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.home-booking-bar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-booking-bar-rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text);
}

.home-booking-bar-rating svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.home-booking-bar-desc {
  font-size: 0.8125rem; /* 13px */
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-booking-bar-cta {
  flex-shrink: 0;
  white-space: nowrap;
  padding: var(--space-2) var(--space-5);
  font-size: var(--font-size-sm);
}

/* Hide on desktop — hero CTAs handle booking there */
@media (min-width: 768px) {
  .home-booking-bar {
    display: none;
  }
}

/* Add bottom padding to main content so bar doesn't obscure it */
@media (max-width: 767px) {
  body:has(.home-booking-bar) main {
    padding-bottom: 72px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .btn--hero,
  .btn--ghost,
  .link-more,
  .review-card,
  .home-booking-bar {
    transition: none;
  }
}


/* ============================================================
   villa.css
   ============================================================ */
/* Villa Detail Page — Villa Ankerplatz */

/* ============================================================
   PHOTO STRIP
   Hero image (top) + 4 thumbnails (bottom row).
   Buttons are zero-padding block elements; images fill them.
   DO NOT add fetchpriority="high" — strip is not the LCP element.
   ============================================================ */

.section--photo-strip {
  padding-block: var(--space-8);
}

.photo-strip {
  display: grid;
  grid-template-rows: auto auto;
  gap: var(--space-2);
}

.photo-strip-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.photo-strip-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--color-border);
  overflow: hidden;
}

.photo-strip-btn picture {
  display: block;
}

/* Hero image: taller on desktop */
.photo-strip-hero .photo-strip-btn img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Thumbnails: 4:3 aspect ratio */
.photo-strip-thumbs .photo-strip-btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-strip-btn:hover img,
.photo-strip-btn:focus-visible img {
  transform: scale(1.04);
}

.photo-strip-btn:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.photo-strip-link {
  display: inline-block;
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  text-decoration: underline;
}

.photo-strip-link:hover,
.photo-strip-link:focus-visible {
  color: var(--color-text);
}

/* Mobile: stack hero + 2-column thumbs for readability */
@media (max-width: 479px) {
  .photo-strip-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   VILLA LAYOUT — main content + sticky sidebar
   Two-column grid on desktop; stacked on mobile.
   CRITICAL: No overflow:hidden on .villa-layout — breaks sticky.
   ============================================================ */

.villa-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-block: var(--space-8);
  /* padding-bottom accounts for mobile fixed booking bar (~72px) */
  padding-bottom: var(--space-20);
  align-items: start;
}

@media (min-width: 768px) {
  .villa-layout {
    grid-template-columns: 1fr 280px;
    padding-bottom: var(--space-16);
  }
}

/* ============================================================
   VILLA CONTENT SECTIONS
   ============================================================ */

.villa-section {
  margin-bottom: var(--space-12);
}

.villa-section-heading {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

/* Amenities section gets surface background — mirrors section--alt */
.villa-section.section--alt {
  background-color: var(--color-surface);
  padding: var(--space-8);
  border-radius: 4px;
}

/* ============================================================
   ROOM CARDS
   3-column grid on desktop; 1 column on mobile.
   No photo per card — villa page photo strip covers imagery.
   ============================================================ */

.rooms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

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

.room-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-6);
}

.room-card-name {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

.room-card-bed {
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.room-card-features {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================================
   GENERAL EQUIPMENT LIST
   ============================================================ */

.general-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-6);
  list-style: disc;
  padding-left: var(--space-5);
}

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

/* ============================================================
   STICKY BOOKING SIDEBAR (desktop)
   position:sticky works inside a grid column with align-items:start.
   No overflow:hidden anywhere in the ancestor chain.
   ============================================================ */

.villa-sidebar {
  display: none; /* hidden on mobile — mobile bar handles this */
}

@media (min-width: 768px) {
  .villa-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
  }
}

.sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-6);
  text-align: center;
}

.sidebar-heading {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
}

.sidebar-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.sidebar-card .btn--hero {
  width: 100%;
  text-align: center;
  display: block;
}

/* ============================================================
   MOBILE FIXED BOOKING BAR
   Sits at the bottom of the viewport on mobile only.
   Main content gets padding-bottom to avoid content hiding beneath it.
   z-index: var(--z-overlay) = 150, same level as nav overlay.
   ============================================================ */

.booking-bar-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  background: var(--color-surface);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
  border-top: 1px solid var(--color-border);
}

.booking-bar-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-bar-mobile .btn--hero {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Compact secondary button in the mobile bar */
.booking-bar-secondary {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-3);
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Sidebar secondary booking button */
.sidebar-card .btn--secondary {
  width: 100%;
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-4);
  text-align: center;
}

@media (min-width: 768px) {
  .booking-bar-mobile {
    display: none; /* sidebar handles booking CTA on desktop */
  }
}

/* ============================================================
   LIGHTBOX DIALOG STYLES
   ============================================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: rgba(0, 0, 0, 0.92);
  border: 0;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}

.lightbox[open] {
  display: flex;
}

.lightbox-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  padding: var(--space-16) var(--space-4) var(--space-8);
  margin: 0 auto;
}

.lightbox-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  display: block;
  transform-origin: center center;
  transition: transform 0.1s ease;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  margin-top: var(--space-3);
  text-align: center;
}

/* Control buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.lightbox-close {
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--font-size-xl);
  line-height: 1;
}

.lightbox-prev {
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 479px) {
  .lightbox-prev {
    left: var(--space-2);
  }
  .lightbox-next {
    right: var(--space-2);
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  /* Photo strip image scale on hover */
  .photo-strip-btn img {
    transition: none;
  }

  /* Booking CTA (uses .btn--hero from home.css — already covered there)
     Lightbox image zoom */
  .lightbox-img {
    transition: none;
  }
}


/* ============================================================
   gallery.css
   ============================================================ */
/* Gallery Page — Villa Ankerplatz */

/* ============================================================
   GALLERY HEADER — heading + count + filter pills
   ============================================================ */

.section--gallery-header {
  padding-bottom: var(--space-4);
}

.gallery-count {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-6);
}

/* Filter pills */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.filter-btn {
  padding: var(--space-2) var(--space-5);
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.filter-btn--active,
.filter-btn--active:hover,
.filter-btn--active:focus-visible {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
}

/* ============================================================
   GALLERY GRID
   Fixed 4:3 aspect ratio via CSS aspect-ratio property.
   Column count: 2 mobile / 3 tablet (768px+) / 4 desktop (1200px+).

   aspect-ratio: 4/3 on .gallery-thumb sets container dimensions.
   img must have width:100%; height:100%; object-fit:cover to fill it.
   (See RESEARCH.md Pitfall 3 — aspect-ratio + object-fit interaction.)
   ============================================================ */

.section--gallery-grid {
  padding-top: var(--space-4);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

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

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
  }
}

/* hidden attribute must override display:block — browser default [hidden]{display:none}
   gets overridden by .gallery-thumb{display:block} without this rule. */
.gallery-thumb[hidden] {
  display: none;
}

/* Thumbnail button */
.gallery-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-blue-300) 0%, var(--color-neutral-200) 100%);
  /* Gradient shows as placeholder while image loads — blur-up effect */
  position: relative;
  transition: box-shadow 0.25s ease;
}

.gallery-thumb:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gallery-thumb:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.gallery-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Image must fill container for object-fit to crop correctly */
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Blur-up: start blurred (when data-loading present), clear on load */
  filter: blur(0px);
  transform: scale(1);
  transition: filter 0.4s ease, transform 0.3s ease;
}

/* data-loading is added in HTML at build time; removed by gallery.js on img.onload */
.gallery-thumb img[data-loading] {
  filter: blur(12px);
  transform: scale(1.08); /* slightly oversize to hide blurred edges */
}

/* Hover effect — scale up slightly when fully loaded (no blur) */
.gallery-thumb:hover img:not([data-loading]),
.gallery-thumb:focus-visible img:not([data-loading]) {
  transform: scale(1.04);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .gallery-thumb,
  .gallery-thumb img,
  .filter-btn {
    transition: none;
  }
}


/* ============================================================
   content-pages.css
   ============================================================ */
/* Content Pages Stylesheet — Umgebung, Anfahrt, FAQ, Kosten */

/* ============================================================
   PAGE CONTENT CONTAINER
   ============================================================ */

.page-content {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.page-content h1 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-12);
  color: var(--color-text);
}

@media (min-width: 768px) {
  .page-content h1 {
    font-size: var(--font-size-3xl);
  }
}

/* ============================================================
   ATTRACTIONS GRID (Umgebung Page)
   ============================================================ */

.attractions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

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

/* Attraction cards */
.attraction-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.attraction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.attraction-card h3 {
  font-family: var(--font-heading);
  margin: 0;
  color: var(--color-text);
}

.attraction-card p {
  margin: 0;
  flex: 1;
}

/* Distance and time callout */
.attraction-meta {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.attraction-meta .dot {
  opacity: 0.5;
}

.attraction-distance,
.attraction-time {
  margin: 0;
}

/* Attraction images */
.attraction-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  margin-top: auto;
}

.attraction-image picture,
.attraction-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */

.section {
  padding-block: var(--space-12);
}

.section-heading {
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-8);
  color: var(--color-text);
  position: relative;
  padding-bottom: var(--space-6);
}

.section-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin: var(--space-3) auto 0;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: var(--font-size-2xl);
  }
}

.section--alt {
  background-color: var(--color-bg);
}

/* ============================================================
   FAQ ACCORDION (FAQ Page)
   ============================================================ */

.faq-list {
  max-width: 800px;
  margin-inline: auto;
  margin-block: var(--space-12);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.faq-summary {
  padding: var(--space-6);
  cursor: pointer;
  background: var(--color-surface);
  font-weight: 600;
  font-family: var(--font-heading);
  transition: background 0.2s ease;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::before {
  content: '+';
  display: inline-block;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-summary:hover {
  background: var(--color-bg);
}

.faq-summary:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: -2px;
}

details[open] .faq-summary {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

details[open] .faq-summary::before {
  content: '−';
  transform: rotate(0deg);
}

.faq-content {
  padding: var(--space-6);
  line-height: var(--line-height-body);
  color: var(--color-text);
}

/* ============================================================
   DIRECTIONS/MAP STYLES (Anfahrt Page)
   ============================================================ */

.map-placeholder {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--space-8);
  background-color: var(--color-sage-300); /* visible before Leaflet and static map load */
  min-height: 350px;
}

.map-static-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.leaflet-map {
  border-radius: 4px;
}

.villa-address {
  font-style: normal;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: 4px;
  border-left: 4px solid var(--color-brand);
}

.villa-address abbr {
  text-decoration: none;
}

/* Routes grid */
.routes-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

.route-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.route-card h3 {
  font-family: var(--font-heading);
  margin-top: 0;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.route-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
}

.route-card dt {
  font-weight: 600;
  color: var(--color-text-muted);
}

.route-card dd {
  color: var(--color-text);
  margin: 0;
}

.route-card p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

/* Transport options grid */
.transport-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

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

.transport-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.transport-card h3 {
  font-family: var(--font-heading);
  margin-top: 0;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.transport-card p {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--font-size-sm);
}

.transport-note {
  color: var(--color-text-muted);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .attraction-card {
    transition: none;
  }
}

/* ============================================================
   KOSTEN / PRICING PAGE
   ============================================================ */

/* Page layout */
.kosten-page {
  padding-block: var(--space-12) var(--space-20);
}

.content-page-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.content-page-heading {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .content-page-heading { font-size: var(--font-size-3xl); }
}

.content-page-intro {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.7;
}

/* Section heading */
.kosten-section-heading {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .kosten-section-heading { font-size: var(--font-size-2xl); }
}

.kosten-section-note {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-8);
}

/* ── Search / Date picker ── */
.kosten-search {
  background: var(--color-surface);
  border-radius: 16px;
  padding: var(--space-6) var(--space-4);
  margin-bottom: var(--space-16);
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

@media (min-width: 480px) {
  .kosten-search { padding: var(--space-8) var(--space-6); }
}

.kosten-search-form { display: flex; flex-direction: column; gap: var(--space-6); }

.kosten-search-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 480px) {
  .kosten-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kosten-field--guests { grid-column: span 2; max-width: 200px; }
}

@media (min-width: 768px) {
  .kosten-search-fields { grid-template-columns: 1fr 1fr auto; }
  .kosten-field--guests { grid-column: auto; max-width: none; }
}

.kosten-field { display: flex; flex-direction: column; gap: var(--space-2); }

.kosten-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kosten-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: var(--font-size-base);
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 0; /* prevent inputs from overflowing grid cells */
}

.kosten-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

select.kosten-input { appearance: auto; }

/* Price estimate display */
.kosten-estimate {
  font-size: var(--font-size-xl);
  color: var(--color-accent);
  font-family: var(--font-heading);
  min-height: 1.6em;
}

.kosten-estimate-note {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: calc(-1 * var(--space-4));
}

.kosten-search-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.kosten-search-ctas .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  border-radius: 8px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  max-width: 100%; /* prevent overflow in narrow flex containers */
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border: none;
}

.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--color-accent-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid currentColor;
}

.btn--secondary:hover, .btn--secondary:focus-visible {
  background: var(--color-bg);
}

/* ── Seasons grid ── */
.kosten-seasons { margin-bottom: var(--space-16); }

.kosten-seasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 480px) {
  .kosten-seasons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .kosten-seasons-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.kosten-season-card {
  background: var(--color-surface);
  border-radius: 12px;
  padding: var(--space-5) var(--space-5);
  border: 2px solid transparent;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  min-width: 0; /* allow card to shrink below content size in grid */
}

.kosten-season-card--peak {
  border-color: var(--color-accent);
  background: #f0f5ef;
}

.kosten-season-label {
  font-weight: 700;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.kosten-season-card--peak .kosten-season-label { color: var(--color-accent); }

.kosten-season-dates {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.kosten-season-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-1);
}

.kosten-price-amount {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  color: var(--color-text);
  font-weight: 700;
}

.kosten-price-unit {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.kosten-season-week {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ── Example calculation ── */
.kosten-example { margin-bottom: var(--space-16); }

.kosten-calc-table {
  width: 100%;
  max-width: 520px;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
}

.kosten-calc-table td {
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid #eee;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.kosten-calc-label { color: var(--color-text-muted); }
.kosten-calc-value { text-align: right; font-weight: 500; }

.kosten-calc-total td {
  padding-top: var(--space-4);
  font-weight: 700;
  font-size: var(--font-size-base);
  color: var(--color-text);
  border-bottom: none;
}

.kosten-calc-total td:last-child {
  text-align: right;
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  color: var(--color-accent);
}

.kosten-example-note {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ── Included / not included ── */
.kosten-included { margin-bottom: var(--space-16); }

.kosten-included-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .kosten-included-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.kosten-included-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.kosten-included-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
}

.kosten-included-list--yes li svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.kosten-included-list--no li svg { color: #aaa; flex-shrink: 0; margin-top: 2px; }
.kosten-included-list--no li { color: var(--color-text-muted); }

/* ── Platform comparison cards ── */
.kosten-platforms { margin-bottom: var(--space-16); }

.kosten-platforms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 560px) {
  .kosten-platforms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .kosten-platforms-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.kosten-platform-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-surface);
  border-radius: 12px;
  padding: var(--space-6);
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0; /* allow card to shrink below content size in grid */
  overflow: hidden; /* clip any text that can't wrap */
}

.kosten-platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.kosten-platform-card--featured {
  border-color: var(--color-accent);
}

.kosten-platform-name {
  font-weight: 700;
  font-size: var(--font-size-lg);
  font-family: var(--font-heading);
}

.kosten-platform-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  font-weight: 600;
}

.kosten-platform-rating svg { flex-shrink: 0; }

.kosten-platform-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  flex: 1;
}

.kosten-platform-cta {
  margin-top: auto;
  text-align: center;
  display: block; /* stretch to card width so button text truncates rather than overflows */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── FAQ ── */
.kosten-faq { margin-bottom: var(--space-16); }

.kosten-faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 720px;
}

.kosten-faq-item { border-top: 1px solid #eee; padding-top: var(--space-4); }

.kosten-faq-q {
  font-weight: 700;
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.kosten-faq-a {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── CTA ── */
.kosten-cta {
  background: var(--color-bg);
  border-radius: 16px;
  padding: var(--space-8) var(--space-4);
  text-align: center;
  margin-top: var(--space-8);
}

@media (min-width: 480px) {
  .kosten-cta { padding: var(--space-10) var(--space-8); }
}

.kosten-cta .kosten-section-heading { margin-bottom: var(--space-2); }
.kosten-cta p { color: var(--color-text-muted); margin-bottom: var(--space-6); }

.kosten-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}


/* ============================================================
   animations.css
   ============================================================ */
/* animations.css — Phase 7: Scroll animations, page transitions, reduced-motion */

/* ============================================================
   SCROLL-TRIGGERED FADE-IN
   Applied via [data-animate] attribute on HTML elements.
   CRITICAL: Initial opacity:0 is ONLY inside no-preference media query.
   Reduced-motion users always see content at full opacity.
   Above-fold elements must NOT have data-animate — they must be visible on load.
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  [data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  [data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger: grid/list containers whose children animate sequentially */
  [data-animate-stagger] > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  /* Stagger delays — up to 6 children */
  [data-animate-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
  [data-animate-stagger].is-visible > *:nth-child(2) { transition-delay: 80ms; }
  [data-animate-stagger].is-visible > *:nth-child(3) { transition-delay: 160ms; }
  [data-animate-stagger].is-visible > *:nth-child(4) { transition-delay: 240ms; }
  [data-animate-stagger].is-visible > *:nth-child(5) { transition-delay: 300ms; }
  [data-animate-stagger].is-visible > *:nth-child(6) { transition-delay: 360ms; }

  [data-animate-stagger].is-visible > * {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced-motion: always visible, no transitions */
@media (prefers-reduced-motion: reduce) {
  [data-animate],
  [data-animate-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   CROSS-DOCUMENT PAGE TRANSITIONS
   Via CSS View Transitions API — @view-transition is ignored by
   browsers that don't support it (Firefox < 144 gracefully skips).
   No JS required — `navigation: auto` intercepts all page navigations.
   ============================================================ */

@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: 180ms ease-out both vt-fade-out;
  }
  ::view-transition-new(root) {
    animation: 220ms ease-in both vt-fade-in;
  }
}

/* Disable view transitions for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-image-pair(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

@keyframes vt-fade-out {
  to { opacity: 0; }
}

@keyframes vt-fade-in {
  from { opacity: 0; }
}

/* ============================================================
   SMOOTH SCROLL — canonical location; tokens.css has the base rule.
   Reduced-motion override ensures users with motion sensitivity get
   instant scroll (overrides tokens.css html rule).
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* ============================================================
   style.css (base rules)
   ============================================================ */
/* Main Stylesheet — Villa Ankerplatz */


/* ============================================================
   BASE BODY STYLES
   ============================================================ */

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--line-height-body);
}

/* ============================================================
   HEADING STYLES
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: var(--line-height-heading);
  color: var(--color-text);
}

h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-base); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

/* Responsive type scaling */
@media (min-width: 768px) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
}

@media (min-width: 1200px) {
  h1 { font-size: calc(var(--font-size-3xl) * 1.2); }
  h2 { font-size: calc(var(--font-size-2xl) * 1.15); }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ============================================================
   ACCESSIBILITY UTILITIES
   ============================================================ */

/* Screen reader only — visually hidden but accessible to assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip-to-content: visible when keyboard focused (WCAG 2.4.1) */
.sr-only:focus,
.sr-only:focus-visible {
  position: static;
  width: auto;
  height: auto;
  padding: var(--space-2) var(--space-4);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  z-index: var(--z-modal, 9999);
  display: inline-block;
}

/* Global focus fallback — ensures no interactive element is focus-invisible (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
