/*
 Theme Name: Hello Elementor Child
 Theme URI: https://example.com/hello-elementor-child
 Description: Child theme for Hello Elementor. Minimal setup with proper style enqueue and SVG upload support.
 Author: Rezo Galstyan
 Author URI: https://example.com
 Template: hello-elementor
 Version: 1.0.1
 Text Domain: hello-elementor-child
*/


/* ==========================================
   Close Icon (X) oben rechts in .details-area
========================================== */

.details-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;

  background: #fff;
  color: #0099CC;
  font-size: 1.4rem;
  line-height: 2rem;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  user-select: none;
  z-index: 9999;

  transition: background 0.2s ease, transform 0.2s ease;
}

.details-close-btn:hover {
  background: var(--e-global-color-secondary);
  color: #fff;
  transform: scale(1.1);
}


/* ============================================================
   LAYOUT WRAPPER
   (Vollbild-Canvas, horizontaler Flex-Container)
============================================================ */

.layout-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  gap: 0;

  overflow-x: visible;  /* FIX → Tooltips sichtbar */
  overflow-y: hidden;   /* vertikal weiterhin blockiert */

  z-index: 1;
  background: #fff;
  width: 100%;
  height: 100vh;
}


/* =======================
   Tourenansicht - Karte öffnen/schließen
   (Map von rechts)
======================= */

/* MAP – von rechts einfahren */
.map-area {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 50vw;              /* Standardbreite */
  height: 100vh;
  box-shadow: -2rem 0 4rem rgba(0, 0, 0, 0.1);
  transform: translateX(100%);   /* Start: rechts draußen */
  transition: transform 0.5s ease, width 0.5s ease;
  z-index: 2000;
}

.map-area.active {
  transform: translateX(0);
}

/* Vollbild-Karte */
.map-area.is-full {
  width: 100vw;
}

/* Close-Icon */
.map-area .close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s ease;
}

.map-area .close:hover {
  color: var(--e-global-color-secondary);
}

/* Button "Karte vergrößern" */
.map-area .open {
  position: relative;
  display: inline-block;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.map-area .open:hover {
  border-color: rgba(0,0,0,0.2);
}

/* WICHTIG:
   .main wird NICHT mehr per transform verschoben.
   Map liegt als Overlay rechts über dem Kalender,
   aber der Kalender selbst (inkl. Navigation) bleibt
   in seiner Position → horizontal scrollt nur .main.
*/


/* =======================
   Tourenansicht – Sidebar & Details
======================= */

:root {
  --panel-width: 25rem;          /* Breite der Sidebar */
  --sidebar-collapsed-width: 5rem;
}

/* === SIDEBAR === */
.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  width: var(--panel-width);
  max-width: var(--panel-width);
  overflow: visible !important;
  z-index: 1001;
  background: #f7f7f7;
  border-right: 1px solid rgba(0,0,0,0.1);
  box-shadow: 2px 0 8px rgba(0,0,0,0.05);
  transition: width 0.4s ease, max-width 0.4s ease;
}

/* FIX: Sidebar über Main legen (wegen transform-Stapeln) */
.sidebar {
  position: relative; /* sticky bleibt aktiv */
  z-index: 10;        /* Sidebar + Tooltips liegen über .main */
}


/* Innerer Inhalt der Sidebar scrollt vertikal */
.sidebar .e-con-inner {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Sidebar collapsed */
body.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-width);
  min-width: var(--sidebar-collapsed-width);
  max-width: var(--sidebar-collapsed-width);
  background-color: #ececec;
}

.sidebar .close {
  position: relative;
  z-index: 2;
}

body.sidebar-collapsed .sidebar .close {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Nur Icons sichtbar, Text & Bilder ausblenden */
body.sidebar-collapsed .sidebar span.elementor-icon-list-text,
body.sidebar-collapsed .sidebar img {
  display: none;
}

/* ICON "SIDEBAR ÖFFNEN" (außerhalb) */
.open-sidebar {
  display: none;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10000;
}

body.sidebar-collapsed .open-sidebar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.open-sidebar:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* === MAIN === */
.main {
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--e-global-color-Accent, #858585) rgba(0,0,0,0.06);
  scrollbar-width: thin;
}
.main {
  /* FIX */
  position: relative;
  z-index: 0;
}


/* horizontale Scrollbar für MAIN sichtbar */
.main::-webkit-scrollbar {
  height: 10px;
}

.main::-webkit-scrollbar-thumb {
  background: var(--e-global-color-Accent, #858585);
  border-radius: 8px;
}

/* Details-Paneel von links */
.details-area {
  position: fixed;
  top: 0;
  left: 0;
  max-width: 20rem;
  height: 100vh;
  background: #f7f7f7;
  border-right: 1px solid rgba(0,0,0,0.1);
  box-shadow: 4px 0 12px rgba(0,0,0,0.08);
  overflow-y: auto;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.3s ease;
  z-index: 2500;
  padding-top: 1rem;
}

.details-area.active {
  transform: translateX(0);
  opacity: 1;
}


/* =======================
   Navigation Buttons
======================= */

.btn-nav-details .elementor-button,
.btn-nav-filter .elementor-button,
.btn-nav-team .elementor-button,
.btn-nav-prev .elementor-button,
.btn-nav-today .elementor-button,
.btn-nav-next .elementor-button,
.btn-nav-map .elementor-button,
.btn-nav-newtour .elementor-button,
.btn-nav-grid .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;  font-weight: 400;
  line-height: 1;
  background-color: var(--e-global-color-5508462);
  border-radius: 8px !important;
  padding: 0.5rem 1rem !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Hover-Zustand */
.btn-nav-details .elementor-button:hover,
.btn-nav-filter .elementor-button:hover,
.btn-nav-team .elementor-button:hover,
.btn-nav-prev .elementor-button:hover,
.btn-nav-today .elementor-button:hover,
.btn-nav-next .elementor-button:hover,
.btn-nav-map .elementor-button:hover,
.btn-nav-newtour .elementor-button:hover,
.btn-nav-grid .elementor-button:hover {
  background-color: var(--e-global-color-primary);
}

/* Aktiver Zustand (z. B. Karte offen, Today aktiv) */
.btn-nav-map.active .elementor-button,
.btn-nav-today.active .elementor-button {
  background-color: #ddd !important;
  border-color: #aaa !important;
  color: #000 !important;
}

/* Pfeil-Buttons etwas schmaler */
.btn-nav-prev .elementor-button,
.btn-nav-next .elementor-button {
  padding: 0.5rem 0.75rem !important;
  font-size: 1rem !important;
}

/* Reset für Elementor-Spacing im Header */
.nav-header .elementor-widget-button {
  margin: 0 !important;
}

.nav-header .elementor-element {
  --widgets-spacing: 0 0 !important;
  margin: 0 !important;
}


/* ===========================================
   Global Scrollbar – BSD Style (Child Theme)
=========================================== */

html {
  scrollbar-width: thin;
  scrollbar-color: #009dd3 transparent;
  scroll-behavior: smooth;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #009dd3;
  border-radius: 8px;
  visibility: hidden; /* global hidden */
}

/* Scrollbar erscheint nur, wenn der Nutzer interagiert (hover auf html) */
html:hover::-webkit-scrollbar-thumb {
  visibility: visible;
}

/* Hover-Animation */
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 157, 211, 0.85);
}

/*Page Template Canvas*/
.page-template-elementor_canvas .elementor-icon-list--layout-traditional a[title]:hover::before {
  display: none;
}


/* =====================================================================
   GLOBALER TOOLTIP-STIL (Bestandscode)
   ===================================================================== */

.page-template-elementor_canvas .elementor-icon-list-item a[title]:hover::before {
  background-color: var(--e-global-color-secondary);
  border-radius: 12px;
  color: var(--e-global-color-1d3ea40);
  content: attr(title);
  font-size: .8rem;
  line-height: 1;
  position: absolute;
  top: -50%;
  left: -1%;
  width: 10rem;
  padding: 5px;
  text-align: center;
  transform: translate(-1%, -50%);
  z-index: 999;
}

/* Für sanfte Farbwechsel */
.page-template-elementor_canvas .elementor-icon-list-item a[title]::before {
  transition: background-color .25s ease, color .25s ease;
}


/* =====================================================================
   FARBCASE 1: order-non-confirmed
   -> Farbe: var(--e-global-color-82ff4b7)
   ===================================================================== */

#order-non-confirmed .elementor-icon-list-item:first-child svg,
#order-non-confirmed .elementor-icon-list-item:first-child i,
#order-non-confirmed .elementor-icon-list-item:first-child i svg {
  fill: var(--e-global-color-82ff4b7) !important;
  color: var(--e-global-color-82ff4b7) !important;
}

#order-non-confirmed .elementor-icon-list-item:first-child a[title]::before,
#order-non-confirmed .elementor-icon-list-item:first-child a[title]:hover::before {
  background-color: var(--e-global-color-82ff4b7) !important;
  color: #ffffff !important;
}


/* =====================================================================
   FARBCASE 2: order-on-hold
   -> Farbe: var(--e-global-color-fd93245)
   ===================================================================== */

#order-on-hold .elementor-icon-list-item:first-child svg,
#order-on-hold .elementor-icon-list-item:first-child i,
#order-on-hold .elementor-icon-list-item:first-child i svg {
  fill: var(--e-global-color-fd93245) !important;
  color: var(--e-global-color-fd93245) !important;
}

#order-on-hold .elementor-icon-list-item:first-child a[title]::before,
#order-on-hold .elementor-icon-list-item:first-child a[title]:hover::before {
  background-color: var(--e-global-color-fd93245) !important;
  color: #ffffff !important;
}


/* =====================================================================
   FARBCASE 3: order-under-plan
   -> Farbe: var(--e-global-color-09a8c2f)
   ===================================================================== */

#order-under-plan .elementor-icon-list-item:first-child svg,
#order-under-plan .elementor-icon-list-item:first-child i,
#order-under-plan .elementor-icon-list-item:first-child i svg {
  fill: var(--e-global-color-09a8c2f) !important;
  color: var(--e-global-color-09a8c2f) !important;
}

#order-under-plan .elementor-icon-list-item:first-child a[title]::before,
#order-under-plan .elementor-icon-list-item:first-child a[title]:hover::before {
  background-color: var(--e-global-color-09a8c2f) !important;
  color: #ffffff !important;
}


/* =====================================================================
   FARBCASE 4: no-employe
   -> Farbe: var(--e-global-color-746a1b4)
   ===================================================================== */

#no-employe .elementor-icon-list-item:first-child svg,
#no-employe .elementor-icon-list-item:first-child i,
#no-employe .elementor-icon-list-item:first-child i svg {
  fill: var(--e-global-color-746a1b4) !important;
  color: var(--e-global-color-746a1b4) !important;
}

#no-employe .elementor-icon-list-item:first-child a[title]::before,
#no-employe .elementor-icon-list-item:first-child a[title]:hover::before {
  background-color: var(--e-global-color-746a1b4) !important;
  color: #ffffff !important;
}


/* =====================================================================
   FARBCASE 5: changes-not-confirmed
   -> Farbe: var(--e-global-color-c17c997)
   ===================================================================== */

#changes-not-confirmed .elementor-icon-list-item:first-child svg,
#changes-not-confirmed .elementor-icon-list-item:first-child i,
#changes-not-confirmed .elementor-icon-list-item:first-child i svg {
  fill: var(--e-global-color-c17c997) !important;
  color: var(--e-global-color-c17c997) !important;
}

#changes-not-confirmed .elementor-icon-list-item:first-child a[title]::before,
#changes-not-confirmed .elementor-icon-list-item:first-child a[title]:hover::before {
  background-color: var(--e-global-color-c17c997) !important;
  color: #ffffff !important;
}


/* =====================================================================
   FARBCASE 6: email-sent
   -> Farbe: var(--e-global-color-a8ddcc1)
   ===================================================================== */

#email-sent .elementor-icon-list-item:first-child svg,
#email-sent .elementor-icon-list-item:first-child i,
#email-sent .elementor-icon-list-item:first-child i svg {
  fill: var(--e-global-color-a8ddcc1) !important;
  color: var(--e-global-color-a8ddcc1) !important;
}

#email-sent .elementor-icon-list-item:first-child a[title]::before,
#email-sent .elementor-icon-list-item:first-child a[title]:hover::before {
  background-color: var(--e-global-color-a8ddcc1) !important;
  color: #ffffff !important;
}


/*=== Tooltip horizontal fuer Submenu neben Nutzer ===*/
.user-sub-menu .page-template-elementor_canvas .elementor-icon-list-item a[title]:hover::before {
  background-color: #fff;
  border-radius: 12px;
  color: var(--e-global-color-1d3ea40);
  content: attr(title);
  font-size: .8rem;
  line-height: 1;
  position: absolute;
  top: -50%;
  left: -1%;
  width: 10rem;
  padding: 5px;
  text-align: center;
  transform: translate(-1%, -50%);
  z-index: 999;
}



/*=== Tooltip fuer horizontal ausgerichtete Icons ===*/
.page-template-elementor_canvas .elementor-icon-list-item a[title]:hover::before {
  background-color: var(--e-global-color-secondary);
  border-radius: 12px;
  color: var(--e-global-color-1d3ea40);
  content: attr(title);
  font-size: .8rem;
  line-height: 1;
  position: absolute;
  top: -50%;
  left: -1%;
  width: 10rem;
  padding: 5px;
  text-align: center;
  transform: translate(-1%, -50%);
  z-index: 999;
}


/* Tooltip mit sanftem Slide-In bei Hover */
.page-template-elementor_canvas .details-area .elementor-icon-list--layout-traditional a[title],
.page-template-elementor_canvas .elementor-icon-list--layout-traditional a[title] {
  position: relative;
}

.page-template-elementor_canvas .details-area .elementor-icon-list--layout-traditional a[title]::after {
  background-color: var(--e-global-color-text);
}

.page-template-elementor_canvas .elementor-icon-list--layout-traditional a[title]::after {
  content: attr(title);
  position: absolute;
  top: 0;
  left: 1rem;
  width: 12rem;
  padding: 5px;
  border-radius: 12px;
  background-color: var(--e-global-color-secondary);
  color: var(--e-global-color-1d3ea40);
  font-family: "Ubuntu", Sans-serif;
  font-size: .8rem;
  line-height: .8rem;
  text-align: center;
  opacity: 0;
  transform: translateX(-1rem);
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.page-template-elementor_canvas .elementor-icon-list--layout-traditional a[title]:hover::after {
  opacity: 1;
  transform: translateX(0);
}


/* Button */
.bsd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  font-size: .8rem;
  font-weight: 700 !important;
  border-radius: 0 12px 12px 0;
  background: var(--e-global-color-primary) !important;
  color: #fff !important;
  height: 3rem;
  line-height: 3rem;
  transition: background 0.75s ease;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: middle;
  text-align: center;
}

.bsd-btn:hover {
  background: var(--e-global-color-secondary) !important;
}

@media (max-width: 600px) {
  .bsd-searchbox {
    flex-direction: column;
    max-width: 100%;
  }

  .bsd-input-wrapper {
    width: 100%;
    border-bottom: 1px solid #ededed;
    border-radius: 12px 12px 0 0;
  }

  .bsd-btn {
    border-radius: 0 0 12px 12px;
    width: 100%;
  }
}


/*Barrierefreiheit_Accessibility: Screenreader-only Text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
	
@media all and (min-width: 1024px) {
  .a11y-toolbar.rtl.default,
  .a11y-toolbar.ltr.reversed {
    top: auto;
    bottom: 10rem;
  }
}

@media all and (max-width: 1023px) {
  .a11y-toolbar.rtl.default,
  .a11y-toolbar.ltr.reversed {
    top: 67vh;
  }
}

/* ===========================================================
   BSD – Accessibility Font Scaling (Fixed + Relative Mix)
=========================================================== */

:root {
  --bsd-fontscale: 1;
}

/* Aktiv bei Schrift-Vergrößern */
.fontsize {
  --bsd-fontscale: 1.2;
}

/* Fließtexte, Listen, Navigation etc. */
.fontsize p,
.fontsize div,
.fontsize li,
.fontsize strong,
.fontsize em,
.fontsize button,
.fontsize input,
.fontsize select,
.fontsize textarea,
.fontsize label,
.fontsize legend,
.fontsize code,
.fontsize pre,
.fontsize nav,
.fontsize a {
  font-size: calc(1rem * var(--bsd-fontscale)) !important;
  line-height: 1.6 !important;
  transition: font-size 0.25s ease, line-height 0.25s ease;
}

/* Headlines */
.fontsize h1,
.fontsize .elementor-headline,
.fontsize .elementor-heading-title,
.fontsize h1.elementor-heading-title {
  font-size: 2.25rem !important;
  line-height: 1.3 !important;
}

.fontsize h2,
.fontsize .elementor-kit-6 h3,
.fontsize .elementor-widget-heading,
.fontsize .elementor-heading-title,
.fontsize .elementor-heading-title span {
  font-size: 1.75rem !important;
  line-height: 1.2 !important;
}

.fontsize h3 {
  font-size: 1.25rem !important;
  line-height: 1.2 !important;
}

.fontsize h4,
.fontsize h5,
.fontsize h6 {
  font-size: 1.15rem !important;
  line-height: 1.4 !important;
}

/* Icon Boxes */
.fontsize .elementor-icon-box-title,
.fontsize .elementor-icon-box-title a {
  font-size: 1.25rem !important;
  line-height: 1.5 !important;
}

.fontsize .elementor-icon-box-description {
  font-size: 1rem !important;
}

.fontsize .elementor-counter-number-wrapper,
.fontsize .elementor-counter-number {
  font-size: 3rem !important;
}

.fontsize .top-bar-footer .elementor-icon,
.fontsize .top-bar-footer .elementor-icon svg {
  width: 5rem !important;
  height: 5rem !important;
}


/* Button Hover Effekt Slide-In Background */

.elementor-button,
a.bsd-btn {
  position: relative;
  overflow: hidden;
  background: var(--e-global-color-primary, #111);
  color: var(--e-global-color-text, #fff);
  transition: color 0.4s ease, background 0.75s ease;
  z-index: 0;
  display: inline-block;
  text-decoration: none;
}

.elementor-button::before,
a.bsd-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--e-global-color-secondary, #fff);
  transform: translateX(-100%);
  transition: transform 0.75s ease;
  z-index: -1;
}

.elementor-button:hover::before,
a.bsd-btn:hover::before {
  transform: translateX(0);
}

.elementor-button:hover,
a.bsd-btn:hover {
  color: var(--e-global-color-primary, #111);
}

/*Elementor Button Information*/
.elementor-button-info .elementor-button {
  background-color: var(--e-global-color-5508462) !important;
}
	
.elementor-button-info a:hover {
  background-color: var(--e-global-color-primary) !important; 
}

/* ============================================================
   Sidebar Tooltip (collapsed) – JS-gesteuert
============================================================ */

.bsd-sidebar-tooltip {
  position: fixed;
  z-index: 5000;
  max-width: 14rem;
  padding: 0.4rem 0.7rem;
  border-radius: 12px;
  background-color: var(--e-global-color-secondary);
  color: var(--e-global-color-1d3ea40);
  font-family: "Ubuntu", Sans-serif;
  font-size: .8rem;
  line-height: 1.2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  pointer-events: none;
  white-space: normal;
}

/* CSS-::after-Tooltip im collapsed-Mode unterdrücken,
   damit wir nicht 2 Tooltips gleichzeitig haben */
body.sidebar-collapsed .sidebar .elementor-icon-list--layout-traditional a[title]::after {
  display: none;
}

