/* ==========================================================
   Battmers Scheune – Stylesheet
   Das meiste Aussehen steht direkt an den Elementen (style="…").
   Hier stehen: Grundlagen, wiederkehrende Bausteine und alles,
   was sich am Handy anders verhalten muss (@media).
   ========================================================== */

/* ---- Schriften: lokal, keine Verbindung zu Google ---- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/bricolage-grotesque-latin-standard-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
}

/* ---- Farben an einer Stelle ---- */
:root { --accent: #57A639; }

/* ---- Grundlagen ---- */
html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  color: #1C1916;
  background: #F4ECDF;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: #F4ECDF; }
a:hover { color: var(--accent); }
input, select, textarea, button { font-family: inherit; }
/* „hidden“ muss immer gewinnen – auch gegen style="display: flex" am Element */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.bs-ic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bs-fill { fill: currentColor; stroke: none; }
.bs-serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.bs-link { text-decoration: none; transition: color .2s; }
.bs-link:hover { color: var(--accent); }

/* „Zum Inhalt springen“ – nur sichtbar, wenn man mit der Tab-Taste navigiert */
.bs-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #1C1916; padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.bs-skip:focus { top: 12px; }

/* ---- Navigation ---- */
.bs-navlinks { display: flex; }
.bs-burger { display: none; }

/* ---- Slider-Punkte ---- */
.bs-dot { width: 22px; height: 44px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; cursor: pointer; transition: width .3s; }
.bs-dot span { display: block; width: 100%; height: 4px; border-radius: 4px; background: #8C7E6C; }
.bs-dot[aria-current="true"] { width: 44px; }
.bs-dot[aria-current="true"] span { background: var(--accent); }

/* ---- Animationen ---- */
@keyframes bs-spin { to { transform: rotate(360deg); } }
.bs-spin { animation: bs-spin 22s linear infinite; transform-origin: 50% 50%; }
@keyframes bs-marquee { to { transform: translateX(-50%); } }
.bs-marquee { animation: bs-marquee 28s linear infinite; }
.bs-card { transition: transform .25s; }
.bs-card:hover { transform: translateY(-6px); }
.bs-span2 { grid-column: span 2; }

/* ---- Fotogalerie-Kacheln ---- */
.bs-gal { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 16px; }
.bs-gal-big { grid-row: span 2; }
.bs-tile { position: relative; border: 0; padding: 0; border-radius: 22px; overflow: hidden; cursor: pointer; background: #1C1916; display: block; width: 100%; height: 100%; text-align: left; color: #F4ECDF; }
.bs-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.bs-tile:hover img { transform: scale(1.04); }
.bs-tile-lab { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 18px 16px; background: linear-gradient(rgba(20,17,14,0), rgba(20,17,14,.85)); display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.bs-tile-t { font-size: 26px; line-height: 1; color: #F4ECDF; }
.bs-tile-cnt { font-size: 13px; font-weight: 700; background: rgba(244,236,223,.94); color: #1C1916; padding: 7px 12px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }

/* ---- Lightbox ---- */
.bs-lb { position: fixed; inset: 0; z-index: 60; background: rgba(20,17,14,.96); color: #F4ECDF; display: flex; flex-direction: column; align-items: center; padding: 24px 24px 28px; box-sizing: border-box; gap: 14px; overflow-y: auto; }
.bs-lb[hidden] { display: none; }
.bs-lb-top { width: 100%; max-width: 1240px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; letter-spacing: .04em; }
.bs-lb-top strong { font-size: 18px; }
.bs-lb-close { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid #8C7E6C; background: transparent; color: #F4ECDF; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.bs-lb-stage { position: relative; width: 100%; max-width: 1240px; height: min(70vh, 760px); flex: none; }
.bs-lb-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bs-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(244,236,223,.92); color: #1C1916; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bs-lb-prev { left: 8px; } .bs-lb-next { right: 8px; }
.bs-lb-cap { margin: 0; max-width: 1240px; text-align: center; font-size: 16px; line-height: 1.5; color: #D9CDB8; min-height: 24px; }
.bs-lb-thumbs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bs-lb-thumbs button { width: 76px; height: 56px; padding: 0; border-radius: 10px; overflow: hidden; border: 3px solid transparent; background: none; cursor: pointer; opacity: .6; }
.bs-lb-thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.bs-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.bs-no-scroll { overflow: hidden; }

/* ---- Film-Player (eigener Server) ---- */
.bs-vb { justify-content: center; }
.bs-vb-stage { position: relative; width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; max-height: 78vh; background: #000; border-radius: 14px; overflow: hidden; flex: none; }
.bs-vb-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ---- Anfrageformular ---- */
.bs-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.bs-fs legend { font-size: 15px; font-weight: 700; margin-bottom: 14px; padding: 0; }
.bs-pflicht { color: #A3341F; }
.bs-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bs-chip { position: relative; }
.bs-chip input, .bs-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bs-chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid #CDBDA2; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.bs-chip input:checked + span { background: #1C1916; color: #F4ECDF; border-color: #1C1916; font-weight: 700; }
.bs-chip input:focus-visible + span, .bs-cat input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.bs-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.bs-cat { position: relative; display: flex; }
.bs-cat span { flex: 1; min-height: 96px; padding: 18px; border-radius: 18px; border: 1.5px solid #CDBDA2; background: #FFFDF8; display: flex; flex-direction: column; gap: 6px; cursor: pointer; box-sizing: border-box; }
.bs-cat strong { font-size: 16px; font-weight: 800; }
.bs-cat small { font-size: 14px; line-height: 1.4; color: #5A4D40; }
.bs-cat input:checked + span { border: 2px solid #1C1916; background: var(--accent); }
.bs-cat input:checked + span small { color: #1C1916; }
.bs-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.bs-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.bs-label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; }
.bs-input { height: 54px; border-radius: 14px; border: 1.5px solid #CDBDA2; background: #FFFDF8; padding: 0 16px; font-size: 16px; color: #1C1916; box-sizing: border-box; width: 100%; font-weight: 400; }
textarea.bs-input { height: auto; padding: 14px 16px; resize: vertical; }
.bs-input:focus { border-color: #1C1916; outline: none; box-shadow: 0 0 0 3px rgba(87,166,57,.35); }
.bs-film { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: #1C1916; color: #F4ECDF; cursor: pointer; }
.bs-film input { width: 24px; height: 24px; accent-color: #57A639; flex: none; margin: 0; }
.bs-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #4A3F34; }
.bs-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: #1C1916; }
.bs-submit { min-height: 58px; padding: 0 34px; border-radius: 999px; border: 0; background: #1C1916; color: #F4ECDF; font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.bs-submit:hover { background: #3A3129; }
.bs-submit[disabled] { opacity: .6; cursor: wait; }
.bs-fehler { background: #FBE9E4; border: 1.5px solid #A3341F; color: #6E1F10; border-radius: 16px; padding: 16px 20px; font-size: 15px; line-height: 1.5; }
.bs-fehler ul { margin: 8px 0 0; padding-left: 20px; }
/* Honeypot unsichtbar, aber nicht „display:none“ (das erkennen manche Bots) */
.bs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Unterseiten: Impressum, Datenschutz, Danke ---- */
.bs-page { max-width: 820px; margin: 0 auto; padding: 90px 24px 110px; font-size: 17px; line-height: 1.7; color: #3A3129; }
.bs-page h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -.03em; color: #1C1916; margin: 14px 0 40px; }
.bs-page h2 { font-size: 22px; line-height: 1.25; color: #1C1916; margin: 40px 0 10px; }
.bs-page p, .bs-page ul { margin: 0 0 14px; }
.bs-page a { color: #2E6B1F; }
.bs-kicker { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6B5A45; }
.bs-lead { font-size: 21px; color: #1C1916; }
.bs-stand { margin-top: 40px !important; color: #6B5A45; font-size: 15px; }
.bs-page-zentriert { text-align: center; min-height: 50vh; }
.bs-btn { display: inline-flex; align-items: center; min-height: 54px; padding: 0 28px; border-radius: 999px; background: #1C1916; color: #F4ECDF !important; font-weight: 700; text-decoration: none; margin-top: 16px; }

/* ==========================================================
   HANDY & TABLET
   ========================================================== */
@media (max-width: 900px) {
  /* Navigation wird zum ausklappbaren Menü */
  .bs-burger { display: flex; }
  .bs-navlinks { display: none !important; }
  .bs-navlinks.is-open {
    display: flex !important; position: fixed; top: 92px; left: 0; right: 0; bottom: 0; z-index: 40;
    flex-direction: column; align-items: stretch !important; gap: 4px !important;
    background: #1C1916; padding: 24px; overflow-y: auto; font-size: 26px !important; font-weight: 800 !important;
  }
  .bs-navlinks.is-open a { padding: 12px 0; border-bottom: 1px solid #3A3129; }
  .bs-navlinks.is-open a:last-child { margin-top: 18px; text-align: center; border: 0; font-size: 18px; }

  .bs-gal { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .bs-gal-big { grid-column: span 2; grid-row: auto; }
  .bs-tile-t { font-size: 22px; }
  .bs-span2 { grid-column: auto; }
  .bs-stamp { display: none !important; }
  .bs-sec { padding-top: 76px !important; padding-bottom: 76px !important; }
}

@media (max-width: 600px) {
  /* Slider wächst mit dem Text mit, statt ihn oben abzuschneiden */
  .bs-hero { height: auto !important; min-height: 640px; }
  .bs-hero-inhalt { height: auto !important; min-height: 640px; padding-top: 110px !important; padding-bottom: 104px !important; }
  .bs-hero-inhalt p { font-size: 17px !important; }
  /* Lange Wörter wie „Landwirtschaftsscheune“ dürfen getrennt werden */
  .bs-sec span { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
  .bs-collage { height: 440px !important; }
  .bs-collage > div:first-child { height: 300px !important; width: 92% !important; }
  .bs-collage > div:last-child { width: 62% !important; }
  .bs-collage > div:last-child img { height: 150px !important; }
  .bs-gal { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .bs-gal-big { grid-column: auto; }
  .bs-lb { padding: 16px 12px 20px; }
  .bs-lb-stage { height: min(58vh, 520px); }
  .bs-lb-nav { width: 44px; height: 44px; }
  .bs-film { align-items: flex-start; }
  .bs-film > svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bs-spin, .bs-marquee { animation: none; }
  .bs-card, .bs-tile img { transition: none; }
}

/* ---- Übernachten für Gäste (Bereich Anfahrt) – bewusst klein und untergeordnet ---- */
.bs-sleep { max-width: 1240px; margin: -56px auto 0; padding: 0 24px 110px; display: flex; flex-direction: column; gap: 22px; }
.bs-sleep-kopf { display: flex; flex-direction: column; gap: 10px; max-width: 640px; padding-top: 44px; border-top: 1px solid #3A3129; }
.bs-sleep-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.bs-sleep h3 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.bs-sleep h3 .bs-serif { color: #C7E3B4; }
.bs-sleep-kopf p { margin: 0; font-size: 15px; line-height: 1.6; color: #D9CDB8; }
.bs-sleep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.bs-sleep-karte { background: #26211C; border: 1px solid #3A3129; border-radius: 18px; overflow: hidden; display: flex; }
/* Bild links: 25 % der Kachelbreite, füllt die volle Höhe */
.bs-sleep-bild { position: relative; flex: 0 0 25%; min-width: 96px; min-height: 120px; background: #2F3A30 repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 10px, transparent 10px 20px); }
.bs-sleep-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bs-sleep-platzhalter { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #C7E3B4; }
.bs-sleep-platzhalter svg { width: 30px; height: 30px; }
.bs-sleep-credit { position: absolute; left: 6px; right: 6px; bottom: 5px; font-size: 9px; line-height: 1.2; color: rgba(255,255,255,0.85); text-shadow: 0 1px 3px rgba(0,0,0,0.7); }
.bs-sleep-inhalt { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.bs-sleep-inhalt .bs-sleep-kicker { font-size: 11px; }
.bs-sleep h4 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.bs-sleep-inhalt p { margin: 0; font-size: 14px; line-height: 1.55; color: #D9CDB8; flex: 1; }
.bs-sleep-knopf { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: #C7E3B4; font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 1px solid rgba(199,227,180,0.4); padding-bottom: 1px; }
.bs-sleep-knopf:hover, .bs-sleep-knopf:focus-visible { color: #F4ECDF; border-bottom-color: #F4ECDF; }
.bs-sleep-tipp { margin: 0; font-size: 13px; color: #A99C87; }
@media (max-width: 600px) { .bs-sleep { padding-bottom: 80px; } .bs-sleep-grid { grid-template-columns: 1fr; } .bs-sleep-kopf { padding-top: 36px; } .bs-sleep-inhalt { padding: 14px 16px; } }
