/* ========================================================
   ZukunftsRaumSprint® – Global Stylesheet
   ======================================================== */

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

:root {
  --slate: #404D67;
  --dark: #141413;
  --white: #FFFFFF;
  --offwhite: #FAF9F5;
  --accent: #F5F374;
  --accent-dim: #e8e65a;
  --warm-gray: #6B7280;
  --light-border: rgba(64, 77, 103, 0.12);
  --section-pad: clamp(4rem, 8vw, 7rem);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dark);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary:hover {
  background: var(--slate);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(64, 77, 103, 0.18);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--dark);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--light-border);
  cursor: pointer;
  transition: all 0.25s;
}

.btn-secondary:hover {
  border-color: var(--slate);
  color: var(--slate);
}

/* ========== SECTION SHARED ========== */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--warm-gray);
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ========== NAVIGATION ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-border);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--dark);
}

.nav-cta {
  background: var(--dark);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--slate);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-border);
    gap: 1rem;
  }

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

/* ========== HERO ========== */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50%       { opacity: 0.22; transform: scale(1.05); }
}

.hero {
  padding: calc(72px + var(--section-pad)) 0 var(--section-pad);
  background: var(--offwhite);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 77, 103, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 243, 116, 0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite 2s;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--dark);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  color: var(--dark);
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--slate);
  background: linear-gradient(180deg, transparent 60%, rgba(245, 243, 116, 0.5) 60%);
  padding: 0 0.1em;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--warm-gray);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: var(--dark);
  border-radius: 20px;
  padding: 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(20, 20, 19, 0.12);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
}

.hero-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  position: relative;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  line-height: 1.1;
}

.hero-stat .label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.3rem;
  display: block;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    order: -1;
  }
}

/* ========== PROBLEM SECTION ========== */
.problem {
  padding: var(--section-pad) 0;
  background: var(--dark);
  color: var(--white);
}

.problem .section-label { color: var(--accent); }
.problem .section-title { color: var(--white); }
.problem .section-subtitle { color: rgba(255, 255, 255, 0.6); }

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

.problem-card {
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.problem-card:hover::before { opacity: 1; }
.problem-card:hover { transform: translateY(-4px); }

.problem-card.negative {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.problem-card.negative:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 243, 116, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.problem-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.negative .problem-icon {
  background: rgba(245, 243, 116, 0.12);
}

.problem-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.problem-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.consequence-bar {
  display: flex;
  gap: 0;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.consequence-item {
  flex: 1;
  padding: 1.2rem 0.8rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

.consequence-item:last-child { border-right: none; }
.consequence-item:hover { background: rgba(245, 243, 116, 0.06); }

.consequence-item h4 {
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.consequence-item p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr !important; }
  .consequence-bar { flex-wrap: wrap; }
  .consequence-item { flex: 1 1 33%; }
}

@media (max-width: 560px) {
  .consequence-item { flex: 1 1 50%; }
}

/* ========== CASE STUDIES ========== */
.cases {
  padding: var(--section-pad) 0;
  background: var(--offwhite);
}

.case-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.case-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.2rem;
  border: 1px solid var(--light-border);
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.case-card.bad::before  { background: linear-gradient(90deg, var(--slate), rgba(64, 77, 103, 0.5)); }
.case-card.good::before { background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }

.case-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.bad .case-tag  { background: rgba(64, 77, 103, 0.1); color: var(--slate); }
.good .case-tag { background: rgba(245, 243, 116, 0.3); color: var(--dark); }

.case-card h3          { font-size: 1.15rem; margin-bottom: 0.5rem; }
.case-card .case-location { font-size: 0.85rem; color: var(--warm-gray); margin-bottom: 1.2rem; }

.case-metrics { display: flex; flex-direction: column; gap: 0.8rem; }

.case-metric {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--slate);
}

.case-metric .metric-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.case-metric strong      { color: var(--dark); }

.case-bottom {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--light-border);
  font-size: 0.85rem;
  font-weight: 600;
}

.bad .case-bottom  { color: var(--slate); }
.good .case-bottom { color: var(--dark); font-weight: 700; }

@media (max-width: 768px) {
  .case-cards { grid-template-columns: 1fr; }
}

/* ========== METHOD ========== */
.method {
  padding: var(--section-pad) 0;
  background: var(--dark);
  color: var(--white);
}

.method .section-label    { color: var(--accent); }
.method .section-title    { color: var(--white); }
.method .section-subtitle { color: rgba(255, 255, 255, 0.6); max-width: 700px; }

.phase-wrapper { margin-top: 2rem; }

.phase-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--accent);
}

.phase-label span {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  margin-left: 0.5rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  position: relative;
  z-index: 1;
}

.timeline-step h4 { font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--white); }
.timeline-step p  { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); line-height: 1.5; }

.sprint-day-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: rgba(245, 243, 116, 0.06);
  border: 1px solid rgba(245, 243, 116, 0.12);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .timeline, .sprint-day-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
}

@media (max-width: 480px) {
  .timeline, .sprint-day-grid { grid-template-columns: 1fr; }
}

/* ========== STAKEHOLDERS ========== */
.stakeholders {
  padding: var(--section-pad) 0;
  background: var(--white);
}

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

.stake-card {
  padding: 2rem;
  border-radius: 16px;
  background: var(--offwhite);
  border: 1px solid var(--light-border);
  transition: all 0.3s;
}

.stake-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.stake-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--dark);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.stake-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.stake-card p  { font-size: 0.88rem; color: var(--warm-gray); }

@media (max-width: 900px) { .stake-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stake-grid { grid-template-columns: 1fr; } }

/* ========== RESULTS ========== */
.results {
  padding: var(--section-pad) 0;
  background: var(--offwhite);
}

.results-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.result-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 2rem;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid rgba(64, 77, 103, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.3s;
}

.result-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: rgba(44, 85, 48, 0.15);
}

.result-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: rgba(44, 85, 48, 0.08);
  color: #2C5530;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  transition: all 0.3s;
}

.result-item:hover .result-icon { background: #2C5530; color: var(--white); }
.result-item h4 { font-size: 1.05rem; margin-bottom: 0.25rem; color: #2C5530; }
.result-item p  { font-size: 0.9rem; color: var(--slate); line-height: 1.55; }

/* ========== SCALE ========== */
.scale {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.scale-highlight {
  background: var(--slate);
  border-radius: 20px;
  padding: 3rem;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.scale-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.scale-stat .num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1.1;
}

.scale-stat .label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.3rem;
  display: block;
}

.scale-text h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.scale-text p  { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 1.5rem; }

.scale-text .btn-primary { background: var(--accent); color: var(--dark); }
.scale-text .btn-primary:hover { background: var(--accent-dim); }

@media (max-width: 768px) {
  .scale-highlight { grid-template-columns: 1fr; padding: 2rem; }
}

/* ========== TEAM ========== */
.team {
  padding: var(--section-pad) 0;
  background: var(--offwhite);
}

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

.team-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--light-border);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}

.team-card h3   { font-size: 1.05rem; margin-bottom: 0.2rem; }
.team-card .role{ font-size: 0.82rem; color: var(--warm-gray); margin-bottom: 1rem; }
.team-card p    { font-size: 0.85rem; color: var(--slate); }

@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ========== CTA ========== */
.cta {
  padding: var(--section-pad) 0;
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
  color: var(--white);
}

.cta p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta .btn-primary { background: var(--accent); color: var(--dark); font-size: 1.05rem; padding: 1rem 2.5rem; }
.cta .btn-primary:hover { background: var(--accent-dim); }

.cta-contact {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  gap: 3rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}

.cta-contact a { color: var(--accent); font-weight: 600; }

/* ========== FOOTER ========== */
footer {
  padding: 2rem 0;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

footer a { color: rgba(255, 255, 255, 0.5); }
footer a:hover { color: var(--accent); }

/* ========== ANIMATIONS ========== */
/*
  Fade-up elements are initially hidden only when JavaScript is active
  (html.js class). Without JS the content is immediately visible.
*/
.fade-up {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .fade-up {
  opacity: 0;
  transform: translateY(30px);
}

html.js .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html.js .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
