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

:root {
  --primary:   #1E3A5F;
  --light:     #F7F8FA;
  --dark:      #111827;
  --mid:       #6B7280;
  --accent:    #E8B84B;
  --radius:    4px;
  --gap:       clamp(2rem, 5vw, 5rem);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

img, video { display: block; max-width: 100%; }
img { width: 100%; height: 100%; object-fit: cover; }

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p { font-size: clamp(1rem, 1.5vw, 1.1rem); max-width: 65ch; }

/* ── Layout helpers ── */
.container { width: min(1200px, 92%); margin-inline: auto; }
.section { padding-block: var(--gap); }

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.5rem, 5vw, 4rem);
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: box-shadow .25s;
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

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

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--mid);
  transition: color .2s;
}

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

/* ── Split hero (index) ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88svh;
  padding-top: 64px;
}

.hero-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem clamp(2rem, 6vw, 6rem);
  background: #fff;
}

.hero-split-text h1 {
  margin-bottom: 1.2rem;
  color: var(--dark);
}

.hero-split-text p {
  color: var(--mid);
  margin-bottom: 2rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.hero-split-text .btn { align-self: flex-start; }

.hero-split-image {
  overflow: hidden;
  position: relative;
}

.hero-split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .8rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  transition: background .2s, color .2s;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #162d4a; }
.btn-outline  { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ── Section: intro ── */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
}

.intro-text h2 { margin-bottom: 1.2rem; }
.intro-text p  { color: var(--mid); margin-bottom: 1rem; }

/* ── Section: impact numbers ── */
.impact-strip {
  background: var(--primary);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.impact-numbers {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 6rem);
  flex-wrap: wrap;
  text-align: center;
}

.impact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}

.impact-num {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: #fff;
  line-height: 1;
}

.impact-label {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

/* ── Section: pillars (used on verkstedene) ── */
.pillars {
  background: #EEF1F5;
  color: var(--dark);
  text-align: center;
}

.pillars h2 { margin-bottom: 3rem; }

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

.pillar { padding: 2.5rem 2rem; }

.pillar-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--primary);
  display: grid; place-items: center;
  margin: 0 auto 1.2rem;
  font-size: 1.3rem;
  color: #fff;
}

.pillar h3 { margin-bottom: .6rem; color: var(--primary); }
.pillar p  { color: var(--mid); margin-inline: auto; }

/* ── Section: workshops preview ── */
.workshops-preview { }
.workshops-preview h2 { margin-bottom: 2.5rem; }

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

.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  transition: border-color .2s, box-shadow .2s;
}

.card:hover {
  border-color: rgba(0,0,0,.15);
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
}

.card-image { aspect-ratio: 4/3; }

.card-body { padding: 1.4rem; }
.card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .5rem;
}
.card-body h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.card-body p  { color: var(--mid); font-size: .9rem; }

/* ── Full-bleed image band ── */
.band {
  height: clamp(240px, 35vw, 480px);
  overflow: hidden;
}

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

/* ── Section: team teaser ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.team-card { text-align: center; }

.team-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid #EEF1F5;
}

.team-card h3 { margin-bottom: .25rem; font-size: 1rem; }
.team-card p  { color: var(--mid); font-size: .88rem; max-width: 24ch; margin-inline: auto; }

/* ── Section: CTA strip ── */
.cta-strip {
  background: #EEF1F5;
  color: var(--dark);
  text-align: center;
  padding-block: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid rgba(0,0,0,.06);
}

.cta-strip h2 { margin-bottom: 1rem; }
.cta-strip p  { margin-inline: auto; color: var(--mid); margin-bottom: 2rem; }
.cta-strip .btn-primary { }
.cta-strip .btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}
.cta-strip .btn-outline:hover { background: var(--primary); color: #fff; }

/* ── Footer ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: .88rem;
}

footer strong { color: rgba(255,255,255,.9); font-weight: 700; font-size: 1.1rem; }

/* ── Page hero (inner pages) ── */
.page-hero {
  height: 55svh; min-height: 380px;
  position: relative;
  display: grid; place-items: end start;
  padding-top: 64px;
}

.page-hero .hero-media { position: absolute; inset: 0; }
.page-hero .hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.65) 0%, rgba(0,0,0,.2) 100%); }

.page-hero-content {
  position: relative; z-index: 1;
  color: #fff;
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
}

.page-hero-content .label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}

.page-hero-content h1 { max-width: 16ch; }

/* ── About page ── */
.about-body {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;
  align-items: start;
}

.about-body p + p { margin-top: 1rem; }
.about-body p { color: var(--mid); }

.goals-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.goals-list li {
  display: flex; align-items: flex-start; gap: .8rem;
  font-size: .97rem; color: var(--mid);
  padding: .6rem .8rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--radius);
}

.goals-list li::before {
  content: '→';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05em;
}

/* ── Workshops page ── */
.workshop-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 3rem;
  border-top: 1px solid rgba(0,0,0,.07);
}

.workshop-block:nth-child(even) { direction: rtl; }
.workshop-block:nth-child(even) > * { direction: ltr; }

.workshop-block-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
}

.workshop-block-text .label {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: .6rem;
  display: block;
}

.workshop-block-text h2 { margin-bottom: .8rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.workshop-block-text p  { color: var(--mid); }

.workshop-meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 1.2rem;
}

.meta-item {
  font-size: .85rem; font-weight: 600;
  color: var(--dark);
  display: flex; align-items: center; gap: .4rem;
}

.meta-item span { color: var(--mid); font-weight: 400; }

/* ── Carousel ── */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}

.carousel-slide.active { opacity: 1; }

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

.band-carousel {
  height: clamp(240px, 35vw, 480px);
}

.bilder-carousel {
  height: clamp(420px, 65vw, 800px);
  background: var(--dark);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background .2s;
}

.carousel-btn:hover { background: rgba(255,255,255,.3); }
.carousel-prev { left: 1.2rem; }
.carousel-next { right: 1.2rem; }

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 2;
}

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.25);
}

.carousel-counter {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  z-index: 2;
}

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px; height: 36px;
  color: var(--dark);
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}

.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); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .intro, .about-body, .workshop-block,
  .workshop-block:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }

  .hero-split { grid-template-columns: 1fr; }
  .hero-split-image { min-height: 50vw; }

  .pillars-grid, .cards, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-numbers { gap: 2rem; }
}

@media (max-width: 560px) {
  .pillars-grid, .cards, .team-grid { grid-template-columns: 1fr; }
  .impact-numbers { gap: 1.5rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background: #fff;
    z-index: 150;
    list-style: none;
  }

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

  .nav-links a {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
  }
}
