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

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

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

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

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

    /* 2. Die Buttons im Normalzustand (Unit-Farbe als Hintergrund) */
    .top_frame_menubar a {
        background-color: var(--unit_design) !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_design) !important;
    }
}


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

#content_frame {
  width: 100%;
  position: relative;
  overflow: hidden;
  /* Das eigentliche Element braucht hier kein background-image mehr */
  background-color: var(--unit_design_BG) !important;
  border-bottom: 1px solid #808080;
}

/* Neues Pseudoelement für das geblurrte Bild */
#content_frame::before {
  content: "";
  position: absolute;
  top: -2%;
  left: -2%;
  width: 104%;
  height: 104%;
  background-image: url('../graphics/agentur-infinite-contentframe-BG-design-subpage.webp'); 
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: auto 900px;
  
  /* 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;
}

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

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

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

.reference-box {
    width: 100%;
    margin: 120px 0;
    /* Dein zentrales Padding wird jetzt überall respektiert */
    padding: 60px 40px; 
    background-color: var(--infinite_gray_light);
    box-sizing: border-box;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.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 {
    /* Nimmt den verfügbaren Platz ein, minus den Platz für den Button */
    flex: 1; 
}

.reference-box_action {
    /* Die Spalte für den Button nimmt 25% ein, aber der Button bleibt im Padding */
    flex: 0 0 25%;
    display: flex;
    align-items: stretch;
}

.reference-box_button {
    background-color: #000000;
    color: #ffffff;
    font-size: 26px;
    font-weight: 300;
    text-decoration: none;
    text-align: center;
	text-transform: uppercase;
    line-height: 1.1;
    display: flex;
    align-items: center; 
    justify-content: center;    
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
	border: 1px solid transparent;
}

.reference-box_button:hover {
    background-color: var(--infinite_tango);
    color: #FFFFFF; 
    border: 1px solid #FFFFFF; 
    letter-spacing: 3px;
    box-shadow: 0 0 10px rgba(255, 51, 0, 0.4);
}

.reference-box_headline {
    font-size: 72px;
    font-weight: 300;
    color: var(--infinite_gray_dark);
    margin-bottom: 10px;
    line-height: 1.1;
}

.reference-box_subheadline {
    font-size: 32px;
    font-weight: 300;
    color: var(--infinite_gray_dark);
    margin-bottom: 36px;
    letter-spacing: 0px;
    opacity: 0.8;
    line-height: 1.25;
}

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

/* Basis-Klasse für die Boxen */
.reference-box-bg {
    width: 100%;
    /* Der große Abstand nach oben und unten (wie zuvor bei .reference-box) */
    margin-top: 60px; 
    margin-bottom: 60px; 
    
    padding: 60px 40px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/* Spezifische Abstände, wenn mehrere Boxen untereinander stehen */
.reference-box-bg:first-child {
    margin-top: 120px; /* Voller Abstand oben für die erste Box */
}

.reference-box-bg:last-child {
    margin-bottom: 120px; /* Voller Abstand unten für die letzte Box */
}

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

/* Variante 2: Dark */
.reference-box-bg-2 {
    background-color: var(--infinite_gray_dark);
    background-image: url('../graphics/infinite-referenzen-box-background.webp');
}

/* Schriften weiß */
.reference-box-bg .reference-box_headline{
    color: #ffffff;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 40px;
}

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

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

/* FAQ Frame */
.faq_frame {
  background-color: var(--unit_design_BG);
  width: 100%;
  position: relative;
}

.faq_item {
  border-left: 4px solid var(--unit_design);
}


/* Responsivität */
@media (max-width: 1440px) {
	.reference-box { margin: 90px 0; }
    .reference-box_headline { font-size: 64px; margin-bottom: 7px; }
    .reference-box_subheadline { font-size: 26px; margin-bottom: 24px; }
    .reference-box_text { font-size: 20px; }
    .reference-box_flex { gap: 30px; }
    .reference-box_button { font-size: 21px; }
	
	.reference-box-bg:first-child { margin-top: 90px; }
	.reference-box-bg:last-child { margin-bottom: 90px; }
	.reference-box-bg .reference-box_headline{ font-size: 36px; margin-bottom: 7px; }
    .reference-box-bg .reference-box_subheadline { font-size: 24px; margin-bottom: 24px; }
    .reference-box-bg .reference-box_text { font-size: 20px; }
}

@media (max-width: 1000px) {
    .reference-box_flex {
        flex-direction: column;
    }
    .reference-box_content, .reference-box_action {
        flex: 0 0 100%;
        width: 100%;
    }
	.reference-box { margin: 60px 0; padding: 40px 32px; }
    .reference-box_headline { font-size: 50px; margin-bottom: 6px; }
    .reference-box_subheadline { font-size: 24px; margin-bottom: 20px; }
    .reference-box_text { font-size: 18px; }	
    .reference-box_button { height: auto; padding: 40px 20px; }
	
	.reference-box-bg:first-child { margin-top: 60px; padding: 40px 32px; }
	.reference-box-bg:last-child { 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 { margin: 45px 0; padding: 28px 20px; }
    .reference-box_headline { font-size: 36px; margin-bottom: 5px; }
    .reference-box_subheadline { font-size: 19px; margin-bottom: 16px; }
    .reference-box_text { font-size: 17px; }
    .reference-box_button { height: auto; padding: 30px 20px; font-size: 19px; }
	
	.reference-box-bg:first-child { margin-top: 45px; padding: 28px 20px; }
	.reference-box-bg:last-child { 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: 19px; margin-bottom: 16px; }
    .reference-box-bg .reference-box_text { font-size: 17px; }
}