/* Gut Buschhof – statisches Stylesheet (Ersatz für WordPress/Enfold) */

@font-face { font-family: 'Open Sans'; src: url('../fonts/opensans-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/opensans-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/opensans-semibold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/opensans-bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --green: #0b6d36;
  --green-dark: #08552a;
  --green-light: #f2f7f3;
  --navy: #1f365c;
  --text: #666;
  --heading: #444;
  --border: #e1e1e1;
  --max: 1310px;
  --gutter: 50px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { color: var(--heading); font-weight: 600; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
p, ul, table { margin: 0 0 1em; }
ul { padding-left: 1.3em; }
li { margin-bottom: .4em; }
small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 60px 0; }
.section--alt { background: var(--green-light); }
.section--tight { padding: 40px 0; }
.center { text-align: center; }
.hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.site-header__logo { display: flex; justify-content: center; padding: 12px 0; transition: padding .25s; }
.site-header__logo img { width: 300px; height: auto; transition: width .25s; }
.site-header.is-shrunk .site-header__logo { padding: 4px 0; }
.site-header.is-shrunk .site-header__logo img { width: 190px; }

.nav { border-top: 1px solid var(--border); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: stretch; }
.nav__list > li { position: relative; margin: 0; }
.nav__list > li + li > a::before { content: ''; position: absolute; left: 0; top: 50%; height: 14px; margin-top: -7px; border-left: 1px solid var(--border); }
.nav a { position: relative; display: block; padding: 12px 14px; font-size: 15px; font-weight: 700; text-transform: uppercase; text-decoration: none; color: #555; }
.nav a:hover, .nav .is-active > a { color: var(--green); }
.nav__home svg { width: 14px; height: 14px; fill: #aaa; vertical-align: -1px; }
.nav__home:hover svg, .is-active .nav__home svg { fill: var(--green); }
.nav .sub { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 100%; min-width: 230px; background: #fff; border: 1px solid var(--border); border-top: 2px solid var(--green); box-shadow: 0 6px 16px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub, .nav .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub li { margin: 0; }
.nav .sub a { padding: 10px 16px; font-size: 13px; font-weight: 600; text-transform: none; border-bottom: 1px solid #f0f0f0; }
.nav .sub a::before { display: none; }
.nav__toggle { display: none; }

/* ---------- Hero / Banner ---------- */
.banner img { width: 100%; height: auto; aspect-ratio: 1500 / 430; object-fit: cover; }

.page-intro h1 { margin-bottom: .2em; }
.special-heading { text-align: center; padding: 40px 0 10px; }
.special-heading h1 { font-size: 30px; }
.special-heading p { font-size: 13px; margin: 0; }

/* Slider (Startseite) */
.slider { position: relative; overflow: hidden; background: var(--navy); height: clamp(420px, 47vw, 660px); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 7s linear; }
.slide.is-active .slide__bg { transform: scale(1.12); }
.slide__overlay { position: absolute; top: 0; bottom: 0; left: 0; width: 72%; height: 100%; object-fit: cover; object-position: right center; opacity: .9; transform: translateX(-100%); transition: transform 1s ease .3s; }
.slide.is-active .slide__overlay { transform: none; }
.slide__content { position: relative; z-index: 2; max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; justify-content: center; color: #fff; }
.slide__content > * { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.slide.is-active .slide__content > * { opacity: 1; transform: none; }
.slide.is-active .slide__content > :nth-child(1) { transition-delay: .8s; }
.slide.is-active .slide__content > :nth-child(2) { transition-delay: 1s; }
.slide.is-active .slide__content > :nth-child(3) { transition-delay: 1.5s; }
.slide.is-active .slide__content > :nth-child(4) { transition-delay: 2s; }
.slide.is-active .slide__content > :nth-child(5) { transition-delay: 2.2s; }
.slide__kicker { font-size: clamp(22px, 2.6vw, 36px); font-weight: 600; line-height: 1.1; margin: 0; }
.slide__title { font-size: clamp(40px, 5.8vw, 80px); font-weight: 700; line-height: 1; margin: 0 0 22px; }
.slide__line { width: min(600px, 80%); height: 2px; background: #fff; margin-bottom: 26px; }
.slide__text { font-size: clamp(16px, 1.6vw, 22px); line-height: 1.45; max-width: 620px; margin: 0 0 34px; }
.slide__buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.slider__dots { position: absolute; z-index: 3; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.slider__dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slider__dots button.is-active { background: #fff; }
.slider__arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: rgba(0,0,0,.25); color: #fff; font-size: 24px; cursor: pointer; }
.slider__arrow--prev { left: 10px; } .slider__arrow--next { right: 10px; }
.slider__arrow:hover { background: rgba(0,0,0,.5); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 28px; background: var(--green); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; border: 2px solid var(--green); border-radius: 3px; cursor: pointer; transition: .2s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn--slide { border-radius: 0; font-size: 16px; font-weight: 700; padding: 13px 50px; }
.btn--outline { background: transparent; border-color: #fff; color: #fff; }
.btn--outline:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn--white { background: #fff; border-color: #fff; color: var(--navy); padding: 13px 60px; }
.btn--white:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 50px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; }
.card img { margin-bottom: 30px; width: 100%; aspect-ratio: 495 / 340; object-fit: cover; }
.card h3 { color: var(--green); }
.card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Parallax-Sektionen ---------- */
.parallax { position: relative; min-height: 550px; background-size: cover; background-position: center; background-attachment: fixed; display: flex; align-items: center; }
.parallax__box { background: rgba(130,130,130,.85); color: #fff; padding: 25px 30px 15px; width: 60%; font-size: 15px; }
.parallax__box h2 { color: #fff; }
.parallax--right .container { display: flex; justify-content: flex-end; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.gallery a { display: block; border: 1px solid var(--border); background: #fff; padding: 4px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 495 / 400; object-fit: cover; transition: transform .4s, opacity .3s; }
.gallery a:hover img { transform: scale(1.05); opacity: .85; }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; box-shadow: 0 0 30px rgba(0,0,0,.6); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: 10px 18px; line-height: 1; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 16px; color: #ccc; font-size: 13px; }

/* ---------- Tennis: Plätze & Features ---------- */
.courts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; text-align: center; }
.courts img { margin: 0 auto 20px; }
.features { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 30px; align-items: center; }
.features__img { align-self: center; }
.feature { display: flex; gap: 20px; margin-bottom: 40px; }
.feature img { flex: 0 0 50px; width: 50px; height: 50px; }
.feature h4 { color: var(--green); text-transform: uppercase; margin-bottom: .3em; }
.feature p { margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; max-width: 960px; margin: 0 auto; padding: 0 60px; }
.testimonial { display: none; text-align: center; }
.testimonial.is-active { display: block; animation: fade .6s; }
.testimonial blockquote { margin: 0 0 20px; background: var(--green); color: #fff; padding: 25px 40px; font-style: italic; font-size: 15px; position: relative; }
.testimonial blockquote::after { content: ''; position: absolute; left: 50%; bottom: -10px; margin-left: -10px; border: 10px solid transparent; border-bottom: 0; border-top-color: var(--green); }
.testimonial__person { display: inline-flex; align-items: center; gap: 15px; text-align: left; }
.testimonial__person img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.testimonial__person strong { display: block; color: var(--heading); font-size: 15px; }
.testimonial__person span { font-size: 12px; }
.testimonials__arrow { position: absolute; top: 30px; background: none; border: 0; font-size: 34px; color: #ccc; cursor: pointer; }
.testimonials__arrow:hover { color: var(--green); }
.testimonials__arrow--prev { left: 0; } .testimonials__arrow--next { right: 0; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Gut Buschhof: Historie ---------- */
.history-slider { position: relative; }
.history-slider img { width: 100%; }
.history-slider figure { margin: 0; display: none; }
.history-slider figure.is-active { display: block; animation: fade .6s; }
.history-slider .slider__arrow { top: 50%; }
.timeline { list-style: none; padding: 0; border-left: 3px solid var(--green); margin-left: 10px; }
.timeline li { position: relative; padding: 0 0 20px 30px; }
.timeline li::before { content: ''; position: absolute; left: -10px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.timeline h3 { color: var(--green); margin-bottom: .2em; }

/* ---------- Tabellen ---------- */
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; background: #fff; }
.price-table th, .price-table td { border: 1px solid var(--border); padding: 12px 15px; text-align: center; vertical-align: middle; }
.price-table th { background: var(--green); color: #fff; font-weight: 600; }
.price-table td:first-child { font-weight: 600; text-align: left; }
.price-table tr:nth-child(odd) td { background: #fafafa; }
.table-wrap { overflow-x: auto; }

/* ---------- Formulare ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; font-size: 13px; color: var(--heading); margin-bottom: 4px; }
.form input, .form textarea, .form select { width: 100%; padding: 10px 12px; font: inherit; color: #333; border: 1px solid var(--border); background: #fcfcfc; border-radius: 2px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--green); outline-offset: -1px; background: #fff; }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.form__check input { width: auto; margin-top: 4px; }
.form__status { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.form__status.is-error { color: #b00020; }
.form__status.is-ok { color: var(--green); }

/* ---------- Karte (2-Klick-Lösung) ---------- */
.map { position: relative; height: 450px; background: #e8efe9; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px; background: rgba(242,247,243,.9); }
.map__consent p { max-width: 520px; margin: 0; font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: #fff; padding: 50px 0 30px; font-size: 13px; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 15px; letter-spacing: .5px; margin-bottom: 1.2em; }
.site-footer .grid { grid-template-columns: repeat(4, 1fr); gap: 40px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer img { width: 260px; margin-bottom: 15px; }
.socket { background: var(--navy); color: #fff; font-size: 12px; padding: 15px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 989px) {
  :root { --gutter: 25px; }
  .nav__toggle { display: flex; align-items: center; gap: 8px; margin: 0 auto; padding: 10px 16px; background: none; border: 0; font: inherit; font-weight: 700; text-transform: uppercase; color: #555; cursor: pointer; }
  .nav__toggle span { display: block; width: 22px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
  .nav__list { display: none; flex-direction: column; text-align: center; border-top: 1px solid var(--border); }
  .nav.is-open .nav__list { display: flex; }
  .nav__list > li + li > a::before { display: none; }
  .nav__list > li { border-bottom: 1px solid #f0f0f0; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: #fafafa; display: none; }
  .nav .has-sub.is-open .sub { display: block; }
  .nav .sub a { text-align: center; }
  .site-header__logo img { width: 220px; }
  .grid--3, .site-footer .grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .features__img { display: none; }
  .parallax { background-attachment: scroll; }
  .parallax__box { width: 100%; }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
  h1, .special-heading h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .section { padding: 40px 0; }
  .grid--2, .grid--3, .courts, .features, .site-footer .grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .slide__overlay { width: 100%; }
  .slider__arrow { display: none; }
  .slide__buttons .btn { padding: 12px 26px; font-size: 14px; }
  .parallax { min-height: 0; padding: 60px 0; }
  .form { grid-template-columns: 1fr; }
  .testimonials { padding: 0 30px; }
  .testimonial blockquote { padding: 20px; }
  .map { height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Rechtstexte */
.legal { max-width: 960px; }
.legal h2, .legal h3, .legal h4 { margin-top: 1.6em; }
.legal p { overflow-wrap: anywhere; }

/* Dankesmeldung nach erfolgreichem Absenden */
.form-success { background: var(--green-light); border-left: 4px solid var(--green); padding: 24px 28px; color: var(--heading); outline: none; animation: fade .6s; }
.form-success strong { display: block; font-size: 18px; color: var(--green); margin-bottom: .4em; }
.form-success p { margin: 0; }

/* Mietanfrage: Objektwahl und Verfügbarkeitskalender */
.booking { max-width: 900px; margin-top: 30px; display: flex; flex-direction: column; gap: 28px; }
.object-choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.object-choice legend { font-weight: 600; color: var(--heading); margin-bottom: 10px; padding: 0; }
.object-choice label { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--border); border-radius: 4px; padding: 14px 16px; cursor: pointer; background: #fff; }
.object-choice label:has(input:checked) { border-color: var(--green); background: var(--green-light); }
.object-choice input { margin-top: 5px; accent-color: var(--green); }
.object-choice span { display: flex; flex-direction: column; font-size: 13px; }
.object-choice strong { font-size: 16px; color: var(--heading); }
.availability { border: 1px solid var(--border); border-radius: 4px; padding: 20px; background: #fff; }
.availability__head h2 { font-size: 20px; margin-bottom: .2em; }
.availability__head p { font-size: 13px; }
.availability__cal { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 24px; align-items: start; margin-top: 10px; }
.availability__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; margin: 14px 0 0; }
.key { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: -8px; }
.key--free { background: #fff; border: 1px solid var(--border); }
.key--booked { background: #e8c9c4; }
.key--picked { background: var(--green); }
.mcal__title { font-weight: 600; color: var(--heading); text-align: center; margin-bottom: 8px; }
.mcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mcal__dow { font-size: 11px; text-align: center; color: #999; text-transform: uppercase; }
.mcal__day { aspect-ratio: 1; border: 1px solid var(--border); border-radius: 3px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; padding: 0; color: #333; }
.mcal__day:hover:not(:disabled) { border-color: var(--green); }
.mcal__day.is-booked { background: #e8c9c4; border-color: #e8c9c4; color: #8a4a40; text-decoration: line-through; cursor: not-allowed; }
.mcal__day.is-past { background: #f6f6f6; color: #c4c4c4; border-color: #f0f0f0; cursor: default; }
.mcal__day.is-picked { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.mcal__nav { align-self: center; width: 36px; height: 36px; border: 1px solid var(--border); background: #fff; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--green); }
.mcal__nav:disabled { opacity: .3; cursor: default; }
.booking__closed { background: var(--green-light); border-left: 4px solid var(--green); padding: 16px 20px; margin: 0; }
@media (max-width: 767px) {
  .object-choice { grid-template-columns: 1fr; }
  .availability { padding: 14px; }
  .availability__cal { grid-template-columns: auto 1fr auto; gap: 10px; }
  .availability__cal .mcal:nth-of-type(2) { display: none; }
}
