.referenzen-background {
    position: relative;
    display: block;
    width: 100%;

    aspect-ratio: 4 / 3;
    overflow: hidden;

    cursor: pointer;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    border: 1px solid #000;
}
	
.referenzen-scroll:hover {
 background-color: rgba(0,0,0,0.5);
}
	
.referenzen-inhaltsterne {
	font-size:0.6em;
	color:#fff; 
	position:relative; 
	font-weight:100;
	line-height: 14px;
	letter-spacing: 2px;
}

.referenzen-inhalt { 
	position:absolute; 
	bottom:1.5em; 
	left:3em; 
	right:3em; 
}

.referenzen-inhalt-partner{
	font-size:0.7em;
	color:#fff;
	position:relative;
	text-transform: none;
	font-weight: 200; 
	text-align:right;
	padding-top:2rem;
	background:red;
}

.referenzen-image {
	width:99.5% !important;
	height:auto !important;
	display:inline-block !important;
}

.referenzen-scroll {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    width: 100%;
    height: 100%;
    padding: 2.5em 3em;

    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.35);
}


.referenzen-inhalt-title {
    margin: 0 0 8px 0;
    font-family: "Poppins", sans-serif;
    font-size: 1.8em;
    line-height: 1.2;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.referenzen-inhalt-ort {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 1em;
    line-height: 1.4;
    font-weight: 300;
    text-transform: uppercase;
    color: #fff;
}

/* mehr erfahren */
.hover-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 10;

    padding: 0.65rem 1.25rem;

    font-family: "Poppins", sans-serif;
    font-size: 1em;
    font-weight: 300;

    color: #000;
    background: #00fac9;
    text-decoration: none;

    border: 1px solid #fff;
    border-radius: 4px;

    opacity: 0;
    pointer-events: none;

    transition:
        opacity 0.3s ease;
}


/* sichtbar bei Hover */
body:not(.is-touch) .referenzen-scroll:hover .hover-btn {
    opacity: 1;
    pointer-events: auto;
}


/* sichtbar bei TAB-Fokus */
.hover-btn:focus-visible {
    opacity: 1;
    pointer-events: auto;

    outline: 3px solid #00fac9;
    outline-offset: 5px;
}


@media (min-width:767px) {
.touch-img.hidden-lg{
 display:none;
 }
}


@media (max-width: 766px) {
    .touch-img {
        position: absolute;
        top: 50%;
        right: 18px;
        z-index: 5;
        width: 30px;
        height: 40px;
        transform: translateY(-50%);
    }

    .touch-img img {
	    display: block;
        width: 30px;
        height: 40px;
        object-fit: contain;
        border: 0;
    }
}




@media only screen and (max-width: 1024px) {		
.referenzen-inhalt-title {
	font-size:1.1em;	
  }
}

@media (max-width:440px) {

.referenzen-background {
   aspect-ratio: auto;
   height: 450px;
}


.referenzen-background img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.referenzen-inhalt { 	
	bottom:6.5rem; 	 
	left:1em; 
	right:1em; 
}
.referenzen-inhalt-title {
	font-size:1.4em;
	color:#fff; 
	position:relative;
	font-weight: 300;
	margin-bottom: 4px;
}	
.referenzen-inhalt-partner{
	font-size:0.9em;
	color:#fff;
	text-align:left;
	padding-top:1rem;
}
.referenzen-long-img .referenzen-image{
	width:100%;
	height:auto;	
}
.touch-img{
	position:absolute;
	width:10%;
	top:110px;
	right:2%;	
}
.touch-img img{
 width:30px;
 height:40px; 
 border:none;
 }
}

@media (min-width:320px) and (max-width:439px) {
.img-touch{
 width:40px;
 height:60px; 
 border:none;
}
}

/* --- TOUCH FIX für Chrome auf Tablets --- */
body.is-touch .hover-btn {
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.3s ease;
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #00fac9;
  color: #000;
  border: 1px solid #fff;
  font-size: 0.8em;
}

/* Sichtbar, wenn via JS-Touch aktiviert */
body.is-touch .hover-btn.show-touch {
  opacity: 1 !important;
  z-index: 50 !important;
}

/* Desktop Hover bleibt */
body:not(.is-touch) .referenzen-scroll:hover .hover-btn {
  opacity: 1;
  pointer-events: auto;
}


.cover-trigger {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cover-bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.referenzen-long-img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    border: 0;
    background: transparent;
}

.referenzen-long-img img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================
   REFERENCE INTRO
========================= */
.reference-intro {
    padding-top: 60px;
    padding-bottom: 60px;
}

.reference-intro .title-h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 2.4em;
    line-height: 1.1em;
    letter-spacing: 3px;
    text-transform: none;
    padding-bottom: 0.5rem;
}


.reference-intro .title-block {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: 1.4em;
    padding-bottom: 10px;
    padding-top: 10px;
    text-align: center;
	letter-spacing: 2px;
    line-height:1.4em;
}


.reference-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: translateY(-50%);
}

.reference-arrow::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}


.references-grid .container-small {
    padding-top: 50px;
}


.button {
    display: inline-block;
    min-width: 200px;
    margin-bottom: 100px;
    padding: 8px 12px;
    border: 1px solid #9d9d9d;
    color: #9d9d9d;
    background: transparent;
    font-size: 1em;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    transition:
        background-color 0.25s ease-out,
        color 0.25s ease-out;
}

.button:hover,
.button:focus-visible {
    background-color: #00e0b8;
    border-color: #00e0b8;
    color: #111;
}

.button:focus-visible {
    outline: 3px solid #00fac9;
    outline-offset: 4px;
}

/* ==========================================================================
   REFERENCE INTRO – MOBILE
   ========================================================================== */
@media (max-width: 600px) {
    .reference-intro {
        padding-top: 80px;
        padding-bottom: 60px;
    }
	
	
	.reference-intro .index .title-h3 {
        font-size: 1.8em;
        padding-top: 0rem;
        text-align: left;
		font-weight:300;
    }
}


@media (max-width: 479px) {
   .referenzen-background {	
		border: 3px solid #000;
	}
			
	.reference-intro .index .title-block {
        font-size: 1.15em;
        line-height: 1.3em;
        hyphens: auto;
        -webkit-hyphens: auto;
        text-align: left;
    }
}