/* ==========================================================================
   St. Michaelis – Base Stylesheet (main.css)
   Grundgeruest / Base styling for ACF Flexible Content modules.
   Designed against Figma: desktop frame 1440px, module padding 16px.
   ========================================================================== */

/* ---------- Custom properties / design tokens ---------- */
:root {
  --st-maxwidth: 1200px;
  --st-frame: 1440px;
  --st-gutter: 24px;
  --st-pad: 16px;

  --st-space-xs: 8px;
  --st-space-s: 16px;
  --st-space-m: 32px;
  --st-space-l: 64px;
  --st-space-xl: 96px;

  --st-color-text: #1c1c1c;
  --st-color-muted: #5c5c5c;
  --st-color-bg: #ffffff;
  --st-color-bg-alt: #f4f4f2;
  --st-color-accent: #B51F29;      /* Michel Rot (aus Figma) */
  --st-color-border: #e2e2df;
  --st-color-link: #B51F29;

  --st-font-body: "Helvetica Neue", Arial, sans-serif;
  --st-font-head: "Helvetica Neue", Arial, sans-serif;

  --st-fs-base: 17px;
  --st-lh-base: 1.6;
  --st-radius: 4px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--st-font-body);
  font-size: var(--st-fs-base);
  line-height: var(--st-lh-base);
  color: var(--st-color-text);
  background: var(--st-color-bg);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--st-color-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--st-font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--st-space-s);
  text-transform: uppercase;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
p { margin: 0 0 var(--st-space-s); }
p:last-child { margin-bottom: 0; }

/* ---------- Layout container ---------- */
.site-header, .site-footer { padding: var(--st-space-s) 0; }
.modules { width: 100%; }

.module {
  width: 100%;
  /* 31.07.: KEIN vertikales Padding mehr - der gewaehlte "Abstand unten"
     (spacer--*) ist der einzige Abstand zwischen Modulen; 0px ist moeglich. */
  padding: 0 var(--st-gutter);
}
.module__inner {
  max-width: var(--st-maxwidth);
  margin: 0 auto;
}
.module__kicker {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--st-color-accent);
  margin-bottom: var(--st-space-xs);
}
.module__headline { margin-bottom: var(--st-space-m); }
.module__intro { font-size: 1.15rem; color: var(--st-color-muted); margin-bottom: var(--st-space-m); }

/* ---------- module_prefs hooks (wired later in functions.php) ----------
   Expected utility classes on .module: is-narrow / is-wide / is-full,
   has-bg, spacer--none/--s/--l, theme--light / theme--dark            */
.module.is-narrow .module__inner { max-width: 820px; }
.module.is-wide   .module__inner { max-width: var(--st-frame); }
.module.is-full   { padding-left: 0; padding-right: 0; }
.module.is-full   .module__inner { max-width: 100%; }
.module.has-bg    { background: var(--st-color-bg-alt); }
.module.theme--dark { background: #1c1c1c; color: #fff; }
.module.theme--dark a { color: #fff; }
.module.spacer--none { padding-top: 0; padding-bottom: 0; }
.module.spacer--s    { padding-top: var(--st-space-m); padding-bottom: var(--st-space-m); }
.module.spacer--l    { padding-top: var(--st-space-xl); padding-bottom: var(--st-space-xl); }
/* Numerische Modul-Abstände (module_spacer: 0/25/50/75/100/150) – margin-bottom,
   damit der Abstand auch bei full-bleed-Heros sichtbar ist (Bild überdeckt Padding). */
.module.spacer--0   { margin-bottom: 0; }
.module.spacer--25  { margin-bottom: 25px; }
.module.spacer--50  { margin-bottom: 50px; }
.module.spacer--75  { margin-bottom: 75px; }
.module.spacer--100 { margin-bottom: 100px; }
.module.spacer--150 { margin-bottom: 150px; }

/* ---------- Columns (col_1 / col_2 / col_3) ---------- */
.cols { display: grid; gap: var(--st-gutter); }
.cols--2 { grid-template-columns: repeat(2, 1fr); }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.col { min-width: 0; }

/* ---------- Side by side ---------- */
.module--sbs .cols,
.slide--sbs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--st-gutter); }
.slide__col { min-width: 0; }

/* ---------- Intro / code ---------- */
.module__code { overflow-x: auto; }
.module__code pre { background: var(--st-color-bg-alt); padding: var(--st-space-s); border-radius: var(--st-radius); }

/* ---------- Divider ---------- */
.module--divider { padding-top: 0; padding-bottom: 0; }
.divider hr { border: 0; border-top: 1px solid var(--st-color-border); margin: 0 auto; max-width: var(--st-maxwidth); }

/* ---------- Accordion ---------- */
.accordion__item { border-bottom: 1px solid var(--st-color-border); }
.accordion__title { cursor: pointer; font-weight: 700; padding: var(--st-space-s) 0; margin: 0; }
.accordion__body { padding-bottom: var(--st-space-s); }
.accordion__intro { margin-bottom: var(--st-space-m); }
.accordion__more { margin-top: var(--st-space-s); }

/* ---------- Image + Text list ---------- */
.imgtxt-category { margin-bottom: var(--st-space-l); }
.imgtxt-category__title { margin-bottom: var(--st-space-m); }
.imgtxt { display: grid; grid-template-columns: 1fr 1fr; gap: var(--st-gutter); align-items: center; margin-bottom: var(--st-space-m); }
.imgtxt__media img { width: 100%; border-radius: var(--st-radius); }

/* ---------- News / Events grids ---------- */
.news-grid, .events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--st-gutter); }
.news-card, .event-card { background: var(--st-color-bg-alt); border-radius: var(--st-radius); overflow: hidden; }
.news-card img, .event-card img { width: 100%; }
.event-card__when, .events-list__when { font-size: .9rem; color: var(--st-color-accent); font-weight: 700; }
.events-list { list-style: none; margin: 0; padding: 0; }
.events-list__item { padding: var(--st-space-s) 0; border-bottom: 1px solid var(--st-color-border); }

/* ---------- Icon teaser ---------- */
.icon-teaser__intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--st-gutter); margin-bottom: var(--st-space-l); }
.icon-teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--st-gutter); }
.icon-teaser__icon img { width: 56px; height: 56px; object-fit: contain; margin-bottom: var(--st-space-xs); }
.icon-teaser__title { margin: 0 0 var(--st-space-xs); }

/* ---------- Downloads ---------- */
.downloads-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--st-gutter); }
.downloads__item { display: flex; gap: var(--st-space-s); align-items: center; padding: var(--st-space-s) 0; border-bottom: 1px solid var(--st-color-border); }
.downloads__desc { color: var(--st-color-muted); font-size: .95rem; }
.downloads-text-list { width: 100%; border-collapse: collapse; }
.downloads-text-row { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: var(--st-gutter); padding: var(--st-space-s) 0; border-bottom: 1px solid var(--st-color-border); }

/* ---------- Sliders ---------- */
.slider { position: relative; overflow: hidden; }
.slide { width: 100%; }
.slide img { width: 100%; }
.slider2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--st-gutter); }
.slider2__item img { width: 100%; border-radius: var(--st-radius); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--st-space-xs); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--st-radius); }

/* ---------- Map / locations ---------- */
.locations, .location { display: grid; grid-template-columns: 2fr 1fr; gap: var(--st-gutter); align-items: start; }
.map__label { font-weight: 700; }

/* ---------- Newsletter ---------- */
.newsletter-list { list-style: none; margin: 0 0 var(--st-space-m); padding: 0; }
.newsletter-item { display: flex; gap: var(--st-space-s); align-items: flex-start; padding: var(--st-space-s) 0; border-bottom: 1px solid var(--st-color-border); }
.newsletter-item__icon img { width: 40px; height: 40px; object-fit: contain; }
.newsletter-item__title { margin: 0 0 4px; font-weight: 700; }
.newsletter-item__desc { color: var(--st-color-muted); font-size: .95rem; margin: 0; }

/* ---------- Forms ---------- */
.module--form .wpforms-container,
.module--newsletter .wpforms-container { margin-top: var(--st-space-m); }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--st-color-border);
  border-radius: var(--st-radius); font: inherit; background: #fff;
}
button, input[type="submit"], .wpforms-submit {
  background: var(--st-color-accent); color: #fff; border: 0;
  padding: 12px 24px; border-radius: var(--st-radius); font-weight: 700; cursor: pointer;
}
button:hover, input[type="submit"]:hover { opacity: .92; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cols--2, .cols--3, .module--sbs .cols, .slide--sbs,
  .imgtxt, .icon-teaser__intro, .downloads-cols,
  .news-grid, .events-grid { grid-template-columns: 1fr; }
  .icon-teaser-grid, .slider2-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .downloads-text-row { grid-template-columns: 1fr; }
  .locations, .location { grid-template-columns: 1fr; }
  .module { padding: var(--st-space-m) var(--st-pad); }
}
@media (max-width: 560px) {
  .icon-teaser-grid, .gallery-grid, .slider2-grid { grid-template-columns: 1fr; }
}


/* ---------- module_prefs: background variants ---------- */
.module.has-bg-image {
  background-size: cover;
  background-position: center;
  position: relative;
}
.module.has-bg-image .module__inner { position: relative; z-index: 1; }
.module.has-bg-image.bg--lighter::before,
.module.has-bg-image.bg--darker::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
}
.module.has-bg-image.bg--lighter::before { background: rgba(255,255,255,.45); }
.module.has-bg-image.bg--darker::before  { background: rgba(0,0,0,.45); }

.module.has-bg-stripes { background-repeat: repeat; }
.module.stripes--Stripes_Grey   { background-color: #f4f4f2; }
.module.stripes--Stripes_Red    { background-color: rgba(181,31,41,.06); }
.module.stripes--Stripes_Orange { background-color: rgba(241,145,0,.08); }

/* Foreground colour helper (front_col) already applied inline; ensure links follow */
.module.theme--dark, .module.theme--dark h1, .module.theme--dark h2, .module.theme--dark h3 { color: #fff; }
.module.theme--light { color: var(--st-color-text); }


/* ---------- CPT: single & archive ---------- */
.single-news__meta, .news-card__meta { color: var(--st-color-accent); font-weight: 700; font-size: .9rem; margin-bottom: var(--st-space-xs); }
.single-news__image, .single-termin__image { margin: 0 0 var(--st-space-m); }
.single-news__image img, .single-termin__image img { width: 100%; border-radius: var(--st-radius); }
.single-news__project { margin-top: var(--st-space-l); padding-top: var(--st-space-m); border-top: 1px solid var(--st-color-border); }

.archive-header { margin-bottom: var(--st-space-l); }
.news-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.news-card__link:hover { text-decoration: none; }
.news-card__link img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.news-card__body { padding: var(--st-space-s); }
.news-card__title { font-size: clamp(1.1rem, 2vw, 1.5rem); margin: 0 0 var(--st-space-xs); }
.news-card__desc { color: var(--st-color-text); font-size: .95rem; font-weight: 400; text-transform: none; }

.events-list__title { margin: 4px 0; font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
.events-list__where { font-weight: 700; margin: 0 0 var(--st-space-xs); }
.events-list__desc { color: var(--st-color-muted); font-weight: 400; text-transform: none; }

/* Termin facts */
.termin-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px var(--st-space-m); margin: 0 0 var(--st-space-m); padding: var(--st-space-s) 0; border-top: 1px solid var(--st-color-border); border-bottom: 1px solid var(--st-color-border); }
.termin-facts dt { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; color: var(--st-color-accent); }
.termin-facts dd { margin: 0; }

.archive-pagination { margin-top: var(--st-space-l); }
.archive-pagination .page-numbers { display: inline-block; padding: 6px 12px; border: 1px solid var(--st-color-border); margin-right: 4px; border-radius: var(--st-radius); }
.archive-pagination .current { background: var(--st-color-accent); color: #fff; border-color: var(--st-color-accent); }


/* img_txt_list: reverse media/text when position = right */
.imgtxt--right .imgtxt__media { order: 2; }
.imgtxt--right .imgtxt__text { order: 1; }


/* ============================================================
   Newsletter-Layer Modul
   ============================================================ */
.module--newsletter .module__inner { max-width: 1100px; }
.newsletter__hero {
	position: relative;
	background: var(--color-primary, #002F5D);
	color: #fff;
	padding: 3rem 2rem;
	border-radius: 4px;
	margin-bottom: 2rem;
	background-size: cover;
	background-position: center;
}
.newsletter__kicker {
	display: inline-block;
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--color-accent, #B51F29);
	background: #fff;
	padding: .3rem .7rem;
	margin-bottom: .8rem;
	font-weight: 700;
}
.newsletter__title { font-size: 2.4rem; line-height: 1.05; margin: 0; text-transform: uppercase; }
.newsletter__intro { max-width: 60ch; margin-bottom: 2rem; }
.newsletter__body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: start;
}
.newsletter__options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.newsletter__option { display: flex; gap: 1rem; align-items: flex-start; }
.newsletter__icon { flex: 0 0 auto; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.newsletter__icon img { width: 100%; height: 100%; object-fit: contain; }
.newsletter__option-text { display: flex; flex-direction: column; }
.newsletter__option-title { color: var(--color-accent, #B51F29); text-transform: uppercase; font-size: .95rem; letter-spacing: .04em; }
.newsletter__option-desc { font-size: .9rem; color: #555; }
.newsletter__form { background: #f5f5f3; padding: 1.5rem; border-radius: 4px; }
.newsletter__form-placeholder { color: #888; font-style: italic; }
@media (max-width: 780px) { .newsletter__body { grid-template-columns: 1fr; } .newsletter__title { font-size: 1.8rem; } }

/* ============================================================
   Michel Tafeln Modul
   ============================================================ */
.tafeln__hero { position: relative; }
.tafeln__hero-media img { width: 100%; height: auto; display: block; }
.tafeln__hero-caption { position: absolute; left: 2rem; bottom: 2rem; background: rgba(255,255,255,.92); padding: 1rem 1.4rem; }
.tafeln__kicker { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent, #B51F29); font-weight: 700; }
.tafeln__title { font-size: 2.6rem; margin: .2rem 0 0; text-transform: uppercase; line-height: 1; }
.tafeln__intro, .tafeln__text { max-width: 65ch; margin: 2rem auto; padding: 0 2rem; }
.tafeln__video { max-width: 900px; margin: 2rem auto; padding: 0 2rem; }
.tafeln__video iframe, .tafeln__video video { width: 100%; aspect-ratio: 16/9; }

/* ============================================================
   SERP – Suchergebnisseite
   ============================================================ */
.serp__hero { background: var(--color-primary, #002F5D); color: #fff; padding: 3rem 0; background-size: cover; background-position: center; }
.serp__hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.serp__kicker { display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; background: var(--color-accent, #B51F29); padding: .3rem .7rem; font-weight: 700; }
.serp__hero-title { font-size: 2.4rem; text-transform: uppercase; margin: .6rem 0 0; }
.serp__wrap { max-width: 1100px; margin: 2.5rem auto; padding: 0 2rem; }
.serp__searchform { display: flex; gap: .5rem; margin-bottom: 2rem; }
.serp__searchform input[type="search"] { flex: 1; padding: .7rem 1rem; border: 1px solid #ccc; }
.serp__searchform button { padding: .7rem 1.4rem; background: var(--color-primary, #002F5D); color: #fff; border: 0; cursor: pointer; }
.serp__summary { font-size: 1.1rem; margin-bottom: 1.5rem; }
.serp__group { margin-bottom: 2.5rem; }
.serp__group-title { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent, #B51F29); border-bottom: 2px solid var(--color-accent, #B51F29); padding-bottom: .4rem; margin-bottom: 1.2rem; }
.serp__results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.serp__result { display: flex; flex-direction: column; }
.serp__result-thumb { aspect-ratio: 4/3; overflow: hidden; background: #eee; }
.serp__result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.serp__result-title { font-size: 1rem; margin: .6rem 0 .2rem; }
.serp__result-title a { color: inherit; text-decoration: none; }
.serp__result-type { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #888; }
.serp__cta { text-align: center; padding: 3rem 0; }
.serp__cta-title { color: var(--color-accent, #B51F29); text-transform: uppercase; font-size: 1.8rem; }
.serp__noresults { padding: 2rem 0; font-size: 1.1rem; }
@media (max-width: 900px) { .serp__results { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .serp__results { grid-template-columns: 1fr; } }


/* ============================================================================
   == St. Michaelis Brand-Adaption v1 (Figma-Tokens) ==
   Farben:  Dunkelblau #002F5D (Primär) · Rot #B51F29 (Akzent)
   Schrift: Meta Pro -> Ubuntu (freier, sehr ähnlicher Ersatz)
   Raster:  Rahmen 1440px · Inhalt max. 1320px · Hero 1440x660
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

:root {
	/* Marken-Farben */
	--st-color-primary: #002F5D;   /* Dunkelblau */
	--st-color-accent:  #B51F29;   /* Rot */
	--st-color-text:    #1a1a1a;
	--st-color-muted:   #5a5a5a;
	--st-color-bg:      #ffffff;
	--st-color-bg-alt:  #f2f3f5;
	--st-color-border:  #e2e4e8;
	--st-color-link:    #B51F29;
	/* --- Michel-Palette (aus Figma) --- */
	--st-color-secondary: #034B91;  /* Mittelblau / Hover */
	--st-color-lightblue: #CAD9E0;  /* Hellblau */
	--st-color-gold:      #D1AC57;  /* Akzent Gold */
	--st-color-xmas-gold: #FBE2B6;  /* Weihnachten Gold */
	--st-color-xmas-red:  #D8142A;  /* Weihnachten Rot */
	--st-color-mist:      #CAD9E0;
	--st-color-slate:     #5C788E;
	--st-color-ink:       #222222;
	/* Neutral-Skala */
	--st-neutral-0: #ffffff;   --st-neutral-50: #F6F6F6;  --st-neutral-100: #E7E7E7;
	--st-neutral-200: #D1D1D1; --st-neutral-300: #B0B0B0; --st-neutral-400: #888888;
	--st-neutral-500: #6D6D6D; --st-neutral-600: #5D5D5D; --st-neutral-700: #4F4F4F;
	--st-neutral-800: #454545; --st-neutral-900: #3D3D3D; --st-neutral-950: #222222;

	/* Raster */
	--st-maxwidth: 1320px;
	--st-frame:    1440px;
	--st-gutter:   60px;
	--st-pad:      60px;

	/* Abstände */
	--st-space-xs: .5rem;
	--st-space-s:  1rem;
	--st-space-m:  2rem;
	--st-space-l:  4rem;
	--st-space-xl: 6.5rem;

	/* Typografie */
	--st-font-body: 'ff-meta-web-pro', 'Meta Pro', 'Ubuntu', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	--st-font-head: 'ff-meta-web-pro', 'Meta Pro', 'Ubuntu', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	--st-fs-base: 18px;
	--st-lh-base: 1.6;
	--st-radius: 0px;
}

/* ---------- Basis ---------- */
body {
	font-family: var(--st-font-body);
	font-size: var(--st-fs-base);
	line-height: var(--st-lh-base);
	color: var(--st-color-text);
	background: var(--st-color-bg);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--st-color-link); }

/* ---------- Überschriften: fett, GROSS, Versalien wie in Figma ---------- */
h1, h2, h3, .module__headline, .newsletter__title, .tafeln__title, .serp__hero-title {
	font-family: var(--st-font-head);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--st-color-primary);
	line-height: .95;
	letter-spacing: 0;
	margin: 0 0 .6em;
}
h1, .serp__hero-title { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }   /* ~80px */
h2, .module__headline { font-size: clamp(2rem, 4vw, 3.2rem); }       /* ~56px */
h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
p { margin: 0 0 1em; }

/* Kicker / Topline: 20px, Versalien, Rot */
.newsletter__kicker, .serp__kicker, .tafeln__kicker, .module__kicker {
	font-family: var(--st-font-head);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--st-color-accent);
}

/* ---------- Container / Raster ---------- */
.module__inner {
	max-width: var(--st-maxwidth);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--st-pad);
	padding-right: var(--st-pad);
	box-sizing: border-box;
}
/* 31.07.: Altregel entfernt - vertikales Modul-Padding kommt NICHT zurueck;
   Abstand zwischen Modulen ist allein der gewaehlte "Abstand unten" (spacer--*).
   Ausnahme has-bg/theme--dark/is-musik: stm-modules.css. */
.module.is-full > .module__inner { max-width: none; padding-left: 0; padding-right: 0; }

/* ---------- Farb-Themes (module_prefs) neu auf Marke ---------- */
.module.theme--dark { background: var(--st-color-primary); color: #fff; }
.module.theme--dark h1, .module.theme--dark h2, .module.theme--dark h3, .module.theme--dark .module__headline { color: #fff; }
.module.theme--dark a { color: #fff; }

@media (max-width: 900px) {
	:root { --st-pad: 24px; }
	h1, .serp__hero-title { font-size: clamp(2rem, 9vw, 3rem); }
}


/* ============================================================================
   == St. Michaelis Modul-Feinschliff v1 ==
   ============================================================================ */
.icon-teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.icon-teaser { display: flex; flex-direction: column; }
.icon-teaser__icon { width: 72px; height: 72px; margin-bottom: 1rem; }
.icon-teaser__icon img { width: 100%; height: 100%; object-fit: contain; }
.icon-teaser__title { color: var(--st-color-primary); text-transform: uppercase; font-weight: 700; font-size: 1.15rem; line-height: 1.1; margin: 0 0 .5rem; }
.icon-teaser__text { color: var(--st-color-text); font-size: 1rem; line-height: 1.5; }
.icon-teaser__link { text-decoration: none; color: inherit; display: block; }
.icon-teaser__link:hover .icon-teaser__title { color: var(--st-color-accent); }
@media (max-width: 900px) { .icon-teaser-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } }
@media (max-width: 520px) { .icon-teaser-grid { grid-template-columns: 1fr; } }

.news-grid, .events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.news-card, .event-card { display: flex; flex-direction: column; background: #fff; overflow: visible; height: auto; border: 1px solid var(--st-color-border); }
.news-card > a:first-child, .event-card > a:first-child { display: block; aspect-ratio: 3/2; background: var(--st-color-bg-alt) center/cover no-repeat; overflow: hidden; }
.news-card > a:first-child img, .event-card > a:first-child img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card h3, .event-card h3 { font-size: 1.15rem; line-height: 1.15; text-transform: uppercase; color: var(--st-color-primary); margin: 0; padding: 1.1rem 1.2rem 1.3rem; }
.news-card h3 a, .event-card h3 a { color: inherit; text-decoration: none; }
.news-card:hover h3 a { color: var(--st-color-accent); }
@media (max-width: 820px) { .news-grid, .events-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .news-grid, .events-grid { grid-template-columns: 1fr; } }

.newsletter__hero { background: var(--st-color-primary); }
.newsletter__title { color: #fff; }
.newsletter__kicker { background: #fff; color: var(--st-color-accent); }
.newsletter__option-title { color: var(--st-color-accent); }

.module--intro .module__inner { max-width: 900px; margin-left: auto; }
.module--intro p { font-size: 1.15rem; color: var(--st-color-text); }


/* == Fix: News-/Events-Grid Zeilenhöhe automatisch == */
.news-grid, .events-grid { grid-template-rows: none !important; grid-auto-rows: auto !important; align-items: stretch; }
.news-card, .event-card { height: auto !important; }
.news-card > a:first-child, .event-card > a:first-child { flex: 0 0 auto; }


/* == Fix v2: News-/Event-Karte = ein <a> mit Bild + Titel darin == */
.news-card > a, .event-card > a { display: flex; flex-direction: column; aspect-ratio: auto !important; height: auto; text-decoration: none; color: inherit; }
.news-card > a > img, .event-card > a > img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.news-card > a > h3, .event-card > a > h3 { margin: 0; padding: 1.1rem 1.2rem 1.3rem; font-size: 1.1rem; line-height: 1.15; text-transform: uppercase; color: var(--st-color-primary); }
.news-card, .event-card { display: block; }
.news-card:hover h3, .event-card:hover h3 { color: var(--st-color-accent); }


/* ============================================================================
   == Hero-Slider (slider_1) als Vollbild mit Text-Overlay (Figma) ==
   ============================================================================ */
.module--slider--1 { padding: 0 !important; position: relative; }
.module--slider--1 .module__inner { max-width: none; padding: 0; }
.module--slider--1 .module__headline { position: absolute; z-index: 3; left: max(60px, calc((100% - var(--st-maxwidth))/2 + 60px)); bottom: 3.5rem; margin: 0; max-width: 60%; color: #fff; font-size: clamp(2.4rem, 5vw, 4.4rem); text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.module--slider--1 .slider { position: relative; }
.module--slider--1 .slide { position: relative; }
.module--slider--1 .slide img { width: 100%; height: clamp(420px, 46vw, 660px); object-fit: cover; display: block; }
.module--slider--1 .slide::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,47,93,0) 40%, rgba(0,47,93,.65) 100%); }
.module--slider--1 .slide__text { position: absolute; z-index: 3; left: max(60px, calc((100% - var(--st-maxwidth))/2 + 60px)); bottom: 1.6rem; margin: 0; color: #fff; max-width: 55ch; font-size: 1.15rem; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
@media (max-width: 900px){
	.module--slider--1 .module__headline { left: 24px; bottom: 2.6rem; max-width: 85%; }
	.module--slider--1 .slide__text { left: 24px; }
}


/* == Divider schlank: dünne Linie statt grauer Block == */
.module--divider { background: transparent !important; padding: 2rem 0 !important; }
.module--divider .module__inner { max-width: var(--st-maxwidth); }
.module--divider hr, .module--divider .module-divider__line { border: 0; border-top: 2px solid var(--st-color-border); margin: 0; }
.module--divider::after, .module--divider::before { display: none !important; }


/* SLIDER-CONTROLS-FIGMA */
.module--slider { position: relative; }
.module--slider .slider { position: relative; }
.module--slider .slider > .slide,
.module--slider .slider > .slide--sbs { width: 100%; }
/* Navigation arrows */
.module--slider .slider-nav { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; padding: 0 24px; z-index: 5; }
.module--slider .slider-arrow { pointer-events: auto; width: 56px; height: 56px; border-radius: 50%; border: none; background: rgba(0,47,93,0.85); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease, transform .2s ease; }
.module--slider .slider-arrow:hover { background: #B51F29; transform: scale(1.06); }
.module--slider.theme--dark .slider-arrow { background: rgba(255,255,255,0.18); }
.module--slider.theme--dark .slider-arrow:hover { background: #B51F29; }
/* Pagination dots */
.module--slider .slider-dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.module--slider .slider-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; transition: background .2s ease; }
.module--slider .slider-dots button[aria-current="true"] { background: #B51F29; border-color: #B51F29; }
.module--slider:not(.theme--dark) .slider-dots button { border-color: #002F5D; }
.module--slider:not(.theme--dark) .slider-dots button[aria-current="true"] { background: #B51F29; border-color: #B51F29; }
@media (max-width: 768px){
  .module--slider .slider-arrow { width: 42px; height: 42px; font-size: 18px; }
  .module--slider .slider-nav { padding: 0 10px; }
}

/* GALLERY-PROPORTIONS-FIGMA */
.module--slider2 .slider2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.module--slider2 .slider2__item { margin: 0; overflow: hidden; border-radius: 4px; position: relative; }
.module--slider2 .slider2__item img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.module--slider2 .slider2__item:hover img { transform: scale(1.05); }
@media (max-width: 900px){ .module--slider2 .slider2-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .module--slider2 .slider2-grid { grid-template-columns: 1fr; } }


/* GALLERY-GRID-FIGMA */
.module--gallery .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; }
.module--gallery .gallery-grid > * { margin: 0; overflow: hidden; border-radius: 4px; position: relative; }
.module--gallery .gallery-grid img { display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s ease; }
.module--gallery .gallery-grid a:hover img,
.module--gallery .gallery-grid figure:hover img { transform: scale(1.05); }
/* When 4+ items, allow a 4-col layout */
.module--gallery .gallery-grid.gallery-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .module--gallery .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 520px){ .module--gallery .gallery-grid { grid-template-columns: 1fr; } }


/* HEADER-FOOTER-FIGMA */
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: #002F5D; padding: 8px 16px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---- Header ---- */
.site-header { background: #002F5D; color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
body.admin-bar .site-header { top: 32px; }
.site-header__inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding .site-title { display: inline-flex; flex-direction: column; line-height: 1.05; text-decoration: none; color: #fff; }
.site-branding .site-title__main { font-family: 'Ubuntu', sans-serif; font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.site-branding .site-title__sub { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 2px; }
.site-branding .custom-logo { max-height: 56px; width: auto; }

.site-nav { display: flex; }
.site-nav .nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav .nav-menu > li { margin: 0; }
.site-nav .nav-menu > li > a { display: block; padding: 10px 16px; color: #fff; text-decoration: none; font-weight: 500; font-size: 16px; text-transform: uppercase; letter-spacing: .03em; border-radius: 2px; transition: color .2s ease, background .2s ease; }
.site-nav .nav-menu > li > a:hover,
/* 31.07.: aktiver Punkt NICHT rot hinterlegt - nur Unterstrich (wie Hover), Kundenticket Mega-Menue */
.site-nav .nav-menu > li.current-menu-item > a,
.site-nav .nav-menu > li.current-menu-ancestor > a,
.site-nav .nav-menu > li.current_page_ancestor > a { color: var(--st-color-primary, #002F5D); background: none; text-decoration: none; }
/* Unterstrich kommt EINMAL ueber border-bottom der Mega-Nav (stm-modules.css) - kein text-decoration, sonst Doppelstrich */
.site-nav .nav-menu__search > a { position: relative; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: transparent; border: none; cursor: pointer; }
.nav-toggle__bar { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px){
  .nav-toggle { display: flex; }
  .site-header__inner { min-height: 72px; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #002F5D; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .site-nav.is-open { max-height: 70vh; overflow-y: auto; border-top: 1px solid rgba(255,255,255,0.12); }
  .site-nav .nav-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px 16px; }
  .site-nav .nav-menu > li > a { padding: 14px 12px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .site-nav .nav-menu > li > a:hover { background: #B51F29; }
}

/* ---- Footer ---- */
.site-footer { background: #002F5D; color: rgba(255,255,255,0.85); margin-top: 80px; }
.site-footer__inner { max-width: 1320px; margin: 0 auto; padding: 64px 24px 32px; }
.site-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer__logo { display: block; font-family: 'Ubuntu', sans-serif; font-weight: 700; font-size: 24px; text-transform: uppercase; color: #fff; letter-spacing: .02em; }
.site-footer__tagline { margin: 12px 0 0; max-width: 34ch; line-height: 1.6; }
.site-footer__heading { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin: 0 0 16px; font-weight: 700; }
.site-footer__address { font-style: normal; line-height: 1.8; }
.site-footer__address a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer__address a:hover { color: #fff; }
.footer-nav__menu { list-style: none; margin: 0; padding: 0; }
.footer-nav__menu li { margin: 0 0 10px; }
.footer-nav__menu a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color .2s ease; }
.footer-nav__menu a:hover { color: #fff; }
.site-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); }
.site-footer__copy { margin: 0; font-size: 14px; color: rgba(255,255,255,0.6); }
@media (max-width: 768px){
  .site-footer__cols { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__inner { padding: 48px 24px 24px; }
  .site-footer { margin-top: 48px; }
}


/* TERMIN-DATEBOX-FIGMA */
.termin-datebox { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 88px; height: 88px; background: #002F5D; color: #fff; border-radius: 4px; margin: 8px 0 24px; line-height: 1; }
.termin-datebox__day { font-family: 'Ubuntu', sans-serif; font-weight: 700; font-size: 38px; }
.termin-datebox__month { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; color: #B51F29; font-weight: 700; }

/* Buttons */
.btn, .btn--primary { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 500; font-size: 16px; text-decoration: none; text-align: center; cursor: pointer; transition: background .2s ease, color .2s ease; border: 2px solid transparent; }
.btn--primary { background: #002F5D; color: #fff; }
.btn--primary:hover { background: #B51F29; color: #fff; }
.termin-cal { margin: 24px 0 0; }
.termin-cal__btn::before { content: '\1F4C5'; margin-right: 8px; }

/* ============================================================
   St. Michaelis – Navigation (Desktop-Dropdown + Mobile-Akkordeon)
   ============================================================ */

/* ---------- Desktop ---------- */
#site-nav .nav-menu { display: flex; align-items: center; }
#site-nav .nav-menu li { position: relative; }

#site-nav .nav-menu li > ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    background: #002f5d;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
    border-top: 3px solid #b3123c;   /* Michel-Rot Akzent */
    border-radius: 0 0 4px 4px;
}
#site-nav .nav-menu li:hover > ul.sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Untermenü-Einträge */
#site-nav .nav-menu ul.sub-menu li { display: block; margin: 0; }
#site-nav .nav-menu ul.sub-menu li + li { border-top: 1px solid rgba(255,255,255,.08); }
#site-nav .nav-menu ul.sub-menu li a {
    display: block;
    padding: 10px 18px;
    white-space: nowrap;
    color: #e9eef5;
    font-size: .95em;
    line-height: 1.3;
    transition: background .12s ease, color .12s ease, padding-left .12s ease;
}
#site-nav .nav-menu ul.sub-menu li a:hover {
    background: #b3123c;
    color: #fff;
    padding-left: 24px;
}

/* 3. Ebene seitlich */
#site-nav .nav-menu li li > ul.sub-menu {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 3px solid #b3123c;
}

/* Pfeil bei Eltern-Einträgen */
#site-nav .nav-menu > li.menu-item-has-children > a::after {
    content: " \25BE";
    font-size: .8em;
    opacity: .8;
}

/* ---------- Mobile (bis 900px) ---------- */
@media (max-width: 900px) {
    #site-nav .nav-menu { display: block; flex-direction: column; }
    #site-nav .nav-menu li { position: static; }

    #site-nav .nav-menu li > ul.sub-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        min-width: 0;
        padding: 0;
        background: rgba(0,0,0,.18);
        display: none;
    }
    #site-nav .nav-menu li.is-expanded > ul.sub-menu { display: block; }
    #site-nav .nav-menu ul.sub-menu li + li { border-top: 1px solid rgba(255,255,255,.06); }
    #site-nav .nav-menu ul.sub-menu li a { padding-left: 32px; white-space: normal; }
    #site-nav .nav-menu ul.sub-menu li a:hover { padding-left: 36px; }
    #site-nav .nav-menu ul.sub-menu ul.sub-menu li a { padding-left: 48px; }

    #site-nav .nav-menu > li.menu-item-has-children > a::after { content: " \25BE"; }
    #site-nav .nav-menu li.menu-item-has-children.is-expanded > a::after { content: " \25B4"; }
}


/* ===========================================================
   FIX: Side-by-Side (.sbs) layout
   Template renders .sbs__row/.sbs__col; align with design tokens
   so image + text sit side by side (Figma).
   =========================================================== */
.module--sbs .sbs__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--st-gutter);
  align-items: center;
}
.module--sbs .sbs__col { min-width: 0; }
.module--sbs .sbs__col > p:last-child { margin-bottom: 0; }
.module--sbs .sbs__col img { width: 100%; height: auto; border-radius: var(--st-radius); }
.module--sbs.sbs--media-right .sbs__col--left { order: 2; }
.module--sbs.sbs--media-right .sbs__col--right { order: 1; }
@media (max-width: 768px) {
  .module--sbs .sbs__row { grid-template-columns: 1fr; }
  .module--sbs.sbs--media-right .sbs__col--left,
  .module--sbs.sbs--media-right .sbs__col--right { order: 0; }
}


/* ===========================================================
   FIX: keep full-bleed module content off the viewport edge
   (theme design intent: framed content, module padding)
   =========================================================== */
.module.is-full > .module__inner {
  padding-left: var(--st-pad);
  padding-right: var(--st-pad);
}
@media (min-width: 1024px) {
  .module.is-full > .module__inner {
    padding-left: clamp(16px, 4vw, 80px);
    padding-right: clamp(16px, 4vw, 80px);
  }
}


/* ===========================================================
   FIX: Header redesign (Figma) - topbar + white main bar
   =========================================================== */
.site-header { background: #fff !important; color: var(--st-color-text) !important; padding: 0 !important; }
/* dark topbar */
.site-topbar { background: var(--st-color-bg) ; background: #002f5d; color: #fff; }
.site-topbar__inner {
  max-width: var(--st-maxwidth);
  margin: 0 auto;
  padding: 6px var(--st-gutter);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  font-size: 0.8rem;
}
.site-topbar .topbar-menu { list-style:none; margin:0; padding:0; display:flex; gap:24px; }
.site-topbar .topbar-menu a,
.site-topbar__lang { color:#fff; text-decoration:none; font-size:0.8rem; }
.site-topbar .topbar-menu a:hover { text-decoration:underline; }
.site-topbar__lang { display:inline-flex; align-items:center; gap:4px; }

/* white main bar */
.site-header__inner {
  max-width: var(--st-maxwidth);
  margin: 0 auto;
  padding: 14px var(--st-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding .site-title { color: var(--st-color-text) !important; }
.site-branding .site-title__main { color: var(--st-color-text) !important; font-weight:700; }
.site-branding .site-title__sub { color: var(--st-color-muted) !important; }
.site-branding .custom-logo { border-radius: 50%; }

/* centered main nav */
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav .nav-menu { display:flex; gap: 40px; list-style:none; margin:0; padding:0; align-items:center; }
.site-nav .nav-menu > li > a {
  color: var(--st-color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 0;
  text-decoration: none;
}
.site-nav .nav-menu > li.current-menu-item > a,
.site-nav .nav-menu > li > a:hover {
  border-bottom: 2px solid var(--st-color-accent);
}
/* search icon item pushed right */
.site-nav .nav-menu__search { margin-left: auto; }
.site-nav .nav-menu__search a { color: var(--st-color-text); font-size: 1.1rem; }

/* ===========================================================
   FIX: Footer - 4 columns + centered bottom meta
   =========================================================== */
.site-footer__cols { grid-template-columns: repeat(4, 1fr) !important; }
.site-footer__social { display:flex; gap:14px; margin-top:8px; }
.site-footer__social a { color:#fff; font-size:1.25rem; }
.site-footer__bottom {
  display:flex; align-items:center; justify-content:center; gap:32px;
  position:relative; padding-top: var(--st-space-m);
  border-top: 1px solid rgba(255,255,255,0.2); margin-top: var(--st-space-m);
}
.site-footer__logo--center { position:absolute; left:50%; transform:translateX(-50%); }


/* FIX: topbar submenus hidden (thin single-line topbar) */
.site-topbar .topbar-menu .sub-menu { display: none; }
.site-topbar .topbar-menu { flex-wrap: nowrap; align-items: center; }
.site-topbar .topbar-menu li { position: relative; }

/* FIX: Footer content refinements */
.site-footer{color:#fff}
.site-footer__heading{color:#fff;font-size:14px;letter-spacing:.08em;text-transform:uppercase;margin:0 0 14px;font-weight:700}
.site-footer__address{font-style:normal;line-height:1.9;color:#fff}
.site-footer__address a{color:#fff;text-decoration:none}
.site-footer__address a:hover{text-decoration:underline}
.site-footer__menu,.site-footer__meta-menu{list-style:none;margin:0;padding:0}
.site-footer__menu li{margin:0 0 8px;line-height:1.5}
.site-footer__menu a{color:#fff;text-decoration:none}
.site-footer__menu a:hover{text-decoration:underline}
.site-footer__social{list-style:none;display:flex;gap:12px;margin:0;padding:0}
.site-footer__social a{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#fff;color:#002f5d;text-decoration:none}
.site-footer__social a:hover{background:#B51F29;color:#fff}
.site-footer__social .dashicons{font-size:18px;width:18px;height:18px;line-height:18px}
.site-footer__bottom{position:relative;display:flex;align-items:center;justify-content:center;margin-top:48px;padding-top:24px;border-top:1px solid rgba(255,255,255,.25)}
.site-footer__meta-menu{list-style:none;display:flex;flex-wrap:wrap;gap:32px;margin:0;padding:0;justify-content:center}
.site-footer__meta-menu a{color:#fff;text-decoration:none;font-size:14px}
.site-footer__meta-menu a:hover{text-decoration:underline}
.site-footer__logo--center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#002f5d;padding:0 16px;line-height:0}
.site-footer__logo-img{width:48px;height:auto;display:block}

/* FIX: Footer meta row layout v3 */
.site-footer__bottom{display:flex;flex-direction:column;align-items:center;position:relative;margin-top:56px;padding-top:0;border-top:0}
.site-footer__logo--center{position:static;transform:none;background:transparent;padding:0;line-height:0;margin-bottom:20px}
.site-footer__logo-img{width:52px;height:auto;display:block}
.site-footer__meta{width:100%;border-top:1px solid rgba(255,255,255,.25);padding-top:20px}
.site-footer__meta-menu{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:32px;list-style:none;margin:0;padding:0}
.site-footer__meta-menu a{color:#fff;text-decoration:none;font-size:14px}
.site-footer__meta-menu a:hover{text-decoration:underline}

/* FIX: Footer meta row layout v5 (line through center) */
.site-footer__bottom{display:block;position:relative;margin-top:56px;padding-top:0;border-top:0}
.site-footer__meta{position:relative;border-top:0;padding:0}
.site-footer__meta::before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:rgba(255,255,255,.25);z-index:0}
.site-footer__meta-menu{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:0;list-style:none;margin:0;padding:26px 0;position:relative;z-index:1}
.site-footer__meta-menu li{white-space:nowrap;background:#002f5d;padding:0 4px}
.site-footer__meta-menu a{color:#fff;text-decoration:none;font-size:14px}
.site-footer__meta-menu a:hover{text-decoration:underline}
.site-footer__logo,.site-footer__logo--center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;background:#002f5d;padding:0 22px;line-height:0;margin:0}
.site-footer__logo-img{width:56px;height:auto;display:block}
@media (max-width:640px){.site-footer__meta::before{display:none}.site-footer__meta-menu{flex-wrap:wrap;justify-content:center;gap:20px;padding-bottom:70px}.site-footer__logo--center{top:auto;bottom:16px;transform:translateX(-50%)}}

/* FIX: Header branding wordmark */
.site-branding{display:flex;align-items:center;gap:14px}
.site-branding .custom-logo-link{display:inline-flex;line-height:0}
.site-branding .custom-logo{max-height:56px;width:auto;border-radius:50%}
.site-branding__text{display:inline-flex;flex-direction:column;justify-content:center;text-decoration:none;line-height:1.05}
.site-branding__text .site-title__main{font-family:var(--st-font-head);font-weight:700;font-size:24px;letter-spacing:.01em;color:#002f5d;text-transform:none}
.site-branding__text .site-title__sub{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#5c5c5c;margin-top:3px}


/* FIX: Stage / Hero module (Figma hero) v1 */
.module--stage{padding:0;margin:0;}
.module--stage .stage{position:relative;width:100%;min-height:520px;overflow:hidden;background:#cfd8e3;}
.stage__media{position:absolute;inset:0;z-index:0;}
.stage__img{width:100%;height:100%;object-fit:cover;display:block;}
.stage__img--placeholder{background:linear-gradient(180deg,#7ea3c8 0%,#b9cbde 55%,#dbe6f0 100%);}
.stage__box{position:absolute;left:0;top:110px;z-index:2;max-width:270px;background:#eef2f6;padding:26px 30px 30px;box-shadow:0 2px 8px rgba(0,0,0,.08);}
.stage__kicker{margin:0 0 10px;font-family:var(--st-font-head,"Helvetica Neue",Arial,sans-serif);font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--st-color-accent,#B51F29);}
.stage__headline{margin:0;font-family:var(--st-font-head,"Helvetica Neue",Arial,sans-serif);font-weight:700;line-height:.98;text-transform:uppercase;}
.stage__headline-1{display:block;font-size:58px;color:#002f5d;}
.stage__headline-2{display:block;font-size:58px;color:var(--st-color-accent,#B51F29);}
.stage__utility{position:absolute;right:24px;top:50%;transform:translateY(-50%);z-index:2;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;}
.stage__utility-link{display:flex;align-items:center;justify-content:center;width:46px;height:46px;background:#eef2f6;color:#002f5d;border:1px solid rgba(0,47,93,.15);border-radius:2px;transition:background .15s,color .15s;}
.stage__utility-link:hover{background:var(--st-color-accent,#B51F29);color:#fff;border-color:var(--st-color-accent,#B51F29);}
.stage__utility-link .dashicons{font-size:22px;width:22px;height:22px;}
.stage__breadcrumb-wrap{background:#fff;}
.stage__breadcrumb-inner{max-width:var(--st-maxwidth,1200px);margin:0 auto;padding:16px var(--st-pad,16px);}
.stage__breadcrumb{font-size:13px;color:#8a8a8a;}
.stage__breadcrumb a{color:#8a8a8a;text-decoration:none;}
.stage__breadcrumb a:hover{color:var(--st-color-accent,#B51F29);}
.stage__crumb-sep{margin:0 8px;color:#b7b7b7;}
@media (max-width:782px){
  .module--stage .stage{min-height:380px;}
  .stage__box{top:auto;bottom:0;max-width:100%;width:100%;}
  .stage__headline-1,.stage__headline-2{font-size:40px;}
  .stage__utility{right:12px;gap:8px;}
  .stage__utility-link{width:40px;height:40px;}
}


/* ===================================================================
   Figma-Feinschliff (Detailseite Turm) – in main.css konsolidiert
   Eyebrow rot/uppercase, Bild-Rahmung 4:3 object-fit cover, Abstaende
   =================================================================== */
.hero__topline,
.teaser__topline,
.module__kicker {
  color: var(--st-color-accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 12px;
}
.module__headline {
  color: var(--st-color-primary, #002F5D);
  letter-spacing: 0.005em;
}
.imgtxt__media,
.teaser__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0;
}
.imgtxt__media img,
.teaser__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.imgtxt {
  align-items: center;
  margin-bottom: var(--st-space-l, 64px);
}
.imgtxt__text {
  max-width: 46ch;
}
.module--imgtxtlist .module__headline {
  margin-bottom: var(--st-space-m, 32px);
}


/* ===================================================================
   Teaser-Grid (Modul teaser_grid) – Kachel-Raster "Erlebnis Michel"
   =================================================================== */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--st-space-s, 16px);
  margin-top: var(--st-space-m, 32px);
}
.teaser-grid__item {
  display: block;
  text-decoration: none;
  color: inherit;
}
.teaser-grid__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--st-color-bg-alt, #f4f4f2);
}
.teaser-grid__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.teaser-grid__item:hover .teaser-grid__img {
  transform: scale(1.05);
}
.teaser-grid__title {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--st-color-primary, #002F5D);
}
@media (max-width: 900px) {
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .teaser-grid { grid-template-columns: 1fr; }
}


/* Turmblick Live */
.turmblick { }
.turmblick__kicker {
	color: var(--st-color-accent, #B51F29);
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 700;
	font-size: .85rem;
	margin: 0 0 .25rem;
}
.turmblick__headline {
	margin: 0 0 var(--st-space-s, 16px);
}
.turmblick__copy {
	max-width: 60ch;
	margin: 0 0 var(--st-space-m, 32px);
	color: var(--st-color-muted, #5c5c5c);
}
.turmblick__figure {
	margin: 0;
}
.turmblick__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #10151c;
	border-radius: 2px;
}
.turmblick__media,
.turmblick__media--video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.turmblick__img,
.turmblick__iframe {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
}
.turmblick__bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px;
	background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
	color: #fff;
	font-size: .8rem;
	letter-spacing: .03em;
}
.turmblick__live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-transform: uppercase;
	font-weight: 700;
}
.turmblick__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--st-color-accent, #B51F29);
	box-shadow: 0 0 0 0 rgba(181,31,41,.6);
	animation: turmblickPulse 1.8s infinite;
}
@keyframes turmblickPulse {
	0%   { box-shadow: 0 0 0 0 rgba(181,31,41,.6); }
	70%  { box-shadow: 0 0 0 8px rgba(181,31,41,0); }
	100% { box-shadow: 0 0 0 0 rgba(181,31,41,0); }
}
.turmblick__meta {
	opacity: .9;
}
.turmblick__caption {
	margin-top: var(--st-space-xs, 8px);
	font-size: .85rem;
	color: var(--st-color-muted, #5c5c5c);
}
@media (max-width: 640px) {
	.turmblick__frame { aspect-ratio: 4 / 3; }
	.turmblick__meta { display: none; }
}


/* Buttons + Ticket-Box + Slider-Media */
.btn { display: inline-block; padding: 12px 22px; font-weight: 700; font-size: .95rem; line-height: 1.1; text-decoration: none; border-radius: 2px; border: 2px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn--accent { background: var(--st-color-accent, #B51F29); color: #fff; border-color: var(--st-color-accent, #B51F29); }
.btn--accent:hover, .btn--accent:focus { background: #8f0e17; border-color: #8f0e17; color: #fff; }
.btn--outline { background: transparent; color: var(--st-color-accent, #B51F29); border-color: var(--st-color-accent, #B51F29); }
.btn--outline:hover, .btn--outline:focus { background: var(--st-color-accent, #B51F29); color: #fff; }
.ticket-box { background: var(--st-color-bg-alt, #f4f4f2); border: 1px solid var(--st-color-border, #e2e2df); border-radius: 3px; padding: var(--st-space-m, 32px); }
.ticket-box h3 { margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .04em; color: var(--st-color-primary, #002F5D); }
.ticket-box p { margin: 0 0 var(--st-space-s, 16px); color: var(--st-color-muted, #5c5c5c); }
.ticket-box p:last-child { margin-bottom: 0; }
.slide-media { margin: 0; }
.slide-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.slide-media figcaption { margin-top: var(--st-space-xs, 8px); font-size: .85rem; color: var(--st-color-muted, #5c5c5c); }


/* Hero-Feinschliff (Homepage Stage) */
.module--stage .stage__box {
  background: #ffffff;
  max-width: 480px;
  padding: 32px 40px 36px;
}
.module--stage .stage__headline { word-break: normal; }
.module--stage .stage__headline-2 { color: var(--st-color-accent); }
.module--stage .stage__media { position: relative; }
.module--stage .stage__credit {
  position: absolute;
  left: 16px;
  bottom: 12px;
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  z-index: 2;
}

/* ==== Willkommen / Intro (Homepage) ==== */
.module--intro .module__inner { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
.module--intro .module__headline { text-align: center; line-height: 1.02; margin-bottom: var(--st-space-m); }
.module--intro .module__headline .module__headline-1 { display: block; color: var(--st-color-primary, #002f5d); }
.module--intro .module__headline .module__headline-2 { display: block; color: var(--st-color-accent); }
.module--intro .module__text { max-width: 680px; margin-left: auto; margin-right: auto; }
.module--intro .module__text p { text-align: center; }

/* ==== Besichtigung Modul (besichtigung) ==== */
.module--besichtigung .module__inner { max-width: var(--st-maxwidth); margin: 0 auto; }
.besichtigung__row { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 48px; align-items: start; }
.besichtigung__media { display: flex; justify-content: center; }
.besichtigung__img { max-width: 100%; height: auto; }
.besichtigung__body { padding-top: 8px; }
.besichtigung__topline { color: var(--st-color-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; margin: 0 0 .4rem; }
.besichtigung__headline { margin: 0 0 1.4rem; line-height: 1.0; }
.besichtigung__headline .module__headline-1 { display: block; color: var(--st-color-primary, #002f5d); }
.besichtigung__headline .module__headline-2 { display: block; color: var(--st-color-accent); }
.besichtigung__hours-title { text-transform: uppercase; color: var(--st-color-primary, #002f5d); font-size: 1.25rem; margin: 0 0 .8rem; }
.besichtigung__heute { display: inline-flex; align-items: center; gap: .3rem; color: var(--st-color-accent); font-weight: 700; text-transform: uppercase; text-decoration: none; margin-bottom: 1rem; }
.besichtigung__times { display: flex; flex-wrap: wrap; gap: 40px 56px; margin-bottom: 1.2rem; }
.besichtigung__time { display: flex; flex-direction: column; }
.besichtigung__time-title { text-transform: uppercase; font-weight: 700; color: var(--st-color-primary, #002f5d); font-size: .9rem; margin-bottom: .3rem; }
.besichtigung__time-hours { color: var(--st-color-text); font-size: .95rem; line-height: 1.4; }
.besichtigung__hinweis { color: var(--st-color-muted); font-size: .8rem; margin: .2rem 0 1.4rem; }
.besichtigung__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
@media (max-width: 782px) { .besichtigung__row { grid-template-columns: 1fr; gap: 24px; } .besichtigung__media { justify-content: flex-start; } }


/* =========================================================
   Module: Michel Paralax (parallax)
   ========================================================= */
.module--parallax { overflow: hidden; }
.module--parallax .module__inner { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.plx { position: relative; }
.plx__block { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; position: relative; }
.plx__block--1 { z-index: 2; }
.plx__block--2 { z-index: 1; margin-top: -80px; }
.plx__media { position: relative; }
.plx__img { display: block; width: 100%; height: auto; object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
/* Block 1: image reaches to left screen edge */
.plx__block--1 .plx__media--left { margin-left: calc(50% - 50vw); }
.plx__block--1 .plx__media--left .plx__img { width: 100%; }
/* Block 2: image reaches to right screen edge */
.plx__block--2 .plx__media--right { margin-right: calc(50% - 50vw); }
.plx__body { max-width: 480px; }
.plx__block--1 .plx__body { justify-self: start; }
.plx__block--2 .plx__body { justify-self: end; }
.plx__topline { color: var(--st-color-accent, #B51F29); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; margin: 0 0 8px; }
.plx__headline { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.02; font-weight: 700; text-transform: uppercase; margin: 0 0 20px; }
.plx__headline .plx__hl { display: block; }
.plx__headline .plx__hl--1 { color: var(--st-color-primary, #002f5d); }
.plx__headline .plx__hl--2 { color: var(--st-color-accent, #B51F29); }
.plx__text { color: var(--st-color-muted, #5c5c5c); font-size: 1rem; line-height: 1.65; margin: 0 0 28px; }
.plx__text p { margin: 0 0 1em; }
.plx__actions { margin-top: 8px; }
.plx .btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .95rem; transition: background .2s, color .2s, border-color .2s; }
.plx .btn--primary { background: var(--st-color-primary, #002f5d); color: #fff; border: 2px solid var(--st-color-primary, #002f5d); }
.plx .btn--primary:hover { background: #01223f; border-color: #01223f; }
.plx .btn--outline { background: #fff; color: var(--st-color-primary, #002f5d); border: 2px solid var(--st-color-primary, #002f5d); }
.plx .btn--outline:hover { background: var(--st-color-primary, #002f5d); color: #fff; }
.plx__arrow { font-size: 1.1em; line-height: 1; }
@media (max-width: 860px) {
  .plx__block { grid-template-columns: 1fr; gap: 24px; }
  .plx__block--2 { margin-top: 32px; }
  .plx__block--1 .plx__media--left { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .plx__block--2 .plx__media--right { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .plx__block--2 .plx__body { justify-self: start; order: -1; }
  .plx__body { max-width: none; }
}
