


/* ------------------------------------------------------------------------------------ 
   ______ ____  ____   ______ ____   ___     __  ___ ______ 
  /_  __// __ \/ __ \ / ____// __ \ /   |   /  |/  // ____/ 
   / /  / / / / /_/ // /_   / /_/ // /| |  / /|_/ // __/    
  / /  / /_/ / ____// __/  / _, _// ___ | / /  / // /___    
 /_/   \____/_/    /_/    /_/ |_|/_/  |_|/_/  /_//_____/    
                                                            
/* ------------------------------------------------------------------------------------ */

/* Spezifische Farbe für die Unit */
#menu_bar_background {
    background-color: var(--unit_digital) !important;
}

/* Die einzelnen Buttons im Submenü */
.topframe_menubar_sub a {
    background-color: var(--unit_digital) !important;
    color: #ffffff !important;
}

/* Hover-Zustand Buttons */
.topframe_menubar_sub a:hover {
    background-color: #ffffff !important;
    color: var(--unit_digital) !important;
}

/* RESPONSIVE MENÜ*/
@media screen and (max-width: 1440px) {
    
    /* 1. Das ausfahrbare Overlay bekommt die Unit-Farbe */
    .top_frame_menubar {
        background-color: var(--unit_digital) !important;
    }

    /* 2. Die Buttons im Normalzustand (Unit-Farbe als Hintergrund) */
    .top_frame_menubar a {
        background-color: var(--unit_digital) !important;
        color: #ffffff !important;
    }

    /* 3. Hover-Zustand (Invertiert: Weißer Hintergrund, Unit-Farbe als Text) */
    .top_frame_menubar a:hover,
    .top_frame_menubar a.active {
        background-color: #ffffff !important;
        color: var(--unit_digital) !important;
    }
}


/* ------------------------------------------------------------------------------------ 
   ______ ____   _   __ ______ ______ _   __ ______ ______ ____   ___     __  ___ ______ 
  / ____// __ \ / | / //_  __// ____// | / //_  __// ____// __ \ /   |   /  |/  // ____/ 
 / /    / / / //  |/ /  / /  / __/  /  |/ /  / /  / __/  / /_/ // /| |  / /|_/ // __/    
/ /___ / /_/ // /|  /  / /  / /___ / /|  /  / /  / /    / _, _// ___ | / /  / // /___    
\____/ \____//_/ |_/  /_/  /_____//_/ |_/  /_/  /_/    /_/ |_|/_/  |_|/_/  |_/ /_____/    
                                                                                        
/* ------------------------------------------------------------------------------------ */

#content_frame {
  width: 100%;
  position: relative;
  overflow: hidden;
  /* Das eigentliche Element braucht hier kein background-image mehr */
  background-color: var(--unit_digital_BG) !important;
}

/* Neues Pseudoelement für das geblurrte Bild */
#content_frame::before {
  content: "";
  position: absolute;
  top: -3%;
  left: -3%;
  width: 106%;
  height: 106%;
  background-image: url('../graphics/agentur-infinite-contentframe-BG-digital.webp'); 
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: auto 1400px;
  
  /* Hier wird der Blur-Effekt definiert */
  filter: blur(6px); 
  
  /* Verhindert, dass das Bild über den Text rutscht */
  z-index: 0; 
}

/* Falls du Inhalt im Frame hast, muss dieser über dem Hintergrund liegen */
#content_frame > * {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------------------------------ 
   __________  _   _______________   ________
  / ____/ __ \/ | / /_  __/ ____/ | / /_  __/
 / /   / / / /  |/ / / / / __/ /  |/ / / /   
/ /___/ /_/ / /|  / / / / /___/ /|  / / /    
\____/\____/_/ |_/ /_/ /_____/_/ |_/ /_/     
   
/* ------------------------------------------------------------------------------------ */

/* Der Hover-Effekt: Hintergrund & Schimmer (Box-Shadow) */
.flex_box_2col_button:hover {
    background-color: var(--unit_digital) !important;
    box-shadow: 0 0 30px rgba(0, 141, 183, 0.4); /* Schimmer in var(--unit_digital) */
}

.flex_box_2col_button_headline {
    color: var(--unit_digital);
}


/* ------------------------------------------------------------------------------------ 
   _____  ____   ______ ______ ____ ___     __      ______ ____   ___   __  ___ ______ 
  / ___/ / __ \ / ____// ____//  _//   |   / /     / ____// __ \ /   | /  |/  // ____/ 
  \__ \ / /_/ // __/  / /     / / / /| |  / /     / /_   / /_/ // /| |/ /|_/ // __/    
 ___/ // ____// /___ / /___ _/ / / ___ | / /___  / __/  / _, _// ___ // /  / // /___    
/____//_/    /_____/ \____//___//_/  |_|/_____/ /_/    /_/ |_|/_/  |_|/_/  |_//_____/   

/* ------------------------------------------------------------------------------------ */

.special_frame {
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.reference-box_flex {
    display: flex;
    width: 100%;
    /* Sorgt dafür, dass der Button die gleiche Höhe wie der Text hat */
    align-items: stretch; 
    justify-content: space-between;
    gap: 60px; /* Definierter Abstand zwischen Text und Button */
}

.reference-box_content {
    flex: 1; 
}

.reference-box_action {
    flex: 0 0 25%;
    display: flex;
    align-items: stretch;
}

.reference-box_button {
    position: relative;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center; 
    justify-content: center;    
    width: 100%;
    height: 100%;
    padding: 2px; /* Dient jetzt als Rahmenstärke für die umlaufende Glow-Linie */
    box-sizing: border-box;
    overflow: hidden;
    user-select: none;
    border: none;
}

/* Die umlaufende Linie - Über das Pseudo-Element des Hauptbuttons */
.reference-box_button::before {
    content: '';
    position: absolute;
    /* Groß genug dimensioniert, um auch die Ecken des hohen Buttons beim Drehen komplett abzudecken */
    width: 450px; 
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 70%,
        var(--infinite_tango) 100%
    );
    
    animation: rotateGlow 2s linear infinite;
    z-index: 1;
}

/* Der innere Text-Kern, der über der Linie liegt */
.reference-box_button-text {
    position: relative;
    z-index: 10;
    background: #000000;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; 
    justify-content: center; 
    text-align: center;
    line-height: 1.1;
    font-size: 26px;
    font-weight: 300;
    padding: 20px;
    box-sizing: border-box;
    transition: background 0.4s ease, letter-spacing 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover Gradient Fill */
.reference-box_button-fill {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--infinite_tango), #ff5522);
    z-index: 5;
    transition: left 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}

/* Interaktionen beim Hovern */
.reference-box_button:hover .reference-box_button-fill {
    left: 0;
}

.reference-box_button:hover .reference-box_button-text {
    background: transparent;
    letter-spacing: 3px;
}

/* Zusätzlicher sanfter Weichzeichner-Glow nach außen */
.reference-box_button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--infinite_tango);
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.reference-box_button:hover::after {
    opacity: 0.4;
}

/* Die absolut zentrierte Rotation */
@keyframes rotateGlow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.reference-box_headline {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.1;
}

.reference-box_subheadline {
    font-size: 32px;
    font-weight: 600;
    color: #FFFFFF; 
    margin-bottom: 36px;
    letter-spacing: 0px;
    opacity: 0.8;
    line-height: 1.1;
}

.reference-box_text {
    font-size: 22px;
    font-weight: 300;
    color: var(--infinite_gray_dark);
    margin: 0;
    opacity: 0.8;
    line-height: 1.1;
}

.reference-box-bg {
	position: relative;
    width: 100%;
    margin-top: 120px; 
    margin-bottom: 120px; 
    
    padding: 60px 40px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    overflow: hidden;
	z-index: 1 !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.reference-box-bg-1 {
    background-color: var(--unit_design);
    background-image: url('../graphics/infinite-referenzen-box-background-landingpages.webp');
}

.reference-box-bg .reference-box_headline{
}

.reference-box-bg .reference-box_subheadline{
    color: #ffffff;
    font-size: 25px;
}

.reference-box-bg .reference-box_text {
    color: #ffffff;
    font-size: 20px;
}

.case_frame {
  background-color: var(--unit_digital);
}

/* Responsivität */
@media (max-width: 1440px) {
    .reference-box_flex { gap: 30px; }
    .reference-box_button-text { font-size: 21px; }
}

@media (max-width: 1000px) {
    .reference-box_flex {
        flex-direction: column;
    }
    .reference-box_content, .reference-box_action {
        flex: 0 0 100%;
        width: 100%;
    }
    .reference-box_button { height: auto; }
    .reference-box_button-text { padding: 40px 20px; }
    
    .reference-box-bg { margin-top: 60px; margin-bottom: 60px; padding: 40px 32px; }
    .reference-box-bg .reference-box_headline{ font-size: 30px; margin-bottom: 7px; }
    .reference-box-bg .reference-box_subheadline { font-size: 20px; margin-bottom: 20px; }
    .reference-box-bg .reference-box_text { font-size: 18px; }
}

@media (max-width: 600px) {
    .reference-box_flex {
        flex-direction: column;
    }
    .reference-box_content, .reference-box_action {
        flex: 0 0 100%;
        width: 100%;
    }
    .reference-box_button-text { padding: 30px 20px; font-size: 19px; }
    
    .reference-box-bg { margin-top: 45px; margin-bottom: 45px; padding: 28px 20px; }
    .reference-box-bg .reference-box_headline{ font-size: 22px; margin-bottom: 5px; }
    .reference-box-bg .reference-box_subheadline { font-size: 18px; margin-bottom: 16px; }
    .reference-box-bg .reference-box_text { font-size: 15px; }
}
