* {
box-sizing: border-box;
}




article  {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
}




section {
	width: 100%;
	height: 0;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: stretch;
	border-right: 1px solid transparent;
	border-bottom: 1px solid transparent;
	border-left: 1px solid transparent;
	transition: all 0.5s ease;
	position: relative;
}

section::before {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 2px;
	background-image: linear-gradient(90deg,#00ffff,#00ffff);
	content: "";
	z-index: 2;
	transition: all 1.2s ease;
}

.scpam div {
	flex-grow: 1;
	opacity: 100;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: scroll;
	transition: all 0.4s ease;
}

.scpw div {
	flex-grow: 1;
	opacity: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: scroll;
	transition: all 0.4s ease;

	
}

.scpw {
	border: 1px solid transparent;
    margin-bottom: 20px;
    padding: 10px;
}

.scpw h3 {
	margin-top: 0;
    cursor: pointer;
}


.c-g2 {
    display: block; 
    opacity: 0;
    max-height: 0;
    overflow: hidden; 
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out; 
    padding: 20px; 
    box-sizing: border-box;
}

.c-g2.show {
    max-height: 500px;
    opacity: 100;
}











@keyframes pointerFix {
0% {
pointer-events: none;
}
99% {
pointer-events: none;
}
100% {
pointer-events: initial;
}
}



@import url("https://fonts.googleapis.com/css2?family=Figtree&display=swap");


.c-g {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 1em;
	height: 500px;
	transition: all 400ms;
}

.c-g:hover .box {
	filter: grayscale(100%) opacity(25%);
}


.c-g .box:hover {
	filter: grayscale(0%) opacity(100%);
}

.c-g:has(.box-1:hover) {
	grid-template-columns: 3fr 1fr 1fr 1fr ;
}

.c-g:has(.box-2:hover) {
	grid-template-columns: 1fr 3fr 1fr 1fr ;
}

.c-g:has(.box-3:hover) {
	grid-template-columns: 1fr 1fr 3fr 1fr ;
}

.c-g:has(.box-4:hover) {
	grid-template-columns: 1fr 1fr 1fr 3fr ;
}


/* Rasterlayout */
.c-g2 {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 0.5em;
    width: 1000px; /* Anpassen an deine Anforderungen */
    max-width: 1000px; /* Anpassen an deine Anforderungen */
    height: 500px; /* Anpassen an deine Anforderungen */
    transition: all 400ms;
}

/* Graustufenfilter beim Hovern des Rasters */
.c-g2:hover .box {
    filter: grayscale(100%) opacity(25%);
}

/* Graustufenfilter beim Hovern der Box */
.c-g2 .box:hover {
    filter: grayscale(0%) opacity(100%);
}

/* Anpassungen des Rasterlayouts basierend auf dem Hover-Status der Boxen */
.c-g2:hover .box-1:hover ~ * {
    grid-template-columns: 3fr 1fr 1fr 1fr 1fr;
    width: 1500px;
}

.c-g2:hover .box-2:hover ~ * {
    grid-template-columns: 1fr 3fr 1fr 1fr 1fr;
    width: 1500px;
}

.c-g2:hover .box-3:hover ~ * {
    grid-template-columns: 1fr 1fr 3fr 1fr 1fr;
    width: 1500px;
}

.c-g2:hover .box-4:hover ~ * {
    grid-template-columns: 1fr 1fr 1fr 3fr 1fr;
    width: 1500px;
}

.c-g2:hover .box-5:hover ~ * {
    grid-template-columns: 1fr 1fr 1fr 1fr 3fr;
    width: 1500px;
}



.c-g3 {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	gap: 0.5em;
	width: 800px;
	max-width: 800px;
	height: 500px;
	transition: all 400ms;
}

.c-g3:hover .box {
	filter: grayscale(100%) opacity(25%);
}


.c-g3 .box:hover {
	filter: grayscale(0%) opacity(100%);
}

.c-g3:has(.box-1:hover) {
	grid-template-columns: 3fr 1fr 1fr 1fr 1fr ;
	width: 1500px;
}

.c-g3:has(.box-2:hover) {
	grid-template-columns: 1fr 3fr 1fr 1fr 1fr ;
	width: 1500px;
}

.c-g3:has(.box-3:hover) {
	grid-template-columns: 1fr 1fr 3fr 1fr 1fr ;
	width: 1500px;
}

.c-g3:has(.box-4:hover) {
	grid-template-columns: 1fr 1fr 1fr 3fr 1fr ;
	width: 1500px;
}

.c-g3:has(.box-5:hover) {
	grid-template-columns: 1fr 1fr 1fr 1fr 3fr ;
	width: 1500px;
}




.box {
	position: relative;
	background: var(--img) center center;
	background-size: cover;
	transition: all 400ms;
	display: flex;
	justify-content: center;
	align-items: center;
}


.box::after {
	content: attr(data-text);
	position: absolute;
	bottom: 10px;
	background: #000;
	color: #fff;
	padding: 5px 5px 5px 10px;
	letter-spacing: 4px;
	text-transform: uppercase;
	transform: translateY(60px);
	opacity: 0;
	transition: all 400ms;
}

.box:hover::after {
	transform: translateY(0);
	opacity: 1;
	transition-delay: 400ms;
}
















.pwc {
    background-color: var(--primary-800);
    
}

.pwc:nth-child(1) {
    grid-column: 1 / span 1;
  }
  
  .pwc:nth-child(2) {
    grid-column: 2 / span 1;
  }

.pwc:hover {
   background-color:var(--primary-700);
}

.scpw a {
    
    text-decoration: none;
    background-color: var(--secondary-900);
    padding: 8px;
    margin-left: 40%;
    margin-right: 40%;
    border-radius: 10px;
    transition: 0.5s;
}

a:hover {
    background-color:var(--primary);
}


.pwc p2 {
    color: rgb(233, 233, 246);
    background-color: var(--secondary-200);
    padding: 8px;
    margin-left: 40%;
    margin-right: 40%;
    border-radius: 10px;
}



.pwc p1 {
    color: rgb(233, 233, 246);
    text-align: center;
    font-size: 10px;
    padding-bottom: 5px;
}

.pwc h3 {
	padding-top: 2%;
	padding-bottom: 2%;
	font-size: 20px;
}
