/* Jens Kaldewey – Nachbau des bisherigen Designs */
:root {
  --brown: #98765d;
  --brown-dark: #503a2c;
  --brown-light: #eadace;
  --green: #538f32;
  --green-dark: #3a8233;
  --text: #666;
  --heading: #333;
  --line: #e9e1da;
  --font-head: "PT Sans", Helvetica, Arial, Lucida, sans-serif;
  --font-body: Arial, Helvetica, Lucida, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 18px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: 40px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 19px; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: 80%; max-width: 1080px; margin: 0 auto; }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: relative;
  background: var(--brown) url(/img/header-bg.jpg) center bottom / cover no-repeat;
  padding-bottom: 54px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 26px;
  min-height: 250px;
}
.logo { align-self: flex-start; }
.logo img { display: block; width: 395px; max-width: 100%; height: auto; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex: 1; max-width: 600px; padding-top: 50px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 22px; }
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  color: #fff;
  font: 600 15.5px/1.4 var(--font-body);
  padding: 6px 0;
}
.main-nav a:hover { text-decoration: none; opacity: .75; }
.main-nav .has-children > a { padding-right: 18px; }
.main-nav .has-children > a::after {
  content: "";
  position: absolute; right: 2px; top: 13px;
  width: 6px; height: 6px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.submenu-toggle { display: none; }
.sub-menu {
  position: absolute; top: 100%; left: -20px; z-index: 50;
  width: 240px;
  padding: 20px 0 !important;
  background: var(--brown);
  border-top: 3px solid var(--brown-light);
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.has-children:hover > .sub-menu, .has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.sub-menu a { padding: 6px 20px; font-size: 15px; line-height: 1.4; }

.search-form { display: flex; width: 100%; max-width: 584px; }
.search-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 2px solid #fff; border-right: 0;
  border-radius: 3px 0 0 3px;
  background: transparent;
  color: #fff;
  font: 16px var(--font-body);
}
.search-form input:focus { outline: none; background: rgba(255,255,255,.12); }
.search-form button {
  height: 46px; padding: 0 14px;
  border: 2px solid #fff; border-radius: 0 3px 3px 0;
  background: #fff; color: var(--brown);
  font: 14px var(--font-body);
  cursor: pointer;
}
.newsletter-link { color: #fff; font: 700 16px var(--font-body); }

.divider { position: absolute; left: 0; right: 0; height: 50px; background-repeat: no-repeat; background-size: 100% 50px; pointer-events: none; }
.divider-bottom {
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1280 140' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M0 140h1280C573.08 140 0 0 0 0z'/%3E%3C/svg%3E");
}
.divider-top {
  top: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1280 140' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M0 0s573.08 140 1280 140V0z'/%3E%3C/svg%3E");
}

.menu-toggle { display: none; }

/* ---------- Inhalt ---------- */
.site-main { min-height: 40vh; }
.content-area { padding: 80px 0 90px; }
.page-title { font-size: 40px; margin-bottom: 30px; }
.page-heading { font-size: 30px; }
.entry-content h1 { font-size: 34px; }
.entry-content h2 { font-size: 28px; margin-top: 1.4em; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; }
.entry-content h4 { font-size: 19px; margin-top: 1.2em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brown); font-style: italic; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 16px; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.entry-content th { background: #f7f3ef; color: var(--heading); }
.entry-content iframe { max-width: 100%; border: 0; }
.entry-content img { margin: .5em 0; }
.entry-content a.button, .button {
  display: inline-block;
  padding: 6px 18px;
  border: 2px solid var(--green-dark);
  border-radius: 3px;
  color: var(--green-dark);
  font-weight: 700;
}
.entry-content a.button:hover { background: var(--green-dark); color: #fff; text-decoration: none; }

/* Zweispaltige Einleitung (Jens, Kathi) */
.cols { display: grid; gap: 60px; align-items: start; }
.cols-intro { grid-template-columns: 1.6fr 1fr; margin-bottom: 40px; }
.portrait { display: block; width: 100%; max-width: 400px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto !important; }
.page-kathi .portrait { aspect-ratio: auto; border-radius: 0; }
.partner-logo { margin-top: 40px !important; }

/* Nummerierte Angebotslisten (Seminare, Vorträge …) */
ol.offer-list, ul.offer-list {
  list-style: none;
  counter-reset: offer;
  padding: 0 !important;
  margin: 30px 0 40px;
}
.offer-list > li {
  counter-increment: offer;
  position: relative;
  padding: 22px 0 18px 64px;
  border-top: 1px solid var(--line);
  margin: 0;
}
.offer-list > li:last-child { border-bottom: 1px solid var(--line); }
ol.offer-list > li::before {
  content: counter(offer);
  position: absolute; left: 0; top: 20px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  font: 700 18px/42px var(--font-head);
  text-align: center;
}
ul.offer-list.plain > li { padding-left: 34px; }
ul.offer-list.plain > li::before {
  content: ""; position: absolute; left: 4px; top: 30px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--brown);
}
.offer-list h3 { font-size: 21px; margin: 6px 0 8px !important; }
.offer-list > li > p:last-child, .offer-list > li > ul:last-child { margin-bottom: 0; }
ol.sub-list { padding-left: 1.4em; }
.offer-list ul { list-style: disc; }

/* ---------- Beitragsliste (Blog) ---------- */
.post-excerpt { margin-bottom: 60px; }
.entry-title { font-size: 26px; margin-bottom: 8px; }
.entry-title a { color: var(--heading); }
.post-meta { color: var(--green); font-weight: 700; margin-bottom: 10px; }
.post-meta a { color: var(--green); }
.more-link { color: var(--green-dark); font-weight: 700; }
.post-content p { margin-bottom: 0; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; font-weight: 700; }
.pagination .page-info { color: #999; font-weight: 400; font-size: 15px; }

/* ---------- Einzelbeitrag & Audio ---------- */
.post-title { font-size: 30px; margin-bottom: 50px; }
.audio-module {
  display: flex;
  margin: 40px 0;
  background: var(--brown);
  color: #fff;
  min-height: 234px;
}
.audio-cover { flex: 0 0 220px; background: center / cover no-repeat; }
.audio-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 50px; }
.audio-content h2 { color: #fff; font-size: 26px; margin: 0 0 10px; }
.audio-meta { margin-bottom: 18px; line-height: 1.65; }
.audio-controls { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 720px; }
.audio-controls audio { flex: 1; min-width: 0; height: 40px; }
.audio-download { color: #fff; display: inline-flex; }
.audio-download:hover { opacity: .75; }
.back-link { margin-top: 40px; font-weight: 700; }

/* ---------- Predigten-Liste ---------- */
.sermon-tools { margin-bottom: 30px; }
.sermon-search input, .list-filter {
  width: 100%;
  max-width: 560px;
  height: 48px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 3px;
  font: 17px var(--font-body);
  color: var(--heading);
}
.sermon-search input:focus, .list-filter:focus { outline: none; border-color: var(--brown); }
.filter-label { font: 700 18px var(--font-head); color: var(--heading); margin: 24px 0 8px; }
.series-filter { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.series-filter a { font: 700 16px var(--font-head); color: var(--brown); }
.series-filter a span { font-weight: 400; color: #b5a191; font-size: 14px; }
.series-filter a.active { color: var(--heading); text-decoration: underline; text-underline-offset: 4px; }
.list-count { color: #999; font-size: 15px; margin: 16px 0 0; min-height: 1.5em; }

.year-group { margin-top: 30px; }
.year-heading {
  font-size: 22px;
  color: var(--brown);
  border-bottom: 2px solid var(--brown);
  padding-bottom: 6px;
  margin-bottom: 0;
}
ol.sermons { list-style: none; margin: 0; padding: 0; }
.sermon {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.sermon.is-playing { background: #faf6f2; }
.sermon-date { color: #999; font-size: 15px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.sermon-title { font-size: 21px; margin: 0 0 2px; }
.sermon-title a { color: var(--heading); }
.sermon-series { color: var(--green); font-weight: 700; font-size: 14px; margin: 0 0 4px; }
.sermon-excerpt {
  margin: 0; font-size: 15px; line-height: 1.55; color: #888;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sermon-actions { display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.play-btn {
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: var(--green-dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.play-btn:hover { background: var(--green); transform: scale(1.06); }
.play-btn .i-pause { display: none; }
.sermon.is-playing .play-btn .i-play { display: none; }
.sermon.is-playing .play-btn .i-pause { display: block; }
.dl-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brown);
  border: 2px solid var(--line);
}
.dl-btn:hover { border-color: var(--brown); text-decoration: none; }
.read-btn { font-weight: 700; color: var(--green-dark); font-size: 15px; padding: 10px 6px; }
.no-results { margin-top: 30px; font-style: italic; }

.mini-player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--brown-dark); color: #fff;
  padding: 12px 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,.18);
}
.mini-player-inner { display: flex; align-items: center; gap: 16px; }
.mini-title { margin: 0; font: 700 16px/1.3 var(--font-head); flex: 0 1 34%; }
.mini-player audio { flex: 1; min-width: 0; height: 40px; }
.mini-close { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
body.has-mini-player .site-footer { padding-bottom: 66px; }

/* ---------- Artikel-Liste ---------- */
.list-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.list-tools .list-count { margin: 0; }
ul.title-list { list-style: none; margin: 0 0 20px; padding: 0; }
.title-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.title-list a { font: 700 19px/1.35 var(--font-head); color: var(--heading); }
.title-list a:hover { color: var(--green-dark); }
.title-list time { color: #999; font-size: 15px; white-space: nowrap; }

/* ---------- Fussbereich ---------- */
.site-footer { position: relative; }
.footer-main {
  background: var(--brown) url(/img/footer-bg.jpg) center bottom / cover no-repeat;
  padding: 130px 0 160px;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5.5%; }
.footer-cols h2 { color: #fff; font-size: 30px; margin-bottom: 12px; }
.footer-cols p { color: #fff; font-weight: 600; line-height: 1.8; }
.footer-cols a { color: #fff; font-weight: 700; }
.footer-bottom { background: var(--brown-dark); padding: 20px 0; text-align: center; }
.footer-bottom p { margin: 0; color: #fff; font-size: 14px; font-weight: 600; }
.footer-bottom a { color: var(--green-dark); font-weight: 700; }

/* ---------- Responsiv ---------- */
@media (max-width: 980px) {
  .container { width: 88%; }
  .header-inner { min-height: 0; padding-top: 18px; flex-wrap: wrap; gap: 10px; }
  .logo img { width: 260px; }
  .header-right { padding-top: 0; flex: 0 0 auto; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .header-right { width: 100%; max-width: none; flex-basis: 100%; align-items: stretch; position: relative; }
  .menu-toggle { position: absolute; right: 0; top: -66px; }
  .main-nav { display: none; background: #fff; border-top: 3px solid var(--brown-light); padding: 10px 0; box-shadow: 0 2px 5px rgba(0,0,0,.1); }
  .main-nav.open { display: block; }
  .main-nav > ul { display: block; }
  .main-nav a { color: #666; padding: 10px 5%; border-bottom: 1px solid rgba(0,0,0,.03); }
  .main-nav .has-children > a::after { display: none; }
  .submenu-toggle {
    display: block; position: absolute; right: 0; top: 0; width: 50px; height: 45px;
    background: none; border: 0; cursor: pointer;
  }
  .submenu-toggle::after {
    content: ""; position: absolute; left: 20px; top: 15px; width: 8px; height: 8px;
    border: solid #666; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s;
  }
  .submenu-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); top: 20px; }
  .sub-menu { position: static; width: auto; opacity: 1; visibility: visible; display: none; background: none; border: 0; box-shadow: none; padding: 0 !important; }
  .sub-menu.open { display: block; }
  .sub-menu a { padding-left: 10%; }
  .search-form { max-width: none; }
  .newsletter-link { align-self: flex-end; }

  .content-area { padding: 50px 0 60px; }
  .cols-intro { grid-template-columns: 1fr; gap: 30px; }
  .cols-intro .col-image { order: -1; }
  .portrait { max-width: 280px; }
  .footer-cols { grid-template-columns: 1fr; gap: 30px; }
  .footer-main { padding: 90px 0 120px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1, .page-title { font-size: 30px; }
  .post-title { font-size: 26px; margin-bottom: 30px; }
  .entry-title { font-size: 22px; }
  .post-meta { font-size: 15px; }
  .sermon { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .sermon-date { grid-column: 1 / -1; padding: 0; font-size: 14px; }
  .sermon-title { font-size: 18px; }
  .sermon-excerpt { display: none; }
  .play-btn { width: 42px; height: 42px; }
  .dl-btn { display: none; }
  .audio-module { flex-direction: column; }
  .audio-cover { flex-basis: 220px; }
  .audio-content { padding: 26px 18px; }
  .audio-content h2 { font-size: 22px; }
  .offer-list > li { padding-left: 54px; }
  ol.offer-list > li::before { width: 36px; height: 36px; line-height: 36px; font-size: 16px; }
  .title-list li { flex-direction: column; gap: 2px; }
  .title-list a { font-size: 17px; }
  .mini-player-inner { flex-wrap: wrap; gap: 6px 10px; }
  .mini-title { flex: 1 1 80%; font-size: 14px; }
  .mini-player audio { flex-basis: 100%; order: 3; }
  .footer-cols h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Downloads (PDF) ---------- */
.downloads { margin: 40px 0; padding: 24px 28px; background: #f7f3ef; border-left: 4px solid var(--brown); }
.downloads h3 { margin: 0 0 12px !important; font-size: 20px; }
.downloads ul { list-style: none; margin: 0; padding: 0 !important; }
.downloads li { margin: 0 0 8px; }
.download-file { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--green-dark); }
.download-file svg { color: var(--brown); flex: none; }
.download-file small { font-weight: 400; color: #999; font-size: 13px; }

/* ---------- Vorschau-Hinweis (alte / neue Version) ---------- */
.preview-bar { background: #2f2620; color: #f3ebe4; font: 15px/1.4 var(--font-body); padding: 9px 0; }
.preview-bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; }
.preview-bar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
