/* =========================================================
   Die Alte Meierei – styles.css
   ========================================================= */

/* =========================================================
   Schriften – lokal gehostet (DSGVO: keine Verbindung zu Google)
   Dateien liegen im Ordner fonts/ neben dieser CSS-Datei.
   ========================================================= */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/inter-v20-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-v20-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-v20-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/playfair-display-v40-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/playfair-display-v40-latin-500.woff2") format("woff2"); }

:root {
  /* Farben */
  --c-ink: #111111;
  --c-text: #2a2a2a;
  --c-muted: #5a5a5a;
  --c-white: #ffffff;
  --c-panel: #e3e1dc;      /* Highlights / Aktivitäten-Text */
  --c-sand: #e9e2d8;       /* Footer-Fläche */
  --c-table-head: #d9d7d2;
  --c-line: #cfcbc4;

  /* Typo */
  --f-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --fs-body: clamp(0.92rem, 0.85rem + 0.25vw, 1rem);
  --fs-small: clamp(0.82rem, 0.78rem + 0.15vw, 0.9rem);
  --fs-lead: clamp(1.02rem, 0.9rem + 0.5vw, 1.3rem);
  --fs-h2: clamp(1.7rem, 1.2rem + 2vw, 2.8rem);
  --fs-h2-sm: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem);
  --fs-hero: clamp(2.6rem, 1.4rem + 5.5vw, 5.6rem);

  /* Layout */
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 7vw, 104px);
  --header-h: 64px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--f-serif); font-weight: 400; color: var(--c-ink); line-height: 1.15; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid #b08d57; outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--c-ink); color: var(--c-white); padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.center { text-align: center; }

.two-col { display: grid; gap: 0 clamp(24px, 4vw, 56px); }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col p { font-size: var(--fs-small); color: var(--c-text); }
.two-col--spaced { margin-top: clamp(28px, 4vw, 44px); }

.section-title { font-size: var(--fs-h2-sm); margin-bottom: clamp(20px, 3vw, 32px); }
.section-title--left { text-align: left; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--c-white);
  background-color: var(--c-ink);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 40px; pointer-events: none; }
.logo { transition: opacity .35s var(--ease), visibility .35s; }
.site-header__inner {
  height: 100%;
  width: min(100% - 2 * var(--gutter), 1400px);
  margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo__icon { width: 34px; height: 28px; }
.logo__text {
  font-family: var(--f-sans); font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  font-size: 0.95rem;
}

.site-nav { margin-left: auto; position: relative; display: flex; align-items: center; }
.site-nav__list { display: flex; gap: clamp(12px, 1.6vw, 24px); }
.site-nav__list a {
  text-decoration: none; font-size: 0.88rem; font-weight: 400; letter-spacing: .01em;
  padding: 6px 0; position: relative;
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav__list a:hover::after, .site-nav__list a:focus-visible::after { transform: scaleX(1); }

.whatsapp {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: #25d366; color: #fff; display: grid; place-items: center;
  transition: transform .2s var(--ease);
}
.whatsapp svg { width: 22px; height: 22px; }
.whatsapp:hover { transform: scale(1.06); }

/* Burger */
.burger {
  display: none; width: 44px; height: 44px; background: none; border: 0; color: inherit;
  position: relative; padding: 0;
}
.burger__line {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), opacity .2s;
}
.burger__line:nth-child(1) { top: 15px; }
.burger__line:nth-child(2) { top: 21px; }
.burger__line:nth-child(3) { top: 27px; }
.menu-open .burger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger__line:nth-child(2) { opacity: 0; }
.menu-open .burger__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Scroll-Zustand: fixe Leiste + Dropdown oben rechts */
/* Beim Herunterscrollen verschwindet der schwarze Balken –
   übrig bleiben Burger + WhatsApp oben rechts */
.site-header.is-scrolled { background-color: transparent; pointer-events: none; }
.site-header.is-scrolled .logo { opacity: 0; visibility: hidden; }
.site-header.is-scrolled .site-nav { pointer-events: auto; }
/* Im Scroll-Zustand bleibt nur der Burger sichtbar */
.whatsapp { transition: transform .2s var(--ease), opacity .3s var(--ease), visibility .3s; }
.site-header.is-scrolled .whatsapp { opacity: 0; visibility: hidden; pointer-events: none; }
.site-header.is-scrolled .burger {
  background: rgba(17,17,17,.88);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.site-header.is-scrolled .burger,
.site-header.is-compact .burger { display: block; }

.site-header.is-scrolled .site-nav__list,
.site-header.is-compact .site-nav__list {
  position: absolute; top: calc(100% + 10px); right: 0;
  flex-direction: column; gap: 0;
  min-width: 240px; padding: 10px 0;
  background: rgba(17,17,17,.96);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.site-header.is-scrolled .site-nav__list a,
.site-header.is-compact .site-nav__list a { display: block; padding: 11px 22px; font-size: 0.95rem; }
.site-header.is-scrolled .site-nav__list a::after,
.site-header.is-compact .site-nav__list a::after { left: 22px; right: 22px; bottom: 6px; }

.site-header.menu-open .site-nav__list {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  height: clamp(420px, 78vh, 820px);
  margin-top: var(--header-h); /* Bild beginnt unter dem schwarzen Balken */
  display: flex; align-items: flex-end; justify-content: center;
  background: #2b2b2b;
}
.hero__media {
  position: absolute; left: 0; right: 0; top: -12%; height: 124%;
  will-change: transform;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; /* Schornstein bleibt im Bild */ }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 45%);
}
.hero__title {
  position: relative; color: var(--c-white);
  font-size: var(--fs-hero); text-align: center;
  padding: 0 var(--gutter) clamp(20px, 3vw, 40px);
  text-shadow: 0 2px 22px rgba(0,0,0,.35);
}

/* =========================================================
   INTRO
   ========================================================= */
.intro__title { font-size: var(--fs-h2); text-align: center; margin-bottom: 14px; }
.intro__lead {
  text-align: center; font-size: var(--fs-lead); color: var(--c-text);
  max-width: 760px; margin: 0 auto clamp(32px, 5vw, 52px); line-height: 1.45;
}
.btn-pill {
  display: inline-block; margin-top: clamp(16px, 2vw, 24px);
  padding: 8px 46px; border: 1px solid var(--c-ink); border-radius: 999px;
  text-decoration: none; font-size: 0.95rem; color: var(--c-ink);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn-pill:hover, .btn-pill:focus-visible { background: var(--c-ink); color: var(--c-white); }

/* =========================================================
   CAROUSEL (generisch, Scroll-Snap = natives Touch-Swipe)
   ========================================================= */
.carousel { position: relative; }
.carousel__track {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; background: #d8d4cd; }

.carousel__btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: var(--c-ink);
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: transform .2s var(--ease), background .2s, opacity .2s;
}
.carousel__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel__btn:hover { transform: scale(1.08); }
.carousel__btn[disabled] { opacity: .35; cursor: default; transform: none; }

.carousel__controls--bottom {
  position: absolute; left: 50%; bottom: clamp(16px, 3vw, 28px); transform: translateX(-50%);
  display: flex; gap: 12px;
}

/* =========================================================
   HIGHLIGHTS
   ========================================================= */
.highlights { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--c-panel); }
.highlights > * { min-width: 0; } /* verhindert, dass das Karussell die Seite auf dem Handy verbreitert */
@media (min-width: 900px) { .highlights { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); } }

.carousel--single .carousel__track { height: 100%; }
.carousel--single .carousel__slide { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .carousel--single .carousel__slide { aspect-ratio: auto; min-height: 520px; } }

.highlights__panel {
  padding: clamp(36px, 5vw, 60px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.highlights__panel .section-title { text-align: center; }

.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px) clamp(14px, 3vw, 28px);
  width: 100%; max-width: 360px;
}
.fact { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.fact__num { font-family: var(--f-sans); font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--c-ink); min-width: 32px; text-align: right; }
.fact__label { font-size: 0.68rem; line-height: 1.25; color: var(--c-text); }
.fact__icon {
  width: 30px; height: 30px; flex-shrink: 0;
  fill: none; stroke: var(--c-ink); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round;
}
.fact__year {
  font-size: 0.72rem; font-weight: 500; color: var(--c-ink);
  border-top: 1.5px solid var(--c-ink); border-bottom: 1.5px solid var(--c-ink);
  padding: 1px 2px; letter-spacing: .04em;
}

/* =========================================================
   RAUMKONZEPT
   ========================================================= */
.carousel--multi .carousel__track { gap: 6px; }
.carousel--multi .carousel__slide { flex-basis: 86%; }
@media (min-width: 640px) { .carousel--multi .carousel__slide { flex-basis: calc((100% - 6px) / 2); } }
@media (min-width: 960px) { .carousel--multi .carousel__slide { flex-basis: calc((100% - 12px) / 3); } }
.carousel--multi figure { margin: 0; }
.carousel--multi img { aspect-ratio: 5 / 4; }
.carousel--multi figcaption { font-size: var(--fs-small); padding-top: 8px; color: var(--c-text); }

.carousel__btn--side {
  position: absolute; top: calc(50% - 16px); transform: translateY(-50%); z-index: 2;
  background: var(--c-ink); color: var(--c-white);
}
.carousel__btn--side:hover { transform: translateY(-50%) scale(1.08); }
.carousel__btn--side[disabled] { transform: translateY(-50%); }
.carousel__btn--prev { left: -12px; }
.carousel__btn--next { right: -12px; }
@media (max-width: 639px) { .carousel__btn--prev { left: 6px; } .carousel__btn--next { right: 6px; } }

/* =========================================================
   AKTIVITÄTEN
   ========================================================= */
.activities__banner { position: relative; height: max(240px, 33.65vw); overflow: hidden; background: #1f2633; } /* Panorama 2000×673 */

/* Überblend-Slideshow (Aktivitäten) */
.fader { position: absolute; inset: 0; }
.fader__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.fader__img.is-active { opacity: 1; }
.activities__title {
  position: absolute; top: clamp(16px, 3vw, 36px); right: var(--gutter);
  color: var(--c-white); font-size: var(--fs-h2-sm);
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
@media (min-width: 1200px) { .activities__title { right: calc((100vw - var(--container)) / 2); } }
.activities__text { background: var(--c-panel); padding-block: clamp(40px, 5vw, 64px); }

/* =========================================================
   MITBEWOHNER (Kater Mo)
   ========================================================= */
.housemate__banner { position: relative; height: max(240px, 33.64vw); overflow: hidden; background: #d8d4cd; } /* Panorama 2200×740 */
.housemate__banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; /* Mo bleibt mittig im Bild */ }
.housemate__title {
  position: absolute; left: var(--gutter); bottom: clamp(16px, 3vw, 36px);
  color: var(--c-white); font-size: var(--fs-h2-sm);
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
@media (min-width: 1200px) { .housemate__title { left: calc((100vw - var(--container)) / 2); } }
.housemate__text { background: var(--c-panel); padding-block: clamp(40px, 5vw, 64px); }
.housemate__note-title { margin-bottom: .4em; }
.housemate__notes { list-style: disc; padding-left: 1.2em; margin: 0 0 1em; font-size: var(--fs-small); }
.housemate__notes li { margin-bottom: .35em; }

/* =========================================================
   PREISE
   ========================================================= */
.prices__notes p { font-size: var(--fs-small); line-height: 1.6; margin-bottom: clamp(28px, 4vw, 44px); }

.price-table { width: 100%; border-collapse: separate; border-spacing: 6px 0; font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.02rem); }
.price-table thead th {
  background: var(--c-table-head);
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(1rem, .9rem + .4vw, 1.2rem);
  text-align: left; padding: 10px 10px; color: var(--c-ink);
}
.price-table tbody tr:first-child > * { padding-top: 22px; }
.price-table tbody th, .price-table td { text-align: left; font-weight: 300; padding: 6px 10px; color: var(--c-text); }
.price-table tbody tr { transition: background .2s; }
.price-table tbody tr:hover { background: #f5f3ef; }
.table-wrap { margin-inline: -6px; }

/* Mobile: Tabelle als Karten */
@media (max-width: 640px) {
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tbody tr { padding: 14px 6px; border-bottom: 1px solid var(--c-line); }
  .price-table tbody tr:first-child > * { padding-top: 6px; }
  .price-table tbody th { font-weight: 500; padding: 0 0 6px; color: var(--c-ink); }
  .price-table td { display: flex; justify-content: space-between; padding: 2px 0; }
  .price-table td::before { content: attr(data-label); color: var(--c-muted); }
}

/* =========================================================
   BUCHUNG / WIDGETS
   ========================================================= */
.booking { background: var(--c-sand); }
.widget-card {
  background: var(--c-white);
  padding: clamp(20px, 3.5vw, 40px);
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 10px 30px rgba(60, 50, 35, .06);
}
.widget-card + .widget-card { margin-top: clamp(20px, 3vw, 32px); }
.widget-card__title { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); margin-bottom: 4px; }
.widget-card__hint { font-size: var(--fs-small); color: var(--c-muted); margin-bottom: clamp(16px, 2.5vw, 24px); }
.widget-card__body { min-height: 260px; overflow-x: auto; }
.widget-card__body--form { min-height: 380px; }
.widget-card__body iframe { max-width: 100%; border: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--c-ink); color: #d6d3cd; padding-top: clamp(48px, 6vw, 80px); font-size: var(--fs-small); }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--c-white); }
.site-footer__grid { display: grid; gap: 36px; padding-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__logo { font-family: var(--f-serif); font-size: 1.5rem; color: var(--c-white); margin-bottom: 10px; }
.site-footer__brand p:last-child { max-width: 34ch; }
.site-footer__heading { font-family: var(--f-serif); color: var(--c-white); font-size: 1.1rem; margin-bottom: 12px; }
.site-footer__contact { font-style: normal; display: flex; flex-direction: column; gap: 6px; }
.insta { display: inline-flex; align-items: center; gap: 10px; }
.insta svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.insta svg .dot { fill: currentColor; stroke: none; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 20px; font-size: 0.8rem; color: #9d998f;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom nav { display: flex; gap: 20px; }

/* =========================================================
   Reduced Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .carousel__track { scroll-behavior: auto; }
}

/* =========================================================
   RECHTSTEXTE (Impressum / Datenschutz)
   ========================================================= */
.legal-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: var(--c-ink); color: var(--c-white); }
.legal-header .site-header__inner { justify-content: space-between; }
.legal-header__back { color: var(--c-white); text-decoration: none; font-size: 0.9rem; }
.legal-header__back:hover { text-decoration: underline; }

.legal { padding-block: var(--section-y); }
.legal .container { max-width: 780px; }
.legal h1 { font-size: var(--fs-h2); margin-bottom: clamp(24px, 4vw, 40px); }
.legal h2 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); margin: clamp(32px, 4vw, 48px) 0 12px; }
.legal h3 { font-family: var(--f-sans); font-weight: 500; font-size: 1rem; margin: 22px 0 6px; color: var(--c-ink); }
.legal p, .legal li { font-size: var(--fs-small); }
.legal ul { list-style: disc; padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .35em; }
.legal a { color: var(--c-ink); text-underline-offset: 2px; }
.legal address { font-style: normal; font-size: var(--fs-small); margin-bottom: 1em; line-height: 1.7; }
.legal__meta { color: var(--c-muted); margin-top: clamp(32px, 4vw, 48px); }
.legal .todo { background: #fff3c4; padding: 0 .25em; }
.legal + .site-footer { padding-top: 0; }

/* Kein Aufblitzen des Dropdowns beim Wechsel Hero ↔ Scroll-Zustand */
.site-header.is-switching .site-nav__list { transition: none !important; }

/* Mobile: Hero im Querformat, damit das Foto kaum beschnitten wird */
@media (max-width: 699px) {
  .hero { height: max(260px, 66.7vw); } /* Querformat 3:2 */
  .hero__media { top: -6%; height: 112%; }
}
