@font-face {
  font-family: 'FunnelSans';
  src: url('../fonts/FunnelSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'FunnelSans';
  src: url('../fonts/FunnelSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}
    
@font-face {
  font-family: 'FunnelSans';
  src: url('../fonts/FunnelSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
        
:root {
    --txt-color: rgba(40,40,60,1);
     /* Nav */
     --nav-dark: rgba(40,40,60,1);
     --nav-dark-active: rgba(40,40,60,1);
     --nav-light: #fff;
     --nav-hover:  rgba(215,215,220,1);
     --nav-border: 1px solid rgba(40,40,60,1);
     --nav-pad-x: 1rem;
     --nav-pad-y: 1rem;
     --nav-break: 660px;
     /* Nav Burger */
     --burger-w: 28px;
     --burger-h: 18px;
     --burger-line: 2px;
     --burger-gap: 8px;
     --anim: 220ms;
}



html {font-size: 100%}
@media (min-width: 660px){html {font-size: 100%}}
@media (min-width: 1440px){html {font-size: 120%}}
@media (min-width: 1920px){html {font-size: 140%}}

       
* {
	box-sizing: border-box;
	margin:0;
	padding:0;
	font-family: FunnelSans, Arial, sans-serif;
	line-height:140%;
	font-weight: 300;
	color: var(--txt-color);
}

a:link, a:active, a:visited {
	color: var(--txt-color);
	text-decoration:underline
	}
a:hover {
	text-decoration:none;
	}
	
#bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background-image: url("../img/gradient.png");
  background-size: 100% 1px;     /* volle Viewportbreite */
  background-repeat: repeat-y;   /* nur vertikal wiederholen */
  background-position: left top;
}

body {
	background-image: url("../img/bg.gif");
	background-size: 20px 20px;
	background-position: left top;
	background-repeat: repeat;
	background-attachment: fixed;
	}


/* NAV */

/* --------- Basis nur für Nav (kein globales Reset) --------- */
#topbar-m, #nav-m, #topbar-d, #nav-d{
  letter-spacing: 0.04em;
}
/* =========================================
   MOBILE TOPBAR
   ========================================= */
#topbar-m{
  position: fixed;
  inset: 0 0 auto 0;
  height:3.4rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--nav-pad-y) var(--nav-pad-x);
  background: var(--nav-dark);
  color: var(--nav-light);
  text-transform: uppercase;
  border-bottom: var(--nav-border);
}
#topbar-m span {
	color:var(--nav-light);
	}
/* Hide mobile topbar on desktop */
@media (min-width: 660px){
  #topbar-m{ display:none; }
}

/* =========================================
   MOBILE NAV DRAWER
   ========================================= */
#nav-m{
  position: fixed;
  inset-inline: 0;
  inset-block-start: -13rem; /* wie dein alter Output */
  z-index: 40;
  background: var(--nav-light);
  border-bottom: var(--nav-border);
  text-transform: uppercase;
  transition: inset-block-start var(--anim) ease;
  will-change: inset-block-start;
}

#nav-m.is-open{
  inset-block-start: 3.4rem;
}

@media (min-width: 660px){
  #nav-m{ display:none; }
}

#primary-links{
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 2.1;
}
#primary-links li {
	padding:1rem 0;
  border-radius:3rem;

}
#primary-links a{
  display: block;
  padding-inline: var(--nav-pad-x);
  text-decoration: none;
  color: var(--nav-dark);
}

#primary-links li:hover{
}

#primary-links li:has(a[aria-current="page"]){
  background: var(--nav-hover);
}

/* =========================================
   DESKTOP TOPBAR
   ========================================= */
#topbar-d{
  display:none;
}

@media (min-width: 660px){
  #topbar-d{
    display:block;
    border-bottom: var(--nav-border);
    background: var(--nav-dark);
  }

  #topbar-d > div{
    max-width: 1440px;
    margin-inline: auto;
    display:flex;
    align-items:center;
    justify-content:space-around;
    padding: var(--nav-pad-y);
    color: var(--nav-light);
    text-transform: uppercase;
  }
  #topbar-d > div span {
  color:white;
  }
}

/* =========================================
   DESKTOP NAV (3 columns)
   ========================================= */
#nav-d{
  display:none;
}

@media (min-width: 660px){
  #nav-d{
    display:block;
    letter-spacing: 0.125rem;
  }

  #nav-d .wrapper{
  }

  .topbar-columns{
    max-width: 1440px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .topbar-column{
    display:block;
    padding: var(--nav-pad-y);
    text-align:center;
    text-transform: uppercase;
    text-decoration:none;
    color: var(--nav-dark);
    border-radius:10rem;
    background: white;
    border:1px solid var(--nav-dark);
  }

  .topbar-column:hover{
    background: var(--nav-hover);
  }
  
  .topbar-columns a {
	text-decoration:none;
	}

  .topbar-column[aria-current="page"],
  .topbar-column[aria-current="page"]:hover{
    background: var(--nav-dark-active);
    color: var(--nav-light);
  }
}

@media (min-width: 660px){
  /* Topbar soll wegscrollen → keine fixed/sticky Position */
  #topbar-d{
    position: static;
  }

  /* Nav bleibt oben kleben */
  #nav-d{
    position: sticky;
    top: 0;
    z-index: 60; /* über Content */
  }
}



/* =========================================
   HAMBURGER
   Works if JS toggles .is-active on .hamburger
   ========================================= */
.hamburger{
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;

  width: calc(var(--burger-w) + 8px);
  height: calc(var(--burger-h) + 8px);
  display: inline-grid;
  place-items: center;
}

.hamburger-box{
  position: relative;
  width: var(--burger-w);
  height: var(--burger-h);
  display: block;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after{
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--burger-line);
  background: var(--nav-light);
  border-radius: 999px;
  content: "";
  display: block;

  transition:
    transform var(--anim) ease,
    top var(--anim) ease,
    opacity var(--anim) ease;
}

.hamburger-inner{
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before{
  top: calc(-1 * var(--burger-gap));
}

.hamburger-inner::after{
  top: var(--burger-gap);
}

/* Active → X */
.hamburger.is-active .hamburger-inner{
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.is-active .hamburger-inner::before{
  top: 0;
  opacity: 0;
}

.hamburger.is-active .hamburger-inner::after{
  top: 0;
  transform: rotate(-90deg);
}

/* Focus styles */
#primary-links a:focus-visible,
.topbar-column:focus-visible,
.hamburger:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  #nav-m,
  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after{
    transition: none;
  }
}




/* WEITERES */

	
#site-content {
	width:100%;
}

/* Spacer */
.spacer {
	border-bottom:1px solid var(--txt-color);
    }
.spacer-width-wrapper {
	max-width:1440px;
	margin:auto;
	display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Spalten, gleich breit */
	align-items:stretch;
	min-height:3rem;
	}
.spacer-left div:first-child, .spacer-right div:nth-child(2)  {
	background-color:white;
	display:flex;
	flex-direction: row;
	align-items: center;
	font-weight:500;
	padding-left:1rem;
	}


/* Footnotes */
.footnotes {
	border-bottom:1px solid var(--txt-color);
    }
.footnotes-width-wrapper {
	max-width:1440px;
	margin:auto;
	background: white;
	padding:1rem;
	}
.footnotes-width-wrapper div {
	color: rgba(40,40,70,0.7);
}

/* FOOTER */
.footer-width-wrapper {
	max-width:1440px;
	margin:auto;
	padding:1rem;
	}
	
	
/* Text Image Banner */
.text-image-banner {
	border-bottom:1px solid var(--txt-color);
	}
.text-image-banner .width-wrapper {
	max-width:1440px;
	margin:auto;
	display: grid;
	grid-template-columns: 1fr;
	flex-direction: column;
	align-items:stretch;
}
@media (min-width: 600px) {
.text-image-banner .width-wrapper {
    grid-template-columns: 1fr 1fr; /* 2 Spalten, gleich breit */
    align-items:stretch;
  }
}
.text-image-banner-text {
	background-color:white;
	margin-left:1rem;
	}
@media (min-width: 600px) {
.text-image-banner-text {
	margin-left:0;
	}
}
.text-image-banner-text div {
	border-left: 4px solid var(--txt-color);
	padding:4rem 1rem 5rem 0.125rem;
	font-size:1.3rem;
	line-height:130%;
	}


/* Logo Grid */
.logo-grid {
	border-bottom:1px solid var(--txt-color);		
}
.logo-grid-max-width {
	max-width:1440px;
	margin:auto;
	display: grid;
    grid-template-columns: repeat(2, 1fr);
	gap: 0.125rem;
	padding:2rem 1rem;
	background-color:white;
	}
@media (min-width: 600px) {
.logo-grid-max-width {
    grid-template-columns: repeat(4, 1fr);
	}
}
.logo-card {
	background-color:rgba(40,40,70,0.1);
	width:100%;
	aspect-ratio: 16 / 9;
	border-radius:0.5rem;
	position:relative;
	overflow:hidden;
	}
.logo-card img {
	width:100%;
	object-fit:cover;
	filter: grayscale(1);
	}
.logo-card .client-name {
	position:absolute;
	bottom:0;
	left:0;
	width:100%;
	display:block;
	font-size:0.7rem;
	padding: 0.25rem 1rem;
	text-align:center;
	opacity:0.6;
	} 
.logo-card .footnote {
	position:absolute;
	bottom:0;
	right:0;
	padding: 0.25rem 0.5rem;
	opacity:0.6;
	font-size:0.6rem;
}

/* Content Grid */
.content-grid {
	border-bottom:1px solid var(--txt-color);		
}
.content-grid-max-width {
	max-width:1440px;
	margin:auto;
	display: flex;
	flex-direction: column;
	flex-gap:2rem;
	padding:2rem 1rem;
	background-color:white;
	}
.content-column {
	padding-bottom:2rem;
}

.content-column h3 {
	font-weight:500;
}
.content-column ul li {
	margin-left:1rem;
}


@media (min-width: 600px) {
.content-grid-max-width {
    flex-direction:row;
	}
.content-column {
	flex: 1 1 0;
	min-width:0;
	padding-bottom:1rem;
	}
}


/* PROJECT SHOWCASE */

.project-showcase {
	border-bottom:1px solid var(--txt-color);
}
	
.project-showcase .project-info {
	padding: 1rem 1rem 0.5rem 1rem;
	min-width:0;
	display: flex;
	flex-direction:column;
}
.project-category,
.project-subtitle,
.project-description,
.project-footnote {
	margin-bottom:1rem;}	
.project-category {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	text-transform:uppercase;
	letter-spacing:10%;
	font-weight:700;
	font-size:0.8rem;
}
.project-category::before {
	content: "";
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: var(--txt-color);
	border: 1px solid var(--txt-color);
	flex-shrink: 0;
	box-sizing:border-box;
}
.project-title {
	font-weight:500;
}
.project-footnote {
	font-size:0.75rem;
	opacity:0.7;
	margin-bottom:0;  
	margin-top:1rem;
}
@media (min-width: 300px){
.project-footnote {
	flex:1;
	display:flex;
	flex-direction:column;
	justify-content:flex-end;
	}
}


/* PROEJECT SLIDESHOW */

.splide {
	position:relative;
	min-width:0;
	max-width: 100%;
	overflow: hidden;
}
/* für das vollflächige Bild */ 
@media (min-width: 600px) {
	.splide, .splide__track, .splide__list, .splide__slide, .slide-media {
	height:100%;
	min-height:0;
	}
	.splide__slide {
	position:relative;
	overflow:hidden;
	}
}


/* Progressbar */
.my-slider-progress {
	position: relative;
	left: 0;
	top: 0;
	width: 100%;
	height: 0.25rem;
	background: rgba(35,35,50,0.25);
	z-index: 30;
}
.my-slider-progress-bar {
	height: 100%;
	width: 0;
	background: var(--txt-color);
	transition: width 300ms linear;
	z-index: 35;
}

/* Pfeil-Buttons */
.splide__arrow {
	z-index: 40;
}
.splide__arrow:hover {
	cursor:pointer;
}
	
/* Klick-Zonen links/rechts je 30% */
.slider-nav-zones {
	position: absolute;
	inset: 0;
	z-index: 25; /* über Slides, unter Progressbar */
	display: flex;
}
.slider-zone {
	width: 30%;
	height: 100%;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}
/* Links: vorheriger Slide */
.slider-zone--prev {
	cursor: w-resize;
}
/* Rechts: nächster Slide */
.slider-zone--next {
	margin-left: auto;
	cursor: e-resize;
}	
    

/* SLIDESHOW PAGINATION */

.splide__pagination {
	position:relative;
	top:0;
	bottom:0;
	justify-content: flex-start;
	padding: 0.375rem 1rem;
	z-index:35;
}	
.splide__pagination__page {
	height: 1rem;
	width:1rem;
	opacity:1;
	margin-right:0.125rem;
	background:none;
	border: 1px solid var(--txt-color);
}
.splide__pagination__page:hover {
	background:rgba(255,255,255,0.2);
	}
.splide__pagination__page.is-active {
	background: var(--txt-color);
	transform:none;
}
@media (min-width: 600px) {
	.splide__pagination {
	position:absolute;
	bottom:0;
	top:auto;
	justify-content: flex-end;
	}
	.splide__pagination__page {
	height: 1rem;
	width:1rem;
	opacity:1;
	margin-right:0.125rem;
	background:none;
	border: 1px solid white;
}	
	.splide__pagination__page.is-active {
	background: white;
	transform:none;
}
}


/* SLIDESHOW INHALTE */

.slideshow-width-wrapper {
	max-width:1440px;
	margin:auto;
	display: grid;
	grid-template-columns: 1fr;
	flex-direction: column;
	background-color:white;
	align-items:stretch;
}
@media (min-width: 600px) {
.slideshow-width-wrapper{
    grid-template-columns: 1fr 1fr; /* 2 Spalten, gleich breit */
    align-items:stretch;
  }
}

.slide-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}	


.slide-info {
	padding:0;
}
.slide-info-wrapper {
	padding: 0.5rem 1rem;
	background-color:white;
}
.slide-credits {
	font-size:0.6rem;
	margin-bottom:0.25rem;
}
.slide-caption {
	background-color:white;
}
@media (min-width: 600px) {
	.slide-info {
		position:absolute;
		bottom:0;
		left:0;
		width:100%;
		height:auto;
		border-top:1px solid var(--txt-color);
	}
	.slide-info-wrapper {
		width:50%;
	}
}

.footnote {
	vertical-align: super;
	font-weight:500;
	font-size:0.6rem;
	}	
	
	
	