:root {
  --teal: #2596B3;
  --blue: #6EC1E4;
  --dark: #252525;
  --text: #3D4D6D;
  --white: #FFFFFF;
  --font: Helvetica, Arial, sans-serif;
  --header-height: 80px;
  --max-width: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--white);
  background: var(--teal);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.87);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 48px; width: auto; }

nav ul { list-style: none; display: flex; align-items: center; gap: 1.75rem; }

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.2s;
  white-space: nowrap;
}

nav a:hover { color: var(--blue); }

/* Dropdown */
nav li { position: relative; }

nav li > ul {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(0, 0, 0, 0.93);
  min-width: 210px;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

nav li:hover > ul { display: flex; }

nav li > ul > li a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

nav li > ul > li a:hover { background: rgba(255, 255, 255, 0.08); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.25s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav.open { display: block; }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 2rem;
  }

  nav > ul > li { width: 100%; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }

  nav li > ul {
    display: none;
    position: static;
    background: transparent;
    border: none;
    padding: 0.25rem 0 0 1rem;
    min-width: unset;
  }

  nav li.sub-open > ul { display: flex; }

  nav li > ul > li a { padding: 0.4rem 0; font-size: 0.85rem; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('/wp-content/uploads/2023/10/earth-1756274_1920.jpg') center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

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

.hero-logo {
  width: clamp(220px, 40vw, 420px);
  height: auto;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  will-change: transform;
  transition: transform 0.08s linear;
  pointer-events: none;
  user-select: none;
}

.hero-cta {
  display: inline-block;
  background: var(--blue);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
  border-radius: 3px;
  margin-bottom: 2.5rem;
  transition: opacity 0.2s;
}

.hero-cta:hover { opacity: 0.85; }

.hero-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  margin-bottom: 0.4rem;
  opacity: 0.92;
}

.hero-detail {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  opacity: 0.8;
}

/* ── Section base ── */
section { padding: 5rem 0; }

.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.section-body { font-size: 1.02rem; line-height: 1.85; }

/* ── Icon sections (Mission / Audience / Focus) ── */
.section-icon-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 5rem;
  align-items: center;
  min-height: 380px;
}

.section-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.section-icon-wrapper img {
  width: 290px;
  height: 290px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.25));
  pointer-events: none;
  user-select: none;
}

@media (max-width: 960px) {
  .section-icon-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: unset;
  }
  .section-icon-wrapper img { width: 180px; height: 180px; }
}

/* ── Mission ── */
.section-mission {
  background: var(--teal);
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 6rem;
  overflow-x: hidden;
}

.section-mission::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/wp-content/uploads/2023/10/dotlines.png') center / auto repeat;
  opacity: 0.15;
  pointer-events: none;
}

.section-mission .container { position: relative; z-index: 1; }

/* ── Audience ── */
.section-audience {
  background: var(--teal);
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-audience::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/wp-content/uploads/2023/10/dotlines.png') center / auto repeat;
  opacity: 0.72;
  pointer-events: none;
}

.section-audience .container { position: relative; z-index: 1; }

/* ── Focus ── */
.section-focus {
  background: var(--teal);
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-focus::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/wp-content/uploads/2023/10/dotlines.png') center / auto repeat,
              url('/wp-content/uploads/2023/10/texture-2.png') center / auto repeat;
  opacity: 0.28;
  pointer-events: none;
}

.section-focus .container { position: relative; z-index: 1; }

/* ── About cards ── */
.section-about {
  position: relative;
  overflow: hidden;
  background: url('/wp-content/uploads/2023/10/earth-7064607_1920-e1696184016244.jpg') center / cover no-repeat;
}

.section-about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(37, 150, 179, 0.55);
}

.section-about .container { position: relative; z-index: 1; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

.about-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
  transition: background 0.2s;
}

.about-card:hover { background: rgba(0,0,0,0.25); }

.about-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.about-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.about-card p { font-size: 0.9rem; opacity: 0.88; margin-bottom: 1rem; }

.about-card a.card-link {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.about-card a.card-link:hover { opacity: 0.75; }

/* ── VSSC / CTA teaser ── */
.section-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--teal);
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/wp-content/uploads/2023/10/verlauf-oben.png') top / 100% auto no-repeat,
              url('/wp-content/uploads/2023/10/texture-1.png') center / auto repeat;
  opacity: 0.28;
  pointer-events: none;
}

.section-cta .container { position: relative; z-index: 1; }
.section-cta h2 { font-size: clamp(1.4rem, 3vw, 2.25rem); margin-bottom: 1.75rem; }

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2.5rem;
  border-radius: 3px;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }

/* ── Footer ── */
footer {
  background: var(--blue);
  color: var(--dark);
  padding: 3rem 0 1.75rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-logo img { height: 72px; width: auto; }

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 0.65; text-decoration: underline; }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--dark);
  transition: opacity 0.2s;
}

.footer-social a:hover { opacity: 0.65; }

.footer-social svg { width: 18px; height: 18px; flex-shrink: 0; fill: var(--dark); }

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(37, 37, 37, 0.75);
}

/* ── Page hero (inner pages) ── */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: url('/wp-content/uploads/2023/10/pexels-david-besh-879356.jpg') center / cover no-repeat;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/wp-content/uploads/2023/10/verlauf-oben.png') top / 100% auto no-repeat,
              url('/wp-content/uploads/2023/10/texture-1.png') center / auto repeat;
  opacity: 0.3;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
}

/* ── Content area (inner pages) ── */
.section-content {
  background: var(--teal);
  position: relative;
  overflow: hidden;
}

.section-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/wp-content/uploads/2023/10/texture-1.png') center / auto repeat;
  opacity: 0.08;
  pointer-events: none;
}

.section-content .container { position: relative; z-index: 1; }

.section-content p {
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.section-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.section-content ol li {
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 0.85rem;
}

/* ── Contact form ── */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  border-radius: 3px;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); background: rgba(255,255,255,0.15); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.45); }

.form-group textarea { min-height: 150px; resize: vertical; }

.form-honeypot { display: none !important; }

.form-notice {
  padding: 1rem 1.5rem;
  border-radius: 3px;
  margin-bottom: 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-notice.success {
  background: rgba(110, 193, 228, 0.18);
  border: 1px solid var(--blue);
}

.form-notice.error {
  background: rgba(220, 80, 80, 0.15);
  border: 1px solid rgba(220, 80, 80, 0.5);
}

/* ── Back to top ── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  z-index: 150;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s;
}

#back-to-top.visible { display: flex; }
#back-to-top:hover { opacity: 0.8; }

/* ── Scroll animations ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* stagger children inside a reveal-group */
.reveal-group > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-group.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-group.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.reveal-group.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.24s; }
.reveal-group.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.36s; }

/* ── Utilities ── */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
