/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-serif-400.woff2') format('woff2');
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pt-serif-700.woff2') format('woff2');
}

/* ---------- Variables ---------- */
:root {
  --teal: #009879;
  --teal-dark: #007a61;
  --gray3: #4d4d4d;
  --gray2: #666666;
  --gray1: #999999;
  --gray-bg: #f2f2f2;
  --text: #1a1a1a;
  --header-height: 96px;
  --header-height-scrolled: 60px;
  --edge: max(24px, calc((100vw - 1100px) / 2 + 24px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
}

h1, h2 {
  font-family: 'PT Serif', serif;
  font-weight: 700;
}

h1 { font-size: 38px; }
h2 { font-size: 38px; margin-bottom: 16px; }

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  z-index: 100;
  transition: height 0.25s ease;
}

body.scrolled .site-header {
  height: var(--header-height-scrolled);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  height: 60px;
  width: auto;
  transition: height 0.25s ease;
}

body.scrolled .brand img {
  height: 36px;
}

.slogan {
  font-family: 'PT Serif', serif;
  font-size: 16px;
  color: var(--teal);
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray3);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray3);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Sections generic ---------- */
section p {
  margin: 0 0 16px 0;
}

.section {
  padding: 64px 0;
}

.bleed-row {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.bleed-row .text {
  flex: 1 1 55%;
  padding-top: 64px;
  padding-bottom: 64px;
}

.bleed-row .media-bleed {
  flex: 0 0 42%;
  overflow: hidden;
  position: relative;
}

.bleed-row .media-bleed img {
  position: absolute;
  top: -32px;
  left: 0;
  width: 100%;
  height: calc(100% + 64px);
  object-fit: cover;
}

/* ---------- About ---------- */
#about {
  margin-top: var(--header-height);
  padding: 0;
  background: var(--teal);
  color: #fff;
  transition: margin-top 0.25s ease;
}

body.scrolled #about {
  margin-top: var(--header-height-scrolled);
}

#about h1 { color: #fff; }

#about .text { padding-left: var(--edge); padding-right: 40px; }

/* ---------- Social ---------- */
#social {
  background: #fff;
  padding: 60px 0;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  color: var(--teal);
  transition: background 0.2s ease, color 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--teal);
  color: #fff;
}

.social-links svg {
  width: 28px;
  height: 28px;
}

/* ---------- Goals ---------- */
#goals {
  padding: 0;
  background: var(--gray-bg);
}

#goals .text { padding-right: var(--edge); padding-left: 40px; }

.goal-list {
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  border-top: 1px solid var(--gray1);
  margin-top: 16px;
}

.goal-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray1);
  display: flex;
  gap: 10px;
}

.goal-list li::before {
  content: '\2713';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

.goal-detail { display: none; }

.goal-trigger {
  cursor: pointer;
  transition: color 0.2s ease;
}

.goal-trigger:hover,
.goal-trigger:focus-visible {
  color: var(--teal);
}

.goal-overlay {
  position: absolute;
  inset: 0;
  background: var(--gray3);
  color: #fff;
  z-index: 5;
}

.goal-overlay-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.goal-overlay-track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
  will-change: transform;
}

.goal-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 13px 40px 13px;
  box-sizing: border-box;
}

.goal-slide-title {
  font-family: 'PT Serif', serif;
  font-size: 22px;
  margin-bottom: 12px;
}

.goal-slide-body {
  font-size: 18px;
  line-height: 1.6;
}

.goal-overlay-close {
  position: absolute;
  top: -2px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.goal-overlay-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  height: 100%;
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.goal-overlay-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.goal-overlay-nav:disabled {
  opacity: 0.25;
  pointer-events: none;
}

.goal-overlay-prev { left: 0; }
.goal-overlay-next { right: 0; }

/* ---------- Impressum headline band ---------- */
#impressum-headline {
  background: #fff;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#impressum-headline h2 { margin: 0; }

/* ---------- Legal sections ---------- */
#impressum {
  background: var(--gray-bg);
  width: 100%;
}

#impressum address {
  font-style: normal;
}

#impressum h3,
#privacy h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
}

#impressum p,
#privacy p {
  margin-bottom: 8px;
}

#privacy {
  background: var(--teal);
  color: #fff;
  width: 100%;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gray3);
  color: var(--gray1);
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray1);
  transition: color 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: #fff;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ---------- Parallax images ---------- */
.parallax {
  will-change: transform;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .bleed-row {
    flex-direction: column;
  }

  .bleed-row .text,
  #about .text,
  #goals .text {
    padding: 32px var(--edge);
  }

  .bleed-row .media-bleed {
    flex-basis: auto;
    width: 100%;
    height: clamp(250px, 55vw, 325px);
  }
}

@media (max-width: 700px) {
  .slogan { display: none; }

  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
  }

  body.scrolled .main-nav {
    top: var(--header-height-scrolled);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .main-nav li { border-top: 1px solid var(--gray-bg); }
  .main-nav a { display: block; padding: 12px 0; }

  .section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parallax { transform: none !important; }
}
