/* ___________RESET___________ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}


/* ___________VARIABLEN___________ */

:root {
  --color-black: #0f0f0f;
  --color-gray: #F5F5F5; 
  --color-white:  #ffffff;
  --color-warm-gray: #6F6F6A;

  --green-studio-main: #3D6B3D;

  --s: clamp(0.85rem, 0.3vw + 0.8rem, 0.95rem);
  --m: clamp(1rem, 0.35vw + 0.95rem, 1.1rem);
  --l: clamp(1.25rem, 0.6vw + 1.1rem, 1.3rem);
  --xl: clamp(1.6rem, 1vw + 1.3rem, 2.2rem);

  --carousel-arrow-offset: clamp(16px, 4vw, 48px);

--container: 1400px;
--page-padding: clamp(1.5rem, 6vw, 6rem);

}

.header_brand{
  font-size: var(--l);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  color: inherit;
}

h1{ font-size: var(--xl); line-height: 1.1; }
h2{ font-size: var(--l);  line-height: 1.2; }
p { font-size: var(--m);  line-height: 1.55; }



/* ___________BODY___________ */

html {
  font-size: 16px; /* 1rem */
}

body {
  font-family: "neulis-sans", sans-serif;
  color: var(--color-black);
  line-height: 1.5;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--page-padding);
}

main {
  background-color: var(--color-gray);
}



header,
footer {
  background-color: var(--color-gray);
}


/* ___________TEXT___________ */

h1 {
  font-size: var(--xl);
  font-weight: 600;
}

h2 {
  font-size: var(--l);
  font-weight: 600;
}

h3 {
  font-size: var(--m);
  font-weight: 600;
}

p {
  font-size: var(--m);
}

.project_type {
  font-size: var(--s);
  font-style: italic;

  justify-self: end;
  text-align: right;
  color: var(--color-black);
}


/* ___________LINKS___________ */

a {
  color: inherit;
  text-decoration: none;
}


/* =============================================== */
/* HOVER — editorial portfolio style */
/* =============================================== */

.projects,
.gallery{
  overflow: visible;
}

/* Card bekommt Bewegung + Shadow */
.hover-img{
  position: relative;
  overflow: visible;

  transition:
    transform 220ms cubic-bezier(.2,.6,.2,1),
    box-shadow 220ms cubic-bezier(.2,.6,.2,1);

      will-change: transform;

}

/* Bild bleibt stabil */
.hover-img img{
  display:block;
  width:100%;
  height:auto;
}

/* ================================
   Footer Back-To-Top (global)
   ================================ */

.footer_inner{
  position: relative; /* wichtig für absolute Positionierung des Pfeils */
}

.footer_top{
  position: absolute;
  right: var(--page-padding);
  top: 0.1rem;

  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  display: none; /* default: versteckt */
}

.footer_top img{
  height: 1.2rem;
  width: auto;
  display: block;
}

.footer_top:hover{
  opacity: 0.7;
}

/* nur auf Mobile anzeigen */
@media (max-width: 640px){
  .footer_top{
    display: block;
  }
}


/* ================================================= */
/* =================== BREAKPOINTS ================= */
/* ================================================= */
/* ---------- OTHER MEDIA QUERIES ---------- */
@media (hover: hover) and (pointer: fine) {

  .hover-img:hover{
    transform: translateY(-6px) scale(1.015);

    box-shadow:
      0 6px 12px rgba(0,0,0,0.16),
      0 16px 28px rgba(0,0,0,0.12);

    z-index:2;
  }

}

@media (hover: none) and (pointer: coarse){

  .hover-img:active{
    transform: scale(0.98);
  }

}
