/*
Theme Name: Bosenheim Heritage
Theme URI: https://bosenheim.de/
Author: Bosenheim
Description: Ein minimalistisches WordPress-Block-Theme für Bosenheim in der Farbpalette "Mindful Palette 223" (Alex Cristache), mit The Events Calendar und Vereinsbeiträgen.
Version: 3.9.0
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bosenheim-heritage
Tags: full-site-editing, block-patterns, block-styles, custom-colors, editor-style, featured-images, wide-blocks
*/

/* ---------------------------------------------------------------------------
   Farbsystem: Mindful Palette 223 (Alex Cristache)
   Verbindlich für alle Farbwerte in diesem Theme. Keine Farben außerhalb
   dieser Palette einführen. Die Zuordnung zu den Paletten-Slugs in
   theme.json steht in der jeweiligen Zeile dort.

   Ausnahme: die drei Wappenfarben weiter unten. Das Bosenheimer Ortswappen
   ist ein heraldisches Hoheitszeichen und wird bewusst nicht umgefärbt.

   Kontraste gegen --color-background (#EBEBE9):
     --color-text       15,1:1   AAA   Fließtext
     --color-primary     7,9:1   AAA   Links, Buttons, Sekundärtext
     --color-secondary   5,3:1   AA    Hover, Flächen, Linien
     --color-accent      1,8:1   —     nur dekorativ, nie für Text
   Auf --color-surface (#DEC0AD): --color-secondary erreicht 3,6:1 und ist
   dort nur für große Schrift ab 24px bzw. 19px fett zulässig.
--------------------------------------------------------------------------- */
:root {
  --color-background: #EBEBE9; /* Mystic White */
  --color-surface:    #DEC0AD; /* Cinnamon Tea */
  --color-primary:    #114A6B; /* Tanzanite Blue */
  --color-secondary:  #9D4542; /* Lumberjack */
  --color-accent:     #E8A784; /* Ceramic Glaze */
  --color-text:       #001B2E; /* Oxford by Night */
}

:root {
  --bosenheim-line: #114a6b;
  --bosenheim-line-soft: color-mix(in srgb, var(--bosenheim-line) 52%, transparent);
  --bosenheim-creme: #ebebe9;
  --bosenheim-olive: #114a6b;
  --bosenheim-wine: #114a6b;
  --bosenheim-ink: #001b2e;
  --bosenheim-crest-cream: #e8dcc5;
  --bosenheim-crest-blue: #3f78b5;
  --bosenheim-crest-gold: #e7b82e;
  --bosenheim-button-radius: 14px;
  --bosenheim-serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --bosenheim-frame: 12px;
}

/* --------------------------------------------------------------------------
 * Editorial split heroes (3.0.20)
 * One predictable 65/35 system for all overview pages. This deliberately
 * neutralises the historic cover overlays, gradients and image zoom layers.
 * -------------------------------------------------------------------------- */
.bosenheim-split-hero {
  position: relative;
  display: flex !important;
  align-items: stretch !important;
  width: 100%;
  min-height: 600px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--bosenheim-line) !important;
  border-radius: 14px 14px 0 0;
  background: var(--bosenheim-ink) !important;
  box-shadow: none !important;
}

.bosenheim-split-hero::before,
.bosenheim-split-hero::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.bosenheim-split-hero > .wp-block-cover__background {
  display: none !important;
  opacity: 0 !important;
}

.bosenheim-split-hero > .wp-block-cover__image-background,
.bosenheim-events-hero__media {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  z-index: 0 !important;
  display: block;
  width: 65% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  background-position: center;
  background-size: cover;
  transform: none !important;
  transition: none !important;
}

.bosenheim-split-hero--home > .wp-block-cover__image-background {
  object-position: 52% 50% !important;
}

.bosenheim-split-hero--wineries > .wp-block-cover__image-background {
  object-position: 50% 54% !important;
}

.bosenheim-split-hero--community > .wp-block-cover__image-background {
  object-position: 54% 50% !important;
}

.bosenheim-split-hero > .wp-block-cover__inner-container,
.bosenheim-events-hero__inner {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  align-self: stretch !important;
  width: 35% !important;
  max-width: none !important;
  min-height: 598px;
  margin: 0 0 0 65% !important;
  padding: clamp(34px, 3.2vw, 54px) !important;
  background: var(--bosenheim-ink) !important;
  color: var(--bosenheim-creme) !important;
  text-shadow: none !important;
  animation: bosenheim-panel-reveal 360ms cubic-bezier(.22, .72, .26, 1) both;
}

.bosenheim-split-hero .heritage-hero-layout,
.bosenheim-split-hero .heritage-hero-copy,
.bosenheim-split-hero .bosenheim-subpage-copy {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  text-shadow: none !important;
}

.bosenheim-split-hero .heritage-hero-title,
.bosenheim-split-hero .bosenheim-editorial-title,
.bosenheim-events-hero__title {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  color: var(--bosenheim-creme) !important;
  font-family: var(--wp--preset--font-family--sans), Arial, sans-serif;
  font-size: clamp(2.25rem, 3.55vw, 3.85rem) !important;
  font-weight: 500 !important;
  letter-spacing: -.045em !important;
  line-height: .98 !important;
  text-wrap: balance;
}

.bosenheim-split-hero .heritage-hero-title em,
.bosenheim-split-hero .bosenheim-editorial-title em,
.bosenheim-events-hero__title em {
  display: inline-block;
  margin-top: .22em;
  color: var(--bosenheim-crest-cream) !important;
  font-family: var(--bosenheim-serif) !important;
  font-size: .92em !important;
  font-weight: 400 !important;
  letter-spacing: -.035em !important;
  line-height: 1.02 !important;
}

.bosenheim-events-hero {
  background-image: none !important;
  background-position: initial !important;
  background-size: initial !important;
}

.bosenheim-events-hero__media {
  background-position: 50% 50%;
}

.bosenheim-split-hero + :where(.heritage-section, .bosenheim-section, .bosenheim-section-compact),
.bosenheim-events-hero + .tribe-common {
  margin-block-start: 0 !important;
  border-top: 1px solid var(--bosenheim-line);
}

@keyframes bosenheim-panel-reveal {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1100px) and (min-width: 783px) {
  .bosenheim-split-hero { min-height: 500px !important; }

  .bosenheim-split-hero > .wp-block-cover__inner-container,
  .bosenheim-events-hero__inner {
    min-height: 498px;
    padding: 30px !important;
  }

  .bosenheim-split-hero .heritage-hero-title,
  .bosenheim-split-hero .bosenheim-editorial-title,
  .bosenheim-events-hero__title {
    font-size: clamp(2rem, 3.7vw, 2.85rem) !important;
  }
}

@media (max-width: 782px) {
  .bosenheim-split-hero {
    display: block !important;
    min-height: 0 !important;
    border-radius: 12px 12px 0 0;
  }

  .bosenheim-split-hero > .wp-block-cover__image-background,
  .bosenheim-events-hero__media {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
  }

  .bosenheim-split-hero > .wp-block-cover__inner-container,
  .bosenheim-events-hero__inner {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: clamp(30px, 8vw, 46px) clamp(24px, 7vw, 38px) !important;
  }

  .bosenheim-split-hero .heritage-hero-title,
  .bosenheim-split-hero .bosenheim-editorial-title,
  .bosenheim-events-hero__title {
    font-size: clamp(2.05rem, 10vw, 3.1rem) !important;
    line-height: 1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bosenheim-split-hero > .wp-block-cover__inner-container,
  .bosenheim-events-hero__inner {
    animation: none !important;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:not(.wp-admin) {
  position: relative;
  padding: var(--bosenheim-frame);
  background: var(--bosenheim-creme);
}

body:not(.wp-admin)::after {
  content: "";
  position: absolute;
  z-index: 90;
  inset: 10px;
  border: 1px solid var(--bosenheim-line);
  border-top: 0;
  border-radius: 8px;
  pointer-events: none;
}

body.admin-bar:not(.wp-admin)::after { top: 42px; }

.bosenheim-skip-link {
  position: fixed;
  z-index: 100000;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  border: 2px solid currentColor;
  border-radius: 8px;
  background: var(--bosenheim-ink);
  color: #ebebe9;
  font-weight: 700;
  transform: translateY(-180%);
}

.bosenheim-skip-link:focus {
  color: #ebebe9;
  outline: 3px solid #ebebe9;
  outline-offset: 2px;
  transform: translateY(0);
}

a {
  text-underline-offset: .18em;
  transition: color .18s ease, background-color .18s ease, opacity .18s ease;
}

.wp-site-blocks { overflow: visible; }

.wp-site-blocks > *,
.wp-site-blocks > main.wp-block-group.alignfull > * {
  margin-block-start: 0 !important;
}

.wp-site-blocks > main.has-global-padding { padding-inline: 0; }

.wp-site-blocks > main.wp-block-group.alignfull > .alignfull {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

.has-small-font-size { font-size: .76rem !important; }
.has-medium-font-size { font-size: .96rem !important; }
.has-large-font-size { font-size: clamp(1.05rem, 1.35vw, 1.22rem) !important; }
.has-x-large-font-size { font-size: clamp(1.9rem, 3.4vw, 3.5rem) !important; }
.has-display-font-size { font-size: clamp(2.75rem, 6.6vw, 6.3rem) !important; }

.wp-block-heading em,
.bosenheim-editorial-title em {
  color: var(--bosenheim-wine);
  font-family: var(--bosenheim-serif);
  font-weight: 400;
}

.bosenheim-eyebrow {
  margin-bottom: .7rem;
  font-size: .72rem !important;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bosenheim-section {
  padding-block: clamp(44px, 5vw, 72px);
  border-top: 1px solid var(--bosenheim-line);
}

.bosenheim-section-compact {
  padding-block: clamp(36px, 4vw, 58px);
  border-top: 1px solid var(--bosenheim-line);
}

.bosenheim-grid-section { padding-inline: clamp(22px, 4vw, 62px); }

.bosenheim-section-heading {
  max-width: 1320px !important;
  margin: 0 auto 32px !important;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bosenheim-line);
}

.bosenheim-text-link a {
  color: var(--bosenheim-wine);
  text-decoration-thickness: 1px;
}

.bosenheim-events-link {
  margin: 0;
}

.bosenheim-events-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 50px;
  padding: 12px 17px;
  border: 1px solid color-mix(in srgb, var(--bosenheim-wine) 55%, transparent);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.bosenheim-events-link a::before {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-color: currentColor;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 2v6M17 2v6M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 2v6M17 2v6M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bosenheim-events-link a::after {
  margin-left: 2px;
  content: "→";
  font-size: 1.15em;
  line-height: 1;
}

.bosenheim-events-link a:hover,
.bosenheim-events-link a:focus-visible {
  border-color: var(--bosenheim-wine);
  background: var(--bosenheim-wine);
  color: var(--bosenheim-creme);
}

.bosenheim-section,
.bosenheim-section-compact,
.bosenheim-framed-panel,
.bosenheim-footer,
.bosenheim-section-heading,
.bosenheim-event-query .wp-block-post-template,
.bosenheim-event-tile,
.bosenheim-card,
.bosenheim-winery-card,
.bosenheim-logo-cloud__item {
  border-color: var(--bosenheim-line) !important;
}

/* Framed, segmented navigation. */
.bosenheim-header {
  position: relative;
  z-index: 1;
  padding: 0 !important;
  border: 0;
  border-radius: 10px;
  background-clip: padding-box;
  background: linear-gradient(180deg, rgba(235, 235, 233,.48), rgba(235, 235, 233,.58)) !important;
  box-shadow: inset 0 1px 0 rgba(235, 235, 233,.68), 0 10px 28px rgba(0, 27, 46,.045);
  backdrop-filter: blur(20px) saturate(132%);
  -webkit-backdrop-filter: blur(20px) saturate(132%);
}

.bosenheim-header::before {
  content: "";
  position: absolute;
  inset: 0 -2px;
  border: 1px solid var(--bosenheim-line);
  border-radius: 10px;
  pointer-events: none;
}

.wp-site-blocks > .wp-block-template-part:has(> .bosenheim-header) {
  position: sticky;
  z-index: 1000;
  top: 0;
}

body.admin-bar:not(.wp-admin) .wp-site-blocks > .wp-block-template-part:has(> .bosenheim-header) { top: 32px; }

.bosenheim-header-grid {
  display: grid !important;
  grid-template-columns: minmax(238px, 300px) 92px 64px minmax(390px, 1fr) auto;
  min-height: 76px;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  gap: 0 !important;
}

.bosenheim-brand-cell,
.bosenheim-vine-symbol,
.bosenheim-language,
.bosenheim-nav-cell,
.bosenheim-calendar-cell {
  min-height: 76px;
  margin: 0 !important;
  border-right: 1px solid var(--bosenheim-line);
}

.bosenheim-brand-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px clamp(18px, 2.5vw, 38px);
}

.bosenheim-wordmark {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.42rem);
  font-weight: 500;
  letter-spacing: .24em;
  line-height: 1.15;
}

.bosenheim-wordmark a {
  color: var(--bosenheim-ink);
  text-decoration: none;
}

.bosenheim-brand-kicker {
  margin: .28rem 0 0;
  color: var(--bosenheim-wine);
  font-size: .58rem;
  font-weight: 650;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}

.bosenheim-vine-symbol,
.bosenheim-language {
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--bosenheim-olive);
}

.bosenheim-vine-symbol {
  line-height: 0;
}

.bosenheim-crest-mark {
  display: block;
  width: 38px;
  height: auto;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.bosenheim-crest-cream { fill: var(--bosenheim-crest-cream); }
.bosenheim-crest-blue { fill: var(--bosenheim-crest-blue); }
.bosenheim-crest-gold { fill: var(--bosenheim-crest-gold); }

@media (prefers-contrast: more) {
  .bosenheim-crest-blue { fill: #2f679f; }
  .bosenheim-crest-gold { fill: #cf9914; }
}

.bosenheim-language {
  color: var(--bosenheim-ink);
  font-size: .7rem;
  text-transform: uppercase;
}

.bosenheim-nav-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 12px;
  border-right: 0;
}

.bosenheim-primary-nav,
.bosenheim-primary-nav .wp-block-navigation__responsive-container,
.bosenheim-primary-nav .wp-block-navigation__responsive-container-content,
.bosenheim-primary-nav .wp-block-navigation__container {
  height: 100%;
}

.bosenheim-primary-nav .wp-block-navigation__container {
  align-items: center;
  gap: 8px !important;
}

.bosenheim-primary-nav .wp-block-navigation-item {
  min-height: 0;
  border: 0;
}

.bosenheim-primary-nav .wp-block-navigation-item__content {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 clamp(15px, 1.6vw, 24px);
  border: 1px solid color-mix(in srgb, var(--bosenheim-line) 34%, transparent);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(235, 235, 233,.3), rgba(17, 74, 107,.055));
  box-shadow: inset 0 1px 0 rgba(235, 235, 233,.52), 0 4px 14px rgba(0, 27, 46,.028);
  color: var(--bosenheim-ink);
  font-size: .84rem;
  font-weight: 520;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
}

.bosenheim-primary-nav .wp-block-navigation-item:last-child { border-right: 0; }

.bosenheim-primary-nav .wp-block-navigation-item__content:hover,
.bosenheim-primary-nav .wp-block-navigation-item__content:focus-visible,
.bosenheim-primary-nav .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.bosenheim-primary-nav .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content,
.bosenheim-primary-nav .current-menu-item > .wp-block-navigation-item__content {
  background: var(--bosenheim-olive);
  box-shadow: inset 0 1px 0 rgba(235, 235, 233,.2), 0 5px 16px rgba(0, 27, 46,.1);
  color: var(--bosenheim-creme) !important;
}

.bosenheim-primary-nav .wp-block-navigation-item__content:hover .wp-block-navigation-item__label,
.bosenheim-primary-nav .wp-block-navigation-item__content:focus-visible .wp-block-navigation-item__label,
.bosenheim-primary-nav .wp-block-navigation-item:hover > .wp-block-navigation-item__content .wp-block-navigation-item__label,
.bosenheim-primary-nav .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content .wp-block-navigation-item__label,
.bosenheim-primary-nav .current-menu-item > .wp-block-navigation-item__content .wp-block-navigation-item__label {
  color: inherit !important;
}

.bosenheim-calendar-cell {
  display: grid !important;
  grid-template-columns: minmax(190px, 246px);
  align-items: center !important;
  gap: 0 !important;
  border-right: 0;
}

.bosenheim-calendar-link {
  width: 138px;
  max-width: calc(100% - 20px);
  height: 44px;
  justify-self: center;
  background: transparent;
}

.bosenheim-calendar-link,
.bosenheim-calendar-arrow { margin: 0; }

.bosenheim-calendar-link a,
.bosenheim-calendar-arrow a {
  display: grid;
  place-items: center;
  height: 100%;
  text-decoration: none;
  text-transform: uppercase;
}

.bosenheim-calendar-link a {
  min-height: 0;
  border-radius: 8px;
  background: var(--bosenheim-olive);
  color: #ebebe9;
  font-size: .84rem;
  letter-spacing: .03em;
  white-space: nowrap;
}

.bosenheim-calendar-link a:hover { background: #e8a784; }

.bosenheim-calendar-arrow a {
  border-left: 1px solid var(--bosenheim-line);
  color: var(--bosenheim-ink);
  font-size: 1.35rem;
}

/* Alternative A image stage. */
.bosenheim-framed-panel {
  border-bottom: 1px solid var(--bosenheim-line);
}

.bosenheim-hero {
  min-height: clamp(580px, 82svh, 740px) !important;
  margin: 0 !important;
}

.bosenheim-hero::after,
.bosenheim-subpage-hero::after,
.bosenheim-events-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(235, 235, 233,.92) 0%, rgba(235, 235, 233,.48) 35%, rgba(235, 235, 233,.04) 70%),
              linear-gradient(0deg, rgba(235, 235, 233,.58) 0%, transparent 50%);
  pointer-events: none;
}

.bosenheim-hero .wp-block-cover__background,
.bosenheim-subpage-hero .wp-block-cover__background,
.bosenheim-events-hero .wp-block-cover__background {
  z-index: 1;
  opacity: 0 !important;
}

.bosenheim-hero .wp-block-cover__inner-container,
.bosenheim-subpage-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 3 !important;
  width: 100%;
}

.bosenheim-hero .wp-block-cover__image-background,
.bosenheim-subpage-hero .wp-block-cover__image-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.008);
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}

/* Keep image stages flush with the following section. WordPress' constrained
   layout otherwise inserts its default block gap, which appears as a beige band. */
.bosenheim-subpage-hero + .bosenheim-section,
.bosenheim-subpage-hero + .bosenheim-section-compact,
.bosenheim-hero + .bosenheim-section,
.bosenheim-hero + .bosenheim-section-compact {
  margin-block-start: 0 !important;
}

.bosenheim-hero:hover .wp-block-cover__image-background,
.bosenheim-subpage-hero:hover .wp-block-cover__image-background { transform: scale(1.018); }

.bosenheim-hero-layout {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(580px, 82svh, 740px);
  width: 100%;
  max-width: none !important;
  padding: clamp(34px, 5vw, 72px);
}

.bosenheim-hero-copy,
.bosenheim-subpage-copy { max-width: 820px; }

.bosenheim-editorial-title {
  margin: 0;
  font-size: clamp(2.65rem, 5.9vw, 6.1rem);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: .94;
}

.bosenheim-editorial-title em {
  font-size: 1.02em;
  letter-spacing: -.035em;
}

.bosenheim-hero-lead {
  max-width: 560px;
  margin: clamp(20px, 2.4vw, 32px) 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.5;
}

.bosenheim-arrow-button .wp-block-button__link {
  min-width: 218px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--bosenheim-line);
  border-radius: 0 !important;
  font-size: .72rem;
  font-weight: 550;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bosenheim-arrow-button .wp-block-button__link span {
  float: right;
  margin-left: 2rem;
  font-size: 1.15rem;
  line-height: .75;
}

.bosenheim-hero-meta {
  width: 100%;
  margin-top: clamp(24px, 3.5vh, 44px);
  color: var(--bosenheim-ink);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.6;
  text-transform: uppercase;
}

.bosenheim-scroll-indicator a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--bosenheim-ink);
  font-size: 1.15rem;
  text-decoration: none;
}

/* Homepage events, deliberately more editorial than card-like. */
.bosenheim-event-query .wp-block-post-template {
  counter-reset: bosenheim-event;
  gap: 0 !important;
  border-top: 1px solid var(--bosenheim-line);
  border-left: 1px solid var(--bosenheim-line);
}

.bosenheim-event-tile {
  position: relative;
  min-height: 330px;
  padding: 108px clamp(22px, 2.6vw, 38px) 28px;
  border-right: 1px solid var(--bosenheim-line);
  border-bottom: 1px solid var(--bosenheim-line);
}

.bosenheim-event-tile::before {
  counter-increment: bosenheim-event;
  content: "0" counter(bosenheim-event);
  position: absolute;
  top: 25px;
  left: clamp(22px, 2.6vw, 38px);
  color: var(--bosenheim-olive);
  font-family: var(--bosenheim-serif);
  font-size: 5.4rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.08em;
  line-height: 1;
}

.bosenheim-event-tile .wp-block-post-title {
  margin-block: 14px 18px;
  font-weight: 520;
  line-height: 1.12;
}

.bosenheim-event-tile .wp-block-post-title a {
  color: var(--bosenheim-ink);
  text-decoration: none;
}

.bosenheim-event-tile .wp-block-post-excerpt {
  color: #114a6b;
  line-height: 1.6;
}

.bosenheim-event-tile .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 1.3rem;
  color: var(--bosenheim-wine);
  font-size: .72rem;
  text-transform: uppercase;
}

.bosenheim-event-meta,
.bosenheim-event-date {
  color: var(--bosenheim-olive);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bosenheim-event-meta span + span::before {
  content: "·";
  display: inline-block;
  margin-inline: .55rem;
  color: var(--bosenheim-line);
}

/* All remaining sections share the same technical grid. */
.bosenheim-card {
  height: 100%;
  border: 1px solid var(--bosenheim-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.bosenheim-card:hover { background: rgba(17, 74, 107,.045); }

.bosenheim-image img,
.bosenheim-card img { border-radius: 0 !important; }

.bosenheim-section .wp-block-columns { gap: 0; }

.bosenheim-section .wp-block-columns > .wp-block-column + .wp-block-column {
  border-left: 1px solid var(--bosenheim-line);
}

.bosenheim-section .wp-block-columns > .wp-block-column { padding: clamp(22px, 3vw, 44px); }

.bosenheim-section .wp-block-columns > .wp-block-column:has(.bosenheim-image) { padding: 0; }

.bosenheim-topic-card,
.bosenheim-association-card,
.bosenheim-logo-card {
  min-height: 260px;
  padding: clamp(26px, 3vw, 40px) !important;
}

.bosenheim-topic-card {
  background: transparent !important;
  color: var(--bosenheim-ink) !important;
}

.bosenheim-topic-card a { color: var(--bosenheim-wine) !important; }

.bosenheim-topic-index {
  color: inherit;
  font-family: var(--bosenheim-serif);
  font-size: clamp(4rem, 7vw, 7rem) !important;
  font-style: italic;
  font-weight: 400;
  line-height: .82 !important;
  opacity: .35;
}

.bosenheim-association-grid {
  align-items: stretch;
  gap: 0 !important;
  margin-block: 0 !important;
}

.bosenheim-association-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bosenheim-association-type {
  color: var(--bosenheim-wine);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.bosenheim-association-card p:last-child { margin-top: auto; }

.bosenheim-logo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bosenheim-monogram {
  width: auto;
  height: auto;
  margin: 0;
  background: transparent;
  color: var(--bosenheim-olive);
  font-family: var(--bosenheim-serif);
  font-size: 4.6rem;
  font-style: italic;
  line-height: 1;
}

/* Bosenheim wineries: local logo assets with links to the official websites. */
.bosenheim-wineries-intro {
  margin-bottom: clamp(28px, 3.5vw, 44px) !important;
}

.bosenheim-wineries-section {
  padding-top: clamp(34px, 4vw, 54px) !important;
}

.bosenheim-subpage-hero + .bosenheim-section-compact:has(.wp-block-post-content:empty) {
  display: none;
}

.bosenheim-winery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  background: transparent;
}

.bosenheim-winery-grid > *,
.bosenheim-logo-cloud > * {
  margin-block-start: 0 !important;
}

.bosenheim-winery-grid > .bosenheim-winery-card,
.bosenheim-logo-cloud > .bosenheim-logo-cloud__item {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}

.bosenheim-winery-card {
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--bosenheim-line);
  background: #ebebe9 !important;
}

.bosenheim-winery-card__logo {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 138px;
  margin: 0 0 26px !important;
  padding: 8px 0 26px;
  border-bottom: 1px solid var(--bosenheim-line);
}

.bosenheim-winery-card__logo a,
.bosenheim-logo-cloud__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.bosenheim-winery-card__logo img {
  width: auto !important;
  max-width: min(230px, 88%);
  height: auto !important;
  max-height: 100px;
  object-fit: contain;
}

.bosenheim-winery-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem) !important;
}

.bosenheim-winery-card__description {
  flex: 1;
  margin-top: 0;
  color: color-mix(in srgb, var(--bosenheim-ink) 70%, transparent);
  font-size: .9rem;
  line-height: 1.55;
}

.bosenheim-winery-card__link {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--bosenheim-line);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bosenheim-winery-card__link a { color: var(--bosenheim-wine); }

.bosenheim-winery-logo-section { background: var(--bosenheim-creme) !important; }

.bosenheim-prose {
  padding-block: clamp(36px, 4vw, 56px);
}

.bosenheim-logo-cloud {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  background: transparent;
}

.bosenheim-logo-cloud__item {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  margin: 0 !important;
  padding: 24px;
  border: 1px solid var(--bosenheim-line);
  background: #ebebe9;
}

.bosenheim-logo-cloud__item img {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: 78px;
  object-fit: contain;
  opacity: .86;
  transition: opacity .18s ease, transform .18s ease;
}

.bosenheim-logo-cloud__item a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

.bosenheim-feature-panel { box-shadow: none; }

.bosenheim-subpage-hero {
  min-height: clamp(520px, 68vh, 680px) !important;
  margin: 0 !important;
}

.bosenheim-subpage-copy {
  padding: clamp(42px, 5vw, 72px);
  color: var(--bosenheim-ink);
}

.bosenheim-subpage-copy .bosenheim-eyebrow { color: var(--bosenheim-olive); }

.bosenheim-page-hero { padding-block: clamp(72px, 10vw, 130px) clamp(50px, 7vw, 90px); }

.bosenheim-prose :where(p,li) { color: var(--wp--preset--color--anthrazit-hell); }

/* Footer keeps the frame instead of becoming a separate rounded block. */
.bosenheim-footer {
  padding: 0 !important;
  border-top: 1px solid var(--bosenheim-line);
}

.bosenheim-footer a { color: inherit; }

.bosenheim-footer > .alignfull {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

.bosenheim-footer-grid {
  display: grid !important;
  grid-template-columns: minmax(230px, .8fr) minmax(360px, 1.4fr) minmax(200px, .65fr);
  align-items: stretch !important;
  gap: 0 !important;
  width: 100%;
  max-width: none !important;
}

.bosenheim-footer-brand,
.bosenheim-footer-message,
.bosenheim-footer-nav {
  padding: clamp(32px, 4vw, 54px);
  border-right: 1px solid rgba(235, 235, 233,.34);
}

.bosenheim-footer-brand {
  min-width: 0;
}

.bosenheim-footer-brand .bosenheim-wordmark,
.bosenheim-footer-brand .bosenheim-brand-kicker {
  width: fit-content;
  max-width: 100%;
  margin-inline: 0 !important;
  white-space: nowrap;
}

.bosenheim-footer-brand .bosenheim-wordmark {
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  letter-spacing: .19em;
}

.bosenheim-footer-brand .bosenheim-brand-kicker {
  font-size: clamp(.5rem, .64vw, .58rem);
  letter-spacing: .15em;
}

.bosenheim-footer-message em { color: var(--bosenheim-creme); }

.bosenheim-footer-nav {
  justify-content: center;
  gap: .7rem !important;
  border-right: 0;
}

.bosenheim-footer-nav a { font-size: .75rem; text-transform: uppercase; }

.bosenheim-footer-legal {
  max-width: none !important;
  margin: 0 !important;
  padding: 22px clamp(24px, 5vw, 72px);
  border-top: 1px solid rgba(235, 235, 233,.34);
  color: rgba(235, 235, 233,.82);
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* The Events Calendar archive hero injected by functions.php. */
.bosenheim-events-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(600px, 68vh);
  overflow: hidden;
  border-bottom: 1px solid var(--bosenheim-line);
  background-color: var(--bosenheim-creme);
  background-position: center;
  background-size: cover;
}

.bosenheim-events-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(42px, 5vw, 72px);
}

.bosenheim-events-hero__title {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.7rem, 5.8vw, 6rem);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: .94;
}

.bosenheim-events-hero__title em {
  color: var(--bosenheim-wine);
  font-family: var(--bosenheim-serif);
  font-weight: 400;
}

.bosenheim-events-hero__lead {
  max-width: 520px;
  margin: 24px 0 0;
  font-size: clamp(.98rem, 1.35vw, 1.2rem);
  line-height: 1.5;
}

.tribe-common,
.tribe-events,
.tribe-events-pg-template {
  --tec-color-text-primary: var(--bosenheim-ink);
  --tec-color-text-event-title: var(--bosenheim-ink);
  --tec-color-accent-primary: var(--bosenheim-wine);
  --tec-color-background: var(--bosenheim-creme);
  --tec-font-family-sans-serif: var(--wp--preset--font-family--sans);
  font-family: var(--wp--preset--font-family--sans) !important;
}

.post-type-archive-tribe_events .tribe-events-pg-template,
.single-tribe_events .tribe-events-pg-template {
  max-width: none !important;
  padding: 0 !important;
}

.tribe-events-pg-template > * { margin-block-start: 0 !important; }

.tribe-events .tribe-events-l-container {
  max-width: 1420px !important;
  padding: clamp(40px, 4.5vw, 64px) clamp(22px, 4vw, 62px) !important;
}

.tribe-events .tribe-events-header__title,
.tribe-events .tribe-events-header__messages { display: none; }

.tribe-events .tribe-events-c-events-bar {
  border: 1px solid var(--bosenheim-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tribe-events .tribe-events-c-search__input-control input {
  color: var(--bosenheim-ink) !important;
  font-size: .82rem !important;
}

.tribe-events .tribe-events-c-search__button,
.tribe-events button.tribe-events-c-search__button,
.tribe-events .tribe-events-c-subscribe-dropdown__button,
.tribe-events-single .tribe-events-cal-links a {
  border: 1px solid var(--bosenheim-line) !important;
  border-radius: 0 !important;
  font-size: .72rem !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tribe-events .tribe-events-c-search__button,
.tribe-events button.tribe-events-c-search__button {
  background: var(--bosenheim-olive) !important;
  color: #ebebe9 !important;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button {
  background: transparent !important;
  color: var(--bosenheim-ink) !important;
  transition: background-color .18s ease, color .18s ease;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button-text,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button-text {
  background: transparent !important;
  color: inherit !important;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button svg,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button svg {
  color: inherit !important;
}

.tribe-events .tribe-events-c-subscribe-dropdown__export-icon path:first-child,
.single-tribe_events .tribe-events-c-subscribe-dropdown__export-icon path:first-child {
  fill: currentColor !important;
  stroke: none !important;
}

.tribe-events .tribe-events-c-subscribe-dropdown__export-icon path:last-child,
.single-tribe_events .tribe-events-c-subscribe-dropdown__export-icon path:last-child {
  fill: none !important;
  stroke: currentColor !important;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button-icon path,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button-icon path {
  fill: currentColor !important;
  stroke: none !important;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button:hover,
.tribe-events .tribe-events-c-subscribe-dropdown__button:focus-within,
.tribe-events .tribe-events-c-subscribe-dropdown__button--active,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:hover,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:focus-within,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button--active {
  background: var(--bosenheim-olive) !important;
  color: #ebebe9 !important;
}

.tribe-events .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link,
.tribe-events .tribe-events-c-view-selector__list-item-link:hover {
  color: var(--bosenheim-wine) !important;
}

.tribe-events .tribe-events-c-top-bar {
  margin: 28px 0 34px !important;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bosenheim-line);
}

.tribe-events .tribe-events-c-top-bar__datepicker-button {
  font-size: clamp(1.3rem, 2vw, 2rem) !important;
  font-weight: 420 !important;
}

.tribe-events .tribe-events-calendar-list__month-separator {
  margin: 36px 0 0 !important;
}

.tribe-events .tribe-events-calendar-list__month-separator::after {
  display: none !important;
  content: none !important;
}

.tribe-events .tribe-events-calendar-list__month-separator-text {
  color: var(--bosenheim-olive) !important;
  font-size: clamp(1.05rem, 1.55vw, 1.4rem) !important;
  font-weight: 700 !important;
  letter-spacing: .1em;
  line-height: 1.15;
  text-transform: uppercase;
}

.tribe-events .tribe-events-calendar-list__event-row {
  margin: 0 !important;
  padding: 34px 0 !important;
  border-top: 1px solid var(--bosenheim-line);
}

.tribe-events .tribe-events-calendar-list__event-date-tag {
  width: 132px !important;
}

.tribe-events .tribe-events-calendar-list__event-date-tag-weekday {
  color: var(--bosenheim-wine) !important;
  font-size: .65rem !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tribe-events .tribe-events-calendar-list__event-date-tag-daynum {
  color: var(--bosenheim-olive) !important;
  font-family: var(--bosenheim-serif) !important;
  font-size: clamp(3.8rem, 6vw, 6.2rem) !important;
  font-style: italic;
  font-weight: 400 !important;
  letter-spacing: -.08em;
  line-height: .85 !important;
}

.tribe-events .tribe-events-calendar-list__event-wrapper {
  padding-left: clamp(20px, 3vw, 50px) !important;
  border-left: 1px solid var(--bosenheim-line);
}

.tribe-events .tribe-events-calendar-list__event-title {
  margin-bottom: 14px !important;
  font-size: clamp(1.45rem, 2.4vw, 2.4rem) !important;
  font-weight: 500 !important;
  letter-spacing: -.035em !important;
  line-height: 1.04 !important;
}

.tribe-events .tribe-events-calendar-list__event-datetime,
.tribe-events .tribe-events-calendar-list__event-venue {
  color: var(--bosenheim-olive) !important;
  font-size: .72rem !important;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tribe-events .tribe-events-calendar-list__event-description {
  max-width: 720px;
  color: #114a6b;
  font-size: .9rem !important;
  line-height: 1.65;
}

.tribe-events .tribe-events-calendar-list__event-featured-image {
  border: 1px solid var(--bosenheim-line);
  border-radius: 0 !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tribe-events .tribe-events-c-nav__list,
.tribe-events .tribe-events-c-subscribe-dropdown__container {
  margin-top: 38px !important;
}

/* Single-event plugin document. */
.single-tribe_events .tribe-events-single {
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(44px, 5vw, 72px) clamp(22px, 4vw, 62px);
}

.single-tribe_events .tribe-events-single-event-title {
  max-width: 1120px;
  margin: 0 !important;
  padding: 0 0 clamp(24px, 3vw, 38px);
  border-bottom: 1px solid var(--bosenheim-line);
  font-size: clamp(2.35rem, 4.2vw, 4.15rem) !important;
  font-weight: 400 !important;
  letter-spacing: -.05em !important;
  line-height: .98 !important;
}

.single-tribe_events .tribe-events-schedule {
  display: none;
}

.single-tribe_events .tribe-events-single > .tribe_events {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "description"
    "meta"
    "calendar";
  gap: clamp(28px, 4vw, 52px);
  margin-top: clamp(38px, 5vw, 66px);
}

.single-tribe_events .tribe-events-single > .tribe_events.has-post-thumbnail {
  grid-template-columns: minmax(300px, .82fr) minmax(380px, 1.18fr);
  grid-template-areas:
    "description description"
    "meta image"
    "calendar calendar";
  column-gap: clamp(42px, 6vw, 88px);
  align-items: start;
}

.single-tribe_events .tribe-events-single > .tribe_events > .tribe-events-event-image {
  grid-area: image;
  margin: 0 !important;
}

.single-tribe_events .tribe-events-event-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

.single-tribe_events .tribe-events-single-event-description {
  grid-area: description;
  max-width: 860px;
  margin: 0 !important;
  padding-top: 0;
  border-top: 0;
  font-size: 1rem;
  line-height: 1.75;
}

.single-tribe_events .tribe-events-single > .tribe_events > .tribe-events {
  grid-area: calendar;
  margin: 0 !important;
}

.single-tribe_events .tribe-events-single > .tribe_events > .tribe-events .tribe-events-c-subscribe-dropdown__container {
  margin-top: 0 !important;
}

.single-tribe_events .tribe-events-event-meta {
  border: 0;
  background: transparent;
}

.single-tribe_events .tribe-events-event-meta.primary {
  grid-area: meta;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  width: 100% !important;
  max-width: 760px;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0;
}

.single-tribe_events .has-post-thumbnail > .tribe-events-event-meta.primary {
  max-width: none;
}

.single-tribe_events .tribe-events-meta-group {
  width: auto !important;
  margin: 0 !important;
  padding: clamp(20px, 2.4vw, 30px) 0 !important;
  border-top: 1px solid var(--bosenheim-line);
}

.single-tribe_events .tribe-events-meta-group + .tribe-events-meta-group {
  border-left: 0;
}

.single-tribe_events .tribe-events-meta-group:last-child {
  border-bottom: 1px solid var(--bosenheim-line);
}

.single-tribe_events .tribe-events-single-section-title {
  margin: 0 0 18px !important;
  color: var(--bosenheim-ink);
  font-size: clamp(1.3rem, 1.9vw, 1.7rem) !important;
  font-weight: 520 !important;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.single-tribe_events .tribe-events-meta-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.single-tribe_events .tribe-events-meta-item {
  display: grid;
  grid-template-columns: minmax(150px, .72fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 12px 20px;
  margin: 0 !important;
  padding: 13px 0 !important;
  border-top: 1px solid var(--bosenheim-line-soft);
  color: var(--bosenheim-ink);
  font-size: .94rem;
  line-height: 1.45;
  list-style: none !important;
}

.single-tribe_events .tribe-events-meta-item:first-child { border-top: 0; }

.single-tribe_events .tribe-events-meta-label {
  color: var(--bosenheim-olive);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.single-tribe_events .tribe-events-meta-value,
.single-tribe_events .tribe-events-meta-value abbr {
  color: var(--bosenheim-ink);
  font-style: normal;
  text-decoration: none;
}

.single-tribe_events .tribe-events-meta-group-venue .tribe-events-meta-item {
  display: block;
}

.single-tribe_events .tribe-events-meta-group-venue .tribe-venue {
  color: var(--bosenheim-ink);
  font-size: 1.08rem;
  font-weight: 650;
}

.single-tribe_events .tribe-events-address {
  margin: 0;
  color: #114a6b;
  font-style: normal;
  line-height: 1.65;
}

.single-tribe_events .tribe-events-nav-pagination {
  width: 100%;
  max-width: none;
  margin: clamp(36px, 5vw, 58px) auto 0 !important;
  padding: 8px;
  border: 1px solid var(--bosenheim-line);
  border-radius: 10px;
  overflow: hidden;
}

.single-tribe_events .tribe-events-sub-nav {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  gap: 8px;
  list-style: none !important;
}

.single-tribe_events .tribe-events-sub-nav li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.single-tribe_events .tribe-events-sub-nav li::marker { content: ""; }

.single-tribe_events .tribe-events-sub-nav li + li { border-left: 0; }

.single-tribe_events .tribe-events-sub-nav a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 4px 10px 4px 0;
  gap: clamp(14px, 2vw, 24px);
  color: var(--bosenheim-wine);
  font-size: clamp(.88rem, 1.2vw, 1.02rem);
  font-weight: 580;
  line-height: 1.35;
  text-decoration: none;
}

.single-tribe_events .tribe-events-sub-nav a > span { display: none; }

.single-tribe_events .tribe-events-nav-previous a::before,
.single-tribe_events .tribe-events-nav-next a::after {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 112px;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--bosenheim-line) 40%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--bosenheim-olive) 8%, transparent);
  color: var(--bosenheim-ink);
  font-size: .66rem;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.single-tribe_events .tribe-events-nav-previous a::before {
  content: "Vorherige";
}

.single-tribe_events .tribe-events-nav-next a {
  justify-content: flex-end;
  padding: 4px 0 4px 10px;
  text-align: right;
}

.single-tribe_events .tribe-events-nav-next a::after {
  content: "Nächste";
}

.single-tribe_events .tribe-events-sub-nav a:hover::before,
.single-tribe_events .tribe-events-sub-nav a:hover::after {
  border-color: var(--bosenheim-olive);
  background: var(--bosenheim-olive);
  color: #ebebe9;
}

@media (max-width: 1100px) {
  .bosenheim-footer-grid { grid-template-columns: 1fr 1fr; }
  .bosenheim-footer-brand { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid rgba(235, 235, 233,.34); }
  .bosenheim-footer-message { border-right: 1px solid rgba(235, 235, 233,.34); }
}

@media (max-width: 1180px) {
  .bosenheim-header-grid {
    grid-template-columns: minmax(210px, 260px) 66px minmax(370px, 1fr) auto;
  }

  .bosenheim-language { display: none; }
  .bosenheim-vine-symbol { border-right: 1px solid var(--bosenheim-line); }
  .bosenheim-nav-cell { padding-inline: 8px; }
  .bosenheim-primary-nav .wp-block-navigation__container { gap: 6px !important; }
  .bosenheim-primary-nav .wp-block-navigation-item__content { padding-inline: 13px; }
  .bosenheim-calendar-cell { grid-template-columns: 170px; }
  .bosenheim-calendar-link a { font-size: .78rem; }
}

@media (max-width: 900px) {
  .bosenheim-winery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bosenheim-logo-cloud { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  :root { --bosenheim-frame: 8px; }

  body:not(.wp-admin) { padding: 8px; }
  body:not(.wp-admin)::after { inset: 6px; border-radius: 6px; }
  body.admin-bar:not(.wp-admin)::after { top: 48px; }
  body.admin-bar:not(.wp-admin) .wp-site-blocks > .wp-block-template-part:has(> .bosenheim-header) { top: 46px; }

  .bosenheim-header-grid {
    grid-template-columns: minmax(0, 1fr) 58px 116px;
    min-height: 66px;
  }

  .bosenheim-brand-cell,
  .bosenheim-nav-cell,
  .bosenheim-calendar-cell {
    min-height: 66px;
    border-right: 1px solid var(--bosenheim-line);
  }

  .bosenheim-vine-symbol,
  .bosenheim-language { display: none; }

  .bosenheim-nav-cell {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    padding: 0;
  }

  .bosenheim-calendar-cell {
    grid-column: 3;
    grid-row: 1;
    grid-template-columns: 116px;
    border-right: 0;
  }

  .bosenheim-calendar-arrow { display: none; }
  .bosenheim-calendar-link a {
    min-height: 0;
    font-size: .58rem;
  }

  .bosenheim-calendar-link {
    width: 100%;
    justify-self: stretch;
  }

  .bosenheim-primary-nav .wp-block-navigation__responsive-container-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 66px;
    margin: 0;
  }

  .bosenheim-primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }

  .bosenheim-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    overflow-y: auto;
    z-index: 100000;
    padding: 28px;
    background: var(--bosenheim-creme) !important;
  }

  .bosenheim-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: stretch;
    height: auto;
    padding-top: 70px;
  }

  .bosenheim-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    align-items: stretch;
    width: 100%;
    height: auto;
    gap: 10px !important;
  }

  .bosenheim-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    min-height: 62px;
    border: 0;
  }

  .bosenheim-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child { border-bottom: 0; }

  .bosenheim-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    min-height: 62px;
    width: 100%;
    padding: 0 20px;
    border: 1px solid var(--bosenheim-line);
    border-radius: 9px;
    background: color-mix(in srgb, var(--bosenheim-olive) 7%, transparent);
  }

  .bosenheim-hero,
  .bosenheim-hero-layout { min-height: min(680px, calc(100svh - 82px)) !important; }

  .bosenheim-hero::after,
  .bosenheim-subpage-hero::after,
  .bosenheim-events-hero::after {
    background: linear-gradient(0deg, rgba(235, 235, 233,.94) 0%, rgba(235, 235, 233,.48) 54%, rgba(235, 235, 233,.08) 100%);
  }

  .bosenheim-hero-layout { padding: 28px 22px; }
  .bosenheim-editorial-title { font-size: clamp(2.55rem, 10.8vw, 5rem); }
  .bosenheim-hero-lead { max-width: 92%; }
  .bosenheim-hero-meta { align-items: flex-end; margin-top: 28px; }

  .bosenheim-subpage-hero,
  .bosenheim-events-hero { min-height: min(560px, calc(100svh - 82px)) !important; }

  .bosenheim-subpage-copy,
  .bosenheim-events-hero__inner { padding: 30px 22px; }

  .bosenheim-event-query .wp-block-post-template { grid-template-columns: 1fr !important; }
  .bosenheim-event-tile { min-height: 320px; }

  .bosenheim-section .wp-block-columns > .wp-block-column + .wp-block-column {
    border-left: 0;
    border-top: 1px solid var(--bosenheim-line);
  }

  .bosenheim-footer-grid { grid-template-columns: 1fr 1fr; }
  .bosenheim-footer-brand { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid rgba(235, 235, 233,.34); }
  .bosenheim-footer-message { border-right: 1px solid rgba(235, 235, 233,.34); }

  .tribe-events .tribe-events-calendar-list__event-row { padding: 34px 0 !important; }
  .tribe-events .tribe-events-calendar-list__event-date-tag { width: 78px !important; }
  .tribe-events .tribe-events-calendar-list__event-wrapper { padding-left: 20px !important; }

  .single-tribe_events .tribe-events-event-meta.primary {
    grid-template-columns: 1fr;
  }

  .single-tribe_events .tribe-events-single > .tribe_events.has-post-thumbnail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "description"
      "image"
      "meta"
      "calendar";
    row-gap: 34px;
  }

  .single-tribe_events .tribe-events-event-image img {
    max-height: min(70vh, 680px);
    object-position: left center;
  }

  .single-tribe_events .tribe-events-meta-group + .tribe-events-meta-group {
    border-top: 1px solid var(--bosenheim-line);
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .bosenheim-winery-grid { grid-template-columns: 1fr; }
  .bosenheim-logo-cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bosenheim-winery-card { min-height: 320px; }
  .bosenheim-logo-cloud__item { min-height: 118px; padding: 18px; }

  .bosenheim-brand-cell { padding-inline: 16px; }
  .bosenheim-wordmark { font-size: .92rem; letter-spacing: .2em; }
  .bosenheim-brand-kicker { font-size: .48rem; letter-spacing: .13em; }

  .bosenheim-header-grid { grid-template-columns: minmax(0, 1fr) 54px 118px; }
  .bosenheim-calendar-cell { grid-template-columns: 118px; }

  .bosenheim-editorial-title { font-size: clamp(2.35rem, 11vw, 3.8rem); line-height: .96; }
  .bosenheim-hero-lead { font-size: .96rem; }
  .bosenheim-arrow-button .wp-block-button__link { min-width: 0; width: 100%; }

  .bosenheim-section,
  .bosenheim-section-compact { padding-block: 42px; }

  .bosenheim-grid-section { padding-inline: 18px; }
  .bosenheim-section-heading { display: block !important; margin-bottom: 28px !important; }
  .bosenheim-text-link { margin-top: 20px; }

  .bosenheim-event-tile { min-height: 270px; padding-top: 96px; }
  .bosenheim-event-tile::before { font-size: 4.4rem; }

  .bosenheim-footer-grid { grid-template-columns: 1fr; }
  .bosenheim-footer-message,
  .bosenheim-footer-nav {
    border-right: 0;
    border-bottom: 1px solid rgba(235, 235, 233,.34);
  }

  .bosenheim-footer-brand,
  .bosenheim-footer-message,
  .bosenheim-footer-nav { padding: 34px 24px; }

  .bosenheim-footer-legal { display: block !important; padding: 20px 24px; }

  .tribe-events .tribe-events-l-container { padding-inline: 18px !important; }
  .tribe-events .tribe-events-c-events-bar { border: 0 !important; border-bottom: 1px solid var(--bosenheim-line) !important; }
  .tribe-events .tribe-events-calendar-list__event-date-tag { width: 64px !important; }
  .tribe-events .tribe-events-calendar-list__event-date-tag-daynum { font-size: 3.35rem !important; }
  .tribe-events .tribe-events-calendar-list__event-wrapper { padding-left: 14px !important; }
  .tribe-events .tribe-events-calendar-list__event-title { font-size: 1.38rem !important; }
  .tribe-events .tribe-events-calendar-list__event-description { display: none; }
  .tribe-events .tribe-events-calendar-list__event-featured-image-wrapper { margin-top: 20px !important; }

  .single-tribe_events .tribe-events-single {
    padding-inline: 18px;
  }

  .single-tribe_events .tribe-events-single-event-title {
    font-size: clamp(2.05rem, 9.5vw, 3.25rem) !important;
  }

  .single-tribe_events .tribe-events-meta-group { padding: 22px 0 !important; }

  .single-tribe_events .tribe-events-meta-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .single-tribe_events .tribe-events-sub-nav { grid-template-columns: 1fr; }

  .single-tribe_events .tribe-events-sub-nav li + li {
    border-top: 0;
    border-left: 0;
  }

  .single-tribe_events .tribe-events-sub-nav a {
    min-height: 60px;
    padding: 2px 8px 2px 0;
    gap: 12px;
  }

  .single-tribe_events .tribe-events-nav-next a {
    padding: 2px 0 2px 8px;
  }

  .single-tribe_events .tribe-events-nav-previous a::before,
  .single-tribe_events .tribe-events-nav-next a::after {
    width: 96px;
    min-height: 52px;
    padding-inline: 10px;
  }
}

/* Global single-event template: compact editorial split. */
.single-tribe_events .bosenheim-event-single {
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(22px, 2.6vw, 34px) clamp(20px, 3.6vw, 54px) clamp(44px, 5vw, 72px);
}

.single-tribe_events .bosenheim-event-single__back {
  margin: 0 0 12px !important;
}

.single-tribe_events .bosenheim-event-single__back a {
  color: var(--bosenheim-wine);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}

.single-tribe_events .tribe-events-single > .bosenheim-event-single__article {
  --bosenheim-artikel-radius: 12px;
  display: block;
  margin: 0 !important;
  border: 1px solid var(--bosenheim-line);
  border-radius: var(--bosenheim-artikel-radius);
  background: #ebebe9;
}

.bosenheim-event-single__hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  min-height: clamp(420px, 43vw, 580px);
}

.bosenheim-event-single__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(34px, 4.4vw, 64px);
}

.bosenheim-event-single__eyebrow {
  margin: 0 0 clamp(20px, 2.4vw, 32px) !important;
  color: var(--bosenheim-wine);
  font-size: clamp(.76rem, .9vw, .86rem);
  font-weight: 720;
  letter-spacing: .1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.single-tribe_events .bosenheim-event-single__copy .tribe-events-single-event-title {
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  font-size: clamp(2.2rem, 3.5vw, 3.8rem) !important;
  font-weight: 400 !important;
  letter-spacing: -.045em !important;
  line-height: .98 !important;
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
}

.bosenheim-event-single__accent {
  display: block;
  width: 50px;
  height: 2px;
  margin: clamp(24px, 3vw, 38px) 0;
  background: var(--bosenheim-olive);
}

.single-tribe_events .bosenheim-event-single__description {
  grid-area: auto;
  max-width: 650px;
  margin: 0 !important;
  padding: 0;
  border: 0;
  color: var(--bosenheim-ink);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.7;
}

.bosenheim-event-single__description > :first-child { margin-top: 0; }
.bosenheim-event-single__description > :last-child { margin-bottom: 0; }

.bosenheim-event-single__media {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  place-items: center;
  background: var(--color-surface);
}

.bosenheim-event-single__media::before {
  position: absolute;
  inset: -28px;
  background-image: var(--bosenheim-event-image);
  background-position: center;
  background-size: cover;
  content: "";
  filter: blur(18px);
  opacity: .23;
  transform: scale(1.06);
}

.bosenheim-event-single__media.is-placeholder::before { display: none; }

.single-tribe_events .bosenheim-event-single__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-height: 580px;
  border: 0;
  object-fit: contain;
}

.single-tribe_events .bosenheim-event-single__media.is-placeholder .bosenheim-event-single__image {
  max-height: none;
  object-fit: cover;
}

.bosenheim-event-single__meta {
  border-top: 1px solid var(--bosenheim-line);
}

.single-tribe_events .bosenheim-event-single__meta .tribe-events-event-meta.primary {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  gap: 0;
}

.single-tribe_events .bosenheim-event-single__meta .tribe-events-event-meta.primary::before,
.single-tribe_events .bosenheim-event-single__meta .tribe-events-event-meta.primary::after {
  display: none !important;
}

.single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-group {
  min-width: 0;
  margin: 0 !important;
  padding: clamp(24px, 2.8vw, 38px) clamp(24px, 3vw, 42px) !important;
  border: 0;
  border-right: 1px solid var(--bosenheim-line);
}

.single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-group:last-child {
  border-right: 0;
}

.single-tribe_events .bosenheim-event-single__meta .tribe-events-single-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px !important;
  color: var(--bosenheim-olive);
  font-size: .86rem !important;
  font-weight: 750 !important;
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.single-tribe_events .bosenheim-event-single__meta .tribe-events-single-section-title::before {
  display: block;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  content: "";
}

.single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-group-details .tribe-events-single-section-title::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 2v6M17 2v6M3 10h18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 2v6M17 2v6M3 10h18'/%3E%3C/svg%3E");
}

.single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-group-venue .tribe-events-single-section-title::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.1 7-13a7 7 0 1 0-14 0c0 6.9 7 13 7 13Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.1 7-13a7 7 0 1 0-14 0c0 6.9 7 13 7 13Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
}

.single-tribe_events .bosenheim-event-single__meta .trib-events-meta-group-organizer .tribe-events-single-section-title::before,
.single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-group-organizer .tribe-events-single-section-title::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M3.5 20c.4-4.1 2.2-6 5.5-6s5.1 1.9 5.5 6M14 14.5c3.8-.7 6 1.1 6.5 4.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M3.5 20c.4-4.1 2.2-6 5.5-6s5.1 1.9 5.5 6M14 14.5c3.8-.7 6 1.1 6.5 4.5'/%3E%3C/svg%3E");
}

.single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-item {
  grid-template-columns: minmax(70px, .6fr) minmax(0, 1fr);
  gap: 8px 16px;
  padding: 9px 0 !important;
  border-color: var(--bosenheim-line-soft);
  font-size: 1.02rem;
}

.single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-label {
  font-size: .74rem;
}

.single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-group-organizer .tribe-events-meta-item {
  display: block;
}

.bosenheim-event-single__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 12px clamp(20px, 3vw, 38px);
  border-top: 1px solid var(--bosenheim-line);
}

.bosenheim-event-single__nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--bosenheim-ink);
  text-decoration: none;
}

.bosenheim-event-single__nav small,
.bosenheim-event-single__nav strong {
  display: block;
}

.bosenheim-event-single__nav small {
  margin-bottom: 3px;
  color: var(--bosenheim-olive);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bosenheim-event-single__nav strong {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.bosenheim-event-single__nav > a > span[aria-hidden="true"] {
  color: var(--bosenheim-olive);
  font-size: 1.35rem;
}

.bosenheim-event-single__nav--next a {
  justify-content: flex-end;
  text-align: right;
}

.bosenheim-event-single__calendar .tribe-events,
.bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__container {
  margin: 0 !important;
}

.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 260px;
  min-height: 48px;
  margin: 0 !important;
  gap: 12px;
  border: 1px solid var(--bosenheim-olive) !important;
  border-radius: 8px !important;
  background: var(--bosenheim-olive) !important;
  color: var(--bosenheim-creme) !important;
}

.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button-text {
  flex: 0 1 auto !important;
  width: auto !important;
  font-size: 1rem !important;
  text-align: center !important;
}

.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button:hover,
.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button:focus-within {
  background: #114a6b !important;
}

@media (max-width: 900px) {
  .single-tribe_events .bosenheim-event-single {
    padding: 28px 18px 48px;
  }

  .bosenheim-event-single__hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .bosenheim-event-single__copy {
    padding: clamp(30px, 7vw, 48px);
  }

  .single-tribe_events .bosenheim-event-single__copy .tribe-events-single-event-title {
    font-size: clamp(2.15rem, 8vw, 3.7rem) !important;
  }

  .bosenheim-event-single__media {
    min-height: clamp(300px, 68vw, 520px);
  }

  .single-tribe_events .bosenheim-event-single__image {
    max-height: 620px;
  }

  .single-tribe_events .bosenheim-event-single__meta .tribe-events-event-meta.primary {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-group {
    order: 0 !important;
  }

  .single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-group,
  .single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-group:last-child {
    padding: 24px 30px !important;
    border-right: 0;
    border-bottom: 1px solid var(--bosenheim-line);
  }

  .single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-group:last-child {
    border-bottom: 0;
  }

  .bosenheim-event-single__footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 22px;
  }

  .bosenheim-event-single__calendar {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button {
    width: 100%;
    min-width: 0;
  }

  .bosenheim-event-single__nav { grid-row: 2; }
}

@media (max-width: 600px) {
  .single-tribe_events .bosenheim-event-single {
    padding-inline: 10px;
  }

  .single-tribe_events .tribe-events-single > .bosenheim-event-single__article {
    --bosenheim-artikel-radius: 9px;
  }

  .bosenheim-event-single__copy { padding: 30px 24px 34px; }
  .bosenheim-event-single__eyebrow { margin-bottom: 18px !important; }
  .bosenheim-event-single__accent { margin-block: 24px; }
  .bosenheim-event-single__media { min-height: 270px; }

  .single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-group,
  .single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-group:last-child {
    padding: 22px 24px !important;
  }

  .single-tribe_events .bosenheim-event-single__meta .tribe-events-meta-item {
    grid-template-columns: minmax(76px, .65fr) minmax(0, 1fr);
  }

  .bosenheim-event-single__footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .bosenheim-event-single__calendar { order: 1; }
  .bosenheim-event-single__nav--previous { order: 2; }
  .bosenheim-event-single__nav--next { order: 3; }
  .bosenheim-event-single__nav a { min-height: 48px; }

  .bosenheim-events-link a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------------------
   Bosenheim Heritage — Sunset Grove design layer
   -------------------------------------------------------------------------- */
:root {
  --bosenheim-line: #114a6b;
  --bosenheim-line-soft: rgba(17, 74, 107, .3);
  --bosenheim-creme: #ebebe9;
  --bosenheim-olive: #114a6b;
  --bosenheim-wine: #114a6b;
  --bosenheim-ink: #001b2e;
  --bosenheim-serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --bosenheim-frame: 18px;
  --heritage-secondary: #e8a784;
  --heritage-accent: #9d4542;
  --heritage-surface: #ebebe9;
  --bosenheim-crest-cream: #e8dcc5;
  --bosenheim-crest-blue: #3f78b5;
  --bosenheim-crest-gold: #e7b82e;
}

body:not(.wp-admin) {
  padding: var(--bosenheim-frame);
  background: #ebebe9;
  color: var(--bosenheim-ink);
}

.wp-site-blocks,
.bosenheim-tec-main {
  background: var(--bosenheim-creme);
}

.wp-site-blocks {
  border-radius: 14px;
}

body:not(.wp-admin)::after {
  inset: var(--bosenheim-frame);
  border: 1px solid rgba(17, 74, 107, .58);
  border-radius: 14px;
}

/* The WordPress admin bar already offsets the document itself. Keeping the
   frame inset relative to the body prevents that offset being counted twice. */
body.admin-bar:not(.wp-admin)::after { top: var(--bosenheim-frame); }

.heritage-header {
  border: 1px solid rgba(17, 74, 107, .58);
  border-radius: 14px;
  background: rgba(235, 235, 233, .9) !important;
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
}

.heritage-header::before { display: none; }

.heritage-header-inner {
  min-height: 76px;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 clamp(22px, 3.2vw, 52px);
  border-bottom: 0;
  gap: 30px;
}

.heritage-brand-lockup {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto;
  gap: 12px;
  margin: 0 !important;
}

.heritage-brand-lockup .heritage-wordmark { margin: 0 !important; }

.heritage-crest {
  display: grid;
  place-items: center;
  width: 30px;
  height: 42px;
  flex: 0 0 30px;
}

.heritage-crest .bosenheim-crest-mark {
  display: block;
  width: 28px;
  height: auto;
}

.heritage-wordmark {
  flex: 0 0 auto;
  color: var(--bosenheim-ink);
  font-size: clamp(1.05rem, 1.6vw, 1.48rem);
  font-weight: 500;
  letter-spacing: .22em;
}

.heritage-primary-nav { margin-left: auto; }

/* The Events Calendar resets block-navigation margins in its own page
   template. Restore the same right alignment used by the block templates. */
body.tribe-events-page-template .heritage-primary-nav,
body.post-type-archive-tribe_events .heritage-primary-nav,
body.single-tribe_events .heritage-primary-nav {
  margin-left: auto !important;
}

.heritage-primary-nav .wp-block-navigation__container {
  gap: clamp(10px, 1.2vw, 18px) !important;
}

.heritage-primary-nav .wp-block-navigation-item__content {
  min-height: 42px;
  padding: 0 clamp(11px, 1.25vw, 19px);
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: var(--bosenheim-ink);
  font-size: clamp(.8rem, 1vw, .94rem);
  letter-spacing: .02em;
}

.heritage-primary-nav .wp-block-navigation__container > .wp-block-navigation-item {
  position: relative;
}

@media (min-width: 901px) {
  .heritage-primary-nav .wp-block-navigation__container > .wp-block-navigation-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(clamp(5px, .6vw, 9px) * -1);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--heritage-accent);
    transform: translate(50%, -50%);
    pointer-events: none;
  }
}

.heritage-primary-nav .wp-block-navigation-item__content[href$="/events/"] {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.heritage-primary-nav .wp-block-navigation-item__content[href$="/events/"]::before {
  content: "";
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01M16 18h.01'/%3E%3C/svg%3E");
  mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01M16 18h.01'/%3E%3C/svg%3E");
}

.heritage-primary-nav .wp-block-navigation-item:not(.heritage-nav-highlight) .wp-block-navigation-item__content:hover,
.heritage-primary-nav .wp-block-navigation-item:not(.heritage-nav-highlight) .wp-block-navigation-item__content:focus-visible,
.heritage-primary-nav .wp-block-navigation-item:not(.heritage-nav-highlight).current-menu-item > .wp-block-navigation-item__content {
  border-color: var(--bosenheim-line);
  background: transparent;
  color: var(--bosenheim-ink) !important;
}

.heritage-primary-nav .heritage-nav-highlight .wp-block-navigation-item__content {
  padding-inline: clamp(16px, 1.6vw, 24px);
  background: var(--bosenheim-olive);
  color: #ebebe9 !important;
}

.heritage-primary-nav .heritage-nav-highlight .wp-block-navigation-item__content:hover,
.heritage-primary-nav .heritage-nav-highlight .wp-block-navigation-item__content:focus-visible {
  background: #e8a784;
}

.heritage-hero {
  min-height: clamp(520px, 68vh, 680px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--bosenheim-line-soft);
}

.heritage-hero::after,
.bosenheim-subpage-hero::after,
.bosenheim-events-hero::after {
  background: linear-gradient(90deg,
    rgba(235, 235, 233, .96) 0%,
    rgba(235, 235, 233, .93) 28%,
    rgba(235, 235, 233, .78) 39%,
    rgba(235, 235, 233, .42) 48%,
    rgba(235, 235, 233, .12) 56%,
    rgba(235, 235, 233, 0) 64%,
    rgba(235, 235, 233, 0) 100%);
}

.heritage-hero-copy,
.bosenheim-subpage-copy,
.bosenheim-events-hero__inner {
  color: var(--bosenheim-ink);
  text-shadow: 0 1px 0 rgba(235, 235, 233, .42);
}

.heritage-hero-title em,
.bosenheim-editorial-title em,
.bosenheim-events-hero__title em { color: var(--heritage-secondary); }

.bosenheim-subpage-copy,
.bosenheim-events-hero__inner {
  color: var(--bosenheim-ink);
  text-shadow: 0 1px 0 rgba(235, 235, 233, .42);
}

.bosenheim-events-hero__title {
  max-width: 800px;
  font-size: clamp(2.7rem, 5.15vw, 5.25rem);
}

.bosenheim-events-hero__title em { color: #e8a784; }

.heritage-hero .wp-block-cover__image-background {
  object-position: center 52%;
  transform: none;
}

.heritage-hero:hover .wp-block-cover__image-background { transform: none; }

.heritage-hero-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(520px, 68vh, 680px);
  width: 100%;
  max-width: none !important;
  padding-block: clamp(42px, 5vw, 72px);
  padding-inline: clamp(62px, calc(5vw + 20px), 92px);
}

.heritage-hero-copy {
  width: min(100%, 820px) !important;
  max-width: 820px !important;
  margin: 0 !important;
  padding-inline: 0 !important;
}

.heritage-hero .wp-block-cover__inner-container {
  align-self: stretch;
  width: 100% !important;
  max-width: none !important;
}

.heritage-eyebrow {
  margin: 0 0 16px;
  color: var(--bosenheim-olive);
  font-size: .74rem !important;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.heritage-hero-title {
  margin: 0;
  color: var(--bosenheim-ink);
  font-size: clamp(2.65rem, 5.9vw, 6.1rem);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: .94;
}

.heritage-hero-title em {
  color: var(--heritage-secondary);
  font-family: var(--bosenheim-serif);
  font-size: 1.02em;
  font-weight: 400;
  letter-spacing: -.035em;
}

.heritage-section {
  padding: clamp(46px, 5.4vw, 78px) clamp(22px, 3.5vw, 54px);
  border-top: 0;
  border-bottom: 1px solid var(--bosenheim-line-soft);
}

.heritage-section-title {
  display: flex !important;
  align-items: center;
  margin-bottom: clamp(24px, 3vw, 40px) !important;
  gap: 22px;
}

.heritage-section-title h2 {
  margin: 0;
  color: var(--bosenheim-olive);
  font-size: clamp(.78rem, 1vw, .92rem) !important;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.heritage-events-intro {
  margin: 0 auto clamp(30px, 3.6vw, 48px) !important;
}

.heritage-events-section {
  scroll-margin-top: 88px;
}

.heritage-events-intro h2 {
  margin: 0 0 16px;
  font-family: var(--bosenheim-serif);
  font-size: clamp(2rem, 3.4vw, 3.55rem) !important;
  font-weight: 400;
  letter-spacing: -.04em;
}

.heritage-events-intro > p:not(.heritage-eyebrow) {
  margin: 0;
  color: #114a6b;
}

.heritage-title-rule {
  display: block;
  flex: 1;
  height: 1px;
  background: var(--bosenheim-line-soft);
}

.heritage-event-query .wp-block-post-template {
  border: 0;
  gap: 12px !important;
}

.heritage-event-query .wp-block-post-template > li {
  display: flex;
}

.heritage-event-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 390px;
  height: 100%;
  padding: 116px clamp(22px, 2.7vw, 40px) 30px;
  overflow: hidden;
  border: 2px solid var(--bosenheim-line-soft);
  border-radius: 12px;
}

.heritage-event-query .wp-block-post-template > li:last-child .heritage-event-tile {
  border-right: 2px solid var(--bosenheim-line-soft);
}

.heritage-event-tile::before {
  top: 22px;
  color: var(--bosenheim-olive);
  font-size: clamp(4.2rem, 5.6vw, 5.8rem);
  font-style: normal;
  opacity: .95;
}

.heritage-event-tile .bosenheim-event-meta {
  color: #114a6b;
  font-size: .72rem;
}

.heritage-event-tile .wp-block-post-title {
  width: 100% !important;
  max-width: none !important;
  margin: 16px 0 18px;
  font-family: var(--bosenheim-serif);
  font-size: clamp(1.45rem, 2vw, 2.05rem) !important;
  font-weight: 400;
  letter-spacing: -.025em;
}

.heritage-event-tile .wp-block-post-excerpt {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100% !important;
  max-width: none !important;
  color: #114a6b;
  font-size: .9rem !important;
  line-height: 1.55;
}

.heritage-event-tile .bosenheim-event-meta {
  width: 100% !important;
  max-width: none !important;
}

.heritage-event-tile .wp-block-post-excerpt__more-text {
  margin-top: auto;
  padding-top: 1.5rem;
}

.heritage-event-tile .wp-block-post-excerpt__more-link,
.heritage-text-link a {
  color: #114a6b;
  font-size: .78rem;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-transform: none;
}

.heritage-events-button { margin-top: clamp(28px, 3.2vw, 46px); }

.heritage-events-button .wp-block-button__link {
  min-width: 210px;
  border-radius: 7px;
}

.heritage-topics-section { padding-block: 0; }

.heritage-feature-columns {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  gap: 0 !important;
}

.heritage-feature {
  padding: clamp(40px, 4.5vw, 68px);
}

.heritage-feature + .heritage-feature {
  border-left: 1px solid var(--bosenheim-line-soft);
}

.heritage-feature h2 {
  margin: 0 0 16px;
  font-family: var(--bosenheim-serif);
  font-size: clamp(2rem, 3.4vw, 3.55rem) !important;
  font-weight: 400;
  letter-spacing: -.04em;
}

.heritage-feature > p:not(.heritage-eyebrow):not(.heritage-text-link) {
  min-height: 3.3em;
  margin-bottom: 26px;
}

.heritage-feature-image {
  aspect-ratio: 16 / 9;
  margin: 0 0 24px !important;
  overflow: hidden;
  background: #ebebe9;
}

.heritage-feature-image a,
.heritage-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.heritage-feature-image img {
  object-fit: cover;
  transition: transform .6s ease;
}

.heritage-feature-image:hover img { transform: scale(1.018); }

.heritage-newsletter {
  padding: clamp(42px, 5vw, 70px) clamp(28px, 5vw, 76px);
  background: var(--bosenheim-olive) !important;
  color: #ebebe9;
  border-bottom: 1px solid rgba(235, 235, 233, .25);
}

.heritage-newsletter-columns { gap: clamp(38px, 7vw, 110px) !important; }

.heritage-newsletter h2 {
  max-width: 680px;
  margin: 0 0 18px;
  font-family: var(--bosenheim-serif);
  font-weight: 400;
  letter-spacing: -.035em;
}

.heritage-newsletter .heritage-eyebrow { color: #ebebe9; }

.heritage-newsletter-form .tnp-subscription,
.heritage-newsletter-form .tnp-profile,
.heritage-newsletter-form form {
  width: 100%;
  max-width: 620px;
  margin: 0;
}

.heritage-newsletter-form .tnp-field { margin: 0 0 10px; }
.heritage-newsletter-form .tnp-field label { color: #ebebe9; font-size: .78rem; }

.heritage-newsletter-form .tnp-privacy-field a {
  display: inline-block;
  padding-bottom: 2px;
  color: #ebebe9 !important;
  text-decoration: none !important;
  background-image: linear-gradient(currentColor, currentColor) !important;
  background-position: center 100% !important;
  background-repeat: no-repeat !important;
  background-size: 0 1px !important;
  transition: background-size .82s cubic-bezier(.22, 1, .36, 1) !important;
}

.heritage-newsletter-form .tnp-privacy-field a:hover,
.heritage-newsletter-form .tnp-privacy-field a:focus-visible,
.heritage-newsletter-form .tnp-privacy-field a:visited {
  color: #ebebe9 !important;
}

.heritage-newsletter-form .tnp-privacy-field a:hover,
.heritage-newsletter-form .tnp-privacy-field a:focus-visible {
  background-size: 100% 1px !important;
}

.heritage-newsletter-form input[type="email"],
.heritage-newsletter-form input[type="text"] {
  min-height: 52px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(235, 235, 233, .72);
  border-radius: 6px;
  background: #ebebe9;
  color: var(--bosenheim-ink);
  font: inherit;
}

.heritage-newsletter-form input[type="submit"],
.heritage-newsletter-form button {
  min-height: 52px;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #ebebe9;
  border-radius: 6px;
  background: #ebebe9;
  color: #114a6b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.heritage-newsletter-form input[type="submit"]:hover,
.heritage-newsletter-form button:hover {
  background: #ebebe9;
}

.heritage-footer {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 0 14px 14px;
  background: var(--color-text) !important;
  color: #ebebe9 !important;
}

.heritage-footer-main {
  width: 100%;
  max-width: none !important;
  min-height: 118px;
  padding: 28px clamp(26px, 4vw, 64px);
  border-bottom: 1px solid rgba(235, 235, 233, .28);
  gap: 28px;
}

.heritage-footer .heritage-wordmark {
  color: #ebebe9 !important;
}

.heritage-footer-kicker {
  margin: 8px 0 0;
  color: rgba(235, 235, 233, .78);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.heritage-footer-legal {
  width: 100%;
  max-width: none !important;
  min-height: 58px;
  padding: 16px clamp(26px, 4vw, 64px);
  color: #ebebe9;
  font-size: .72rem;
}

.heritage-footer-legal a,
.heritage-footer-legal a:visited,
.heritage-footer-legal a:hover,
.heritage-footer-legal a:focus-visible {
  color: #ebebe9 !important;
}

@media (max-width: 1100px) {
  .heritage-header-inner { padding-inline: 26px; }
  .heritage-primary-nav .wp-block-navigation-item__content { padding-inline: 9px; }
}

@media (max-width: 900px) {
  :root { --bosenheim-frame: 8px; }

  body:not(.wp-admin)::after {
    inset: var(--bosenheim-frame);
    border-radius: 9px;
  }

  .wp-site-blocks {
    border-radius: 9px;
  }

  .heritage-footer {
    border-radius: 0 0 9px 9px;
  }

  .heritage-header { border-radius: 9px; }
  .heritage-header-inner { min-height: 68px; padding-inline: 20px; }
  .heritage-brand-lockup { gap: 9px; }
  .heritage-crest { width: 25px; height: 36px; flex-basis: 25px; }
  .heritage-crest .bosenheim-crest-mark { width: 23px; }
  .heritage-primary-nav { margin-left: auto; }

  .heritage-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
    padding: 30px 24px;
    background: rgba(235, 235, 233, .98);
    color: var(--bosenheim-ink);
  }

  .heritage-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    align-items: stretch;
    width: 100%;
    gap: 8px !important;
  }

  .heritage-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    justify-content: flex-start;
    width: 100%;
    min-height: 50px;
    padding-inline: 16px;
  }

  .heritage-hero,
  .heritage-hero-layout { min-height: clamp(520px, 68vh, 680px) !important; }

  .heritage-hero .wp-block-cover__image-background { object-position: 56% center; }

  .heritage-hero::after {
    background: linear-gradient(90deg,
      rgba(235, 235, 233, .96) 0%,
      rgba(235, 235, 233, .93) 28%,
      rgba(235, 235, 233, .78) 39%,
      rgba(235, 235, 233, .42) 48%,
      rgba(235, 235, 233, .12) 56%,
      rgba(235, 235, 233, 0) 64%,
      rgba(235, 235, 233, 0) 100%);
  }

  .heritage-hero-layout { padding: 36px 42px; }
  .heritage-hero-title { font-size: clamp(2.35rem, 8.7vw, 4.4rem); }

  .heritage-event-query .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }

  .heritage-event-tile {
    min-height: 350px;
    padding: 82px 26px 28px 112px;
  }

  .heritage-event-tile::before {
    top: 50%;
    left: 26px;
    transform: translateY(-50%);
  }

  .heritage-feature-columns { flex-wrap: wrap !important; }
  .heritage-feature-columns > .wp-block-column { flex-basis: 100% !important; }
  .heritage-feature + .heritage-feature { border-top: 1px solid var(--bosenheim-line-soft); border-left: 0; }
  .heritage-feature > p:not(.heritage-eyebrow):not(.heritage-text-link) { min-height: 0; }

  .heritage-newsletter-columns { flex-wrap: wrap !important; }
  .heritage-newsletter-columns > .wp-block-column { flex-basis: 100% !important; }
}

@media (max-width: 782px) {
  body.admin-bar:not(.wp-admin)::after { top: var(--bosenheim-frame); }

  .heritage-hero::after,
  .bosenheim-subpage-hero::after,
  .bosenheim-events-hero::after {
    background:
      linear-gradient(0deg, rgba(235, 235, 233, .90) 0%, rgba(235, 235, 233, .78) 44%, rgba(235, 235, 233, .34) 72%, rgba(235, 235, 233, .06) 100%);
  }
}

@media (max-width: 600px) {
  .heritage-section { padding: 38px 18px; }
  .heritage-section-title { align-items: flex-start; gap: 14px; }
  .heritage-section-title h2 { white-space: normal; }

  .heritage-event-tile {
    min-height: 420px;
    height: 420px;
    padding: 114px 20px 28px;
  }

  .heritage-event-tile::before {
    top: 20px;
    left: 20px;
    transform: none;
  }

  .heritage-feature { padding: 38px 20px; }
  .heritage-newsletter { padding: 40px 22px; }
  .heritage-footer-main { display: block !important; }
  .heritage-footer-legal { display: block !important; }
}

/* Standard für bislang unbehandelte Textlinks in den Theme-Bereichen. */
:where(.heritage-section, .bosenheim-section) a:not(.wp-block-button__link):not(.wp-block-navigation-item__content):not(.wp-block-post-excerpt__more-link),
.heritage-footer-legal a {
  display: inline-block;
  padding-bottom: 3px;
  text-decoration: none !important;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: center 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size .82s cubic-bezier(.22, 1, .36, 1);
}

:where(.heritage-section, .bosenheim-section) a:not(.wp-block-button__link):not(.wp-block-navigation-item__content):not(.wp-block-post-excerpt__more-link):hover,
:where(.heritage-section, .bosenheim-section) a:not(.wp-block-button__link):not(.wp-block-navigation-item__content):not(.wp-block-post-excerpt__more-link):focus-visible,
.heritage-footer-legal a:hover,
.heritage-footer-legal a:focus-visible {
  background-size: 100% 2px;
}

/* Bild- und Logo-Links erhalten keine Textunterstreichung. */
:where(.heritage-section, .bosenheim-section) .wp-block-image a,
:where(.heritage-section, .bosenheim-section) .bosenheim-winery-card__logo a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-bottom: 0 !important;
  border: 0 !important;
  background: none !important;
  text-decoration: none !important;
}

:where(.heritage-section, .bosenheim-section) .wp-block-image a::before,
:where(.heritage-section, .bosenheim-section) .wp-block-image a::after,
:where(.heritage-section, .bosenheim-section) .bosenheim-winery-card__logo a::before,
:where(.heritage-section, .bosenheim-section) .bosenheim-winery-card__logo a::after {
  content: none !important;
  display: none !important;
}

/* Die Linie übernimmt automatisch die weiße Linkfarbe des Footers. */
.heritage-footer-legal a {
  background-image: linear-gradient(currentColor, currentColor) !important;
}

/* Einheitliche Aktionsflächen für Button-ähnliche Links. */
.bosenheim-calendar-link a,
.bosenheim-events-link a,
.bosenheim-arrow-button .wp-block-button__link,
.heritage-events-button .wp-block-button__link,
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.tribe-events .tribe-events-c-search__button,
.tribe-events button.tribe-events-c-search__button,
.tribe-events .tribe-events-c-subscribe-dropdown__button,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button,
.tribe-events-single .tribe-events-cal-links a,
.tribe-events .tribe-common-c-btn,
.tribe-events .tribe-common-c-btn-border,
.heritage-newsletter-form input[type="submit"],
.heritage-newsletter-form button {
  border-radius: var(--bosenheim-button-radius) !important;
  background-image: linear-gradient(currentColor, currentColor) !important;
  background-position: center calc(100% - 8px) !important;
  background-repeat: no-repeat !important;
  background-size: 0 2px !important;
  transition: background-color .34s ease, background-size .82s cubic-bezier(.22, 1, .36, 1), border-color .34s ease, color .34s ease, box-shadow .34s ease !important;
}

.bosenheim-calendar-link a:hover,
.bosenheim-calendar-link a:focus-visible,
.bosenheim-events-link a:hover,
.bosenheim-events-link a:focus-visible,
.bosenheim-arrow-button .wp-block-button__link:hover,
.bosenheim-arrow-button .wp-block-button__link:focus-visible,
.heritage-events-button .wp-block-button__link:hover,
.heritage-events-button .wp-block-button__link:focus-visible,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:focus-visible,
.tribe-events .tribe-events-c-search__button:hover,
.tribe-events .tribe-events-c-search__button:focus-visible,
.tribe-events .tribe-events-c-subscribe-dropdown__button:hover,
.tribe-events .tribe-events-c-subscribe-dropdown__button:focus-within,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:hover,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:focus-within,
.tribe-events-single .tribe-events-cal-links a:hover,
.tribe-events-single .tribe-events-cal-links a:focus-visible,
.tribe-events .tribe-common-c-btn:hover,
.tribe-events .tribe-common-c-btn:focus-visible,
.tribe-events .tribe-common-c-btn-border:hover,
.tribe-events .tribe-common-c-btn-border:focus-visible,
.heritage-newsletter-form input[type="submit"]:hover,
.heritage-newsletter-form input[type="submit"]:focus-visible,
.heritage-newsletter-form button:hover,
.heritage-newsletter-form button:focus-visible {
  border-color: transparent !important;
  background-color: transparent !important;
  background-size: calc(100% - 2.7rem) 2px !important;
  color: var(--bosenheim-ink) !important;
  box-shadow: none !important;
}

.bosenheim-event-single__nav a {
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid transparent;
  background-image: none !important;
}

.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button {
  border-radius: var(--bosenheim-button-radius) !important;
}

/* Hauptnavigation: Die gelbe Akzentlinie wächst ruhig von der Mitte nach außen. */
.heritage-primary-nav .wp-block-navigation-item__content {
  position: relative;
  overflow: hidden;
}

.heritage-primary-nav .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  right: clamp(11px, 1.25vw, 19px);
  bottom: 7px;
  left: clamp(11px, 1.25vw, 19px);
  height: 2px;
  border-radius: 999px;
  background: var(--heritage-accent);
  transform: scaleX(0);
  transform-origin: center center;
  transition: transform .82s cubic-bezier(.22, 1, .36, 1);
}

.heritage-primary-nav .wp-block-navigation-item__content:hover::after,
.heritage-primary-nav .wp-block-navigation-item__content:focus-visible::after {
  transform: scaleX(1);
}

.heritage-primary-nav .wp-block-navigation-item:not(.heritage-nav-highlight) .wp-block-navigation-item__content:hover,
.heritage-primary-nav .wp-block-navigation-item:not(.heritage-nav-highlight) .wp-block-navigation-item__content:focus-visible {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--bosenheim-ink) !important;
  box-shadow: none !important;
}

.heritage-primary-nav .wp-block-navigation-item:not(.heritage-nav-highlight).current-menu-item > .wp-block-navigation-item__content {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.heritage-primary-nav .heritage-nav-highlight .wp-block-navigation-item__content:hover,
.heritage-primary-nav .heritage-nav-highlight .wp-block-navigation-item__content:focus-visible {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--bosenheim-ink) !important;
  box-shadow: none !important;
}

/* Aktueller/aktivierter Menüpunkt: keine blaue Fläche, nur die gelbe Linie. */
.heritage-primary-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.heritage-primary-nav .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content,
.heritage-primary-nav .wp-block-navigation-item__content[aria-current="page"],
.heritage-primary-nav .wp-block-navigation-item__content:active {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--bosenheim-ink) !important;
  box-shadow: none !important;
}

.heritage-primary-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content::after,
.heritage-primary-nav .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content::after,
.heritage-primary-nav .wp-block-navigation-item__content[aria-current="page"]::after,
.heritage-primary-nav .wp-block-navigation-item__content:active::after {
  transform: scaleX(1);
}

/* Veranstaltungstitel: blaue Linie wächst wie die Navigation von der Mitte nach außen. */
.tribe-events .tribe-events-calendar-list__event-title-link,
.tribe-events .tribe-events-calendar-day__event-title-link,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link,
.tribe-events .tribe-events-calendar-month-mobile-events__mobile-event-title-link {
  border-bottom-color: transparent !important;
  background-image: linear-gradient(currentColor, currentColor) !important;
  background-position: center 100% !important;
  background-repeat: no-repeat !important;
  background-size: 0 2px !important;
  color: var(--bosenheim-ink) !important;
  transition: background-size .82s cubic-bezier(.22, 1, .36, 1), color .2s ease !important;
}

.tribe-events .tribe-events-calendar-list__event-title-link:hover,
.tribe-events .tribe-events-calendar-list__event-title-link:focus-visible,
.tribe-events .tribe-events-calendar-day__event-title-link:hover,
.tribe-events .tribe-events-calendar-day__event-title-link:focus-visible,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link:hover,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link:focus-visible,
.tribe-events .tribe-events-calendar-month-mobile-events__mobile-event-title-link:hover,
.tribe-events .tribe-events-calendar-month-mobile-events__mobile-event-title-link:focus-visible {
  border-bottom-color: transparent !important;
  background-size: 100% 2px !important;
  color: var(--bosenheim-ink) !important;
}

.single-tribe_events .bosenheim-event-single__back a {
  display: inline-block;
  padding-bottom: 4px;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: center 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  color: #114a6b;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  transition: background-size .82s cubic-bezier(.22, 1, .36, 1);
}

.single-tribe_events .bosenheim-event-single__back a:hover,
.single-tribe_events .bosenheim-event-single__back a:focus-visible {
  background-size: 100% 2px;
  color: #114a6b;
}

/* Kalender-Abo: große, einheitliche Aktionsfläche mit sofortigem Hover-Start. */
.tribe-events .tribe-events-c-subscribe-dropdown__button,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button,
.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button {
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 290px !important;
  min-height: 60px !important;
  padding: 13px 28px !important;
  gap: 13px !important;
  border: 1px solid var(--bosenheim-ink) !important;
  border-radius: var(--bosenheim-button-radius) !important;
  background: var(--bosenheim-ink) !important;
  color: var(--bosenheim-creme) !important;
  font-size: 1rem !important;
  letter-spacing: .015em !important;
  text-transform: none !important;
  transition: background-color .34s ease, border-color .34s ease, color .34s ease, box-shadow .34s ease !important;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button::after,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button::after,
.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button::after {
  content: "" !important;
  position: absolute !important;
  right: 28px !important;
  bottom: 9px !important;
  left: 28px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  pointer-events: none !important;
  transform: scaleX(0) !important;
  transform-origin: center center !important;
  transition: transform .82s cubic-bezier(.22, 1, .36, 1) !important;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button:hover,
.tribe-events .tribe-events-c-subscribe-dropdown__button:focus-within,
.tribe-events .tribe-events-c-subscribe-dropdown__button:has(> .tribe-events-c-subscribe-dropdown__button-text:focus-visible),
.tribe-events .tribe-events-c-subscribe-dropdown__button--active,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:hover,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:focus-within,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:has(> .tribe-events-c-subscribe-dropdown__button-text:focus-visible),
.single-tribe_events .tribe-events-c-subscribe-dropdown__button--active,
.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button:hover,
.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button:focus-within,
.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button:has(> .tribe-events-c-subscribe-dropdown__button-text:focus-visible),
.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button--active {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--bosenheim-ink) !important;
  box-shadow: none !important;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button:hover::after,
.tribe-events .tribe-events-c-subscribe-dropdown__button:focus-within::after,
.tribe-events .tribe-events-c-subscribe-dropdown__button--active::after,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:hover::after,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:focus-within::after,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button--active::after,
.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button:hover::after,
.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button:focus-within::after,
.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button--active::after {
  transform: scaleX(1) !important;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button-text,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button-text {
  position: relative !important;
  z-index: 1 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  font-size: inherit !important;
  line-height: 1.25 !important;
}

@media (max-width: 600px) {
  .tribe-events .tribe-events-c-subscribe-dropdown__button,
  .single-tribe_events .tribe-events-c-subscribe-dropdown__button,
  .single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Vorherige/Nächste: Akzent nur knapp unter dem eigentlichen Veranstaltungstitel. */
.bosenheim-event-single__nav strong {
  position: relative;
  display: inline-block;
}

.bosenheim-event-single__nav strong::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  left: -6px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center center;
  transition: transform .82s cubic-bezier(.22, 1, .36, 1);
}

.bosenheim-event-single__nav a:hover strong::after,
.bosenheim-event-single__nav a:focus-visible strong::after {
  transform: scaleX(1);
}

/* Aktivierte Links ohne rechteckigen Browser-Fokusrahmen; Linien bleiben als Rückmeldung. */
a:focus,
a:focus-visible,
a:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Eleganz-Effekte: ruhige Bewegung, ohne Layoutsprünge oder schwere Schatten. */
@keyframes bosenheim-content-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .heritage-events-intro,
  .heritage-event-query .wp-block-post-template > li,
  .heritage-feature,
  .bosenheim-wineries-intro,
  .bosenheim-winery-card,
  .bosenheim-association-card,
  .tribe-events-calendar-list__month-separator,
  .tribe-events-calendar-list__event-row,
  .bosenheim-event-single__meta > * {
    animation-name: bosenheim-content-reveal;
    animation-duration: 1ms;
    animation-fill-mode: both;
    animation-timing-function: linear;
    animation-timeline: view();
    animation-range: entry 8% cover 28%;
  }
}

.heritage-feature-image,
.bosenheim-image,
.bosenheim-event-single__media {
  overflow: hidden;
}

.heritage-feature-image img,
.bosenheim-image img,
.bosenheim-event-single__media img {
  transform: scale(1);
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1) !important;
}

.heritage-event-tile,
.bosenheim-card,
.bosenheim-winery-card,
.bosenheim-association-card,
.bosenheim-topic-card {
  transition: transform .48s cubic-bezier(.22, 1, .36, 1), border-color .38s ease, background-color .38s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .heritage-feature-image:hover img,
  .bosenheim-image:hover img,
  .bosenheim-event-single__media:hover img {
    transform: scale(1.025);
  }

  .heritage-event-tile:hover,
  .bosenheim-card:hover,
  .bosenheim-winery-card:hover,
  .bosenheim-association-card:hover,
  .bosenheim-topic-card:hover {
    z-index: 1;
    border-color: var(--color-accent) !important;
    transform: translateY(-3px);
  }
}

/* Events-Archiv: größere Vorherige-/Nächste-Navigation mit blauer Titellinie. */
.tribe-events .tribe-events-c-nav__prev,
.tribe-events .tribe-events-c-nav__next {
  align-items: center !important;
  gap: 11px !important;
  padding-block: 10px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--bosenheim-ink) !important;
  font-size: clamp(1rem, .9rem + .35vw, 1.125rem) !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

.tribe-events .tribe-events-c-nav__prev:disabled,
.tribe-events .tribe-events-c-nav__next:disabled {
  color: color-mix(in srgb, var(--bosenheim-ink) 22%, transparent) !important;
  cursor: default !important;
}

.tribe-events .tribe-events-c-nav__prev-label,
.tribe-events .tribe-events-c-nav__next-label {
  position: relative;
  display: inline-block;
}

.tribe-events .tribe-events-c-nav__prev-label::after,
.tribe-events .tribe-events-c-nav__next-label::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -6px;
  left: -5px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center center;
  transition: transform .82s cubic-bezier(.22, 1, .36, 1);
}

.tribe-events .tribe-events-c-nav__prev:not(:disabled):hover .tribe-events-c-nav__prev-label::after,
.tribe-events .tribe-events-c-nav__prev:not(:disabled):focus-visible .tribe-events-c-nav__prev-label::after,
.tribe-events .tribe-events-c-nav__next:not(:disabled):hover .tribe-events-c-nav__next-label::after,
.tribe-events .tribe-events-c-nav__next:not(:disabled):focus-visible .tribe-events-c-nav__next-label::after {
  transform: scaleX(1);
}

.tribe-events .tribe-events-c-nav__prev svg,
.tribe-events .tribe-events-c-nav__next svg {
  width: 20px !important;
  height: 20px !important;
}

/* Alle Query-Weiterlesen-Links: blaue Linie wächst von der Mitte nach außen. */
.wp-block-post-excerpt__more-link {
  display: inline-block;
  padding-bottom: 4px;
  border: 0 !important;
  background-image: linear-gradient(currentColor, currentColor) !important;
  background-position: center 100% !important;
  background-repeat: no-repeat !important;
  background-size: 0 2px !important;
  color: var(--bosenheim-line) !important;
  text-decoration: none !important;
  transition: background-size .82s cubic-bezier(.22, 1, .36, 1) !important;
}

.wp-block-post-excerpt__more-link:hover,
.wp-block-post-excerpt__more-link:focus-visible {
  background-size: 100% 2px !important;
  color: var(--bosenheim-line) !important;
}

/* Drei gleich hohe Veranstaltungskacheln in abgestuften Sunset-Farben. */
.heritage-event-query .wp-block-post-template > li:nth-child(1) .heritage-event-tile {
  border-color: #dec0ad !important;
  background: #ebebe9;
  color: #001b2e;
}

.heritage-event-query .wp-block-post-template > li:nth-child(2) .heritage-event-tile {
  border-color: #114a6b !important;
  background: #114a6b;
  color: #ebebe9;
}

.heritage-event-query .wp-block-post-template > li:nth-child(3) .heritage-event-tile {
  border-color: #001b2e !important;
  background: #001b2e;
  color: #ebebe9;
}

.heritage-event-query .wp-block-post-template > li:nth-child(1) .heritage-event-tile::before {
  color: #001b2e;
}

.heritage-event-query .wp-block-post-template > li:nth-child(2) .heritage-event-tile::before {
  color: #ebebe9;
}

.heritage-event-query .wp-block-post-template > li:nth-child(3) .heritage-event-tile::before {
  color: #e8a784;
}

.heritage-event-query .wp-block-post-template > li:nth-child(1) :is(.wp-block-post-title a, .bosenheim-event-meta) {
  color: #001b2e !important;
}

.heritage-event-query .wp-block-post-template > li:nth-child(1) .wp-block-post-excerpt {
  color: #114a6b !important;
}

.heritage-event-query .wp-block-post-template > li:nth-child(2) :is(.wp-block-post-title a, .bosenheim-event-meta),
.heritage-event-query .wp-block-post-template > li:nth-child(3) .wp-block-post-title a {
  color: #ebebe9 !important;
}

.heritage-event-query .wp-block-post-template > li:nth-child(3) .bosenheim-event-meta {
  color: #e8a784 !important;
}

.heritage-event-query .wp-block-post-template > li:nth-child(2) .wp-block-post-excerpt,
.heritage-event-query .wp-block-post-template > li:nth-child(3) .wp-block-post-excerpt {
  color: rgba(235, 235, 233, .82) !important;
}

.heritage-event-query .wp-block-post-template > li:nth-child(2) .wp-block-post-excerpt__more-link {
  color: #ebebe9 !important;
  background-image: linear-gradient(currentColor, currentColor) !important;
}

.heritage-event-query .wp-block-post-template > li:nth-child(3) .wp-block-post-excerpt__more-link {
  color: #e8a784 !important;
  background-image: linear-gradient(currentColor, currentColor) !important;
}

/* Abschließender Schutz: aktuelle Menüpunkte zeigen in keinem Zustand eine Fläche oder Box. */
.heritage-primary-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.heritage-primary-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content:hover,
.heritage-primary-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content:focus,
.heritage-primary-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content:focus-visible,
.heritage-primary-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content:active,
.heritage-primary-nav .wp-block-navigation-item__content[aria-current="page"],
.heritage-primary-nav .wp-block-navigation-item__content[aria-current="page"]:hover,
.heritage-primary-nav .wp-block-navigation-item__content[aria-current="page"]:focus,
.heritage-primary-nav .wp-block-navigation-item__content[aria-current="page"]:focus-visible,
.heritage-primary-nav .wp-block-navigation-item__content[aria-current="page"]:active {
  border-color: transparent !important;
  outline: 0 !important;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--bosenheim-ink) !important;
  box-shadow: none !important;
}

/* Newsletter liegt auf Dunkelblau: Hover-Schrift bleibt hier bewusst weiß. */
.heritage-newsletter-form input[type="submit"]:hover,
.heritage-newsletter-form input[type="submit"]:focus-visible,
.heritage-newsletter-form button:hover,
.heritage-newsletter-form button:focus-visible {
  color: #ebebe9 !important;
}

@media (prefers-reduced-motion: reduce) {
  :where(.heritage-section, .bosenheim-section) a,
  .heritage-footer-legal a {
    transition: none !important;
  }

  .heritage-primary-nav .wp-block-navigation-item__content::after {
    transition: none;
  }

  .tribe-events .tribe-events-calendar-list__event-title-link,
  .tribe-events .tribe-events-calendar-day__event-title-link,
  .tribe-events .tribe-events-calendar-month__calendar-event-title-link,
  .tribe-events .tribe-events-calendar-month-mobile-events__mobile-event-title-link {
    transition-duration: .01ms !important;
  }

  .bosenheim-event-single__nav strong::after {
    transition: none;
  }

  .tribe-events .tribe-events-c-nav__prev-label::after,
  .tribe-events .tribe-events-c-nav__next-label::after {
    transition: none;
  }

  .wp-block-post-excerpt__more-link {
    transition: none !important;
  }

  .heritage-newsletter-form .tnp-privacy-field a {
    transition: none !important;
  }

  .tribe-events .tribe-events-c-subscribe-dropdown__button::after,
  .single-tribe_events .tribe-events-c-subscribe-dropdown__button::after,
  .single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown__button::after,
  .heritage-feature-image img,
  .bosenheim-image img,
  .bosenheim-event-single__media img,
  .heritage-event-tile,
  .bosenheim-card,
  .bosenheim-winery-card,
  .bosenheim-association-card,
  .bosenheim-topic-card {
    transition: none !important;
  }

  .heritage-events-intro,
  .heritage-event-query .wp-block-post-template > li,
  .heritage-feature,
  .bosenheim-wineries-intro,
  .bosenheim-winery-card,
  .bosenheim-association-card,
  .tribe-events-calendar-list__month-separator,
  .tribe-events-calendar-list__event-row,
  .bosenheim-event-single__meta > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .bosenheim-calendar-link a,
  .bosenheim-events-link a,
  .bosenheim-arrow-button .wp-block-button__link,
  .heritage-events-button .wp-block-button__link,
  .wp-block-button:not(.is-style-outline) .wp-block-button__link,
  .tribe-events button,
  .tribe-events a,
  .heritage-newsletter-form input[type="submit"],
  .heritage-newsletter-form button {
    transition-duration: .01ms !important;
  }
}

/* Authoritative dark-panel CTA state, placed after the global button rules. */
.bosenheim-dark-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.bosenheim-dark-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus-visible {
  background-color: transparent !important;
  background-image: linear-gradient(var(--bosenheim-crest-gold), var(--bosenheim-crest-gold)) !important;
  color: var(--bosenheim-creme) !important;
}

/* Cascade guard: the split system remains authoritative over legacy layers. */
.bosenheim-split-hero {
  display: flex !important;
  align-items: stretch !important;
  min-height: 600px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--bosenheim-line) !important;
  border-radius: 14px 14px 0 0 !important;
  background: var(--bosenheim-ink) !important;
}

.bosenheim-split-hero::before,
.bosenheim-split-hero::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.bosenheim-split-hero > .wp-block-cover__image-background,
.bosenheim-events-hero__media {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 65% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: none !important;
  transition: none !important;
}

.bosenheim-split-hero > .wp-block-cover__inner-container,
.bosenheim-events-hero__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 35% !important;
  min-height: 598px !important;
  margin: 0 0 0 65% !important;
  padding: clamp(34px, 3.2vw, 54px) !important;
  background: var(--bosenheim-ink) !important;
  color: var(--bosenheim-creme) !important;
  text-shadow: none !important;
}

.bosenheim-split-hero .heritage-hero-layout,
.bosenheim-split-hero .heritage-hero-copy,
.bosenheim-split-hero .bosenheim-subpage-copy {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  text-shadow: none !important;
}

.bosenheim-split-hero .heritage-hero-title,
.bosenheim-split-hero .bosenheim-editorial-title,
.bosenheim-events-hero__title {
  max-width: none !important;
  margin: 0 !important;
  color: var(--bosenheim-creme) !important;
  font-size: clamp(2.25rem, 3.55vw, 3.85rem) !important;
  font-weight: 500 !important;
  letter-spacing: -.045em !important;
  line-height: .98 !important;
}

.bosenheim-split-hero .heritage-hero-title em,
.bosenheim-split-hero .bosenheim-editorial-title em,
.bosenheim-events-hero__title em {
  color: var(--bosenheim-crest-cream) !important;
  font-family: var(--bosenheim-serif) !important;
  font-size: .92em !important;
  font-weight: 400 !important;
}

@media (max-width: 1100px) and (min-width: 783px) {
  .bosenheim-split-hero { min-height: 500px !important; }
  .bosenheim-split-hero > .wp-block-cover__inner-container,
  .bosenheim-events-hero__inner { min-height: 498px !important; padding: 30px !important; }
  .bosenheim-split-hero .heritage-hero-title,
  .bosenheim-split-hero .bosenheim-editorial-title,
  .bosenheim-events-hero__title { font-size: clamp(2rem, 3.7vw, 2.85rem) !important; }
}

@media (max-width: 782px) {
  .bosenheim-split-hero { display: block !important; min-height: 0 !important; }
  .bosenheim-split-hero > .wp-block-cover__image-background,
  .bosenheim-events-hero__media {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
  }
  .bosenheim-split-hero > .wp-block-cover__inner-container,
  .bosenheim-events-hero__inner {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: clamp(30px, 8vw, 46px) clamp(24px, 7vw, 38px) !important;
  }
  .bosenheim-split-hero .heritage-hero-title,
  .bosenheim-split-hero .bosenheim-editorial-title,
  .bosenheim-events-hero__title { font-size: clamp(2.05rem, 10vw, 3.1rem) !important; }
}

/* --------------------------------------------------------------------------
   Sunset Grove palette and frameless site chrome (3.1.0)
   Kuler roles: primary #114A6B, secondary #E8A784, accent #9D4542,
   background #EBEBE9, surface #EBEBE9, text #001B2E.
   -------------------------------------------------------------------------- */
:root {
  --bosenheim-line: #114a6b;
  --bosenheim-line-soft: rgba(17, 74, 107, .26);
  --bosenheim-creme: #ebebe9;
  --bosenheim-olive: #114a6b;
  --bosenheim-wine: #114a6b;
  --bosenheim-ink: #001b2e;
  --heritage-secondary: #e8a784;
  --heritage-accent: #9d4542;
  --heritage-surface: #ebebe9;
}

body:not(.wp-admin) {
  background: #ebebe9;
  color: var(--bosenheim-ink);
}

body:not(.wp-admin)::after {
  content: none !important;
  display: none !important;
}

.wp-site-blocks,
.bosenheim-tec-main {
  border-radius: 0 !important;
  background: var(--bosenheim-creme) !important;
}

.heritage-header {
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--bosenheim-creme) !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bosenheim-split-hero {
  border-radius: 0 !important;
}

.heritage-footer {
  border-radius: 0 !important;
  background: var(--color-text) !important;
}

.heritage-primary-nav .heritage-nav-highlight .wp-block-navigation-item__content,
.heritage-primary-nav .heritage-nav-highlight .wp-block-navigation-item__content:hover,
.heritage-primary-nav .heritage-nav-highlight .wp-block-navigation-item__content:focus-visible {
  border-color: transparent !important;
  background-color: transparent !important;
  color: var(--bosenheim-ink) !important;
}

.heritage-newsletter {
  background: #114a6b !important;
}

.heritage-newsletter-form input[type="submit"],
.heritage-newsletter-form button {
  color: #114a6b;
}

.heritage-event-query .wp-block-post-template > li:nth-child(1) .heritage-event-tile {
  border-color: #dec0ad !important;
  background: #ebebe9;
  color: #001b2e;
}

.heritage-event-query .wp-block-post-template > li:nth-child(2) .heritage-event-tile {
  border-color: #114a6b !important;
  background: #114a6b;
  color: #ebebe9;
}

.heritage-event-query .wp-block-post-template > li:nth-child(3) .heritage-event-tile {
  border-color: #001b2e !important;
  background: #001b2e;
  color: #ebebe9;
}

.heritage-event-query .wp-block-post-template > li:nth-child(1) .heritage-event-tile::before,
.heritage-event-query .wp-block-post-template > li:nth-child(1) :is(.wp-block-post-title a, .bosenheim-event-meta) {
  color: #001b2e !important;
}

.heritage-event-query .wp-block-post-template > li:nth-child(1) .wp-block-post-excerpt {
  color: #114a6b !important;
}

.heritage-event-query .wp-block-post-template > li:nth-child(2) .heritage-event-tile::before,
.heritage-event-query .wp-block-post-template > li:nth-child(2) :is(.wp-block-post-title a, .bosenheim-event-meta),
.heritage-event-query .wp-block-post-template > li:nth-child(2) .wp-block-post-excerpt__more-link {
  color: #ebebe9 !important;
}

/* Auf der dunkelsten Kachel steht alles — Ziffer wie Text — in Mystic White. */
.heritage-event-query .wp-block-post-template > li:nth-child(3) .heritage-event-tile::before,
.heritage-event-query .wp-block-post-template > li:nth-child(3) .bosenheim-event-meta,
.heritage-event-query .wp-block-post-template > li:nth-child(3) .wp-block-post-excerpt__more-link {
  color: #ebebe9 !important;
}

.heritage-event-query .wp-block-post-template > li:nth-child(2) .wp-block-post-excerpt,
.heritage-event-query .wp-block-post-template > li:nth-child(3) .wp-block-post-excerpt {
  color: rgba(235, 235, 233, .86) !important;
}

.tribe-events,
.tribe-events-view,
.tribe-common,
.single-tribe_events .bosenheim-event-single {
  --tec-color-text-primary: #001b2e;
  --tec-color-text-secondary: #114a6b;
  --tec-color-accent-primary: #114a6b;
  --tec-color-accent-primary-hover: #9d4542;
  --tec-color-border-secondary: rgba(17, 74, 107, .26);
  --tec-color-background: #ebebe9;
}

@media (max-width: 900px) {
  .heritage-header,
  .wp-site-blocks,
  .heritage-footer {
    border-radius: 0 !important;
  }

  .heritage-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
    background: var(--bosenheim-creme);
  }
}

/* ---------------------------------------------------------------------------
   Fremd-Defaults auf die Palette ziehen.
   WordPress-Core und das Newsletter-Plugin laden ihr CSS nach diesem
   Stylesheet und setzen eigene Grau- und Weisswerte. Hier eingefangen,
   damit auf der Seite ausschliesslich Palette-223-Farben erscheinen.
--------------------------------------------------------------------------- */

/* Core setzt auf .wp-block-cover ein hartes #fff. */
.wp-block-cover,
.wp-block-cover-image {
  color: var(--color-background);
}

/* Newsletter-Plugin (tnp) — sowohl im blauen Band als auch auf der
   eigenstaendigen Seite /newsletter/, wo der Container fehlt. */
.tnp input[type="email"],
.tnp input[type="text"],
.tnp-email,
.tnp-name {
  background: var(--color-background) !important;
  border: 1px solid var(--color-surface) !important;
  color: var(--color-text) !important;
}

.tnp input[type="email"]::placeholder,
.tnp input[type="text"]::placeholder,
.tnp-email::placeholder,
.tnp-name::placeholder {
  color: var(--color-primary) !important;
  opacity: .72 !important;
}

.tnp input[type="submit"],
.tnp-submit {
  background: var(--color-background) !important;
  border: 1px solid var(--color-primary) !important;
  color: var(--color-primary) !important;
}

.tnp input[type="submit"]:hover,
.tnp-submit:hover,
.tnp input[type="submit"]:focus-visible,
.tnp-submit:focus-visible {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-text) !important;
}

.heritage-newsletter-form .tnp-privacy,
.heritage-newsletter-form .tnp-field label {
  color: var(--color-background);
}

/* ---------------------------------------------------------------------------
   The Events Calendar (Kalenderansichten) und Core-Suchblock.
   Beide bringen eigene Grau- und Weisswerte mit, die der Palette
   widersprechen. Variablen zuerst, harte Werte danach.
--------------------------------------------------------------------------- */

.tribe-events,
.tribe-events-view,
.tribe-common,
.tribe-events-view--shortcode {
  --tec-color-text-primary: var(--color-text);
  --tec-color-text-primary-event: var(--color-text);
  --tec-color-text-secondary: var(--color-primary);
  --tec-color-text-event-title: var(--color-text);
  --tec-color-text-event-date: var(--color-primary);
  --tec-color-text-events-title: var(--color-text);
  --tec-color-text-disabled: var(--color-primary);
  --tec-color-accent-primary: var(--color-primary);
  --tec-color-accent-primary-hover: var(--color-secondary);
  --tec-color-accent-primary-active: var(--color-secondary);
  --tec-color-background: var(--color-background);
  --tec-color-background-secondary: var(--color-surface);
  --tec-color-background-events-bar: var(--color-background);
  --tec-color-border-default: var(--color-surface);
  --tec-color-border-secondary: var(--color-surface);
  --tec-color-border-tertiary: var(--color-surface);
  --tec-color-icon-primary: var(--color-primary);
  --tec-color-icon-secondary: var(--color-primary);
  --tec-color-icon-active: var(--color-secondary);
  --tec-color-link-primary: var(--color-primary);
  --tec-color-link-accent: var(--color-primary);
  --tec-color-link-accent-hover: var(--color-secondary);
}

/* Die TEC-Stylesheets werden nach diesem hier geladen und gewinnen sonst
   bei gleicher Spezifitaet. Daher !important. */
.tribe-common .tribe-events-calendar-list__event-title,
.tribe-common .tribe-events-calendar-list__event-title a,
.tribe-common .tribe-events-calendar-month__calendar-event-title,
.tribe-common .tribe-events-calendar-day__event-title,
.tribe-common .tribe-events-c-view-selector__list-item-text,
.tribe-common .tribe-events-c-view-selector__list-item-link,
.tribe-common .tribe-events-c-top-bar__datepicker-desktop,
.tribe-common .tribe-common-h1,
.tribe-common .tribe-common-h2,
.tribe-common .tribe-common-h3,
.tribe-common .tribe-common-h4,
.tribe-common .tribe-common-h5,
.tribe-common .tribe-common-h6,
.tribe-common .tribe-common-h7,
.tribe-common .tribe-common-h8 {
  color: var(--color-text) !important;
}

.tribe-common .tribe-events-calendar-list__event-title a:hover,
.tribe-common .tribe-events-c-view-selector__list-item-link:hover {
  color: var(--color-secondary) !important;
}

.tribe-events .tribe-events-c-events-bar__search-container,
.tribe-events .tribe-events-c-search__input-control,
.tribe-events .tribe-events-c-events-bar__search-button,
.tribe-common .tribe-events-c-view-selector__content {
  background-color: var(--color-background) !important;
  border-color: var(--color-surface) !important;
}

.tribe-common svg,
.tribe-events svg {
  color: var(--color-primary) !important;
  fill: currentColor !important;
}

/* Core-Suchblock (Suchergebnisseite, Widgets). */
.wp-block-search__input {
  background-color: var(--color-background);
  border-color: var(--color-surface);
  color: var(--color-text);
}

.wp-block-search__input::placeholder {
  color: var(--color-primary);
  opacity: .72;
}

.wp-block-search__button {
  border-color: var(--color-surface);
  background-color: var(--color-primary);
  color: var(--color-background);
}

.wp-block-search__button:hover,
.wp-block-search__button:focus-visible {
  background-color: var(--color-secondary);
  color: var(--color-background);
}

/* TEC-Icons zeichnen ihre Form auf <path>, nicht auf <svg>. currentColor
   erbt damit auch den korrekt abgeschwaechten Ton deaktivierter Schalter. */
.tribe-common .tribe-common-c-svgicon path,
.tribe-common .tribe-common-c-svgicon circle,
.tribe-common .tribe-common-c-svgicon rect,
.tribe-common .tribe-common-c-svgicon polygon {
  fill: currentColor !important;
}

.tribe-events .tribe-events-c-top-bar__datepicker-input,
.tribe-events input[type="date"],
.tribe-events input[type="text"] {
  background-color: var(--color-background) !important;
  border-color: var(--color-surface) !important;
  color: var(--color-text) !important;
}

/* ---------------------------------------------------------------------------
   Regel: die Linie eines Unterstreichungseffekts traegt immer die Textfarbe.
   Ausgenommen ist das Hauptmenue — dort bleibt die Linie bewusst in
   Lumberjack als eigener Akzent stehen.
--------------------------------------------------------------------------- */
.tribe-common .tribe-events-c-view-selector__list-item-link::after,
.tribe-common .tribe-events-c-view-selector__list-item-link::before {
  background-color: currentColor !important;
}

/* Ankreuzfelder zeichnet der Browser selbst; Farbe geht nur ueber accent-color. */
.tnp input[type="checkbox"],
.tnp input[type="radio"],
.wp-block-search input[type="checkbox"] {
  accent-color: var(--color-primary);
}

/* ---------------------------------------------------------------------------
   Erste Veranstaltungskachel: Text und Randlinie im selben warmen Ton.
   Cinnamon Tea #DEC0AD und Ceramic Glaze #E8A784 kaemen als Textfarbe auf
   1,4:1 bzw. 1,7:1 gegen die Kachelflaeche und waeren unlesbar. Lumberjack
   ist der waermste Palettenton, der als Text traegt: 5,2:1, AA erfuellt.
--------------------------------------------------------------------------- */
.heritage-event-query.heritage-event-query .wp-block-post-template > li:nth-child(1) .heritage-event-tile {
  border-color: var(--color-secondary) !important;
}

.heritage-event-query.heritage-event-query .wp-block-post-template > li:nth-child(1) .heritage-event-tile::before,
.heritage-event-query.heritage-event-query .wp-block-post-template > li:nth-child(1) .bosenheim-event-meta,
.heritage-event-query.heritage-event-query .wp-block-post-template > li:nth-child(1) .wp-block-post-title a,
.heritage-event-query.heritage-event-query .wp-block-post-template > li:nth-child(1) .wp-block-post-excerpt,
.heritage-event-query.heritage-event-query .wp-block-post-template > li:nth-child(1) .wp-block-post-excerpt__more-link {
  color: var(--color-secondary) !important;
}

/* ---------------------------------------------------------------------------
   Neuigkeiten: Beitragskacheln auf der Startseite, unter /neuigkeiten/ und
   auf den Vereinsarchiven /verein/<slug>/.
   Farben aus Mindful Palette 223. Kontraste gegen die Kachelflaeche
   #EBEBE9: Lumberjack 5,2:1 · Tanzanite Blue 7,9:1 · Oxford 14,7:1.
--------------------------------------------------------------------------- */

.heritage-news-intro {
  margin-bottom: clamp(30px, 3.2vw, 46px);
}

.heritage-news-query .wp-block-post-template {
  gap: clamp(18px, 2vw, 28px) !important;
  padding: 0 !important;
  list-style: none;
}

.heritage-news-tile {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: clamp(22px, 2.2vw, 30px);
  border: 2px solid var(--color-surface);
  border-radius: 12px;
  background: var(--color-background);
  transition: transform .48s cubic-bezier(.22, 1, .36, 1), border-color .38s ease;
}

.heritage-news-tile:hover {
  border-color: var(--color-secondary);
  transform: translateY(-3px);
}

.heritage-news-tile .heritage-news-verein {
  margin: 0 0 6px;
  color: var(--color-secondary);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.heritage-news-tile .heritage-news-verein a {
  color: inherit;
  text-decoration: none;
}

.heritage-news-tile .heritage-news-verein a:hover,
.heritage-news-tile .heritage-news-verein a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.heritage-news-tile .heritage-news-date {
  margin: 0 0 14px;
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 550;
  letter-spacing: .04em;
}

.heritage-news-tile .wp-block-post-title {
  margin: 0 0 12px;
  line-height: 1.12;
}

.heritage-news-tile .wp-block-post-title a {
  color: var(--color-text);
  text-decoration: none;
}

.heritage-news-tile .wp-block-post-excerpt {
  margin: 0;
  color: var(--color-primary);
}

/* Die wachsende Linie traegt die Textfarbe — siehe Regel weiter oben. */
.heritage-news-tile .wp-block-post-title a,
.heritage-news-tile .wp-block-post-excerpt__more-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: center 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size .82s cubic-bezier(.22, 1, .36, 1);
}

.heritage-news-tile .wp-block-post-title a:hover,
.heritage-news-tile .wp-block-post-title a:focus-visible,
.heritage-news-tile .wp-block-post-excerpt__more-link:hover,
.heritage-news-tile .wp-block-post-excerpt__more-link:focus-visible {
  background-size: 100% 2px;
}

.heritage-news-tile .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--color-primary);
  font-size: .78rem;
  font-weight: 650;
  text-decoration: none;
}

/* Der Abstand zum Knopf laeuft ueber padding, nicht margin: weiter oben steht
   .wp-site-blocks > main.wp-block-group.alignfull > * { margin-block-start: 0
   !important }. Auf der Startseite liegen die Patterns in einer Zwischenebene
   und sind davon nicht betroffen; /neuigkeiten/ und die Vereinsarchive machen
   den Abschnitt aber selbst zum main, dort greift die Regel. Padding umgeht
   sie ohne ein weiteres !important. */
.heritage-news-query {
  padding-bottom: clamp(40px, 4.5vw, 72px);
}

.heritage-news-button {
  margin-top: clamp(28px, 3vw, 44px);
}

@media (max-width: 900px) {
  .heritage-news-query .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
}

/* ---------------------------------------------------------------------------
   Kalender-Dropdown auf der Termindetailseite.
   Der Artikel-Container hatte "overflow: hidden", damit das Titelbild an den
   runden Ecken beschnitten wird. Weil er zugleich "position: relative" hat,
   war er der Bezugsrahmen der absolut positionierten Abo-Liste — die wurde
   dadurch an der Unterkante abgeschnitten, trotz z-index 30.

   Die Beschneidung sitzt jetzt am Titelbild selbst, das sie als einziges
   Kind braucht. Der Fuss mit dem Dropdown bleibt unbeschnitten.
--------------------------------------------------------------------------- */
.single-tribe_events .bosenheim-event-single__article > .bosenheim-event-single__hero {
  overflow: hidden;
  border-radius: var(--bosenheim-artikel-radius) var(--bosenheim-artikel-radius) 0 0;
}

/* Die eigentliche Ursache liegt nicht im Theme: The Events Calendar setzt in
   tribe-events-single-skeleton.css die Regel
     .tribe-events-single > .tribe_events { overflow: hidden; position: relative }
   Der Artikel traegt die Klasse "tribe_events", und dieses Stylesheet laedt
   nach dem Theme. Nur das Overflow wird hier zurueckgenommen; position bleibt,
   weil TEC es fuer das eigene Layout braucht. */
.single-tribe_events .tribe-events-single > .tribe_events.bosenheim-event-single__article {
  overflow: visible !important;
}

/* Die Liste muss ueber allem liegen, was nach dem Artikel kommt. */
.single-tribe_events .bosenheim-event-single__calendar .tribe-events-c-subscribe-dropdown,
.tribe-events .tribe-events-c-subscribe-dropdown {
  position: relative;
  z-index: 40;
}

.single-tribe_events .tribe-events-c-subscribe-dropdown__content,
.tribe-events .tribe-events-c-subscribe-dropdown__content {
  z-index: 41 !important;
}

/* ---------------------------------------------------------------------------
   Kalender-Abo auf den Archivseiten ueberlagern statt einschieben.
   TEC positioniert die Liste nur in zwei Zusammenhaengen absolut:
     .single-tribe_events ... und .tribe-block__events-link ...
   Auf /events/ und den Kategorie-Archiven bleibt sie dadurch im Textfluss und
   schiebt beim Aufklappen alles darunter nach unten. top: 100% statt des
   festen top: 42px von TEC, damit die Liste unabhaengig von der Knopfhoehe
   direkt unter dem Knopf sitzt.
--------------------------------------------------------------------------- */
body:not(.single-tribe_events) .tribe-events .tribe-events-c-subscribe-dropdown__content {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}

/* ---------------------------------------------------------------------------
   Datumsmarke der Terminliste: Zahl und Wochentag optisch mittig zueinander.

   Beide Zeilen stehen in gleich breiten Boxen und sind zentriert, sassen aber
   sichtbar versetzt. Ursache ist der Buchstabenabstand: er wird auch hinter
   dem LETZTEN Zeichen gesetzt und zaehlt zur Zeilenbreite. Beim Zentrieren
   verschiebt das die sichtbaren Zeichen um die halbe Laufweite — die Zahl mit
   -.08em um rund 2,1px nach rechts, den Wochentag mit +.12em um 0,6px nach
   links.

   text-indent in Hoehe der Laufweite hebt das auf: bei zentriertem Text
   verschiebt ein Einzug die Zeile um seine Haelfte, also genau um den Betrag,
   der zu korrigieren ist.
--------------------------------------------------------------------------- */
.tribe-events .tribe-events-calendar-list__event-date-tag-weekday {
  text-indent: .12em;
}

.tribe-events .tribe-events-calendar-list__event-date-tag-daynum {
  text-indent: -.08em;
}

/* ---------------------------------------------------------------------------
   Vereinsseite: Abschnitte "Anstehende Termine" und "Neuigkeiten".
   Die Terminliste rendert das Plugin (Shortcode bosenheim_verein_termine).
   Abstaende ueber padding - die Vorlage macht den Abschnitt selbst zum main,
   dort nullt .wp-site-blocks > main > * jedes margin-block-start.
   Kontraste gegen #EBEBE9: Oxford 14,7:1 · Tanzanite 7,9:1 · Lumberjack 5,2:1.
--------------------------------------------------------------------------- */

.heritage-verein-block {
  padding-bottom: clamp(18px, 2vw, 28px);
}

.heritage-verein-termine {
  padding-bottom: clamp(48px, 5vw, 80px);
}

.heritage-verein-block__titel {
  margin: 0 0 clamp(16px, 1.6vw, 22px);
  color: var(--color-text);
}

/* Filter nach Kalenderkategorie */
.bosenheim-verein-termine__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(18px, 2vw, 26px);
}

.bosenheim-verein-termine__filter a {
  display: inline-block;
  padding: 7px 16px;
  border: 2px solid var(--color-surface);
  border-radius: 999px;
  background: var(--color-background);
  color: var(--color-primary);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}

.bosenheim-verein-termine__filter a:hover,
.bosenheim-verein-termine__filter a:focus-visible {
  border-color: var(--color-primary);
}

.bosenheim-verein-termine__filter a.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-background);
}

/* Terminkarten */
.bosenheim-verein-termine__liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bosenheim-verein-termin {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(20px, 2vw, 28px);
  border: 2px solid var(--color-surface);
  border-radius: 12px;
  background: var(--color-background);
  transition: border-color .38s ease, transform .48s cubic-bezier(.22, 1, .36, 1);
}

.bosenheim-verein-termin:hover {
  border-color: var(--color-secondary);
  transform: translateY(-3px);
}

.bosenheim-verein-termin__datum {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.bosenheim-verein-termin__titel {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.15;
}

/* Linie traegt die Textfarbe (currentColor) - Designregel. */
.bosenheim-verein-termin__titel a {
  color: var(--color-text);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size .82s cubic-bezier(.22, 1, .36, 1);
}

.bosenheim-verein-termin__titel a:hover,
.bosenheim-verein-termin__titel a:focus-visible {
  background-size: 100% 2px;
}

.bosenheim-verein-termin__ort {
  margin: 0;
  color: var(--color-primary);
  font-size: .82rem;
}

.bosenheim-verein-termin__kategorien {
  margin: auto 0 0;
  padding-top: 14px;
  color: var(--color-secondary);
  font-size: .66rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bosenheim-verein-termine__leer {
  margin: 0;
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .bosenheim-verein-termine__liste {
    grid-template-columns: 1fr;
  }
}
