/*
 * ATARA – Ergänzungen zum Original-Theme
 * (Die Original-Dateien style.css, navigation.css, form.css, bx-slider.css und mobile.css
 * sind unverändert übernommen. Hier stehen nur Dinge, die früher Plugins erledigt haben:
 * Bilder-Slider, Lightbox, Anfrageformular, Cookie-Hinweis, Video.)
 */

body { overflow-x: hidden; }
header { position: relative; }
header li { list-style: none; }
#lang { z-index: 20; }
.lang-detail { cursor: pointer; }
#lang_sel_list a { display: block; }

/* ---------- Kacheln: ganze Kachel klickbar ---------- */
.item-link { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }
.item .text-hover { z-index: 2; }
.item .text-hover h3 p { margin: 0; }

/* ---------- Bilder-Slider (Nachbau des bxSliders) ---------- */
.bx-wrapper { position: relative; margin: 0; padding: 0; }
/* Die Bilder liegen in einer waagrecht scrollbaren Leiste (ohne riesige Grafik-Ebenen,
   daher in allen Browsern und auf allen Bildschirmgrößen stabil) */
.bx-viewport { position: relative; width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; height: auto !important; }
.bx-viewport::-webkit-scrollbar { display: none; }
.bxslider { display: flex; align-items: flex-start; gap: 4px; height: auto !important; }
.bxslider > div { flex: 0 0 calc((100% - 8px) / 3); max-width: 800px; scroll-snap-align: start; position: relative; list-style: none; }
.bxslider .container { height: auto !important; }
.bxslider .container img { display: block; width: 100%; height: auto; }
.bxslider .container a { cursor: zoom-in; display: block; }
.bx-controls-direction a { display: block; }
@media only screen and (max-width: 767px) {
  .bxslider { gap: 2px; }
  .bxslider > div { flex-basis: calc((100% - 2px) / 2); }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000002; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 48px; line-height: 1; cursor: pointer; padding: 10px 20px; font-family: 'source_sans_prolight', sans-serif; }
.lightbox button:hover { color: #876941; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; margin-top: -34px; }
.lb-next { right: 10px; top: 50%; margin-top: -34px; }

/* ---------- Anfrageformular (früher WPForms) ---------- */
.sono-request-button { margin-top: 20px; }
.anfrageform-wrap { max-height: calc(100vh - 140px); overflow-y: auto; box-sizing: border-box; }
.wpforms-field { margin: 0 0 18px; }
.wpforms-field-label { display: block; font-family: 'source_sans_probold'; margin-bottom: 4px; }
.wpforms-required-label { color: #876941; }
.wpforms-field-row { display: flex; gap: 12px; }
.wpforms-field-row-block { flex: 1; }
.wpforms-field-sublabel { display: block; font-size: 12px; color: #666; margin-top: 2px; }
.wpforms-form input[type=text], .wpforms-form input[type=email], .wpforms-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #e5e5e5; -webkit-appearance: none; border-radius: 0;
  font: 14px/24px 'source_sans_prolight', sans-serif; color: #000; padding: 6px 10px; background: #fff;
}
.wpforms-form input:focus, .wpforms-form textarea:focus { outline: none; border-color: #876941; }
.wpforms-form button[type=submit] {
  cursor: pointer; display: inline-block; white-space: nowrap; width: auto; border: 1px solid #876941; padding: 10px 20px;
  text-transform: uppercase; font: 14px/24px 'source_sans_prolight', sans-serif; background-color: #876941; color: #fff; -webkit-appearance: none; border-radius: 0;
}
.wpforms-form button[type=submit]:hover { color: #876941; background-color: #fff; }
.form-msg { padding: 12px 15px; margin-bottom: 15px; text-align: left; }
.form-msg.ok { background: #eef3ea; color: #3d5a2c; }
.form-msg.err { background: #f7e9e6; color: #8a2b1a; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Video (erst nach Klick laden, DSGVO) ---------- */
.video { position: relative; width: 100%; padding-top: 56.25%; background: #111; margin: 20px 0; }
.video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; cursor: pointer; background: #1a1a1a; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 14px/24px 'source_sans_prolight', sans-serif; letter-spacing: .06em; }
.video-play .play-icon { position: relative; width: 74px; height: 74px; border-radius: 50%; border: 1px solid rgba(255,255,255,.85); background: rgba(0,0,0,.25);
  margin-bottom: 8px; transition: background .25s, border-color .25s, transform .25s; }
.video-play .play-icon::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -13px 0 0 -8px; border-style: solid; border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff; }
.video-play .play-label { text-transform: uppercase; font-size: 13px; }
.video-play small { opacity: .75; font-size: 11px; letter-spacing: .03em; }
.video-play:hover .play-icon, .video-play:focus-visible .play-icon { background: #876941; border-color: #876941; transform: scale(1.05); }
.video .video-poster { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important; }
.video.has-poster .video-play { background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.55) 100%); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.video.has-poster .video-play small { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; }
.video.has-poster:hover .video-play { background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.3) 55%, rgba(0,0,0,.6) 100%); }

/* ---------- Cookie-Hinweis ---------- */
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 10000003; max-width: 760px; margin: 0 auto;
  background: #fff; box-shadow: 0 6px 30px rgba(0,0,0,.25); padding: 20px 24px; }
.cookie-banner[hidden] { display: none; }
.cookie-buttons { text-align: right; margin-top: 8px; }
.cookie-banner .sono-request-button { border: 1px solid #876941; font: 14px/24px 'source_sans_prolight', sans-serif; padding: 10px 20px; }
.cookie-banner .cookie-decline { background: #fff; color: #876941; }
.cookie-banner .cookie-decline:hover { background: #876941; color: #fff; }

/* ---------- Newsletter ---------- */
#mc_embed_signup input[required]:invalid:focus { border: 1px solid #876941 !important; }

/* ---------- Vorschau-Hinweis (nur für die Verwaltung) ---------- */
.preview-bar { position: relative; z-index: 10000004; background: #fbe7b5; color: #5a4300; text-align: center; padding: 8px; font-size: 14px; }
.preview-bar a { color: #5a4300; text-decoration: underline; }

/* ---------- Videos in der Bilderleiste ---------- */
.bxslider > .slide-video { align-self: stretch; background: #000; }
.bxslider .slide-video .container { background: #000; height: 100% !important; display: flex; align-items: center; justify-content: center; }
.bxslider .slide-video .container > * { width: 100%; }
.bxslider .slide-video video { display: block; width: 100%; height: 100%; max-height: 80vh; object-fit: contain; background: #000; }
.bxslider .slide-video .video { margin: 0; }

/* ---------- Halbfett statt Fett (Wunsch Kundin) ---------- */
@font-face { font-family: 'source_sans_prosemibold'; src: url('../fonts/SourceSans3-Semibold.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
strong, b { font-family: 'source_sans_prosemibold', 'source_sans_probold', sans-serif; }

/* ---------- Überschriften H1–H6 aus dem Text-Editor ---------- */
.rt-h { font-family: 'source_sans_prolight', sans-serif; color: #000; border: 0; background: none; display: block; width: auto;
  padding: 0; margin: 1.4em 0 .5em; cursor: auto; text-align: inherit; }
.rt-h:first-child { margin-top: 0; }
.rt-h:hover { background: none; }
.rt-h1 { font-size: 30px; line-height: 38px; }
.rt-h2 { font-size: 22px; line-height: 30px; text-transform: uppercase; letter-spacing: .04em; }
.rt-h3 { font-size: 17px; line-height: 26px; font-family: 'source_sans_prosemibold', sans-serif; letter-spacing: .02em; }
.rt-h4 { font-size: 14px; line-height: 24px; text-transform: uppercase; letter-spacing: .08em; color: #876941; font-family: 'source_sans_prosemibold', sans-serif; }
.rt-h5 { font-size: 14px; line-height: 22px; font-family: 'source_sans_prosemibold', sans-serif; }
.rt-h6 { font-size: 12px; line-height: 20px; text-transform: uppercase; letter-spacing: .1em; color: #666; font-family: 'source_sans_prosemibold', sans-serif; }
.rt-h strong { font-family: inherit; }
@media all and (max-width: 767px) {
  .rt-h1 { font-size: 24px; line-height: 32px; }
  .rt-h2 { font-size: 19px; line-height: 26px; }
}

/* ---------- Textausrichtung & Bilder im Fließtext (Editor) ---------- */
.content .text-left { text-align: left; }
.content .text-center { text-align: center; }
.content ul.text-center, .content ol.text-center { list-style-position: inside; padding-left: 0; }
.content img.rt-img { display: inline-block; vertical-align: top; width: auto; max-width: 100%; height: auto; margin: 10px 6px; }
.content img.rt-img.img-s { width: 25%; }
.content img.rt-img.img-m { width: 50%; }
.content img.rt-img.img-l { width: 100%; margin-left: 0; margin-right: 0; }
@media all and (max-width: 767px) {
  .content img.rt-img.img-s { width: 40%; }
  .content img.rt-img.img-m { width: 100%; margin-left: 0; margin-right: 0; }
}
