/* European Sporthorses: additions to the original styles in style.css.
   Replaces inline styles and the CSS of the removed plugins (Mediabox, Formcheck). */

[x-cloak] { display: none !important; }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Main menu: active item looks like before (was a <span>) */
.mainnav a.active { color: #222; border-top: 2px solid #4d7098; padding-top: 8px; }

/* Mobile menu (was jQuery meanMenu) */
.mean-bar { display: none; }
.mean-container .mean-bar { display: block; }
.mean-container a.meanmenu-reveal { right: 0; left: auto; }
.mean-container a.meanmenu-reveal.meanclose { text-indent: 0; font-size: 18px; text-align: center; }
.mean-container a.meanmenu-reveal b { font-weight: 700; }

/* Former inline styles */
.footer-line { text-align: center; }
.clearfix, .ce_break { clear: both; }
.mt-40 { margin-top: 40px; }
.mt-30 { margin-top: 30px; }
.mt-n10 { margin-top: -10px; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.teaserbox .image_container img { width: 100%; height: auto; aspect-ratio: 740 / 560; object-fit: cover; }

/* Contrast fixes (Lighthouse / WCAG AA) */
.newscaption .more a { color: #0f2b43; }
#main .checkbox_container a, #main .ce_text.grid5 a { color: #9ed1ee; }
@media (max-width: 768px) {
  .horsedetail .beschreibung, .horsedetail .beschreibung p { color: #333; }
  .horseheader h1 span { color: #4d7098; }
  .sendinquiry.button, .morevideos { color: #0f2b43; }
}

/* Photo gallery and popup (was Mediabox) */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.82); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.lb__box { position: relative; background: #fff; padding: 10px; max-width: min(1100px, 100%); max-height: 100%; overflow: auto; }
.lb__box img { display: block; max-width: 100%; max-height: calc(100vh - 100px); width: auto; height: auto; margin: 0 auto; }
.lb__box--inline { width: 600px; padding: 20px 24px; }
.lb__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; background: rgba(255, 255, 255, 0.85); color: #0f2b43; font-size: 34px; line-height: 1; cursor: pointer; }
.lb__prev { left: 10px; }
.lb__next { right: 10px; }
.lb__close { position: absolute; top: 8px; right: 12px; border: 0; background: none; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }
.requestform.is-open { display: block; }
.lb__box--inline, .lb__box--inline h3, .lb__box--inline label, .lb__box--inline p { color: #333; }
.lb__box--inline label { width: 100px; float: left; clear: both; margin-top: 4px; font-size: 14px; }
.lb__box--inline a { color: #4d7098; }
.lb__box--inline .submit { color: #fff; background: #4d7098; border: 0; padding: 6px 16px; cursor: pointer; }
.lb__box--inline .submit:hover { background: #0f2b43; }

/* Inquiry and contact form */
.requestform h3 { margin-top: 0; }
.requestform table, .contactform table { width: 100%; }
.requestform input.text, .requestform textarea, .contactform input.text, .contactform textarea { width: 100%; box-sizing: border-box; }
.form-note { font-size: 13px; color: #555; }
.form-thanks { padding: 10px 0; }

/* YouTube placeholder: player loads only after a click */
.yt { position: relative; width: 100%; max-width: 460px; aspect-ratio: 460 / 289; background: #0f2b43; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__start { position: absolute; inset: 0; width: 100%; border: 0; background: #0f2b43; color: #fff; cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.yt__start small { font-size: 12px; opacity: 0.7; }
.yt__play { width: 0; height: 0; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; margin-bottom: 6px; }
.yt__start:hover { background: #4d7098; }
