:root {
  --ink: #1a1a2e;
  --warm: #f5f0e8;
  --accent: #c0392b;
  --accent-light: #e74c3c;
  --gold: #d4a843;
  --teal: #2c7a7b;
  --teal-light: #38b2ac;
  --teal-deep: #1a5c5c;
  --soft-gray: #e8e2d8;
  --soft: #e8e2d8;
  --mid-gray: #8a8577;
  --cream: #faf8f3;
  --shadow: rgba(26,26,46,0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}

nav.scrolled {
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--soft-gray);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-logo {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo span { color: var(--accent); }

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

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

@keyframes nav-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 3rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg .circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
}

.hero-bg .circle-1 {
  width: 700px; height: 700px;
  background: var(--accent);
  top: -200px; right: -150px;
  animation: float 20s ease-in-out infinite;
}

.hero-bg .circle-2 {
  width: 500px; height: 500px;
  background: var(--teal);
  bottom: -100px; left: -100px;
  animation: float 25s ease-in-out infinite reverse;
}

.hero-bg .circle-3 {
  width: 300px; height: 300px;
  background: var(--gold);
  top: 40%; left: 50%;
  animation: float 18s ease-in-out infinite 3s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── SECTION BACKGROUND CIRCLES ── */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section-bg .s-circle {
  position: absolute;
  border-radius: 50%;
}

/* Team – diagonal, zur Mitte hin */
#team .s-circle-1 {
  width: 480px; height: 480px;
  background: var(--teal);
  top: -80px; right: 5%;
  opacity: 0.15;
  animation: float 22s ease-in-out infinite;
}
#team .s-circle-2 {
  width: 320px; height: 320px;
  background: var(--accent);
  bottom: -60px; left: 10%;
  opacity: 0.13;
  animation: float 18s ease-in-out infinite reverse;
}
#team .s-circle-3 {
  width: 200px; height: 200px;
  background: var(--gold);
  top: 40%; left: 42%;
  opacity: 0.12;
  animation: float 26s ease-in-out infinite 2s;
}

/* Vision – Dreieck, zur Mitte hin */
#vision .s-circle-1 {
  width: 500px; height: 500px;
  background: var(--accent);
  top: -80px; right: 10%;
  opacity: 0.18;
  animation: float 20s ease-in-out infinite;
}
#vision .s-circle-2 {
  width: 360px; height: 360px;
  background: var(--teal);
  bottom: -60px; left: 15%;
  opacity: 0.15;
  animation: float 25s ease-in-out infinite reverse;
}
#vision .s-circle-3 {
  width: 220px; height: 220px;
  background: var(--gold);
  top: 35%; left: 40%;
  opacity: 0.14;
  animation: float 18s ease-in-out infinite 3s;
}

/* Arbeit – verschobene Diagonale, zur Mitte hin */
#arbeit .s-circle-1 {
  width: 400px; height: 400px;
  background: var(--accent);
  top: -60px; left: 5%;
  opacity: 0.16;
  animation: float 24s ease-in-out infinite 1s;
}
#arbeit .s-circle-2 {
  width: 280px; height: 280px;
  background: var(--teal);
  bottom: -40px; right: 12%;
  opacity: 0.16;
  animation: float 15s ease-in-out infinite reverse;
}
#arbeit .s-circle-3 {
  width: 180px; height: 180px;
  background: var(--gold);
  top: 40%; left: 48%;
  opacity: 0.14;
  animation: float 22s ease-in-out infinite 2s;
}

/* Haltung – drei Punkte, zur Mitte hin */
#haltung .s-circle-1 {
  width: 560px; height: 560px;
  background: var(--gold);
  top: -100px; left: 5%;
  opacity: 0.12;
  animation: float 28s ease-in-out infinite;
}
#haltung .s-circle-2 {
  width: 320px; height: 320px;
  background: var(--teal-light);
  bottom: -60px; right: 10%;
  opacity: 0.14;
  animation: float 19s ease-in-out infinite reverse 3s;
}
#haltung .s-circle-3 {
  width: 200px; height: 200px;
  background: var(--accent-light);
  top: 25%; right: 28%;
  opacity: 0.12;
  animation: float 16s ease-in-out infinite 1s;
}

/* Werte – asymmetrisch, zur Mitte hin */
#werte .s-circle-1 {
  width: 420px; height: 420px;
  background: var(--teal);
  bottom: -60px; right: 8%;
  opacity: 0.15;
  animation: float 21s ease-in-out infinite 1s;
}
#werte .s-circle-2 {
  width: 260px; height: 260px;
  background: var(--gold);
  top: -30px; left: 10%;
  opacity: 0.16;
  animation: float 26s ease-in-out infinite reverse;
}
#werte .s-circle-3 {
  width: 160px; height: 160px;
  background: var(--accent);
  top: 35%; left: 45%;
  opacity: 0.14;
  animation: float 14s ease-in-out infinite 4s;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink);
  max-width: 650px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  border-radius: 4px;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(192, 57, 43, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--accent);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}



/* ══════════════════════════════════════
   KURZ GESAGT INLINE
   ══════════════════════════════════════ */

.hero-cta-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.kurz-inline {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.5s ease, opacity 0.4s ease;
  align-self: center;
}

.kurz-inline.open {
  max-width: 420px;
  opacity: 1;
}

.kurz-inline p {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink);
  width: 380px;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.55);
  border-radius: 0 4px 4px 0;
}

/* ══════════════════════════════════════
   SECTIONS COMMON
   ══════════════════════════════════════ */
section {
  padding: 7rem 3rem;
  position: relative;
  overflow: hidden;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════
   TEAM / WER WIR SIND - CONSTELLATION
   ══════════════════════════════════════ */
.team-constellation {
  position: relative;
  min-height: 420px;
  width: 100%;
}

.team-member {
  position: absolute;
  cursor: pointer;
  z-index: 10;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream);
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.3s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--soft-gray);
}

.member-info {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%) translateX(20px);
  background: white;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 30px var(--shadow);
  width: 280px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 901px) {
  /* Popup links zeigen für Mitglieder die rechts positioniert sind */
  .team-member.popup-left .member-info {
    left: auto;
    right: 100%;
    transform: translateY(-50%) translateX(20px);
  }

  .team-member:hover img {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  }

  .team-member:hover {
    z-index: 40;
  }

  .team-member:hover .member-info {
    opacity: 1;
    transform: translateY(-50%) translateX(10px);
    pointer-events: all;
  }

  .team-member.popup-left:hover .member-info {
    transform: translateY(-50%) translateX(-10px);
  }
}

.member-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.member-info p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4a4a5a;
  margin-bottom: 0.25rem;
}

.member-why {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--soft-gray);
  font-style: italic;
}


.member-strip { display: none; }

@media (max-width: 900px) {
  /* ── Team: card grid ── */
  .team-constellation {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    min-height: unset;
    overflow: visible;
  }

  .constellation-overlay { display: none; }

  .team-member {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: block;
    margin: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .team-member.card-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .team-member img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    object-fit: cover;
    filter: grayscale(20%) brightness(0.75);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  }

  .team-member.in-view img {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(0.5);
  }

  /* always-visible name strip */
  .member-strip {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: 3rem 1rem 1rem;
    background: linear-gradient(to top, rgba(26,26,46,0.9) 55%, transparent);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .team-member.in-view .member-strip { opacity: 0; }

  .member-strip-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--cream);
  }

  /* info overlay */
  .member-info {
    position: absolute;
    top: auto;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(to top, rgba(26,26,46,0.97) 50%, rgba(26,26,46,0.82) 100%);
    padding: 1rem 0.9rem 1rem;
    text-align: left;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .team-member:hover .member-info {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }


  .member-info h4 {
    color: var(--cream);
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .member-info p {
    color: rgba(240, 235, 224, 0.8);
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
  }

  .member-why {
    border-top: 1px solid rgba(255,255,255,0.15) !important;
    padding-top: 0.35rem;
    margin-top: 0.3rem;
    color: var(--gold) !important;
    font-style: italic;
  }

  /* accent line at top of card */
  .team-member::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 4;
  }

  .team-member.in-view::after { transform: scaleX(1); }

}

@media (max-width: 600px) {
  /* Phone: single-column, full-height cards – scroll one by one */
  .team-constellation {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-member {
    height: 75vh;
    min-height: 320px;
    aspect-ratio: unset;
  }

  /* Info-Overlay anzeigen wenn Karte vollständig im Viewport ist */
  .team-member .member-info {
    display: block;
  }

  .team-member.in-view .member-info {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
}

.section-text {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.9;
  color: #4a4a5a;
  max-width: 700px;
}

/* ── ANIMATED REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   VISION & MISSION
   ══════════════════════════════════════ */
#vision {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
}

.vision-mission {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.vm-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.vm-circle-btn {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 1.8rem 2.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Source Sans 3', sans-serif;
}

.vm-circle-btn.vision {
  background: white;
  border: 2px solid var(--soft-gray);
  box-shadow: 0 4px 40px var(--shadow);
  color: var(--ink);
}

.vm-circle-btn.mission {
  background: linear-gradient(135deg, var(--teal), #1a5c5c);
  color: white;
  box-shadow: 0 4px 40px rgba(42, 110, 110, 0.3);
}

.vm-circle-btn:hover {
  z-index: 3;
  transform: scale(1.06);
  box-shadow: 0 10px 60px rgba(0,0,0,0.2);
}

.vm-circle-btn.active {
  z-index: 3;
  transform: scale(1.08);
}

.vm-btn-icon {
  font-size: 2rem;
}

.vm-btn-label {
  margin-top: -0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
}

.vm-btn-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0.15rem;
}

.vm-circle-btn.mission .vm-btn-subtitle {
  color: rgba(255,255,255,0.9);
}

.vm-collapse {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.vm-collapse.open {
  max-height: 500px;
  opacity: 1;
}

.vm-collapse p {
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 300;
  color: var(--ink);
  text-align: center;
  margin-bottom: 0.75rem;
}

/* ══════════════════════════════════════
   SO ARBEITEN WIR
   ══════════════════════════════════════ */
.work-section { background: var(--warm); min-height: 100vh; display: flex; align-items: center; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

.work-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 20px var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26,26,46,0.12);
  border-bottom-color: var(--accent);
}

.work-card.open {
  border-bottom-color: var(--accent);
}

.work-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.work-card h4::after {
  content: '+';
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  opacity: 0.35;
  flex-shrink: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.work-card.open h4::after {
  content: '×';
  opacity: 0.6;
  transform: rotate(90deg);
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0) scale(1);    opacity: 0.35; }
  35%       { transform: translateY(-5px) scale(1.35); opacity: 0.9; }
  65%       { transform: translateY(-2px) scale(1.2);  opacity: 0.7; }
}

.work-card.hint h4::after {
  animation: hint-bounce 0.7s ease 2;
}

.work-card.hint:nth-child(2) h4::after { animation-delay: 0.3s; }
.work-card.hint:nth-child(3) h4::after { animation-delay: 0.6s; }

.work-card p {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.work-card.open p {
  max-height: 200px;
  opacity: 1;
  margin-top: 1rem;
}

/* ══════════════════════════════════════
   HALTUNG – STEPPER
   ══════════════════════════════════════ */
#haltung { background: var(--warm); min-height: 100vh; }

.haltung-stepper {
  margin-top: 2.5rem;
  max-width: 800px;
}

.stepper-progress {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.stepper-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--soft-gray);
  transition: background 0.4s ease, transform 0.4s ease;
  flex-shrink: 0;
}

.stepper-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

.stepper-dot.done {
  background: var(--teal);
  transform: scale(1);
}

.stepper-slides {
  position: relative;
  min-height: 160px;
}

.stepper-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.stepper-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.stepper-slide.exit {
  opacity: 0;
  transform: translateX(-40px);
}

.stepper-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink);
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
}

.stepper-slide.active .stepper-seal {
  transform: scale(1);
  opacity: 1;
}

.stepper-nav {
  margin-top: 3rem;
  min-height: 52px;
  display: flex;
  align-items: center;
}

#stepper-next {
  transition: opacity 0.3s ease, transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

#stepper-next.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════
   WERTE – PUZZLE GRID
   ══════════════════════════════════════ */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

.values { padding: 7rem 0; }

.puzzle-grid {
  position: relative;
  margin-top: 3rem;
}

/* ── The single interlocking SVG ── */
.puzzle-svg {
  width: 100%;
  height: auto;
  display: block;
}

.pp {
  stroke-width: 0.4;
  stroke-linejoin: round;
  transition: filter 0.3s ease;
}

.pp-1 { fill: #fff;            stroke: #ddd7cf; }
.pp-2 { fill: var(--ink);      stroke: var(--ink); }
.pp-3 { fill: #fff;            stroke: #ddd7cf; }
.pp-4 { fill: var(--teal);     stroke: var(--teal-deep); }
.pp-5 { fill: var(--warm);     stroke: #dbd5cb; }
.pp-6 { fill: #fff;            stroke: #ddd7cf; }

.pp-1:hover { filter: brightness(0.96); }
.pp-2:hover { filter: brightness(1.18); }
.pp-3:hover { filter: brightness(0.96); }
.pp-4:hover { filter: brightness(1.1); }
.pp-5:hover { filter: brightness(0.96); }
.pp-6:hover { filter: brightness(0.96); }

/* ── Text overlays: 3×2 grid matching the SVG ── */
.puzzle-overlays {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.puzzle-piece {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.6rem 1.4rem;
  cursor: pointer;
  overflow: visible;
  border-radius: 8px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              box-shadow 0.3s ease;
}

.puzzle-piece:nth-child(2),
.puzzle-piece:nth-child(4) { color: #fff; }

/* ── Piece flies to center on hover, or animates back ── */
.puzzle-piece.hovering,
.puzzle-piece.returning {
  pointer-events: none;
}

.puzzle-piece.hovering {
  box-shadow: 0 28px 80px rgba(26,26,46,0.32);
  z-index: 50;
}

.puzzle-piece:nth-child(1).hovering { background: #fff; color: var(--ink); }
.puzzle-piece:nth-child(2).hovering { background: var(--ink); color: #fff; }
.puzzle-piece:nth-child(3).hovering { background: #fff; color: var(--ink); }
.puzzle-piece:nth-child(4).hovering { background: var(--teal); color: #fff; }
.puzzle-piece:nth-child(5).hovering { background: var(--warm); color: var(--ink); }
.puzzle-piece:nth-child(6).hovering { background: #fff; color: var(--ink); }

/* Dim other pieces */
.puzzle-overlays.has-hover .puzzle-piece:not(.hovering) {
  opacity: 0.18;
}

/* Dim SVG paths, keep the active one bright */
.puzzle-svg .pp { transition: opacity 0.3s ease, filter 0.3s ease; }
.puzzle-grid.has-hover .pp { opacity: 0.3; }
.puzzle-grid.has-hover .pp.active { opacity: 1; }

/* ── Piece content ── */
.puzzle-piece:hover .piece-num { opacity: 0.15; }

.piece-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
  flex-shrink: 0;
  background: rgba(0,0,0,0.06);
  transition: transform 0.4s var(--ease);
}

.puzzle-piece:nth-child(2) .piece-icon,
.puzzle-piece:nth-child(4) .piece-icon { background: rgba(255,255,255,0.12); }

.puzzle-piece:hover .piece-icon { transform: scale(1.1) rotate(-4deg); }

.plain-amp {
  font-family: 'Source Sans 3', sans-serif;
}

.piece-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  text-align: center;
}

.piece-desc {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s var(--ease);
}

.puzzle-piece.hovering .piece-desc,
.puzzle-piece.active .piece-desc {
  opacity: 1;
  max-height: 200px;
}

.puzzle-piece:nth-child(2) .piece-desc,
.puzzle-piece:nth-child(4) .piece-desc { color: rgba(255,255,255,0.8); }


/* ══════════════════════════════════════
   IMPRESSUM MODAL
   ══════════════════════════════════════ */
.impressum-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.impressum-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.impressum-modal {
  background: var(--cream);
  border-radius: 12px;
  padding: 2.5rem 3rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 80px rgba(26, 26, 46, 0.25);
}

.impressum-overlay.open .impressum-modal {
  transform: translateY(0);
}

.impressum-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--mid-gray);
  cursor: pointer;
  transition: color 0.2s;
}

.impressum-close:hover { color: var(--ink); }

.impressum-modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.impressum-modal h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.impressum-modal p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4a4a5a;
}

.impressum-modal a {
  color: var(--teal);
  text-decoration: none;
}

.impressum-modal a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 3rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1rem;
}

.footer-logo span { color: var(--accent); }

footer p {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

/* ══════════════════════════════════════
   MOBILE MENU OVERLAY
   ══════════════════════════════════════ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250, 248, 243, 0.7);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav a {
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}

.mobile-nav a:hover { color: var(--accent); }

/* ══════════════════════════════════════
   MOBILE BURGER
   ══════════════════════════════════════ */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .burger { display: flex; }
  section { padding: 4rem 1.5rem; }
  .hero { padding: 5rem 1.5rem 3rem; }
  .vision-mission { flex-direction: column; align-items: center; gap: 2rem; }
  .vm-col { width: 100%; }
  .vm-circle-btn { width: 180px; height: 180px; }
  .work-grid { grid-template-columns: 1fr; }
  .hero-cta-wrapper { flex-direction: column; gap: 1rem; }
  .hero-cta { flex-direction: column; }
  .kurz-inline { max-width: 100%; width: 100%; }
  .kurz-inline.open { max-width: 100%; }
  .kurz-inline p { width: 100%; }
  .btn { justify-content: center; }
  .puzzle-svg { display: none; }
  .puzzle-overlays {
    position: static;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
  }
  .puzzle-piece {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(26,26,46,0.08);
    min-height: 160px;
  }

  .puzzle-piece .piece-desc {
    opacity: 1;
    max-height: 200px;
  }
  .puzzle-piece:nth-child(2) { background: var(--ink); }
  .puzzle-piece:nth-child(4) { background: linear-gradient(145deg, var(--teal), var(--teal-deep)); }
}

@media (max-width: 580px) {
  .puzzle-overlays { grid-template-columns: 1fr; }
}
