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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Offset for sticky header */
}

body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Header styles */
.site-header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000;
  padding: 1rem 2rem;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 60px;
  height: auto;
}

.site-title h1 {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
  margin: 0;
}

/* Navigation styles */
.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #c8102e;
}

/* Main content */
main {
  min-height: 60vh;
}

/* Content sections - common width container */
.content-section,
.section-with-image {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-centered {
  text-align: center;
  background: #f5f5f5;
  background-clip: content-box;
}

.section-centered > *:first-child {
  margin-top: 3rem;
}

.section-centered > *:last-child {
  margin-bottom: 3rem;
}

.section-centered h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid #c8102e;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-centered p {
  max-width: 800px;
  margin: 1rem auto;
  line-height: 1.8;
}

/* Centered section without background */
.section-centered-no-bg {
  text-align: center;
}

.section-centered-no-bg h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid #c8102e;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-centered-no-bg p {
  max-width: 800px;
  margin: 1rem auto;
  line-height: 1.8;
}

/* Team images layout */
.team-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.team-member img {
  width: 100%;
  max-width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
}

.team-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: #333;
}

.team-role {
  font-size: 0.95rem;
  color: #999;
  margin: 0;
}

/* Gallery grid layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
}

/* Full-width grey section */
.full-width-grey-section {
  background: #f5f5f5;
  padding: 4rem 2rem;
}

.full-width-grey-section .content-container {
  max-width: 1200px;
  margin: 0 auto;
}

.grey-subsection {
  text-align: center;
  padding: 2rem 0;
}

.grey-subsection:first-child {
  padding-top: 0;
}

.grey-subsection:last-child {
  padding-bottom: 0;
}

.grey-subsection h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid #c8102e;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.grey-subsection p {
  max-width: 800px;
  margin: 1rem auto;
  line-height: 1.8;
}

/* Text-image layout */
.section-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-with-image.reverse {
  grid-template-columns: 1fr 1fr;
}

.section-with-image.reverse .text-content {
  order: 2;
}

.section-with-image.reverse .image-content {
  order: 1;
}

.text-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid #c8102e;
  display: table;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0.5rem;
}

.text-content p {
  line-height: 1.8;
  margin: 1rem 0;
}

.text-content ul,
.text-content ol {
  line-height: 1.4;
  padding-left: 2rem;
  margin: 1rem 0;
}

.text-content li {
  margin: 0.25rem 0;
}

.image-content img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Button styles */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.button:hover {
  background: #c8102e;
}

/* Footer styles */
.site-footer {
  background: white;
  border-top: 1px solid #e0e0e0;
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-impressum h3 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #333;
  border-bottom: 3px solid #c8102e;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-impressum p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.footer-impressum .org-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  margin-top: 1rem;
}

.footer-impressum .address {
  font-size: 1.05rem;
  color: #333;
  margin-top: 0.75rem;
}

.footer-impressum .contact-details {
  font-size: 0.95rem;
  color: #999;
  margin: 0.25rem 0;
}

.footer-impressum .contact-link {
  margin-top: 0.75rem;
}

.footer-impressum .contact-link a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-impressum .contact-link a:hover {
  color: #c8102e;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.footer-nav a {
  text-decoration: none;
  color: #666;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #c8102e;
}

/* Responsive design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  /* 1 column for ALL sections */
  .section-with-image,
  .section-with-image.reverse {
    grid-template-columns: 1fr;
  }

  /* Always put text first on mobile */
  .section-with-image .text-content {
    order: 1;
  }

  .section-with-image.reverse .text-content {
    order: 1;
  }

  .section-with-image .image-content {
    order: 2;
  }

  .section-with-image.reverse .image-content {
    order: 2;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .team-images {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-member img {
    max-width: 200px;
    height: 200px;
  }

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

  .gallery-grid img {
    height: 200px;
  }
}

