/* =========================================================
   Variables
========================================================= */
:root {
  --main-blue: #003366;
  --accent-blue: #007acc;

  --text: #222;
  --white: #fff;

  --shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  --shadow-hover: 0 6px 15px rgba(0, 0, 0, 0.30);

  --radius: 12px;
  --container: 1100px;

  /* used to make all pages the same height */
  --header-h: 64px;

}

/* =========================================================
   Global / Reset
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 150%; 
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(to bottom right, #e8f0f7, #ffffff);
  line-height: 1.5;
}

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

/* =========================================================
   Accessibility
========================================================= */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--main-blue);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  box-shadow: var(--shadow);
}
.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2000;
}

/* =========================================================
   Header / Navigation
========================================================= */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* keep nav items next to each other */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; 
  align-items: center;     
  flex-direction: row;
  flex-wrap: nowrap; /* IMPORTANT: prevents stacking */
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  color: var(--main-blue);
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

/* =========================================================
   Sections (shared page sizing + layout)
========================================================= */
.section,
.hero {
  min-height: calc(100svh - var(--header-h));
}

.section {
  padding: clamp(3rem, 6vw, 6rem) 1rem;
  text-align: center;
}

/* Do NOT auto-center content inside contact section */
#contact.section--contact > * {
  margin-left: 0;
  margin-right: 0;
}

.section > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.section--dark {
  color: var(--white);
}

.section-lead {
  max-width: 70ch;
  margin: 1rem auto 0;
}

/* =========================================================
   Background Images per Section
========================================================= */
#about {
  background: url("../images/background_second_page.png") center/cover no-repeat;
}

/* Third page background: apply directly to contact too */
#contact.section--contact {
  background: url("../images/Website_European_Map.png") center/cover no-repeat;
}

/* =========================================================
   Hero (Title Page)
========================================================= */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(rem, 6vw, 6rem) 1rem;

  background: url("../images/titlepage_background_black_end.png") center/cover no-repeat;
  background-color: rgba(0, 51, 102, 0.6);
  background-blend-mode: multiply;
  color: var(--white);
}

.hero-content {
  max-width: 80ch;
}

.hero h1 {
  font-size: clamp(3rem, 5.5vw, 4rem);
  margin: 0 0 0.5rem 0;
}

/* tighter spacing on title text */
.tagline {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin: 0.25rem 0 0;
  line-height: 1.35;
}

.hero-logo {
  position: absolute;
  top: 3.5rem;
  right: 1.25rem;
  width: min(520px, 60vw);
  height: auto;
  opacity: 0.95;
  pointer-events: none;
}

/* =========================================================
   Team Section (About)
========================================================= */
.team-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px; /* adjust if needed */
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 2.25rem;
  align-items: stretch;
}

.team-card {
  display: flex;
  flex-direction: column;

  background: rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.20);
  padding: 1.5rem;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  align-content: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.team-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  margin-bottom: 0.5rem;
}

.role {
  font-weight: 700;
  color: var(--white);
  margin: 0.25rem 0 0.5rem 0;
}

/* =========================================================
   Buttons
========================================================= */
.btn {
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--main-blue);
}
.btn--primary:hover {
  opacity: 0.92;
}

/* Email SVG button */
.emailBtn {
  align-self: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin: 0.75rem auto 1rem;
  line-height: 0;          /* prevents stray baseline spacing */
  color: #fff;             /* used if SVG uses currentColor */
}

.emailBtn .icon {
  display: block;
  height: 28px;            /* use a fixed height for consistency */
  width: auto;
  fill: currentColor;      /* safest */
}
/* =========================================================
   What we do Section 
========================================================= */
/* Reuse second page background */
.section--secondary-bg {
  background: url("../images/background_second_page.png") center/cover no-repeat;
}
/* Wide card – based on team-card but stretched */
.wide-card {
  display: block;
  padding: 2.5rem 3rem;
  background: rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.20);

  padding: 2rem;
  margin: 3rem auto 0;

  max-width: calc(var(--container) * 0.9); /* ≈ 3 team cards */
  width: 100%;

  text-align: left;
}

/* Typography inside the wide card */
.wide-card h3 {
  margin-top: 0;
}

.wide-card p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .wide-card {
    max-width: 100%;
  }
}


/* =========================================================
   Contact Section (Left-aligned textbox)
========================================================= */
#contact.section--contact {
  display: flex;
  justify-content: flex-start;     /* left aligned */
  align-items: flex-start;         /* NOT vertically centered */

  padding-left: clamp(2rem, 8vw, 6rem);
  padding-right: 1rem;

  /* push content down to ~3/4 page height */
  padding-top: 10vh;
}

.contact-card {
  width: min(520px, 100%);
  text-align: left;
  padding: 2rem;

  /* improves readability on map background */
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(2px);
}

.contact-text {
  margin: 0.75rem 0 0;
}

.privacy-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
}

.privacy-link:hover {
  opacity: 0.85;
}
.imprint-section {
  padding: 4rem 1rem;
}

.imprint-card {
  max-width: 700px;
  margin: 0 auto;
}

.imprint-line {
  text-align: left;
  margin: 0.25rem 0;
}

.imprint-label {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.25rem;
}


/* =========================================================
   Footer
========================================================= */
.site-footer {
  background: #ffffff;
  color: #000;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.footer-btn {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--main-blue);
  color: var(--main-blue);
}
.footer-btn:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 768px) {
  /* nav: allow horizontal scroll instead of stacking */
  .nav {
    justify-content: center;
    width: 100%;
  }

  .nav a {
    font-size: 0.95rem; white-space: nowrap; 
  }

  .nav-list {
    display: flex;
    justify-content: center; /* ADD THIS */
    align-items: center;     /* optional but recommended */
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-list::-webkit-scrollbar {
    display: none;
  }

  /* contact: center on small screens */
  #contact.section--contact {
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

/* =========================================================
   Reduced motion
========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.team-content { flex: 1; }

.team-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.team-actions .btn {
  flex: 1;
  min-width: 0;
}

/* =========================================================
   Benefits (icons + list layout)
========================================================= */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  text-align: left;
}

.benefit-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  align-items: center;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.benefit-icon svg {
  width: 44px;
  height: 44px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.benefit-text h3 {
  margin: 0 0 0.35rem 0;
}

.benefit-text p {
  margin: 0;
  opacity: 0.95;
}

/* Mobile */
@media (max-width: 640px) {
  .benefit-item {
    grid-template-columns: 52px 1fr;
  }
  .benefit-icon {
    width: 52px;
    height: 52px;
  }
  .benefit-icon svg {
    width: 36px;
    height: 36px;
  }
}
