/* ==========================================================================
   Zuhause auf Zeit – Landkreis Kassel
   Static port of the original Lovable (React + Tailwind) site.
   Design tokens preserved 1:1 from the original index.css.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Nunito+Sans:wght@300;400;500;600;700&display=swap');

/* ----- Design tokens (HSL components, as in the original) ----------------- */
:root {
  --background: 40 20% 97%;
  --foreground: 30 10% 15%;

  --card: 0 0% 100%;
  --card-foreground: 30 10% 15%;

  --primary: 30 8% 22%;
  --primary-foreground: 40 20% 97%;

  --cta: 165 28% 32%;
  --cta-foreground: 40 20% 97%;

  --secondary: 30 5% 88%;
  --secondary-foreground: 30 10% 25%;

  --muted: 35 15% 93%;
  --muted-foreground: 30 8% 50%;

  --accent: 30 8% 30%;
  --accent-foreground: 40 20% 97%;

  --border: 35 15% 88%;
  --ring: 30 8% 22%;

  --radius: 0.5rem;

  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  /* Container widths matching Tailwind max-w-* */
  --w-3xl: 48rem;
  --w-4xl: 56rem;
  --w-6xl: 72rem;
}

/* ----- Reset ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  color: inherit;
}

.font-display {
  font-family: var(--font-display);
}

/* ----- Layout helpers ---------------------------------------------------- */
.wrap {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.wrap--3xl { max-width: var(--w-3xl); }
.wrap--4xl { max-width: var(--w-4xl); }
.wrap--6xl { max-width: var(--w-6xl); }

.band {
  background: hsl(var(--background));
}
.band--secondary {
  /* secondary at 50% opacity, as bg-secondary/50 */
  background: hsl(var(--secondary) / 0.5);
}
.band--divider {
  border-bottom: 1px solid hsl(var(--border));
}

.section {
  padding-block: 4rem;
}

/* ----- Header ------------------------------------------------------------ */
.site-header {
  background: hsl(var(--secondary)) ;
  border-bottom: 1px solid hsl(var(--border));
 position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.logo {
  flex-shrink: 0;
  color: hsl(var(--primary));
}
.logo img {
  height: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1rem;
  font-size: 0.875rem;
}
.main-nav a {
  color: hsl(var(--primary));
  font-weight: 500;
}
.main-nav a:hover {
  text-decoration: underline;
}
.lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.lang .flag {
  width: 1.5rem;
  height: auto;
  border-radius: 2px;
  display: block;
}
.lang a {
  transition: opacity 0.2s;
}
.lang a:hover {
  opacity: 0.8;
}
.lang .is-active {
  opacity: 0.6;
}

/* ----- Hero slider ------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Full-width banner, but capped so the headline below stays visible on
     larger/wider screens. On narrow screens the 16:9 height is below the cap,
     so the ratio is preserved; on wide screens the image crops via object-fit. */
  max-height: min(70vh, 600px);
  overflow: hidden;
  background: hsl(var(--background));
        margin-top: 87px;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__slide.is-active {
  opacity: 1;
}
/* Wordmark overlay — sits above the photos, unaffected by image cropping,
   so it is always visible regardless of viewport size. Replaces the wordmark
   that was previously baked into the photos. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2.5rem;
  background: linear-gradient(180deg, transparent 50%, hsla(30, 10%, 15%, 0.55) 100%);
  pointer-events: none;
}
.hero__wordmark {
  width: min(620px, 72%);
  height: auto;
  /* recolour the dark logo to white for the photo overlay */
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}
.hero__dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}
.hero__dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--primary-foreground) / 0.5);
  padding: 0;
  transition: all 0.3s ease;
}
.hero__dot.is-active {
  width: 2rem;
  background: hsl(var(--primary-foreground));
}

/* ----- Subtitle ---------------------------------------------------------- */
.subtitle {
  padding-block: 2rem;
}
.subtitle__lead {
  font-size: 1.25rem;
  color: hsl(var(--primary));
  font-weight: 300;
  margin-bottom: 0.5rem;
}
.subtitle__loc {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}
.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ----- Key facts bar ----------------------------------------------------- */
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.5rem;
}
.fact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.fact__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}
.fact__label {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.fact__sub {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.fact-price {
  text-align: right;
}
.fact-price__amount {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--primary));
}
.fact-price__unit {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ----- Prose / description ----------------------------------------------- */
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}
.prose h2 + h2,
.prose .prose-block + h2 {
  margin-top: 3rem;
}
.prose-block > p {
  color: hsl(var(--foreground) / 0.85);
  line-height: 1.65;
  font-size: 1.125rem;
}
.prose-block > p + p {
  margin-top: 1rem;
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- Prices ------------------------------------------------------------ */
.prices h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
  scroll-margin-top: 5rem;
}
.prices p {
  color: hsl(var(--foreground) / 0.85);
  line-height: 1.65;
  font-size: 1.125rem;
}
.prices p + p {
  margin-top: 1rem;
}
.prices strong {
  font-weight: 600;
}

/* ----- Amenities --------------------------------------------------------- */
.amenities__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.amenities h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}
.amenity-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.card {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 1px 2px 0 hsl(30 10% 15% / 0.05);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.card p {
  color: hsl(var(--foreground) / 0.8);
  line-height: 1.6;
  font-size: 0.875rem;
}
.included {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.included__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--foreground) / 0.8);
  font-size: 0.875rem;
}
.included__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: hsl(var(--accent));
  flex-shrink: 0;
}

/* ----- Conditions grid --------------------------------------------------- */
.conditions h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}
.conditions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.condition {
  padding: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.condition__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.condition__value {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

/* ----- CTA banner -------------------------------------------------------- */
.cta-wrap {
  margin-bottom: 4rem;
  scroll-margin-top: 5rem;
}
.cta {
  background: hsl(var(--cta));
  color: hsl(var(--cta-foreground));
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 15px -3px hsl(30 10% 15% / 0.1), 0 4px 6px -4px hsl(30 10% 15% / 0.1);
}
.cta__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.cta__btn {
  display: inline-block;
  background: hsl(var(--cta-foreground));
  color: hsl(var(--cta));
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}
.cta__btn:hover {
  opacity: 0.9;
}
.cta__phone {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}
.cta__phone a {
  text-decoration: underline;
}

/* ----- Gallery ----------------------------------------------------------- */
.gallery__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 2.5rem;
  text-align: center;
}
.galleries {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.slider h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}
.slider__stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}
.slider__stage.is-contain {
  background: #fff;
}
.slider__main {
  width: 100%;
  height: 400px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.slider__stage.is-contain .slider__main {
  object-fit: contain;
  padding: 1rem;
}
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: hsl(var(--background) / 0.8);
  color: hsl(var(--foreground));
  border-radius: 9999px;
  padding: 0.5rem;
  display: inline-flex;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.slider__stage:hover .slider__arrow {
  opacity: 1;
}
.slider__arrow:hover {
  background: hsl(var(--background));
}
.slider__arrow--prev { left: 0.75rem; }
.slider__arrow--next { right: 0.75rem; }
.slider__arrow svg { width: 1.25rem; height: 1.25rem; }

.slider__counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: hsl(var(--background) / 0.8);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}
.slider__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-top: 1rem;
}
.slider__thumb {
  flex-shrink: 0;
  border-radius: 0.375rem;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
  padding: 0;
  line-height: 0;
}
.slider__thumb:hover { opacity: 0.9; }
.slider__thumb.is-active {
  border-color: hsl(var(--primary));
  opacity: 1;
}
.slider__thumb img {
  width: 5rem;
  height: 3.5rem;
  object-fit: cover;
}

/* ----- Lightbox ---------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open {
  display: flex;
}
.lightbox__img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
}
.lightbox__btn {
  position: absolute;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem;
  display: inline-flex;
  transition: color 0.2s;
}
.lightbox__btn:hover { color: #fff; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__close svg { width: 2rem; height: 2rem; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
.lightbox__prev svg,
.lightbox__next svg { width: 2.5rem; height: 2.5rem; }
.lightbox__counter {
  position: absolute;
  bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* ----- Footer ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid hsl(var(--border));
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 2rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}
.site-footer__links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-footer a {
  color: hsl(var(--primary));
}
.site-footer a:hover { text-decoration: underline; }

/* ----- Impressum (legal pages) ------------------------------------------- */
.legal-header {
  border-bottom: 1px solid hsl(var(--border));
}
.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
}
.legal-back {
  color: hsl(var(--primary));
  font-size: 0.875rem;
}
.legal-back:hover { text-decoration: underline; }
.legal {
  padding-block: 3rem;
}
.legal h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.legal__subtitle {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2.5rem;
}
.legal section {
  margin-bottom: 2.5rem;
}
.legal h2,
.legal dt.heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}
.legal p,
.legal dd {
  color: hsl(var(--foreground) / 0.85);
  font-size: 1.125rem;
  line-height: 1.65;
}
.legal a { color: hsl(var(--primary)); }
.legal a:hover { text-decoration: underline; }
.legal dl.kv {
  display: grid;
  grid-template-columns: 8rem 1fr;
  row-gap: 0.5rem;
}
.legal dl.kv--wide {
  grid-template-columns: 10rem 1fr;
}
.legal dl.kv dt.heading { grid-column: 1 / -1; }
.legal__updated {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.5rem;
}

/* ----- 404 --------------------------------------------------------------- */
.notfound {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: hsl(var(--muted));
  text-align: center;
}
.notfound h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.notfound p {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}
.notfound a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

/* ----- Responsive -------------------------------------------------------- */
@media (min-width: 640px) {
  .subtitle__lead { font-size: 1.5rem; }
  .amenity-cards { grid-template-columns: 1fr 1fr; }
  .conditions__grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 2.5rem; }
  .cta__title { font-size: 1.875rem; }
  .cta__phone { font-size: 1.875rem; }
  .site-footer__inner { flex-direction: row; text-align: left; }
}

@media (min-width: 768px) {
  .slider__main { height: 500px; }
  .legal h1 { font-size: 3rem; }
}

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