/* --- ForstSans Regular --- */
@font-face {
  font-family: 'ForstSans';
  src: url('fonts/ForstSansBoo.woff') format('woff'),
       url('fonts/ForstSansBoo.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- ForstSans Bold --- */
@font-face {
  font-family: 'ForstSans';
  src: url('fonts/ForstSansBol.woff') format('woff'),
       url('fonts/ForstSansBol.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* --- Grundlayout --- */
body {
  margin: 0;
  background-color: #fff;
  color: #000;
  font-family: 'ForstSans', sans-serif;
  font-weight: 500;
  font-size: 1.5vw;
  -webkit-font-smoothing: antialiased;
  overflow: auto;
}

::selection {
  color: #000;
  background: yellow;
}

/* FIX: keine Browser-Bold-Defaults mehr */
h1, h2, h3 {
  font-size: inherit;
  margin: 0;
  font-weight: 500;
}

a {
  color: #000;
  text-decoration: underline;
  transition: padding .5s 0s;
}

a:hover {
  color: #000;
  text-decoration: underline;
  padding-left: .5em;
}

/* --- Header / Intro --- */
.top {
  position: fixed;
  z-index: 1000;
  padding-top: 2vw;
}

section { padding: 4vw; }

.intro {
  padding-top: 8vw;
}

.txt-big,
.txt-big h1,
.txt-big h2 {
  font-size: 4vw;
  line-height: 1.175;
}

/* --- Referenzen --- */
.references img {
  width: 25%;
  height: auto;
}

.container { margin-top: -12vw; }

.sticky-header {
  position: sticky;
  z-index: 999;
  top: 0;
  width: 100%;
  padding-top: 8vw;
}

.logos { font-size: 0; }

/* --- Hamburger Button --- */
.toggle-button {
  position: fixed;
  top: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 30px;
  cursor: pointer;
  z-index: 1001;
}

.toggle-button .bar {
  height: 4px;
  width: 100%;
  background-color: #000;
  border-radius: 0;
  transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
}

/* sauberes Kreuz */
.toggle-button.open .bar:nth-child(1) {
  transform: rotate(45deg) translateY(18px);
}

.toggle-button.open .bar:nth-child(2) {
  opacity: 0;
}

.toggle-button.open .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-18px);
}

/* --- Navigation --- */
.navbar-links {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  background-color: #fff;
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  z-index: 1000;
}

.navbar-links.active { display: flex; }

.navbar-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.navbar-links ul li {
  text-align: left;
  padding: 10px 0;
}

.navbar-links ul li a {
  text-decoration: none;
  color: #000;
  font-size: 1.5rem;
}

/* --- Mobile Anpassungen --- */
@media (max-width: 768px) {

  body { font-size: clamp(14px, 4vw, 18px); }

  .txt-big, .txt-big h1, .txt-big h2 { font-size: 7.7vw; }

  .intro { padding-top: 26vw; }  /* mehr Abstand zum Logo */

  .references img { width: 50%; }

  .sticky-header { padding-top: 16vw; }

  .small-hidden { display: none; }

  .toggle-button { top: 15px; right: 15px; width: 27px; height: 21px; }

  .toggle-button .bar { height: 4px; }

  /* === MOBILE MENU CONTROL === */
  .navbar-links {
    width: 90% !important;
    padding: 4vw 5vw 25vw 5vw;
  }
	
  .navbar-links ul {
    padding-left: 0;
  }

  .navbar-links ul li a {
    padding-left: 7vw !important;
  }

  .navbar-links ul li a { font-size: 1.5rem; padding: 10px 0; }

  .toggle-button.open .bar:nth-child(1) { transform: rotate(45deg) translateY(12px); }
  .toggle-button.open .bar:nth-child(2) { opacity: 0; }
  .toggle-button.open .bar:nth-child(3) { transform: rotate(-45deg) translateY(-12px); }

  .studio-subtitle { display: block !important; }

  /* === LOGO mobile feinjustierung === */
  .top {
    padding-top: 1vw;
  }

  .edel-forst-link {
    font-size: 2.6rem !important;
  }

  /* Footer */
  .footer {
    font-size: 4vw;
  }

  .footer a {
    font-size: 4vw;
  }

  /* === Cases mobil === */
  section.areas {
    padding: 0 !important;
  }

  .areas {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    margin: 0;
    gap: 0;
  }

  .area {
    width: 100%;
    aspect-ratio: 3 / 2;
    position: relative;
  }

  .area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
	


  /* === Overlay (mobil optimiert) === */
  .areas .area .overlay {
    position: absolute;
    inset: auto !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3vw 4vw;
    background: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    text-align: center;
    font-size: 5vw;
    letter-spacing: 0.02em;
    text-transform: none;
    transition: none;
  }

  /* Hover neutralisieren */
  .areas .area:hover .overlay {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.9) !important;
  }

  /* === TAGS MOBILE OPTIMIERUNG === */
  .tags-container {
    padding-top: 8vw;
    display: flex;
    flex-wrap: wrap;
    gap: 3vw;
    justify-content: flex-start;
    max-width: 100%;
  }

  .tag {
    font-size: 4.5vw !important;
    padding: 3vw 4vw !important;
    flex: 0 0 auto;
  }

  /* ❌ Arbeitsfelder ausblenden */
  .tags-label {
    display: none;
  }
}

/* === 4-Bilder-Grid (Startseite) === */
.areas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 50vh);
  width: 100%;
  overflow: hidden;
  padding: 0;
  margin-bottom: var(--gap-cases-to-tags);
}

.area {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.8s ease;
}

.area:hover img {
  transform: scale(1.08);
  filter: brightness(0.8);
}

/* Overlay Startseite */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #000;
  font-size: 2.3vw;
  font-weight: 500; /* medium */

  background: rgba(255, 255, 0, 0);
  opacity: 0;
  transition: background 0.5s ease, opacity 0.5s ease;
}

.area:hover .overlay {
  background: rgba(248, 248, 248, 0.72); /* weniger transparent */
  opacity: 1;
}

/* === TAGS === */
.tags-section {
  padding: 2vw 4vw;
  margin-top: -9vw;
  margin-bottom: var(--gap-tags-to-text);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 100;
}

.tags-label {
  font-size: 0.9vw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2vw;
  color: #000;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5vw;
  justify-content: flex-start;
  max-width: 90%;
}

/* === TAGS (BUTTONS) === */
.tag {
  font-family: 'ForstSans', sans-serif;
  font-weight: 400;
  font-size: 2vw;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #000 !important;
  padding: 1.5vw 2.5vw;
  border: 2px solid #000;
  line-height: 1;
  display: inline-block;
  position: relative;
  transition: none;	
}

.tag,
.tag:hover {
  text-decoration: none !important;
}

/* verhindert das Springen durch globales a:hover */
.tag:hover {
  padding-left: 2.5vw;
}

/* === UNDERLINE (funktioniert sicher) === */
.tag::after {
  content: "";
  position: absolute;
  left: 2.5vw;
  width: calc(100% - 5vw);
  bottom: 1.1vw;
  height: 2px;
  background: #000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.tag:hover::after {
  transform: scaleX(1);
}

/* === HEADER LINK === */
.top a.home-link {
  color: #000 !important;
  text-decoration: none !important;
}

.top a.home-link:hover {
  color: #000 !important;
  text-decoration: none !important;
  padding-left: 0 !important;
}
/* === FOOTER === */
.footer {
  text-align: left;
  padding: 4vw;
}

/* --- Top-Button --- */
#top-button {
  position: fixed;
  bottom: 50px;
  right: 40px;
  width: 60px;
  height: 60px;
  background-color: transparent;
  cursor: pointer;
  z-index: 1002;
  opacity: 0;
  display: none;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

#top-button .line-left,
#top-button .line-right {
  position: absolute;
  width: 40px;
  height: 4px;
  background-color: #000;
}

#top-button .line-left {
  transform: rotate(45deg) translateX(18px);
}

#top-button .line-right {
  transform: rotate(-45deg) translateX(-18px);
}

#top-button:hover {
  opacity: 0.6;
  cursor: pointer;
}

/* === EDEL + FORST (nur Wortmarke) === */
.edel-forst-link {
  font-family: 'Times New Roman', serif !important;
  font-weight: 700 !important;
  color: #000 !important;
  text-decoration: none !important;
  font-size: var(--logo-size);
  letter-spacing: var(--logo-tracking);
}

.edel-forst-link:hover {
  color: #000 !important;
  text-decoration: none !important;
}

/* --- Wichtige Links unterstrichen --- */
#contact a,
.footer a {
  text-decoration: underline;
}

/* --- Kontakt → Footer Abstand reduzieren --- */
#contact {
  padding-bottom: 0vw;
}

#contact p:last-child {
  margin-bottom: 0;
}

/* --- Logo Abstand --- */

/* === EDEL + FORST & YÉ-YÉ (Links mit Animation) === NEU */
.studio-link {
  position: relative;
  color: #00000 !important;
  text-decoration: none !important;
}

.studio-link::after {
  content: "";
  position: absolute;
  bottom: -0.3em;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #000;
  transition: width 0.4s ease-out;
}

.studio-link:hover::after {
  width: 100%;
}

/* === RICARDO CORTEZ (Größer, immer sichtbar) === NEU */
.studio-subtitle {
  font-size: 1.5em !important;
  display: block !important;
  font-weight: 400;
  letter-spacing: 0em;
  margin-bottom: 0.5em;
}



/* Mobile-Anpassungen (Studio-Links) NEU */
@media (max-width: 768px) {
  .studio-subtitle {
    font-size: 1.4em !important;
    display: block !important;
  }
  
  .edel-forst-link,
  .ye-ye-link {
    font-size: inherit !important;
  }
}

/* =========================
   INTRO IMAGE
========================= */

.intro-image {
  width: 43vw;
  aspect-ratio: 1 / 1;

  position: relative;
  top: 6vw;

  z-index: 0;
}

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

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  :root {
    --studio-gap: 3vw;
    --studio-title-gap: 0.8vw;
  }

  .studio-description {
    font-size: 0.5em;
  }

  .intro-image {
    width: 100%;
    margin-top: 8vw;
  }
}
/* 
=========================
 Abstand zwichen Studio-Links
========================= */
.studio-block {
  margin-bottom: 0vw;
}

/* Abstand Ricardo Cortez → edel + forst */
.studio-ef {
  display: block;
  margin-top: 2vw !important;
}

/* Abstand zwischen den beiden Blöcken */
.studio-yeye {
  margin-top: 2vw !important;
}




