:root {
  --primary: #2D4C48;
  --primary-light: #3D605B;
  --secondary: #D4AF37;
  --background: #F5F5ED;
  --text-dark: #1F2937;
  --text-light: #FFFFFF;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header Navbar */
.top-header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 2rem 5%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.top-header.solid {
  position: relative;
  background: var(--primary);
  padding: 1.5rem 5%;
}

.main-nav {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

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

.logo a {
  color: var(--text-light);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 50px;
  width: auto;
  margin-right: 15px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.logo a:hover {
  opacity: 0.8;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('kirche.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(45, 76, 72, 0.65); /* Primary color overlay */
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--text-light);
  animation: fadeIn 1.5s ease-out;
}

.crest {
  border: 2px solid var(--secondary);
  border-radius: 50%;
  width: 380px;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.5s ease;
}

.crest-logo {
  max-width: 230px;
  height: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.crest:hover {
  transform: scale(1.02);
}

.crest h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  text-shadow: 0 4px 6px rgba(0,0,0,0.4);
}

.crest span {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
}

.slogan {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 400;
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
  margin-top: 1rem;
}

/* Aktuelles / News Section */
.news {
  padding: 0 0 2rem 0;
  background-color: var(--background);
}

.news-card {
  background-color: #ffffff;
  border-left: 5px solid var(--secondary);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-top: -6rem;
  position: relative;
  z-index: 20;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #edf2f7;
  padding-bottom: 0.5rem;
}

.news-header h3 {
  font-size: 1.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-date {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #718096;
}

.news-content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #4a5568;
}

.news-content p:last-child {
  margin-bottom: 0;
}

.news-content strong {
  color: var(--primary);
  font-weight: 600;
}

/* About Section */
.about {
  padding: 6rem 0;
  background-color: var(--background);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.divider {
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
  margin-bottom: 2rem;
}

.about-text p {
  font-size: 1.15rem;
  color: #4a5568;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-image-wrapper {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 4px solid #fff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-image-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 4rem 0 0 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.footer-contact h3 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  color: #cbd5e0;
}

.footer-contact a {
  color: var(--text-light);
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  background-color: #1a2f2c;
  color: #a0aec0;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .about-container {
    flex-direction: column;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .crest {
    width: 250px;
    height: 250px;
    padding: 1.5rem;
  }
  .crest h1 {
    font-size: 1.8rem;
  }
  .slogan {
    font-size: 1.8rem;
  }
  .about-text h2 {
    font-size: 2.5rem;
  }
}

/* Chronik Layout Customizations */
.chronik-page {
  padding-top: 5rem;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.subtitle { font-size: 1.3rem; color: #718096; margin-bottom: 4rem; font-style: italic;}

.chronik-block {
  display: flex;
  gap: 3rem;
  margin-bottom: 5rem;
  align-items: center;
}
.chronik-block.reverse {
  flex-direction: row-reverse;
}
.chronik-text {
  flex: 1.2;
}
.chronik-text p {
  font-size: 1.15rem;
  color: #4a5568;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.chronik-image, .chronik-gallery {
  flex: 1;
}
.shadow-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: block;
  border: 3px solid #fff;
}
.caption {
  font-size: 0.9rem;
  color: #718096;
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}
.gallery-img {
  width: 70%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .chronik-block, .chronik-block.reverse {
    flex-direction: column;
  }
}
