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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', 'Assistant', sans-serif;
  font-weight: 400;
  color: #141553;
  background-color: #F5F2EC;
  line-height: 1.4;
  font-size: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #141553;
  text-decoration: underline;
}

a:hover {
  color: #0057E1;
}

/* === Navigation === */
.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 20px;
  font-family: 'Assistant', sans-serif;
  font-weight: 300;
  font-size: 25px;
  background-color: #F5F2EC;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 980px;
}

.site-nav a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #0057E1;
}

.site-nav a.active {
  color: #0057E1;
}

/* === Mobile Nav === */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #000;
  padding: 10px;
}

/* === Main Content === */
.page-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 175px 80px;
  flex: 1;
}

.page-content.home-content {
  padding: 40px 100px 80px;
}

/* === Home Page === */
.hero-banner {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.home-header {
  padding: 40px 0 10px;
}

.home-header h1 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 30px;
  color: #141553;
  line-height: 42px;
  margin-bottom: 4px;
}

.home-header .subtitle {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 25px;
  color: #141553;
  line-height: 35px;
}

.intro-section {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 50px;
  margin-bottom: 20px;
}

.portrait {
  width: 269px;
  height: 269px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.intro-text {
  flex: 1;
  text-align: justify;
}

.intro-text p {
  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  margin-bottom: 16px;
}

.intro-text a {
  color: #141553;
}

/* === Section Headings === */
.section-heading {
  font-family: 'Palatino Linotype', 'Palatino', 'Book Antiqua', serif;
  font-weight: 400;
  font-size: 30px;
  color: #2F329A;
  margin-top: 50px;
  margin-bottom: 20px;
}

/* === Lists === */
.content-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.content-list li {
  margin-bottom: 4px;
  line-height: 28px;
}

/* === Body Text === */
.body-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  margin-bottom: 16px;
  text-align: justify;
}

.body-text.no-justify {
  text-align: left;
}

/* === Page Title (subpages) === */
.page-title {
  font-family: 'Palatino Linotype', 'Palatino', 'Book Antiqua', serif;
  font-weight: 400;
  font-size: 30px;
  color: #2F329A;
  line-height: 42px;
  margin-bottom: 30px;
}

/* === Quote === */
.quote {
  font-family: 'Palatino Linotype', 'Palatino', 'Book Antiqua', serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: #2F329A;
  margin-bottom: 30px;
}

/* === Contact Info === */
.contact-info {
  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
}

.contact-info p {
  margin-bottom: 4px;
}

.contact-info .label {
  font-weight: 400;
}

/* === Emergency entries === */
.emergency-entry {
  margin-bottom: 30px;
}

.emergency-entry .org-name {
  font-weight: 700;
}

/* === Zur Person === */
.person-intro {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.person-intro .portrait {
  width: 269px;
  height: 269px;
}

.person-intro .person-text {
  flex: 1;
  text-align: justify;
}

.person-intro .person-text p {
  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
}

.sub-heading {
  font-family: 'Palatino Linotype', 'Palatino', 'Book Antiqua', serif;
  font-weight: 400;
  font-size: 20px;
  color: #2F329A;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* === Footer === */
.site-footer {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  margin-top: auto;
  width: 100%;
}

.footer-left {
  color: #141553;
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  color: #141553;
  text-decoration: underline;
  font-size: 16px;
}

/* === Impressum === */
.impressum-content h2 {
  font-family: 'Palatino Linotype', 'Palatino', 'Book Antiqua', serif;
  font-weight: 400;
  font-size: 22px;
  color: #141553;
  margin-top: 30px;
  margin-bottom: 10px;
}

.impressum-content p {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
}

/* === Responsive === */
@media (max-width: 768px) {
  .site-nav {
    padding: 10px 20px;
  }

  .nav-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    font-size: 18px;
  }

  .nav-toggle {
    display: none;
  }

  .hero-banner {
    height: 150px;
  }

  .page-content,
  .page-content.home-content {
    padding: 20px 20px 60px;
  }

  .home-header h1 {
    font-size: 24px;
  }

  .home-header .subtitle {
    font-size: 20px;
  }

  .portrait {
    width: 150px;
    height: 150px;
  }

  .intro-section {
    display: block;
  }

  .intro-section .portrait {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
  }

  .person-intro {
    display: block;
  }

  .person-intro .portrait {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
  }

  .intro-text,
  .person-intro .person-text {
    text-align: justify;
  }

  .section-heading,
  .page-title {
    font-size: 24px;
  }

  body {
    font-size: 18px;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-nav a {
    font-size: 16px;
  }

  .nav-links {
    gap: 0 16px;
  }

  .portrait {
    width: 120px;
    height: 120px;
  }
}
