/*
Theme Name: Excello Divi Child
Template: Divi
Description: Child theme for excello.ch - local Manrope fonts + EN bottom bar
Version: 1.0.0
*/

/* ==== Custom CSS (ex-Customizer, verbatim - escaping-sicher in Datei) ==== */
/* Setzt die Hintergrundfarbe auf die ganze Seite */
html, body {
  background-color: #F7F4ED; /* gewünschte Farbe */
}


/* ============================================
   RESPONSIVER HEADER
   ============================================ */

/* Desktop-Menü rechtzeitig auf Burger umstellen */
@media (max-width: 1500px) {

  #top-menu-nav,
  #top-menu {
    display: none !important;
  }

  #et_mobile_nav_menu {
    display: block !important;
  }

  .mobile_menu_bar:before {
    color: #802130 !important;
  }

  #logo {
    max-width: 320px !important;
  }
}

/* Tablet Hochformat und kleiner */
@media (max-width: 980px) {
  #logo {
    max-width: 250px !important;
  }
}


/* Excello iOS Language Switch */

li.lang-item {
    margin: 0 !important;
    padding: 0 !important;
	  position: relative;
    top: -6px;
}

li.lang-item > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 35px;
    padding: 0 !important;

    background: rgba(128, 33, 48, 0.15);
    color: #802130 !important;

    font-size: 0 !important;
    font-weight: 700;
    line-height: 30px !important;
}

/* EN links */
li.lang-item-en > a::after {
    content: "EN";
    font-size: 12px;
}

/* DE rechts */
li.lang-item-de > a::after {
    content: "DE";
    font-size: 12px;
}

/* aktive Sprache */
li.lang-item.current-lang > a {
    background: #D8D2C8 !important;
    color: #7A1F2B !important;
}

/* inaktive Sprache */
li.lang-item:not(.current-lang) > a:hover {
    background: rgba(128, 33, 48, 0.5) !important;
}



/* Footer-Menü: vertikal statt horizontal */

/* Falls Divi mit Flex arbeitet */
.footer-nav .et_pb_menu__menu > nav > ul.et-menu {
  display: block !important;
}

/* Alle Einträge untereinander */
.footer-nav .et_pb_menu__menu > nav > ul.et-menu > li {
  display: block !important;
  float: none !important;
  margin: 0 0 4px 0;
}

/* Links dürfen die ganze Breite nutzen */
.footer-nav .et_pb_menu__menu > nav > ul.et-menu > li > a {
  display: block !important;
}


/* Submenü: Breite nach Text, nichts abschneiden */
#top-menu li ul.sub-menu,
.nav li ul {
  width: auto !important;
  min-width: 0 !important;
  overflow: visible !important;
  white-space: nowrap; /* Keine Zeilenumbrüche im Text */
}

/* Jedes Item nutzt die volle Breite des Submenüs */
#top-menu li ul.sub-menu li,
.nav li ul li {
  display: block;
  width: 100% !important;
}

/* Links im Submenü */
#top-menu li ul.sub-menu li a,
.nav li ul li a {
  display: block;
  width: 100% !important;
  padding: 8px 14px; /* bei Bedarf anpassen */
}



/* Header-Linie komplett entfernen */
#main-header,
#main-header.et-fixed-header {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Mobile-Flyout: keine obere Linie / kein Abstand */
.et_mobile_menu {
  border-top: none !important;
  margin-top: 0 !important;
  box-shadow: none !important;
}

/* Falls Divi ein Pseudo-Element als Linie nutzt */
#main-header::after {
  content: none !important;
  border: none !important;
}


/* Menülinks (Hauptmenü + Submenüs + Mobile) immer in Grossbuchstaben */
#top-menu > li > a,
#top-menu li li a,        /* Submenüs */
.et_mobile_menu a {
  text-transform: uppercase;
  letter-spacing: 0.07em; /* optional, bei Bedarf anpassen oder löschen */
}


/* Mehr horizontaler Abstand zwischen den Menüpunkten (Desktop) */
#top-menu > li {
  margin: 0 5px;   /* links/rechts Abstand, bei Bedarf 10–30px testen */
}


/* Abstand über dem Inhalt entfernen */
#page-container {
  padding-top: 0 !important;
}


/* ============================================
   FROSTED GLASS HEADER
   ============================================ */

/* HEADER als Glasplatte */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  background-color: rgba(247, 244, 237, 0.8) !important; /* #7b6c62 mit Alpha */
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(14px);
}


/* ============================================
   FRO
STED GLASS MENÜ
   ============================================ */

#top-menu li ul,
.nav li ul,
.et_mobile_menu {
  background: rgba(247, 244, 237, 0.8) !important;
  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;
  border: none !important;
  box-shadow: none !important;
}



/* Mobile: etwas mehr Luft nach unten, wenn nötig */
.et_mobile_menu {
  margin-top: 0 !important;
  padding-top: 8px;
  padding-bottom: 8px;
}


/* ============================================
   FLY-OUT MENÜ FROSTED
   ============================================ */

/* Flyout-/Submenü im Header 10px nach links schieben */
#top-menu li ul.sub-menu {
  left: -15px !important;   /* nach links, Richtung Bildschirmrand */
}



/* ================================
   HEADER NUR IM DIVI BUILDER ZÄHMEN
   ================================ */

/* Im Visual Builder: Header NICHT fixed + kein Blur,
   damit du an den Slider drankommst */
body.et-fb #main-header {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10 !important;
}

/* ============================================
   SLIDER AN DIE OBERKANTE SCHIEBEN
   ============================================ */

/* Erste Sektion (mit dem Slider) direkt unter den Header schieben */
.et-l--body .et_pb_section:first-of-type {
  margin-top: 0 !important;
}



/* ============================================
   FOOTER-MENÜ: SUBMENÜ-PFEIL KORRIGIEREN
   ============================================ */

/* 1. Alle Theme-Pfeile im Footer-Menü deaktivieren */
.footer-nav .et-menu > li.menu-item-has-children > a::before,
.footer-nav .et-menu > li.menu-item-has-children > a::after {
  content: none !important;
}

.footer-nav .et-menu > li.menu-item-has-children .et_mobile_menu_arrow {
  display: none !important;
}

/* 2. Link so formatieren, dass Text + Pfeil sauber nebeneinander stehen */
.footer-nav .et-menu > li.menu-item-has-children > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;     /* Abstand zwischen Text und Pfeil */
}

/* 3. Eigenen Pfeil anhängen (rechts vom Text) */
.footer-nav .et-menu > li.menu-item-has-children > a::after {
  content: "▾";   /* oder "▼" wenn du es fetter willst */
  display: inline-block;
  font-size: 0.85em;
}

/* =========================================
   DSM Image Carousel: fixe Bildfläche, egal welches Bildformat
   verhindert "Riesenabstände" beim ersten Laden
   ========================================= */

.dsm_image_carousel .swiper-wrapper{
  align-items: stretch;
}

.dsm_image_carousel .swiper-slide{
  display: flex;
}

/* Bildfläche fix auf 4:3 (passt praktisch zu 510x382) */
.dsm_image_carousel .swiper-slide > a,
.dsm_image_carousel .dsm_image_carousel_lightbox{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

/* Bild füllt die Fläche immer korrekt */
.dsm_image_carousel .swiper-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Anker-Ziele mit festem Abstand unter dem Header */
#aktuell,
#fertig {
  position: relative;
}

#aktuell::before,
#fertig::before {
  content: "";
  display: block;
  height: 50px;
  margin-top: -50px;
  visibility: hidden;
  pointer-events: none;
}



/* Swiper-Pfeile Divi Gallery Extended */

body .swiper-button-prev,
body .swiper-button-next {
  color: #666560 !important;
}

body .swiper-button-prev::after,
body .swiper-button-next::after {
  color: #666560 !important;
}

/* Sprach-Pillen im Mobile-Flyout nebeneinander (DE + EN), Abstand 5px */
.et_mobile_menu > li.lang-item {
  float: left;
  display: block;
}
.et_mobile_menu > li.lang-item-en {
  margin-left: 5px !important;
}
.et_mobile_menu > li.lang-item-de {
  margin-right: 0 !important;
}

/* Sprach-Pillen im Footer-Menü nebeneinander (DE + EN), Abstand 5px */
ul.dsm-menu > li.lang-item {
  display: block;
  float: left;
  width: auto;
}
ul.dsm-menu > li.lang-item-en {
  margin-left: 5px !important;
}
