/* Ekklisia – gemeinsames Stylesheet für alle Seiten */
:root {
  --blau: #1d3f8a;        /* Byzantinisch-Blau (vorher #0033ff) */
  --blau-dunkel: #142c63;
  --rot: #8e1b1f;         /* Weinrot (vorher #e00000) */
  --rot-dunkel: #6e1a1e;
  --rahmen: #6e1a1e;      /* Weinrot wie das Banner (vorher Lila #b030b0) */
  --rahmen-hell: #c19a3f; /* Byzantinisches Gold (vorher Rosa #ff66cc) */
  --gold-text: #7a5a1e;   /* Dunkles Ocker für kleine Hinweistexte */
  --papier: #efe3c4;
  --karte: rgba(255, 252, 240, .85);
  --text: #2b2118;        /* Sepia-Schwarz (vorher #1a1a40) */
  --schrift: "Comic Sans MS", "Comic Neue", "Chalkboard SE", "Chicago", cursive, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0;
  font-family: var(--schrift);
  color: var(--text);
  background: var(--papier) url("bilder/Hintergrund.gif");
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--blau); }
a:hover { color: var(--rot); }
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Kopf ---------- */
header.kopf { text-align: center; padding: 18px 16px 10px; }
header.kopf img { margin: 0 auto; width: 600px; border-radius: 4px; box-shadow: 0 2px 8px rgba(80,0,0,.25); }

/* ---------- Navigation ---------- */
nav.haupt {
  position: sticky; top: 0; z-index: 10;
  background: rgba(239, 227, 196, .96);
  border-top: 4px solid var(--rahmen);
  border-bottom: 4px solid var(--rahmen);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
nav.haupt ul {
  list-style: none; margin: 0 auto; padding: 6px 12px; max-width: 1150px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
}
nav.haupt a {
  display: block; padding: 6px 12px;
  border: 2px solid var(--rahmen-hell); border-radius: 6px;
  background: rgba(255,255,255,.55);
  text-decoration: none; color: var(--text);
  font-size: 15px; line-height: 1.2; text-align: center;
}
nav.haupt a small { display: block; font-size: 11px; color: var(--gold-text); }
/* Maus über einem Menüpunkt: zartes Gold mit weinrotem Rand */
nav.haupt a:hover { background: #f3e3bd; border-color: var(--rahmen); color: var(--text); }
nav.haupt a:hover small { color: var(--rahmen); }
/* Aktuelle Seite: Weinrot mit goldenem Rand (vorher Orange #f6a623) */
nav.haupt a[aria-current="page"] { background: var(--rahmen); border-color: var(--rahmen-hell); color: #fff; }
nav.haupt a[aria-current="page"] small { color: #ead39a; }
.menue-knopf { display: none; }

/* ---------- Inhalt ---------- */
main { max-width: 1000px; margin: 0 auto; padding: 24px 16px 40px; }
section { margin: 0 0 32px; }
.karte {
  background: var(--karte);
  border: 2px solid var(--rahmen-hell); border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(120, 60, 0, .10);
}
h1, h2, h3 { color: var(--blau); line-height: 1.3; }
h1.seitentitel { text-align: center; font-size: 1.8rem; margin: 4px 0 6px; }
.untertitel { text-align: center; color: var(--rot); font-size: 1.2rem; margin: 0 0 24px; }
h2 { font-size: 1.45rem; text-align: center; margin: 0 0 16px; }
h3 { font-size: 1.2rem; margin: 0 0 6px; }
.meander { height: 24px; margin: 30px 0; background: url("bilder/meander.jpg") repeat-x center / auto 24px; border-radius: 3px; }
.hinweis { font-size: .85rem; color: var(--gold-text); text-align: center; margin-top: 10px; }
.platzhalter { border: 2px dashed var(--rot); background: #fff4f4; border-radius: 8px; padding: 12px 16px; color: #800; }
.zentriert { text-align: center; }
.mittel { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Knöpfe */
.knoepfe { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.knopf {
  display: inline-block; padding: 10px 22px; border-radius: 8px;
  background: var(--rot); color: #fff; text-decoration: none; font-weight: bold;
  box-shadow: 0 2px 6px rgba(150,0,0,.3);
}
.knopf:hover { background: var(--rot-dunkel); color: #fff; }
.knopf.blau { background: var(--blau); box-shadow: 0 2px 6px rgba(0,0,150,.3); }
.knopf.blau:hover { background: var(--blau-dunkel); }

/* Raster */
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.drei { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* Titelbereich Startseite */
.titel { text-align: center; }
.titel .patriarchat {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  color: var(--blau); font-size: 1.45rem; font-weight: bold; letter-spacing: .03em;
}
.titel .patriarchat span:first-child { text-align: right; }
.titel .patriarchat span:last-child { text-align: left; }
.titel .patriarchat img { width: 86px; max-width: none; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.titel h1 { font-size: 1.2rem; margin: 18px 0 4px; font-weight: normal; }
.titel h1 strong { display: block; font-size: 1.45rem; margin-top: 6px; }
.titel .zeile { color: var(--blau); margin: 4px 0; font-size: 1.1rem; }
.titel .adler { width: 300px; margin: 22px auto 0; border-radius: 6px; box-shadow: 0 3px 12px rgba(0,0,0,.3); }

/* Gemeinde-Karten */
.gemeinde {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--karte); border: 2px solid var(--rahmen-hell); border-radius: 10px; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
a.gemeinde:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(120,60,0,.2); color: var(--text); }
.gemeinde img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: rgba(255,255,255,.35); }
.gemeinde img.fuellen { object-fit: cover; } /* Foto im Format 4:3: oben/unten minimal beschneiden, damit alle drei Rahmen gleich gefüllt sind */
.gemeinde div { padding: 12px 14px 16px; text-align: center; }
.gemeinde h3 { margin: 0 0 4px; }
.gemeinde p { margin: 0; font-size: .92rem; }

/* Termine */
.termine { list-style: none; padding: 0; margin: 0; }
.termine li { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--rahmen-hell); }
.termine li:last-child { border-bottom: 0; }
.termine .datum { color: var(--rot); font-weight: bold; }
.termine .datum small { display: block; font-weight: normal; color: var(--text); font-size: .85rem; }
.termine .dienst { display: block; }
.termine .dienst b { color: var(--blau); }
.termine li.vorbei { opacity: .45; }
.termine li.naechster { background: rgba(246,166,35,.15); border-radius: 8px; padding-left: 10px; padding-right: 10px; }

/* Unterricht */
.unterricht { text-align: center; }
.unterricht .gr { color: var(--blau); font-size: 1.15rem; margin: 0; }
.unterricht .de { color: var(--blau); font-weight: bold; font-size: 1.3rem; margin: 6px 0 14px; }
.unterricht .jahr { color: var(--rot); font-size: 1.3rem; margin: 0 0 14px; }

/* Kontakt & Spenden */
.kontakt dl { margin: 0; }
.kontakt dt { font-weight: bold; color: var(--blau); margin-top: 10px; }
.kontakt dd { margin: 2px 0 0; }
.spenden { text-align: center; }
.spenden .konto { font-size: 1.15rem; color: var(--blau); font-weight: bold; margin: 10px 0; }
.iban {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.1rem;
  background: #fff; border: 2px dashed var(--rahmen-hell); border-radius: 8px; padding: 8px 12px;
}
.iban button {
  font-family: var(--schrift); font-size: .85rem; cursor: pointer;
  border: 0; border-radius: 6px; padding: 4px 10px; background: var(--blau); color: #fff;
}

/* Ort-Seiten (Siegen, Olpe, Gummersbach) */
.ort { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.ort .adresse { font-size: 1.1rem; }
.ort .adresse strong { color: var(--blau); }
.ort img.haupt { border-radius: 8px; box-shadow: 0 3px 12px rgba(0,0,0,.25); width: auto; max-width: 100%; margin: 0 auto; }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; align-items: start; }
.galerie a { display: block; border-radius: 6px; overflow: hidden; border: 2px solid var(--rahmen-hell); background: #fff; }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .2s; }
.galerie a:hover img { transform: scale(1.06); }

/* Lightbox */
dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh;
}
dialog.lightbox::backdrop { background: rgba(20, 10, 30, .85); }
dialog.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 6px; margin: 0 auto; box-shadow: 0 6px 30px rgba(0,0,0,.6); }
dialog.lightbox .leiste { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
dialog.lightbox button {
  font-family: var(--schrift); font-size: 1rem; cursor: pointer; border: 2px solid var(--rahmen-hell);
  background: var(--papier); color: var(--text); border-radius: 8px; padding: 6px 16px;
}

/* Feste */
.fest { text-align: center; }
.fest img, .drei > .fest.gemeinde img {
  margin: 0 auto 10px; border-radius: 6px; box-shadow: 0 3px 10px rgba(0,0,0,.25);
  height: 220px; width: auto; max-width: 100%; aspect-ratio: auto; object-fit: contain;
}
.fest .tag { color: var(--rot); font-weight: bold; font-size: 1.2rem; margin: 0; }

/* Textseiten */
.text p { margin: 0 0 1em; }
.text p:last-child { margin-bottom: 0; }
blockquote.vers {
  margin: 0 0 18px; padding: 14px 20px; border-left: 5px solid var(--rahmen);
  background: rgba(255,255,255,.55); border-radius: 0 8px 8px 0; font-family: "Times New Roman", Georgia, serif; font-size: 1.1rem;
}
blockquote.vers cite { display: block; margin-top: 6px; color: var(--rot); font-style: normal; font-family: var(--schrift); font-size: .9rem; }
.bildreihe { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 0 0 22px; }
.bildreihe img { border-radius: 6px; box-shadow: 0 3px 10px rgba(0,0,0,.25); max-height: 300px; width: auto; }
.sprachwahl { display: flex; justify-content: center; gap: 10px; margin: 0 0 22px; }

/* Kirchen in der Nähe */
.kirche { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.kirche .galerie { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.kirche h3 { font-size: 1.4rem; }

/* Linkliste */
.linkliste { list-style: none; padding: 0; margin: 0; }
.linkliste li { padding: 12px 0; border-bottom: 1px dashed var(--rahmen-hell); }
.linkliste li:last-child { border-bottom: 0; }

/* Fuß */
footer {
  border-top: 4px solid var(--rahmen);
  background: rgba(239, 227, 196, .95);
  text-align: center; padding: 18px 16px 26px; font-size: .9rem;
}
footer .band { margin: 0 auto 12px; height: 20px; width: auto; }
footer nav a { margin: 0 10px; }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menue-knopf {
    display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-size: 1.05rem; padding: 10px; border: 0; background: transparent; color: var(--text); cursor: pointer;
  }
  nav.haupt ul { display: none; padding: 4px 16px 12px; }
  nav.haupt.offen ul { display: grid; grid-template-columns: 1fr 1fr; }
  h1.seitentitel { font-size: 1.5rem; }
  .titel .patriarchat { grid-template-columns: auto auto; justify-content: center; font-size: 1.05rem; gap: 10px 8px; letter-spacing: 0; }
  .titel .patriarchat img { width: 64px; grid-column: 1 / -1; grid-row: 1; margin: 0 auto; }
  .titel h1 strong { font-size: 1.2rem; }
  .titel .adler { width: 220px; }
  .drei, .zwei, .ort, .kirche { grid-template-columns: 1fr; }
  /* Gemeinde-Karten (Handy): Foto links füllt die ganze Kartenhöhe, alle Karten gleich hoch */
  .drei { grid-auto-rows: 1fr; }
  .drei > .gemeinde { flex-direction: row; }
  .drei > .gemeinde img { width: 46%; flex-shrink: 0; aspect-ratio: auto; align-self: stretch; min-height: 100%; object-fit: cover; }
  .drei > .gemeinde div { text-align: left; align-self: center; padding: 8px 12px; }
  .drei > .gemeinde h3 { font-size: 1.05rem; margin-bottom: 2px; }
  .drei > .gemeinde p { font-size: .82rem; line-height: 1.35; }
  .karte { padding: 18px 16px; }
  .termine li { grid-template-columns: 1fr; gap: 4px; }
  .galerie { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .drei > .fest.gemeinde { flex-direction: column; }
  .fest img, .drei > .fest.gemeinde img { height: 215px; min-height: 0; width: auto; align-self: center; object-fit: contain; }
  .drei > .fest.gemeinde p { font-size: 1rem; }
  .drei > .fest.gemeinde .tag { font-size: 1.2rem; }
}

/* Anfahrt: Kartenausschnitt + Routen-Knöpfe (Ortsseiten) */
.anfahrt { text-align: center; }
.kartenbild {
  position: relative; display: block; max-width: 640px; margin: 0 auto;
  border: 3px solid var(--rahmen-hell); border-radius: 10px; overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
}
.kartenbild img { width: 100%; }
.kartenbild span {
  position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,.92); color: var(--blau); font-size: .85rem; text-decoration: underline;
}
.kartenbild:hover { border-color: var(--rahmen); }
.anfahrt-adresse { font-size: 1.1rem; font-weight: bold; color: var(--blau); margin: 14px 0 12px; }
