/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/


.fusion-blog-layout-grid .post .fusion-content-sep{
    display: none !important;
}

.fusion-flip-box {
  min-height: 300px; /* oder max-height / height */
}


/* Hero ohne LayerSlider (24.10.2026): Bild sofort mit dem HTML, Seitenverhältnis wie der frühere Slider (1280:700) */
.stb-hero .fusion-layout-column,
.stb-hero .fusion-column-wrapper,
.stb-hero .fusion-imageframe { margin: 0 !important; padding: 0 !important; display: block !important; width: 100% !important; line-height: 0; }
.stb-hero .fusion-imageframe img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 700; object-fit: cover; object-position: 50% 50%; }

/* Hero-Titel und -Button: Masse aus LayerSlider «Home» (Bezugsfläche 1280×700, skaliert mit der Breite) */
.stb-hero { position: relative; container-type: inline-size; }
.stb-hero .fusion-text.stb-hero-text { position: absolute; inset: 0; z-index: 2; margin: 0 !important; line-height: normal; pointer-events: none; }
.stb-hero .stb-hero-title { position: absolute; left: calc(20 / 1280 * 100cqw); top: calc(317 / 1280 * 100cqw); margin: 0 !important; padding: 0; font-family: "Nunito Sans", sans-serif !important; font-weight: 700 !important; font-size: calc(50 / 1280 * 100cqw) !important; line-height: .98 !important; letter-spacing: normal !important; text-transform: none !important; color: #fff !important; text-shadow: 1px 1px 10px #000; text-shadow: round(up, calc(100cqw / 1280), 1px) round(up, calc(100cqw / 1280), 1px) round(up, calc(1000cqw / 1280), 1px) #000; }
.stb-hero .stb-hero-btn { position: absolute; left: calc(20 / 1280 * 100cqw); top: calc(423 / 1280 * 100cqw); padding: .45em 1.6em; border: 1px solid #fff; font-family: "Nunito Sans", sans-serif; font-weight: 600; font-size: calc(13 / 1280 * 100cqw); line-height: 1.38; color: #fff !important; text-decoration: none; pointer-events: auto; white-space: nowrap; }
.stb-hero .stb-hero-btn:hover { background: rgba(255, 255, 255, .15); }
@media only screen and (max-width: 767px) {
	.stb-hero .stb-hero-title { font-size: calc(73 / 1280 * 100cqw) !important; line-height: calc(72 / 73) !important; }
	.stb-hero .stb-hero-btn { top: calc(485 / 1280 * 100cqw); font-size: calc(36 / 1280 * 100cqw); }
}

/* Statische Keyvisuals statt LayerSlider (inc/static-hero.php, 24.10.2026) */
.stb-ls { position: relative; container-type: inline-size; overflow: hidden; }
.stb-ls .stb-ls-bg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.stb-ls .stb-ls-layer { position: absolute; z-index: 2; margin: 0 !important; padding: 0; white-space: nowrap; }
.stb-ls a.stb-ls-button { text-decoration: none; }

/* Referenzen-Masonry (10.11.2026): Avada rechnet die Höhe grosser Kacheln ohne den 1-px-Rahmen
   (Hochformat 2 px zu kurz, Breitformat 0,8 px zu hoch), dadurch verschieben sich die Spalten.
   Kachel 1x1 = 80 % + 4.8px; Hochformat = 2 Kacheln + 16 px Abstand + 2 px Rahmen;
   Breitformat/2x2: Breite W = 2 Kacheln + 18 px. */
.fusion-portfolio-post.fusion-element-portrait:not(.fusion-element-landscape) .fusion-masonry-element-container { padding-top: calc(160% + 27.6px) !important; }
.fusion-portfolio-post.fusion-element-landscape:not(.fusion-element-portrait) .fusion-masonry-element-container { padding-top: calc(40% - 2.4px) !important; }
.fusion-portfolio-post.fusion-element-landscape.fusion-element-portrait .fusion-masonry-element-container { padding-top: calc(80% + 13.2px) !important; }
