/*
 * Standalone CSS for elos-villarustica.de
 * Replaces Weebly CDN CSS dependencies (sites.css, fancybox.css, social-icons.css)
 * Works together with main_style.css (Weebly theme CSS)
 */

/* =========================================
   BASE RESET & SETUP (replaces sites.css)
   ========================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* =========================================
   WEEBLY COMPATIBILITY CLASSES
   Ensures existing HTML classes still work
   ========================================= */

/* Sections */
.wsite-section-wrap {
  width: 100%;
}

.wsite-section {
  width: 100%;
  position: relative;
}

.wsite-section-content {
  width: 100%;
}

.wsite-section-elements {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.6em;
}

.wsite-header-section {
  position: relative;
  height: auto !important;
  min-height: 400px;
}

#banner {
  height: auto !important;
}

#banner-container {
  display: block;
  padding: 2.5em 1.6em;
}

/* Content area */
#wsite-content {
  width: 100%;
}

/* Multi-column layout */
.wsite-multicol {
  width: 100%;
}

.wsite-multicol-table-wrap {
  width: 100%;
}

.wsite-multicol-table {
  width: 100%;
  border-collapse: collapse;
}

.wsite-multicol-col {
  vertical-align: top;
}

/* Images */
.wsite-image {
  display: block;
}

.wsite-image img {
  display: block;
  margin: 0 auto;
}

.wsite-image-border-none img {
  border: none;
}

.wsite-image-border-thin img {
  border: 1px solid #d0d0d0;
}

.wsite-image-border-medium img {
  border: 3px solid #d0d0d0;
}

.wsite-image-border-thick img {
  border: 5px solid #d0d0d0;
}

.wsite-caption {
  text-align: center;
  font-size: 0.9em;
  color: #8e8e8e;
  margin-top: 5px;
}

/* Spacer */
.wsite-spacer {
  clear: both;
}

/* Content titles */
.wsite-content-title {
  margin-bottom: 0.5em;
}

/* =========================================
   NAVIGATION DROPDOWN (replaces Weebly JS)
   ========================================= */

/* Ensure parent containers do not clip dropdown menus */
#wrapper, .bg-wrapper, .header-wrap {
  overflow: visible !important;
  position: relative;
}

#navigation {
  overflow: visible !important;
  position: relative !important;
  z-index: 99999 !important;
}

/* Desktop dropdown menus */
#navigation .wsite-menu-item-wrap {
  position: relative;
}

#navigation .wsite-menu-wrap {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100000 !important;
  min-width: 240px;
  background: #f6f6f6;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border-radius: 0 0 4px 4px;
}

#navigation .wsite-menu-item-wrap:hover > .wsite-menu-wrap {
  display: block !important;
}

#navigation .wsite-menu {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

#navigation .wsite-menu li {
  display: block;
  margin: 0;
  position: relative;
}

#navigation .wsite-menu li a {
  display: block;
  padding: 8px 14px;
  color: #484848;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

#navigation .wsite-menu li a:hover {
  background: #e8e8e8;
  color: #dea227;
}

/* Sub-sub menus (3rd level) */
#navigation .wsite-menu .wsite-menu-subitem-wrap > .wsite-menu-wrap {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
}

#navigation .wsite-menu .wsite-menu-subitem-wrap:hover > .wsite-menu-wrap {
  display: block !important;
}

.wsite-menu-title {
  /* inline display for menu titles */
}

.wsite-menu-arrow {
  font-size: 0;
  margin-left: 10px;
}

.wsite-menu-arrow::before {
  display: inline-block;
  content: '›';
  vertical-align: bottom;
  font-size: 20px;
}

/* =========================================
   SLIDESHOW (replaces Weebly slideshow)
   ========================================= */

.wSlideshow {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.wSlideshow .wSlideshow-images {
  position: relative;
  width: 100%;
}

.wSlideshow .wSlideshow-images img {
  width: 100%;
  display: block;
}

.wSlideshow-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.wSlideshow-controls button {
  pointer-events: all;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
}

.wSlideshow-controls button:hover {
  background: rgba(0,0,0,0.7);
}

/* =========================================
   LIGHTBOX (replaces Weebly Fancybox)
   ========================================= */

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  border-radius: 4px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 36px;
  cursor: pointer;
  z-index: 10001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  border: none;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(0,0,0,0.8);
}

/* =========================================
   IMAGE GALLERY (replaces gallery CSS)
   ========================================= */

.imageGallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.imageGallery > div {
  overflow: hidden;
}

.galleryImageHolder {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.galleryInnerImageHolder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.galleryImage {
  transition: transform 0.3s ease;
}

.galleryImageHolder:hover .galleryImage {
  transform: scale(1.05);
}

.galleryCaptionHolder {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.galleryImageHolder:hover .galleryCaptionHolder {
  opacity: 1;
}

.galleryCaptionInnerText {
  font-size: 13px;
  text-align: center;
}

/* =========================================
   BUTTONS (ensure they work without JS)
   ========================================= */

.wsite-button {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 3px;
}

.wsite-button:hover {
  opacity: 0.9;
}

/* =========================================
   FORMS (basic form styling)
   ========================================= */

.wsite-form-container {
  margin-top: 0;
}

.wsite-form-field {
  margin: 5px 0;
}

.wsite-form-label {
  display: block;
  margin-bottom: 4px;
  font-weight: normal;
}

.wsite-form-input,
.wsite-input {
  width: 100%;
  max-width: 370px;
  padding: 10px;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.wsite-form-input:focus,
.wsite-input:focus {
  outline: none;
  border-color: #dea227;
}

textarea.wsite-form-input,
textarea.wsite-input {
  resize: vertical;
}

.wsite-form-sublabel {
  font-size: 11px;
  color: #999;
  display: block;
  margin-top: 2px;
}

.form-required {
  color: #c00;
}

.wsite-form-instructions {
  font-size: 12px;
  color: #999;
}

.wsite-name-field {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wsite-form-input-container {
  flex: 1;
  min-width: 150px;
}

/* =========================================
   HORIZONTAL RULES
   ========================================= */

hr.styled-hr {
  border: none;
  height: 1px;
  background-color: #d0d0d0;
  margin: 0;
}

/* =========================================
   COLORED BOXES (platform elements)
   ========================================= */

.content-color-box-wrapper {
  border-radius: 0;
}

.colored-box-content {
  clear: both;
  width: 100%;
}

/* =========================================
   MOBILE NAVIGATION
   ========================================= */

/* Open btn for hamburger */
.nav-trigger .open-btn {
  cursor: pointer;
}

/* Mobile menu - show/hide on click via JS */
body.menu-open .navmobile-wrapper {
  opacity: 1;
  transition: opacity 0s 0s linear;
}

body.menu-open #wrapper {
  left: 275px;
}

/* Mobile menu links */
.navmobile-wrapper .wsite-menu-default a,
.navmobile-wrapper .wsite-menu a {
  display: block;
  padding: 10px;
  color: inherit;
  text-decoration: none;
}

.navmobile-wrapper .wsite-menu-default a:hover,
.navmobile-wrapper .wsite-menu a:hover {
  background: #f6f6f6;
  color: #dea227;
}

/* Mobile submenu toggle */
.navmobile-wrapper .wsite-menu-wrap {
  display: none;
  padding-left: 15px;
}

.navmobile-wrapper .wsite-menu-wrap.mobile-open {
  display: block !important;
}

/* =========================================
   MAP (Google Maps embed)
   ========================================= */

.wsite-map {
  width: 100%;
  margin: 20px 0;
}

.wsite-map iframe {
  width: 100%;
  border: none;
}

/* =========================================
   UTILITY
   ========================================= */

.clear-both {
  clear: both;
}

/* Image float push */
.imgPusher {
  display: block;
}

/* Ensure inline styles on font tags still apply */
font {
  /* font tags are used throughout for sizing/coloring */
}

/* Fix for lightbox links */
a[rel^="lightbox"] {
  cursor: pointer;
}

a[rel^="lightbox"] img {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

a[rel^="lightbox"]:hover img {
  opacity: 0.9;
}

/* =========================================
   PAGE SPECIFIC FIXES
   ========================================= */

/* Datenschutzerklärung - text should be black */
body.wsite-page-datenschutzerklaumlrung #wsite-content,
body.wsite-page-datenschutzerklaumlrung #wsite-content div.paragraph,
body.wsite-page-datenschutzerklaumlrung #wsite-content p,
body.wsite-page-datenschutzerklaumlrung #wsite-content h2,
body.wsite-page-datenschutzerklaumlrung #wsite-content font,
body.wsite-page-datenschutzerklaumlrung #wsite-content strong,
body.wsite-page-datenschutzerklaumlrung #wsite-content u,
body.wsite-page-datenschutzerklaumlrung #wsite-content span,
body.wsite-page-datenschutzerklaumlrung #wsite-content a {
  color: #000000 !important;
}

@media print {
  #navigation,
  .nav-trigger,
  .navmobile-wrapper,
  .wsite-button {
    display: none !important;
  }
  
  body {
    background: white !important;
  }
  
  .body-wrap {
    max-width: 100% !important;
    box-shadow: none !important;
  }
}

