/*
Theme Name: Kanaldeckel Chronik Child
Theme URI: https://kanaldeckel.wien
Description: Ein Hello Elementor Child-Theme für die Wiener Kanaldeckel-Chronik mit typografischer Gestaltung pro Jahrzehnt und einer Farbpalette inspiriert von Rost, Patina und Asphalt.
Author: Christian Chladek
Template: hello-elementor
Version: 1.2.5
*/
/* Grid-Layout für Kacheln */
.kachel-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, 1fr); /* Standard: ab 1201px */
}

/* 1024px bis 1200px: 4 Spalten */
@media (max-width: 1200px) {
  .kachel-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 881px bis 1023px: 3 Spalten */
@media (max-width: 1023px) {
  .kachel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 768px bis 880px: 2 Spalten */
@media (max-width: 880px) {
  .kachel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Bis 767px: 1 Spalte */
@media (max-width: 767px) {
  .kachel-grid {
    grid-template-columns: 1fr;
  }
}

.kachel-container {
  position: relative !important;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
}

/* Overlay – weich eingeblendet */
.kachel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--e-global-color-accent, rgba(0,0,0,0.5));
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 5;
  pointer-events: none;
}

.kachel-overlay .elementor-heading-title {
  color: white;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  margin: 0;
  text-align: center;
  font-weight: 700 !important;
  line-height: 1.3;
}

.kachel-container:hover .kachel-overlay {
  opacity: 1;
}

.kachel-container:hover .kachel-overlay .elementor-heading-title {
  opacity: 1;
}

/* Klickbare Fläche */
.kachel-link-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* temporär feste Größe, z. B. */
  height: 100%;
  z-index: 99999;
  display: block;
  text-indent: -9999px;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}



// Mobiles Menü anpassen
.mega-toggle-animated-inner, .mega-toggle-animated-inner:before, .mega-toggle-animated-inner:after {
	background-color: #fff !important;
}
.mega-toggle-block {
	margin-top: -70px !important;
}

.elementor-button-icon {
	fill: rgb(216, 160, 61);
}
.elementor-button:hover .elementor-button-icon {
	transition: fill 0.3s ease;
	fill: rgb(255, 255, 255);
}
.elementor-button-icon svg {
		width: 32px;
    height: 32px;

}



.zweispaltig-quadrat {
  display: flex;
  flex-wrap: nowrap;
  min-height: 100vh;
}

.zweispaltig-quadrat > .elementor-container:nth-child(1) {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
}

.zweispaltig-quadrat > .elementor-container:nth-child(2) {
  flex-shrink: 0;
  height: 100vh;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zweispaltig-quadrat > .elementor-container:nth-child(2) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .zweispaltig-quadrat {
    flex-direction: column;
  }

  .zweispaltig-quadrat > .elementor-container:nth-child(2) {
    height: auto;
    max-height: 50vh;
    width: 100%;
    aspect-ratio: auto;
  }
}



.elementor-icon-list-text a {
  display: inline;
  white-space: nowrap;
}

.invert {
    filter: invert(1);
}

.square-img img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/*
.jahrzehnt-jahre {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-bottom: 1em;
}

.jahr-link a {
  text-decoration: none;
  background: #eee;
  padding: 0.3em 0.6em;
  border-radius: 3px;
  transition: 0.2s;
}

.jahr-link a:hover {
  background: #ccc;
}

.jahr-ohne-link {
  color: #999;
  padding: 0.3em 0.6em;
}
*/

.kanaldeckel-mega-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2em;
}

.kanaldeckel-mega-menu li {
    position: relative;
}

.kanaldeckel-mega-menu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 1em;
    z-index: 100;
    min-width: 200px;
    flex-direction: column;
}

.kanaldeckel-mega-menu li:hover > .submenu {
    display: flex;
}

.kanaldeckel-mega-menu a {
    text-decoration: none;
    color: #333;
}

.kanaldeckel-mega-menu .menu-parent > span {
    cursor: pointer;
    font-weight: bold;
}

