/* ============================================================
   St. Bonifatius Bad Belzig – Haupt-Stylesheet
   Design: "Kirchenfenster" – seriös, klar, einladend
   ============================================================ */

:root {
  --navy:        #1e3a5f;
  --navy-dark:   #122538;
  --navy-mid:    #2a5298;
  --gold:        #b8860b;
  --gold-light:  #e8c94b;
  --white:       #ffffff;
  --off-white:   #f6f4f0;
  --grey-light:  #e8e5df;
  --grey:        #666666;
  --text:        #222222;
  --border:      #d0ccc4;
  --red-soft:    #8b1a1a;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #b0bdd4;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

/* ===== HEADER ===== */
header {
  background: var(--navy);
  color: white;
  padding: 18px 0 0;
}
.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.header-cross {
  font-size: 44px;
  color: var(--gold-light);
  line-height: 1;
  flex-shrink: 0;
  /* Unsichtbarer Kreis um das Kreuz */
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--navy);
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
.header-texts h1 {
  font-size: 27px;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: white;
  border: none;
  padding: 0;
  margin: 0;
}
.header-texts p {
  font-size: 14px;
  color: #b0c4de;
  margin: 2px 0 0;
}

/* ===== NAVIGATION ===== */
nav {
  background: var(--navy-dark);
  border-top: 2px solid var(--gold);
}
nav ul {
  max-width: 1060px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0 12px;
  justify-content: center;
}
nav > ul > li {
  position: relative;
}
nav > ul > li > a {
  display: block;
  color: #d8e4f0;
  padding: 13px 15px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.3px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
nav > ul > li > a:hover,
nav > ul > li.active > a {
  background: var(--gold);
  color: white;
  text-decoration: none;
}
/* Dropdown marker */
nav > ul > li.has-dropdown > a::after {
  content: " ▾";
  font-size: 11px;
  opacity: 0.75;
}
/* Dropdown menu */
nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  z-index: 200;
  border-top: 3px solid var(--gold);
}
nav > ul > li:hover > ul,
nav > ul > li:focus-within > ul,
nav > ul > li.open > ul {
  display: block;
}
nav ul ul li a {
  display: block;
  padding: 10px 18px;
  color: var(--navy);
  font-size: 14px;
  border-bottom: 1px solid var(--grey-light);
  font-weight: normal;
  transition: background 0.15s;
}
nav ul ul li:last-child a {
  border-bottom: none;
}
nav ul ul li a:hover {
  background: var(--off-white);
  color: var(--gold);
  text-decoration: none;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 20px 40px;
}

/* ===== HERO (Startseite) ===== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white;
  text-align: center;
  padding: 50px 20px 44px;
  border-bottom: 4px solid var(--gold);
}
.hero h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 6px;
  color: white;
  border: none;
  padding: 0;
}
.hero .hero-sub {
  font-size: 15px;
  color: #b0c4de;
  margin-bottom: 18px;
}
.hero hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.25);
  width: 60%;
  margin: 18px auto;
}
.hero .hero-place {
  font-size: 19px;
  font-weight: bold;
  color: var(--gold-light);
}
.hero .hero-city {
  font-size: 14px;
  color: #b0c4de;
  margin-top: 4px;
}

/* ===== PDF DOWNLOAD CARDS ===== */
.pdf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.pdf-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 3px;
  text-decoration: none;
  color: var(--navy);
  font-weight: bold;
  font-size: 14px;
  transition: all 0.2s;
}
.pdf-card:hover {
  background: var(--navy);
  color: white;
  border-left-color: var(--gold-light);
  text-decoration: none;
}
.pdf-card .pdf-ico {
  font-size: 22px;
  flex-shrink: 0;
}

/* ===== CONTENT AREA ===== */
.content h2 {
  font-size: 20px;
  color: var(--navy);
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
}
.content h2:first-child { margin-top: 0; }
.content p { margin-bottom: 12px; }
.content ul { margin: 0 0 12px 20px; }
.content li { margin-bottom: 4px; }

/* Page title */
.page-title {
  font-size: 22px;
  color: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* Placeholder banner */
.placeholder-box {
  background: var(--off-white);
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 28px 20px;
  text-align: center;
  color: var(--grey);
  font-size: 15px;
  margin: 20px 0;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.contact-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: 3px;
  padding: 20px;
}
.contact-card.full { grid-column: 1 / -1; }
.contact-card h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 14px;
  font-weight: bold;
}
.contact-card .priest-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-card .priest-row img {
  width: 100px;
  height: auto;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.contact-detail {
  display: flex;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 14px;
  align-items: flex-start;
}
.contact-detail .lbl {
  color: var(--grey);
  min-width: 52px;
  flex-shrink: 0;
  font-size: 12px;
  text-transform: uppercase;
  padding-top: 2px;
}
.contact-detail a { color: var(--navy); }
.contact-detail a:hover { color: var(--gold); }

.iban-box {
  background: var(--navy);
  color: white;
  border-radius: 3px;
  padding: 14px 18px;
  margin-top: 14px;
  font-size: 14px;
}
.iban-box strong { color: var(--gold-light); display: block; font-size: 13px; margin-bottom: 4px; }

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 14px;
  background: var(--navy);
  color: white;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
}
.map-link:hover { background: var(--gold); color: white; text-decoration: none; }

/* ===== SIDEBAR ===== */
.sidebar-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: 3px;
  padding: 16px;
  margin-bottom: 20px;
}
.sidebar-box h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.search-row {
  display: flex;
  gap: 6px;
}
.search-row input[type=text] {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
}
.search-row button {
  padding: 7px 12px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
}
.search-row button:hover { background: var(--gold); }

.info-line {
  font-size: 13px;
  margin-bottom: 5px;
  color: var(--text);
}
.info-line strong { color: var(--navy); }

.admin-link {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--grey);
  text-align: center;
}
.admin-link:hover { color: var(--navy); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy-dark);
  color: #b0c4de;
  margin-top: 20px;
}
.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--gold-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .copy { color: #7090b0; font-size: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 780px) {
  .pdf-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-card.full { grid-column: 1; }
  .hero h2 { font-size: 24px; }
  nav ul { flex-direction: column; }
  nav > ul > li > a { padding: 11px 14px; }
  nav ul ul {
    position: static;
    box-shadow: none;
    border-top: none;
  }
}
