/* ===========================================================
   Prof. Dr. Meinrad Walter — Musikwissenschaftler & Theologe
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --color-bg: #f7f6f1;
  --color-bg-alt: #eeece3;
  --color-ink: #131e29;
  --color-text: #23282c;
  --color-text-soft: #67727a;
  --color-line: rgba(35, 40, 44, 0.12);
  --color-accent: #4a6b8a;
  --color-accent-dim: #7391ad;
  --color-gold: #93a7bc;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1220px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 6vw;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 18px;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 40px;
}

section { position: relative; }
section[id] { scroll-margin-top: 100px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover { background: var(--color-text); color: var(--color-bg); }
.btn.light { border-color: rgba(255,255,255,0.75); color: #fff; }
.btn.light:hover { background: #fff; color: var(--color-ink); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: var(--color-text);
}
.logo span {
  display: block;
  font-style: italic;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 2px;
  color: var(--color-text-soft);
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
}
.menu-toggle .bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle .bars span {
  width: 26px;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.nav-open .menu-toggle .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .menu-toggle .bars span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

body.header-dark:not(.nav-open) .site-header {
  background: rgba(247, 246, 241, 0.88);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--color-line);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}
body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-overlay nav { text-align: center; }
.nav-overlay a {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4.6vw, 2.7rem);
  padding: 9px 0;
  color: var(--color-text);
  transition: color 0.25s ease;
}
.nav-overlay a:hover { color: var(--color-accent); }
.nav-overlay .nav-contact {
  margin-top: 36px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--color-text-soft);
  letter-spacing: 0.03em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 5vw;
  padding-top: 130px;
  padding-bottom: 80px;
  width: 100%;
}
.hero-text { order: 1; }
.hero-media { order: 2; }

.hero-name {
  color: var(--color-text);
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  line-height: 1.05;
}
.hero-name .role {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.4em;
  margin-top: 18px;
  color: var(--color-accent);
}
.hero-lead {
  margin-top: 30px;
  max-width: 440px;
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-media { position: relative; }
.hero-media .frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-media .caption {
  margin-top: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-text-soft);
}

/* ---------- Intro strip ---------- */
.intro-strip { padding: 100px 0 30px; }
.intro-strip .lead {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-style: italic;
  line-height: 1.55;
  max-width: 880px;
  color: var(--color-text);
}

/* ---------- Bio ---------- */
.bio { padding: 60px 0 100px; }
.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.bio-media { position: sticky; top: 120px; }
.bio-media img {
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
}
.bio-media-caption {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--color-text-soft);
}
.bio-text p { margin: 0 0 22px; font-size: 1rem; }
.bio-text p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--color-accent);
}

.milestones {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.milestones div strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.milestones div span { font-size: 0.85rem; color: var(--color-text-soft); }

/* ---------- Werdegang timeline ---------- */
.timeline { padding: 100px 0; background: var(--color-bg-alt); }
.timeline-list {
  margin-top: 20px;
  border-top: 1px solid var(--color-line);
}
.timeline-list li {
  list-style: none;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-line);
}
.timeline-list .yr {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent);
  font-size: 1rem;
}
.timeline-list p { margin: 0; font-size: 0.96rem; }

/* ---------- Schwerpunkte ---------- */
.schwerpunkte { padding: 110px 0; }
.schwerpunkte-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
}
.schwerpunkt-card {
  border-top: 2px solid var(--color-accent);
  padding-top: 28px;
}
.schwerpunkt-card .num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-gold);
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.schwerpunkt-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.schwerpunkt-card p {
  font-size: 0.93rem;
  color: var(--color-text-soft);
  margin: 0;
}

/* ---------- Publikationen ---------- */
.publikationen { padding: 100px 0; background: var(--color-bg-alt); }
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 44px 30px;
}
.pub-card { position: relative; }
.pub-cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #d9d7cc;
  box-shadow: 0 22px 40px -22px rgba(19, 30, 41, 0.35);
}
.pub-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.pub-card:hover .pub-cover img { transform: scale(1.05); }
.pub-info { margin-top: 16px; }
.pub-year {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.pub-title {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 6px;
}
.pub-meta { font-size: 0.78rem; color: var(--color-text-soft); }
.pub-more { margin-top: 56px; text-align: center; }
.pub-more p { font-size: 0.9rem; color: var(--color-text-soft); }

/* ---------- Vortraege / Radio ---------- */
.vortraege { padding: 110px 0; }
.vortraege-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.info-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-line); }
.info-list li { padding: 22px 0; border-bottom: 1px solid var(--color-line); }
.info-list h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.info-list p { margin: 0; font-size: 0.88rem; color: var(--color-text-soft); }

/* ---------- Aemter ---------- */
.aemter { padding: 0 0 110px; }
.aemter-list {
  columns: 2;
  column-gap: 60px;
  list-style: none;
  margin: 0; padding: 0;
}
.aemter-list li {
  break-inside: avoid;
  padding: 14px 0 14px 26px;
  border-top: 1px solid var(--color-line);
  position: relative;
  font-size: 0.92rem;
}
.aemter-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 22px;
  width: 8px; height: 1px;
  background: var(--color-accent);
}

/* ---------- Contact / CTA ---------- */
.contact {
  padding: 130px 0 110px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  text-align: center;
}
.contact h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 22px; }
.contact p.sub {
  max-width: 560px;
  margin: 0 auto;
  color: var(--color-text-soft);
  font-size: 1rem;
}
.contact-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
  margin-top: 38px;
}
.contact-detail {
  margin-top: 34px;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.8;
}

/* ---------- Footer ---------- */
footer.site-footer {
  padding: 28px 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
  background: var(--color-bg);
}
footer.site-footer a { border-bottom: 1px solid transparent; }
footer.site-footer a:hover { border-bottom-color: var(--color-text-soft); }

/* ---------- Section "mehr" links ---------- */
.section-more { margin-top: 34px; }
.more-link {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
}

/* ---------- Subpages: header, back-link, chronological entries ---------- */
.page-header { padding: 170px 0 30px; }
.page-header .lead-sub {
  max-width: 640px;
  color: var(--color-text-soft);
  font-size: 1.02rem;
}
.back-link {
  display: inline-block;
  margin-bottom: 30px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.back-link:hover { color: var(--color-accent); }

.entries { padding: 30px 0 120px; }
.year-group { margin-top: 56px; }
.year-group:first-of-type { margin-top: 0; }
.year-heading {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent);
  font-size: 1.25rem;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
}
.entry-list { list-style: none; margin: 0; padding: 0; }
.entry-list li { padding: 18px 0; border-bottom: 1px solid var(--color-line); }
.entry-list h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.02rem;
  margin: 0 0 5px;
}
.entry-list .meta {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  margin: 0 0 5px;
}
.entry-list .more-link { font-size: 0.72rem; }

.legal-body { padding: 20px 0 120px; max-width: 760px; }
.legal-body h3 {
  font-size: 1.1rem;
  margin: 44px 0 14px;
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { font-size: 0.93rem; color: var(--color-text-soft); margin: 0 0 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 50px; padding-top: 150px; }
  .hero-text { order: 2; }
  .hero-media { order: 1; max-width: 380px; }
  .bio-grid { grid-template-columns: 1fr; gap: 34px; }
  .bio-media { position: static; margin-bottom: 10px; max-width: 280px; }
  .milestones { grid-template-columns: 1fr; gap: 20px; }
  .schwerpunkte-grid { grid-template-columns: 1fr; gap: 40px; }
  .vortraege-grid { grid-template-columns: 1fr; gap: 40px; }
  .aemter-list { columns: 1; }
  .timeline-list li { grid-template-columns: 100px 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 7vw; }
  .pub-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .timeline-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ===========================================================
   Enhancements — motion, ornament & craft
   =========================================================== */

::selection { background: var(--color-accent); color: #fff; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 200;
  pointer-events: none;
}

/* ---------- Hero: staff-line ornament ---------- */
.hero-text { position: relative; }
.hero-staff {
  position: absolute;
  top: 46px;
  left: -10px;
  right: 16%;
  height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: -1;
  pointer-events: none;
}
.hero-staff span {
  display: block;
  height: 1px;
  background: rgba(74, 107, 138, 0.20);
}

/* ---------- Intro: oversized quote ornament ---------- */
.intro-strip .lead { position: relative; z-index: 0; }
.intro-strip .lead::before {
  content: '\201E';
  position: absolute;
  left: -18px;
  top: -105px;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 9rem;
  line-height: 1;
  color: rgba(74, 107, 138, 0.15);
  z-index: -1;
  pointer-events: none;
}

/* ---------- More-links: arrow nudge ---------- */
.more-link::after {
  content: '\2192';
  display: inline-block;
  margin-left: 7px;
  transition: transform 0.25s ease;
}
.more-link:hover::after { transform: translateX(4px); }

/* ---------- Schwerpunkte: hover accent ---------- */
.schwerpunkt-card { transition: border-color 0.35s ease; }
.schwerpunkt-card .num { transition: color 0.35s ease; }
.schwerpunkt-card:hover { border-top-color: var(--color-ink); }
.schwerpunkt-card:hover .num { color: var(--color-accent); }

/* ---------- Publikationen: lift on hover ---------- */
.pub-cover {
  transition: box-shadow 0.4s ease, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pub-card:hover .pub-cover {
  transform: translateY(-6px);
  box-shadow: 0 32px 52px -24px rgba(19, 30, 41, 0.5);
}

/* ---------- Timeline: line & dots statt Tabellenlinien ---------- */
.timeline-list {
  border-top: none;
  border-left: 1px solid rgba(74, 107, 138, 0.35);
  padding-left: 38px;
  margin-left: 5px;
}
.timeline-list li {
  border-bottom: none;
  padding: 17px 0;
  position: relative;
}
.timeline-list li::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 30px;
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-accent);
}

/* ---------- Motion (nur ohne reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {

  html.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--d, 0ms);
  }
  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes staffDraw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
  @keyframes frameReveal {
    from { clip-path: inset(-20px -20px 100% -20px); }
    to   { clip-path: inset(-20px); }
  }
  @keyframes imgSettle {
    from { transform: scale(1.06); }
    to   { transform: scale(1); }
  }

  html.js .hero-text .eyebrow { opacity: 0; animation: rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s forwards; }
  html.js .hero-name          { opacity: 0; animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards; }
  html.js .hero-lead          { opacity: 0; animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s forwards; }
  html.js .hero-actions       { opacity: 0; animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.65s forwards; }
  html.js .hero-media .frame  { clip-path: inset(-20px -20px 100% -20px); animation: frameReveal 1s cubic-bezier(0.77, 0, 0.18, 1) 0.35s forwards; }
  html.js .hero-media img     { animation: imgSettle 1.5s ease 0.35s both; }
  html.js .hero-media .caption { opacity: 0; animation: rise 0.8s ease 0.95s forwards; }

  html.js .hero-staff span { transform: scaleX(0); transform-origin: 0 50%; animation: staffDraw 1.1s cubic-bezier(0.77, 0, 0.18, 1) forwards; }
  html.js .hero-staff span:nth-child(1) { animation-delay: 0.55s; }
  html.js .hero-staff span:nth-child(2) { animation-delay: 0.63s; }
  html.js .hero-staff span:nth-child(3) { animation-delay: 0.71s; }
  html.js .hero-staff span:nth-child(4) { animation-delay: 0.79s; }
  html.js .hero-staff span:nth-child(5) { animation-delay: 0.87s; }

  .nav-overlay a {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s ease;
  }
  body.nav-open .nav-overlay a { opacity: 1; transform: none; }
  body.nav-open .nav-overlay a:nth-child(1) { transition-delay: 0.10s; }
  body.nav-open .nav-overlay a:nth-child(2) { transition-delay: 0.16s; }
  body.nav-open .nav-overlay a:nth-child(3) { transition-delay: 0.22s; }
  body.nav-open .nav-overlay a:nth-child(4) { transition-delay: 0.28s; }
  body.nav-open .nav-overlay a:nth-child(5) { transition-delay: 0.34s; }
  .nav-overlay .nav-contact { opacity: 0; transition: opacity 0.4s ease; }
  body.nav-open .nav-overlay .nav-contact { opacity: 1; transition-delay: 0.42s; }
}

/* ===========================================================
   Grafischer Feinschliff — Motiv-Echos & Textur
   =========================================================== */

/* Mini-Notenlinien vor Sektions-Eyebrows (Echo des Hero-Motivs) */
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 42px;
  height: 11px;
  margin-right: 14px;
  vertical-align: middle;
  background: repeating-linear-gradient(
    to bottom,
    currentColor 0, currentColor 1px,
    transparent 1px, transparent 2.5px
  );
  opacity: 0.5;
}
.hero .eyebrow::before,
.contact .eyebrow::before { display: none; }

/* Galerie-Rahmen: feine Outline mit Abstand ums Hero-Porträt */
.hero-media .frame {
  outline: 1px solid rgba(74, 107, 138, 0.35);
  outline-offset: 14px;
}

/* Papierkorn — hauchzarte Textur über der ganzen Seite */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===========================================================
   Flipbook — Buchdeckel öffnet sich beim Hover (CSS 3D)
   =========================================================== */

.pub-cover {
  overflow: visible;
  background: transparent;
  box-shadow: none;
  perspective: 1100px;
  position: relative;
}

/* Buchblock: Seiten hinter dem Deckel */
.pub-cover::before {
  content: '';
  position: absolute;
  inset: 1.5% 2% 1.5% 0;
  background:
    linear-gradient(to left, rgba(19, 30, 41, 0.16), rgba(19, 30, 41, 0.02) 7%, transparent 12%),
    repeating-linear-gradient(to bottom, #fbfaf5 0 3px, #efede4 3px 4px);
  box-shadow: 0 22px 40px -22px rgba(19, 30, 41, 0.35);
  z-index: 0;
}

/* Der Deckel: das Cover selbst */
.pub-cover img {
  position: relative;
  z-index: 1;
  transform-origin: left center;
  box-shadow: 2px 4px 14px rgba(19, 30, 41, 0.22);
  backface-visibility: hidden;
}

/* Falz-Schatten am Buchrücken */
.pub-cover::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 7%;
  background: linear-gradient(to right, rgba(19, 30, 41, 0.18), transparent);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pub-card:hover .pub-cover img {
  transform: rotateY(-28deg);
}
.pub-card:hover .pub-cover::after { opacity: 1; }

/* Frühere Hover-Regeln (Lift & Zoom) für die Buch-Optik neutralisieren */
.pub-card:hover .pub-cover {
  transform: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .pub-cover img { transition: none; }
}

/* ===========================================================
   Bookflow — Coverflow-Karussell für die Publikationen
   =========================================================== */

.bookflow {
  position: relative;
  overflow: hidden;
  padding: 10px 0 34px;
}
.bf-stage {
  position: relative;
  height: 470px;
  perspective: 1500px;
}
.bf-book { margin: 0; }

/* Ohne JS: normales Grid als Fallback */
html:not(.js) .bf-stage {
  height: auto;
  perspective: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 40px 30px;
}
html:not(.js) .bf-nav,
html:not(.js) .bf-info { display: none; }

html.js .bf-book {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(190px, 23vw, 270px);
  aspect-ratio: 2/3;
  cursor: pointer;
  will-change: transform;
}
.bf-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 26px 50px -22px rgba(19, 30, 41, 0.5);
}

/* Seitenkante rechts — Bücher wirken wie Hardcover */
html.js .bf-book::after {
  content: '';
  position: absolute;
  top: 1.5%;
  bottom: 1.5%;
  right: -5px;
  width: 5px;
  background: repeating-linear-gradient(to bottom, #fbfaf5 0 3px, #e6e3d8 3px 4px);
  box-shadow: 1px 0 3px rgba(19, 30, 41, 0.2);
}

.bf-nav {
  position: absolute;
  top: 42%;
  z-index: 20;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.bf-nav:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.bf-prev { left: 4px; }
.bf-next { right: 4px; }

.bf-info {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  min-height: 108px;
}
.bf-info .pub-title { font-size: 1.2rem; }
.bf-info .pub-meta { font-size: 0.84rem; }

@media (prefers-reduced-motion: no-preference) {
  html.js .bf-book {
    transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.5s ease, filter 0.5s ease;
  }
}

@media (max-width: 980px) {
  .bf-stage { height: 400px; }
  html.js .bf-book { width: clamp(170px, 32vw, 230px); }
}
@media (max-width: 560px) {
  .bf-stage { height: 330px; }
  html.js .bf-book { width: 46vw; }
  .bf-nav { width: 46px; height: 46px; top: 38%; }
}

/* ---------- Audio-Player in Beitragslisten ---------- */
.entry-list audio {
  display: block;
  width: 100%;
  max-width: 440px;
  height: 40px;
  margin: 12px 0 8px;
}

/* ===========================================================
   Bookflow: Kauf/Leseprobe-Aktionen & Aufklapp-Innenseite
   =========================================================== */

.bf-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 22px;
}
.bf-actions .btn { padding: 12px 24px; }

/* Innenseite: liegt hinter dem Cover, wird beim Aufklappen sichtbar */
html.js .bf-book { perspective: 950px; }
.bf-page {
  position: absolute;
  inset: 1.5% 2% 1.5% 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8% 5% 8% 27%;
  text-align: center;
  background:
    linear-gradient(to left, rgba(19, 30, 41, 0.14), rgba(19, 30, 41, 0.02) 7%, transparent 12%),
    repeating-linear-gradient(to bottom, #fbfaf5 0 3px, #f0eee5 3px 4px);
  box-shadow: 0 18px 36px -22px rgba(19, 30, 41, 0.35);
}
html:not(.js) .bf-page { display: none; }
.bf-page-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.bf-page a {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent-dim);
  padding-bottom: 2px;
  white-space: nowrap;
}
.bf-page a:hover { color: var(--color-ink); border-bottom-color: var(--color-ink); }

/* Cover klappt beim Hover über das mittlere Buch auf */
html.js .bf-book img {
  position: relative;
  z-index: 1;
  transform-origin: left center;
  backface-visibility: hidden;
}
html.js .bf-book.is-active:hover img,
html.js .bf-book.is-active:focus-within img {
  transform: rotateY(-64deg);
}
html.js .bf-book.is-active:hover .bf-page,
html.js .bf-book.is-active:focus-within .bf-page {
  transform: translateX(13%);
  box-shadow: 0 30px 50px -22px rgba(19, 30, 41, 0.5);
}

@media (prefers-reduced-motion: no-preference) {
  html.js .bf-book img { transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
  html.js .bf-page { transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.55s ease; }

  html.js .bf-page > * {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  html.js .bf-book.is-active:hover .bf-page > *,
  html.js .bf-book.is-active:focus-within .bf-page > * {
    opacity: 1;
    transform: none;
  }
  html.js .bf-book.is-active:hover .bf-page > *:nth-child(1) { transition-delay: 0.16s; }
  html.js .bf-book.is-active:hover .bf-page > *:nth-child(2) { transition-delay: 0.24s; }
  html.js .bf-book.is-active:hover .bf-page > *:nth-child(3) { transition-delay: 0.32s; }
}

/* ---------- Video & Podcast ---------- */
.videos { padding: 40px 0 120px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}
.video-card {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-ink);
  display: block;
}
.video-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.5s ease, opacity 0.4s ease;
}
.video-card:hover img { transform: scale(1.05); opacity: 0.6; }
.video-card .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card .play span {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
}
.video-card:hover .play span { background: rgba(255, 255, 255, 0.18); }
.video-card .play span::after {
  content: '';
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.video-title {
  position: absolute;
  left: 18px; right: 18px; bottom: 14px;
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

/* ---------- Sprachumschalter ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  margin-right: 26px;
}
.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 7px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--color-text-soft);
  transition: color 0.25s ease;
}
.lang-switch button:hover { color: var(--color-text); }
.lang-switch button.is-current {
  color: var(--color-accent);
  box-shadow: inset 0 -1px 0 var(--color-accent);
}
.lang-switch button + button::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 10px;
  background: var(--color-line);
  margin-right: 9px;
  vertical-align: -1px;
}
@media (max-width: 560px) {
  .lang-switch { margin-right: 10px; }
  .lang-switch button { padding: 8px 5px; }
}

/* 6. Navigationspunkt (Schriftenverzeichnis) im Overlay-Stagger */
@media (prefers-reduced-motion: no-preference) {
  body.nav-open .nav-overlay a:nth-child(6) { transition-delay: 0.40s; }
}

/* ---------- Weitere Publikationen: Fächer ---------- */
.fan-title {
  text-align: center;
  font-size: 1.3rem;
  margin: 64px 0 30px;
}
.pub-fan {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.fan-card {
  position: relative;
  display: block;
  padding: 30px 30px 56px;
  background: var(--color-bg);
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 16px 32px -22px rgba(19, 30, 41, 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease;
}
.fan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 44px -22px rgba(19, 30, 41, 0.45);
}
.fan-card h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 10px;
}
.fan-card p {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin: 0;
}
.fan-arrow {
  position: absolute;
  left: 30px;
  bottom: 22px;
  color: var(--color-accent);
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}
.fan-card:hover .fan-arrow { transform: translateX(5px); }

@media (max-width: 980px) {
  .pub-fan { grid-template-columns: 1fr; }
}

/* ---------- Suche ---------- */
.suchbereich { padding-top: 30px; }
.search-box input {
  width: 100%;
  max-width: 620px;
  padding: 16px 22px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-bottom: 2px solid var(--color-accent);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-box input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 12px 28px -18px rgba(19, 30, 41, 0.35);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 6px;
}
.chip {
  border: 1px solid var(--color-line);
  background: none;
  color: var(--color-text-soft);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.chip:hover { color: var(--color-text); border-color: var(--color-text-soft); }
.chip.is-active {
  color: var(--color-bg);
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.such-status {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  margin: 18px 0 6px;
}

/* Suchbox auf der Startseite */
.pub-suche {
  margin: 56px auto 0;
  max-width: 620px;
  text-align: center;
}
.pub-suche input {
  width: 100%;
  padding: 15px 20px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-bottom: 2px solid var(--color-accent);
  outline: none;
}
.pub-suche input:focus { border-color: var(--color-accent); }

@media (prefers-reduced-motion: no-preference) {
  body.nav-open .nav-overlay a:nth-child(7) { transition-delay: 0.46s; }
}
