@charset "UTF-8";
/* ===========================================================================
   site.scss → assets/site.css (one file for the whole site)
   sass --no-source-map scss/site.scss assets/site.css
   =========================================================================== */
/* ===========================================================================
   _tokens.scss: design tokens for oliviertardy.de, design "Élégance"
   (briefing 4.12.2026): paper, ink, hairlines, one serif.

   The colours are defined here (single source). The Astra global palette is
   set to the same values so the editor palette matches (README.md):
     0 ink #082262 · 1 muted #6E6A63 · 2 ink #082262 · 3 text #2B2A33
     4 surface #F2EEE7 · 5 paper #FAF8F4 · 6 accent #C9CFE0
     7 line #E3DED5 · 8 ink #082262
   Navy is ink (text, lines, the one filled button), never a surface.
   =========================================================================== */
/* --- Fonts, self-hosted (OFL, assets/fonts/OFL-*.txt). latin + latin-ext
   (French accents); the browser loads latin-ext only when a page needs it.
   No Google Fonts request. --- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext-500-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  /* --- Colours --- */
  --ot-paper: #faf8f4; /* page, header, footer */
  --ot-ink: #082262; /* headings, links, the one filled button */
  --ot-ink-hover: #0d2f80;
  --ot-text: #2b2a33; /* body text */
  --ot-muted: #6e6a63; /* meta, captions, kicker */
  --ot-line: #e3ded5; /* hairlines */
  --ot-surface: #f2eee7; /* rare bands (newsletter) */
  --ot-accent: #c9cfe0; /* small things only (focus ring tone), never a surface */
  /* Old names (0.2/0.3), still used by some rules and plugins. */
  --ot-primary: var(--ot-ink);
  --ot-secondary: var(--ot-muted);
  --ot-heading: var(--ot-ink);
  --ot-bg: var(--ot-paper);
  --ot-dark: var(--ot-ink);
  /* --- Fonts --- */
  --ot-font-text: "Jost", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ot-font-heading: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  /* --- Font sizes (briefing values) --- */
  --ot-fs-xs: 0.75rem; /* 12 px kicker */
  --ot-fs-sm: 0.8125rem; /* 13 px meta, captions, footer */
  --ot-fs-ui: 0.875rem; /* 14 px navigation, buttons */
  --ot-fs-base: 1.0625rem; /* 17 px body */
  --ot-fs-lg: clamp(1.0625rem, 1rem + 0.28vw, 1.1875rem); /* 17 → 19 px lead */
  --ot-fs-h3: clamp(1.5rem, 2vw, 1.875rem); /* 24 → 30 px */
  --ot-fs-h2: clamp(2rem, 3.4vw, 3rem); /* 32 → 48 px */
  --ot-fs-h1: clamp(3rem, 6vw, 5.5rem); /* 48 → 88 px */
  --ot-fs-display: var(--ot-fs-h1);
  /* --- Spacing scale (fluid) --- */
  --ot-space-2xs: clamp(0.25rem, 0.23rem + 0.11vw, 0.375rem);
  --ot-space-xs: clamp(0.5rem, 0.46rem + 0.17vw, 0.625rem);
  --ot-space-s: clamp(0.75rem, 0.7rem + 0.22vw, 1rem);
  --ot-space-m: clamp(1rem, 0.91rem + 0.43vw, 1.5rem);
  --ot-space-l: clamp(1.5rem, 1.33rem + 0.87vw, 2.5rem);
  --ot-space-xl: clamp(2rem, 1.65rem + 1.74vw, 4rem);
  --ot-space-2xl: clamp(3rem, 2.48rem + 2.61vw, 6rem);
  /* Between sections: 72 px mobile → 144 px desktop. */
  --ot-space-section: clamp(4.5rem, 2.83rem + 6.86vw, 9rem);
  /* Text column. */
  --ot-measure: 68ch;
  /* --- Shape --- */
  --ot-radius: 2px;
  --ot-hairline: 1px solid var(--ot-line);
  --ot-focus: 2px solid var(--ot-ink);
  /* --- Header: 64 px bar; anchor targets stop below it --- */
  --ot-header-height: 4rem;
  --ot-header-offset: calc(var(--ot-header-height) + 1rem);
  /* --- knandi-event (styled via its own variables) --- */
  --ke-accent: var(--ot-ink);
  --ke-accent-hover: var(--ot-ink-hover);
  --ke-text: var(--ot-text);
  --ke-font-heading: var(--ot-font-heading);
  --ke-radius: 0;
  --ke-gap: var(--ot-space-l);
  --ke-title-size: 1.625rem;
}

/* ===========================================================================
   _base.scss: typography, links, buttons, images, focus. Only when the new
   layout is active (site.css is not loaded on Elementor pages).

   ":root :is(…)" where Astra's inline CSS would win otherwise (its rules
   such as ".entry-content :where(h1,…)" come with one class).
   =========================================================================== */
/* ===========================================================================
   _mixins.scss: shared patterns (no CSS output of its own).
   =========================================================================== */
/* Text link with an arrow; the underline runs in from the left on hover.
   Used by .ot-link, the block style "Link", the event list and featured. */
@keyframes ot-underline {
  from {
    background-size: 0 1px;
  }
  to {
    background-size: 100% 1px;
  }
}
/* All of it on one selector: @include ot-link; */
/* Primary button: navy filled, paper text, 48 px, no pill. One per view. */
/* Kicker: small, spaced capitals above a heading (the only capitals). */
/* Anchor links (e.g. Medien → #videos) land below the sticky header.
   Only scroll-margin on the target: scroll-padding on html would add up. */
:where([id]) {
  scroll-margin-top: var(--ot-header-offset);
}

body.admin-bar {
  --ot-header-offset: calc(var(--ot-header-height) + 1rem + 32px);
}

@media (max-width: 782px) {
  body.admin-bar {
    --ot-header-offset: calc(var(--ot-header-height) + 1rem + 46px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
/* --- Paper everywhere (Astra paints white boxes in several layouts) --- */
:root body,
:root .site,
:root .site-content,
:root .ast-separate-container,
:root .ast-separate-container .ast-article-single,
:root .ast-page-builder-template .site-content > .ast-container {
  background-color: var(--ot-paper);
}

:root body {
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ot-text);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ot-accent);
  color: var(--ot-ink);
}

/* --- Headings: Cormorant 500, sentence case (no capitals, also not from
   the Astra Customizer) --- */
:root :is(h1, h2, h3, h4, h5, h6, .entry-title) {
  font-family: var(--ot-font-heading);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ot-ink);
  text-wrap: balance;
}

:root :is(h1, .entry-title) {
  font-size: var(--ot-fs-h1);
  line-height: 1;
}

:root h2 {
  font-size: var(--ot-fs-h2);
  line-height: 1.1;
}

:root h3 {
  font-size: var(--ot-fs-h3);
  line-height: 1.2;
}

/* h4–h6 are rare; Jost, like the text. */
:root :is(h4, h5, h6) {
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-base);
  line-height: 1.4;
}

/* --- Links --- */
:root a {
  color: var(--ot-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:root a:hover {
  color: var(--ot-ink-hover);
}

/* --- Buttons: navy filled = the one primary action. Height 48 px, no pills.
   Secondary actions use the block style "Link" (is-style-ot-link). --- */
:root :is(.wp-element-button, .wp-block-button__link, .ast-button, .button, input[type=submit], button[type=submit]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.75rem;
  border: 1px solid var(--ot-ink);
  border-radius: var(--ot-radius);
  background-color: var(--ot-ink);
  color: var(--ot-paper);
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-ui);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
}
:root :is(.wp-element-button, .wp-block-button__link, .ast-button, .button, input[type=submit], button[type=submit]):is(:hover, :focus-visible) {
  border-color: var(--ot-ink-hover);
  background-color: var(--ot-ink-hover);
  color: var(--ot-paper);
}

/* Text link with arrow (hero, empty states, lists). */
.ot-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  min-height: 0;
  padding: 0.25em 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(currentColor, currentColor) left bottom/100% 1px no-repeat;
  color: var(--ot-ink);
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-ui);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: none;
}
.ot-link::after {
  content: "→";
  display: inline-block;
}
.ot-link:is(:hover, :focus-visible) {
  background-color: transparent;
  color: var(--ot-ink-hover);
  animation: ot-underline 0.35s ease-out;
}
.ot-link:is(:hover, :focus-visible)::after {
  transform: translateX(4px);
}
@media (prefers-reduced-motion: no-preference) {
  .ot-link::after {
    transition: transform 0.2s ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ot-link:is(:hover, :focus-visible) {
    animation: none;
  }
}

/* --- Images: no rounding, no shadow, no overlay --- */
:root .entry-content :is(img, .wp-block-image img, .wp-block-cover, .wp-block-media-text__media img) {
  border-radius: 0;
  box-shadow: none;
}

/* 300 ms fade when a lazy image arrives (inc/assets.php sets .ot-fade and
   marks loaded images). The LCP image is never lazy, so it is not delayed. */
@media (prefers-reduced-motion: no-preference) {
  .ot-fade img[loading=lazy] {
    transition: opacity 0.3s ease-out;
  }
  .ot-fade img[loading=lazy]:not(.is-loaded) {
    opacity: 0;
  }
}
/* --- Focus: visible for keyboard users --- */
:focus-visible {
  outline: var(--ot-focus);
  outline-offset: 3px;
}

/* --- Text column: max 68ch. Only where paragraphs start at the left edge
   (columns, flow layout); in constrained sections a narrower paragraph would
   be centred and no longer line up with the headings. --- */
.wp-block-column > p,
.is-layout-flow > p {
  max-width: var(--ot-measure);
}

.wp-block-column > p.has-text-align-center,
.is-layout-flow > p.has-text-align-center {
  margin-inline: auto;
}

/* --- Lines --- */
:root hr,
:root .wp-block-separator {
  border: 0;
  border-top: var(--ot-hairline);
  background: none;
  opacity: 1;
}

/* Visually hidden, still read out. */
.ot-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================================================================
   _base.scss: typography, links, buttons, images, focus. Only when the new
   layout is active (site.css is not loaded on Elementor pages).

   ":root :is(…)" where Astra's inline CSS would win otherwise (its rules
   such as ".entry-content :where(h1,…)" come with one class).
   =========================================================================== */
/* ===========================================================================
   _header.scss: Astra header builder (Astra Pro sticky header) and the
   Polylang language switcher (menu 2 on desktop, first items of the mobile
   menu). Paper, a hairline below, 88 px → 64 px once scrolled
   (.ast-sticky-shrunk). Selectors start at #masthead to beat Astra's inline
   CSS from the Customizer.
   =========================================================================== */
/* --- Bar --- */
#masthead .ast-primary-header-bar,
#masthead .ast-primary-header-bar.ast-sticky-active {
  border-bottom: var(--ot-hairline);
  background-color: var(--ot-paper);
  background-image: none;
  box-shadow: none;
  backdrop-filter: none;
}

/* No extra padding from the Customizer (bar 8 px, branding 17 px):
   the bar height alone sets the rhythm. */
:root body #masthead .ast-primary-header-bar.main-header-bar {
  padding-top: 0;
  padding-bottom: 0;
}

#masthead .site-branding {
  padding-block: 0;
}

/* Desktop 88 px, compact once scrolled; mobile always 64 px. */
#masthead .ast-primary-header-bar .site-primary-header-wrap {
  min-height: 5.5rem;
}

#masthead .ast-primary-header-bar.ast-sticky-shrunk .site-primary-header-wrap,
#masthead .ast-mobile-header-wrap .ast-primary-header-bar {
  min-height: var(--ot-header-height);
}

@media (prefers-reduced-motion: no-preference) {
  #masthead .ast-primary-header-bar .site-primary-header-wrap {
    transition: min-height 0.2s ease-out;
  }
}
/* --- Name and "Dirigent" --- */
#masthead .site-title {
  margin: 0;
  line-height: 1;
}

#masthead .site-title a,
#masthead .site-title a:visited {
  font-family: var(--ot-font-heading);
  font-size: 1.625rem; /* 26 px */
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: var(--ot-ink);
}

#masthead .site-description {
  margin: 0.3rem 0 0;
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-xs);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ot-muted);
  font-size: 0.6875rem; /* 11 px: the kicker sits right under a 26 px name */
}

/* --- Navigation (desktop) --- */
#masthead .main-header-menu > .menu-item {
  line-height: 1.4;
}

#masthead .main-header-menu .menu-link {
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-ui);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ot-ink);
}

#masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
  padding: 0.75rem 0.9rem;
}

#masthead .main-header-menu .menu-item:hover > .menu-link,
#masthead .main-header-menu .menu-link:focus-visible {
  color: var(--ot-ink-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

#masthead .ast-builder-menu-1 .main-header-menu > :is(.current-menu-item, .current-menu-ancestor) > .menu-link {
  color: var(--ot-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

/* Submenus: paper, hairline, no shadow. */
#masthead .main-header-menu .sub-menu {
  border: var(--ot-hairline);
  background: var(--ot-paper);
  box-shadow: none;
}

#masthead .main-header-menu .sub-menu .menu-link {
  padding: 0.6rem 1rem;
  border: 0;
}

#masthead .main-header-menu .sub-menu .menu-link .ast-icon {
  display: none;
}

/* --- Language switcher "DE · EN · FR" (desktop) --- */
#masthead .ast-builder-menu-2 .main-header-menu > .menu-item > .menu-link {
  padding: 0.75rem 0.15rem;
  color: var(--ot-muted);
  text-decoration: none;
}

#masthead .ast-builder-menu-2 .main-header-menu > .menu-item + .menu-item::before {
  content: "·";
  padding-inline: 0.2rem;
  color: var(--ot-muted);
}

#masthead .ast-builder-menu-2 .main-header-menu {
  flex-wrap: nowrap;
  align-items: center;
}

#masthead .ast-builder-menu-2 .main-header-menu > .menu-item {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#masthead .ast-builder-menu-2 .main-header-menu > .current-lang > .menu-link {
  color: var(--ot-ink);
}

#masthead .ast-builder-menu-2 .main-header-menu > .menu-item > .menu-link:hover {
  color: var(--ot-ink);
}

/* --- Mobile: plain burger, menu as a full paper sheet --- */
#masthead .ast-mobile-menu-trigger-outline,
#masthead .menu-toggle {
  border: 0;
  background: transparent;
  color: var(--ot-ink);
  box-shadow: none;
}

#masthead [data-section=section-header-mobile-trigger] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
  width: 22px;
  height: 22px;
  fill: var(--ot-ink);
}

/* Mouse/touch focus: no ring (keyboard keeps :focus-visible). */
#masthead .menu-toggle:focus:not(:focus-visible) {
  outline: none;
}

#masthead .ast-mobile-header-wrap .ast-mobile-header-content {
  height: calc(100svh - var(--ot-header-height));
  max-height: none; /* Astra: 60vh */
  overflow-y: auto;
  border-top: 0;
  background-color: var(--ot-paper);
}

.admin-bar #masthead .ast-mobile-header-wrap .ast-mobile-header-content {
  height: calc(100svh - var(--ot-header-height) - 46px);
}

#masthead .ast-builder-menu-mobile .main-navigation .main-header-menu,
#masthead .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-link,
#masthead .ast-builder-menu-mobile .main-navigation .main-header-menu .sub-menu {
  background-color: var(--ot-paper);
  border: 0;
}

#ast-hf-mobile-menu {
  padding: var(--ot-space-m) var(--ot-space-m) var(--ot-space-xl);
}

/* One item per line … */
#ast-hf-mobile-menu li {
  display: block;
}

#masthead #ast-hf-mobile-menu > .menu-item:not(.lang-item) > .menu-link {
  padding: 0.5rem 0;
  font-family: var(--ot-font-heading);
  font-size: 1.75rem; /* 28 px */
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--ot-ink);
}

#masthead #ast-hf-mobile-menu .sub-menu .menu-link {
  padding: 0.35rem 0 0.35rem 1rem;
  font-size: var(--ot-fs-base);
  color: var(--ot-text);
}

/* Submenu arrow as high as the 28 px item (line 35 px + 2 × 8 px). */
#masthead #ast-hf-mobile-menu > .menu-item > .ast-menu-toggle {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.1875rem;
  color: var(--ot-ink);
}

/* … except the language items: one line "DE · EN · FR" above the menu. */
#ast-hf-mobile-menu li.lang-item {
  display: inline-block;
  width: auto;
  margin: 0 0 var(--ot-space-m);
}

#ast-hf-mobile-menu li.lang-item + li.lang-item::before {
  content: "·";
  padding-inline: 0.35rem;
  color: var(--ot-muted);
}

#masthead #ast-hf-mobile-menu li.lang-item > .menu-link {
  display: inline;
  padding: 0;
  font-size: var(--ot-fs-ui);
  letter-spacing: 0.04em;
  color: var(--ot-muted);
}

#masthead #ast-hf-mobile-menu li.current-lang > .menu-link {
  color: var(--ot-ink);
}

/* ===========================================================================
   _base.scss: typography, links, buttons, images, focus. Only when the new
   layout is active (site.css is not loaded on Elementor pages).

   ":root :is(…)" where Astra's inline CSS would win otherwise (its rules
   such as ".entry-content :where(h1,…)" come with one class).
   =========================================================================== */
/* ===========================================================================
   _block-styles.scss: block styles registered in inc/editor.php.
   They replace inline colours, sizes and paddings in the pages. Never rename
   a style: the class is-style-<name> is stored in the page content.
   =========================================================================== */
/* --- Group --- */
/* Page section: content width, the big space below. */
.wp-block-group.is-style-ot-section {
  padding: var(--ot-space-xl) var(--ot-space-m) var(--ot-space-section);
}

/* Band: even space above and below (front page sections). */
.wp-block-group.is-style-ot-band,
.wp-block-group.is-style-ot-band-surface {
  padding: var(--ot-space-section) var(--ot-space-m);
}

/* Consecutive sections: the space between them is not counted twice.
   Each side gives half, at most 60 px (120 px in all). */
:root .wp-block-group:is(.is-style-ot-section, .is-style-ot-band, .is-style-ot-band-surface, .is-style-ot-newsletter):has(+ .wp-block-group:is(.is-style-ot-section, .is-style-ot-band, .is-style-ot-band-surface, .is-style-ot-newsletter)) {
  padding-bottom: min(var(--ot-space-section) / 2, 60px);
}

:root .wp-block-group:is(.is-style-ot-section, .is-style-ot-band, .is-style-ot-band-surface, .is-style-ot-newsletter) + .wp-block-group:is(.is-style-ot-section, .is-style-ot-band, .is-style-ot-band-surface, .is-style-ot-newsletter) {
  padding-top: min(var(--ot-space-section) / 2, 60px);
}

/* Consecutive bands on paper: one hairline between them. */
.wp-block-group.is-style-ot-band + .wp-block-group.is-style-ot-band {
  border-top: var(--ot-hairline);
}

/* "Band on surface": the rare warm band (was mint until 0.3). */
.wp-block-group.is-style-ot-band-surface {
  background-color: var(--ot-surface);
}

/* Box: info block (e.g. dates on a project page). Hairlines, no fill. */
.wp-block-group.is-style-ot-box {
  padding: var(--ot-space-m) 0;
  border-block: var(--ot-hairline);
  background: none;
}

/* Panel: paper box on top of a cover image (contact, events). */
.wp-block-group.is-style-ot-panel {
  padding: var(--ot-space-l);
  background-color: rgba(250, 248, 244, 0.94);
  color: var(--ot-text);
  border-radius: 0;
}

/* --- Heading --- */
/* Display: H1 size, sentence case (no capitals any more). */
.wp-block-heading.is-style-ot-display {
  font-size: var(--ot-fs-h1);
  line-height: 1;
}

/* Subtitle: Cormorant italic below a heading. */
:root .wp-block-heading.is-style-ot-subtitle {
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ot-text);
}

/* --- Paragraph --- */
/* 17 → 19 px: also fine for a long first paragraph (Biografie). */
.is-style-ot-lead {
  font-size: var(--ot-fs-lg);
  line-height: 1.65;
}

/* Small grey line (date · orchestra · host, captions). */
.is-style-ot-meta {
  font-size: var(--ot-fs-sm);
  letter-spacing: 0.03em;
  color: var(--ot-muted);
}

/* Kicker: small spaced capitals above a heading. */
p.is-style-ot-kicker {
  margin-bottom: var(--ot-space-xs);
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-xs);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ot-muted);
}

/* --- Button --- */
/* Light: outline on paper (rare; prefer "Link" for a second action). */
:root .wp-block-button.is-style-ot-light .wp-block-button__link {
  background-color: transparent;
  color: var(--ot-ink);
}

:root .wp-block-button.is-style-ot-light .wp-block-button__link:is(:hover, :focus-visible) {
  background-color: var(--ot-ink);
  color: var(--ot-paper);
}

/* Link: text link with arrow, for every action but the primary one. */
:root .wp-block-button.is-style-ot-link .wp-block-button__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  min-height: 0;
  padding: 0.25em 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(currentColor, currentColor) left bottom/100% 1px no-repeat;
  color: var(--ot-ink);
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-ui);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: none;
}
:root .wp-block-button.is-style-ot-link .wp-block-button__link::after {
  content: "→";
  display: inline-block;
}
:root .wp-block-button.is-style-ot-link .wp-block-button__link:is(:hover, :focus-visible) {
  background-color: transparent;
  color: var(--ot-ink-hover);
  animation: ot-underline 0.35s ease-out;
}
:root .wp-block-button.is-style-ot-link .wp-block-button__link:is(:hover, :focus-visible)::after {
  transform: translateX(4px);
}
@media (prefers-reduced-motion: no-preference) {
  :root .wp-block-button.is-style-ot-link .wp-block-button__link::after {
    transition: transform 0.2s ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root .wp-block-button.is-style-ot-link .wp-block-button__link:is(:hover, :focus-visible) {
    animation: none;
  }
}

/* --- Column / image: stays in view next to a long text (>= 900 px) --- */
@media (min-width: 900px) {
  .wp-block-column.is-style-ot-sticky,
  .wp-block-image.is-style-ot-sticky {
    position: sticky;
    top: calc(var(--ot-header-height) + 32px);
    align-self: flex-start;
  }
  .admin-bar .wp-block-column.is-style-ot-sticky,
  .admin-bar .wp-block-image.is-style-ot-sticky {
    top: calc(var(--ot-header-height) + 32px + 32px);
  }
}
/* --- Image "Artwork": uniform 4:3, whole picture visible on surface
   (Matineen drawings of different formats). ot-frame = name in 0.3. --- */
:root .wp-block-image:is(.is-style-ot-artwork, .is-style-ot-frame) img {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  padding: 24px;
  object-fit: contain;
  background: var(--ot-surface);
}

/* --- Group "Newsletter" (WPForms) ---------------------------------------
   Surface band, centred, max 560 px. Fields as a grid: first | last name,
   e-mail, button, each full width on mobile. Labels only for screen
   readers (placeholders come from inc/integrations.php). */
.wp-block-group.is-style-ot-newsletter {
  padding: var(--ot-space-section) var(--ot-space-m);
  background-color: var(--ot-surface);
  text-align: center;
}

/* Two surface bands never touch (press + newsletter would read as one
   beige block): after a surface band the newsletter goes on paper. */
.wp-block-group.is-style-ot-band-surface + .wp-block-group.is-style-ot-newsletter {
  border-top: var(--ot-hairline);
  background-color: var(--ot-paper);
}

/* Beats the per-group max-width WordPress prints for constrained layouts. */
:root .wp-block-group.is-style-ot-newsletter > * {
  max-width: 35rem;
  margin-inline: auto !important;
}

.is-style-ot-newsletter .wpforms-container {
  margin-block: var(--ot-space-l) var(--ot-space-s);
  text-align: left;
}

/* Prefix as specific as WPForms' own "div.wpforms-container-full .wpforms-form …". */
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form .wpforms-field-container {
  display: grid;
  gap: var(--ot-space-m);
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form .wpforms-field-container > .wpforms-field {
  padding: 0;
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form {
  /* First | last name; one column on small screens. */
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form .wpforms-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ot-space-m);
  max-width: none;
  margin: 0;
}
@media (min-width: 600px) {
  :root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form .wpforms-field-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form {
  /* WPForms clearfix pseudo elements would become grid cells. */
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form .wpforms-field-row::before,
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form .wpforms-field-row::after {
  content: none;
  display: none;
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form .wpforms-field-row-block {
  width: auto;
  margin: 0;
  padding: 0;
  float: none;
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form {
  /* Labels for screen readers only. */
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form :is(.wpforms-field-label, .wpforms-field-sublabel) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form {
  /* Underline inputs: 1 px line, 2 px ink on focus. */
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form :is(input[type=text], input[type=email]) {
  width: 100%;
  max-width: none;
  height: 3rem;
  padding: 0 0.1rem;
  border: 0;
  border-bottom: 1px solid var(--ot-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-base);
  color: var(--ot-text);
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form :is(input[type=text], input[type=email])::placeholder {
  color: var(--ot-muted);
  opacity: 1;
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form :is(input[type=text], input[type=email]):is(:focus, :focus-visible) {
  outline: none;
  border-bottom: 2px solid var(--ot-ink);
  box-shadow: none;
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form .wpforms-submit-container {
  margin-top: var(--ot-space-m);
  padding: 0;
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form button[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.75rem;
  border: 1px solid var(--ot-ink);
  border-radius: var(--ot-radius);
  background-color: var(--ot-ink);
  color: var(--ot-paper);
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-ui);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form button[type=submit]:is(:hover, :focus-visible) {
  border-color: var(--ot-ink-hover);
  background-color: var(--ot-ink-hover);
  color: var(--ot-paper);
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form button[type=submit] {
  width: 100%;
}
:root .is-style-ot-newsletter div.wpforms-container-full .wpforms-form label.wpforms-error {
  margin-top: 0.25rem;
  font-size: var(--ot-fs-sm);
}

/* WP Armour notice (admins only) below the form, outside the grid. */
.is-style-ot-newsletter :is(.wpa-test-msg, .wpa_test_msg) {
  display: block;
  grid-column: 1/-1;
  order: 99;
  margin-top: var(--ot-space-s);
  font-size: var(--ot-fs-sm);
}

/* Note below the button (inc/integrations.php), or a paragraph after the form. */
.is-style-ot-newsletter .ot-newsletter-note {
  margin: var(--ot-space-s) 0 0;
  text-align: center;
}

.is-style-ot-newsletter :is(.ot-newsletter-note, .wpforms-container ~ p) {
  font-size: var(--ot-fs-sm);
  color: var(--ot-muted);
}

.is-style-ot-newsletter .ot-newsletter-note a {
  color: inherit;
}

/* Older content: note as a paragraph after the form. */
.is-style-ot-newsletter .wpforms-container ~ p {
  font-size: var(--ot-fs-sm);
  color: var(--ot-muted);
}

.is-style-ot-newsletter .wpforms-container ~ p a {
  color: inherit;
}

/* ===========================================================================
   _base.scss: typography, links, buttons, images, focus. Only when the new
   layout is active (site.css is not loaded on Elementor pages).

   ":root :is(…)" where Astra's inline CSS would win otherwise (its rules
   such as ".entry-content :where(h1,…)" come with one class).
   =========================================================================== */
/* ===========================================================================
   _blocks.scss: own blocks (olivier/*) and knandi-event/featured.
   =========================================================================== */
/* --- olivier/hero ------------------------------------------------------- */
.ot-hero {
  position: relative;
  overflow: hidden;
}

/* Explicit width as a second safety net besides the margin reset in
   _integrations.scss (0.3.0: photo 0 px wide). */
.ot-hero__media {
  width: 100%;
}

.ot-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ot-hero__content > :first-child {
  margin-top: 0;
}

.ot-hero__content > :last-child {
  margin-bottom: 0;
}

.ot-hero__kicker {
  margin: 0 0 var(--ot-space-m);
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-xs);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ot-muted);
}

:root .ot-hero__title {
  margin: 0;
  font-size: var(--ot-fs-h1);
  line-height: 1;
}

.ot-hero__tagline {
  max-width: 30ch;
  margin: var(--ot-space-m) 0 0;
  font-family: var(--ot-font-heading);
  font-size: 1.375rem; /* 22 px */
  font-style: italic;
  line-height: 1.4;
  color: var(--ot-text);
}

.ot-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 32px;
  margin: var(--ot-space-l) 0 0;
}

/* The main way in: larger than the other text links. */
:root .ot-hero .ot-hero__link {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Editorial (front page): text on paper | photo to the right window edge.
   Mobile: photo 4:5 first, text below. No text on the photo.
   "split" = the same layout under its 0.3 name. */
.ot-hero--editorial,
.ot-hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--ot-paper);
}

:is(.ot-hero--editorial, .ot-hero--split) .ot-hero__media {
  aspect-ratio: 4/5;
}

:is(.ot-hero--editorial, .ot-hero--split) .ot-hero__content {
  padding: var(--ot-space-l) 24px var(--ot-space-xl);
}

@media (min-width: 900px) {
  .ot-hero--editorial,
  .ot-hero--split {
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    min-height: min(82svh, 820px);
  }
  :is(.ot-hero--editorial, .ot-hero--split) .ot-hero__media {
    order: 2;
    position: relative;
    aspect-ratio: auto;
  }
  :is(.ot-hero--editorial, .ot-hero--split) .ot-hero__img {
    position: absolute;
    inset: 0;
  }
  /* Left padding = edge of the content container, so the name lines up
     with the sections below. */
  :is(.ot-hero--editorial, .ot-hero--split) .ot-hero__content {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--ot-space-xl) var(--ot-space-xl) var(--ot-space-xl) max(var(--ot-space-l), (100vw - var(--wp--style--global--content-size, 1200px)) / 2);
    /* Optical centre: the text block sits at about 45 % of the height. */
    padding-bottom: calc(var(--ot-space-xl) + min(10svh, 5rem));
  }
}
/* Overlay (project pages): text on paper fading over the photo. */
.ot-hero--overlay {
  display: grid;
  align-items: center;
  min-height: min(48rem, 90vh);
}

.ot-hero--overlay .ot-hero__media {
  position: absolute;
  inset: 0;
}

.ot-hero--overlay .ot-hero__content {
  position: relative;
  max-width: 40rem;
  padding: var(--ot-space-xl) var(--ot-space-m) var(--ot-space-xl) 10%;
}

.ot-hero__subtitle {
  margin: var(--ot-space-xs) 0 0;
  font-family: var(--ot-font-heading);
  font-size: var(--ot-fs-h3);
  font-style: italic;
  color: var(--ot-text);
}

@media (max-width: 899px) {
  .ot-hero--overlay {
    align-items: end;
    min-height: 70vh;
  }
  .ot-hero--overlay .ot-hero__content {
    padding: var(--ot-space-l) var(--ot-space-m);
    background: linear-gradient(to top, rgba(250, 248, 244, 0.92), rgba(250, 248, 244, 0));
  }
}
/* --- olivier/video ------------------------------------------------------ */
.ot-video {
  margin: 0;
}

.ot-video__play,
.ot-video__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--ot-ink);
}

/* The play link is not a button: no button look from _base. */
:root .ot-video__play {
  min-height: 0;
  padding: 0;
}

.ot-video__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.ot-video__play:hover .ot-video__img,
.ot-video__play:focus-visible .ot-video__img {
  opacity: 1;
}

/* Play symbol: ink triangle in a paper circle. */
.ot-video__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(250, 248, 244, 0.92);
  transform: translate(-50%, -50%);
}

.ot-video__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent var(--ot-ink);
  transform: translate(-50%, -50%);
}

.ot-video__hint {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: var(--ot-space-xs) var(--ot-space-s);
  font-size: var(--ot-fs-sm);
  color: var(--ot-paper);
  background: rgba(8, 34, 98, 0.75);
}

.ot-video__caption {
  margin-top: var(--ot-space-xs);
  font-size: var(--ot-fs-sm);
  color: var(--ot-muted);
}

/* --- olivier/termine: dates of one programme ---------------------------- */
.ot-termine__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--ot-hairline);
}

.ot-termine__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--ot-space-xs) var(--ot-space-m);
  padding: var(--ot-space-s) 0;
  border-bottom: var(--ot-hairline);
}

.ot-termine__item time {
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-xs);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ot-muted);
  color: var(--ot-ink);
}

.ot-termine__location {
  font-family: var(--ot-font-heading);
  font-size: 1.375rem;
  color: var(--ot-ink);
}

:root .ot-termine__tickets {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  min-height: 0;
  padding: 0.25em 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(currentColor, currentColor) left bottom/100% 1px no-repeat;
  color: var(--ot-ink);
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-ui);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: none;
}
:root .ot-termine__tickets::after {
  content: "→";
  display: inline-block;
}
:root .ot-termine__tickets:is(:hover, :focus-visible) {
  background-color: transparent;
  color: var(--ot-ink-hover);
  animation: ot-underline 0.35s ease-out;
}
:root .ot-termine__tickets:is(:hover, :focus-visible)::after {
  transform: translateX(4px);
}
@media (prefers-reduced-motion: no-preference) {
  :root .ot-termine__tickets::after {
    transition: transform 0.2s ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root .ot-termine__tickets:is(:hover, :focus-visible) {
    animation: none;
  }
}

.ot-termine__item.is-past {
  color: var(--ot-muted);
}

.ot-termine__item.is-past :is(time, .ot-termine__location) {
  color: var(--ot-muted);
}

.ot-termine__past {
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-xs);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ot-muted);
}

/* Empty state: one sentence, two links. */
.ot-termine__empty {
  margin: 0;
  font-family: var(--ot-font-heading);
  font-size: var(--ot-fs-h3);
  font-style: italic;
  color: var(--ot-ink);
}

.ot-termine__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 24px;
  margin-top: var(--ot-space-m);
}

/* --- olivier/presse-zitate ----------------------------------------------
   list (and single without JS): quotes one below the other, hairlines
   between. single with JS (view.js sets .is-enhanced): one quote, "← 2 / 7 →". */
.ot-quotes__list {
  margin: 0;
  padding: 0;
}

.ot-quote {
  max-width: 45rem;
  margin: 0 auto;
  padding: var(--ot-space-l) 0;
  text-align: center;
}

.ot-quote + .ot-quote {
  border-top: var(--ot-hairline);
}

:root .ot-quote__text {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--ot-font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--ot-ink);
  quotes: "“" "”";
}

.ot-quote__text p {
  margin: 0;
  font: inherit;
}

.ot-quote__text p + p {
  margin-top: 0.5em;
}

.ot-quote__caption {
  margin-top: var(--ot-space-m);
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-xs);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ot-muted);
}

.ot-quote__caption a {
  color: inherit;
  text-decoration: none;
}

.ot-quote__caption a:hover .ot-quote__source {
  text-decoration: underline;
}

.ot-quote__source {
  font-style: normal;
}

/* Single, enhanced: only the current quote, steady height. */
.ot-quotes.is-enhanced .ot-quote {
  border-top: 0;
}

.ot-quotes.is-enhanced .ot-quote[hidden] {
  display: none;
}

.ot-quotes__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ot-space-s);
  font-size: var(--ot-fs-sm);
  letter-spacing: 0.06em;
  color: var(--ot-muted);
}

.ot-quotes__nav[hidden] {
  display: none;
}

:root .ot-quotes__nav button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ot-ink);
  font-size: 1.125rem;
  letter-spacing: 0;
}

:root .ot-quotes__nav button:is(:hover, :focus-visible) {
  border: 0;
  background: transparent;
  color: var(--ot-ink-hover);
}

.ot-quotes__count {
  min-width: 3.5em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ot-quotes__more {
  margin-top: var(--ot-space-l);
  text-align: center;
}

/* --- knandi-event/featured ----------------------------------------------
   One feature: picture left, text right (kicker = block heading, title,
   dates as kicker, teaser, Tickets button + "Mehr →"). The section is one
   grid, its wrappers step aside (display: contents). ":root" because the
   block's own featured.css may load after site.css. */
:root .ke-featured {
  margin-block: 0;
}

:root .ke-featured .ke-featured__heading {
  margin: 0 0 var(--ot-space-s);
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-xs);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ot-muted);
}

:root .ke-featured .ke-featured__title {
  margin: 0;
  font-family: var(--ot-font-heading);
  font-size: var(--ot-fs-h2);
  font-weight: 500;
  line-height: 1.1;
}

:root .ke-featured .ke-featured__img {
  border-radius: 0;
}

:root .ke-featured--hero .ke-featured__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ot-space-s);
}

:root .ke-featured .ke-featured__dates {
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-xs);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ot-muted);
  color: var(--ot-ink);
}

:root .ke-featured .ke-featured__date time {
  font-weight: 500;
}

:root .ke-featured .ke-featured__teaser {
  max-width: var(--ot-measure);
}

:root .ke-featured .ke-featured__actions {
  align-items: center;
  gap: 0.75rem 24px;
}

:root .ke-featured .ke-featured__button--more {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  min-height: 0;
  padding: 0.25em 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(currentColor, currentColor) left bottom/100% 1px no-repeat;
  color: var(--ot-ink);
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-ui);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: none;
}
:root .ke-featured .ke-featured__button--more::after {
  content: "→";
  display: inline-block;
}
:root .ke-featured .ke-featured__button--more:is(:hover, :focus-visible) {
  background-color: transparent;
  color: var(--ot-ink-hover);
  animation: ot-underline 0.35s ease-out;
}
:root .ke-featured .ke-featured__button--more:is(:hover, :focus-visible)::after {
  transform: translateX(4px);
}
@media (prefers-reduced-motion: no-preference) {
  :root .ke-featured .ke-featured__button--more::after {
    transition: transform 0.2s ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root .ke-featured .ke-featured__button--more:is(:hover, :focus-visible) {
    animation: none;
  }
}

:root .ke-featured .ke-featured__date-tickets {
  margin-left: 0.5em;
  text-transform: none;
  letter-spacing: 0.04em;
}

@media (min-width: 900px) {
  :root .ke-featured--hero {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    grid-template-rows: 1fr auto 1fr;
    column-gap: var(--ot-space-xl);
  }
  :root .ke-featured--hero .ke-featured__items,
  :root .ke-featured--hero .ke-featured__item {
    display: contents;
  }
  :root .ke-featured--hero .ke-featured__media {
    grid-column: 1;
    grid-row: 1/-1;
    margin: 0;
  }
  :root .ke-featured--hero .ke-featured__heading {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }
  :root .ke-featured--hero .ke-featured__body {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ot-space-s);
  }
  :root .ke-featured--hero .ke-featured__img {
    aspect-ratio: 4/3;
  }
  /* Full width (directly in the page): text column ends at the container edge. */
  :root .entry-content > .ke-featured--hero :is(.ke-featured__heading, .ke-featured__body) {
    padding-right: max(var(--ot-space-l), (100vw - var(--wp--style--global--content-size, 1200px)) / 2);
  }
}
/* Full width on small screens: text off the screen edge, picture edge to edge. */
@media (max-width: 899px) {
  :root .entry-content > .ke-featured :is(.ke-featured__heading, .ke-featured__body) {
    padding-inline: 24px;
  }
  :root .entry-content > .ke-featured .ke-featured__heading {
    margin-bottom: var(--ot-space-s);
  }
}
:root .ke-featured--grid .ke-featured__item {
  padding-bottom: var(--ot-space-m);
  border-bottom: var(--ot-hairline);
}

/* ===========================================================================
   _base.scss: typography, links, buttons, images, focus. Only when the new
   layout is active (site.css is not loaded on Elementor pages).

   ":root :is(…)" where Astra's inline CSS would win otherwise (its rules
   such as ".entry-content :where(h1,…)" come with one class).
   =========================================================================== */
/* ===========================================================================
   _integrations.scss: theme and plugin markup we do not own
   (Astra page head and footer, core gallery, knandi-event list).
   =========================================================================== */
/* --- Page head: the first section starts closer to the header ------------ */
.entry-content > .is-style-ot-section:first-child {
  padding-top: min(var(--ot-space-xl), 4rem);
}

.ast-separate-container .ast-article-single:has(> .entry-content > .is-style-ot-section:first-child) {
  padding-top: 0;
}

/* Astra adds 4em above the (hidden) page title area in this layout. */
.ast-page-builder-template .entry-header:has(+ .entry-content > .is-style-ot-section:first-child) {
  margin-top: 0;
}

/* --- Astra page-builder layout: Astra centres every child of a top-level
   block that is not a group (margin-inline: auto, max-width: content size).
   In the grids of the hero and the featured block that stops the items from
   stretching (photo 0 px wide in 0.3.0). Same selector as Astra's, plus :root. */
:root .ast-page-builder-template .entry-content[data-ast-blocks-layout] > :is(.ot-hero, .ke-featured) > * {
  max-width: none;
  margin-inline: 0;
}

/* --- knandi-event list ([knandi_event_list] / olivier/termine) -----------
   Like a concert programme: date as kicker in a 160 px column (time below),
   right: venue · title in Cormorant, programme, text links. Hairlines in
   between. Needs layout="columns" dateformat="compact" (set for this site in
   inc/integrations.php; eventplugin >= 1.9.0). */
.knandi-events-list {
  border-top: var(--ot-hairline);
}

.knandi-events-list > hr {
  display: none;
}

.knandi-events-list h3.showyear {
  margin: 0;
  padding: var(--ot-space-xl) 0 var(--ot-space-s);
  border: 0;
  border-bottom: var(--ot-hairline);
  font-size: var(--ot-fs-h2);
}

.knandi-events-list h3.showyear:first-child {
  padding-top: var(--ot-space-m);
}

.knandi-events-list .knandi-event {
  padding: var(--ot-space-m) 0;
  border-bottom: var(--ot-hairline);
}

.knandi-events-list .knandi-event > .clear {
  display: none;
}

.knandi-events-list .knandi-event__details {
  position: relative;
  float: none;
  width: auto;
}

/* Date column */
.knandi-events-list .knandi-event__when {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: var(--ot-space-xs);
}

.knandi-events-list .knandi-event__when .knandi-event__date {
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-xs);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ot-muted);
  color: var(--ot-ink);
}

.knandi-events-list .knandi-event__when .knandi-event__time {
  font-size: var(--ot-fs-sm);
  color: var(--ot-muted);
}

/* Venue · title on one line, Cormorant 26 px. */
.knandi-events-list .knandi-event__where,
:root .knandi-events-list .knandi-event__name {
  display: inline;
  margin: 0;
  font-family: var(--ot-font-heading);
  font-size: var(--ke-title-size);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ot-ink);
}

.knandi-events-list .knandi-event__where > span + span::before {
  content: ", ";
}

.knandi-events-list .knandi-event__where::after {
  content: " · ";
}

.knandi-events-list .knandi-event__name a {
  color: inherit;
  text-decoration: none;
}

.knandi-events-list .knandi-event__name a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.knandi-events-list :is(.knandi-event__program, .knandi-event__description) {
  display: block;
  margin: var(--ot-space-2xs) 0 0;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ot-text);
}

/* eventplugin greys ".event-details p:first-of-type" (meant for the classic
   date line); that also hits the first paragraph of the description. */
:root .knandi-events-list .knandi-event__description p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* Text links "Tickets →" / "Mehr Infos →": no blue button, no box. */
.knandi-events-list .knandi-event__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 24px;
  margin-top: var(--ot-space-s);
}

.knandi-events-list :is(.knandi-event__tickets, .knandi-event__moreinfo) {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
}

:root .knandi-events-list .knandi-event__tickets a,
:root .knandi-events-list .knandi-event__moreinfo a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  min-height: 0;
  padding: 0.25em 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(currentColor, currentColor) left bottom/100% 1px no-repeat;
  color: var(--ot-ink);
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-ui);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: none;
}
:root .knandi-events-list .knandi-event__tickets a::after,
:root .knandi-events-list .knandi-event__moreinfo a::after {
  content: "→";
  display: inline-block;
}
:root .knandi-events-list .knandi-event__tickets a:is(:hover, :focus-visible),
:root .knandi-events-list .knandi-event__moreinfo a:is(:hover, :focus-visible) {
  background-color: transparent;
  color: var(--ot-ink-hover);
  animation: ot-underline 0.35s ease-out;
}
:root .knandi-events-list .knandi-event__tickets a:is(:hover, :focus-visible)::after,
:root .knandi-events-list .knandi-event__moreinfo a:is(:hover, :focus-visible)::after {
  transform: translateX(4px);
}
@media (prefers-reduced-motion: no-preference) {
  :root .knandi-events-list .knandi-event__tickets a::after,
  :root .knandi-events-list .knandi-event__moreinfo a::after {
    transition: transform 0.2s ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root .knandi-events-list .knandi-event__tickets a:is(:hover, :focus-visible),
  :root .knandi-events-list .knandi-event__moreinfo a:is(:hover, :focus-visible) {
    animation: none;
  }
}

/* eventplugin: .knandi-button { color: #fff !important } */
:root .knandi-events-list .knandi-event__tickets a.knandi-button {
  color: var(--ot-ink) !important;
}

:root .knandi-events-list .knandi-event__tickets a.knandi-button:is(:hover, :focus-visible) {
  color: var(--ot-ink-hover) !important;
}

.knandi-events-list .knandi-event__ticket-info {
  flex-basis: 100%;
  font-size: var(--ot-fs-sm);
  color: var(--ot-muted);
}

@media (min-width: 782px) {
  .knandi-events-list .knandi-event__details {
    padding-left: 160px;
  }
  .knandi-events-list .knandi-event__when {
    position: absolute;
    top: 0.45rem;
    left: 0;
    width: 140px;
    margin: 0;
  }
}
/* Classic layout (other attributes than ours): at least the colours. */
.knandi-events-list .knandi-event__when-where {
  font-size: var(--ot-fs-sm);
  color: var(--ot-muted);
}

/* --- WPForms (contact form; the newsletter has its own look in
   _block-styles.scss): hairline fields, the primary button. ------------- */
:root div.wpforms-container-full .wpforms-form :is(input[type=text], input[type=email], input[type=tel], input[type=url], textarea, select) {
  border: 1px solid var(--ot-line);
  border-radius: 0;
  background-color: #fff;
  box-shadow: none;
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-base);
  color: var(--ot-text);
}
:root div.wpforms-container-full .wpforms-form :is(input[type=text], input[type=email], input[type=tel], input[type=url], textarea, select):focus {
  border-color: var(--ot-ink);
  outline: 1px solid var(--ot-ink);
  box-shadow: none;
}
:root div.wpforms-container-full .wpforms-form .wpforms-field-label {
  font-weight: 500;
  color: var(--ot-ink);
}
:root div.wpforms-container-full .wpforms-form .wpforms-required-label {
  color: var(--ot-muted);
}
:root div.wpforms-container-full .wpforms-form button[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.75rem;
  border: 1px solid var(--ot-ink);
  border-radius: var(--ot-radius);
  background-color: var(--ot-ink);
  color: var(--ot-paper);
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-ui);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
}
:root div.wpforms-container-full .wpforms-form button[type=submit]:is(:hover, :focus-visible) {
  border-color: var(--ot-ink-hover);
  background-color: var(--ot-ink-hover);
  color: var(--ot-paper);
}

/* --- Gallery: caption below the image, not over it -----------------------
   .entry-content: core prints the gallery CSS late (after site.css). */
.entry-content .wp-block-gallery.has-nested-images {
  gap: 24px;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption) {
  flex-direction: column;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
  content: none;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  position: static;
  flex: none;
  max-height: none;
  margin: var(--ot-space-xs) 0 0;
  padding: 0;
  overflow: visible;
  background: none;
  font-size: var(--ot-fs-sm);
  line-height: 1.5;
  text-align: left;
  text-shadow: none;
  color: var(--ot-muted);
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding-block: 0.4em; /* larger hit area */
  color: var(--ot-ink);
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption a::before {
  content: "↓";
}

/* Single images: captions as meta line too. */
.entry-content .wp-block-image figcaption {
  font-size: var(--ot-fs-sm);
  color: var(--ot-muted);
}

/* --- Footer: paper, hairline on top. Intro (name + Matineen line) from
   inc/integrations.php, then Kontakt · Datenschutz · Impressum. ---------- */
:root .site-footer,
:root .site-footer :is(.site-primary-footer-wrap, .site-below-footer-wrap, .site-above-footer-wrap) {
  border: 0;
  background-color: var(--ot-paper);
  background-image: none;
}

:root .site-footer {
  border-top: var(--ot-hairline);
}

/* Compact rows: intro, menu, copyright close together. */
:root .site-footer .site-primary-footer-wrap {
  padding-block: var(--ot-space-s) 0;
}

:root .site-footer .site-below-footer-wrap {
  padding-block: var(--ot-space-xs) var(--ot-space-l);
}

.ot-footer-intro {
  max-width: var(--wp--style--global--content-size, 1200px);
  margin: 0 auto;
  padding: var(--ot-space-xl) var(--ot-space-m) 0;
  text-align: center;
}

.ot-footer-intro__name {
  margin: 0;
  font-family: var(--ot-font-heading);
  font-size: 1.375rem; /* 22 px */
  font-weight: 500;
  line-height: 1.2;
  color: var(--ot-ink);
}

.ot-footer-intro__line {
  margin: var(--ot-space-2xs) 0 0;
  font-size: var(--ot-fs-base);
  color: var(--ot-text);
}

:root .site-footer #astra-footer-menu {
  display: flex; /* Astra: grid for "vertical on mobile" */
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

:root .site-footer #astra-footer-menu .menu-item > a {
  padding: 0.5rem 0;
  font-family: var(--ot-font-text);
  font-size: var(--ot-fs-sm);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ot-muted);
}

:root .site-footer #astra-footer-menu .menu-item + .menu-item::before {
  content: "·";
  margin-inline: -10px 10px; /* centred in the 20 px gap */
  color: var(--ot-muted);
}

/* Narrow screens: the list may wrap, so no dots (one would start a line). */
@media (max-width: 599px) {
  :root .site-footer #astra-footer-menu .menu-item + .menu-item::before {
    content: none;
  }
}
:root .site-footer #astra-footer-menu .menu-item {
  display: flex;
  flex-direction: row;
  align-items: center;
}

:root .site-footer #astra-footer-menu .menu-item:hover > a,
:root .site-footer #astra-footer-menu .menu-item > a:focus-visible {
  color: var(--ot-ink);
}

:root .site-footer #astra-footer-menu .menu-item.current-menu-item > a {
  color: var(--ot-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

:root .site-footer .ast-footer-copyright {
  font-size: var(--ot-fs-sm);
  color: var(--ot-muted);
}
