/* ==========================================================================
   Schinnens Scheune – Nachbau von schinnensscheune.de
   Werbeagentur Hoffmann
   Schriften: Averia Sans Libre (H1/Buttons), Averia Serif Libre (H2/Nav),
              Montserrat (Fliesstext) – identisch zum Original
   ========================================================================== */

/* ---------- 1. Custom Properties ---------- */
:root {
  --color-dark: #272727;
  --color-dark-2: #1f1f1f;
  --color-light: #ffffff;
  --color-body: #000000;
  --color-body-invert: #f2f2f2;
  --color-footer-bg: #dcdcdc;
  --color-footer-text: #1c1c1c;
  --color-accent: #8b4a43;
  --color-accent-dark: #6f3b35;
  --color-highlight: #ef5a68;
  --color-border: #d8d8d8;
  --color-table-alt: #f2f2f2;
  --color-overlay: rgba(0, 0, 0, .38);

  --font-display: "Averia Sans Libre", "Comic Sans MS", cursive, sans-serif;
  --font-serif: "Averia Serif Libre", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --container: 1140px;
  --header-h: 106px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 80px;

  --shadow-soft: 0 4px 16px rgba(0, 0, 0, .18);
  --transition: all .25s ease;
}

/* ---------- 2. Reset / Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-body);
  background: var(--color-light);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover,
a:focus-visible { color: var(--color-accent); }

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-4);
  font-weight: 400;
  line-height: 1.25;
}

h1 { font-family: var(--font-display); font-size: 45px; }
h2 { font-family: var(--font-serif); font-size: 30px; }
h3 { font-family: var(--font-display); font-size: 26px; }

p { margin: 0 0 var(--sp-3); }

ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--color-dark);
  color: #fff;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. Layout-Helfer ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}

.section { padding: var(--sp-8) 0; position: relative; }

.section--dark {
  background: var(--color-dark);
  color: var(--color-body-invert);
}

.section--dark a { color: #fff; }
.section--dark a:hover { color: var(--color-highlight); }

.section--pattern {
  background: #fff url("../images/background.png") no-repeat right center;
  background-size: contain;
}

.section--center { text-align: center; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}

/* ---------- 4. Header / Navigation ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.site-header.is-sticky {
  position: fixed;
  height: 76px;
  background: rgba(39, 39, 39, .95);
  box-shadow: var(--shadow-soft);
}

.site-header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.site-logo img {
  width: 194px;
  max-width: 48vw;
  height: auto;
}

.site-header.is-sticky .site-logo img { width: 150px; }

.main-nav__list {
  display: none;
  align-items: center;
  gap: var(--sp-4);
}

.main-nav__list a {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.main-nav__list a:hover,
.main-nav__list a:focus-visible,
.main-nav__list a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #fff;
}

/* Burger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .7);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Offcanvas */
.offcanvas {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(340px, 86vw);
  background: var(--color-dark);
  padding: 96px var(--sp-5) var(--sp-5);
  transform: translateX(105%);
  transition: transform .3s ease;
  z-index: 80;
  overflow-y: auto;
}

.offcanvas.is-open { transform: translateX(0); }

.offcanvas a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.offcanvas a:hover { color: var(--color-highlight); }

.offcanvas__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 70;
}

.backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: calc(var(--header-h) + var(--sp-6)) 0 var(--sp-6);
  background-color: #2b2b2b;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero__inner { position: relative; z-index: 2; }

.hero h1 {
  color: #fbf8f8;
  margin-bottom: var(--sp-3);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 26px;
  color: #efe9e9;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  min-height: 62px;
  padding: 16px 26px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  text-align: center;
  border: 2px solid var(--color-dark);
  cursor: pointer;
  transition: var(--transition);
}

.btn--dark {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}

.btn--dark:hover,
.btn--dark:focus-visible { background: #000; color: #fff; }

.btn--light {
  background: #fff;
  color: var(--color-dark);
  border-color: #fff;
}

.btn--light:hover,
.btn--light:focus-visible { background: var(--color-dark); color: #fff; border-color: #fff; }

/* Buttons auf dunklem Grund */
.section--dark .btn--dark { border-color: #fff; }
.section--dark .btn--dark:hover { background: #fff; color: var(--color-dark); }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}

.section--center .btn-group { justify-content: center; }

/* ---------- 7. Intro / Text ---------- */
.intro { max-width: 900px; margin-inline: auto; }

.intro h2 { margin-bottom: var(--sp-5); }

.lead { font-size: 16px; line-height: 1.55; }

.text-block p:last-child { margin-bottom: 0; }

.text-highlight {
  color: var(--color-highlight);
  font-style: italic;
  font-weight: 700;
}

/* ---------- 8. Tabellen ---------- */
.table-wrap { overflow-x: auto; margin: var(--sp-4) 0 var(--sp-5); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: #000;
}

.data-table td {
  padding: 14px 12px;
  border: 1px solid var(--color-border);
  vertical-align: top;
  font-size: 15px;
}

.data-table tr:nth-child(even) td { background: var(--color-table-alt); }

.data-table td:first-child { font-weight: 700; width: 55%; }

.section--dark .data-table { background: #fff; }

/* ---------- 9. Karussell ---------- */
.carousel { position: relative; }

.carousel__viewport { overflow: hidden; }

.carousel__track {
  display: flex;
  gap: var(--sp-4);
  transition: transform .5s ease;
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  max-width: 100%;
}

.carousel__slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  background: rgba(39, 39, 39, .75);
  border: 0;
  cursor: pointer;
  z-index: 3;
}

.carousel__btn:hover { background: var(--color-accent); }
.carousel__btn--prev { left: -8px; }
.carousel__btn--next { right: -8px; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: var(--sp-4);
}

.carousel__dots button {
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #b5b5b5;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.carousel__dots button[aria-selected="true"] { background: #9a9a9a; border-color: #9a9a9a; }

/* ---------- 10. 360°-Panoramen ---------- */
.pano {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: var(--sp-5);
  background: #111;
  overflow: hidden;
}

.pano iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 11. Parallax-Bildband ---------- */
.image-band {
  min-height: 460px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ---------- 12. Kontakt-Liste ---------- */
.contact-list { margin: var(--sp-3) 0 var(--sp-5); }

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: 16px;
}

.contact-list svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  fill: currentColor;
}

.contact-label { font-weight: 700; margin-bottom: var(--sp-2); }

/* ---------- 13. Footer ---------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--sp-8) 0 0;
}

.site-footer h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: var(--sp-5);
}

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

.site-footer address {
  font-style: normal;
  line-height: 1.75;
}

.footer-links li { line-height: 1.9; }

.footer-bottom {
  margin-top: var(--sp-7);
  padding: var(--sp-4) 0;
  border-top: 1px solid rgba(0, 0, 0, .1);
  text-align: center;
  font-size: 14px;
}

.footer-bottom p { margin: 0; }

.agency-branding p { margin: 0; font-size: 14px; }

/* ---------- 14. Back-to-Top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 60;
}

.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-accent-dark); }
.back-to-top svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- 15. Cookie-Banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: var(--sp-4) var(--sp-3);
  background: var(--color-dark);
  color: #f2f2f2;
  transform: translateY(110%);
  transition: transform .4s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.cookie-banner p { margin: 0; font-size: 14px; max-width: 640px; }
.cookie-banner a { text-decoration: underline; }

.cookie-banner__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.cookie-banner .btn { min-height: 48px; min-width: 44px; font-size: 15px; padding: 10px 20px; }

/* ---------- 16. Formular ---------- */
.form-field { margin-bottom: var(--sp-4); }

.form-field label { display: block; margin-bottom: var(--sp-2); font-weight: 700; font-size: 15px; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #000;
  background: #fff;
  border: 1px solid var(--color-border);
}

.form-field input:focus,
.form-field textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }

.form-error { display: block; margin-top: 6px; font-size: 13px; color: var(--color-highlight); min-height: 18px; }

.form-status { margin-top: var(--sp-3); font-weight: 700; }

/* ---------- 17. Rechtstexte / 404 ---------- */
.legal h3 { font-family: var(--font-serif); font-size: 22px; margin-top: var(--sp-5); }
.legal p { margin-bottom: var(--sp-3); }

.error-page { text-align: center; }
.error-page .error-code {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 1;
  margin-bottom: var(--sp-4);
}

/* ---------- 18. Scroll-Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   19. Media Queries
   ========================================================================== */
@media (min-width: 768px) {
  h1 { font-size: 45px; }
  h2 { font-size: 30px; }

  .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
  .grid-2--narrow-left { grid-template-columns: 5fr 7fr; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .carousel__slide { flex: 0 0 calc((100% - var(--sp-4)) / 2); }

  .hero { min-height: 700px; }

  .carousel__slide img { height: 210px; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav__list { display: flex; }

  .hero { min-height: 1000px; }

  .carousel__slide { flex: 0 0 calc((100% - 3 * var(--sp-4)) / 4); }

  .carousel__btn--prev { left: -22px; }
  .carousel__btn--next { right: -22px; }

  .image-band { min-height: 460px; }
}

@media (min-width: 1440px) {
  .hero__inner,
  .site-header__inner { padding-inline: 0; }
}

/* Touch-Geräte: kein background-attachment: fixed (Performance/iOS-Bug) */
@media (hover: none) {
  .image-band { background-attachment: scroll; }
}

/* ==========================================================================
   20. Ergaenzungen Nachbau – Hero-Motive, Medien, Panoramen
   ========================================================================== */

/* ---------- 20.1 Header-Verlauf ueber dem Hero ---------- */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: -1;
}

.site-header.is-sticky::before { display: none; }

/* ---------- 20.2 Hero-Motive je Seite ---------- */
.hero--start       { background-image: url("../images/neu/header01.jpg"); }
.hero--philosophie { background-image: url("../images/neu/innen09.jpg"); }
.hero--strauss     { background-image: url("../images/neu/aussen01.jpg"); }
.hero--gaestehaus  { background-image: url("../images/neu/start02.jpg"); }
.hero--zeiten      { background-image: url("../images/neu/innen16.jpg"); }
.hero--kontakt     { background-image: url("../images/neu/neuinnen03.jpg"); }

/* Unterseiten: kompakterer Hero, Titel und Untertitel enger beieinander */
.hero--sub .hero__subtitle { font-size: 24px; }
.hero--sub h1 { margin-bottom: var(--sp-2); }

/* ---------- 20.3 Bilder / Medien ---------- */
.media { margin: 0; }

.media img { width: 100%; height: auto; }

.media--wide {
  margin: 0 auto var(--sp-6);
  max-width: var(--container);
}

.text-block--wide {
  max-width: 960px;
  margin-inline: auto;
  text-align: left;
}

.grid-2--top { align-items: start; }

/* ---------- 20.4 Zusaetzliche Button-Variante ---------- */
.btn--outline {
  background: #fff;
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn--outline:hover,
.btn--outline:focus-visible { background: var(--color-dark); color: #fff; }

/* ---------- 20.5 Galerie-Abschnitt ---------- */
.section--gallery { padding: var(--sp-6) 0 var(--sp-7); }

.carousel__track { gap: 14px; }

.carousel__slide img { height: 210px; }

/* ---------- 20.6 Panorama-Abschnitt ---------- */
.section--pano { padding: 0 0 var(--sp-6); }

.section--pano .pano {
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: 0;
  aspect-ratio: 21 / 9;
}

/* ---------- 20.7 Parallax-Bildband ---------- */
.image-band--calmont { background-image: url("../images/neu/start.jpg"); }

/* ---------- 20.8 Schmale Tabellen (Oeffnungszeiten) ---------- */
.data-table--slim { max-width: 420px; }

.data-table--slim td { border: 0; border-bottom: 1px solid var(--color-border); }

.data-table--slim td:first-child { width: 48%; }

/* ---------- 20.9 Footer-Feinschliff ---------- */
.footer-bottom { color: #6b6b6b; }
.footer-bottom p { margin: 0; }
.footer-bottom .agency-branding a { text-decoration: underline; }

/* ---------- 20.10 Back-to-Top im Originalton ---------- */
.back-to-top { background: #7b2d2a; }
.back-to-top:hover { background: #5f221f; }

/* ---------- 20.11 Rechtstexte auf dunklem Grund ---------- */
.legal { max-width: 960px; }
.legal h3 { font-family: var(--font-display); font-size: 22px; color: #fff; }
.legal a { text-decoration: underline; }

/* ---------- 20.12 Media Queries fuer die Ergaenzungen ---------- */
@media (min-width: 768px) {
  .carousel__slide { flex: 0 0 calc((100% - 14px) / 2); }
}

@media (min-width: 1024px) {
  .carousel__slide { flex: 0 0 calc((100% - 3 * 14px) / 4); }
  .carousel__slide img { height: 245px; }
  .hero--sub { min-height: 660px; }
  .grid-2--top { gap: var(--sp-7); }
}

/* ---------- 20.13 Korrekturen ---------- */
/* Helle Buttons behalten auf dunklem Grund ihre dunkle Schrift */
.section--dark .btn--light,
.section--dark .btn--outline { color: var(--color-dark); }

.section--dark .btn--light:hover,
.section--dark .btn--light:focus-visible,
.section--dark .btn--outline:hover,
.section--dark .btn--outline:focus-visible { background: var(--color-dark); color: #fff; }

/* Etwas grosszuegigere Sektionsabstaende wie im Original */
@media (min-width: 1024px) {
  .section { padding: 110px 0; }
  .section--gallery { padding: var(--sp-6) 0 var(--sp-7); }
  .section--pano { padding: 0 0 var(--sp-6); }
}

/* ---------- 20.14 Wasserzeichen (Steinfigur) exakt dimensionieren ---------- */
.section--pattern {
  background: #fff url("../images/background.png") no-repeat 75% center;
  background-size: 230px auto;
}

.section--pattern--edge { background-position: right -30px center; }

/* Bildband ohne Parallax, damit das Motiv immer vollstaendig sichtbar bleibt */
.image-band--calmont {
  background-attachment: scroll;
  background-position: center 35%;
}

/* ---------- 20.15 Abstand vor Folgeueberschriften ---------- */
.text-block + h2,
.table-wrap + h2 { margin-top: var(--sp-7); }
