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

:root {
  --color-primary: #8b4513;
  --color-primary-dark: #5d2e0c;
  --color-secondary: #d4a574;
  --color-bg-dark: #1a1612;
  --color-bg-light: #f5f0e8;
  --color-text: #2c2416;
  --color-text-light: #f5f0e8;
  --color-accent: #c9a227;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--color-bg-dark);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text-light);
}

.logo-year {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--color-accent);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text-light);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(26, 22, 18, 0.7), rgba(26, 22, 18, 0.9)),
    url("/img/sbl.avif");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 20px 60px;
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-subtitle {
  color: var(--color-accent);
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(245, 240, 232, 0.85);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.hero-btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--color-primary);
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 60px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(245, 240, 232, 0.2);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-number {
  display: block;
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
}

/* Overview Grid */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.overview-text .lead-text {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--color-primary-dark);
}

.overview-text p {
  margin-bottom: 15px;
}

.causes-list {
  list-style: none;
  margin-top: 20px;
}

.causes-list li {
  padding: 12px 0;
  padding-left: 25px;
  position: relative;
  border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.causes-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.overview-image {
  position: relative;
}

.overview-image img {
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-caption {
  display: block;
  margin-top: 15px;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/* Phases Grid */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.phase-card {
  background: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 8px;
  padding: 30px 25px;
  transition: all 0.3s ease;
}

.phase-card:hover {
  background: rgba(245, 240, 232, 0.1);
  transform: translateY(-5px);
}

.phase-number {
  width: 45px;
  height: 45px;
  background: var(--color-accent);
  color: var(--color-bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.phase-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.phase-years {
  display: block;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.phase-card p {
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.8);
  line-height: 1.6;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
}

.timeline-item {
  display: flex;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
  padding-right: 50px;
  padding-left: 0;
}

.timeline-item:nth-child(odd) .timeline-date {
  text-align: left;
  padding-left: 50px;
  padding-right: 0;
}

.timeline-date {
  flex: 1;
  padding-right: 50px;
  text-align: right;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
  padding-top: 5px;
}

.timeline-content {
  flex: 1;
  padding-left: 50px;
  position: relative;
}

.timeline-content::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--color-bg-light);
  border: 4px solid var(--color-primary);
  border-radius: 50%;
  top: 5px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -9px;
  left: auto;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -9px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--color-primary-dark);
}

.timeline-content p {
  margin-bottom: 15px;
  color: #555;
}

.timeline-content img {
  border-radius: 6px;
  margin-top: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Persons Grid */
.persons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.person-card {
  background: rgba(245, 240, 232, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.person-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.person-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.person-info {
  padding: 25px;
}

.person-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 5px;
}

.person-role {
  display: block;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.person-info p {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.8);
  line-height: 1.6;
  margin-bottom: 15px;
}

.person-years {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.5);
}

/* Map Section */
.map-container {
  text-align: center;
}

.map-container > img {
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  margin-bottom: 30px;
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-color {
  width: 25px;
  height: 25px;
  border-radius: 4px;
}

.legend-color.catholic {
  background: #8b4513;
}

.legend-color.protestant {
  background: #2e5a1c;
}

.legend-color.neutral {
  background: #888;
}

/* Consequences Grid */
.consequences-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 60px;
}

.consequence-card {
  background: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 10px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.consequence-card:hover {
  background: rgba(245, 240, 232, 0.1);
}

.consequence-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.consequence-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 15px;
}

.consequence-card p {
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.8);
  line-height: 1.6;
}

/* Westphalia Box */
.westphalia-box {
  background: rgba(201, 162, 39, 0.1);
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  padding: 40px;
}

.westphalia-box h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 25px;
  text-align: center;
}

.westphalia-content {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 40px;
  align-items: start;
}

.westphalia-content img {
  border-radius: 8px;
}

.westphalia-text p {
  margin-bottom: 15px;
}

.westphalia-text ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.westphalia-text li {
  margin-bottom: 8px;
  color: rgba(245, 240, 232, 0.9);
}

/* Conclusion */
.conclusion {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  text-align: center;
}

.conclusion-content {
  max-width: 800px;
  margin: 0 auto;
}

.conclusion h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-text-light);
  margin-bottom: 25px;
}

.conclusion-text {
  font-size: 1.2rem;
  color: rgba(245, 240, 232, 0.9);
  line-height: 1.8;
}

/* Footer */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.footer-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.footer-info p {
  color: rgba(245, 240, 232, 0.7);
}

.footer-sources h4 {
  margin-bottom: 15px;
  color: var(--color-accent);
}

.footer-sources ul {
  list-style: none;
}

.footer-sources li {
  color: rgba(245, 240, 232, 0.7);
  margin-bottom: 8px;
}

  .footer-bottom {
    text-align: center;
    padding-top: 30px;
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.5);
    display: flex;
    flex-direction: column;  /* stapelt die beiden Elemente untereinander */
    align-items: center;     /* zentriert horizontal */
    gap: 6px;                /* Abstand zwischen Zeilen */
  }

/* Responsive Design */
@media (max-width: 1024px) {
  .phases-grid,
  .persons-grid,
  .consequences-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .westphalia-content {
    grid-template-columns: 1fr;
  }

  .westphalia-content img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
  }

  .timeline-date,
  .timeline-item:nth-child(odd) .timeline-date {
    text-align: left;
    padding: 0 0 10px 50px;
  }

  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
    padding-left: 50px;
    padding-right: 0;
  }

  .timeline-content::before,
  .timeline-item:nth-child(odd) .timeline-content::before {
    left: 12px !important;
    right: auto !important;
  }

  .phases-grid,
  .persons-grid,
  .consequences-grid {
    grid-template-columns: 1fr;
  }

  .map-legend {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .section {
    padding: 60px 0;
  }
}
  .system-status {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
    }

    .system-status .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #00ff73;
        animation: blink 1.5s infinite ease-in-out;
    }

    @keyframes blink {
        0% { opacity: 1; }
        50% { opacity: 0.45; }
        100% { opacity: 1; }
    }