:root {
  --bg: #f7f4ef;
  --bg-alt: #eee8df;
  --white: #fff;
  --text: #263b3f;
  --text-mid: #405155;
  --text-light: #687579;
  --header-bg: #f8f1ea;
  --pill-bg: #e9ddd1;
  --pill-bg-h: #ddcbbb;
  --dark: #22383b;
  --dark-h: #16292c;
  --footer-bg: #1d2c2f;
  --accent: #9a7653;
  --accent-dark: #7c5d40;
  --line: rgba(38, 59, 63, .14);
  --shadow-sm: 0 12px 30px rgba(31, 45, 47, .08);
  --shadow-lg: 0 24px 64px rgba(31, 45, 47, .13);
}

body {
  background: var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
}

section {
  scroll-margin-top: 78px;
}

.intro-h2,
.tabs-head,
.rooms-head,
.gallery-head,
.anfrage-head h2,
.offer-text h2,
.winter-copy h2,
.booking-head h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.015em;
}

.btn-dark,
.btn-pill,
.submit-btn {
  border-radius: 999px;
  min-height: 44px;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(29, 44, 47, .13);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.btn-dark:hover,
.btn-pill:hover,
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29, 44, 47, .18);
}

.btn-dark:focus-visible,
.btn-pill:focus-visible,
.submit-btn:focus-visible,
.tab-btn:focus-visible,
.gal-filter-btn:focus-visible,
.kachel-head:focus-visible {
  outline: 3px solid rgba(154, 118, 83, .45);
  outline-offset: 3px;
}

#site-header.scrolled {
  background: rgba(248, 241, 234, .97);
  box-shadow: 0 8px 30px rgba(35, 52, 54, .08);
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(20, 31, 33, .22), rgba(20, 31, 33, .58));
}

.hero-h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.kachel,
.room-card,
.offer-grid img {
  border-radius: 18px;
}

.kachel,
.room-card {
  border: 1px solid rgba(38, 59, 63, .08);
  box-shadow: var(--shadow-sm);
}

.kachel-head {
  border: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.kachel-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: .01em;
}

.rating {
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .48);
  border: 1px solid var(--line);
}

.tabs-inner {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tab-btn.active,
.gal-filter-btn.active,
.gal-filter-btn:hover {
  background: var(--dark);
}

.gal-filter-btn {
  border-radius: 999px;
}

.gal-item {
  border-radius: 12px;
}

/* Winter section */
#winter {
  background: #dfe8e8;
}

.winter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: stretch;
  min-height: 520px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.winter-media {
  position: relative;
  min-height: 520px;
}

.winter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.winter-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 72px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.winter-copy h2 {
  margin-bottom: 20px;
  color: var(--text);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.winter-copy p {
  margin-bottom: 18px;
  color: var(--text-mid);
}

.winter-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 28px;
  padding: 0;
  list-style: none;
}

.winter-facts li {
  padding: 8px 13px;
  border: 1px solid rgba(38, 59, 63, .16);
  border-radius: 999px;
  background: #f7faf9;
  color: var(--text);
  font-size: .82rem;
}

/* Inquiry form in Hotel Jarolim CI */
#anfrage {
  background: linear-gradient(180deg, #f7f4ef 0%, #eee8df 100%);
}

#anfrage .anfrage-head {
  max-width: 720px;
  margin-right: auto;
  margin-bottom: 46px;
  margin-left: auto;
}

#anfrage .form-container {
  max-width: 920px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid rgba(38, 59, 63, .10);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-lg);
  font-family: var(--font);
}

#anfrage .custom-form {
  gap: 20px 18px;
}

#anfrage .custom-form label {
  margin-bottom: 7px;
  color: var(--text);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

#anfrage .custom-form input,
#anfrage .custom-form select,
#anfrage .custom-form textarea {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(38, 59, 63, .20);
  border-radius: 10px;
  background: #fbfaf8;
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#anfrage .custom-form textarea {
  min-height: 120px;
  resize: vertical;
}

#anfrage .custom-form input:focus,
#anfrage .custom-form select:focus,
#anfrage .custom-form textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(154, 118, 83, .13);
}

#anfrage .phone-row {
  gap: 10px;
}

#anfrage .privacy-row {
  padding: 16px 18px;
  border-color: rgba(38, 59, 63, .12);
  border-radius: 12px;
  background: #f4f1ec;
}

#anfrage .privacy-row label {
  color: var(--text-mid);
  letter-spacing: 0;
  text-transform: none;
}

#anfrage .privacy-row label a {
  color: var(--accent-dark);
}

#anfrage .submit-btn {
  min-height: 54px;
  margin-top: 4px;
  background: var(--dark);
  font-family: var(--font);
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

#anfrage .submit-btn:hover {
  background: var(--dark-h);
}

/* Embedded direct booking */
.inline-booking {
  max-width: 1100px;
  margin: 90px auto 0;
  padding-top: 84px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.booking-intro {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}

.booking-intro h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 500;
}

.booking-intro p {
  color: var(--text-mid);
  font-size: 1.05rem;
}

.booking-frame,
.booking-page #Bs-BookingWidget {
  min-height: 240px;
  padding: clamp(14px, 3vw, 28px);
  border: 1px solid rgba(38, 59, 63, .10);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

/* Footer image with translucent treatment */
#footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--footer-bg);
}

#footer::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url('/assets/jarolim-winter-footer.webp') center 53% / cover no-repeat;
  content: '';
  opacity: .48;
}

#footer::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 35, 38, .69), rgba(19, 35, 38, .90));
  content: '';
}

#footer .wrap,
.booking-page #footer > * {
  position: relative;
}

.footer-logo {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.footer-contact,
.footer-nav,
.footer-legal {
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

/* Standalone booking fallback pages */
.booking-page .booking-wrap {
  padding-top: 72px;
}

.booking-page .booking-head {
  max-width: 720px;
  margin-right: auto;
  margin-bottom: 42px;
  margin-left: auto;
}

.booking-page .booking-head h1 {
  color: var(--text);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

@media (max-width: 900px) {
  .winter-grid {
    grid-template-columns: 1fr;
  }

  .winter-media {
    min-height: 390px;
  }
}

@media (max-width: 768px) {
  .wrap,
  .kacheln {
    padding-inline: 20px;
  }

  .header-cta {
    gap: 8px;
  }

  .winter-grid {
    border-radius: 18px;
  }

  .winter-media {
    min-height: 300px;
  }

  .inline-booking {
    margin-top: 66px;
    padding-top: 62px;
  }
}

@media (max-width: 600px) {
  .header-cta .btn-dark,
  .header-cta .btn-pill {
    padding: 10px 12px;
    letter-spacing: .08em;
  }

  #anfrage .custom-form {
    grid-template-columns: minmax(0, 1fr);
  }

  #anfrage .full-width,
  #anfrage .m-side,
  #anfrage .privacy-row,
  #anfrage .field-error,
  #anfrage .success-msg,
  #anfrage .submit-btn {
    grid-column: 1;
  }

  #anfrage .phone-row {
    flex-direction: column;
  }

  #anfrage .phone-row select {
    width: 100%;
  }

  .booking-frame {
    padding: 10px;
    border-radius: 16px;
  }
}

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

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

  .fade {
    opacity: 1;
    transform: none;
  }
}
