/* Design "edel" – baut auf modern.css auf.
   Ruhig, viel Raum, Serifenschrift (Lora) für Zitate und Titel. */
:root {
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --gold: #e2a72e;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Begrüssung auf der Startseite ---------- */
.hero {
  position: relative;
  background: var(--brown) url(/img/hero-bg-v2.jpg) center bottom / 100% auto no-repeat;
  color: #fff;
  min-height: calc(100svh - 96px);
  display: flex; align-items: stretch;
  padding-top: 24px;
  margin-top: -1px; /* keine helle Haarlinie zur Leiste */
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end;

}
.hero-text { align-self: center; padding: 40px 0 110px; }
/* Startbereich etwas breiter als der Inhalt: Logo und Text weiter links */
.hero > .container { width: 90%; max-width: 1220px; }

.hero-logo { margin: 0; line-height: 0; }
.hero-logo img { display: block; width: min(560px, 100%); height: auto; }

.hero-quote { margin: 48px 0 0; padding: 0; }
.hero-quote::before {
  content: ""; display: block; width: 56px; height: 2px; margin-bottom: 22px;
  background: var(--gold); border-radius: 2px;
}
.hero-quote blockquote { margin: 0; padding: 0; border: 0; }
.hero-quote p {
  margin: 0;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(19px, 1.7vw, 25px); line-height: 1.45;
  color: #fff; max-width: 28ch;
}
.hero-quote figcaption { margin-top: 12px; font-size: 16px; color: rgba(255, 255, 255, .78); }
.hero-quote figcaption a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); }
.hero-quote figcaption a:hover { text-decoration-color: #fff; }

.hero-more {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 40px; padding: 13px 24px 13px 26px;
  border-radius: 999px;
  background: #fff; color: var(--brown-dark);
  font: 700 17px var(--font-head);
  box-shadow: 0 6px 20px rgba(47, 38, 32, .18);
  transition: background .2s, box-shadow .2s;
}
.hero-more:hover { text-decoration: none; background: #fbf6f0; box-shadow: 0 8px 26px rgba(47, 38, 32, .24); }
.hero-more svg { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.hero-more:hover svg { transform: translateY(3px); }
.hero-more:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* Gezeichnete Vögel im Hintergrund */
.hero-birds {
  position: absolute; z-index: 0; pointer-events: none;
  top: 0; left: 40%;
  width: min(34%, 400px); height: auto;
  opacity: .7;
}
.hero-inner { position: relative; z-index: 1; }

/* Freigestelltes Foto: steht auf dem Wellenrand und läuft unten weich aus */
.hero-portrait { align-self: end; display: flex; justify-content: center; }
.hero-portrait img {
  display: block; width: auto; height: min(60svh, 560px); max-width: 100%;
  object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  filter: drop-shadow(0 10px 18px rgba(47, 38, 32, .22));
}
.hero .divider-bottom { z-index: 2; }
/* Ähren-Gruppe rechts neben Jens */
.portrait-wrap { position: relative; display: inline-block; line-height: 0; }
.hero-portrait .hero-aehren {
  position: absolute; bottom: 0; left: 100%; margin-left: clamp(8px, 2.2vw, 56px);
  width: clamp(80px, 7.5vw, 145px); height: auto; max-width: none;
  -webkit-mask-image: none; mask-image: none; filter: none;
  z-index: -1; /* hinter dem Foto, falls sie sich berühren */
}
/* Bogen 1px überlappen lassen, sonst schimmert eine braune Haarlinie durch */
.divider-bottom { bottom: -1px; }

/* Startseite: kleines Logo in der Leiste erst beim Scrollen, oben steht das grosse */
.has-hero .m-header .m-logo img { transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .25s; }
.has-hero .m-header:not(.is-scrolled) .m-logo img { opacity: 0; pointer-events: none; }

/* Ein ruhiger Auftritt beim Laden – nichts weiter */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > *, .hero-portrait { animation: hero-in .9s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-quote { animation-delay: .1s !important; }
  .hero-more { animation-delay: .2s !important; }
  .hero-portrait { animation-name: hero-rise; animation-duration: 1.3s; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(30px); } }

/* Unter der Begrüssung: Text über Jens (das Foto steht schon oben) */
#start { scroll-margin-top: 96px; padding-top: 100px; }
#start .entry-content { max-width: none; }
#start .cols-intro { grid-template-columns: minmax(0, 1fr); margin-bottom: 72px; }
#start .cols-intro .col-image { display: none; }
#start .col-text > * { max-width: 820px; margin-left: auto; margin-right: auto; }
/* Bibletunes-Knopf in der Mitte der Seite */
#start .col-text > p:has(> a > .partner-logo) { max-width: none; text-align: center; margin-top: 76px; }
#start .col-text > :first-child { margin-top: 0; }
#start .page-heading { font-size: clamp(32px, 3.4vw, 44px); margin-bottom: 20px; }
/* Werdegang: Text links, Zeitleiste rechts */
.werdegang {
  display: grid; grid-template-columns: minmax(0, 560px) minmax(260px, 320px);
  justify-content: center; /* Text und Zeitleiste gemeinsam in der Mitte */
  column-gap: clamp(56px, 10vw, 150px); align-items: start;
  padding-top: 56px; border-top: 1px solid var(--line);
}
.werdegang-text h3 { font-family: var(--font-serif); font-size: 26px; margin-top: 0; }
ol.timeline { list-style: none; margin: 6px 0 0 !important; padding: 0 !important; }
.timeline li { position: relative; margin: 0; padding: 0 0 26px 36px; display: flex; flex-direction: column; }
.timeline li:last-child { padding-bottom: 0; }
/* Linie von Punkt zu Punkt */
.timeline li::before {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: -12px; width: 2px;
  background: rgba(152, 118, 93, .35);
}
.timeline li:last-child::before { display: none; }
/* Punkt */
.timeline li::after {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; box-sizing: border-box;
  border-radius: 50%; background: #fff; border: 3px solid var(--green-dark);
}
.timeline li:last-child::after { background: var(--green-dark); }
.tl-when { font: 700 14px/1.3 var(--font-head); color: var(--green-dark); }
.tl-title { font: 700 18px/1.35 var(--font-head); color: var(--heading); }
.tl-detail { font-size: 15px; line-height: 1.45; color: var(--muted); margin-top: 2px; }

/* ---------- Neueste Predigten und Artikel ---------- */
.home-latest { background: var(--paper); border-top: 1px solid var(--line); padding: 84px 0 96px; }
.home-latest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.home-latest h2 { font-family: var(--font-serif); font-size: 30px; margin: 0 0 18px; }
ul.latest-list { list-style: none; margin: 0 0 22px; padding: 0; }
.latest-list li { border-bottom: 1px solid var(--line); }
.latest-list li:first-child { border-top: 1px solid var(--line); }
.latest-link { display: flex; align-items: center; gap: 14px; padding: 16px 4px; color: var(--heading); }
.latest-link:hover { text-decoration: none; }
.latest-link:hover .latest-title { color: var(--green-dark); }
.latest-play {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-dark); color: #fff; transition: transform .2s;
}
.latest-link:hover .latest-play { transform: scale(1.08); }
.latest-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.latest-title { font: 700 18px/1.35 var(--font-head); transition: color .15s; }
.latest-text time { font-size: 14px; color: var(--muted); }
.latest-more { font: 700 16px var(--font-head); color: var(--green-dark); }

/* Serifenschrift auch für Seitentitel */
.page-title, .post-title, .page-heading { font-family: var(--font-serif); font-weight: 600; letter-spacing: -.015em; }

/* ---------- Jens Backstube ---------- */
.broetchen-intro { font-size: 20px; color: var(--muted); max-width: 46ch; margin-bottom: 40px; }
ol.broetchen-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.broetchen { padding: 34px 0; border-top: 1px solid var(--line); }
.broetchen:last-child { border-bottom: 1px solid var(--line); }
.broetchen blockquote { margin: 0; padding: 0; border: 0; }
.broetchen blockquote p {
  margin: 0; font-family: var(--font-serif); font-style: italic;
  font-size: clamp(20px, 2vw, 24px); line-height: 1.5; color: var(--heading);
}
.broetchen-meta { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.broetchen-quelle { color: var(--green); font-weight: 700; }

/* Mittlere Bildschirme: Ähren näher ans Foto, damit sie nicht über den Rand ragen */
@media (max-width: 1500px) {
  .hero-portrait .hero-aehren { margin-left: 6px; width: clamp(70px, 6.4vw, 110px); }
}

/* Niedrige Bildschirme (Laptops): alles etwas kompakter, damit der Knopf sichtbar bleibt */
@media (min-width: 981px) and (max-height: 860px) {
  .hero-text { padding-top: clamp(24px, 6vh, 56px); padding-bottom: 90px; }
  .hero-logo img { width: min(470px, 100%); }
  .hero-quote { margin-top: 30px; }
  .hero-quote::before { margin-bottom: 16px; }
  .hero-quote p { font-size: clamp(19px, 1.8vw, 24px); }
  .hero-more { margin-top: 28px; }
}

@media (max-width: 980px) {
  #start { scroll-margin-top: 70px; padding-top: 56px; }
  .werdegang { grid-template-columns: 1fr; gap: 36px; justify-content: stretch; }
  .home-latest { padding: 56px 0 64px; }
  .home-latest-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: calc(100svh - 70px); padding-top: 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-text { padding: 24px 0 8px; }
  .hero-logo img { width: min(420px, 100%); }
  .hero-quote { margin-top: 32px; }
  .hero-more { margin-top: 28px; }
  .hero-portrait img { height: min(46svh, 440px); }
  .hero-birds { width: 60vw; top: 8px; left: auto; right: 4%; opacity: .55; }
  .hero-portrait .hero-aehren { left: auto; right: -18px; margin-left: 0; width: 64px; }
}

/* Ähren-Bild links nur im Creme-Design (hier sind die Ähren im Hintergrundbild) */
.hero-aehren-links { display: none; }

/* Backstube: Bild mit frischem Brot oben */
.backstube-bild {
  display: block; width: 100%; max-width: 1100px; height: auto; aspect-ratio: 1600 / 672;
  object-fit: cover; border-radius: 18px; margin: 0 0 36px;
  box-shadow: 0 14px 34px rgba(47, 38, 32, .18);
}

/* Bücher: Titelbild neben dem Text */
.post-excerpt.has-image { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: start; }
.excerpt-image img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 8px 20px rgba(47, 38, 32, .18); }
.post-cover { display: block; float: right; width: min(280px, 40%); height: auto; margin: 4px 0 20px 32px; border-radius: 8px; box-shadow: 0 10px 26px rgba(47, 38, 32, .2); }
@media (max-width: 600px) {
  .post-excerpt.has-image { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; }
  .post-cover { float: none; width: min(240px, 70%); margin: 0 0 24px; }
}

/* Kathi: Foto bleibt beim Scrollen neben dem Text stehen,
   weisser Fotohintergrund verschmilzt mit der Seitenfarbe */
.page-kathi .cols-intro { align-items: start; }
.page-kathi .cols-intro .col-image { position: sticky; top: 120px; align-self: start; }
.page-kathi .entry-content .portrait { mix-blend-mode: multiply; box-shadow: none; border-radius: 0; }
@media (max-width: 980px) {
  .page-kathi .cols-intro .col-image { position: static; }
}
