/*
Theme Name: Bibelweg Kressbronn
Theme URI: https://www.bibelweg-kressbronn.de/
Author: Christlicher Männertreff Kressbronn
Description: Schlankes, datenschutzfreundliches WordPress-Theme für den Kressbronner Bibelweg mit lokalen Schriften (Lato & Merriweather), Gutenberg-Unterstützung und ohne externes Tracking.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bibelweg
*/

/* ==========================================================================
   Kressbronner Bibelweg – Zentrale Stylesheet-Datei
   Reines, wartbares CSS ohne Framework, ohne Tracking, mit lokalen Schriften
   ========================================================================== */

/* --- Lokale Webfonts (Lato & Merriweather, aus _backup/ übernommen) --- */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/lato-400.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/lato-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/lato-700.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/lato-700-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/merriweather-400.woff2") format("woff2");
}

@font-face {
  font-family: "Merriweather";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/merriweather-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/merriweather-700.woff2") format("woff2");
}

@font-face {
  font-family: "Merriweather";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/merriweather-700-italic.woff2") format("woff2");
}

/* --- Design-Tokens (Original-Farbpalette & Typografie) --- */
:root {
  --color-bg: #ece7e8;
  --color-surface: #ffffff;
  --color-text: #383838;
  --color-text-muted: #7e7e7e;
  --color-text-on-dark: #ece7e8;
  --color-text-on-dark-muted: #c8c3c4;
  --color-heading: #124361;
  --color-heading-light: #2c85bb;
  --color-link: #124361;
  --color-link-hover: #25628a;
  --color-accent: #f66a23;
  --color-accent-bg: rgba(246, 106, 35, 0.12);
  --color-nav-bg: #010a1b;
  --color-overlay-dark: rgba(1, 10, 27, 0.7);
  --color-overlay-hero: rgba(56, 56, 56, 0.5);

  --font-heading: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Merriweather", Georgia, "Times New Roman", serif;

  --fs-h1: 35px;
  --fs-h2: 29px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-h5: 16px;
  --fs-body: 14px;

  --container-max: 960px;
  --gutter: 16px;
  --radius-card: 16px;
}

/* --- Basis & Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-link-hover);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.55em;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-heading);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); color: var(--color-text); }

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Barrierefreiheit (Skip-Links & Screenreader-Text) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 6px;
  background-color: var(--color-surface);
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: top 0.15s ease;
}

.skip-link:focus-visible {
  top: 8px;
}

/* --- Layout-Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ==========================================================================
   Gemeinsamer Header & Navigation
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 100;
  background-color: var(--color-nav-bg);
  background-image:
    linear-gradient(var(--color-overlay-dark), var(--color-overlay-dark)),
    url("assets/img/hero-oekumenische-kirchen.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-attachment: fixed;
  color: var(--color-text-on-dark);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  position: relative;
}

.site-logo {
  flex: 0 0 auto;
  display: block;
  width: 160px;
  text-decoration: none;
}

.site-logo img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* Hauptnavigation (Desktop) */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  color: var(--color-text-on-dark);
  cursor: pointer;
  user-select: none;
}

.nav-toggle-btn:hover {
  background-color: var(--color-accent-bg);
  color: var(--color-accent);
}

.nav-toggle-input:focus-visible + .nav-toggle-btn {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  position: relative;
  transition: background-color 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

/* Hamburger -> X im geöffneten Zustand */
.nav-toggle-input:checked + .nav-toggle-btn .nav-toggle-icon {
  background-color: transparent;
}

.nav-toggle-input:checked + .nav-toggle-btn .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle-input:checked + .nav-toggle-btn .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 6px 4px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-text-on-dark);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 700;
}

/* ==========================================================================
   Startseite: Zone 2 – Hero-Banner (Vollbild-Hintergrundbild)
   ========================================================================== */
.hero-banner {
  min-height: calc(100vh - 100px);
  background-color: var(--color-text);
  background-image:
    linear-gradient(var(--color-overlay-hero), var(--color-overlay-hero)),
    url("assets/img/hero-oekumenische-kirchen.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-attachment: fixed;
}

/* ==========================================================================
   Startseite: Zone 3 – Einweihung am 12.09.2010
   ========================================================================== */
.section-einweihung {
  background-color: var(--color-surface);
  padding: 80px 0;
}

.einweihung-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.einweihung-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main-link,
.gallery-thumb-link {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--color-bg);
}

.gallery-main-link img,
.gallery-thumb-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-main-link:hover img,
.gallery-thumb-link:hover img {
  transform: scale(1.03);
}

.img-pos-top {
  object-position: 50% 10%;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.einweihung-text h2 {
  margin-bottom: 12px;
}

.einweihung-subtitle {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  font-weight: 400;
  color: var(--color-text);
}

.einweihung-credits {
  margin-top: 16px;
}

/* ==========================================================================
   Startseite: Zone 4 – YouTube Imagefilme (Karte auf Fotohintergrund)
   ========================================================================== */
.section-youtube {
  background-color: #2c2c2c;
  background-image: url("assets/img/hintergrund-youtube-sektion.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  padding: 80px 0;
}

.youtube-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 40px;
  text-align: center;
}

.youtube-badge {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 28px;
  border-radius: 50%;
  object-fit: cover;
}

.youtube-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-heading);
  overflow-wrap: anywhere;
}

.youtube-heading a {
  color: var(--color-heading);
  text-decoration: underline;
  word-break: break-word;
}

.youtube-heading a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Startseite: Zone 5 & 6 – Kontaktleiste auf #ece7e8
   ========================================================================== */
.section-contact-strip {
  background-color: var(--color-bg);
  padding: 96px 0 48px;
}

.contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.contact-item {
  margin: 0;
  color: var(--color-text);
  line-height: 1.5;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--color-heading);
  text-decoration: underline;
}

.contact-phone {
  font-size: 28px;
  line-height: 1.3;
}

.contact-phone .contact-icon {
  font-size: 20px;
}

.contact-address {
  font-size: 20px;
  line-height: 1.45;
}

.contact-email {
  font-size: 14px;
  text-align: center;
  padding-top: 6px;
}

/* ==========================================================================
   Startseite: Zone 7 – Abschluss-Textbanner (dunkler Orange-Hintergrund)
   ========================================================================== */
.section-closing-banner {
  background-color: #3b2412;
  background-image:
    linear-gradient(var(--color-overlay-dark), var(--color-overlay-dark)),
    url("assets/img/hintergrund-footer-orange.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-attachment: fixed;
  color: var(--color-text-on-dark-muted);
  padding: 40px 0 32px;
}

.section-closing-banner p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-on-dark-muted);
}

/* ==========================================================================
   Gemeinsamer Footer
   ========================================================================== */
.site-footer {
  background-color: #3b2412;
  background-image:
    linear-gradient(var(--color-overlay-dark), var(--color-overlay-dark)),
    url("assets/img/hintergrund-footer-orange.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-attachment: fixed;
  border-top: 1px solid rgba(236, 231, 232, 0.14);
  padding: 20px 0 28px;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-link {
  display: inline-block;
  padding: 4px 2px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-on-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav-link:hover,
.footer-nav-link[aria-current="page"] {
  color: var(--color-accent);
}

.footer-nav-link[aria-current="page"] {
  font-weight: 700;
}

/* ==========================================================================
   Responsive Anpassungen (Tablet <= 1024px & Smartphone <= 768px)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --fs-h1: 31px;
    --fs-h2: 25px;
    --fs-h3: 21px;
    --fs-h4: 18px;
    --fs-h5: 15px;
  }

  /* Sanftes Scrollen auf Mobil- und Tablet-Geräten */
  .site-header,
  .hero-banner,
  .section-closing-banner,
  .site-footer {
    background-attachment: scroll;
  }

  .contact-phone {
    font-size: 23px;
  }

  .contact-address {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .site-logo {
    width: 140px;
  }

  .nav-toggle-btn {
    display: inline-flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--color-nav-bg);
    border-top: 1px solid rgba(236, 231, 232, 0.15);
    padding: 8px 16px 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  }

  .nav-toggle-input:checked ~ .nav-list {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 10px;
    white-space: normal;
  }

  .nav-link[aria-current="page"] {
    background-color: var(--color-accent-bg);
  }

  .hero-banner {
    min-height: 55vh;
  }

  .section-einweihung,
  .section-youtube {
    padding: 48px 0;
  }

  .einweihung-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gallery-thumbs {
    gap: 10px;
  }

  .youtube-card {
    padding: 28px 18px;
  }

  .youtube-badge {
    max-width: 180px;
    margin-bottom: 20px;
  }

  .youtube-heading {
    font-size: 20px;
    line-height: 1.5;
  }

  .section-contact-strip {
    padding: 48px 0 36px;
  }

  .contact-strip-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .contact-phone {
    font-size: 24px;
  }

  .contact-address {
    font-size: 18px;
  }

  .contact-email {
    padding-top: 0;
  }

  .footer-nav-list {
    gap: 10px 14px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Unterseiten – Gemeinsame Komponenten & Layouts
   ========================================================================== */

/* Dunkles Seitenbanner (KONTAKT, IMPRESSUM) */
.page-banner {
  background-color: #3b2412;
  background-image:
    linear-gradient(var(--color-overlay-dark), var(--color-overlay-dark)),
    url("assets/img/hintergrund-footer-orange.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-attachment: fixed;
  padding: 36px 0;
  text-align: center;
}

.page-banner h1 {
  margin: 0;
  color: #ffffff;
  font-size: var(--fs-h1);
  letter-spacing: 0.02em;
}

/* Allgemeine Inhaltssektionen */
.page-section {
  background-color: var(--color-bg);
  padding: 32px 0;
}

.page-section--white {
  background-color: var(--color-surface);
}

.page-section--light {
  background-color: #efefef;
  padding: 48px 0;
}

.page-section--compact {
  padding: 16px 0;
}

.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

/* Buttons (Originalfarbe #25628a) */
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background-color: #25628a;
  color: var(--color-text-on-dark);
  border: 2px solid #25628a;
}

.btn-primary:hover {
  background-color: var(--color-heading);
  border-color: var(--color-heading);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: #25628a;
  border: 2px solid #25628a;
}

.btn-outline:hover {
  background-color: #25628a;
  color: #ffffff;
}

/* Bild-Links mit sanftem Hover */
.media-link {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.media-link img {
  width: 100%;
  transition: transform 0.25s ease;
}

.media-link:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   Unterseite: Christlicher Männertreff
   ========================================================================== */
.maennertreff-intro-grid {
  display: grid;
  grid-template-columns: 6fr 2fr 4fr;
  gap: 24px;
  align-items: start;
}

.maennertreff-btn-box h2 {
  font-size: var(--fs-h5);
  color: var(--color-text);
  margin-bottom: 16px;
}

.maennertreff-btn-link {
  display: inline-block;
  max-width: 240px;
}

.maennertreff-pdf-row {
  display: grid;
  grid-template-columns: 6fr 2fr 4fr;
  gap: 24px;
  align-items: start;
}

.maennertreff-pdf-caption {
  text-align: center;
  margin-top: 8px;
}

.prose-large {
  font-size: 18px;
  line-height: 1.7;
}

.prose-large p {
  text-align: justify;
  margin-bottom: 1.15em;
}

.prose-large h4 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text);
  margin: 1.6em 0 0.7em;
}

/* ==========================================================================
   Unterseite: Bibelweg (ausführliche Wegbeschreibung)
   ========================================================================== */
.bibelweg-section {
  padding: 28px 0;
}

.bibelweg-content {
  max-width: var(--container-max);
}

.bibelweg-content p {
  margin-bottom: 1em;
}

.bibelweg-route-list {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}

.bibelweg-route-list li {
  margin-bottom: 0.45em;
}

.bibel-quote {
  color: #c00000;
  font-style: italic;
  font-weight: 700;
}

.bibel-blessing {
  color: #c00000;
  font-weight: 700;
  text-align: center;
  margin: 1.25em 0;
}

.bibel-info-text {
  color: #2f5496;
}

.bibelweg-figure {
  margin: 0 0 24px;
}

.bibelweg-figure img {
  width: 100%;
  border-radius: 4px;
}

.bibelweg-map-preview {
  max-width: 667px;
  margin: 0 0 20px;
}

.bibelweg-links-list {
  list-style: none;
  margin: 0.75em 0 0;
  padding: 0;
}

.bibelweg-links-list li {
  margin-bottom: 0.65em;
  overflow-wrap: anywhere;
}

.bibelweg-facts {
  list-style: none;
  margin: 1em 0 0;
  padding: 0;
}

.bibelweg-facts li {
  margin-bottom: 0.35em;
}

.bibelweg-spende {
  text-align: center;
  margin: 1.25em 0;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
}

.bibelweg-spende p {
  margin-bottom: 0.35em;
}

/* ==========================================================================
   Unterseite: Die 12 Stationen (Flyer, Karte & Standortkarten)
   ========================================================================== */
.flyer-center {
  max-width: 480px;
  margin: 0 auto;
}

.flyer-two-col {
  display: grid;
  grid-template-columns: 6fr 2fr 4fr;
  gap: 24px;
  align-items: start;
}

.flyer-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.station-row {
  display: grid;
  grid-template-columns: 6fr 2fr 4fr;
  gap: 24px;
  align-items: start;
}

.station-panel-link {
  display: block;
}

.station-panel-link img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* DSGVO-freundliche Standortkarte ohne externes Tracking */
.map-card {
  background-color: var(--color-surface);
  border: 1px solid rgba(18, 67, 97, 0.16);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.map-card-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
}

.map-card-coords {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.map-card-note {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
}

.map-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-card-actions .btn-primary,
.map-card-actions .btn-outline {
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
}

/* ==========================================================================
   Unterseite: Geführte Wanderungen
   ========================================================================== */
.section-wanderungen {
  background-color: var(--color-bg);
  background-image:
    linear-gradient(rgba(236, 231, 232, 0.8), rgba(236, 231, 232, 0.8)),
    url("assets/img/gefuhrte-wanderungen-hintergrund.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 47% 76%;
  padding: 48px 0 64px;
  min-height: 68vh;
}

.wanderungen-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.wanderungen-main h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.wanderungen-lead {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.45;
  color: var(--color-heading);
  margin-bottom: 28px;
}

.termine-table {
  width: 100%;
  max-width: 460px;
  border-collapse: collapse;
}

.termine-table td {
  padding: 8px 12px;
  vertical-align: top;
  font-size: 15px;
}

.termine-table .termin-datum {
  text-align: right;
  width: 45%;
}

.termine-table .termin-jahr {
  text-align: left;
  width: 55%;
}

/* ==========================================================================
   Unterseite: Medien (Presseberichte)
   ========================================================================== */
.medien-row {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 24px;
  align-items: start;
}

.medien-card {
  max-width: 460px;
}

.medien-caption {
  margin-top: 10px;
}

/* ==========================================================================
   Unterseite: Links und Pdfs
   ========================================================================== */
.links-item {
  text-align: center;
  padding: 28px 0;
}

.links-item h2 {
  font-size: var(--fs-h1);
  margin-bottom: 20px;
}

.links-card-img {
  display: block;
  max-width: 460px;
  margin: 0 auto;
}

/* ==========================================================================
   Unterseite: KONTAKT
   ========================================================================== */
.kontakt-grid {
  display: grid;
  grid-template-columns: 3fr 6fr 3fr;
  gap: 28px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  color: var(--color-text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(56, 56, 56, 0.35);
  border-radius: 6px;
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
}

.form-input:focus,
.form-textarea:focus {
  outline: 2px solid #25628a;
  outline-offset: 1px;
  border-color: #25628a;
}

.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox-row input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #25628a;
}

.form-required-note {
  font-size: 13px;
  color: var(--color-text);
  margin: 0;
}

.contact-form .btn-outline {
  align-self: flex-start;
  border-radius: 999px;
  padding: 10px 28px;
}

/* ==========================================================================
   Unterseite: IMPRESSUM
   ========================================================================== */
.impressum-address {
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.8;
}

/* ==========================================================================
   Responsive Anpassungen für Unterseiten
   ========================================================================== */
@media (max-width: 1024px) {
  .page-banner {
    background-attachment: scroll;
  }

  .maennertreff-intro-grid,
  .maennertreff-pdf-row,
  .flyer-two-col,
  .station-row {
    grid-template-columns: 1fr 1fr;
  }

  .grid-spacer {
    display: none;
  }

  .kontakt-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .maennertreff-intro-grid,
  .maennertreff-pdf-row,
  .flyer-two-col,
  .station-row,
  .wanderungen-grid,
  .medien-row {
    grid-template-columns: 1fr;
  }

  .prose-large {
    font-size: 15px;
  }

  .wanderungen-main h1 {
    font-size: 26px;
  }

  .wanderungen-lead {
    font-size: 17px;
  }

  .links-item h2 {
    font-size: 28px;
  }
}

/* ==========================================================================
   Kontakt-Karte (mailto-Lösung mit Fehlererkennung) & Rechtstexte
   ========================================================================== */
.contact-card {
  background-color: var(--color-surface);
  border: 1px solid rgba(18, 67, 97, 0.14);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-card p {
  margin-bottom: 1em;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.contact-fallback {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 8px;
  background-color: #fff6ed;
  border: 1px solid rgba(246, 106, 35, 0.45);
  color: var(--color-text);
  font-size: 13.5px;
}

.contact-fallback[hidden] {
  display: none;
}

.contact-fallback-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #a74514;
}

.contact-copy-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.contact-email-code {
  padding: 6px 10px;
  border-radius: 4px;
  background-color: var(--color-surface);
  border: 1px solid rgba(56, 56, 56, 0.2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  user-select: all;
}

.copy-feedback {
  font-size: 13px;
  font-weight: 700;
  color: #1c730e;
}

.contact-direct-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(56, 56, 56, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.contact-privacy-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--color-text-muted);
}

/* Impressum & Datenschutzerklärung */
.legal-content {
  max-width: 780px;
}

.legal-content h2 {
  font-size: 22px;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 17px;
  margin-top: 1.2em;
  margin-bottom: 0.45em;
}

.legal-content ul {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.legal-content li {
  margin-bottom: 0.4em;
}

.legal-meta {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid rgba(56, 56, 56, 0.15);
  font-size: 13px;
  color: var(--color-text-muted);
}


/* ==========================================================================
   WordPress & Gutenberg Block-Editor Integration
   ========================================================================== */

/* Aktiver Menüpunkt über WordPress-Standardklassen */
.nav-list .menu-item a {
  display: inline-block;
  padding: 6px 4px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-text-on-dark);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-list .menu-item a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-ancestor > a {
  color: var(--color-accent);
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  font-weight: 700;
}

.footer-nav-list .menu-item a {
  display: inline-block;
  padding: 4px 2px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-on-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav-list .menu-item a:hover,
.footer-nav-list .current-menu-item > a,
.footer-nav-list .current_page_item > a {
  color: var(--color-accent);
}

.footer-nav-list .current-menu-item > a,
.footer-nav-list .current_page_item > a {
  font-weight: 700;
}

/* Gutenberg-Basisblöcke und Ausrichtung */
.wp-block-group {
  margin-top: 0;
  margin-bottom: 0;
}

.entry-content > * {
  margin-bottom: 1.1em;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content ul,
.entry-content ol,
.wp-block-list {
  margin: 0 0 1.15em;
  padding-left: 1.5em;
}

.entry-content ul.bibelweg-route-list,
.entry-content ul.bibelweg-facts,
.entry-content ul.bibelweg-links-list,
.entry-content ul.contact-direct-list,
ul.wp-block-list.bibelweg-route-list,
ul.wp-block-list.bibelweg-facts,
ul.wp-block-list.bibelweg-links-list {
  list-style: none;
  padding-left: 0;
}

.entry-content li,
.wp-block-list li {
  margin-bottom: 0.4em;
}

.has-text-align-center {
  text-align: center;
}

.has-text-align-right {
  text-align: right;
}

.has-text-align-left {
  text-align: left;
}

/* Gutenberg Spalten (niedrige Spezifität via :where(), damit Grid-Klassen wie .kontakt-grid oder .wanderungen-grid Vorrang behalten) */
:where(.wp-block-columns) {
  display: flex;
  flex-wrap: nowrap;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 0;
}

:where(.wp-block-column) {
  flex: 1 1 0;
  min-width: 0;
}

/* Gutenberg Bilder & Galerien */
.wp-block-image {
  margin: 0 0 1.25em;
}

.wp-block-image:last-child {
  margin-bottom: 0;
}

.wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.wp-block-image.aligncenter {
  text-align: center;
}

.wp-block-image.aligncenter img {
  margin-left: auto;
  margin-right: auto;
}

.wp-block-image.is-style-rounded img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.wp-block-image figcaption,
.wp-block-gallery figcaption,
.single-post-thumb figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 1.25em;
}

.wp-block-gallery .wp-block-image {
  margin: 0;
}

.wp-block-gallery .wp-block-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

/* Gutenberg Buttons */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.25em 0;
}

.wp-block-button__link {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  background-color: #25628a;
  color: var(--color-text-on-dark);
  border: 2px solid #25628a;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wp-block-button__link:hover {
  background-color: var(--color-heading);
  border-color: var(--color-heading);
  color: #ffffff;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent;
  color: #25628a;
  border: 2px solid #25628a;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: #25628a;
  color: #ffffff;
}

/* Gutenberg Zitate, Trennlinien, Tabellen & Dateien */
.wp-block-quote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--color-heading);
  background-color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

.wp-block-separator {
  border: 0;
  border-top: 1px solid rgba(56, 56, 56, 0.18);
  margin: 2em 0;
}

.wp-block-table {
  margin: 0 0 1.5em;
  overflow-x: auto;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(56, 56, 56, 0.12);
  text-align: left;
  vertical-align: top;
}

.wp-block-table.termine-table-block table {
  max-width: 460px;
}

.wp-block-table.termine-table-block td {
  border-bottom: none;
  font-size: 15px;
}

.wp-block-table.termine-table-block td:first-child {
  text-align: right;
  width: 45%;
}

.wp-block-table.termine-table-block td:last-child {
  text-align: left;
  width: 55%;
}

.wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 1em 0;
}

.wp-block-file__button {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 6px;
  background-color: #25628a;
  color: var(--color-text-on-dark);
  text-decoration: none;
  font-size: 13px;
}

.wp-block-file__button:hover {
  background-color: var(--color-heading);
  color: #ffffff;
}

/* Startseite: Einweihung & YouTube innerhalb von Gutenberg-Blöcken */
.section-einweihung .gallery-main-link img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.section-youtube .youtube-badge-block {
  max-width: 280px;
  margin: 0 auto 28px;
}

.section-youtube .youtube-badge-block img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================================================
   Beitragsübersicht (home.php) & Einzelbeiträge (single.php)
   ========================================================================== */
.post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.post-card {
  background-color: var(--color-surface);
  border: 1px solid rgba(18, 67, 97, 0.12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-card-thumb img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.post-card-body {
  padding: 28px;
}

.post-meta {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-text-muted);
}

.post-card-title {
  margin: 0 0 12px;
  font-size: 26px;
}

.post-card-title a {
  color: var(--color-heading);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--color-accent);
}

.post-card-excerpt {
  margin-bottom: 18px;
}

.post-card-more {
  margin: 0;
}

.post-banner-meta {
  margin: 10px 0 0;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-text-on-dark-muted);
}

.single-post-container {
  max-width: 780px;
}

.single-post-thumb {
  margin: 0 0 28px;
}

.single-post-thumb img {
  width: 100%;
  border-radius: 6px;
}

.single-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(56, 56, 56, 0.15);
  font-family: var(--font-heading);
  font-size: 15px;
}

.posts-pagination {
  margin-top: 32px;
  text-align: center;
}

.posts-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.posts-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  background-color: var(--color-surface);
  border: 1px solid rgba(18, 67, 97, 0.2);
  color: var(--color-heading);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 14px;
}

.posts-pagination .page-numbers.current,
.posts-pagination .page-numbers:hover {
  background-color: #25628a;
  border-color: #25628a;
  color: #ffffff;
}

@media (max-width: 768px) {
  .nav-list .menu-item a {
    display: block;
    padding: 12px 10px;
    white-space: normal;
  }

  .nav-list .current-menu-item > a,
  .nav-list .current_page_item > a {
    background-color: var(--color-accent-bg);
  }

  :where(.wp-block-columns) {
    flex-direction: column;
    gap: 20px;
  }

  .wp-block-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .section-einweihung .wp-block-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-youtube .youtube-badge-block {
    max-width: 180px;
    margin-bottom: 20px;
  }

  .post-card-body {
    padding: 20px;
  }

  .single-post-nav {
    flex-direction: column;
  }
}
