/*
CTC Separate Stylesheet
Updated: 2025-08-05 12:23:00
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com
Description: Hello Elementor Child Theme
Version: 3.4.4.1754396580
*/

/* =========================
   GLOBAL LAYOUT (clean)
   ========================= */

/* No global margins so sticky header aligns to viewport */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Side spacing only for page content (NOT for header) */
.site-main,
.elementor-location-single,
.elementor-location-archive,
.elementor-section-wrap,
.single-story {
  margin-left: 0px;
  margin-right: 0px;
  padding-top: 0 !important; /* keep content high (no extra top offset) */
}

/* Sticky header */
header.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  margin: 0;
}

/* =========================
   NAVIGATION BASE
   ========================= */

.elementor-nav-menu li.menu-top-right-icon > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 36px;
  text-decoration: none;
  padding: 0;
  line-height: 1;
  margin-right: 19px !important;
}
.elementor-nav-menu li.menu-top-right-icon {
  align-items: center;
}

/* =========================
   HEADER ICONS
   ========================= */
.header-subway-icons img {
  width: 44px;
  height: 44px;
  display: inline-block;
  margin: 0 3px;
  vertical-align: middle;
}

/* =========================
   FULL WIDTH & TEXT
   ========================= */

.full-width {
  max-width: none !important;
  width: calc(100% + 80px) !important;
}
.flex-section p {
  margin-top: 0;
  margin-bottom: 0;
}
.custom-sup sup {
  vertical-align: 2.5em !important;
}
.top-text sup {
  font-size: 12px;
}

/* =========================
   STORIES GRID
   ========================= */

.stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 72px;
  column-gap: 72px;
}

.story-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  justify-content: space-between;
}

.story-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.story-image-wrapper img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.story-image-wrapper:hover img {
  transform: scale(1.05);
  filter: brightness(70%);
}

.story-item-content {
  padding: 10px 0;
  flex: 1;
}

.story-item:nth-child(6n + 2),
.story-item:nth-child(6n + 4) {
  grid-column: span 2;
}

.story-image-full img {
  width: 100%;
  height: auto;
  display: block;
}

.story-two-column {
  display: flex;
  margin-top: 40px;
  margin-left: 10%;
  margin-right: 10%;
}

.story-left {
  flex: 0 0 40%;
}
.story-left h3 {
  margin-top: 0;
}
.story-right {
  flex: 0 0 60%;
  margin-bottom: 40px;
}

.story-meta {
  display: flex;
}

.story-meta .meta-col {
  flex: 0 0 25%;
}
.story-meta .meta-col p {
  display: flex;
  flex-direction: column;
}

/* =========================
   SERVICES HOVER EFFECT
   ========================= */

.hover-box img {
  transition: transform 0.4s ease;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hover-box > .e-con-inner > .elementor-element:first-child {
  overflow: hidden;
}

.hover-box:hover img {
  transform: scale(1.1);
}
.hover-box .elementor-widget-text-editor p:first-of-type strong {
  transition: transform 0.4s ease;
  display: inline-block;
}

.hover-box:hover .elementor-widget-text-editor p:first-of-type strong {
  transform: translateX(10px);
}

.hover-box img:last-child {
  display: inline-block;
}

.hover-box:hover img:last-child {
  animation: arrowOutIn 0.6s ease forwards;
}

@keyframes arrowOutIn {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  40% {
    transform: translateX(120%);
    opacity: 0;
  }
  60% {
    transform: translateX(-120%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.hover-box .elementor-element.elementor-absolute img {
  display: inline-block;
  transition: transform 0.4s ease;
}

.hover-box:hover .elementor-element.elementor-absolute img {
  animation: arrowOutIn 0.3s ease forwards;
}

/* =========================
   STORY GALLERY
   ========================= */

.story-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
}

.story-gallery img {
  display: block;
  width: 100%;
  height: auto;
  flex: 0 0 47%;
  object-fit: cover;
}

.story-gallery img:nth-child(3n-1) {
  flex: 0 0 100%;
}

@media (max-width: 1710px) {
  .story-gallery {
    gap: 20px;
  }
  .story-gallery img {
    flex: 0 0 49%;
  }
}

@media (max-width: 1240px) {
  .elementor-nav-menu li.menu-top-right-icon > a {
    font-size: 20px;
    width: 30px;
    height: 30px;
    margin-right: 10px !important;
  }
  .story-gallery img {
    flex: 0 0 49%;
  }
  .story-gallery {
    gap: 15px;
  }
}

@media (max-width: 1024px) {
  .elementor-nav-menu li.menu-top-right-icon > a {
    margin: 10px 18px;
    width: 44px;
    height: 44px;
  }
  .elementor-nav-menu > li.menu-top-right-icon {
    display: inline-flex;
  }
  .elementor-nav-menu > li.menu-top-right-icon:nth-child(1) {
    margin-left: auto;
  }
  .story-gallery {
    display: block;
  }
  .story-gallery img {
    margin-bottom: 10px;
  }
  .story-two-column {
    display: block;
  }
  .story-left {
    position: static !important;
  }
  .story-left h3 {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
  .stories-grid {
    grid-template-columns: 1fr;
  }
  .story-item:nth-child(6n + 2),
  .story-item:nth-child(6n + 4) {
    grid-column: span 1;
  }
}

@media (max-width: 767px) {
  .word-wrap-break {
    word-break: break-all;
  }
}

.story-image-full,
.story-gallery {
  overflow: hidden;
  position: relative;
}

.story-image-full img,
.story-gallery img {
  transform: translateX(-100%);
  animation: slideInLeft 2s ease forwards;
}

@keyframes slideInLeft {
  to {
    transform: translateX(0);
  }
}

.story-right .story-meta {
  transform: translateY(50px);
  opacity: 0;
  animation: slideUp 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.story-left {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
/* =========================
   PRELOADER DEAKTIVIEREN
   ========================= */
#eg-preloader {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}