/**
 * Theme Name: Emscher-Guide Theme
 * Description: Blocksy child theme
 * Author: Henrike Jähne
 * Template:       blocksy
  *   Version:        1.0
 * Text Domain: blocksy-child
 */

/* outfit-100 - latin */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  
  font-style: normal;
  font-weight: 100;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/outfit-v15-latin/outfit-v15-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
s
/* outfit-200 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 200;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/outfit-v15-latin/outfit-v15-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/outfit-v15-latin/outfit-v15-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/outfit-v15-latin/outfit-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/outfit-v15-latin/outfit-v15-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/outfit-v15-latin/outfit-v15-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/outfit-v15-latin/outfit-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/outfit-v15-latin/outfit-v15-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/outfit-v15-latin/outfit-v15-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-100italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-100italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 200;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-200italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 200;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-200italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 700;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 800;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-800italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 800;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 900;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* fraunces-900italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 900;
  src: url('/wp-content/themes/blocksy-child/assets/fonts/fraunces-v38-latin/fraunces-v38-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



:root {
  /* Schriftfamilien */
  --font-sans: "Outfit";
  --theme-font-family: var(--font-sans) !important;
  --font-serif: "Fraunces", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Basiswerte */
  --color-text: #111;
  --color-muted: #555;
  --line-height-body: 1.6;
  --line-height-heading: 1.25;


--theme-text-transform: none;
--theme-button-padding: 0.75rem 1.5rem !important;

--wp--preset--font-size--small: 14px;
--wp--preset--font-size--medium: 20px;


}

/* Allgemein */
body {
  font-family: var(--font-sans);
  font-size: 1rem; /* 16px */
  line-height: var(--line-height-body);
  color: var(--color-text);


}
/* ================================
   HEADLINE TYPOGRAPHY
   ================================ */

/* H1 – große Headlines / Hero */

h1 {
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.5rem);
  line-height: var(--line-height-heading);
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: var(--alignment);
}

/* Artikel-Hero Anpassung */

[data-prefix="single_blog_post"] .hero-section[data-type="type-1"] h1 {
  margin-inline: auto;
}


/* ================================
   H2
   ================================ */

h2 {
  font-size: clamp(1.8rem, 1.3rem + 1.2vw, 2.4rem);
  line-height: var(--line-height-heading);
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/* kleinere Artikel-H2 */

.single-post h2 {
  font-size: clamp(1.5rem, 1.2rem + 0.6vw, 1.75rem);
}


/* ================================
   H3
   ================================ */

h3,
.wp-block-details > summary,
.tablist-nav [role="tab"] {
  font-size: clamp(1.4rem, 1.1rem + 0.6vw, 1.8rem);
  line-height: var(--line-height-heading);
  font-weight: 600;
  margin-bottom: 0.5rem;
}


/* ================================
   H4–H6
   ================================ */

h4 {
  font-size: clamp(1.2rem, 1rem + 0.4vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h5 {
  font-size: clamp(1.1rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}


/* ================================
   HEADLINE WRAPPING
   ================================ */

/* große Headlines */

:where(h1,h2,h3){

  /* moderne Zeilenverteilung */
  text-wrap: balance;

  /* keine Silbentrennung bei Headlines */
  hyphens: none;
  -webkit-hyphens: none;

  /* verhindert Layoutbruch bei langen Wörtern */
  overflow-wrap: anywhere;

  line-height: var(--line-height-heading);
}


h3{
  text-wrap: balance;

  hyphens: auto;
  -webkit-hyphens: none;

  overflow-wrap: normal;

  line-height: var(--line-height-heading);
}

/* kleinere Headlines */

:where(h4,h5,h6){

  /* schöner Ragged Edge */
  text-wrap: pretty;

  hyphens: none;

  overflow-wrap: break-word;
}

/* Absätze */

p {

  margin-bottom:1rem;
  color:var(--color-text);

  text-wrap: pretty;

}



/* Varianten */
.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.5rem); /* 18–24px */
  line-height: 1.5;
  color: var(--color-muted);
}
.small {
  font-size: 0.875rem; /* 14px */
  color: var(--color-muted);
}
.caption {
  font-size: 0.75rem; /* 12px */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

/* Zitate */
blockquote p {
  font-family: var(--font-serif);
 font-size: clamp(1.25rem, 2vw, 2rem);
 
  padding-left: 1rem;
  border: none;

  
}



/*Primärbutton*/

/* Nur auf Buttons anwenden */
.wp-block-button__link.wp-element-button, .ct-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* Abstand Text–Icon */
  text-transform: inherit;
}

.btn-secondary .wp-block-button__link.wp-element-button {
background-color: transparent;
color: var(--theme-palette-color-2);
border: 2px solid var(--theme-palette-color-2);
}

/* Icon automatisch anhängen */
.wp-block-button__link.wp-element-button::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  background-color: currentColor; /* Icon nimmt Textfarbe an */

 

  /* Lucide Arrow-Right SVG als Maske */
  -webkit-mask: url('/wp-content/themes/blocksy-child/assets/icons/arrow-right.svg') no-repeat center;
  -webkit-mask-size: contain;
  mask: url('/wp-content/themes/blocksy-child/assets/icons/arrow-right.svg') no-repeat center;
  mask-size: contain;
}



/*Hauptmenü*/
[data-menu] > ul > li[class*="current-menu-"] > a[href*="#"]::before,
[data-menu] > ul > li[class*="current-menu-"] > a[href*="#"]::after {
  background-color: transparent !important;
}

nav[class*="menu"] li[class*="current-menu-"] > .ct-menu-link[href*="#"] {
  color: inherit !important;
}



/*Block Letzte Beiträge*/

  .wp-block-latest-posts.wp-block-latest-posts__list li {
   margin: 0;
  }


.wp-block-latest-posts.is-grid  {
display: flex;
  flex-wrap: wrap;
  gap: 1.25em;
}

.single .entry-content *   {
   /* max-width: 65ch;*/  

  
  /* 16px – 22px je nach Viewport */}








.post .entry-header .page-description p {
font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  line-height: 1.6;
  }





figure.wp-block-pullquote {
    margin: 0;
    padding: 0;
    background: transparent;
    max-width: 800px;
    text-align: center;
    font-style: normal;
    color: #111;
    font-family: 'Georgia', serif;
    border: none;
}

figure.wp-block-pullquote blockquote {
    margin: 0;
    padding: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    position: relative;

    border: none;
   

}

figure.wp-block-pullquote blockquote::before,
figure.wp-block-pullquote blockquote::after {
   

    font-size: 5rem;
  
    position: absolute;
    opacity: 0.2;
    pointer-events: none;
}

figure.wp-block-pullquote blockquote::before {
    content: none;
    top: -1.5rem;
    left: 1.5rem;
}

figure.wp-block-pullquote blockquote::after {

}

figure.wp-block-pullquote blockquote p {
    margin: 0;
    padding: 0;
  
}

figure.wp-block-pullquote cite {
    display: block;
     font-family: var(--font-sans);
    margin-top: 2rem;
    font-size: 0.875rem;

    letter-spacing: 0.05em;
  
}

/*WP-Block-Details (Accordion)*/
/* Basis-Style für Details */
/* Native Marker ausblenden */
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::marker { content: ""; }

/* Basis: Platz fürs Icon rechts */
.wp-block-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.25rem !important;
}

h3 ~ .wp-block-details > summary,
h3 ~ * .wp-block-details > summary {
  font-size: 1.25rem !important;
} 

/* Icon-Größe/Abstand anpassen wie gewünscht */
.wp-block-details > summary::after {
  content: "";
  inline-size: 1.1rem;
  block-size: 1.1rem;
  margin-inline-start: .75rem;
  flex: 0 0 1.1rem;
  background-color: currentColor;            /* Icon-Farbe = Textfarbe */
  transition: transform .25s ease, opacity .25s ease, background-color .25s ease;
  opacity: .85;
}

/* ── Moderne Browser: Lucide als CSS-Masken ───────────────────────── */
@supports (mask: url('data:image/svg+xml;utf8,<svg/>')) or (-webkit-mask: url('data:image/svg+xml;utf8,<svg/>')) {

  /* geschlossen: arrow-down.svg */
  .wp-block-details > summary::after {
    -webkit-mask: url('/wp-content/themes/blocksy-child/assets/icons/arrow-down.svg') no-repeat center;
            mask: url('/wp-content/themes/blocksy-child/assets/icons/arrow-down.svg') no-repeat center;
    -webkit-mask-size: contain;
            mask-size: contain;
  }

  /* geöffnet: arrow-top.svg */
  .wp-block-details[open] > summary::after {
    -webkit-mask: url('/wp-content/themes/blocksy-child/assets/icons/arrow-up.svg') no-repeat center;
            mask: url('/wp-content/themes/blocksy-child/assets/icons/arrow-up.svg') no-repeat center;
    -webkit-mask-size: contain;
            mask-size: contain;
    opacity: 1;
  }
}

/* ── Fallback für ältere Browser ohne mask(): Unicode-Pfeile ──────── */
@supports not (mask: url('data:image/svg+xml;utf8,<svg/>')) and not (-webkit-mask: url('data:image/svg+xml;utf8,<svg/>')) {
  .wp-block-details > summary::after {
    content: "▾";            /* down arrow */
    background: none;
    inline-size: auto;
    block-size: auto;
    font-size: 1.1rem;
  }
  .wp-block-details[open] > summary::after {
    content: "▴";            /* up arrow */
  }
}

/* Optional: Hover/Focus-Feeling */
.wp-block-details > summary:hover::after { opacity: 1; }
.wp-block-details > summary:focus-visible {
  outline: 3px solid color-mix(in oklab, #3b82f6 40%, transparent);
  outline-offset: 2px;
  border-radius: .5rem;
}






/*Terminliste*/
/* Container */
.terminliste-item {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e5;
}

@media (min-width: 481px) {

.terminliste-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  align-items: start;
}}

.terminliste-col-date {
  font-size: 1.125rem;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

.terminliste-col-content {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.terminliste-time {
  font-size: .9rem;
  color: #555;
}

.terminliste-title, .wp-block-latest-posts__post-title {
  margin: 0;
  font-size: 1.1rem;
}

.terminliste-title a, .wp-block-latest-posts__post-title a {
  color: inherit;
  text-decoration: none;
}

.terminliste-title a:hover, .wp-block-latest-posts__post-title a:hover {
  text-decoration: underline;
}

.terminliste-city,
.terminliste-cats {
  font-size: .85rem;
  color: #666;
}



/*Block Terminarchiv*/
.termin-active-filters { margin-bottom: .75rem; display:none; }
.filter-pill {
  display:inline-flex; align-items:center; gap:.35em;
  background: var(--ct-background-secondary, #eef1f4);
  border-radius: 9999px; padding:.35em .75em; margin:.2em;
  border: 1px solid rgba(0,0,0,.06);
  cursor: pointer; font-size:.9em;
}
.filter-pill:hover { background: var(--ct-background-tertiary, #e3e8ee); }


.date-range {display: flex;}

.termin-filter-modern select {
height:auto;
  }

.termin-archive-wrapper.is-loading { opacity:.6; pointer-events:none; }



.badge {
  display:inline-block;
  padding:.15rem .45rem;
  border-radius:.5rem;
  font-size:.8rem;
  font-weight:700;
}



.badge-canceled, .badge-sold-out {
  background: #fdd;
  color: #a00;
}

.badge-postponed {
  background: #1565c0; 
  color: #fff;
}



.badge-past {
  background: #eee;
  color: #555;
}


/* Badges */
.badge {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: .5rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: .5rem;
}

.badge-canceled {
  background: #fee2e2;
  color: #b91c1c;
}
.badge-past {
  background: #e5e7eb;
  color: #374151;
}

/* Zustände */
.terminliste-item.is-past {
  opacity: 0.7;
}
.terminliste-item.is-canceled {
  opacity: 0.6;

}





.linkcards {
  position: relative;             /* wichtig, falls du das Icon absolut platzieren willst */
  display: flex;                  /* flex, damit Text und ::after schön nebeneinander stehen */
  align-items: center;
  justify-content: space-between; /* Inhalt links, Icon rechts */

}

/*.linkcards::after {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  background-color: red; 
  -webkit-mask: url('/wp-content/themes/blocksy-child/assets/icons/move-right.svg') no-repeat center;
  -webkit-mask-size: contain;
  mask: url('/wp-content/themes/blocksy-child/assets/icons/move-right.svg') no-repeat center;
  mask-size: contain;
}*/




.home #main > div {
padding-top: 0;
  }
/* allgemeine Abstände Sektionen */
.home section,
.page main section,
main .entry-content section,
.front-page section {
  padding-block: 2.5rem; /* Mobile */
  margin: 0;
}

@media (min-width: 768px) {
  .home section,
  .page main section,
   main .entry-content section,
  .front-page section {
    padding-block: 4rem; /* Tablet */
  }
}

@media (min-width: 1024px) {
  .home section,
  .page main section,
  main .entry-content section,
  .front-page section {
    padding-block: 6rem; /* Desktop */
  }
}

/* erstes Kind ohne padding-top */
main .entry-content section:first-child {
 padding-top:0;
}

/* letztes Kind ohne padding-bottom */
main .entry-content section:last-child {
 padding-bottom:0;
}



/*--------------------------
Buttons
--------*/

/*--------------------------
Buttons
--------*/
.wp-block-button__link.wp-element-button, .ct-button {
  --btn-color: var(--wp--preset--color--palette-color-1);
  --btn-text: #fff;

  display: inline-flex;
  align-items: center;
  gap: 0.75rem;


  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;

  color: var(--btn-text);
  border: none;
  border-radius: 100px;
  padding: 0.75rem 1.5rem;
  text-decoration: none;

  position: relative;
  overflow: hidden;
  transition: color .3s ease, border-color .3s ease;
}

/* Icon global per ::after */
.wp-block-button__link.wp-element-button::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;

  background-color: currentColor; /* übernimmt Textfarbe */

  -webkit-mask: url("/wp-content/themes/blocksy-child/assets/icons/arrow-right.svg")
    no-repeat center;
  -webkit-mask-size: contain;
  mask: url("/wp-content/themes/blocksy-child/assets/icons/arrow-right.svg")
    no-repeat center;
  mask-size: contain;

  transition: transform .3s ease;
}

/* Animation bei Hover */
.wp-block-button__link.wp-element-button:hover::after, .ct-button:hover::after {
  transform: translateX(6px);
}












/* Optional: Einige Bilder "größer" wirken lassen */
.wp-block-gallery .wp-block-image:nth-child(3n) {
  grid-row: span 2;
}
.wp-block-gallery .wp-block-image:nth-child(5n) {
  grid-column: span 2;
}


/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  animation: fadeIn .3s ease;
}
.lightbox.active { display: flex; }

.lightbox img {
  max-width: 85%;
  max-height: 85%;

  box-shadow: 0 4px 40px rgba(0,0,0,.5);
}

/* Navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background .3s;
}
.lightbox-nav:hover { background: rgba(0,0,0,0.7); }
.lightbox-nav.prev { left: 2rem; }
.lightbox-nav.next { right: 2rem; }

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-caption {
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  max-width: 80%;
  text-align: center;
  opacity: 0.85;
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


.gallery-slider {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  overflow: hidden;
}
.gallery-slider.active {
  display: flex;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.slider-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-slide figure {
  margin: 0;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}
.slider-slide img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  transition: transform .3s ease;
}
.slider-slide figcaption {
  margin-top: 1rem;
  font-size: 1rem;
  color: #eee;
  font-family: system-ui, sans-serif;
}

.slider-close,
.slider-nav {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.slider-close {
  top: 1rem;
  right: 1rem;
}
.slider-nav.prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.slider-nav.next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.slider-nav:hover,
.slider-close:hover {
  color: #0ea5e9;
}





/*Neuigkeiten Blog, Latest Posts*/


  .wp-block-latest-posts__featured-image  {
  aspect-ratio: 3 / 2;
  overflow: hidden;
 
  display: block;
  margin-bottom: 1rem;
  position: relative;
}



.wp-block-latest-posts__featured-image a {
  display: inline;
}

  .wp-block-latest-posts__featured-image img {
  aspect-ratio: 3 / 2;
}



.wp-block-latest-posts__list li {
  position: relative;
}

.latest-posts-overline {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--theme-palette-color-1);
  color: #fff;
  font-size: .75rem;
  padding: .25rem .5rem;
  border-radius: 3px;
  line-height: 1.2;
}

.wp-block-latest-posts__featured-image img {
width: 100%;
  height: 100%;
  object-fit: cover;        /* Bild füllt Container ohne Verzerrung */
  object-position: center;  /* zentriert horizontal + vertikal */
  display: block;
}



/*Post-Single*/
.post figure.ct-featured-image {

display: block;
  max-width: var(--theme-block-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0;
  margin-bottom: 50px;
  }

@media (min-width: 1000px) {
  .ct-featured-image {
   padding-bottom: 0;
  margin-bottom: 50px;
  }
}

@media (max-width: 999.98px) {
  .ct-featured-image {
 padding-bottom: 0;
  margin-bottom: 30px;
    }}

 .blog figure .wp-image-credit {
  
margin-bottom: calc(var(--card-inner-spacing, 30px)*-1);
    margin-right: calc(var(--card-inner-spacing, 30px)*1);
  }  
/*------------------
Block-Slider
-------------------*/
/* Wrapper */
.slider {
  position: relative;
}

/* Track nur mit JS aktiv */
.slider.js-enabled > .wp-block-group {
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

/* Slides */
.slider.js-enabled > .wp-block-group > .wp-block-columns {
  flex: 0 0 100%;
  scroll-snap-align: start;
  transition: transform .3s ease;
}

/* Buttons */
.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.slider-button:hover,
.slider-button:focus {
  background: rgba(0,0,0,0.8);
}
.slider-button.prev { left: 1rem; }
.slider-button.next { right: 1rem; }
.slider-button img {
  width: 1.5rem;
  height: 1.5rem;
}

/* Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: .5rem;
}
.slider-dots button {
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
}
.slider-dots button.active,
.slider-dots button:focus {
  background: #333;
  outline: 2px solid #000;
}

/* Counter */
.slider-counter {
  text-align: center;
  margin-top: .5rem;
  font-size: .875rem;
  color: #555;
}

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

/* optional: wieder sichtbar machen, z.B. beim Fokus */
.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}




/*------------------------------
Block Gruppe Facts
-------------------------------*/



.facts {
  padding: clamp(3rem, 6vw, 6rem) 1.5rem;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  color: #111;
}

.facts h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  position: relative;
}
/*
.facts h2::after {
  content: "";
  display: block;
  width: 4rem;
  height: 2px;
  background: #0077ff;
  margin: 1rem auto 0;
}*/

/* --- Fact Item --- */
.facts .fact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease;
  cursor: default;
}

/* Hover-Effekt */
.facts .fact-item:hover {
  transform: translateY(-4px);
}

/* Zahl */
.facts .fact-number strong {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color:var(--theme-palette-color-1);
  /*background: linear-gradient(90deg, #0077ff, #00c16a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;*/
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Label */
.facts .fact-label {
  min-height: 3rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.3;
  max-width: 14ch;
  margin-inline: auto;
  color: #555;
}


/* --- Scroll-Animation --- */
.facts .fact-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.facts .fact-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --- Screenreader-Optimierung --- */
.facts .fact-number strong {
  aria-hidden: true; /* Zahl wird animiert, Screenreader liest data-target */
}

.facts .fact-number strong::after {
  content: attr(data-target);
  position: absolute;
  left: -9999px; /* nur für Screenreader sichtbar */
}

/* --- Editor-Ausnahme (Backend) --- */
body.wp-admin .facts .fact-item {
  opacity: 1 !important;
  transform: none !important;
}









/*-----------------
Block Gruppe .tablist
---------------------------*/



/* Wrapper */
.tablist {

}
.tablist [role="tabpanel"][aria-hidden="true"] {
  display: none !important;
}

/* Tab-Leiste */
/* --- Tablist Navigation --- */
.tablist-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.tablist-nav [role="tab"] {
  flex: 1 1 auto;
  min-width: 180px;
  padding: 1rem 1.25rem;


  background: #fff;
  color: #222;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;

}

.tablist-nav [role="tab"]:hover {
  
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.tablist-nav [role="tab"].is-active,
.tablist-nav [role="tab"][aria-selected="true"] {
  border-color: #0077ff;
  background: linear-gradient(135deg, #0077ff 0%, #00c16a 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.tablist-nav [role="tab"]:focus {
  outline: none;
  border-color: #005fcc;
  box-shadow: 0 0 0 3px rgba(0,119,255,0.3);
}


/* Panels (Wechsel-Animation & Robustheit gegen Blocksy-Flex) */
.tablist [role="tabpanel"] {
  animation: tabFade .25s ease;
}
@keyframes tabFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Optional: etwas Abstand im Panel-Inhalt */
.tablist [role="tabpanel"] .wp-block-group,
.tablist [role="tabpanel"] .wp-block-columns {
  gap: clamp(1rem, 2vw, 1.5rem);
}





/*------------------
Fakten-Slider  Block Gruppe .fact-slider
------------------*/


.fact-slider {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
}

/* ===== Animations-Layer ===== */

.fact-slider-inner {
  opacity: 1;
  transform: translateY(0);

  transition:
    opacity .28s ease,
    transform .32s cubic-bezier(.22,.61,.36,1);

  will-change: opacity, transform;
}

/* Fade-Out / Move-Out */
.fact-slider.is-transitioning .fact-slider-inner {
  opacity: 0;
  transform: translateY(8px);
}

/* Motion reduzieren */
@media (prefers-reduced-motion: reduce) {
  .fact-slider-inner {
    transition: none;
  }
}

/* ===== Layout ===== */

.fact-slider h3,
.fact-slider p {
  margin: 0 0 1rem 0;
}

.fact-slider .wp-block-buttons {
  margin-top: auto;
}
/*
.fact-slider .slide-item {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
    min-height: 15rem;
}

.fact-slider .slide-item:first-child {
  display: block;   Fallback für Editor / ohne JS 
  opacity: 1;
}

.fact-slider.js-enabled .slide-item {
  display: none;
  margin-block-end: var(--theme-content-spacing);
}

.fact-slider.js-enabled .slide-item.is-active {
  display: block;
  opacity: 1;
}

--- Navigation --- 
.fact-slider-nav {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  margin-top: 1.5rem;
}

.fact-slider-controls {
  display: flex;
  gap: 0.5rem;
}

.fact-slider-controls  button {

   color: var(--color-text);
  border: none;
  padding: 0.6rem 1rem;

  cursor: pointer;
  font-size: 1.2rem;
  background-color: transparent;

}

.fact-slider-controls  button:disabled {

  cursor: not-allowed;
  opacity:0.2;
}

.fact-slider-controls  button:not(:disabled) {

}

.fact-slider-counter {
  font-weight: 600;
  font-size: 0.95rem;
  color: #111;
}
*/

/*-------------------- Feature Pills --*/

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
  padding:0;
}

ul.feature-pills li {
  background-color: #eaf6f0; /* sanftes Grün-Grau */
  color: #1e4636; /* dunkles Emscher-Grün */
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease-in-out;
  align-items: flex-start;
  cursor: default;
}

ul.feature-pills li:hover {
  background-color: #d8efe3;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  ul.feature-pills {
    flex-direction: column;
    gap: 0.4rem;
  }
  .feature-pills li {
    width: fit-content;
  }
}




/*-------------------- Barrierefreiheit --

Back to top Button*/

.ct-back-to-top .ct-icon .ct-icon {
  display: none !important; /* Standard-Icon ausblenden */
}




.wp-image-wrap {
  position: relative;
  display: block;
  max-width: 100%;
  line-height: 0;
  vertical-align: top;
}

.wp-image-wrap img {
  display: block;
}

.ct-media-container img, .ct-media-container picture {
  width: 100%;}

.wp-image-credit {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;

  display: inline-block;
  max-width: calc(100% - 1rem);

  padding: 0.2rem 0.45rem;
  border-radius: 3px;

  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.2;
  font-family: system-ui, sans-serif;
}

.entry-content figcaption,
.wp-image-caption {
  text-align: left;
}




.wp-block-post-featured-image > a {
  display: block;
}

.wp-block-post-featured-image .wp-image-wrap {
  height: 100%;
}

.wp-block-post-featured-image .wp-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*Sektion Wissen*/
#wissen svg.icon {
  width: 75px !important;
  height: auto !important;
}


/*Forminator Custom Styles*/

/*
 .forminator-title {color: var(--theme-selection-background-color);}

 .forminator-ui .forminator-pagination-steps .forminator-step, .forminator-step-label, .forminator-break, .forminator-step-dot, 
 .forminator-ui .forminator-pagination-steps .forminator-step .forminator-step-dot, .forminator-break {  
  color: var(--theme-selection-background-color) !important;
  background-color: var(--theme-selection-background-color) !important;
}
.forminator-step-dot {
  background-color: var(--theme-selection-background-color);
}

.forminator-break, .forminator-ui.forminator-design--default .forminator-pagination-steps .forminator-break::before { 
  color: var(--theme-selection-background-color) !important;
  background-color: var(--theme-selection-background-color) !important;
  } */

/* Override: Inputs wieder klickbar machen */
@media (hover: none) and (pointer: coarse) {
  .forminator-ui.forminator-custom-form[data-design="default"] .forminator-radio input,
  .forminator-ui.forminator-custom-form[data-design="default"] .forminator-checkbox input {
    width: 100% !important;
    height: 100% !important;
    clip: auto !important;
    clip-path: none !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: pointer;
  }
}

.forminator-select.forminator-select-dropdown-container--open .forminator-select-dropdown.forminator-dropdown--default {
  background-color: #FFF;
  }








.hero {
  display: grid;
  grid-template-columns: minmax(auto, 720px) 1fr; /* links Content-Breite, rechts flexibel */
  align-items: center;
  min-height: 80vh; /* optisch Hero-Höhe */
}

.hero-text {
  padding-left: var(--content-padding, 2rem); /* bündig zum normalen Inhalt */
  max-width: 720px;
  z-index: 2;
}

.hero-image {
  position: relative;
}

.hero-image img,
.hero-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive: unter 768px 1-spaltig */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1; /* Bild oben, Text unten */
  }
}


.testimonial .wp-image-credit {
display:none;
  }




.wp-block-pullquote {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wp-block-pullquote blockquote {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wp-block-pullquote cite {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pullquote-author-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%; /* Rund, wie Avatar */
}


#main p a[href^="http"]:not([href*="rainer-oligmueller"]):not(:has(img)):not(.wp-block-list.links a *)::after,
#main li a[href^="http"]:not([href*="rainer-oligmueller"]):not(:has(img)):not(.wp-block-list.links a *)::after {

  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.25em;

  vertical-align: -0.1em;

  background-color: currentColor;

  -webkit-mask-image: url("/wp-content/themes/blocksy-child/assets/icons/external-link.svg");
  mask-image: url("/wp-content/themes/blocksy-child/assets/icons/external-link.svg");

  -webkit-mask-size: contain;
  mask-size: contain;

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;
}





/* -------------------------------------------
   LINKLISTE – Modernes UI-Design (2025 Standard)
   Ziel: elegante Presse- / News- / Linkübersichten
------------------------------------------- */

.wp-block-list.links {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.wp-block-list.links li {
    margin-bottom: 1.6rem;      /* mehr Weißraum für Lesbarkeit */
    line-height: 1.45;          /* harmonischer Textfluss */
}


/* -------------------------------------------
   Hauptlink (Titel)
------------------------------------------- */

.wp-block-list.links li a {
    color: #006c37;             /* dein Grünton? ggf. anpassen */
    text-decoration: none;
    font-weight: 600;
}

.wp-block-list.links li a:hover,
.wp-block-list.links li a:focus {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

wp-block-list


/* -------------------------------------------
   Meta-Informationen (Datum, Art des Beitrags)
------------------------------------------- */

.wp-block-list.links .has-small-font-size,
.wp-block-list.links .meta {
    color: #666;
    display: inline-block;
    margin-top: 0.3rem;
}


/* -------------------------------------------
   Externes-Link-Icon automatisch anhängen
   – keine Icons bei internen Links
   – keine Icons bei Bildlinks
------------------------------------------- */

.wp-block-list.links a[href^="http"]
    :not([href*="deine-domain.de"])
    :not(:has(img))::after {

    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.25em;

    /* leichte vertikale Korrektur für perfekte optische Mitte */
    vertical-align: 0.05em;

    /* Icon-Farbe = Linkfarbe */
    background-color: currentColor;

    /* SVG als Mask-Image (Lucide External Link Icon) */
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M15 3h6v6'/><path d='M10 14 21 3'/><path d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/></svg>");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.icon-link  a {display:flex;   gap:4px;}
.icon-link a > svg.lucide {
margin-top: 0.2em;
  height: 1em;

  }







/*====================================
Termin-Single Metadatenblock
======================================*/

/* --------------------------------------------------------------
   TERMIN META HEADER
   clean · modern · government style
-------------------------------------------------------------- */

.single .termin-meta {
    
    padding: 1.75rem 2rem;
    border: 1px solid #e5e7eb;
   
    background: #fcfcfd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    margin-bottom: 50px;
}

/* Headline is invisible to screen users → keep spacing clean */
.single .termin-meta .screen-reader-text {
    margin: 0;
}






.single .termin-meta .wp-block-buttons {
  display:flex;
  gap:12px;
  flex-direction: column;
    width:100%;
    }


/* Mobile (Default) */
.single .termin-meta > div {
    display: grid;
    grid-template-columns: 1fr;
  gap: 32px;
  flex-wrap:wrap;
}


.single .termin-meta-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
           display: grid;
    
    row-gap: 0.6rem;
    column-gap: 2rem;
    margin: 0;
    }

.single .termin-meta .wp-block-button__link {
  text-align: left;
  width:100%;
  cursor: pointer;
  justify-content: space-between;
  }


@media (min-width: 790px) {
.single .termin-meta > div {
  grid-template-columns: 10fr 2fr;
  }
.single .termin-meta-list {
 
}


}
/* Tablet */
@media (min-width: 1000px) {
  .termin-meta > div {
  grid-template-columns: 3fr 1fr;
}}





/* Titles left (dt) */
.termin-meta-list dt {
    font-size: .95rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
}

/* SVG icons tint + scale */
.termin-meta-list dt svg {
    width: 20px;
    height: 20px;
    stroke: #4b5563;
}

/* Content right (dd) */
.termin-meta-list dd {
    margin: 0;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.55;
}

/* Date & time highlight */
.termin-meta-list dd time {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}




/* ICS button */
.termin-meta .btn-ics {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
 
    padding: 0 .45rem ;

    border-radius: .5rem;
    font-size: .9rem;
    font-weight: 600;
    color: currentColor;
    text-decoration: none;
    transition: background .15s, transform .1s;
}

.termin-meta .btn-ics:hover {
    
    transform: translateY(-1px);
}

.termin-meta .btn-ics svg {
    stroke: currentColor;
    width: 18px;
    height: 18px;
}

/* Category, City, Organizer chips */
.termin-meta-chip {
    display: inline-block;
    padding: .3rem .55rem;
    border-radius: .5rem;
    font-size: .85rem;
    background: #f3f4f6;
    color: #374151;
    margin-right: .35rem;
    margin-top: .35rem;
}

/* Cost (Price Badge) */
.termin-meta dd[itemprop="offers"] span[itemprop="price"] {
    display: inline-block;
    padding: .3rem .55rem;
    border-radius: .5rem;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 600;
    font-size: .9rem;
}

/* Location styling */
.termin-meta [itemprop="location"] [itemprop="name"],
.termin-meta [itemprop="address"] span {
  
    font-size: 1rem;
}

/* Subtle dashed separator between sections */
.termin-meta-list dt:not(:first-of-type) {
   /* margin-top: .4rem;*/
}


/*Blogbeiträge Single Post */
.single-post .post-thumbnail {
    display: block;
    max-width: var(--theme-block-max-width);
    margin-left: auto;
    margin-right: auto;

}

.single-post .post-thumbnail  img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/*------------------- 
===========================================

Terminmanger Listen Plugin

===========================================


--------------*/


/* Modern Filter UI */
.termin-filter-modern {
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  align-items:flex-end;
  margin-bottom:1.2rem;
  gap: 2rem;
}
.termin-filter-modern .filter-group {
  display:flex;
  flex-direction:column;
  min-width:180px;
  width:100%;
  gap: 0.875rem;
}
.termin-filter-modern label {
  font-size:.875rem;
  font-weight:600;
  margin-bottom:0;
}
.termin-filter-modern select,
.termin-filter-modern input[type="date"] {
  padding:.5rem .75rem;
  border:1px solid #d0d7e2;
  border-radius:.6rem;
  font-size:.875rem;
  min-width:180px;
  background:#fff;
}
.termin-filter-modern select:focus,
.termin-filter-modern input[type="date"]:focus {
  outline:none;
  border-color:#3b82f6;
  box-shadow:0 0 0 1px rgba(59,130,246,.4);
}


/* Wrapper */
.filter-advanced {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
}

/* sanfte Animation */
.filter-advanced[hidden] {
  /*display: none;*/
}


.filter-toggle {
  background:#f3f4f6;
  border:1px solid #d1d5db;
  border-radius:.6rem;
  padding:.55rem .9rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:.5rem;
  font-size:.9rem;
}
.filter-toggle:hover {
  background:#e5e7eb;
}
.filter-actions .btn-reset {
  background:none;
  border:none;
  color:#dc2626;
  font-weight:600;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:.25rem;
  font-size:.9rem;
}
.filter-actions .btn-reset:hover {
  text-decoration:underline;
}
.filter-advanced {
  width:100%;
  padding:.5rem 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
}
.date-range {
  display:flex;
  align-items:center;
  gap:.3rem;
}

/* Chips */
.active-filters-chips {
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin:.8rem 0 1rem;
}
.chip {
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.35rem .7rem;
  background:#f3f4f6;
  border-radius:999px;
  font-size:.85rem;
  text-decoration:none;
  color:#111827;
  transition:background .15s, transform .1s;
}
.chip:hover {
  background:#e5e7eb;
  transform:translateY(-1px);
}
.chip-x {
  font-weight:700;
  font-size:1rem;
  line-height:1;
}
.chip-reset {
  background:#fee2e2;
  color:#b91c1c;
  font-weight:600;
}
.chip-reset:hover {
  background:#fecaca;
}

/* Kartenlayout */
.termin-archive-list {
  display:grid;
  gap:1rem;
}
@media (min-width: 720px){
  .termin-archive-list {
    grid-template-columns: repeat(1, minmax(0,1fr));
  }
}
.termin-card {
  border:1px solid #e5e7eb;
  border-radius:.9rem;
  background:#fff;
  overflow:hidden;
  transition:box-shadow .15s, transform .1s, border-color .15s;
}
.termin-card-link {
  display:block;
  padding:1rem 1.1rem;
  text-decoration:none;
  color:inherit;
}
.termin-card:hover {
  box-shadow:0 10px 25px rgba(15,23,42,.08);
  transform:translateY(-1px);
  border-color:#d1d5db;
}
.termin-card-grid {
  display:grid;
  grid-template-columns: 180px 1fr;
  gap:.75rem 1rem;
  align-items:start;
}
@media (max-width: 640px){
  .termin-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Datum & Zeit – getrennte Spans */
.termin-card-datetime {
  display:flex;
  flex-direction:column;
  gap:.35rem;
  color:#111827;
  text-align: center;
}
.termin-card-date {
  font-weight:700;
  font-size:1rem;
  display: flex;
  flex-direction: column;
  
}
.termin-card-date .date-d,
.termin-card-date .date-m,
.termin-card-date .date-y {
  font-variant-numeric: tabular-nums;
}



.termin-card-date .date-d-m{
  font-size: 1.5rem;
  
}
.termin-card-time {
  color:#4b5563;
  font-size:.95rem;
}
.termin-card-time .time-h,
.termin-card-time .time-i {
  font-variant-numeric: tabular-nums;
}
.time-suffix {
  opacity:.9;
}

/* Content */

.termin-card-content {
  display: flex;
}

.termin-card-content > *:first-child{
margin-top:0;
}
.termin-card-content {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

/* Bild: 1/3 */
.termin-card-content .beitragsbild {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

/* Text: 2/3 */
.termin-card-content .termin-card-text {
  flex: 1 1 66.666%;
}


.termin-card-title {
  margin:.1rem 0 .25rem;
  font-size:1.1rem;
  line-height:1.25;
}
.termin-card-city,
.termin-card-cat {
  color:#6b7280;
  font-size:.95rem;
}

/* Badges */
.termin-card-badges {
  margin-top:.45rem;
  display:flex;
  gap:.4rem;
  flex-wrap:wrap;
}

.badge-canceled {
  background:#fee2e2;
  color:#991b1b;
}
.badge-past {
  background:#e5e7eb;
  color:#374151;
}

/* Pagination */
.termin-pagination {
  margin-top:1.2rem;
  font-size:.95rem;
}
.termin-pagination .page-numbers {
  display:inline-block;
  margin-right:.25rem;
  padding:.3rem .55rem;
  border-radius:.4rem;
  text-decoration:none;
  border:1px solid transparent;
}
.termin-pagination .page-numbers.current {
  background:#111827;
  color:#fff;
}
.termin-pagination .page-numbers:hover:not(.current) {
  border-color:#d1d5db;
}




/*Termin WP-Backend Metadaten-Styling*/
.termin-time-hidden {
    display: none;
}


.beitragsbild,
.termin-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
}

.beitragsbild img,
.termin-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* Styling der Angebotskacheln*/

/*Termin-Single Beitragsbild*/
.termin-featured-image  {
position: relative;

  }





.termin-featured-image img {
width:100%;

  }

 .angebote .wp-block-post-title {
  word-break: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.3;
  min-height: calc(2 * 1.3em);
}


footer * {
  color: #fff !important;
  }

footer h3 {
font-size: 1rem !important;
  }

/* ======================================================
TERMINARCHIV
====================================================== */

.page main section.termin-archive-list{
padding-block:1rem;
}


/* ======================================================
LAYOUT
====================================================== */

.termin-layout{
display:grid;
grid-template-columns:280px 1fr;
gap:40px;
align-items:start;
}

.termin-results{
min-width:0;
}


/* ======================================================
FILTER SIDEBAR
====================================================== */

.termin-filter-modern{
display:flex;
flex-direction:row;
}


/* ======================================================
FILTER GROUP
====================================================== */

.filter-group{
margin-bottom:1.2rem;
}

.filter-group label{
font-weight:600;
display:flex;
justify-content:space-between;
}


/* ======================================================
FILTER OPTIONS
====================================================== */

.filter-options{
display:flex;
flex-direction:column;
gap:.4rem;
}

.filter-option{
display:flex;
align-items:center;
gap:.5rem;
font-size:.95rem;
cursor:pointer;
}

.filter-option input{
width:16px;
height:16px;
}

.filter-label{
flex:1;
font-weight:500;
}

.filter-count{
color:#777;
font-size:.85rem;
}


/* ======================================================
DISABLED OPTIONS
====================================================== */

.filter-option input:disabled + .filter-label{
opacity:.45;
}

.filter-option input:disabled + .filter-label + .filter-count{
opacity:.45;
}

.filter-option input:disabled{
cursor:not-allowed;
}


/* ======================================================
ACCORDION BUTTON
====================================================== */

.filter-accordion-toggle{
display:flex;
align-items:center;
justify-content:space-between;
width:100%;
background:none;
border:none;
font-weight:600;
font-size:.875rem;
padding:0;
cursor:default;
text-align:left;
}


/* ======================================================
ACCORDION ARROW
====================================================== */

.filter-arrow{
display:none;
}

.filter-arrow::before{
content:"▾";
display:inline-block;
transition:transform .2s ease;
}

.filter-accordion-toggle[aria-expanded="true"] .filter-arrow::before{
transform:rotate(180deg);
}


/* ======================================================
MOBILE
====================================================== */

@media (max-width:900px){

.termin-layout{
grid-template-columns:1fr;
}

.termin-sidebar{
position:relative;
top:auto;
}

.filter-arrow{
display:inline-block;
}

.filter-accordion-toggle{
cursor:pointer;
}

.filter-options[hidden]{
display:none;
}

}


/* ======================================================
MOBILE ARCHIVE LINK
====================================================== */

.termin-archive-mobile-link{
font-size:.875rem;
}

/* Patternblock Infobox */

/* ===============================
   Infobox Design System
================================ */

:root{

--radius:10px;
--padding:16px;
--gap:12px;

--border:#e5e7eb;

--info:#2563eb;
--tip:#059669;
--warning:#d97706;
--danger:#dc2626;
--success:#16a34a;

--info-bg:#eff6ff;
--tip-bg:#ecfdf5;
--warning-bg:#fffbeb;
--danger-bg:#fef2f2;
--success-bg:#f0fdf4;

}


/* ===============================
   Base Infobox
================================ */

.infobox{

display:flex;
gap:var(--gap);

padding:var(--padding);

border:1px solid var(--border);
border-radius:var(--radius);

margin:20px 0;

align-items:flex-start;

background:#fff;

}


/* ===============================
   Textbereich
================================ */

.infobox strong{


font-weight:600;
font-size:0.95rem;

margin-bottom:2px;

color:#111827;

}

.infobox p{
margin:0;
}


/* ===============================
   Icon Badge
================================ */

.infobox::before{
content:none;
}

/* Badge Basis */

.infobox.is-style-infobox-info::before,
.infobox.is-style-infobox-tip::before,
.infobox.is-style-infobox-warning::before,
.infobox.is-style-infobox-danger::before,
.infobox.is-style-infobox-success::before{

content:"";

width:28px;
height:28px;

flex-shrink:0;

border-radius:50%;

display:inline-block;

background-color:currentColor;

-webkit-mask-repeat:no-repeat;
mask-repeat:no-repeat;

-webkit-mask-position:center;
mask-position:center;

-webkit-mask-size:16px;
mask-size:16px;

margin-top:0.2em;

}


/* ===============================
   INFO
================================ */

.infobox.is-style-infobox-info{

color:var(--info);
background:var(--info-bg);
border-color:#dbeafe;

}

.infobox.is-style-infobox-info::before{

background-color:var(--info);

-webkit-mask-image:url("/wp-content/themes/blocksy-child/assets/icons/info.svg");
mask-image:url("/wp-content/themes/blocksy-child/assets/icons/info.svg");

}


/* ===============================
   TIP
================================ */

.infobox.is-style-infobox-tip{

color:var(--tip);
background:var(--tip-bg);
border-color:#d1fae5;

}

.infobox.is-style-infobox-tip::before{

background-color:var(--tip);

-webkit-mask-image:url("/wp-content/themes/blocksy-child/assets/icons/lightbulb.svg");
mask-image:url("/wp-content/themes/blocksy-child/assets/icons/lightbulb.svg");

}


/* ===============================
   WARNING
================================ */

.infobox.is-style-infobox-warning{

color:var(--warning);
background:var(--warning-bg);
border-color:#fde68a;

}

.infobox.is-style-infobox-warning::before{

background-color:var(--warning);

-webkit-mask-image:url("/wp-content/themes/blocksy-child/assets/icons/triangle-alert.svg");
mask-image:url("/wp-content/themes/blocksy-child/assets/icons/triangle-alert.svg");

}


/* ===============================
   DANGER
================================ */

.infobox.is-style-infobox-danger{

color:var(--danger);
background:var(--danger-bg);
border-color:#fecaca;

}

.infobox.is-style-infobox-danger::before{

background-color:var(--danger);

-webkit-mask-image:url("/wp-content/themes/blocksy-child/assets/icons/circle-x.svg");
mask-image:url("/wp-content/themes/blocksy-child/assets/icons/circle-x.svg");

}


/* ===============================
   SUCCESS
================================ */

.infobox.is-style-infobox-success{

color:var(--success);
background:var(--success-bg);
border-color:#bbf7d0;

}

.infobox.is-style-infobox-success::before{

background-color:var(--success);

-webkit-mask-image:url("/wp-content/themes/blocksy-child/assets/icons/circle-check.svg");
mask-image:url("/wp-content/themes/blocksy-child/assets/icons/circle-check.svg");

}


/* ===============================
   Mobile
================================ */

@media (max-width:600px){

.infobox{
padding:14px;
}

}






/* ===============================
   Pattern Linkliste
================================ */

.linklist{
list-style:none;
padding:0;
margin:1.5rem 0;
}

.linklist li{
margin:0.4rem 0;
}


/* Link Layout */

.linklist a{

display:flex;
align-items:center;

gap:10px;

padding:10px 12px;



text-decoration:none;

background:transparent;

transition:
background-color .18s ease,
transform .12s ease,
box-shadow .18s ease;

}



/* Hover */

.linklist a:hover{

background:#f3f4f6;

transform:translateX(4px);

box-shadow:0 2px 6px rgba(0,0,0,0.06);

}


/* Icon Basis */

.linklist a::before{

content:"";

width:18px;
height:18px;

flex-shrink:0;

background:currentColor;

-webkit-mask-size:contain;
mask-size:contain;

-webkit-mask-repeat:no-repeat;
mask-repeat:no-repeat;

-webkit-mask-position:center;
mask-position:center;

opacity:.8;

}

.linklist a::before{

transition:
transform .15s ease,
opacity .15s ease;

}

.linklist a:hover::before{

transform:translateX(2px);

}


/* ===============================
   Interne Links (Fallback)
================================ */

.linklist a[href^="/"]::before,
.linklist a[href*="rainer-oligmueller.de"]::before{

-webkit-mask-image:url("/wp-content/themes/blocksy-child/assets/icons/arrow-right.svg");
mask-image:url("/wp-content/themes/blocksy-child/assets/icons/arrow-right.svg");

}


/* ===============================
   Email
================================ */

.linklist a[href^="mailto"]::before{

-webkit-mask-image:url("/wp-content/themes/blocksy-child/assets/icons/mail.svg");
mask-image:url("/wp-content/themes/blocksy-child/assets/icons/mail.svg");

}


/* ===============================
   Downloads
================================ */

.linklist a[href$=".pdf"]::before,
.linklist a[href*=".pdf?"]::before,
.linklist a[href$=".doc"]::before,
.linklist a[href$=".docx"]::before{

-webkit-mask-image:url("/wp-content/themes/blocksy-child/assets/icons/download.svg");
mask-image:url("/wp-content/themes/blocksy-child/assets/icons/download.svg");

}



/* ===============================
   Externe Links
================================ */

.linklist a[href^="http"]:not([href*="rainer-oligmueller.de"]):not([href*=".pdf"]):not([href*=".doc"]):not([href*=".docx"])::before{

-webkit-mask-image:url("/wp-content/themes/blocksy-child/assets/icons/external-link.svg");
mask-image:url("/wp-content/themes/blocksy-child/assets/icons/external-link.svg");

}


.linklist a::after {
content: none;
  }


.filemeta{
font-size:0.9em;
opacity:.65;
margin-left:6px;
white-space:nowrap;
}



ul.wp-block-list {
  padding-left: 1rem;
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.wp-block-post-title a{
 /* font-size:0;*/
}

.wp-block-post-title a::after{
  content:"";
  display:inline-block;
  width:1em;
  height:1em;

  background-color:currentColor;

  -webkit-mask-image:url("/wp-content/themes/blocksy-child/assets/icons/arrow-right.svg");
  mask-image:url("/wp-content/themes/blocksy-child/assets/icons/arrow-right.svg");

  mask-size:contain;
  mask-repeat:no-repeat;
}

.back-link-global {
  position: absolute;
  top: 120px;
  left: 20px;
  z-index: 50;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}







