/* ===== Self-hosted fonts (OFL) — no external font requests (GDPR) =====
   Poppins is the site default (--font-body); Andika is selectable per text
   block (style registry 'font' context → .mc-font--andika). */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/poppins-v24-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poppins-v24-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins-v24-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/poppins-v24-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Andika';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/andika-v27-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Andika';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/andika-v27-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Agbalumo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/agbalumo-v6-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Freckle Face';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/freckle-face-v16-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Lavishly Yours';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/lavishly-yours-v7-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/noto-serif-v33-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/noto-serif-v33-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/noto-serif-v33-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Tangerine';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/tangerine-v18-latin-regular.woff2') format('woff2');
}

:root {
  --color-primary:        #00ff41;
  --color-primary-dark:   #00c433;
  --color-secondary:      #00ffd5;
  --color-secondary-dark: #00c9a8;
  --color-text:           #4aff70;
  --color-muted:          #35b356;
  --color-bg:             #050a06;
  --color-bg-alt:         #0a140c;
  --color-border:         #12421f;

  --font-body: ui-monospace, "Cascadia Code", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;

  --header-h: 80px;
  --container-w: 1140px;
  --radius-sm: 0;
  --radius-md: 0;
  --shadow-md: 0 0 20px rgba(0, 255, 65, 0.15);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 var(--space-2); }
a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { color: var(--color-primary-dark); text-decoration: underline; text-shadow: 0 0 8px rgba(0, 255, 65, 0.55); }

::selection { background: var(--color-primary); color: var(--color-bg); }

/* Subtle CRT scanlines over the whole viewport (terminal look). */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
}

@keyframes mc-blink { 50% { opacity: 0; } }

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

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--color-primary); color: var(--color-bg); padding: var(--space-1) var(--space-2);
  z-index: 1000;
}
.skip-link:focus { top: 0; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ===== Header / Nav ===== */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Solid state: when scrolled away from the top, or when mobile menu is open */
.site-header.is-scrolled,
.site-header:has(.nav-toggle:checked) {
  background: rgba(5, 10, 6, 0.92);
  border-bottom-color: var(--color-border);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 12px rgba(0, 255, 65, 0.12);
}

.site-header__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  text-decoration: none;
}
.site-header__logo:hover { text-decoration: none; }
.site-header__logo img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}
.site-header__title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  max-width: 34rem; /* long titles wrap instead of pushing the nav out */
  /* Same treatment as .site-nav__link: neon over the hero at top … */
  color: var(--color-primary);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
/* … dark once scrolled onto the solid header (or with the mobile menu open). */
.site-header.is-scrolled .site-header__title,
.site-header:has(.nav-toggle:checked) .site-header__title {
  color: var(--color-text);
  text-shadow: none;
}
@media (max-width: 1000px) {
  .site-header__title { display: none; } /* keep logo + nav/burger usable */
}

.site-nav__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: var(--space-3);
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.25rem;
  font-weight: 600;
  color: var(--color-primary);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.site-header.is-scrolled .site-nav__link,
.site-header:has(.nav-toggle:checked) .site-nav__link {
  color: var(--color-text);
  text-shadow: none;
}
.site-nav__link:hover { color: var(--color-primary); text-decoration: none; }

.site-nav__submenu {
  list-style: none;
  margin: 0; padding: var(--space-1) 0;
  position: absolute;
  top: calc(100% - 4px);
  left: -1rem;
  min-width: 220px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.site-nav__item:hover > .site-nav__submenu,
.site-nav__item:focus-within > .site-nav__submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav__submenu li a {
  display: block;
  padding: var(--space-1) var(--space-2);
  color: var(--color-text);
}
.site-nav__submenu li a:hover,
.site-nav__submenu li a[aria-current="page"] {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  text-decoration: none;
}

.caret { font-size: 0.75rem; color: var(--color-muted); }

/* mobile hamburger (checkbox hack) */
.nav-toggle, .nav-toggle__label { display: none; }

@media (max-width: 900px) {
  .nav-toggle__label {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px; height: 24px;
    cursor: pointer;
  }
  .nav-toggle__label span {
    display: block; height: 3px; background: var(--color-primary); border-radius: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.6);
    transition: background 0.25s ease, box-shadow 0.25s ease;
  }
  .site-header.is-scrolled .nav-toggle__label span,
  .site-header:has(.nav-toggle:checked) .nav-toggle__label span {
    background: var(--color-text);
    box-shadow: none;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 100vh; overflow-y: auto; }

  .site-nav__list { flex-direction: column; gap: 0; padding: var(--space-2); }
  .site-nav__item { width: 100%; }
  .site-nav__submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding-left: var(--space-3);
  }
}

/* ===== Hero ===== */

.hero {
  position: relative;
  height: clamp(420px, 70vh, 720px);
  overflow: hidden;
  color: var(--color-text);
}

.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }

.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,10,4,0.5) 0%, rgba(0,10,4,0.8) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Rotating content (hero without "static content"): one overlay per slide,
   stacked and cross-faded by slider.js in sync with the images. */
.hero__content--slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}
.hero__content--slide.is-active { opacity: 1; pointer-events: auto; }

.hero__title { color: var(--color-primary); margin: 0 0 var(--space-2); text-shadow: 0 2px 12px rgba(0,0,0,0.7); }
.hero__title::after { content: '_'; animation: mc-blink 1.1s steps(1) infinite; }
.hero__sub  { color: var(--color-text); max-width: 38rem; font-size: 1.15rem; margin: 0 auto var(--space-3); text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 0;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 0 14px rgba(0, 255, 65, 0.5); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-bg);
}
.btn--primary:hover { background: var(--color-primary-dark); color: var(--color-bg); }

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(0, 255, 65, 0.7);
}
.btn--ghost:hover { background: rgba(0, 255, 65, 0.12); color: var(--color-primary); }

.hero__dots {
  position: absolute;
  bottom: var(--space-3);
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
  z-index: 3;
}
.hero__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.hero__dot.is-active { background: var(--color-primary); }

.hero__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,10,4,0.4);
  color: var(--color-primary);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s;
}
.hero__nav:hover { background: rgba(0,10,4,0.65); }
.hero__nav--prev { left: var(--space-2); }
.hero__nav--next { right: var(--space-2); }

/* ===== Page wrapper for non-home pages ===== */

.page-hero {
  background: linear-gradient(135deg, #08210f 0%, #030d06 100%);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  padding: calc(var(--header-h) + var(--space-5)) 0 var(--space-5);
  text-align: center;
}
.page-hero h1 { color: var(--color-primary); margin: 0; }
.page-hero h1::after { content: '_'; animation: mc-blink 1.1s steps(1) infinite; }
.page-hero p  { color: var(--color-text); max-width: 36rem; margin: var(--space-2) auto 0; }

.page {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3);
}
.page .lead {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

/* ===== Content blocks (text+image, text+card) =====
   Both share the same two-column layout. No alternating section background. */

.ti-block,
.tc-block {
  padding: var(--space-5) 0;
}

.ti-block__inner,
.tc-block__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.ti-block--image-left  .ti-block__media { order: 1; }
.ti-block--image-left  .ti-block__text  { order: 2; }
.ti-block--image-right .ti-block__media { order: 2; }
.ti-block--image-right .ti-block__text  { order: 1; }

.tc-block--card-left   .tc-block__card  { order: 1; }
.tc-block--card-left   .tc-block__text  { order: 2; }
.tc-block--card-right  .tc-block__card  { order: 2; }
.tc-block--card-right  .tc-block__text  { order: 1; }

.ti-block__eyebrow,
.tc-block__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 var(--space-1);
}
.ti-block__heading,
.tc-block__heading { margin-top: 0; }

.ti-block__body p:last-child,
.tc-block__body p:last-child { margin-bottom: 0; }

.ti-block__media img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.ti-block__media--empty {
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(45deg, var(--color-border) 0 8px, transparent 8px 16px);
  aspect-ratio: 4 / 3;
}

/* Card sits in the image slot: same rounded-rectangle silhouette,
   light tinted background, soft shadow. Always contrasts with whichever
   section background it sits on (white card on alt rows, tinted on default rows). */
.tc-block__card {
  background: linear-gradient(180deg, rgba(0, 255, 65, 0.05), rgba(0, 255, 65, 0.10));
  border: 1px solid rgba(0, 255, 65, 0.35);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tc-block__card-title {
  margin: 0 0 var(--space-2);
  color: var(--color-primary);
  font-size: 1.25rem;
}
.tc-block__card-body p:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
  .ti-block__inner,
  .tc-block__inner { grid-template-columns: 1fr; gap: var(--space-3); }

  .ti-block--image-left  .ti-block__media,
  .ti-block--image-right .ti-block__media,
  .tc-block--card-left   .tc-block__card,
  .tc-block--card-right  .tc-block__card  { order: 0; }

  .ti-block--image-left  .ti-block__text,
  .ti-block--image-right .ti-block__text,
  .tc-block--card-left   .tc-block__text,
  .tc-block--card-right  .tc-block__text  { order: 1; }
}

/* ===== Intro / contact-teaser on home ===== */

.intro {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: var(--space-6) var(--space-3) var(--space-4);
  text-align: center;
}
.intro h2 { margin-bottom: var(--space-3); }
.intro p { max-width: 42rem; margin-left: auto; margin-right: auto; color: var(--color-muted); }

.contact-teaser {
  background: var(--color-bg-alt);
  padding: var(--space-6) 0;
  text-align: center;
}
.contact-teaser__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.contact-teaser__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
  text-align: left;
}
.contact-teaser__col h2 { margin-top: 0; }
@media (max-width: 800px) {
  .contact-teaser__inner--split {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ===== Calendar / appointments list ===== */

.cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cal-list__heading {
  margin: 0 0 var(--space-2);
  color: var(--color-primary);
  font-size: 1.25rem;
}
.cal-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.cal-list__item:last-child { border-bottom: 0; }
.cal-item__date {
  font-weight: 600;
  color: var(--color-primary-dark);
}
.cal-item__time { color: var(--color-muted); }
.cal-item__title { flex-basis: 100%; }
.cal-list__empty {
  color: var(--color-muted);
  margin: 0;
}

/* Appointments appended to the bottom of an "Auf einen Blick" card */
.cal-card-termine {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(0, 255, 65, 0.35);
}
.cal-card-termine h4 {
  margin: 0 0 var(--space-1);
  color: var(--color-primary);
  font-size: 1rem;
}
.cal-card-termine .cal-list__item { padding: 0.35rem 0; }

/* ===== Fediverse mosaic ===== */

.mc-fedi-block { padding: var(--space-5) 0; }
.mc-fedi-block h2 {
  text-align: center;
  margin-bottom: var(--space-3);
}
.mc-fedi-block--inline { padding: 0; }
.mc-fedi-block--inline h3 {
  text-align: left;
  margin-top: 0;
}

.mc-fedi {
  display: grid;
  grid-template-columns: repeat(var(--mc-fedi-cols, 4), 1fr);
  gap: var(--space-2);
}
.mc-fedi__item {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mc-fedi__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1; /* uniform square mosaic regardless of source aspect */
  object-fit: cover;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mc-fedi__item:hover .mc-fedi__img,
.mc-fedi__item:focus-visible .mc-fedi__img {
  transform: scale(1.03);
  opacity: 0.92;
}
/* keep_ratio checked: no square crop, rows align to the top */
.mc-fedi--natural { align-items: start; }
.mc-fedi--natural .mc-fedi__img {
  aspect-ratio: auto;
  height: auto;
}
.mc-fedi__empty {
  color: var(--color-muted);
  margin: 0;
}

@media (max-width: 800px) {
  .mc-fedi { grid-template-columns: repeat(2, 1fr); }
  .mc-fedi--single { grid-template-columns: 1fr; } /* a 1-column mosaic stays 1 */
}

/* ===== Forms ===== */

.form {
  max-width: 38rem;
  margin: 0 auto;
}
.form__row { margin-bottom: var(--space-2); }
.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.form input[type=text],
.form input[type=email],
.form input[type=tel],
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--color-bg-alt);
  color: var(--color-text);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: transparent;
}

/* honeypot — keep visually hidden but accessible to bots */
.form__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.alert {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}
.alert--success { background: #05240f; color: #00ff41; border: 1px solid #14672c; }
.alert--error   { background: #2a0708; color: #ff5555; border: 1px solid #7a1c1c; }

/* ===== Footer ===== */

.site-footer {
  background: #020804;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  margin-top: var(--space-6);
}
.site-footer__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.site-footer__inner p { margin: 0; }
.site-footer a { color: var(--color-primary); }

@media (max-width: 600px) {
  .site-footer__inner { justify-content: center; }
}

/* ===== Map embed for /anfahrt ===== */
.map-wrap {
  max-width: var(--container-w);
  margin: var(--space-4) auto;
  padding: 0 var(--space-3);
}
.map-wrap iframe {
  width: 100%;
  height: 480px;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ===== Utility: prose lists on subpages ===== */
.page article ul {
  padding-left: 1.25rem;
}
.page article ul li {
  margin-bottom: var(--space-1);
}

/* ===== μCMS composable blocks =====
   sections → columns (.mc-row) → content blocks (.mc-richtext/.mc-image/…). */

.mc-row-section { padding: var(--space-5) 0; }

.mc-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
}
.mc-row--valign-top    { align-items: flex-start; }
.mc-row--valign-middle { align-items: center; }
.mc-row--valign-bottom { align-items: flex-end; }

/* Centered single-column ratios: content narrower than the container. */
.mc-row--50 { max-width: 50%; margin-inline: auto; }
.mc-row--66 { max-width: 66%; margin-inline: auto; }
.mc-col {
  /* flex grow is set inline from the column ratio; basis 0 = pure ratio split.
     --col-min-h is set inline from the column's Mindesthöhe option. */
  min-width: 16rem;
  min-height: var(--col-min-h, auto);
}
.mc-col > * { margin-top: 0; }
.mc-col > * + * { margin-top: var(--space-3); }

/* Columns with a Mindesthöhe: position the content inside the taller box
   according to the row's vertical alignment (default = top). */
.mc-col--minh { display: flex; flex-direction: column; justify-content: flex-start; }
.mc-row--valign-middle > .mc-col--minh { justify-content: center; }
.mc-row--valign-bottom > .mc-col--minh { justify-content: flex-end; }

/* richtext */
.mc-richtext > :first-child { margin-top: 0; }
.mc-richtext > :last-child  { margin-bottom: 0; }
.mc-richtext h2 { margin-top: 0; }
.mc-richtext--center { text-align: center; }
.mc-richtext--right  { text-align: right; }

/* quote block: horizontal rules above and below; opening mark top-left (rule
   runs from it to the right edge), closing mark bottom-right (rule runs from
   the left edge up to the right-aligned attribution, then the mark). */
.mc-quote { margin: 0; }
.mc-quote__head,
.mc-quote__foot {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.mc-quote__head::after,
.mc-quote__foot::before {
  content: '';
  flex: 1;
  border-top: 2px solid var(--color-primary);
}
.mc-quote__mark {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 600;
  color: var(--color-primary);
}
/* Nudge the glyph ink onto the rule: „ sits low in its box, “ sits high. */
.mc-quote__mark--open  { transform: translateY(-0.3em); }
.mc-quote__mark--close { transform: translateY(0.2em); }
.mc-quote blockquote {
  margin: 0;
  padding: var(--space-1) var(--space-2);
  font-style: italic;
}
.mc-quote blockquote p { margin: 0; }
.mc-quote__foot {
  font-size: 0.9rem;
  color: var(--color-muted, #667);
}
.mc-quote__source { font-style: italic; }

/* blockquote typed in a richtext block: compact left-border look */
.mc-richtext blockquote {
  margin: 0;
  padding: var(--space-1) 0 var(--space-1) var(--space-3);
  border-left: 4px solid var(--color-primary);
  font-style: italic;
}

/* Legibility on filled (dark) sections. */
.mc-row-section--primary .mc-quote__head::after,
.mc-row-section--primary .mc-quote__foot::before,
.mc-row-section--secondary .mc-quote__head::after,
.mc-row-section--secondary .mc-quote__foot::before { border-top-color: #fff; }
.mc-row-section--primary .mc-quote__mark,
.mc-row-section--primary .mc-quote__foot,
.mc-row-section--secondary .mc-quote__mark,
.mc-row-section--secondary .mc-quote__foot { color: #fff; }
.mc-row-section--primary .mc-richtext blockquote,
.mc-row-section--secondary .mc-richtext blockquote { border-left-color: #fff; }

/* image (mirrors the look of .ti-block__media) */
.mc-image { margin: 0; }
.mc-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
/* keep the image's natural aspect ratio (no cropping) */
.mc-image--natural img {
  aspect-ratio: auto;
  height: auto;
  object-fit: initial;
}
.mc-image figcaption {
  margin-top: var(--space-1);
  font-size: 0.9rem;
  color: var(--color-muted, #667);
  text-align: center;
}

/* ===== Section & column styles (see micro/lib/styles.php) ===== */

/* Section background fills (applied to the columns band). */
.mc-row-section--bg        { background: var(--color-bg-alt); }
.mc-row-section--primary   { background: var(--color-primary); }
.mc-row-section--secondary { background: var(--color-secondary); }
/* Legibility on filled (neon) sections: dark text on bright green/cyan. */
.mc-row-section--primary, .mc-row-section--secondary { color: var(--color-bg); }
.mc-row-section--primary :where(h1,h2,h3,h4,h5),
.mc-row-section--secondary :where(h1,h2,h3,h4,h5) { color: var(--color-bg); }
.mc-row-section--primary a:not(.btn),
.mc-row-section--secondary a:not(.btn) { color: var(--color-bg); text-decoration: underline; }

/* Column styles. Boxed/filled columns get inner padding; only the card style
   keeps rounded corners. */
.mc-col--card,
.mc-col--bg,
.mc-col--primary,
.mc-col--secondary { padding: var(--space-4); }

.mc-col--card {
  background: linear-gradient(180deg, rgba(0, 255, 65, 0.05), rgba(0, 255, 65, 0.10));
  border: 1px solid rgba(0, 255, 65, 0.35);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.mc-col--bg        { background: var(--color-bg-alt); }
.mc-col--primary   { background: var(--color-primary); }
.mc-col--secondary { background: var(--color-secondary); }

/* Light columns keep dark text even inside a filled section (card headings get
   the primary accent, echoing the old card block). Placed after the section
   rules so they win on equal specificity. */
.mc-col--card,  .mc-col--bg            { color: var(--color-text); }
.mc-col--bg   :where(h1,h2,h3,h4,h5)   { color: var(--color-text); }
.mc-col--card :where(h2,h3,h4)         { color: var(--color-primary); margin-top: 0; }
.mc-col--card :where(p,li),
.mc-col--bg   :where(p,li)             { color: var(--color-text); }
.mc-col--card a:not(.btn),
.mc-col--bg   a:not(.btn)              { color: var(--color-primary); text-decoration: none; }

/* Filled (neon) columns: dark text on bright green/cyan. */
.mc-col--primary, .mc-col--secondary { color: var(--color-bg); }
.mc-col--primary :where(h1,h2,h3,h4,h5),
.mc-col--secondary :where(h1,h2,h3,h4,h5) { color: var(--color-bg); }
.mc-col--primary a:not(.btn),
.mc-col--secondary a:not(.btn) { color: var(--color-bg); text-decoration: underline; }

/* Image backgrounds (image / image-dark / image-light). The image URL itself
   is an inline style emitted by blocks/columns.php; these classes contribute
   sizing and the overlay variant (::before under the content). */
.mc-row-section--image,
.mc-row-section--image-dark,
.mc-row-section--image-light {
  background-size: cover;
  background-position: center;
  position: relative;
}
.mc-row-section--image > .container,
.mc-row-section--image-dark > .container,
.mc-row-section--image-light > .container { position: relative; }

.mc-row-section--image-dark::before,
.mc-row-section--image-light::before {
  content: '';
  position: absolute;
  inset: 0;
}
.mc-row-section--image-dark::before  { background: rgba(0, 8, 3, 0.6); }
.mc-row-section--image-light::before { background: rgba(255, 255, 255, 0.65); }

/* Dark-overlay sections: neon text over the darkened image. */
.mc-row-section--image-dark { color: var(--color-text); }
.mc-row-section--image-dark :where(h1,h2,h3,h4,h5) { color: var(--color-primary); }
.mc-row-section--image-dark a:not(.btn) { color: var(--color-primary); text-decoration: underline; }

/* Light-overlay sections: near-black text — the neon body green is unreadable
   on a whitened image. */
.mc-row-section--image-light { color: #06180b; }
.mc-row-section--image-light :where(h1,h2,h3,h4,h5) { color: #06180b; }
.mc-row-section--image-light a:not(.btn) { color: #06180b; text-decoration: underline; }

/* Image-background columns: boxed like the filled column styles. */
.mc-col--image,
.mc-col--image-dark,
.mc-col--image-light {
  padding: var(--space-4);
  background-size: cover;
  background-position: center;
  position: relative;
}
.mc-col--image > *,
.mc-col--image-dark > *,
.mc-col--image-light > * { position: relative; }

.mc-col--image-dark::before,
.mc-col--image-light::before {
  content: '';
  position: absolute;
  inset: 0;
}
.mc-col--image-dark::before  { background: rgba(0, 8, 3, 0.6); }
.mc-col--image-light::before { background: rgba(255, 255, 255, 0.65); }

.mc-col--image-dark { color: var(--color-text); }
.mc-col--image-dark :where(h1,h2,h3,h4,h5) { color: var(--color-primary); }
.mc-col--image-dark a:not(.btn) { color: var(--color-primary); text-decoration: underline; }

.mc-col--image-light { color: #06180b; }
.mc-col--image-light :where(h1,h2,h3,h4,h5) { color: #06180b; }
.mc-col--image-light a:not(.btn) { color: #06180b; text-decoration: underline; }

/* Per-text-block fonts (style registry 'font' context). The default ('' =
   Standard) is never stored on blocks — they simply inherit --font-body. */
.mc-font--andika         { font-family: 'Andika', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.mc-font--agbalumo       { font-family: 'Agbalumo', 'Segoe UI', Roboto, sans-serif; }
.mc-font--freckle-face   { font-family: 'Freckle Face', 'Segoe UI', Roboto, sans-serif; }
.mc-font--lavishly-yours { font-family: 'Lavishly Yours', cursive; }
.mc-font--noto-serif     { font-family: 'Noto Serif', Georgia, 'Times New Roman', serif; }
.mc-font--tangerine      { font-family: 'Tangerine', cursive; }

/* button */
.btn--secondary { background: var(--color-secondary); color: var(--color-bg); }
.btn--secondary:hover { background: var(--color-secondary-dark); color: var(--color-bg); }
.btn--primary-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--primary-outline:hover { background: var(--color-primary); color: var(--color-bg); }
.btn--secondary-outline { background: transparent; color: var(--color-secondary); border-color: var(--color-secondary); }
.btn--secondary-outline:hover { background: var(--color-secondary); color: var(--color-bg); }

/* button group: wrapping flex row, alignment via justify-content */
.mc-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.mc-buttons--center { justify-content: center; }
.mc-buttons--right  { justify-content: flex-end; }
.mc-buttons-section { padding: var(--space-4) 0; }

/* button icons (mc_button_icons() glyphs, fill=currentColor follows the
   button text color); icon-only buttons keep the pill shape but square up */
.btn__icon { width: 1.1em; height: 1.1em; vertical-align: -0.15em; margin-right: 0.45em; }
.btn__icon--after { margin-right: 0; margin-left: 0.45em; }
.btn--icon-only { padding: 0.85em 1.1em; }
.btn--icon-only .btn__icon { margin: 0; }

/* ===== "opens in new tab" link icon (per-page setting) ===== */

/* .mc-newtab-icons is set on <main> by the header partial when the page's
   "Externe Links markieren" checkbox is on. Marks content links that open in
   a new tab; buttons (own icon system) and links around images are excluded.
   The masked SVG inherits the link color via currentColor. */
.mc-newtab-icons a[target="_blank"]:not(.btn)::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.3em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
}
.mc-newtab-icons a[target="_blank"]:has(img)::after { content: none; }

/* contact form block wrapper (works as a full section or inside a column) */
.mc-contact { max-width: 38rem; margin: 0 auto; padding: var(--space-4) var(--space-3); }
.mc-contact .form { margin-top: var(--space-3); }

/* collapsed contact form: native <details>, the summary styled as a button */
.mc-contact__toggle {
  list-style: none;           /* hide the default disclosure marker */
  cursor: pointer;
  display: inline-block;
  width: auto;
  margin-bottom: 0;
}
.mc-contact__toggle::-webkit-details-marker { display: none; }
.mc-contact__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.mc-contact__box[open] > .mc-contact__toggle { margin-bottom: var(--space-2); }

/* calendar block wrapper */
.calendar-block { padding: var(--space-5) 0; }
.calendar-block h2 { text-align: center; }

/* calendar inside a column: no full-bleed padding, heading left-aligned */
.calendar-block--inline { padding: 0; }
.calendar-block--inline h3 { text-align: left; margin-top: 0; }

/* footer links row */
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}
.site-footer__links a + a {
  border-left: 1px solid rgba(0, 255, 65, 0.3);
  padding-left: var(--space-2);
}

@media (max-width: 800px) {
  .mc-row { gap: var(--space-3); }
  /* Stacked columns: desktop min heights would only bloat the page. Reset the
     min-height PROPERTY, not the --col-min-h var — the var is set in the
     inline style attribute, which no stylesheet rule can override. */
  .mc-col { flex: 1 1 100% !important; min-width: 0; min-height: auto; }
  .mc-row--50, .mc-row--66 { max-width: 100%; } /* centered ratios go full width */
}
