/* ============================================================
   Theme "kerstin" — originalgetreuer Nachbau des Dyad-Layouts
   von kerstinauerbach.de. Maße/Farben aus dem Original-CSS.
   ============================================================ */

/* === Fonts (selbst gehostet) === */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lato-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lato-400i.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/lato-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/noto-serif-var.woff2') format('woff2');
}

/* === Reset / Basis (Dyad: html 62.5% → 1rem = 10px) === */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; }

body {
  margin: 0;
  font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.8rem;
  line-height: 1.62;
  color: #6a6c6e;
  background-color: #242629;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 700;
  line-height: 1.38;
  color: #1a1c1e;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ============================================================
   Kopfleiste (Masthead) — fixiert, halbtransparent dunkel
   ============================================================ */
.site-header {
  background-color: rgba(36,38,41,0.8);
  color: #fff;
  display: table;
  left: 0;
  right: 0;
  top: 0;
  position: fixed;
  width: 100%;
  min-height: 90px;
  padding: 15px 40px;
  text-shadow: 0 0 3px rgba(0,0,0,0.3);
  z-index: 5;
}

.site-branding {
  display: table-cell;
  vertical-align: middle;
  width: 30%;
}
.site-title {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.site-title a, .site-description { color: #0027ef; }
.site-title a:hover { text-decoration: none; opacity: 0.85; }
.site-description {
  font-size: 1.6rem;
  font-weight: 300;
  margin: 0;
}
.home .site-header { background-color: rgba(36,38,41,0.4); }

.site-nav {
  display: table-cell;
  font-size: 1.4rem;
  text-align: right;
  vertical-align: middle;
  width: 70%;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li {
  display: inline-block;
  letter-spacing: 0.1em;
  margin-left: 1.5em;
  padding: 6px 0 10px;
  text-transform: uppercase;
}
.site-nav a {
  color: #fff;
  transition: opacity 0.3s;
}
.site-nav a:hover, .site-nav a:focus { opacity: 0.7; text-decoration: none; }
.site-nav a.active { opacity: 0.7; }
.menu-toggle { display: none; }

/* ============================================================
   Startseiten-Banner — bildschirmfüllend, fixiert
   ============================================================ */
.site-banner {
  background-color: #242629;
  background-position: 50% 30%;
  background-size: cover;
  height: 63vh;
  left: 0;
  position: fixed;
  text-shadow: 0 0 8px rgba(0,0,0,0.3);
  top: 0;
  width: 100%;
  z-index: 1;
}
.site-banner-header {
  bottom: 6rem;
  color: #fff;
  left: 25%;
  position: absolute;
  right: 25%;
  text-align: center;
  z-index: 2;
}
.site-banner-header::before,
.site-banner-header::after {
  border-top: 1px solid rgba(255,255,255,0.5);
  content: "";
  display: block;
  margin: 0 auto;
  position: absolute;
}
.site-banner-header::before {
  left: 25%; top: 0; width: 50%;
  border: 0; height: 3px;
  background: linear-gradient(to right,
    rgba(255,255,255,0.5) 0 39%,
    rgba(102,140,199,0.9) 39% 61%,
    rgba(255,255,255,0.5) 61% 100%);
}
.site-banner-header::after { bottom: 0; left: 44%; width: 12%; }
.banner-title {
  color: #fff;
  font-size: 4.5rem;
  font-weight: 400;
  margin: 0;
  padding: 2rem 0 2.5rem;
}

/* ============================================================
   Content-Grundfläche
   ============================================================ */
.site-content { overflow: visible; }

/* Einzelseiten ohne Titelbild: weiße volle Fläche */
.is-singular .site-content {
  background-color: #fff;
  padding: 13.5rem 0 5rem;
  position: relative;
  z-index: 3;
}

/* Einzelseiten mit Titelbild: fixes Bildpanel links,
   weiße Karte schiebt sich darüber */
.entry-media {
  background-color: #242629;
  height: 100%;
  left: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 50%;
  z-index: 0;
}
.entry-media-thumb {
  background-color: #292c2f;
  background-position: 50% 50%;
  background-size: cover;
  height: 100%;
}
/* Seitentitel als Overlay unten auf dem Bild */
.entry-header-media {
  background: linear-gradient(transparent, rgba(0,0,0,0.45));
  bottom: 0;
  left: 0;
  padding: 6rem 3rem 3rem;
  position: absolute;
  right: 0;
}
.entry-header-media h1 {
  color: #fff;
  font-size: 5.4rem;
  font-weight: 700;
  margin: 0;
}

/* Mit Titelbild: rechte Hälfte durchgehend weiß */
.has-post-thumbnail .site-content {
  background: #fff;
  margin-left: 50%;
  min-height: 100vh;
  padding: 13.5rem 0 5rem;
}

/* Content-Fläche */
.page-article > .entry-inner {
  background: #fff;
  margin: 5rem auto 0;
  max-width: 700px;
  padding: 6rem 6rem 5rem;
  position: relative;
  z-index: 3;
}
.has-post-thumbnail .page-article > .entry-inner {
  background:
    linear-gradient(#e5e5e5, #e5e5e5) top center / 100% 1px no-repeat #fff;
  margin: 0 auto;
  max-width: 72%;
  padding: 5rem 0 3rem;
}

/* Gelber Kreis mit Pfeil oben mittig auf der Karte */
.page-article > .entry-inner::after {
  background: #e7ae01;
  border-radius: 30px;
  content: "";
  height: 36px;
  left: 50%;
  margin: -18px 0 0 -18px;
  position: absolute;
  top: 0;
  width: 36px;
}
.page-article > .entry-inner::before {
  color: #fff;
  content: "▾";
  font-size: 2.4rem;
  left: 50%;
  line-height: 34px;
  margin: -18px 0 0 -18px;
  position: absolute;
  text-align: center;
  top: 0;
  width: 36px;
  z-index: 4;
}

.entry-header { text-align: center; }
.entry-title { font-size: 3.6rem; margin: 0 0 1rem; }
.entry-header time { color: #abb7c3; font-size: 1.4rem; letter-spacing: 0.1em; }
.entry-content { line-height: 1.75; }
.entry-content a { text-decoration: underline; }
.entry-content h1 { font-size: 3.2rem; }
.entry-content h2 { font-size: 2.4rem; }
.entry-content h3 { font-size: 2rem; }

/* ============================================================
   Startseite: Beitragskacheln (Bild/Text im Wechsel)
   ============================================================ */
.home .site-content {
  margin-top: 63vh;
  position: relative;
  z-index: 3;
}
.posts {
  background: #fff;
}
.posts::after { clear: both; content: ""; display: table; }
.posts .hentry {
  float: left;
  overflow: hidden;
  position: relative;
  width: 50%;
}
.posts .hentry .entry-media {
  background-color: #242629;
  background-position: center center;
  background-size: cover;
  float: left;
  padding-bottom: 66.666%;
  position: relative;
  width: 50%;
  z-index: 0;
}
.posts .hentry:nth-of-type(4n+3) .entry-media,
.posts .hentry:nth-of-type(4n+4) .entry-media { float: right; }
.posts .entry-inner {
  bottom: 0;
  display: flex;
  align-items: center;
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
}
.posts .hentry:nth-of-type(4n+3) .entry-inner,
.posts .hentry:nth-of-type(4n+4) .entry-inner { left: 0; right: auto; }
.posts .hentry:not(.has-post-thumbnail) .entry-inner {
  position: relative;
  width: 100%;
}
.posts .entry-inner-content {
  max-height: 100%;
  overflow: hidden;
  padding: 3rem 9%;
  text-align: center;
  width: 100%;
}
.posts .entry-title { font-size: 2.4rem; margin: 0 0 0.5rem; }
.posts time { color: #abb7c3; font-size: 1.3rem; letter-spacing: 0.1em; }
.posts .entry-summary {
  font-size: 1.6rem;
  margin: 1.5rem 0;
  max-height: 16rem;
  overflow: hidden;
}
.link-more {
  border-bottom: 2px solid #e7ae01;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  padding-bottom: 2px;
  text-transform: uppercase;
}
.link-more:hover { text-decoration: none; color: #1a1c1e; }

/* ============================================================
   Konzertkalender (sEHENsWERT)
   ============================================================ */
.filterbar {
  font-family: 'Courier New', Courier, monospace;
  margin: 2rem 0 3rem;
  text-align: center;
}
.filterbar button {
  background: none;
  border: 0;
  color: #6a6c6e;
  cursor: pointer;
  font: inherit;
  font-size: 1.6rem;
  padding: 0.2rem 0.6rem;
  text-decoration: underline;
}
.filterbar button.current {
  color: #1a1c1e;
  font-weight: 700;
  text-decoration: none;
}
.event-list-view {
  list-style: none;
  margin: 0;
  padding: 0;
}
.event-list-view .event {
  display: flex;
  gap: 2rem;
  padding: 2rem 0 3rem;
}
.event-date {
  align-self: flex-start;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  color: #1a1c1e;
  flex-shrink: 0;
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.25;
  padding: 0.5rem 0.8rem;
  text-align: center;
  min-width: 6.4rem;
}
.event-weekday { color: #888; font-size: 1.2rem; text-transform: uppercase; }
.event-day { font-size: 2.2rem; font-weight: 700; }
.event-month { font-size: 1.4rem; letter-spacing: 0.05em; text-transform: uppercase; }
.event-year { color: #888; font-size: 1.2rem; }
.event-info { min-width: 0; }
.event-title { font-size: 2rem; margin: 0 0 0.3rem; }
.event-title a { text-decoration: underline; }
.event-time { font-weight: 700; margin-right: 1rem; }
.event-time::after { content: " Uhr"; font-weight: 400; }
.event-location { letter-spacing: 0.05em; }
.event-program,
.event-meta .event-program {
  color: #1a1c1e;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}
.event-content img { display: block; margin-top: 1rem; max-width: 24rem; }
.event-content { font-size: 1.6rem; }
.event-meta { text-align: center; margin-bottom: 2rem; }

/* ============================================================
   Einfache Beitrags-/Terminlisten (Fallback list.html)
   ============================================================ */
.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.entry-list li {
  align-items: baseline;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
}
.entry-list a { color: #1a1c1e; }
.entry-list time {
  color: #abb7c3;
  flex-shrink: 0;
  font-size: 1.4rem;
  margin-left: 1rem;
  white-space: nowrap;
}

.pagination {
  display: flex;
  font-size: 1.5rem;
  gap: 1rem;
  justify-content: center;
  list-style: none;
  margin: 3rem 0 0;
  padding: 2rem 0;
  background: #fff;
}
.pagination a { color: #1a1c1e; }

/* ============================================================
   Galerie (iM bILDE)
   ============================================================ */
.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-top: 1.5rem;
}
.gallery img {
  cursor: zoom-in;
  display: block;
  height: 200px;
  object-fit: cover;
  width: 100%;
}

/* Lightbox (Großansicht) */
.lightbox {
  align-items: center;
  background: rgba(20,21,23,0.92);
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 20;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 92vh;
  max-width: 88vw;
  object-fit: contain;
}
.lightbox button {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 4rem;
  line-height: 1;
  opacity: 0.7;
  padding: 1rem 2rem;
  position: fixed;
  transition: opacity 0.2s;
}
.lightbox button:hover { opacity: 1; }
.lb-close { right: 1rem; top: 1rem; }
.lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* ============================================================
   Audio (hÖRBAR)
   ============================================================ */
.audio-list { list-style: none; margin: 0; padding: 0; }
.audio-list li { margin-bottom: 3rem; }
.audio-list audio { width: 100%; }
.audio-list .audio-title { font-size: 1.7rem; margin-top: 0.5rem; }

/* ============================================================
   Slider (ehem. MetaSlider-Galerien im Content)
   ============================================================ */
.js-slider { position: relative; }
.js-slider .slide {
  /* Feste 700×500-Box wie im MetaSlider-Original: alle Bilder gleich hoch */
  aspect-ratio: 7 / 5;
  display: none;
  margin: 0;
  position: relative;
}
.js-slider .slide.current { display: block; }
.js-slider .slide-caption {
  /* Caption-Overlay wie im MetaSlider-Original */
  background: rgba(0, 0, 0, 0.7);
  bottom: 0;
  color: #fff;
  left: 0;
  line-height: 1.4;
  padding: 5px 10px;
  position: absolute;
  white-space: pre-line;
  width: 100%;
}
.js-slider .slide img {
  display: block;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
  width: 100%;
}
.slider-nav {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin: 1rem 0 0;
}
.slider-nav button {
  background: #d8dfe6;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 12px;
  padding: 0;
  width: 12px;
}
.slider-nav button.current { background: #e7ae01; }

/* ============================================================
   Video-Embeds (YouTube)
   ============================================================ */
.video-embed {
  aspect-ratio: 16 / 9;
  margin: 2rem 0;
}
.video-embed iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background-color: #292c2f;
  color: #616a74;
  position: relative;
  text-align: center;
  z-index: 3;
}
.widget-area {
  margin: 0 auto;
  max-width: 900px;
  padding: 4rem 2rem 3rem;
}
.widget-title {
  color: #abb7c3;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { display: inline-block; margin: 0 1.2rem 0.5rem 0; }
.widget a { color: #abb7c3; font-size: 1.4rem; }
.widget a:hover { color: #fff; }
.footer-bottom-info {
  background-color: #242629;
  font-size: 1.4rem;
  padding: 3rem 5.5rem;
}
.footer-bottom-info a { color: inherit; }
.footer-bottom-info a:hover { color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 1600px) {
  .entry-media { width: 35%; }
  .has-post-thumbnail .site-content { margin-left: 35%; }
}

@media (max-width: 899px) {
  .site-header {
    display: block;
    padding: 12px 20px;
    position: absolute;
  }
  .site-branding, .site-nav {
    display: block;
    text-align: left;
    width: auto;
  }
  .menu-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    margin-top: 0.8rem;
    padding: 0.4rem 1.2rem;
    text-transform: uppercase;
  }
  .site-nav ul { display: none; padding: 1rem 0 0; }
  .site-nav.open ul { display: block; }
  .site-nav li { display: block; margin: 0; padding: 0.3rem 0; }

  .site-banner { height: 65vh; position: relative; }
  .home .site-content { margin-top: 0; }

  .entry-media {
    height: auto;
    padding-bottom: 66%;
    position: relative;
    width: 100%;
  }
  .entry-media-thumb {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
  }
  .has-post-thumbnail .site-content,
  .is-singular .site-content {
    background: #fff;
    margin-left: 0;
    min-height: 0;
    padding-top: 0;
  }
  .page-article > .entry-inner,
  .has-post-thumbnail .page-article > .entry-inner {
    margin-top: 0;
    max-width: none;
    padding: 4rem 2rem 3rem;
  }
  .is-singular .site-content { padding-top: 2rem; }
  .is-singular.has-post-thumbnail .site-content { padding-top: 0; }
  .entry-header-media { padding: 4rem 2rem 1.5rem; }
  .entry-header-media h1 { font-size: 3.6rem; }

  .posts .hentry { float: none; width: 100%; }
  .posts .hentry .entry-media,
  .posts .hentry:nth-of-type(4n+3) .entry-media,
  .posts .hentry:nth-of-type(4n+4) .entry-media {
    float: none;
    padding-bottom: 66%;
    width: 100%;
  }
  .posts .entry-inner {
    position: relative;
    width: 100%;
  }
  .event-list-view .event { gap: 1.5rem; }
}
