/* ─────────────────────────────────────────────────────────────
   SPRUCE LABS — style.css
   Gemeinsames Stylesheet für alle Seiten
   ───────────────────────────────────────────────────────────── */

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Montserrat', sans-serif;
}

/* ─── BACKGROUND ─────────────────────────────────────────────── */
body {
  background-image: url('/images/background.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Dark overlay for text legibility */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-logo img {
  height: 28px;
  width: auto;
  display: block;
  transition: transform 0.25s ease;
}

.header-logo img:hover {
  transform: scale(1.12);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease, letter-spacing 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
  letter-spacing: 0.14em;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 11;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.3rem;
    letter-spacing: 0.1em;
  }
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  padding: 1rem 2rem;
  text-align: center;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

/* Subpage footer — statisch am Seitenende */
.footer--static {
  position: static;
  margin-top: auto;
  padding: 2rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #ffffff;
}

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wave {
  0%, 20%, 100% { transform: translateY(0); }
  10%            { transform: translateY(-0.06em); }
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 0 rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 12px rgba(255, 255, 255, 0);
  }
}

/* ─── INDEX: HERO LAYOUT ─────────────────────────────────────── */
.wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.content {
  text-align: center;
  max-width: 860px;
  width: 100%;
}

/* ─── INDEX: HERO TITLE ──────────────────────────────────────── */
.hero-title {
  font-size: clamp(2.5rem, 8.5vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 2rem;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
  overflow: visible;
}

.hero-title .wave-char {
  display: inline-block;
  animation: wave 5s ease-in-out infinite;
}

.hero-title .wave-space {
  display: inline-block;
  width: 0.35em;
}

/* ─── INDEX: HERO SUBTITLE ───────────────────────────────────── */
.hero-subtitle {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 2.8rem;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.hero-subtitle span {
  font-size: clamp(0.85rem, 1.9vw, 1.05rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-subtitle span.accent {
  font-style: italic;
  font-weight: 500;
  color: #ffffff;
}

/* ─── INDEX: CTA BUTTON ──────────────────────────────────────── */
.cta-btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.18s ease;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards, pulse 2s ease-out 1.4s infinite;
}

.cta-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  animation: fadeUp 0s forwards;
}

.cta-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 768px) {
  .hero-title {
    margin-bottom: 1.6rem;
  }
  .hero-subtitle {
    gap: 0.45rem;
    margin-bottom: 2.2rem;
  }
  .cta-btn {
    padding: 0.9rem 1.8rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .wrapper {
    padding: 1.5rem;
  }
  .hero-title {
    margin-bottom: 1.3rem;
  }
  .hero-subtitle {
    gap: 0.4rem;
    margin-bottom: 2rem;
  }
  .hero-subtitle span {
    letter-spacing: 0;
  }
.cta-btn {
  width: 100%;
  max-width: 340px;
  padding: 1rem 1.5rem;
  text-align: center; 
}
}


/* ─────────────────────────────────────────────────────────────
   SUBPAGE — Gemeinsames Layout für alle Unterseiten
   ───────────────────────────────────────────────────────────── */

/* ─── SUBPAGE BASE ───────────────────────────────────────────── */
.subpage html,
.subpage body {
  overflow: auto;
  height: auto;
}

body.subpage {
  overflow: auto;
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 8rem 2rem 4rem;
  display: flex;
  justify-content: center;
}

.page-content {
  width: 100%;
  max-width: 860px;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
.page-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.page-content .intro {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 3.5rem;
  max-width: 620px;
}

/* Impressum-spezifisch */
.page-content--narrow {
  max-width: 720px;
}

.page-content--narrow h1 {
  margin-bottom: 2.5rem;
}

.page-content--narrow h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
}

.page-content--narrow p {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.page-content--narrow a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.page-content--narrow a:hover {
  color: #ffffff;
}

/* ─── SECTION LABEL ──────────────────────────────────────────── */
.section-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 1.8rem;
}

.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 3.5rem 0;
}

/* ─── PHASEN ─────────────────────────────────────────────────── */
.phases {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.phase {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 1.5rem;
  padding: 1.6rem 1.6rem 1.6rem 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  cursor: default;
}

.phase:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateX(4px);
}

.phase-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
  padding-top: 0.15rem;
  text-align: center;
  z-index: 1;
}

.phase-body h3 {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.phase-body .phase-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.phase-body p {
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* ─── CTA SUBPAGE ────────────────────────────────────────────── */
.cta-block {
  margin-top: 3rem;
  display: flex;
  justify-content: center; /* ← das fehlt */
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-btn-page {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.18s ease;
}

.cta-btn-page:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ─── LEISTUNGEN GRID ────────────────────────────────────────── */
.grid-intro {
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-style: italic;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.leistung-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.6rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.leistung-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}

.leistung-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.leistung-card p {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.leistung-card .leistung-claim {
  display: block;
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* ─── SUBPAGE RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .leistungen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .phase {
    grid-template-columns: 2rem 1fr;
    gap: 0 1rem;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 7rem 1.5rem 4rem;
  }
  .leistungen-grid {
    grid-template-columns: 1fr;
  }
  .cta-block {
    flex-direction: column;
    align-items: flex-start;
  }
}

    /* ─── REFERENZEN SPEZIFISCH ──────────────────────────────── */

    .referenz-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      margin-top: 0;
    }

    .referenz-card {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 12px;
      padding: 1.8rem;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      cursor: pointer;
      transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    }

    .referenz-card:hover {
      background: rgba(255, 255, 255, 0.13);
      border-color: rgba(255, 255, 255, 0.28);
      transform: translateY(-3px);
    }

    .referenz-card-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 0.5rem;
      gap: 1rem;
    }

    .referenz-name {
      font-size: clamp(1rem, 2vw, 1.2rem);
      font-weight: 700;
      color: #ffffff;
      letter-spacing: -0.01em;
    }

    .referenz-arrow {
      font-size: 1rem;
      color: rgba(255, 255, 255, 0.3);
      transition: color 0.2s ease, transform 0.2s ease;
      flex-shrink: 0;
    }

    .referenz-card:hover .referenz-arrow {
      color: rgba(255, 255, 255, 0.7);
      transform: translate(2px, -2px);
    }

    .referenz-branche {
      font-size: 0.8rem;
      font-weight: 400;
      color: rgba(255, 255, 255, 0.5);
      margin-bottom: 1rem;
    }

    .referenz-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-bottom: 1rem;
    }

    .referenz-tag {
      font-size: 0.68rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.5);
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 999px;
      padding: 0.2rem 0.65rem;
    }

    .referenz-desc {
      font-size: 0.85rem;
      font-weight: 400;
      color: rgba(255, 255, 255, 0.6);
      line-height: 1.7;
    }

    /* ─── OVERLAY ────────────────────────────────────────────── */
    .overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 100;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }

    .overlay.active {
      display: flex;
    }

    .overlay-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }

    .overlay-box {
      position: relative;
      z-index: 1;
      background: rgba(20, 20, 20, 0.85);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 16px;
      padding: 2.5rem;
      max-width: 620px;
      width: 100%;
      max-height: 85vh;
      overflow-y: auto;
      animation: overlayIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    @keyframes overlayIn {
      from { opacity: 0; transform: translateY(16px) scale(0.98); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .overlay-close {
      position: absolute;
      top: 1.2rem;
      right: 1.2rem;
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.4);
      font-size: 1.2rem;
      cursor: pointer;
      padding: 0.3rem;
      line-height: 1;
      transition: color 0.2s ease;
    }

    .overlay-close:hover {
      color: #ffffff;
    }

    .overlay-name {
      font-size: clamp(1.3rem, 3vw, 1.8rem);
      font-weight: 700;
      color: #ffffff;
      letter-spacing: -0.02em;
      margin-bottom: 0.3rem;
    }

    .overlay-branche {
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.45);
      margin-bottom: 1.2rem;
    }

    .overlay-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-bottom: 1.5rem;
    }

    .overlay-divider {
      border: none;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      margin: 1.5rem 0;
    }

    .overlay-desc {
      font-size: 0.9rem;
      font-weight: 400;
      color: rgba(255, 255, 255, 0.75);
      line-height: 1.8;
      margin-bottom: 1.5rem;
    }

    .overlay-links-label {
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.35);
      margin-bottom: 0.8rem;
    }

    .overlay-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
    }

    .overlay-link {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      color: #ffffff;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 999px;
      padding: 0.45rem 1rem;
      text-decoration: none;
      transition: background 0.2s ease, border-color 0.2s ease;
    }

    .overlay-link:hover {
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.35);
    }

    /* ─── RESPONSIVE ─────────────────────────────────────────── */
    @media (max-width: 600px) {
      .referenz-grid {
        grid-template-columns: 1fr;
      }
      .overlay-box {
        padding: 1.8rem;
      }
    }

      
    /* ─── LEITLINIEN ─────────────────────────────────────────── */
    .leitlinien {
      display: flex;
      flex-direction: column;
      gap: 0;
      counter-reset: leitlinie-counter;
    }

    .leitlinie {
      display: grid;
      grid-template-columns: 2rem 1fr;
      gap: 0 1.5rem;
      padding: 1.6rem 0;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      counter-increment: leitlinie-counter;
    }



    .leitlinie-number {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      color: rgba(255, 255, 255, 0.2);
      padding-top: 0.2rem;
    }

    .leitlinie-body {}

    .leitlinie-titel {
      font-size: clamp(1rem, 1.9vw, 1.15rem);
      font-weight: 700;
      color: #ffffff;
      margin-bottom: 0.4rem;
      letter-spacing: 0.01em;
    }

    .leitlinie-text {
      font-size: clamp(0.85rem, 1.6vw, 0.95rem);
      font-weight: 400;
      color: rgba(255, 255, 255, 0.58);
      line-height: 1.75;
    }

    /* ─── CTA BLOCK ──────────────────────────────────────────── */
    .philosophy-cta {
      margin-top: 3.5rem;
      padding-top: 2.5rem;
      text-align: center;
    }

    .philosophy-cta p {
      font-size: clamp(0.9rem, 1.8vw, 1rem);
      color: rgba(255, 255, 255, 0.58);
      line-height: 1.75;
      margin-bottom: 1.5rem;
    }

    @media (max-width: 480px) {
      .leitlinie {
        grid-template-columns: 1.8rem 1fr;
        gap: 0 1rem;
        padding: 1.3rem 0;
      }
    }
