/* Matilde Raumverwaltung - v0.2, scoped frontend CSS */

/* Theme-eigene Seitentitel werden seit 1.1.88 serverseitig entfernt.
   Bewusst kein verstecktes H1 per CSS mehr. */

body.mrv-plugin-page .content-area,
body.mrv-plugin-page .site-main,
body.mrv-plugin-page .entry-content,
body.mrv-plugin-page .entry-content-wrap {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.mrv-plugin-page .entry-content-wrap {
  padding: 0 !important;
}

body.mrv-plugin-page .entry-content > .mrv {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.mrv {
  --mrv-primary: var(--global-palette1, var(--wp--preset--color--vivid-purple, var(--mrv-fallback-primary, #9b51e0)));
  --mrv-primary-dark: var(--global-palette2, var(--mrv-fallback-primary-dark, #7c3aed));
  --mrv-gold: var(--mrv-fallback-gold, #b77900);
  --mrv-ink: var(--global-palette3, #1b1028);
  --mrv-text: var(--global-palette4, #2d2438);
  --mrv-soft: var(--global-palette5, #675a75);
  --mrv-muted: var(--global-palette6, #8b7f99);
  --mrv-line: rgba(36, 20, 52, .12);
  --mrv-bg: var(--global-palette9, #ffffff);
  --mrv-cream: #fffaf3;
  --mrv-lilac: var(--global-palette8, #fbf7ff);
  --mrv-lilac-2: var(--global-palette7, #f3eaff);
  --mrv-green: #157f52;
  --mrv-red: #b42318;
  --mrv-radius: 30px;
  --mrv-radius-lg: 46px;
  --mrv-shadow-soft: 0 24px 70px rgba(42, 25, 64, .12);
  --mrv-shadow-small: 0 12px 32px rgba(42, 25, 64, .10);
  color: var(--mrv-text);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.7;
  background: var(--mrv-bg);
}

.mrv *, .mrv *::before, .mrv *::after { box-sizing: border-box; }
.mrv img { max-width: 100%; height: auto; }
.mrv a { color: var(--mrv-primary); text-underline-offset: .18em; }
.mrv h1, .mrv h2, .mrv h3 { color: var(--mrv-ink); margin: 0 0 1rem; line-height: .98; letter-spacing: -.055em; }
.mrv h1 { font-size: clamp(3.2rem, 8vw, 7.8rem); max-width: 9.5ch; }
.mrv h2 { font-size: clamp(2rem, 5vw, 4.9rem); max-width: 13ch; }
.mrv h3 { font-size: clamp(1.12rem, 1.6vw, 1.35rem); letter-spacing: -.02em; line-height: 1.12; }
.mrv h1 em, .mrv h2 em {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--mrv-gold);
}
.mrv-cta h2 em { color: #ffd9a0; }
.mrv p { margin-top: 0; }
.mrv .mrv-kicker,
.mrv .mrv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  color: var(--mrv-primary-dark);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.mrv .mrv-kicker::before,
.mrv .mrv-eyebrow::before {
  content: "";
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  background: var(--mrv-primary);
  box-shadow: 0 0 0 .35rem rgba(155, 81, 224, .12);
}
.mrv-muted { color: var(--mrv-soft); }
.mrv-price { color: var(--mrv-primary); font-weight: 900; }

.mrv-btn {
  --btn-bg: var(--mrv-primary);
  --btn-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .92rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-color) !important;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(155, 81, 224, .22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.mrv-btn:hover, .mrv-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(155, 81, 224, .28); }
.mrv-btn--primary:hover { --btn-bg: var(--mrv-primary-dark); }
.mrv-btn--light { --btn-bg: #fff; --btn-color: var(--mrv-ink); border-color: rgba(155,81,224,.18); box-shadow: 0 14px 30px rgba(36,20,52,.08); }
.mrv-btn--ghost { --btn-bg: rgba(255,255,255,.16); --btn-color: #fff; border-color: rgba(255,255,255,.45); box-shadow: none; backdrop-filter: blur(10px); }
.mrv-btn--ghost-dark { --btn-bg: rgba(255,255,255,.12); --btn-color: #fff; border-color: rgba(255,255,255,.28); box-shadow: none; }
.mrv-card .mrv-btn--ghost, .mrv-dashboard .mrv-btn--ghost { --btn-bg: var(--mrv-lilac); --btn-color: var(--mrv-ink); border-color: var(--mrv-line); }
.mrv-link {
  color: var(--mrv-primary);
  font-weight: 900;
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size .3s ease;
}
.mrv-link:hover, .mrv-link:focus-visible { background-size: 100% 2px; }
.mrv a:focus-visible, .mrv button:focus-visible, .mrv input:focus-visible, .mrv textarea:focus-visible { outline: 3px solid rgba(155, 81, 224, .45); outline-offset: 2px; }
.mrv-actions { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.mrv-actions--center { justify-content: center; }

.mrv-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: clamp(4.8rem, 8vw, 8.5rem) 0; }
.mrv-section__head { max-width: 920px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.mrv-section__head--center { margin-inline: auto; text-align: center; }
.mrv-section__head--center h2 { margin-inline: auto; }
.mrv-narrow { max-width: 760px; }

/* Editorial home */
.mrv-home { overflow: clip; background: linear-gradient(180deg, #fff 0%, #fbf8ff 44%, #fff 100%); }
.mrv-hero--atelier { position: relative; min-height: clamp(720px, 92vh, 980px); display: flex; align-items: center; overflow: hidden; background: radial-gradient(circle at 12% 8%, rgba(155,81,224,.18), transparent 32%), radial-gradient(circle at 82% 18%, rgba(183,121,0,.11), transparent 34%), linear-gradient(135deg, #fff 0%, #fbf7ff 58%, #fffaf3 100%); }
.mrv-hero--atelier::before, .mrv-cta--editorial::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .16; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); }
.mrv-hero__glow { position: absolute; inset: auto -14vw -26vw auto; width: 62vw; height: 62vw; border-radius: 50%; background: rgba(155,81,224,.13); filter: blur(55px); pointer-events: none; }
.mrv-hero__inner { position: relative; z-index: 1; width: min(1260px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); align-items: center; gap: clamp(2rem, 5vw, 6rem); padding: clamp(4rem, 8vw, 7rem) 0; }
.mrv-hero__copy { position: relative; z-index: 2; }
.mrv-lead { max-width: 640px; font-size: clamp(1.08rem, 1.8vw, 1.35rem); color: var(--mrv-soft); }
.mrv-hero__note { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.mrv-hero__note span { display: inline-flex; padding: .62rem .85rem; border-radius: 999px; border: 1px solid rgba(155,81,224,.2); background: rgba(255,255,255,.76); color: var(--mrv-ink); font-weight: 850; box-shadow: 0 10px 30px rgba(42,25,64,.07); }
.mrv-hero__visual { position: relative; min-height: min(60vw, 650px); }
.mrv-visual-card { position: absolute; margin: 0; overflow: hidden; background: #fff; box-shadow: var(--mrv-shadow-soft); }
.mrv-visual-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mrv-visual-card--main { inset: 5% 7% 8% 5%; border-radius: 46% 54% 38% 62% / 38% 44% 56% 62%; transform: rotate(-2.5deg); }
.mrv-visual-card--small { width: 36%; height: 34%; border: 10px solid #fff; border-radius: 34px; }
.mrv-visual-card--one { right: 0; top: 2%; transform: rotate(6deg); }
.mrv-visual-card--two { left: 0; bottom: 0; transform: rotate(-7deg); }
.mrv-hero__seal { position: absolute; right: 8%; bottom: 3%; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: var(--mrv-ink); color: #fff; text-align: center; font-weight: 900; line-height: 1.05; box-shadow: 0 18px 44px rgba(27,16,40,.22); }
.mrv-hero__seal::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.45); animation: mrv-spin 26s linear infinite; }
@keyframes mrv-spin { to { transform: rotate(360deg); } }
.mrv-hero__seal small { color: #ddc6ff; font-size: .72em; letter-spacing: .12em; text-transform: uppercase; }

.mrv-facts { position: relative; z-index: 3; width: min(1180px, calc(100% - 40px)); margin: clamp(-3.2rem, -4vw, -2rem) auto 0; }
.mrv-facts__inner { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid rgba(155,81,224,.18); border-radius: 32px; background: rgba(255,255,255,.82); backdrop-filter: blur(18px); box-shadow: var(--mrv-shadow-small); overflow: hidden; }
.mrv-facts article { padding: 1.25rem 1.35rem; border-right: 1px solid rgba(155,81,224,.13); }
.mrv-facts article:last-child { border-right: 0; }
.mrv-facts strong { display: block; color: var(--mrv-ink); font-size: 1.05rem; }
.mrv-facts span { color: var(--mrv-soft); font-size: .95rem; }

.mrv-reveal-card { position: relative; display: grid; grid-template-columns: 180px minmax(0,1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.mrv-intro__label { position: sticky; top: 110px; color: rgba(155,81,224,.25); font-size: clamp(2rem, 4vw, 4rem); font-weight: 950; line-height: .88; writing-mode: vertical-rl; transform: rotate(180deg); }
.mrv-intro__content { padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--mrv-line); border-radius: var(--mrv-radius-lg); background: rgba(255,255,255,.86); box-shadow: var(--mrv-shadow-small); }
.mrv-text-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); font-size: 1.08rem; }

.mrv-gallery--magazine { padding-top: 2rem; }
.mrv-gallery--magazine .mrv-section__head h2 { max-width: 12ch; }
.mrv-gallery__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 115px; gap: 1rem; }
.mrv-gallery__item { position: relative; margin: 0; overflow: hidden; border-radius: 30px; background: var(--mrv-lilac); box-shadow: var(--mrv-shadow-small); }
.mrv-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, filter .6s ease; }
.mrv-gallery__item:hover img { transform: scale(1.045); filter: saturate(1.06); }
.mrv-gallery__item--1 { grid-column: span 5; grid-row: span 4; }
.mrv-gallery__item--2 { grid-column: span 4; grid-row: span 2; }
.mrv-gallery__item--3 { grid-column: span 3; grid-row: span 3; }
.mrv-gallery__item--4 { grid-column: 6 / span 4; grid-row: span 2; }
.mrv-gallery__item--5 { grid-column: span 3; grid-row: span 3; }
.mrv-gallery__item--6 { grid-column: span 4; grid-row: span 2; }

.mrv-usecases { position: relative; }
.mrv-usecases::before { content: ""; position: absolute; left: 50%; top: 8%; width: 46vw; height: 46vw; transform: translateX(-50%); border-radius: 50%; background: rgba(155,81,224,.08); filter: blur(50px); pointer-events: none; }
.mrv-card-grid { position: relative; display: grid; gap: 1rem; }
.mrv-card-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.mrv-card-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.mrv-card { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--mrv-line); border-radius: 30px; background: rgba(255,255,255,.88); box-shadow: var(--mrv-shadow-small); }
.mrv-card p:last-child { margin-bottom: 0; }
.mrv-card--soft, .mrv-course-card, .mrv-steps article { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.mrv-card--soft:hover, .mrv-course-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(42,25,64,.15); border-color: rgba(155,81,224,.3); }
.mrv-steps article:hover { transform: translateY(-4px); border-color: rgba(155,81,224,.3); }
.mrv-card--soft { min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, #fff, #fbf7ff); }
.mrv-card--soft span { width: fit-content; margin-bottom: auto; padding: .35rem .62rem; border-radius: 999px; background: rgba(155,81,224,.12); color: var(--mrv-primary-dark); font-weight: 950; }

.mrv-calendar-teaser { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mrv-calendar-teaser__panel { min-width: 0; }

.mrv-process { background: linear-gradient(180deg, #fbf7ff, #fff); }
.mrv-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.mrv-steps article { position: relative; padding: 1.35rem; border: 1px solid var(--mrv-line); border-radius: 28px; background: #fff; box-shadow: var(--mrv-shadow-small); }
.mrv-steps span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; margin-bottom: 1rem; color: #fff; background: var(--mrv-primary); font-weight: 900; }
.mrv-steps--line article:not(:last-child)::after { content: ""; position: absolute; right: -1.05rem; top: 3.1rem; width: 1.1rem; height: 2px; background: rgba(155,81,224,.22); }

.mrv-cta--editorial { position: relative; width: min(1120px, calc(100% - 40px)); padding: clamp(2.8rem, 6vw, 5.4rem); margin-block: clamp(4rem, 7vw, 7rem); border-radius: 44px; background: radial-gradient(circle at 18% 20%, rgba(255,255,255,.26), transparent 30%), linear-gradient(135deg, var(--mrv-primary), #5f27c9 58%, var(--mrv-ink)); box-shadow: 0 28px 80px rgba(82,42,139,.28); color: #fff; overflow: hidden; }
.mrv-cta--editorial::after { content: ""; position: absolute; inset: auto -80px -140px auto; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); }
.mrv-cta__inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; text-align: center; }
.mrv-cta h2, .mrv-cta p, .mrv-cta .mrv-kicker { color: #fff; margin-inline: auto; }
.mrv-cta .mrv-kicker::before { background: #fff; box-shadow: 0 0 0 .35rem rgba(255,255,255,.16); }
.mrv-contact-line { margin: 1.35rem 0 0; color: rgba(255,255,255,.82); }
.mrv-contact-line a { color: #fff; font-weight: 800; }
.mrv-contact-line span { margin-inline: .35rem; }

/* Calendar */
.mrv-calendar { padding: clamp(1.1rem, 3vw, 1.8rem); border: 1px solid var(--mrv-line); border-radius: var(--mrv-radius-lg); background: rgba(255,255,255,.9); box-shadow: var(--mrv-shadow-soft); }
.mrv-calendar--grid { width: min(1220px, calc(100% - 40px)); margin: clamp(2.5rem, 5vw, 4rem) auto; }
.mrv-calendar__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1rem; margin: -1rem 0 1.5rem; color: var(--mrv-soft); font-size: .95rem; }
.mrv-calendar__legend span { display: inline-flex; align-items: center; gap: .42rem; }
.mrv-calendar__legend i { display: inline-block; width: .82rem; height: .82rem; border-radius: .25rem; border: 1px solid var(--mrv-line); }
.mrv-legend-free { background: #f0fdf4; }
.mrv-legend-busy { background: #fff1f2; }
.mrv-legend-course { background: var(--mrv-lilac-2); }
.mrv-week-nav { display: none; align-items: stretch; gap: .6rem; margin-bottom: 1rem; }
.mrv-calendar--interactive .mrv-week-nav { display: flex; }
.mrv-week-nav__label { display: none; flex: 1; align-items: center; justify-content: center; text-align: center; font-weight: 900; color: var(--mrv-ink); font-size: .95rem; }
.mrv-week-tabs { flex: 1; display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .35rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.mrv-week-tab, .mrv-week-nav__btn { border: 1px solid var(--mrv-line); background: #fff; color: var(--mrv-ink); border-radius: 18px; cursor: pointer; font: inherit; font-weight: 900; transition: .2s ease; }
.mrv-week-tab { flex: 0 0 auto; min-width: 132px; display: grid; gap: .12rem; padding: .72rem .85rem; text-align: left; }
.mrv-month-jump select { min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--mrv-line); border-radius: 14px; background: #fff; color: var(--mrv-ink); font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; }
.mrv-week-loading { margin: 1.4rem 0; text-align: center; color: var(--mrv-muted); font-weight: 700; }
.mrv-week-retry { border: 1px solid var(--mrv-line); background: #fff; color: var(--mrv-primary-dark); border-radius: 999px; padding: .35rem .9rem; font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer; }
.mrv-week-retry:hover { background: var(--mrv-lilac); }
.mrv-week-tab small { color: var(--mrv-muted); font-weight: 700; }
.mrv-week-tab.is-active, .mrv-week-tab:hover { border-color: rgba(155,81,224,.42); background: var(--mrv-lilac); color: var(--mrv-primary-dark); }
.mrv-week-nav__btn { width: 48px; font-size: 1.6rem; }
.mrv-week-nav__btn:hover { background: var(--mrv-lilac); }
.mrv-calendar--interactive .mrv-week-panel { display: none; }
.mrv-calendar--interactive .mrv-week-panel.is-active { display: block; }
.mrv-week-title { margin: 0 0 .8rem; color: var(--mrv-ink); }
.mrv-week-grid { display: grid; grid-template-columns: 76px repeat(7, minmax(104px, 1fr)); border: 1px solid var(--mrv-line); border-radius: 24px; overflow: hidden; background: #fff; }
.mrv-week-corner, .mrv-week-day-head, .mrv-time-cell, .mrv-slot { border-right: 1px solid var(--mrv-line); border-bottom: 1px solid var(--mrv-line); }
.mrv-week-day-head:nth-child(8n), .mrv-slot:nth-child(8n) { border-right: 0; }
.mrv-week-corner, .mrv-week-day-head { position: sticky; top: 0; z-index: 2; background: rgba(255,255,255,.96); }
.mrv-week-corner { display: grid; place-items: center; color: var(--mrv-muted); font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.mrv-week-day-head { padding: .8rem .65rem; text-align: center; }
.mrv-week-day-head span { display: block; color: var(--mrv-primary-dark); font-size: .78rem; font-weight: 950; text-transform: uppercase; letter-spacing: .11em; }
.mrv-week-day-head strong { display: block; color: var(--mrv-ink); }
.mrv-week-day-head.is-today { background: var(--mrv-lilac); }
.mrv-time-cell { min-height: 70px; padding: .7rem .45rem; color: var(--mrv-muted); font-size: .86rem; font-weight: 900; background: #fff; }
.mrv-slot { position: relative; min-height: 70px; padding: .48rem .5rem; font-size: .85rem; background: #fff; overflow: hidden; }
.mrv-slot.is-free { background: linear-gradient(180deg, #fbfffd, #f0fdf4); color: #166534; }
.mrv-slot.is-free:hover { outline: 2px solid rgba(21,127,82,.18); outline-offset: -2px; }
.mrv-slot.is-busy { background: linear-gradient(180deg, #fff6f7, #fff1f2); color: var(--mrv-red); }
.mrv-slot.is-course { background: linear-gradient(180deg, #fbf7ff, #efe4ff); color: var(--mrv-primary-dark); }
.mrv-slot.is-past { opacity: .46; background: #f8f8f8; color: var(--mrv-muted); }
.mrv-slot__free, .mrv-slot__past { font-weight: 800; font-size: .78rem; }
.mrv-slot__time { display: block; font-size: .74rem; font-weight: 950; opacity: .74; }
.mrv-slot strong { display: block; line-height: 1.12; color: inherit; }
.mrv-slot a { display: inline-flex; margin-top: .2rem; font-weight: 900; font-size: .78rem; text-decoration: none; }
.mrv-slot__dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; opacity: .55; }

/* Auswählbare freie Slots */
.mrv-slot.is-free { padding: 0; }
.mrv-slot__pick {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 70px;
  border: 0;
  background: transparent;
  color: #166534;
  font: inherit;
  font-weight: 800;
  font-size: .78rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.mrv-slot__pick:hover { background: rgba(21, 127, 82, .12); }
.mrv-slot__pick[aria-pressed="true"] { background: var(--mrv-primary); color: #fff; font-weight: 900; box-shadow: inset 0 0 0 2px var(--mrv-primary-dark); }
.mrv-slot__pick[aria-pressed="true"]::before { content: "✓ "; }

/* Mobile Tagesansicht */
.mrv-day-view { display: none; }
.mrv-day-tabs { position: sticky; top: 0; z-index: 5; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(62px, 1fr); gap: .45rem; overflow-x: auto; padding: .4rem 0; margin-bottom: .85rem; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.mrv-day-tab { display: grid; gap: .08rem; justify-items: center; min-height: 54px; padding: .55rem .4rem; border: 1px solid var(--mrv-line); border-radius: 16px; background: #fff; font: inherit; cursor: pointer; transition: .2s ease; }
.mrv-day-tab span { font-size: .68rem; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; color: var(--mrv-primary-dark); }
.mrv-day-tab strong { color: var(--mrv-ink); font-size: .9rem; }
.mrv-day-tab.is-today:not(.is-active) { border-color: rgba(155, 81, 224, .5); }
.mrv-day-tab.is-active { background: var(--mrv-primary); border-color: var(--mrv-primary); box-shadow: 0 10px 22px rgba(155, 81, 224, .3); }
.mrv-day-tab.is-active span, .mrv-day-tab.is-active strong { color: #fff; }
.mrv-day-panel { display: none; }
.mrv-day-panel.is-active { display: grid; gap: .5rem; }
.mrv-day-slot { display: flex; align-items: center; gap: .8rem; min-height: 52px; padding: .55rem .75rem; border: 1px solid var(--mrv-line); border-radius: 16px; background: #fff; font-size: .92rem; }
.mrv-day-slot__time { min-width: 100px; font-weight: 900; font-size: .86rem; color: var(--mrv-ink); }
.mrv-day-slot.is-free { background: linear-gradient(180deg, #fbfffd, #f0fdf4); }
.mrv-day-slot.is-busy { background: linear-gradient(180deg, #fff6f7, #fff1f2); color: var(--mrv-red); }
.mrv-day-slot.is-course { background: linear-gradient(180deg, #fbf7ff, #efe4ff); color: var(--mrv-primary-dark); }
.mrv-day-slot.is-past { opacity: .5; color: var(--mrv-muted); }
.mrv-day-slot__info { flex: 1; }
.mrv-day-slot__info strong { display: block; line-height: 1.15; }
.mrv-day-slot__info a { font-weight: 800; font-size: .82rem; }
.mrv-slot__pick--row { flex: 1; min-height: 44px; height: auto; text-align: left; padding: .5rem .7rem; border-radius: 12px; background: rgba(21, 127, 82, .09); }
.mrv-slot__pick--row[aria-pressed="true"] { border-radius: 12px; }

/* Auswahlleiste */
.mrv-selectbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: .75rem clamp(.8rem, 3vw, 1.4rem) calc(.75rem + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-top: 1px solid rgba(155, 81, 224, .28); box-shadow: 0 -16px 44px rgba(42, 25, 64, .16); }
.mrv-selectbar[hidden] { display: none; }
.mrv-selectbar__inner { width: min(1180px, 100%); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem; }
.mrv-selectbar__chips { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1; min-width: 180px; max-height: 92px; overflow-y: auto; }
.mrv-selectbar__actions { display: flex; align-items: center; gap: .7rem; margin-left: auto; }
.mrv-selectbar__clear { border: 0; background: transparent; color: var(--mrv-soft); font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.mrv-selectbar .mrv-btn { min-height: 44px; padding: .6rem 1.15rem; }
body.mrv-has-selectbar { padding-bottom: 110px; }

/* Zeit-Chips (Auswahlleiste + Anfrageformular) */
.mrv-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .34rem .35rem .34rem .65rem; border-radius: 999px; background: var(--mrv-lilac-2); color: var(--mrv-primary-dark); font-size: .82rem; font-weight: 800; }
.mrv-chip__remove {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid rgba(0, 111, 111, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--mrv-primary-dark);
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(7, 73, 72, .08);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.mrv-chip__remove svg {
  display: block;
  width: .82rem;
  height: .82rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.mrv-chip__remove:hover,
.mrv-chip__remove:focus-visible {
  border-color: var(--mrv-primary);
  background: var(--mrv-primary);
  color: #fff;
  box-shadow: 0 5px 14px rgba(0, 111, 111, .2);
  transform: scale(1.05);
  outline: none;
}
.mrv-chip__remove:active {
  transform: scale(.96);
}
.mrv-slot-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.mrv-field__label { font-weight: 800; }
.mrv-slotfield-hint { margin: .3rem 0 0; font-size: .88rem; }

/* Anbieter-Login */
.mrv-login-card { max-width: 460px; margin: 0 auto; padding: clamp(1.6rem, 4vw, 2.4rem); border: 1px solid var(--mrv-line); border-radius: 30px; background: #fff; box-shadow: var(--mrv-shadow-small); }
.mrv-login-card h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.mrv-login-card form { display: grid; gap: 1rem; }
.mrv-login-card form p { margin: 0; }
.mrv-login-card label { display: block; font-weight: 800; margin-bottom: .3rem; }
.mrv-login-card input[type="text"], .mrv-login-card input[type="password"] { width: 100%; padding: .84rem 1rem; border: 1px solid var(--mrv-line); border-radius: 16px; background: #fff; color: var(--mrv-text); font: inherit; }
.mrv-login-card input[type="text"]:focus, .mrv-login-card input[type="password"]:focus { outline: 3px solid rgba(155, 81, 224, .18); border-color: var(--mrv-primary); }
.mrv-login-card .login-remember label { font-weight: 500; }
.mrv-login-card input[type="submit"] { display: inline-flex; min-height: 52px; width: 100%; padding: .92rem 1.35rem; border-radius: 999px; border: 0; background: var(--mrv-primary); color: #fff; font: inherit; font-weight: 900; cursor: pointer; box-shadow: 0 14px 30px rgba(155, 81, 224, .22); transition: background .2s ease, transform .2s ease; }
.mrv-login-card input[type="submit"]:hover { background: var(--mrv-primary-dark); transform: translateY(-2px); }
.mrv-login-links { margin: 1rem 0 .5rem; }
.mrv-dashboard__help { margin-bottom: 1rem; }

/* Dashboard: kompaktere Typografie und bessere Übersicht */
.mrv-dashboard h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: none; letter-spacing: -.03em; }
.mrv-dashboard .mrv-section__head { margin-bottom: 1.4rem; }
.mrv-dashboard .mrv-section__head > p { max-width: 620px; }
.mrv-dashboard .mrv-card h2 { font-size: 1.15rem; max-width: none; margin-bottom: .7rem; }
.mrv-dashboard .mrv-form label { font-size: .92rem; }
.mrv-dashboard .mrv-field input, .mrv-dashboard .mrv-field textarea { padding: .68rem .85rem; border-radius: 13px; font-size: .95rem; }
.mrv-list--courses { list-style: none; padding: 0; }
.mrv-list--courses li { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; padding: .55rem 0; border-bottom: 1px solid var(--mrv-line); }
.mrv-list--courses li:last-child { border-bottom: 0; }
.mrv-badge { display: inline-flex; padding: .18rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.mrv-badge--publish { background: #dcfce7; color: #14532d; }
.mrv-badge--pending { background: #fef3c7; color: #92400e; }
.mrv-badge--draft { background: #ececf1; color: #52525b; }

/* Raumzeiten-Zuordnung im Kursformular */
.mrv-booking-picker { border: 1px solid var(--mrv-line); border-radius: 18px; padding: 1rem 1.1rem; margin: 0; }
.mrv-booking-picker legend { padding: 0 .4rem; font-weight: 900; color: var(--mrv-ink); }
.mrv-booking-picker .mrv-muted { margin: 0 0 .6rem; font-size: .88rem; font-weight: 500; }
.mrv-booking-option { display: flex; align-items: flex-start; gap: .6rem; padding: .5rem .6rem; border-radius: 12px; font-weight: 600; font-size: .93rem; cursor: pointer; }
.mrv-booking-option:hover { background: var(--mrv-lilac); }
.mrv-booking-option input { margin-top: .22rem; accent-color: var(--mrv-primary); }
.mrv-booking-option.is-taken { opacity: .55; cursor: not-allowed; }
.mrv-booking-option em { font-style: normal; font-size: .82rem; color: var(--mrv-muted); }
.mrv-booking-picker__day { margin: .8rem 0 .2rem; font-size: .78rem; font-weight: 950; text-transform: uppercase; letter-spacing: .09em; color: var(--mrv-primary-dark); }
.mrv-booking-picker__day:first-of-type { margin-top: .2rem; }
.mrv-booking-picker--empty { border: 1px dashed var(--mrv-line); border-radius: 18px; padding: 1rem 1.1rem; }
.mrv-booking-picker--empty p { margin: 0 0 .35rem; }
.mrv-list--bookings { list-style: none; padding: 0; margin: .5rem 0 0; }
.mrv-list--bookings li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding: .5rem 0; border-bottom: 1px solid var(--mrv-line); }
.mrv-list--bookings li:last-child { border-bottom: 0; }

/* Wiederholen-Auswahl in der Auswahlleiste */
.mrv-selectbar__repeat { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 800; color: var(--mrv-ink); }
.mrv-selectbar__repeat select { padding: .5rem .7rem; border: 1px solid var(--mrv-line); border-radius: 12px; background: #fff; color: var(--mrv-ink); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.mrv-repeat-note { margin: .5rem 0 0; padding: .55rem .8rem; border-radius: 12px; background: var(--mrv-lilac-2); color: var(--mrv-primary-dark); font-size: .9rem; }

/* Kurs-Detailseite */
.mrv-course-single { background: linear-gradient(180deg, #fff 0%, #fbf8ff 50%, #fff 100%); }
.mrv-breadcrumb { margin: 0 0 1rem; font-size: .9rem; font-weight: 800; }
.mrv-breadcrumb a { color: var(--mrv-soft); text-decoration: none; }
.mrv-breadcrumb a:hover { color: var(--mrv-primary); }
.mrv-course-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.mrv-course-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: none; }
.mrv-course-hero__provider { font-size: 1.08rem; color: var(--mrv-soft); margin: -.4rem 0 1rem; }
.mrv-course-hero__signup { margin: 1rem 0 0; color: var(--mrv-soft); font-size: .95rem; }
.mrv-course-hero__image { position: relative; margin: 0; overflow: hidden; border-radius: 40px 40px 40px 120px; box-shadow: var(--mrv-shadow-soft); transform: rotate(1.5deg); }
.mrv-course-hero__image img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.mrv-course-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
.mrv-meta-chip { display: inline-flex; align-items: center; padding: .5rem .8rem; border-radius: 999px; border: 1px solid rgba(155,81,224,.2); background: rgba(255,255,255,.8); color: var(--mrv-ink); font-size: .88rem; font-weight: 800; }
.mrv-meta-chip--price { border-color: rgba(183,121,0,.35); color: var(--mrv-gold); }
.mrv-meta-chip--time { background: var(--mrv-lilac-2); color: var(--mrv-primary-dark); border-color: transparent; }
.mrv-course-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-top: 0; }
.mrv-course-body__content h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.mrv-course-body__content { font-size: 1.05rem; }
.mrv-course-facts dl { margin: 0; display: grid; gap: .1rem; }
.mrv-course-facts dt { font-size: .74rem; font-weight: 950; text-transform: uppercase; letter-spacing: .1em; color: var(--mrv-primary-dark); margin-top: .8rem; }
.mrv-course-facts dt:first-child { margin-top: 0; }
.mrv-course-facts dd { margin: 0; color: var(--mrv-text); font-weight: 600; }
.mrv-course-schedule { padding-top: 0; }
.mrv-course-schedule .mrv-section__head { margin-bottom: 1.2rem; }
.mrv-course-schedule h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.mrv-schedule-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .5rem; }
.mrv-schedule-list li { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border: 1px solid var(--mrv-line); border-radius: 16px; background: #fff; font-weight: 800; color: var(--mrv-ink); box-shadow: var(--mrv-shadow-small); }
.mrv-schedule-list li::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--mrv-primary); box-shadow: 0 0 0 .3rem rgba(155,81,224,.14); flex: none; }
.mrv-next-dates { display: flex; flex-wrap: wrap; gap: .5rem; }
.mrv-next-date { display: grid; gap: .05rem; justify-items: center; min-width: 96px; padding: .6rem .8rem; border: 1px solid rgba(155,81,224,.22); border-radius: 16px; background: var(--mrv-lilac); text-align: center; }
.mrv-next-date strong { color: var(--mrv-primary-dark); font-size: .9rem; }
.mrv-next-date span { color: var(--mrv-soft); font-size: .82rem; font-weight: 700; }
.mrv-course-cta { padding-top: 0; }
.mrv-course-cta__card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: linear-gradient(135deg, #fbf7ff, #fff); border-color: rgba(155,81,224,.25); }
.mrv-course-cta__card h2 { font-size: 1.3rem; max-width: none; margin-bottom: .3rem; }
.mrv-course-cta__card p { margin: 0; color: var(--mrv-soft); }

.mrv-calendar--compact { width: 100%; padding: 1rem; border-radius: 34px; }
.mrv-calendar--compact .mrv-section__head { margin-bottom: 1rem; }
.mrv-calendar--compact h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); max-width: none; }
.mrv-compact-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.mrv-compact-day { padding: .9rem; border: 1px solid var(--mrv-line); border-radius: 20px; background: #fff; }
.mrv-compact-day.is-free { background: linear-gradient(180deg, #fff, #f0fdf4); }
.mrv-compact-day.is-busy { background: linear-gradient(180deg, #fff, #fff1f2); }
.mrv-compact-day header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .45rem; }
.mrv-compact-day header span { color: var(--mrv-primary-dark); font-size: .74rem; font-weight: 950; text-transform: uppercase; letter-spacing: .12em; }
.mrv-compact-day p { margin: 0 0 .35rem; font-weight: 900; color: var(--mrv-ink); }
.mrv-compact-day small { color: var(--mrv-soft); }
.mrv-compact-day ul { margin: .35rem 0 0; padding-left: 1rem; font-size: .86rem; color: var(--mrv-soft); }

/* Course cards, request and dashboard */
.mrv-course-card { overflow: hidden; padding: 0; }
.mrv-course-card__image { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--mrv-lilac); }
.mrv-course-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mrv-course-card__body { padding: 1.3rem; }
.mrv-course-card h2 { font-size: 1.35rem; max-width: none; }
.mrv-course-card h2 a { color: var(--mrv-ink); text-decoration: none; }

.mrv-request__wrap { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.mrv-checklist { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.mrv-checklist li { position: relative; padding-left: 1.8rem; margin: .65rem 0; }
.mrv-checklist li::before { content: ""; position: absolute; left: 0; top: .42em; width: .82rem; height: .82rem; border-radius: 50%; background: var(--mrv-primary); box-shadow: inset 0 0 0 3px #fff; }
.mrv-form-card, .mrv-form, .mrv-dashboard__editor { border-radius: 28px; background: #fff; box-shadow: var(--mrv-shadow-small); }
.mrv-form-card { padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--mrv-line); }
.mrv-form { display: grid; gap: 1rem; padding: 0; box-shadow: none; }
.mrv-field, .mrv-field-row { display: grid; gap: .35rem; }
.mrv-field-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.mrv-field label, .mrv-checkbox { font-weight: 800; }
.mrv-field input, .mrv-field textarea, .mrv-form input[type="file"] { width: 100%; padding: .84rem 1rem; border: 1px solid var(--mrv-line); border-radius: 16px; background: #fff; color: var(--mrv-text); font: inherit; }
.mrv-field input:focus, .mrv-field textarea:focus { outline: 3px solid rgba(155,81,224,.18); border-color: var(--mrv-primary); }
.mrv-checkbox { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; }
.mrv-checkbox input { margin-top: .4rem; flex: 0 0 auto; }
.mrv-checkbox__text { min-width: 0; line-height: 1.65; }
.mrv-checkbox__text a { display: inline-block; margin-left: .2rem; white-space: nowrap; }
.mrv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mrv-notice { padding: 1rem; border-radius: 18px; margin-bottom: 1rem; font-weight: 900; }
.mrv-notice--success { color: #14532d; background: #dcfce7; }
.mrv-notice--error { color: #7f1d1d; background: #fee2e2; }

.mrv-dashboard__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-bottom: 1rem; }
.mrv-dashboard__editor { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--mrv-line); }
.mrv-list { margin: .5rem 0 0; padding-left: 1.2rem; }

@media (max-width: 1180px) {
  .mrv-hero__inner { grid-template-columns: 1fr; }
  .mrv-hero__copy { max-width: 760px; }
  .mrv-hero__visual { min-height: 560px; }
  .mrv-facts__inner, .mrv-card-grid--4, .mrv-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mrv-steps--line article::after { display: none; }
  .mrv-week-grid { grid-template-columns: 70px repeat(7, minmax(92px, 1fr)); }
}

/* Ab Tablet-Breite: Wochenraster ausblenden, Tagesansicht mit Tages-Tabs übernehmen */
@media (max-width: 1024px) {
  .mrv-week-tabs { display: none; }
  .mrv-week-nav__label { display: flex; }
  .mrv-week-grid { display: none; }
  .mrv-week-title { display: none; }
  .mrv-day-view { display: block; }
  .mrv-week-nav { flex-wrap: wrap; }
  .mrv-month-jump { order: 3; flex: 1 1 100%; }
  .mrv-month-jump select { width: 100%; }
  .mrv-week-nav__btn { min-width: 48px; min-height: 48px; }
}

@media (max-width: 900px) {
  body.mrv-plugin-page .entry-content > .mrv { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
  .mrv-section, .mrv-facts, .mrv-calendar--grid, .mrv-cta--editorial { width: min(100% - 30px, 1180px); }
  .mrv-hero__inner { width: min(100% - 30px, 1180px); }
  .mrv h1 { max-width: 11ch; }
  .mrv-reveal-card, .mrv-text-grid, .mrv-calendar-teaser, .mrv-request__wrap, .mrv-dashboard__grid, .mrv-course-hero, .mrv-course-body { grid-template-columns: 1fr; }
  .mrv-course-hero__image { transform: none; border-radius: 30px; }
  .mrv-intro__label { position: static; writing-mode: initial; transform: none; }
  .mrv-gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .mrv-gallery__item { grid-column: auto !important; grid-row: span 1 !important; }
  .mrv-gallery__item--1 { grid-row: span 2 !important; }
}

@media (max-width: 640px) {
  .mrv { font-size: 16px; }
  .mrv-hero--atelier { min-height: auto; }
  .mrv-hero__inner { padding: 3.2rem 0 4rem; }
  .mrv h1 { font-size: clamp(3rem, 18vw, 4.9rem); }
  .mrv h2 { max-width: 100%; }
  .mrv-actions { flex-direction: column; align-items: stretch; }
  .mrv-btn { width: 100%; }
  .mrv-hero__visual { min-height: 390px; }
  .mrv-visual-card--main { inset: 7% 0 8% 0; }
  .mrv-visual-card--small { width: 42%; height: 32%; border-width: 7px; border-radius: 24px; }
  .mrv-hero__seal { width: 98px; height: 98px; right: 5%; bottom: 0; font-size: .86rem; }
  .mrv-facts { margin-top: -1.5rem; }
  .mrv-facts__inner, .mrv-card-grid--4, .mrv-card-grid--3, .mrv-steps, .mrv-compact-days { grid-template-columns: 1fr; }
  .mrv-facts article { border-right: 0; border-bottom: 1px solid rgba(155,81,224,.13); }
  .mrv-facts article:last-child { border-bottom: 0; }
  .mrv-gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .mrv-field-row { grid-template-columns: 1fr; }
  .mrv-calendar { border-radius: 26px; padding: .9rem; }
  .mrv-day-slot__time { min-width: 88px; }
  .mrv-selectbar__actions { width: 100%; }
  .mrv-selectbar .mrv-btn { flex: 1; }
  body.mrv-has-selectbar { padding-bottom: 150px; }
}

/* Scroll-Reveal: greift nur, wenn JS aktiv ist (html.mrv-js), sonst bleibt alles sichtbar. */
html.mrv-js .mrv-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--mrv-reveal-delay, 0ms);
}
html.mrv-js .mrv-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .mrv *, .mrv *::before, .mrv *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  html.mrv-js .mrv-reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ */
/* v1.0: Monatskalender                                                 */
/* ------------------------------------------------------------------ */
.mrv-calendar--month { width: min(1080px, calc(100% - 40px)); margin: clamp(2.5rem, 5vw, 4rem) auto; }
.mrv-legend-partial { background: #fef3c7; }
.mrv-legend-closed { background: #ececf1; }
.mrv-month-nav { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.mrv-month-label { min-width: 12ch; text-align: center; font-size: 1.15rem; color: var(--mrv-ink); }
.mrv-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .45rem; }
.mrv-month-loading { grid-column: 1 / -1; margin: 1.6rem 0; text-align: center; color: var(--mrv-muted); font-weight: 700; }
.mrv-month-head { text-align: center; padding: .3rem 0; font-size: .74rem; font-weight: 950; text-transform: uppercase; letter-spacing: .1em; color: var(--mrv-primary-dark); }
.mrv-month-day { display: grid; gap: .15rem; justify-items: center; align-content: center; min-height: 66px; padding: .45rem .2rem; border: 1px solid var(--mrv-line); border-radius: 14px; background: #fff; font: inherit; text-align: center; }
.mrv-month-day strong { font-size: 1rem; color: var(--mrv-ink); }
.mrv-month-day span { font-size: .7rem; font-weight: 800; line-height: 1.1; }
.mrv-month-day.is-out { border: 0; background: transparent; }
.mrv-month-day.is-closed { background: #f4f4f6; color: var(--mrv-muted); }
.mrv-month-day.is-closed span { color: var(--mrv-muted); }
.mrv-month-day.is-past { opacity: .4; }
.mrv-month-day.is-free { background: linear-gradient(180deg, #fbfffd, #f0fdf4); cursor: pointer; }
.mrv-month-day.is-free span { color: #166534; }
.mrv-month-day.is-partial { background: linear-gradient(180deg, #fffdf5, #fef3c7); cursor: pointer; }
.mrv-month-day.is-partial span { color: #92400e; }
.mrv-month-day.is-full { background: linear-gradient(180deg, #fff6f7, #fff1f2); cursor: pointer; }
.mrv-month-day.is-full span { color: var(--mrv-red); }
button.mrv-month-day:hover, .mrv-month-day.is-open { outline: 2px solid var(--mrv-primary); outline-offset: -1px; }
.mrv-month-day.is-today strong { color: var(--mrv-primary-dark); text-decoration: underline; text-underline-offset: .2em; }
.mrv-day-detail { margin-top: 1.1rem; padding: 1rem; border: 1px solid var(--mrv-line); border-radius: 20px; background: #fff; display: grid; gap: .5rem; }
.mrv-day-detail[hidden] { display: none; }
.mrv-day-detail h3 { margin: 0 0 .3rem; font-size: 1.05rem; color: var(--mrv-ink); }

/* Anbieterbereich: Zeiten-Zuordnung */
.mrv-dashboard__times { margin-bottom: 1rem; }
.mrv-times-list { list-style: none; margin: .3rem 0 1rem; padding: 0; }
.mrv-times-list__item { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .6rem 0; border-bottom: 1px solid var(--mrv-line); }
.mrv-times-list__item:last-child { border-bottom: 0; }
.mrv-times-list__summary { font-weight: 700; color: var(--mrv-ink); }
.mrv-times-list__item select { padding: .5rem .7rem; border: 1px solid var(--mrv-line); border-radius: 12px; background: #fff; color: var(--mrv-ink); font: inherit; font-weight: 700; font-size: .9rem; }
.mrv-times-form { display: block; }

/* Kompakt-Teaser: geschlossene Tage */
.mrv-compact-day.is-closed { background: #f4f4f6; }
.mrv-compact-day.is-closed p { color: var(--mrv-muted); }

@media (max-width: 640px) {
  .mrv-month-grid { gap: .3rem; }
  .mrv-month-day { min-height: 56px; border-radius: 11px; }
  .mrv-month-day span { font-size: .62rem; }
  .mrv-times-list__item { align-items: flex-start; flex-direction: column; }
  .mrv-times-list__item select { width: 100%; }
}

/* === Matilde redesign refinement 1.1.1 === */
.mrv {
  --mrv-primary: #0c7a78;
  --mrv-primary-dark: #0a5f5d;
  --mrv-gold: #0a5f5d;
  --mrv-ink: #135a59;
  --mrv-text: #284847;
  --mrv-soft: #597271;
  --mrv-muted: #7a9090;
  --mrv-line: rgba(19, 90, 89, .14);
  --mrv-bg: #f3f7f6;
  --mrv-cream: #fcfdfd;
  --mrv-lilac: #eef5f4;
  --mrv-lilac-2: #e4efee;
  --mrv-shadow-soft: 0 28px 70px rgba(13, 72, 71, .10);
  --mrv-shadow-small: 0 14px 34px rgba(13, 72, 71, .08);
}

.mrv,
.mrv p,
.mrv .mrv-kicker,
.mrv .mrv-btn,
.mrv input,
.mrv textarea,
.mrv select {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mrv-home h1,
.mrv-home h2,
.mrv-home h3,
.mrv-calendar h2,
.mrv-course-card h3,
.mrv-steps h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}

.mrv-home h1,
.mrv-home h2 { max-width: none; }
.mrv-home h3 { line-height: 1.12; }
.mrv-home h1 em,
.mrv-home h2 em,
.mrv-calendar h2 em,
.mrv-cta h2 em { color: var(--mrv-primary-dark); font-style: normal; }

.mrv .mrv-kicker,
.mrv .mrv-eyebrow {
  color: var(--mrv-primary);
  letter-spacing: .20em;
}
.mrv .mrv-kicker::before,
.mrv .mrv-eyebrow::before {
  width: 1.2rem;
  height: 1px;
  border-radius: 0;
  background: var(--mrv-primary);
  box-shadow: none;
}

.mrv .mrv-btn {
  min-height: 56px;
  padding: .95rem 1.45rem;
  box-shadow: 0 12px 26px rgba(12,122,120,.16);
}
.mrv .mrv-btn:hover,
.mrv .mrv-btn:focus-visible { box-shadow: 0 18px 34px rgba(12,122,120,.18); }
.mrv .mrv-btn--primary { --btn-bg: var(--mrv-primary); --btn-color: #fff; }
.mrv .mrv-btn--primary:hover { --btn-bg: var(--mrv-primary-dark); }
.mrv .mrv-btn--light {
  --btn-bg: #ffffff;
  --btn-color: var(--mrv-primary-dark);
  border-color: rgba(12,122,120,.22);
  box-shadow: 0 10px 22px rgba(13,72,71,.08);
}
.mrv .mrv-btn--light:hover { --btn-bg: #f3fbfb; }
.mrv .mrv-btn--ghost-dark {
  --btn-bg: rgba(255,255,255,.06);
  --btn-color: #fff;
  border-color: rgba(255,255,255,.55);
  box-shadow: none;
}
.mrv .mrv-btn--ghost-dark:hover { --btn-bg: rgba(255,255,255,.16); }

.mrv-section,
.mrv-facts,
.mrv-calendar--grid,
.mrv-cta--editorial { width: min(1120px, calc(100% - 36px)); }
.mrv-section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.mrv-home { overflow: clip; background: linear-gradient(180deg, #f3f7f6 0%, #f8fbfa 25%, #f3f7f6 100%); }

.mrv-hero--atelier {
  min-height: clamp(620px, 88vh, 860px);
  background:
    radial-gradient(circle at 12% 8%, rgba(12,122,120,.12), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(12,122,120,.08), transparent 28%),
    linear-gradient(180deg, #f2f7f6 0%, #f7fbfa 64%, #f3f7f6 100%);
}
.mrv-hero__glow { background: rgba(12,122,120,.12); }
.mrv-hero__inner {
  width: min(1180px, calc(100% - 40px));
  grid-template-columns: minmax(0, .98fr) minmax(360px, 1.02fr);
  gap: clamp(2rem, 4vw, 4.6rem);
}
.mrv-home h1 { font-size: clamp(3rem, 6vw, 5.3rem); color: var(--mrv-ink); }
.mrv-home .mrv-lead,
.mrv-overview__lead,
.mrv-usecases__lead,
.mrv-calendar-teaser__copy p,
.mrv-cta p { max-width: 68ch; font-size: clamp(1rem, 1.35vw, 1.18rem); color: var(--mrv-soft); }
.mrv-hero__note span {
  border-color: rgba(12,122,120,.14);
  background: rgba(255,255,255,.92);
}
.mrv-visual-card--main {
  inset: 5% 7% 10% 5%;
  border-radius: 34px;
  transform: none;
}
.mrv-visual-card--small { border-radius: 26px; border-width: 8px; }
.mrv-visual-card--one { top: 3%; transform: rotate(3deg); }
.mrv-visual-card--two { bottom: 2%; transform: rotate(-4deg); }
.mrv-hero__seal {
  right: 9%;
  bottom: 5%;
  width: 112px;
  height: 112px;
  background: rgba(10,95,93,.92);
}
.mrv-hero__seal small { color: rgba(255,255,255,.8); }

.mrv-overview__intro { max-width: 760px; margin-bottom: 2rem; }
.mrv-overview__intro h2,
.mrv-usecases .mrv-section__head h2,
.mrv-calendar-teaser__copy h2,
.mrv-cta h2 { font-size: clamp(2.35rem, 4.8vw, 4.45rem); }
.mrv-feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.mrv-feature-card {
  padding: 1.55rem 1.35rem 1.45rem;
  border: 1px solid var(--mrv-line);
  border-radius: 26px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--mrv-shadow-small);
}
.mrv-feature-card h3 { margin: .95rem 0 .65rem; font-size: 1.6rem; color: var(--mrv-ink); }
.mrv-feature-card p { margin: 0; font-size: .97rem; color: var(--mrv-soft); }
.mrv-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #e6f0ef;
  color: var(--mrv-primary-dark);
  flex: 0 0 auto;
}
.mrv-icon { display: inline-flex; width: 22px; height: 22px; }
.mrv-icon svg { width: 100%; height: 100%; display: block; }

.mrv-usecases {
  position: relative;
  padding: clamp(3rem, 5vw, 4rem);
  border: 1px solid rgba(19,90,89,.08);
  border-radius: 42px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--mrv-shadow-small);
}
.mrv-usecases::before,
.mrv-usecases::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 2px solid rgba(12,122,120,.16);
  border-radius: 50%;
  pointer-events: none;
}
.mrv-usecases::before { left: -90px; top: 90px; }
.mrv-usecases::after { right: -90px; bottom: 120px; }
.mrv-usecases__lead { margin: 0 auto; text-align: center; }
.mrv-usecase-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.mrv-usecase-card {
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid var(--mrv-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--mrv-shadow-small);
}
.mrv-usecase-card--wide { grid-column: span 3; }
.mrv-usecase-card__media { margin: 0; aspect-ratio: 1.55 / 1; background: var(--mrv-lilac); overflow: hidden; }
.mrv-usecase-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mrv-usecase-card__body {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.3rem 1.3rem;
}
.mrv-usecase-card__body h3 { margin: 0 0 .35rem; font-size: 1.55rem; color: var(--mrv-ink); }
.mrv-usecase-card__body p { margin: 0; font-size: .97rem; color: var(--mrv-soft); }

.mrv-gallery--magazine { padding-top: 4rem; }
.mrv-gallery--magazine .mrv-section__head h2 { max-width: 11ch; }
.mrv-gallery__grid { gap: 1rem; grid-auto-rows: 128px; }
.mrv-gallery__item { border-radius: 28px; }

.mrv-calendar-teaser {
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}
.mrv-calendar-teaser__copy h2 { margin-bottom: 1rem; }
.mrv-calendar-teaser__panel { min-width: 0; }
.mrv-calendar--compact {
  padding: 1.35rem;
  border-radius: 32px;
  background: rgba(255,255,255,.94);
}
.mrv-calendar--compact .mrv-section__head { margin-bottom: 1.1rem; }
.mrv-calendar--compact h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.mrv-compact-days { gap: .8rem; }
.mrv-compact-day {
  padding: 1rem;
  border-radius: 20px;
  background: #fff;
}
.mrv-compact-day header span { color: var(--mrv-primary-dark); }
.mrv-compact-day p { margin-bottom: .35rem; }
.mrv-compact-day small { display: block; line-height: 1.45; }
.mrv-compact-day ul { margin-top: .55rem; }
.mrv-compact-day.is-free { background: linear-gradient(180deg, #ffffff, #f0fbf9); }
.mrv-compact-day.is-busy { background: linear-gradient(180deg, #ffffff, #fff4f3); }
.mrv-compact-day.is-closed { background: #f2f5f4; }

.mrv-process {
  background: transparent;
  padding-top: 4.5rem;
}
.mrv-steps { gap: 1rem; }
.mrv-steps article {
  border-radius: 24px;
  background: rgba(255,255,255,.92);
}
.mrv-steps span {
  background: var(--mrv-primary);
  box-shadow: 0 8px 18px rgba(12,122,120,.18);
}
.mrv-steps--line article:not(:last-child)::after { background: rgba(12,122,120,.2); }

.mrv-cta--editorial {
  padding: clamp(2.8rem, 5vw, 4.8rem);
  border-radius: 38px;
  background: linear-gradient(135deg, #0a6f6d 0%, #085f5d 50%, #0d4f4d 100%);
  box-shadow: 0 24px 60px rgba(10, 79, 77, .24);
}
.mrv-cta h2,
.mrv-cta p,
.mrv-cta .mrv-kicker,
.mrv-cta .mrv-contact-line,
.mrv-cta .mrv-contact-line a,
.mrv-cta .mrv-contact-line span { color: #fff; }
.mrv-cta .mrv-kicker::before { background: #fff; }

@media (max-width: 1200px) {
  .mrv-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .mrv-hero__inner,
  .mrv-calendar-teaser { grid-template-columns: 1fr; }
  .mrv-hero__visual { min-height: 520px; }
  .mrv-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrv-usecase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrv-usecase-card,
  .mrv-usecase-card--wide { grid-column: span 1; }
}

@media (max-width: 720px) {
  .mrv-home h1 { font-size: clamp(2.5rem, 10vw, 3.6rem); }
  .mrv-overview__intro h2,
  .mrv-usecases .mrv-section__head h2,
  .mrv-calendar-teaser__copy h2,
  .mrv-cta h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .mrv-feature-grid,
  .mrv-usecase-grid,
  .mrv-compact-days { grid-template-columns: 1fr; }
  .mrv-usecases { padding: 1.5rem; border-radius: 28px; }
  .mrv-usecases::before,
  .mrv-usecases::after { display: none; }
  .mrv-overview__intro,
  .mrv-calendar-teaser__copy { margin-bottom: 1rem; }
  .mrv-feature-card,
  .mrv-usecase-card,
  .mrv-calendar--compact,
  .mrv-steps article { border-radius: 22px; }
}

/* === Matilde gallery + calendar refinement 1.1.2 === */
body.mrv-plugin-page .single-content h1,
body.mrv-plugin-page .single-content h2,
body.mrv-plugin-page .single-content h3,
body.mrv-plugin-page .single-content h4,
body.mrv-plugin-page .single-content h5,
body.mrv-plugin-page .single-content h6 {
  margin: .5em 0 .5em !important;
}

/* Bilder vollständig zeigen statt in feste Rasterhöhen zu schneiden. */
.mrv-gallery--magazine .mrv-section__head {
  max-width: 760px;
}
.mrv-gallery--magazine .mrv-section__head h2 {
  max-width: none;
}
.mrv-gallery__grid {
  display: block;
  columns: 3 290px;
  column-gap: 1rem;
  grid-template-columns: none;
  grid-auto-rows: unset;
}
.mrv-gallery__item,
.mrv-gallery__item--1,
.mrv-gallery__item--2,
.mrv-gallery__item--3,
.mrv-gallery__item--4,
.mrv-gallery__item--5,
.mrv-gallery__item--6 {
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  break-inside: avoid;
  grid-column: auto;
  grid-row: auto;
  border-radius: 24px;
  background: #fff;
}
.mrv-gallery__item img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none;
  object-fit: contain;
}
.mrv-gallery__item:hover img {
  transform: none;
  filter: none;
}

/* Kalenderbereich näher am gelieferten Entwurf. */
.mrv-calendar-teaser {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  padding: clamp(2rem, 4.5vw, 4rem);
  border: 1px solid rgba(12,122,120,.10);
  border-radius: 40px;
  background:
    radial-gradient(circle at 4% 8%, rgba(197,233,233,.65), transparent 28%),
    linear-gradient(135deg, #f8fbfb 0%, #ffffff 52%, #eef7f6 100%);
  box-shadow: 0 24px 60px rgba(13,72,71,.10);
  overflow: hidden;
}
.mrv-calendar-teaser::before,
.mrv-calendar-teaser::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(12,122,120,.24);
  border-radius: 50%;
  pointer-events: none;
}
.mrv-calendar-teaser::before {
  width: 220px;
  height: 220px;
  left: -155px;
  bottom: -120px;
}
.mrv-calendar-teaser::after {
  width: 160px;
  height: 160px;
  right: -110px;
  top: -90px;
}
.mrv-calendar-teaser__copy,
.mrv-calendar-teaser__panel {
  position: relative;
  z-index: 1;
}
.mrv-calendar-teaser__copy h2 {
  max-width: 10ch;
  margin: 0 0 1.1rem !important;
  color: var(--mrv-ink);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.02;
}
.mrv-calendar-teaser__copy h2 em {
  color: var(--mrv-primary);
  font-style: italic;
  font-weight: 400;
}
.mrv-calendar-teaser__copy::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin: 1rem 0 1.3rem;
  border-radius: 999px;
  background: var(--mrv-primary);
}
.mrv-calendar-teaser__copy p {
  max-width: 38ch;
}
.mrv-calendar-teaser__copy .mrv-actions {
  display: grid;
  gap: .8rem;
  max-width: 390px;
  margin-top: 1.35rem;
}
.mrv-calendar-teaser__copy .mrv-btn {
  width: 100%;
}
.mrv-calendar-teaser__panel {
  padding: .45rem;
  border-radius: 30px;
  background: rgba(255,255,255,.55);
}
.mrv-calendar--compact {
  border: 1px solid rgba(12,122,120,.12);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(13,72,71,.09);
}
.mrv-calendar--compact .mrv-section__head {
  margin: 0 0 1rem;
}
.mrv-calendar-compact__title-row {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.mrv-calendar-compact__title-row h2 {
  margin: 0 !important;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.7vw, 2.45rem);
  font-weight: 400;
  line-height: 1.1;
}
.mrv-calendar-compact__icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--mrv-primary);
}
.mrv-calendar-compact__icon .mrv-icon {
  width: 34px;
  height: 34px;
}
.mrv-compact-days {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.mrv-compact-day {
  min-height: 148px;
  border-color: rgba(12,122,120,.15);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f3f9f8);
}
.mrv-compact-day header {
  margin-bottom: .65rem;
}
.mrv-compact-day header span,
.mrv-compact-day header strong {
  color: var(--mrv-primary-dark);
}
.mrv-compact-day p {
  color: var(--mrv-ink);
  font-size: 1.05rem;
}
.mrv-compact-day small {
  color: var(--mrv-soft);
}
.mrv-calendar-compact__note {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(197,233,233,.58), rgba(238,247,246,.94));
  color: var(--mrv-primary-dark);
}
.mrv-calendar-compact__note > span {
  flex: 0 0 auto;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
}
.mrv-calendar-compact__note .mrv-icon {
  width: 28px;
  height: 28px;
}
.mrv-calendar-compact__note p {
  margin: 0;
  color: var(--mrv-primary-dark);
  line-height: 1.5;
}

@media (max-width: 980px) {
  .mrv-gallery__grid { columns: 2 260px; }
  .mrv-calendar-teaser__copy h2 { max-width: 13ch; }
  .mrv-calendar-teaser__copy p { max-width: 52ch; }
}

@media (max-width: 640px) {
  .mrv-gallery__grid { columns: 1; }
  .mrv-gallery__item { margin-bottom: .85rem; border-radius: 20px; }
  .mrv-calendar-teaser {
    width: min(100% - 24px, 1180px);
    padding: 1.35rem;
    border-radius: 28px;
  }
  .mrv-calendar-teaser__copy h2 {
    max-width: none;
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }
  .mrv-calendar-teaser__copy .mrv-actions { max-width: none; }
  .mrv-calendar-teaser__panel { padding: 0; background: transparent; }
  .mrv-calendar--compact { padding: 1rem; border-radius: 22px; }
  .mrv-compact-days { grid-template-columns: 1fr; }
  .mrv-compact-day { min-height: 0; }
  .mrv-calendar-compact__note { border-radius: 16px; }
}

/* === Stable Matilde hero 1.1.4 === */
.mrv .mrv-btn--outline {
  --btn-bg: transparent;
  --btn-color: var(--mrv-primary-dark);
  border-color: var(--mrv-primary);
  box-shadow: none;
}
.mrv .mrv-btn--outline:hover,
.mrv .mrv-btn--outline:focus-visible {
  --btn-bg: rgba(12, 122, 120, .07);
  box-shadow: 0 14px 28px rgba(12, 122, 120, .12);
}

.mrv-hero--stable {
  display: block;
  min-height: auto;
  padding: 0;
  background: linear-gradient(135deg, #f2f7f6 0%, #f8fbfb 50%, #faf6ee 100%);
}
.mrv-hero--stable::before,
.mrv-hero--stable .mrv-hero__glow {
  display: none;
}
.mrv-hero--stable .mrv-hero__inner {
  width: min(1280px, calc(100% - 48px));
  min-height: 720px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.mrv-hero--stable .mrv-hero__copy {
  position: relative;
  z-index: 2;
}
.mrv-hero--stable .mrv-hero__copy h1 {
  max-width: 7ch;
  margin: 0 0 1.6rem;
  color: #0b7775;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(3.7rem, 6.6vw, 6.5rem);
  font-weight: 650;
  line-height: .93;
  letter-spacing: -.055em;
  text-wrap: initial;
}
.mrv-hero--stable .mrv-hero__intro {
  max-width: 34rem;
}
.mrv-hero--stable .mrv-hero__intro p {
  margin: 0 0 1rem;
  color: #1d6665;
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  line-height: 1.65;
}
.mrv-hero--stable .mrv-hero__intro p:last-child {
  margin-bottom: 0;
}
.mrv-hero--stable .mrv-actions {
  margin-top: 2rem;
  gap: 1rem;
}
.mrv-hero--stable .mrv-btn {
  min-width: 190px;
}

.mrv-hero--stable .mrv-hero__image-wrap {
  min-width: 0;
  padding: 22px 0 22px 22px;
  border-radius: 210px 0 0 210px;
  background: rgba(197, 233, 233, .75);
}
.mrv-hero--stable .mrv-hero__image {
  min-height: 590px;
  height: min(64vw, 690px);
  margin: 0;
  overflow: hidden;
  border-radius: 190px 0 0 190px;
  background: #e7f1f0;
  box-shadow: 0 24px 58px rgba(13, 72, 71, .10);
}
.mrv-hero--stable .mrv-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mrv-hero--stable .mrv-hero__highlights {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  background: rgba(224, 239, 238, .82);
  border-top: 1px solid rgba(12, 122, 120, .11);
}
.mrv-hero--stable .mrv-hero-highlight {
  min-height: 96px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  border-right: 1px solid rgba(12, 122, 120, .18);
  text-align: center;
}
.mrv-hero--stable .mrv-hero-highlight:last-child {
  border-right: 0;
}
.mrv-hero--stable .mrv-hero-highlight > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--mrv-primary);
}
.mrv-hero--stable .mrv-hero-highlight .mrv-icon {
  width: 34px;
  height: 34px;
}
.mrv-hero--stable .mrv-hero-highlight strong {
  color: #1c6665;
  font-size: .96rem;
  font-weight: 550;
  line-height: 1.35;
}

@media (max-width: 1120px) {
  .mrv-hero--stable .mrv-hero__inner {
    grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr);
  }
  .mrv-hero--stable .mrv-hero__highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-inline: 24px;
  }
  .mrv-hero--stable .mrv-hero-highlight:nth-child(3n) {
    border-right: 0;
  }
  .mrv-hero--stable .mrv-hero-highlight:nth-child(-n+3) {
    border-bottom: 1px solid rgba(12, 122, 120, .15);
  }
}

@media (max-width: 860px) {
  .mrv-hero--stable .mrv-hero__inner {
    width: min(100% - 28px, 1280px);
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
  }
  .mrv-hero--stable .mrv-hero__copy h1 {
    max-width: 8ch;
    font-size: clamp(3rem, 12vw, 4.8rem);
  }
  .mrv-hero--stable .mrv-hero__intro {
    max-width: 42rem;
  }
  .mrv-hero--stable .mrv-hero__image-wrap {
    padding: 12px;
    border-radius: 34px;
  }
  .mrv-hero--stable .mrv-hero__image {
    min-height: 0;
    height: min(72vw, 520px);
    border-radius: 26px;
  }
  .mrv-hero--stable .mrv-hero__highlights {
    width: min(100% - 28px, 1280px);
    margin: 0 auto 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(12, 122, 120, .13);
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
  }
  .mrv-hero--stable .mrv-hero-highlight {
    justify-content: flex-start;
    text-align: left;
    border-bottom: 1px solid rgba(12, 122, 120, .13);
  }
  .mrv-hero--stable .mrv-hero-highlight:nth-child(2n) {
    border-right: 0;
  }
  .mrv-hero--stable .mrv-hero-highlight:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .mrv-hero--stable .mrv-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .mrv-hero--stable .mrv-btn {
    width: 100%;
    min-width: 0;
  }
  .mrv-hero--stable .mrv-hero__highlights {
    grid-template-columns: 1fr;
  }
  .mrv-hero--stable .mrv-hero-highlight,
  .mrv-hero--stable .mrv-hero-highlight:nth-child(2n),
  .mrv-hero--stable .mrv-hero-highlight:nth-child(3n) {
    border-right: 0;
  }
  .mrv-hero--stable .mrv-hero-highlight:not(:last-child),
  .mrv-hero--stable .mrv-hero-highlight:nth-last-child(-n+2) {
    border-bottom: 1px solid rgba(12, 122, 120, .13);
  }
  .mrv-hero--stable .mrv-hero-highlight:last-child {
    border-bottom: 0;
  }
}


/* === Matilde 1.1.5 heading refinement === */
.mrv-home h1,
.mrv-home h2,
.mrv-home h3,
.mrv-calendar h2,
.mrv-course-card h3,
.mrv-steps h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
}

.mrv-hero--stable .mrv-hero__copy {
  max-width: 36rem;
}

.mrv-hero--stable .mrv-hero__copy h1 {
  max-width: 11ch;
  font-size: clamp(3.15rem, 5.4vw, 5.75rem);
  line-height: .96;
  letter-spacing: -.05em;
}

.mrv-overview__intro h2,
.mrv-usecases .mrv-section__head h2,
.mrv-calendar-teaser__copy h2,
.mrv-cta h2 {
  max-width: 16ch;
}

.mrv-gallery--magazine .mrv-section__head h2 {
  max-width: 16ch;
}

.mrv-feature-card h3,
.mrv-usecase-card__content h3,
.mrv-gallery-card__content h3,
.mrv-cta h2,
.mrv-calendar-teaser__copy h2 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 900px) {
  .mrv-hero--stable .mrv-hero__copy h1 {
    max-width: 12ch;
    font-size: clamp(2.85rem, 9vw, 4.5rem);
  }

  .mrv-overview__intro h2,
  .mrv-usecases .mrv-section__head h2,
  .mrv-calendar-teaser__copy h2,
  .mrv-cta h2,
  .mrv-gallery--magazine .mrv-section__head h2 {
    max-width: none;
  }
}

/* === Matilde 1.1.6: Kursvorschau und Anfrage-Überschrift === */
.mrv-courses {
  background: linear-gradient(180deg, #f4f9f8 0%, #ffffff 38%, #f3f8f7 100%);
}

.mrv-courses .mrv-section__head {
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.mrv-courses .mrv-section__head h1 {
  max-width: 17ch;
  margin-inline: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 4.8vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -.04em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.mrv-courses .mrv-section__head > p:last-child {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--mrv-soft);
  font-size: 1.06rem;
}

.mrv-courses .mrv-card-grid--3 {
  gap: clamp(1.1rem, 2vw, 1.6rem);
  align-items: stretch;
}

.mrv-course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(12, 122, 120, .13);
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(13, 72, 71, .08);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.mrv-course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(12, 122, 120, .26);
  box-shadow: 0 24px 54px rgba(13, 72, 71, .14);
}

.mrv-course-card__image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e3f1f0, #f8fbfa);
}

.mrv-course-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}

.mrv-course-card:hover .mrv-course-card__image img {
  transform: scale(1.035);
}

.mrv-course-card__badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .42rem .72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--mrv-primary-dark);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(13, 72, 71, .12);
  backdrop-filter: blur(8px);
}

.mrv-course-card__placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .8rem;
  width: 100%;
  height: 100%;
  color: var(--mrv-primary-dark);
  background:
    radial-gradient(circle at 20% 20%, rgba(197, 233, 233, .8), transparent 34%),
    linear-gradient(135deg, #eef7f6, #ffffff);
}

.mrv-course-card__placeholder .mrv-icon {
  width: 42px;
  height: 42px;
}

.mrv-course-card__placeholder > span:last-child {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.mrv-course-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.25rem, 2vw, 1.65rem);
}

.mrv-course-card__heading {
  margin-bottom: 1rem;
}

.mrv-course-card h2 {
  max-width: none;
  margin: 0 0 .45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.2vw, 2.05rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.03em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.mrv-course-card h2 a {
  color: var(--mrv-ink);
  text-decoration: none;
}

.mrv-course-card h2 a:hover,
.mrv-course-card h2 a:focus-visible {
  color: var(--mrv-primary);
}

.mrv-course-card__provider {
  margin: 0;
  color: var(--mrv-primary-dark);
  font-size: .94rem;
  font-weight: 650;
}

.mrv-course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1rem;
}

.mrv-course-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
  padding: .5rem .7rem;
  border: 1px solid rgba(12, 122, 120, .13);
  border-radius: 14px;
  background: #f3f8f7;
  color: var(--mrv-primary-dark);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.35;
}

.mrv-course-card__meta-item .mrv-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.mrv-course-card__meta-item--time {
  flex: 1 1 100%;
}

.mrv-course-card__meta-item--price {
  background: #e5f1f0;
}

.mrv-course-card__excerpt {
  margin: 0 0 1.25rem;
  color: var(--mrv-soft);
  font-size: .97rem;
  line-height: 1.65;
}

.mrv-course-card__footer {
  margin-top: auto;
  padding-top: .2rem;
}

.mrv .mrv-btn--course {
  --btn-bg: #0c7a78;
  --btn-color: #ffffff;
  width: 100%;
  min-height: 50px;
  justify-content: space-between;
  padding: .78rem 1rem .78rem 1.2rem;
  border-radius: 15px;
  box-shadow: none;
}

.mrv .mrv-btn--course:hover,
.mrv .mrv-btn--course:focus-visible {
  --btn-bg: #0a5f5d;
  box-shadow: 0 12px 24px rgba(12, 122, 120, .18);
}

/* Die Anfrage-Überschrift bewusst kleiner als die Hero-Überschrift. */
.mrv-request__intro {
  min-width: 0;
}

.mrv-request__intro h1 {
  max-width: 16ch;
  margin: .35rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 4.15vw, 3.65rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.04em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

@media (max-width: 980px) {
  .mrv-courses .mrv-card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mrv-request__intro h1 {
    max-width: 20ch;
    font-size: clamp(2.3rem, 6vw, 3.25rem);
  }
}

@media (max-width: 640px) {
  .mrv-courses .mrv-section__head h1 {
    max-width: none;
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .mrv-courses .mrv-card-grid--3 {
    grid-template-columns: 1fr;
  }

  .mrv-course-card {
    border-radius: 22px;
  }

  .mrv-course-card__body {
    padding: 1.2rem;
  }

  .mrv-course-card h2 {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }

  .mrv-request__intro h1 {
    max-width: none;
    font-size: clamp(2.05rem, 9vw, 2.65rem);
    line-height: 1.08;
  }
}

/* === Matilde 1.1.7: Kursdetail komplett neu aufgebaut === */
.mrv-course-detail {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 4%, rgba(197, 233, 233, .42), transparent 24%),
    linear-gradient(180deg, #f7fbfa 0%, #ffffff 42%, #f3f8f7 100%);
}

.mrv-course-detail__shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 4.5rem) 0 clamp(4rem, 7vw, 7rem);
}

.mrv-course-detail__breadcrumb {
  margin-bottom: 1.5rem;
}

.mrv-course-detail__breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: var(--mrv-primary-dark);
  font-size: .92rem;
  font-weight: 750;
  text-decoration: none;
}

.mrv-course-detail__breadcrumb a:hover,
.mrv-course-detail__breadcrumb a:focus-visible {
  color: var(--mrv-primary);
}

.mrv-course-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(12, 122, 120, .12);
  border-radius: 36px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 64px rgba(13, 72, 71, .09);
}

.mrv-course-detail__intro {
  min-width: 0;
}

.mrv-course-detail__intro .mrv-kicker,
.mrv-course-detail__about .mrv-kicker,
.mrv-course-detail__facts .mrv-kicker,
.mrv-course-detail__schedule .mrv-kicker,
.mrv-course-detail__enrollment .mrv-kicker,
.mrv-course-detail__cta .mrv-kicker {
  margin-bottom: .75rem;
}

.mrv-course-detail__intro h1 {
  max-width: 15ch;
  margin: 0 0 .85rem;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.045em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
}

/* Matilde 1.1.107 – lange Kurstitel sicher im Hero halten. */
.mrv-course-detail__intro h1.is-long-title {
  max-width: 100%;
  font-size: clamp(2.35rem, 4vw, 4.05rem);
  letter-spacing: -.04em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.mrv-course-detail__intro h1.is-very-long-title {
  max-width: 100%;
  font-size: clamp(2.2rem, 3.55vw, 3.65rem);
  letter-spacing: -.035em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.mrv-course-detail__provider {
  margin: 0 0 1.5rem;
  color: var(--mrv-soft);
  font-size: 1.08rem;
}

.mrv-course-detail__provider strong {
  color: var(--mrv-primary-dark);
}

.mrv-course-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1.25rem;
}

.mrv-course-detail__meta-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  padding: .62rem .8rem;
  border: 1px solid rgba(12, 122, 120, .14);
  border-radius: 14px;
  background: #f3f8f7;
  color: var(--mrv-primary-dark);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

.mrv-course-detail__meta-item .mrv-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.mrv-course-detail__meta-item--time {
  flex: 1 1 100%;
  width: fit-content;
  max-width: 100%;
}

.mrv-course-detail__meta-item--price {
  background: #e5f1f0;
}

.mrv-course-detail__summary {
  max-width: 40rem;
  margin: .15rem 0 0;
  color: var(--mrv-text);
  font-size: 1.03rem;
  line-height: 1.72;
}

.mrv-course-detail__summary p {
  margin: 0;
}

.mrv-course-detail__signup {
  display: grid;
  gap: .2rem;
  max-width: 38rem;
  margin: 0 0 1.35rem;
  padding: .9rem 1rem;
  border-left: 3px solid var(--mrv-primary);
  border-radius: 0 14px 14px 0;
  background: #eef7f6;
  color: var(--mrv-text);
}

.mrv-course-detail__signup strong {
  color: var(--mrv-primary-dark);
  font-size: .74rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.mrv-course-detail__actions {
  margin-top: 0;
}

.mrv-course-detail__actions .mrv-btn {
  min-width: 190px;
}

.mrv-course-detail__visual {
  min-width: 0;
}

.mrv-course-detail__image,
.mrv-course-detail__image-placeholder {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 30px;
  background: linear-gradient(135deg, #e4f1f0, #f8fbfa);
  box-shadow: 0 20px 46px rgba(13, 72, 71, .12);
}

.mrv-course-detail__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mrv-course-detail__image-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  color: var(--mrv-primary-dark);
}

.mrv-course-detail__image-placeholder .mrv-icon {
  width: 58px;
  height: 58px;
}

.mrv-course-detail__image-placeholder span:last-child {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.mrv-course-detail__content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.mrv-course-detail__about,
.mrv-course-detail__facts {
  min-width: 0;
  padding: clamp(1.6rem, 3vw, 2.35rem);
  border: 1px solid rgba(12, 122, 120, .12);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(13, 72, 71, .07);
}

.mrv-course-detail__about h2,
.mrv-course-detail__facts h2,
.mrv-course-detail__schedule h2,
.mrv-course-detail__enrollment h2,
.mrv-course-detail__cta h2 {
  max-width: none;
  margin: 0 0 1rem;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.03em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
}

.mrv-course-detail__about h2,
.mrv-course-detail__facts h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.mrv-course-detail__description {
  color: var(--mrv-text);
  font-size: 1.04rem;
  line-height: 1.75;
}

.mrv-course-detail__description > :last-child,
.mrv-course-detail__empty-copy {
  margin-bottom: 0;
}

.mrv-course-detail__empty-copy {
  color: var(--mrv-soft);
}

.mrv-course-detail__facts h2 {
  margin-bottom: 1.2rem;
}

.mrv-course-detail__facts dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.mrv-course-detail__facts dl > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: .8rem;
  padding: .85rem 0;
  border-top: 1px solid rgba(12, 122, 120, .11);
}

.mrv-course-detail__facts dl > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.mrv-course-detail__facts dl > div:last-child {
  padding-bottom: 0;
}

.mrv-course-detail__facts dt,
.mrv-course-detail__facts dd {
  margin: 0;
}

.mrv-course-detail__facts dt {
  color: var(--mrv-primary-dark);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mrv-course-detail__facts dd {
  min-width: 0;
  color: var(--mrv-text);
  font-size: .96rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.mrv-course-detail__facts a {
  color: var(--mrv-primary-dark);
}


.mrv-course-detail__enrollment {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border: 1px solid rgba(12, 122, 120, .12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 6%, rgba(188, 231, 227, .32), transparent 24%),
    linear-gradient(135deg, #eef7f6 0%, #ffffff 68%);
  box-shadow: 0 16px 38px rgba(13, 72, 71, .07);
}

.mrv-course-detail__enrollment-head {
  max-width: 48rem;
  margin-bottom: 1.4rem;
}

.mrv-course-detail__enrollment-head h2 {
  margin-bottom: .65rem;
  font-size: clamp(1.9rem, 3.3vw, 2.75rem);
}

.mrv-course-detail__enrollment-head > p:last-child {
  margin: 0;
  color: var(--mrv-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.mrv-course-detail__enrollment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.mrv-course-detail__enrollment-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid rgba(12, 122, 120, .11);
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 24px rgba(13, 72, 71, .05);
}

.mrv-course-detail__enrollment-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: .85rem;
  border-radius: 50%;
  color: var(--mrv-primary-dark);
  background: #e4f2ef;
  font-size: 1rem;
  font-weight: 800;
}

.mrv-course-detail__enrollment-icon .mrv-icon {
  width: 19px;
  height: 19px;
}

.mrv-course-detail__enrollment-card h3 {
  margin: 0 0 .75rem;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.1;
}

.mrv-course-detail__enrollment-dates {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mrv-course-detail__enrollment-dates li {
  padding: .7rem .8rem;
  border-radius: 12px;
  color: var(--mrv-text);
  background: #f3f8f7;
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.45;
}

.mrv-course-detail__enrollment-price {
  margin: 0;
  color: var(--mrv-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.25;
}

.mrv-course-detail__enrollment-times {
  display: grid;
  gap: .35rem;
}


.mrv-course-detail__enrollment-copy {
  margin: 0 0 1rem;
  color: var(--mrv-text);
  font-size: .96rem;
  line-height: 1.65;
}

.mrv-course-detail__enrollment-actions {
  display: grid;
  gap: .65rem;
  margin-top: auto;
  padding-top: .25rem;
}

.mrv-course-detail__enrollment-actions .mrv-btn {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: .75rem 1rem;
  text-align: center;
}

.mrv-course-detail__schedule {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vw, 2.35rem);
  border: 1px solid rgba(12, 122, 120, .12);
  border-radius: 28px;
  background: linear-gradient(135deg, #eef7f6, #ffffff);
}

.mrv-course-detail__schedule-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mrv-course-detail__schedule-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
}

.mrv-course-detail__schedule-list {
  display: grid;
  gap: .7rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.mrv-course-detail__schedule-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(12, 122, 120, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  color: var(--mrv-text);
  font-weight: 650;
}

.mrv-course-detail__schedule-list .mrv-icon {
  width: 20px;
  height: 20px;
  color: var(--mrv-primary);
  flex: 0 0 auto;
}

.mrv-course-detail__next-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: .75rem;
}

.mrv-course-detail__next-dates article {
  display: grid;
  gap: .1rem;
  padding: .9rem;
  border: 1px solid rgba(12, 122, 120, .12);
  border-radius: 16px;
  background: #fff;
}

.mrv-course-detail__next-dates article > span {
  color: var(--mrv-primary-dark);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mrv-course-detail__next-dates article strong {
  color: var(--mrv-ink);
  font-size: 1.18rem;
}

.mrv-course-detail__next-dates article small {
  color: var(--mrv-soft);
}

.mrv-course-detail__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 30px;
  background: linear-gradient(135deg, #0b7775, #095d5b);
  color: #fff;
  box-shadow: 0 22px 48px rgba(10, 95, 93, .2);
}

.mrv-course-detail__cta h2 {
  margin-bottom: .6rem;
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.mrv-course-detail__cta p,
.mrv-course-detail__cta .mrv-kicker {
  color: #fff;
}

.mrv-course-detail__cta p:last-child {
  margin-bottom: 0;
}

.mrv-course-detail__cta .mrv-kicker::before {
  background: #fff;
}

.mrv-course-detail__cta .mrv-btn--primary {
  --btn-bg: #ffffff;
  --btn-color: var(--mrv-primary-dark);
  flex: 0 0 auto;
  box-shadow: none;
}

.mrv-course-detail__cta .mrv-btn--primary:hover,
.mrv-course-detail__cta .mrv-btn--primary:focus-visible {
  --btn-bg: #eaf5f4;
}

@media (max-width: 980px) {
  .mrv-course-detail__hero,
  .mrv-course-detail__content-grid {
    grid-template-columns: 1fr;
  }

  .mrv-course-detail__visual {
    order: -1;
  }

  .mrv-course-detail__image,
  .mrv-course-detail__image-placeholder {
    aspect-ratio: 16 / 9;
  }

  .mrv-course-detail__intro h1 {
    max-width: 18ch;
    font-size: clamp(2.45rem, 7vw, 4rem);
  }

  .mrv-course-detail__intro h1.is-long-title,
  .mrv-course-detail__intro h1.is-very-long-title {
    max-width: 100%;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
  }

  .mrv-course-detail__facts dl > div {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .mrv-course-detail__enrollment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mrv-course-detail__enrollment-card--signup {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .mrv-course-detail__shell {
    width: min(100% - 24px, 1180px);
    padding-top: 1.25rem;
  }

  .mrv-course-detail__breadcrumb {
    margin-bottom: 1rem;
  }

  .mrv-course-detail__hero,
  .mrv-course-detail__about,
  .mrv-course-detail__facts,
  .mrv-course-detail__schedule,
  .mrv-course-detail__enrollment,
  .mrv-course-detail__cta {
    border-radius: 22px;
  }

  .mrv-course-detail__hero {
    gap: 1.4rem;
    padding: 1.15rem;
  }

  .mrv-course-detail__image,
  .mrv-course-detail__image-placeholder {
    border-radius: 18px;
    aspect-ratio: 4 / 3;
  }

  .mrv-course-detail__intro h1 {
    max-width: none;
    font-size: clamp(2.2rem, 11vw, 3.1rem);
    line-height: 1.04;
  }


  .mrv-course-detail__intro h1.is-long-title,
  .mrv-course-detail__intro h1.is-very-long-title {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.7rem);
    line-height: 1.04;
  }

  .mrv-course-detail__meta {
    display: grid;
  }

  .mrv-course-detail__meta-item,
  .mrv-course-detail__meta-item--time {
    width: 100%;
  }

  .mrv-course-detail__actions {
    display: grid;
  }

  .mrv-course-detail__actions .mrv-btn {
    width: 100%;
    min-width: 0;
  }

  .mrv-course-detail__content-grid {
    gap: 1rem;
    margin-top: 1rem;
  }

  .mrv-course-detail__about,
  .mrv-course-detail__facts,
  .mrv-course-detail__schedule,
  .mrv-course-detail__enrollment {
    padding: 1.25rem;
  }

  .mrv-course-detail__facts dl > div {
    grid-template-columns: 1fr;
    gap: .2rem;
  }

  .mrv-course-detail__enrollment-grid {
    grid-template-columns: 1fr;
  }

  .mrv-course-detail__enrollment-card--signup {
    grid-column: auto;
  }

  .mrv-course-detail__schedule-head,
  .mrv-course-detail__cta {
    align-items: stretch;
    flex-direction: column;
  }

  .mrv-course-detail__schedule-head .mrv-btn,
  .mrv-course-detail__cta .mrv-btn {
    width: 100%;
  }

  .mrv-course-detail__next-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mrv-course-detail__cta {
    padding: 1.4rem;
  }
}

/* === Matilde 1.1.10: Startseiten-Hero nach Referenz === */
/*
 * Wichtig: Die folgenden Header-Regeln sind ausschließlich auf die Seite mit
 * [matilde_home] begrenzt. Auf Kurs-, Kalender- und allen anderen Seiten bleibt
 * die ursprüngliche WordPress-/Theme-Positionierung vollständig erhalten.
 */
body.mrv-home-page #masthead.site-header,
body.mrv-home-page header#masthead,
body.mrv-home-page .site-header {
  position: absolute !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.admin-bar.mrv-home-page #masthead.site-header,
body.admin-bar.mrv-home-page header#masthead,
body.admin-bar.mrv-home-page .site-header {
  top: 32px;
}

body.mrv-home-page #masthead .site-header-wrap,
body.mrv-home-page #masthead .site-main-header-wrap,
body.mrv-home-page #masthead .site-header-row-container,
body.mrv-home-page #masthead .site-header-row-container-inner,
body.mrv-home-page #masthead .site-main-header-inner-wrap,
body.mrv-home-page #masthead .site-container {
  background: transparent !important;
  box-shadow: none !important;
}

body.mrv-home-page #masthead .site-header-row-container-inner,
body.mrv-home-page #masthead .site-container {
  width: 100% !important;
  max-width: none !important;
}

body.mrv-home-page #masthead .site-container {
  padding-right: clamp(28px, 3.3vw, 58px) !important;
  padding-left: clamp(28px, 3.3vw, 58px) !important;
}

body.mrv-home-page #masthead .site-main-header-inner-wrap {
  min-height: clamp(88px, 7vw, 112px);
}

body.mrv-home-page #masthead .site-header-main-section-right,
body.mrv-home-page #masthead .header-navigation,
body.mrv-home-page #masthead .header-menu-container {
  justify-content: flex-end;
}

/* Eventuelle Theme-Abstände oberhalb des Startseiteninhalts entfernen. */
body.mrv-home-page .site-content,
body.mrv-home-page .content-area,
body.mrv-home-page .site-main,
body.mrv-home-page main#main,
body.mrv-home-page #primary,
body.mrv-home-page .entry-content,
body.mrv-home-page .entry-content-wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.mrv-hero--reference {
  --mrv-hero-teal: #007879;
  --mrv-hero-teal-dark: #00696a;
  --mrv-hero-copy: #176b6c;
  --mrv-hero-mint: #cce8e9;
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 10%, rgba(210, 234, 237, .38), transparent 37%),
    linear-gradient(100deg, #f7fbfb 0%, #f7fbfb 44%, #f8f7f1 100%);
}

.mrv-hero--reference::before,
.mrv-hero--reference::after,
.mrv-hero--reference .mrv-hero__glow {
  display: none !important;
}

.mrv-hero--reference .mrv-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(600px, 41.5vw, 710px);
  min-height: 600px;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  gap: 0;
  align-items: stretch;
}

.mrv-hero--reference .mrv-hero__copy {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: none;
  margin: 0;
  padding: clamp(100px, 8.3vw, 132px) clamp(28px, 3.4vw, 58px) clamp(42px, 4vw, 68px) clamp(42px, 4vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mrv-hero--reference .mrv-hero__copy h1 {
  max-width: none;
  margin: 0 0 clamp(1.15rem, 1.7vw, 1.75rem);
  color: var(--mrv-hero-teal);
  font-family: "Avenir Next", Avenir, Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: clamp(3.55rem, 5.05vw, 5.65rem);
  font-weight: 650;
  line-height: 1.01;
  letter-spacing: -.045em;
  text-wrap: initial;
}

.mrv-hero--reference .mrv-hero__intro {
  max-width: 620px;
}

.mrv-hero--reference .mrv-hero__intro p {
  margin: 0 0 clamp(.55rem, .75vw, .85rem);
  color: var(--mrv-hero-copy);
  font-family: "Avenir Next", Avenir, Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1rem, 1.08vw, 1.2rem);
  font-weight: 430;
  line-height: 1.52;
  letter-spacing: -.012em;
}

.mrv-hero--reference .mrv-hero__intro p:last-child {
  margin-bottom: 0;
}

.mrv-hero--reference .mrv-actions {
  margin-top: clamp(1.15rem, 1.65vw, 1.7rem);
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 1.2vw, 1.25rem);
  flex-wrap: nowrap;
}

.mrv-hero--reference .mrv-btn {
  min-width: clamp(174px, 13.8vw, 232px);
  min-height: 50px;
  padding: .78rem 1.35rem;
  border-width: 1.5px;
  border-radius: 999px;
  font-size: clamp(.88rem, .93vw, 1rem);
  font-weight: 650;
  box-shadow: none;
}

.mrv-hero--reference .mrv-btn:hover,
.mrv-hero--reference .mrv-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 105, 106, .11);
}

.mrv-hero--reference .mrv-btn--primary {
  --btn-bg: var(--mrv-hero-teal);
  --btn-color: #fff;
}

.mrv-hero--reference .mrv-btn--primary:hover,
.mrv-hero--reference .mrv-btn--primary:focus-visible {
  --btn-bg: var(--mrv-hero-teal-dark);
}

.mrv-hero--reference .mrv-btn--outline {
  --btn-bg: rgba(255, 255, 255, .16);
  --btn-color: var(--mrv-hero-teal-dark);
  border-color: var(--mrv-hero-teal);
}

.mrv-hero--reference .mrv-hero__image-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0 0 0 clamp(30px, 3.35vw, 58px);
  overflow: hidden;
  border-radius: 52% 0 0 52% / 50% 0 0 50%;
  background: var(--mrv-hero-mint);
}

.mrv-hero--reference .mrv-hero__image {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 52% 0 0 52% / 50% 0 0 50%;
  background: #e7efeb;
  box-shadow: none;
}

.mrv-hero--reference .mrv-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 51% center;
  filter: saturate(.97) contrast(.99) brightness(1.02);
}

.mrv-hero--reference .mrv-hero__highlights {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 0 clamp(28px, 3.8vw, 68px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(0, 105, 106, .08);
  border-radius: 0;
  background: rgba(220, 238, 239, .97);
}

.mrv-hero--reference .mrv-hero-highlight {
  position: relative;
  min-width: 0;
  min-height: 88px;
  margin: 0;
  padding: .7rem clamp(.55rem, .95vw, 1.05rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.48rem, .75vw, .82rem);
  border: 0 !important;
  text-align: center;
}

.mrv-hero--reference .mrv-hero-highlight:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26%;
  right: 0;
  bottom: 26%;
  width: 1px;
  background: rgba(0, 105, 106, .31);
}

.mrv-hero--reference .mrv-hero-highlight > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--mrv-hero-teal);
}

.mrv-hero--reference .mrv-hero-highlight .mrv-icon {
  width: clamp(25px, 1.9vw, 34px);
  height: clamp(25px, 1.9vw, 34px);
}

.mrv-hero--reference .mrv-hero-highlight strong {
  min-width: 0;
  color: var(--mrv-hero-copy);
  font-family: "Avenir Next", Avenir, Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: clamp(.7rem, .74vw, .84rem);
  font-weight: 540;
  line-height: 1.25;
}

@media (max-width: 1120px) {
  .mrv-hero--reference .mrv-hero__inner {
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  }

  .mrv-hero--reference .mrv-hero__copy {
    padding-left: 34px;
    padding-right: 26px;
  }

  .mrv-hero--reference .mrv-hero__copy h1 {
    font-size: clamp(3.25rem, 6vw, 4.65rem);
  }

  .mrv-hero--reference .mrv-hero__highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-inline: 24px;
  }

  .mrv-hero--reference .mrv-hero-highlight:nth-child(3n)::after {
    display: none;
  }

  .mrv-hero--reference .mrv-hero-highlight:nth-child(-n+3) {
    border-bottom: 1px solid rgba(0, 105, 106, .14) !important;
  }
}

@media (max-width: 860px) {
  body.mrv-home-page #masthead.site-header,
  body.mrv-home-page header#masthead,
  body.mrv-home-page .site-header {
    position: relative !important;
    top: auto;
  }

  body.admin-bar.mrv-home-page #masthead.site-header,
  body.admin-bar.mrv-home-page header#masthead,
  body.admin-bar.mrv-home-page .site-header {
    top: auto;
  }

  .mrv-hero--reference {
    overflow: visible;
  }

  .mrv-hero--reference .mrv-hero__inner {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mrv-hero--reference .mrv-hero__copy {
    width: min(100% - 32px, 680px);
    margin: 0 auto;
    padding: 3.5rem 0 2.6rem;
  }

  .mrv-hero--reference .mrv-hero__copy h1 {
    max-width: 9ch;
    font-size: clamp(3rem, 11vw, 4.55rem);
  }

  .mrv-hero--reference .mrv-hero__intro {
    max-width: 42rem;
  }

  .mrv-hero--reference .mrv-hero__image-wrap {
    width: calc(100% - 32px);
    height: auto;
    min-height: 0;
    margin: 0 0 1.25rem auto;
    padding: 12px 0 0 12px;
    border-radius: 100px 0 0 100px;
  }

  .mrv-hero--reference .mrv-hero__image {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 88px 0 0 88px;
  }

  .mrv-hero--reference .mrv-hero__highlights {
    width: calc(100% - 32px);
    margin: 0 auto 1.5rem;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(0, 105, 106, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
  }

  .mrv-hero--reference .mrv-hero-highlight {
    min-height: 78px;
    justify-content: flex-start;
    text-align: left;
  }

  .mrv-hero--reference .mrv-hero-highlight:nth-child(3n)::after {
    display: block;
  }

  .mrv-hero--reference .mrv-hero-highlight:nth-child(2n)::after {
    display: none;
  }

  .mrv-hero--reference .mrv-hero-highlight:nth-child(-n+3) {
    border-bottom: 0 !important;
  }

  .mrv-hero--reference .mrv-hero-highlight:nth-child(-n+4) {
    border-bottom: 1px solid rgba(0, 105, 106, .13) !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar.mrv-home-page #masthead.site-header,
  body.admin-bar.mrv-home-page header#masthead,
  body.admin-bar.mrv-home-page .site-header {
    top: auto;
  }
}

@media (max-width: 560px) {
  .mrv-hero--reference .mrv-hero__copy {
    padding-top: 2.8rem;
  }

  .mrv-hero--reference .mrv-hero__copy h1 {
    font-size: clamp(2.75rem, 13.5vw, 4rem);
  }

  .mrv-hero--reference .mrv-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mrv-hero--reference .mrv-btn {
    width: 100%;
    min-width: 0;
  }

  .mrv-hero--reference .mrv-hero__image-wrap {
    width: calc(100% - 18px);
    padding: 8px 0 0 8px;
    border-radius: 54px 0 0 54px;
  }

  .mrv-hero--reference .mrv-hero__image {
    border-radius: 48px 0 0 48px;
  }

  .mrv-hero--reference .mrv-hero__highlights {
    grid-template-columns: 1fr;
  }

  .mrv-hero--reference .mrv-hero-highlight,
  .mrv-hero--reference .mrv-hero-highlight:nth-child(-n+4) {
    border-bottom: 1px solid rgba(0, 105, 106, .13) !important;
  }

  .mrv-hero--reference .mrv-hero-highlight::after {
    display: none !important;
  }

  .mrv-hero--reference .mrv-hero-highlight:last-child {
    border-bottom: 0 !important;
  }
}

/* === Matilde 1.1.11: Startseiten-Hero bündig an den oberen Fensterrand === */
/*
 * Einige Themes lassen trotz der bisherigen Resets oberhalb des eigentlichen
 * Seiteninhalts einen kleinen vertikalen Startabstand stehen. Nur auf der
 * Matilde-Startseite wird dieser Restabstand ausgeglichen. Andere Seiten
 * behalten unverändert das Layout der Version 1.1.7.
 */
@media (min-width: 861px) {
  body.mrv-home-page .mrv-home--editorial {
    margin-top: -32px !important;
  }

  /* Logo und vorhandenes WordPress-Menü sitzen dadurch näher an der oberen
     Kante, ohne die Menüstruktur oder andere Seiten zu verändern. */
  body.mrv-home-page #masthead .site-main-header-inner-wrap {
    min-height: 88px !important;
  }
}

/* === Matilde 1.1.12: Startseite Bereiche „Auf einen Blick“ + „Kursidee“ === */
body.mrv-home-page .mrv-overview {
  position: relative;
  width: min(100% - 32px, 1420px);
  padding: clamp(2.6rem, 5vw, 4.25rem);
  margin-block: clamp(3rem, 6vw, 4.75rem);
  border-radius: 40px;
  background:
    radial-gradient(circle at 8% 6%, rgba(210, 231, 231, .85), transparent 24%),
    linear-gradient(180deg, #f7fbfb 0%, #ffffff 42%, #f7fbfb 100%);
  box-shadow: 0 18px 48px rgba(13, 72, 71, .08);
  overflow: hidden;
}
body.mrv-home-page .mrv-overview::before,
body.mrv-home-page .mrv-overview::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 130%;
  height: 180px;
  transform: translateX(-50%);
  background: rgba(218, 234, 234, .55);
  border-radius: 50%;
  pointer-events: none;
}
body.mrv-home-page .mrv-overview::before {
  top: -145px;
}
body.mrv-home-page .mrv-overview::after {
  bottom: -150px;
  background: rgba(231, 241, 241, .72);
}
body.mrv-home-page .mrv-overview > * {
  position: relative;
  z-index: 1;
}
body.mrv-home-page .mrv-overview__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: 2rem;
}
body.mrv-home-page .mrv-overview__intro {
  max-width: 720px;
  margin: 0;
}
body.mrv-home-page .mrv-overview__intro h2,
body.mrv-home-page .mrv-course-idea__copy h2 {
  margin: 0 0 1.15rem !important;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: .98;
}
body.mrv-home-page .mrv-overview__intro h2 {
  font-size: clamp(2.7rem, 5.1vw, 4.6rem);
  max-width: 11ch;
}
body.mrv-home-page .mrv-overview__lead {
  max-width: 38ch;
  margin-bottom: 1.6rem;
}
body.mrv-home-page .mrv-overview__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .9rem;
}
body.mrv-home-page .mrv-overview-stat {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-width: 164px;
  padding: .9rem 1rem;
  border: 1px solid rgba(12, 122, 120, .08);
  border-radius: 18px;
  background: rgba(243, 248, 248, .92);
  box-shadow: 0 12px 26px rgba(13, 72, 71, .05);
}
body.mrv-home-page .mrv-overview-stat__icon,
body.mrv-home-page .mrv-course-idea__benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--mrv-primary-dark);
  background: #eaf3f2;
  flex: 0 0 auto;
}
body.mrv-home-page .mrv-overview-stat__text {
  display: grid;
  gap: .15rem;
  line-height: 1.12;
}
body.mrv-home-page .mrv-overview-stat__text strong {
  color: var(--mrv-primary-dark);
  font-size: .98rem;
  font-weight: 700;
}
body.mrv-home-page .mrv-overview-stat__text small {
  color: var(--mrv-soft);
  font-size: .88rem;
}
body.mrv-home-page .mrv-overview .mrv-actions {
  flex-wrap: wrap;
}
body.mrv-home-page .mrv-overview .mrv-btn--light {
  --btn-bg: transparent;
  --btn-color: var(--mrv-primary-dark);
  border-color: rgba(12, 122, 120, .42);
  background: rgba(255, 255, 255, .7);
}
body.mrv-home-page .mrv-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}
body.mrv-home-page .mrv-feature-card {
  position: relative;
  padding: 1.45rem 1.2rem 1.35rem;
  border: 1px solid rgba(21, 92, 91, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 30px rgba(13, 72, 71, .05);
}
body.mrv-home-page .mrv-feature-card h3 {
  margin: .95rem 0 .7rem;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 1.95vw, 1.85rem);
  font-weight: 400;
  line-height: 1.04;
}
body.mrv-home-page .mrv-feature-card p {
  margin: 0;
  color: var(--mrv-soft);
  font-size: .98rem;
  line-height: 1.55;
}
body.mrv-home-page .mrv-feature-card::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: .95rem;
  border-radius: 999px;
  background: rgba(12, 122, 120, .52);
}

body.mrv-home-page .mrv-course-idea {
  width: min(100% - 32px, 1420px);
  padding: 0;
  margin-block: clamp(3rem, 6vw, 5rem);
  background: transparent;
}
body.mrv-home-page .mrv-course-idea__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border: 1px solid rgba(12, 122, 120, .1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 4% 8%, rgba(216, 234, 234, .72), transparent 22%),
    linear-gradient(135deg, #f8fbfb 0%, #ffffff 55%, #eef7f6 100%);
  box-shadow: 0 22px 60px rgba(13, 72, 71, .09);
  overflow: hidden;
}
body.mrv-home-page .mrv-course-idea__inner::before,
body.mrv-home-page .mrv-course-idea__inner::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(12, 122, 120, .18);
  border-radius: 50%;
  pointer-events: none;
}
body.mrv-home-page .mrv-course-idea__inner::before {
  width: 220px;
  height: 220px;
  left: -165px;
  bottom: -120px;
}
body.mrv-home-page .mrv-course-idea__inner::after {
  width: 140px;
  height: 140px;
  left: -110px;
  bottom: 45px;
}
body.mrv-home-page .mrv-course-idea__copy,
body.mrv-home-page .mrv-course-idea__media {
  position: relative;
  z-index: 1;
}
body.mrv-home-page .mrv-course-idea__copy {
  padding: clamp(.5rem, 2vw, 1rem) clamp(.25rem, 1.5vw, .6rem);
}
body.mrv-home-page .mrv-course-idea__copy h2 {
  font-size: clamp(2.8rem, 5vw, 4.75rem);
  max-width: 9.5ch;
}
body.mrv-home-page .mrv-course-idea__copy h2 em {
  color: #78aeb3;
  font-style: italic;
  font-weight: 400;
}
body.mrv-home-page .mrv-course-idea__lead {
  margin: 0 0 1rem;
  max-width: 18ch;
  color: var(--mrv-primary-dark);
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  line-height: 1.35;
}
body.mrv-home-page .mrv-course-idea__copy > p:last-of-type {
  max-width: 36ch;
  margin-bottom: 1.55rem;
  color: var(--mrv-soft);
  font-size: 1rem;
  line-height: 1.65;
}
body.mrv-home-page .mrv-course-idea .mrv-actions {
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
body.mrv-home-page .mrv-course-idea .mrv-btn--ghost {
  --btn-bg: transparent;
  --btn-color: var(--mrv-primary-dark);
  border-color: rgba(12, 122, 120, .45);
  box-shadow: none;
  backdrop-filter: none;
}
body.mrv-home-page .mrv-course-idea__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  max-width: 640px;
}
body.mrv-home-page .mrv-course-idea__benefit {
  display: grid;
  justify-items: center;
  gap: .28rem;
  padding: .85rem 1rem .35rem;
  text-align: center;
}
body.mrv-home-page .mrv-course-idea__benefit:not(:last-child) {
  border-right: 1px solid rgba(12, 122, 120, .12);
}
body.mrv-home-page .mrv-course-idea__benefit strong,
body.mrv-home-page .mrv-course-idea__benefit small {
  display: block;
  text-transform: uppercase;
  letter-spacing: .05em;
}
body.mrv-home-page .mrv-course-idea__benefit strong {
  color: var(--mrv-primary-dark);
  font-size: .96rem;
  font-weight: 700;
}
body.mrv-home-page .mrv-course-idea__benefit small {
  color: var(--mrv-primary-dark);
  font-size: .92rem;
  line-height: 1.35;
}
body.mrv-home-page .mrv-course-idea__media {
  min-height: 100%;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #efe7db;
}
body.mrv-home-page .mrv-course-idea__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

@media (max-width: 1180px) {
  body.mrv-home-page .mrv-overview__top,
  body.mrv-home-page .mrv-course-idea__inner {
    grid-template-columns: 1fr;
  }

  body.mrv-home-page .mrv-overview__stats {
    justify-content: flex-start;
  }

  body.mrv-home-page .mrv-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.mrv-home-page .mrv-course-idea__copy > p:last-of-type,
  body.mrv-home-page .mrv-course-idea__lead,
  body.mrv-home-page .mrv-overview__lead {
    max-width: none;
  }
}

@media (max-width: 860px) {
  body.mrv-home-page .mrv-overview,
  body.mrv-home-page .mrv-course-idea {
    width: min(100% - 20px, 1420px);
  }

  body.mrv-home-page .mrv-overview {
    padding: 1.7rem;
    border-radius: 28px;
  }

  body.mrv-home-page .mrv-overview::before,
  body.mrv-home-page .mrv-overview::after {
    display: none;
  }

  body.mrv-home-page .mrv-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mrv-home-page .mrv-course-idea__inner {
    padding: 1.35rem;
    border-radius: 28px;
  }

  body.mrv-home-page .mrv-course-idea__benefits {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body.mrv-home-page .mrv-course-idea__benefit {
    justify-items: start;
    text-align: left;
    padding: .95rem 0;
  }

  body.mrv-home-page .mrv-course-idea__benefit:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(12, 122, 120, .12);
  }

  body.mrv-home-page .mrv-course-idea__media {
    max-height: 620px;
  }
}

@media (max-width: 640px) {
  body.mrv-home-page .mrv-overview__intro h2,
  body.mrv-home-page .mrv-course-idea__copy h2 {
    font-size: clamp(2.1rem, 11vw, 3.15rem);
    max-width: none;
  }

  body.mrv-home-page .mrv-overview-stat {
    width: 100%;
  }

  body.mrv-home-page .mrv-feature-grid {
    grid-template-columns: 1fr;
  }

  body.mrv-home-page .mrv-feature-card {
    padding: 1.2rem 1rem 1.1rem;
  }

  body.mrv-home-page .mrv-course-idea__copy {
    padding: 0;
  }

  body.mrv-home-page .mrv-course-idea__media {
    border-radius: 22px;
    max-height: none;
  }
}

/* === Matilde 1.1.13: nächste Startseitenbereiche in identischer Breite === */
body.mrv-home-page .mrv-usecases,
body.mrv-home-page .mrv-calendar-teaser {
  width: min(100% - 32px, 1420px);
  margin-inline: auto;
}

@media (max-width: 860px) {
  body.mrv-home-page .mrv-usecases,
  body.mrv-home-page .mrv-calendar-teaser {
    width: min(100% - 20px, 1420px);
  }
}

/* === Matilde 1.1.14: Bereiche Möglichkeiten + Kalender nach Referenz === */
body.mrv-home-page .mrv-usecases {
  position: relative;
  width: min(100% - 32px, 1420px);
  margin: clamp(3rem, 6vw, 5rem) auto;
  padding: clamp(2.5rem, 4.7vw, 4.4rem) clamp(1.25rem, 4vw, 3.8rem) clamp(2.8rem, 4.8vw, 4.4rem);
  border: 1px solid rgba(12, 122, 120, .09);
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 0%, rgba(218, 236, 236, .52), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,254,254,.98));
  box-shadow: 0 20px 58px rgba(13, 72, 71, .08);
  overflow: hidden;
}
body.mrv-home-page .mrv-usecases::before,
body.mrv-home-page .mrv-usecases::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 245px;
  height: 430px;
  border: 2px solid rgba(39, 151, 153, .26);
  border-radius: 48% 52% 44% 56% / 38% 45% 55% 62%;
  pointer-events: none;
}
body.mrv-home-page .mrv-usecases::before {
  left: -190px;
  top: 105px;
  transform: rotate(-12deg);
}
body.mrv-home-page .mrv-usecases::after {
  right: -190px;
  bottom: 8px;
  transform: rotate(18deg);
}
body.mrv-home-page .mrv-usecases > * {
  position: relative;
  z-index: 1;
}
body.mrv-home-page .mrv-usecases .mrv-section__head {
  width: min(100%, 920px);
  margin: 0 auto clamp(1.8rem, 3.5vw, 2.9rem);
  text-align: center;
}
body.mrv-home-page .mrv-usecases .mrv-kicker {
  justify-content: center;
  margin: 0 0 .55rem;
  color: #17999b;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}
body.mrv-home-page .mrv-usecases .mrv-kicker::before {
  display: none;
}
body.mrv-home-page .mrv-usecases .mrv-section__head h2 {
  max-width: none;
  margin: 0 0 .75rem !important;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 4.3vw, 4.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
}
body.mrv-home-page .mrv-usecases__lead {
  max-width: 760px;
  margin: 0 auto;
  color: var(--mrv-soft);
  font-size: clamp(.95rem, 1.25vw, 1.12rem);
  line-height: 1.55;
  text-align: center;
}
body.mrv-home-page .mrv-usecase-grid {
  width: min(100%, 1130px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
body.mrv-home-page .mrv-usecase-card,
body.mrv-home-page .mrv-usecase-card--wide {
  grid-column: span 2;
  border: 1px solid rgba(16, 98, 97, .16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(13, 72, 71, .045);
  overflow: hidden;
}
body.mrv-home-page .mrv-usecase-card--4 {
  grid-column: 2 / span 2;
}
body.mrv-home-page .mrv-usecase-card--5 {
  grid-column: 4 / span 2;
}
body.mrv-home-page .mrv-usecase-card__media {
  margin: 0;
  aspect-ratio: 1.86 / 1;
  background: #edf3f2;
  overflow: hidden;
}
body.mrv-home-page .mrv-usecase-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}
body.mrv-home-page .mrv-usecase-card:hover .mrv-usecase-card__media img {
  transform: scale(1.025);
}
body.mrv-home-page .mrv-usecase-card__body {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: .9rem;
  align-items: center;
  min-height: 92px;
  padding: .85rem 1rem .9rem;
}
body.mrv-home-page .mrv-usecase-card .mrv-icon-badge {
  width: 48px;
  height: 48px;
  background: #dfeeee;
  color: #2f9294;
}
body.mrv-home-page .mrv-usecase-card .mrv-icon-badge .mrv-icon {
  width: 25px;
  height: 25px;
}
body.mrv-home-page .mrv-usecase-card__body h3 {
  margin: 0 0 .18rem !important;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 1.5vw, 1.48rem);
  font-weight: 400;
  line-height: 1.08;
}
body.mrv-home-page .mrv-usecase-card__body p {
  margin: 0;
  color: var(--mrv-soft);
  font-size: .78rem;
  line-height: 1.4;
}

body.mrv-home-page .mrv-calendar-teaser {
  position: relative;
  width: min(100% - 32px, 1420px);
  min-height: 610px;
  margin: clamp(3rem, 6vw, 5rem) auto;
  padding: clamp(2.25rem, 4.6vw, 4.4rem) clamp(1.4rem, 4.8vw, 4.6rem);
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 5vw, 5.2rem);
  align-items: center;
  border: 1px solid rgba(12, 122, 120, .1);
  border-radius: 32px;
  background:
    radial-gradient(circle at 2% 4%, rgba(216, 235, 235, .6), transparent 23%),
    linear-gradient(135deg, #fbfdfd 0%, #ffffff 58%, #f5fbfa 100%);
  box-shadow: 0 20px 58px rgba(13, 72, 71, .08);
  overflow: hidden;
}
body.mrv-home-page .mrv-calendar-teaser::before,
body.mrv-home-page .mrv-calendar-teaser::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
body.mrv-home-page .mrv-calendar-teaser::before {
  left: -112px;
  top: -88px;
  width: 230px;
  height: 230px;
  border: 2px solid rgba(39, 151, 153, .3);
  border-radius: 46% 54% 50% 50%;
  transform: rotate(22deg);
}
body.mrv-home-page .mrv-calendar-teaser::after {
  left: -75px;
  bottom: -118px;
  width: 420px;
  height: 215px;
  border: 2px solid rgba(39, 151, 153, .3);
  border-radius: 50%;
  transform: rotate(5deg);
}
body.mrv-home-page .mrv-calendar-teaser__copy,
body.mrv-home-page .mrv-calendar-teaser__panel {
  position: relative;
  z-index: 1;
}
body.mrv-home-page .mrv-calendar-teaser__copy::before {
  content: "♡";
  position: absolute;
  left: -38px;
  top: -48px;
  color: rgba(39, 151, 153, .5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  transform: rotate(-12deg);
}
body.mrv-home-page .mrv-calendar-teaser__copy h2 {
  max-width: 9.5ch;
  margin: 0 0 1.4rem !important;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}
body.mrv-home-page .mrv-calendar-teaser__copy h2 em {
  display: block;
  color: var(--mrv-ink);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.13em;
  font-weight: 400;
  line-height: .8;
  letter-spacing: 0;
}
body.mrv-home-page .mrv-calendar-teaser__copy p {
  max-width: 34ch;
  margin: 0 0 1.65rem;
  color: var(--mrv-soft);
  font-size: clamp(.98rem, 1.2vw, 1.1rem);
  line-height: 1.65;
}
body.mrv-home-page .mrv-calendar-teaser__copy .mrv-actions {
  display: grid;
  gap: .75rem;
  width: min(100%, 360px);
  margin: 0;
}
body.mrv-home-page .mrv-calendar-teaser__copy .mrv-btn {
  width: 100%;
  min-height: 58px;
  justify-content: center;
  gap: .75rem;
  border-radius: 9px;
  font-size: 1.05rem;
}
body.mrv-home-page .mrv-calendar-teaser__copy .mrv-btn .mrv-icon {
  width: 20px;
  height: 20px;
}
body.mrv-home-page .mrv-calendar-teaser__copy .mrv-btn--light {
  --btn-bg: rgba(255,255,255,.8);
  --btn-color: var(--mrv-primary-dark);
  border-color: var(--mrv-primary);
  box-shadow: none;
}
body.mrv-home-page .mrv-calendar-teaser__panel {
  min-width: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
body.mrv-home-page .mrv-calendar--compact {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.mrv-home-page .mrv-calendar--compact .mrv-section__head {
  margin: 0 0 1.15rem;
}
body.mrv-home-page .mrv-calendar-compact__title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
body.mrv-home-page .mrv-calendar-compact__icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--mrv-primary-dark);
  flex: 0 0 auto;
}
body.mrv-home-page .mrv-calendar-compact__icon .mrv-icon {
  width: 46px;
  height: 46px;
}
body.mrv-home-page .mrv-calendar-compact__title-row h2 {
  margin: 0 !important;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.1vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
}
body.mrv-home-page .mrv-compact-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  min-height: 285px;
  border: 1px solid rgba(18, 92, 91, .15);
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 30px rgba(13, 72, 71, .045);
  overflow: hidden;
}
body.mrv-home-page .mrv-compact-day {
  min-width: 0;
  min-height: 285px;
  padding: 1.15rem .65rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-right: 1px solid rgba(18, 92, 91, .12);
  border-radius: 0;
  background: rgba(255,255,255,.56);
  box-shadow: none;
  text-align: center;
}
body.mrv-home-page .mrv-compact-day:last-child {
  border-right: 0;
}
body.mrv-home-page .mrv-compact-day--weekday-7 {
  background: linear-gradient(180deg, rgba(224,243,243,.88), rgba(234,247,247,.72));
}
body.mrv-home-page .mrv-compact-day.is-busy {
  background: rgba(255,255,255,.58);
}
body.mrv-home-page .mrv-compact-day.is-closed {
  background: rgba(247,249,249,.82);
}
body.mrv-home-page .mrv-compact-day header {
  display: grid;
  gap: .25rem;
  justify-items: center;
  margin-bottom: 1.9rem;
}
body.mrv-home-page .mrv-compact-day header span {
  color: var(--mrv-primary-dark);
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
body.mrv-home-page .mrv-compact-day header strong {
  color: #73aeb1;
  font-size: .92rem;
  font-weight: 400;
}
body.mrv-home-page .mrv-compact-day > p {
  margin: auto 0 .65rem;
  color: var(--mrv-primary-dark);
  font-size: clamp(.86rem, 1.05vw, 1rem);
  font-weight: 700;
  line-height: 1.35;
}
body.mrv-home-page .mrv-compact-day > small {
  display: none;
}
body.mrv-home-page .mrv-compact-day ul {
  width: 100%;
  margin: .25rem 0 0;
  padding: 0;
  list-style: none;
}
body.mrv-home-page .mrv-compact-day li {
  margin: 0;
  padding: .55rem .1rem 0;
  border-top: 1px solid rgba(18, 92, 91, .12);
  color: var(--mrv-primary-dark);
  font-size: .78rem;
  line-height: 1.3;
}
body.mrv-home-page .mrv-calendar-compact__note {
  position: relative;
  min-height: 102px;
  margin-top: 1.25rem;
  padding: 1.25rem 2rem 1.25rem 4.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  border: 1px solid rgba(18, 92, 91, .14);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(224,243,243,.88), rgba(237,249,248,.9));
  overflow: hidden;
}
body.mrv-home-page .mrv-calendar-compact__note > span {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mrv-primary-dark);
}
body.mrv-home-page .mrv-calendar-compact__note > span .mrv-icon {
  width: 34px;
  height: 34px;
}
body.mrv-home-page .mrv-calendar-compact__note p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #397c7e;
  font-size: 1rem;
  line-height: 1.55;
}
body.mrv-home-page .mrv-calendar-compact__note::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  bottom: -10px;
  width: 120px;
  height: 82px;
  opacity: .42;
  background:
    radial-gradient(ellipse at 15% 75%, transparent 0 43%, #4f9fa0 44% 45%, transparent 46%),
    linear-gradient(148deg, transparent 47%, #4f9fa0 48% 49%, transparent 50%);
  transform: rotate(-8deg);
}

@media (max-width: 1180px) {
  body.mrv-home-page .mrv-usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px;
  }
  body.mrv-home-page .mrv-usecase-card,
  body.mrv-home-page .mrv-usecase-card--4,
  body.mrv-home-page .mrv-usecase-card--5 {
    grid-column: auto;
  }
  body.mrv-home-page .mrv-usecase-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - .5rem);
    justify-self: center;
  }
  body.mrv-home-page .mrv-calendar-teaser {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  body.mrv-home-page .mrv-calendar-teaser__copy h2 {
    max-width: 14ch;
  }
  body.mrv-home-page .mrv-calendar-teaser__copy p {
    max-width: 58ch;
  }
}

@media (max-width: 860px) {
  body.mrv-home-page .mrv-usecases,
  body.mrv-home-page .mrv-calendar-teaser {
    width: min(100% - 20px, 1420px);
    border-radius: 26px;
  }
  body.mrv-home-page .mrv-usecases {
    padding: 2.2rem 1.2rem;
  }
  body.mrv-home-page .mrv-calendar-teaser {
    padding: 2.2rem 1.25rem;
  }
  body.mrv-home-page .mrv-calendar-teaser__copy::before,
  body.mrv-home-page .mrv-usecases::before,
  body.mrv-home-page .mrv-usecases::after,
  body.mrv-home-page .mrv-calendar-teaser::before,
  body.mrv-home-page .mrv-calendar-teaser::after {
    display: none;
  }
  body.mrv-home-page .mrv-compact-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 16px;
  }
  body.mrv-home-page .mrv-compact-day {
    min-height: 210px;
    border-right: 1px solid rgba(18, 92, 91, .12);
    border-bottom: 1px solid rgba(18, 92, 91, .12);
  }
  body.mrv-home-page .mrv-compact-day:nth-child(2n) {
    border-right: 0;
  }
  body.mrv-home-page .mrv-compact-day:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  body.mrv-home-page .mrv-usecases .mrv-section__head h2,
  body.mrv-home-page .mrv-calendar-teaser__copy h2 {
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }
  body.mrv-home-page .mrv-usecase-grid {
    grid-template-columns: 1fr;
  }
  body.mrv-home-page .mrv-usecase-card:last-child {
    grid-column: auto;
    width: 100%;
  }
  body.mrv-home-page .mrv-usecase-card__body {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  body.mrv-home-page .mrv-calendar-teaser__copy .mrv-actions {
    width: 100%;
  }
  body.mrv-home-page .mrv-compact-days {
    grid-template-columns: 1fr;
  }
  body.mrv-home-page .mrv-compact-day,
  body.mrv-home-page .mrv-compact-day:nth-child(2n),
  body.mrv-home-page .mrv-compact-day:nth-last-child(-n+2) {
    min-height: 170px;
    border-right: 0;
    border-bottom: 1px solid rgba(18, 92, 91, .12);
  }
  body.mrv-home-page .mrv-compact-day:last-child {
    border-bottom: 0;
  }
  body.mrv-home-page .mrv-compact-day header {
    margin-bottom: 1rem;
  }
  body.mrv-home-page .mrv-calendar-compact__note {
    padding: 1.1rem 1rem 1.1rem 4rem;
  }
  body.mrv-home-page .mrv-calendar-compact__note::after {
    display: none;
  }
}

/* === Matilde 1.1.15: abschließender Kursidee-CTA wie Referenz === */
body.mrv-home-page .mrv-final-cta {
  position: relative;
  width: min(100% - 32px, 1420px);
  min-height: 700px;
  margin-block: clamp(3rem, 6vw, 5.25rem) clamp(2rem, 4vw, 3.5rem);
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 7vw, 6rem);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 7%, rgba(75, 158, 154, .28), transparent 32%),
    radial-gradient(circle at 91% 90%, rgba(58, 151, 148, .34), transparent 36%),
    linear-gradient(135deg, #006b68 0%, #005b59 44%, #00504f 76%, #006563 100%);
  box-shadow: 0 26px 70px rgba(4, 65, 64, .2);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

body.mrv-home-page .mrv-final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

body.mrv-home-page .mrv-final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(0,0,0,.05));
}

body.mrv-home-page .mrv-final-cta__inner {
  position: relative;
  z-index: 3;
  width: min(100%, 880px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body.mrv-home-page .mrv-final-cta__kicker {
  margin: 0 0 1.65rem;
  color: rgba(255,255,255,.96);
  font-family: inherit;
  font-size: clamp(.8rem, 1.05vw, 1rem);
  font-weight: 800;
  letter-spacing: .38em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.mrv-home-page .mrv-final-cta__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  width: 230px;
  margin-bottom: 1.55rem;
  color: rgba(179, 227, 222, .62);
}

body.mrv-home-page .mrv-final-cta__ornament span {
  width: 72px;
  height: 1px;
  background: currentColor;
}

body.mrv-home-page .mrv-final-cta__ornament svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.mrv-home-page .mrv-final-cta h2 {
  max-width: 13ch;
  margin: 0 !important;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, 6vw, 5.55rem);
  font-weight: 400;
  letter-spacing: -.028em;
  line-height: 1.02;
  text-wrap: balance;
}

body.mrv-home-page .mrv-final-cta__underline {
  width: 220px;
  height: 10px;
  margin: 1.2rem 0 1.6rem;
  border-top: 3px solid rgba(155, 220, 213, .76);
  border-radius: 50%;
  transform: rotate(-1.3deg);
}

body.mrv-home-page .mrv-final-cta__lead {
  max-width: 610px;
  margin: 0 0 2rem;
  color: rgba(255,255,255,.9);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.55;
}

body.mrv-home-page .mrv-final-cta__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 1.2rem;
  width: min(100%, 630px);
  margin-bottom: 2.25rem;
}

body.mrv-home-page .mrv-final-cta__button {
  min-height: 64px;
  padding: .9rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 2px solid transparent;
  border-radius: 11px;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

body.mrv-home-page .mrv-final-cta__button .mrv-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

body.mrv-home-page .mrv-final-cta__button--primary {
  border-color: #bfe8e3;
  background: linear-gradient(135deg, #c8eeea, #b7e4df);
  color: #075d5b;
  box-shadow: 0 12px 28px rgba(0, 35, 34, .18);
}

body.mrv-home-page .mrv-final-cta__button--secondary {
  border-color: rgba(216, 246, 242, .74);
  background: rgba(0, 75, 73, .18);
  color: #fff;
  box-shadow: none;
}

body.mrv-home-page .mrv-final-cta__button:hover,
body.mrv-home-page .mrv-final-cta__button:focus-visible {
  transform: translateY(-2px);
}

body.mrv-home-page .mrv-final-cta__button--primary:hover,
body.mrv-home-page .mrv-final-cta__button--primary:focus-visible {
  background: #d4f3ef;
  box-shadow: 0 16px 34px rgba(0, 35, 34, .24);
}

body.mrv-home-page .mrv-final-cta__button--secondary:hover,
body.mrv-home-page .mrv-final-cta__button--secondary:focus-visible {
  border-color: #fff;
  background: rgba(255,255,255,.1);
}

body.mrv-home-page .mrv-final-cta__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .85rem 1.25rem;
  color: rgba(255,255,255,.9);
  font-size: clamp(.98rem, 1.25vw, 1.16rem);
}

body.mrv-home-page .mrv-final-cta__contact a {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: inherit;
  text-decoration: none !important;
}

body.mrv-home-page .mrv-final-cta__contact a:hover,
body.mrv-home-page .mrv-final-cta__contact a:focus-visible {
  color: #d0f1ed;
}

body.mrv-home-page .mrv-final-cta__contact .mrv-icon {
  width: 28px;
  height: 28px;
  color: rgba(191, 229, 225, .92);
}

body.mrv-home-page .mrv-final-cta__dot {
  color: #fff;
  font-size: 1.2rem;
}

body.mrv-home-page .mrv-final-cta__wave,
body.mrv-home-page .mrv-final-cta__branch {
  position: absolute;
  z-index: 1;
  display: block;
  color: rgba(167, 218, 213, .48);
  pointer-events: none;
}

body.mrv-home-page .mrv-final-cta__wave svg,
body.mrv-home-page .mrv-final-cta__branch svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.mrv-home-page .mrv-final-cta__wave--top {
  top: -25px;
  left: -22px;
  width: 250px;
  height: 220px;
}

body.mrv-home-page .mrv-final-cta__wave--bottom {
  right: -22px;
  bottom: -25px;
  width: 250px;
  height: 220px;
  transform: rotate(180deg);
}

body.mrv-home-page .mrv-final-cta__branch {
  width: 210px;
  height: 330px;
}

body.mrv-home-page .mrv-final-cta__branch--right {
  top: 34px;
  right: -18px;
}

body.mrv-home-page .mrv-final-cta__branch--left {
  left: -5px;
  bottom: -28px;
  transform: rotate(180deg);
}

@media (max-width: 1050px) {
  body.mrv-home-page .mrv-final-cta {
    min-height: 650px;
  }

  body.mrv-home-page .mrv-final-cta__branch {
    width: 170px;
    height: 270px;
    opacity: .7;
  }

  body.mrv-home-page .mrv-final-cta__wave {
    opacity: .72;
  }
}

@media (max-width: 760px) {
  body.mrv-home-page .mrv-final-cta {
    width: min(100% - 20px, 1420px);
    min-height: 0;
    padding: 4.2rem 1.2rem 3.5rem;
    border-radius: 16px;
  }

  body.mrv-home-page .mrv-final-cta__kicker {
    margin-bottom: 1.25rem;
    letter-spacing: .24em;
  }

  body.mrv-home-page .mrv-final-cta__ornament {
    width: 190px;
    margin-bottom: 1.25rem;
  }

  body.mrv-home-page .mrv-final-cta__ornament span {
    width: 56px;
  }

  body.mrv-home-page .mrv-final-cta h2 {
    max-width: 12ch;
    font-size: clamp(2.55rem, 11.5vw, 4rem);
  }

  body.mrv-home-page .mrv-final-cta__desktop-break {
    display: none;
  }

  body.mrv-home-page .mrv-final-cta__actions {
    grid-template-columns: 1fr;
    width: min(100%, 430px);
  }

  body.mrv-home-page .mrv-final-cta__button {
    min-height: 60px;
  }

  body.mrv-home-page .mrv-final-cta__contact {
    flex-direction: column;
    gap: .85rem;
  }

  body.mrv-home-page .mrv-final-cta__dot {
    display: none;
  }

  body.mrv-home-page .mrv-final-cta__branch {
    width: 125px;
    height: 200px;
    opacity: .44;
  }

  body.mrv-home-page .mrv-final-cta__wave {
    width: 170px;
    height: 150px;
    opacity: .48;
  }
}

@media (max-width: 480px) {
  body.mrv-home-page .mrv-final-cta {
    padding-inline: 1rem;
  }

  body.mrv-home-page .mrv-final-cta h2 br {
    display: none;
  }

  body.mrv-home-page .mrv-final-cta__underline {
    width: 150px;
  }

  body.mrv-home-page .mrv-final-cta__lead {
    font-size: .98rem;
  }

  body.mrv-home-page .mrv-final-cta__contact {
    font-size: .92rem;
  }
}

/* === Matilde 1.1.16: Kalenderseite Desktop breiter und luftiger === */
@media (min-width: 1025px) {
  /* Sicherer Abstand unter dem transparenten WordPress-Menü. */
  body.mrv-plugin-page .mrv-calendar-wrap {
    box-sizing: border-box;
    min-height: 100vh;
    padding-top: 112px;
  }

  /* Die Kalenderfläche nutzt auf großen Monitoren deutlich mehr Breite. */
  body.mrv-plugin-page .mrv-calendar-wrap .mrv-calendar--month {
    width: min(1380px, calc(100% - 72px));
    margin: 0 auto clamp(3.5rem, 5vw, 5rem);
    padding: clamp(2.25rem, 3.2vw, 3.5rem);
  }

  /* Kopfbereich konsequent mittig und nicht unnötig schmal. */
  body.mrv-plugin-page .mrv-calendar--month > .mrv-section__head {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto clamp(1.8rem, 3vw, 2.7rem);
    text-align: center;
  }

  body.mrv-plugin-page .mrv-calendar--month #mrv-calendar-title {
    width: 100%;
    max-width: 1000px;
    margin: .55rem auto 1.25rem !important;
    font-size: clamp(3rem, 3.5vw, 3.75rem);
    line-height: 1.03;
    text-align: center;
    text-wrap: balance;
  }

  body.mrv-plugin-page .mrv-calendar--month > .mrv-section__head > p:last-child {
    max-width: 920px;
    margin-inline: auto;
    text-align: center;
  }

  /* Das eigentliche Monatsraster profitiert ebenfalls von der neuen Breite. */
  body.mrv-plugin-page .mrv-calendar--month .mrv-month-grid,
  body.mrv-plugin-page .mrv-calendar--month .mrv-day-detail {
    width: 100%;
  }

  body.mrv-plugin-page .mrv-calendar--month .mrv-month-day {
    min-height: 74px;
  }
}

@media (min-width: 1500px) {
  body.mrv-plugin-page .mrv-calendar-wrap .mrv-calendar--month {
    width: min(1460px, calc(100% - 96px));
  }
}

/* === Matilde 1.1.17: Auswahlleiste im mobilen Kalender === */
@media (max-width: 640px) {
  .mrv-selectbar {
    box-sizing: border-box;
    max-height: min(72vh, 520px);
    padding: .75rem .8rem calc(.8rem + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    border-top-color: rgba(0, 128, 128, .18);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -14px 36px rgba(7, 73, 72, .16);
    -webkit-overflow-scrolling: touch;
  }

  .mrv-selectbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: .7rem;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .mrv-selectbar__chips {
    display: flex;
    flex-wrap: nowrap;
    gap: .42rem;
    width: 100%;
    min-width: 0;
    max-height: none;
    padding: .05rem 0 .15rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .mrv-selectbar__chips .mrv-chip {
    flex: 0 0 auto;
    max-width: min(86vw, 330px);
    white-space: nowrap;
  }

  .mrv-selectbar__actions {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
    align-items: stretch;
    gap: .58rem;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .mrv-selectbar__repeat {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .55rem;
    width: 100%;
    min-width: 0;
    margin: 0;
    font-size: .82rem;
    line-height: 1.2;
  }

  .mrv-selectbar__repeat > span {
    white-space: nowrap;
  }

  .mrv-selectbar__repeat select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: .55rem 2rem .55rem .7rem;
    font-size: .84rem;
    line-height: 1.2;
  }

  .mrv-selectbar__clear,
  .mrv-selectbar .mrv-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: .65rem .7rem;
    border-radius: 14px;
    font-size: .86rem;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    writing-mode: horizontal-tb !important;
  }

  .mrv-selectbar__clear {
    border: 1px solid rgba(0, 107, 108, .2);
    background: #fff;
    color: var(--mrv-primary-dark);
    text-decoration: none;
  }

  .mrv-selectbar .mrv-btn {
    flex: none;
  }

  body.mrv-has-selectbar {
    padding-bottom: 205px;
  }
}

@media (max-width: 390px) {
  .mrv-selectbar__actions {
    grid-template-columns: 1fr;
  }

  .mrv-selectbar__repeat,
  .mrv-selectbar__clear,
  .mrv-selectbar .mrv-btn {
    grid-column: 1;
  }

  .mrv-selectbar__repeat {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  body.mrv-has-selectbar {
    padding-bottom: 260px;
  }
}

/* === Matilde 1.1.18: Impressum sowie vorbereitete Datenschutz-/AGB-Seiten === */
body.mrv-legal-page .mrv-legal-shell {
  width: min(100% - 32px, 1420px);
  margin: clamp(2rem, 5vw, 5rem) auto clamp(3.5rem, 7vw, 7rem);
  color: var(--mrv-ink);
}

body.mrv-legal-page .mrv-legal-hero {
  position: relative;
  padding: clamp(2.4rem, 5vw, 5.2rem);
  overflow: hidden;
  border: 1px solid rgba(12, 122, 120, .11);
  border-radius: 38px;
  background:
    radial-gradient(circle at 88% 12%, rgba(184, 220, 218, .62), transparent 24%),
    linear-gradient(135deg, #f4f9f8 0%, #ffffff 58%, #edf6f5 100%);
  box-shadow: 0 24px 64px rgba(13, 72, 71, .09);
}

body.mrv-legal-page .mrv-legal-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -150px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(12, 122, 120, .17);
  border-radius: 44% 56% 63% 37% / 49% 40% 60% 51%;
  transform: rotate(-16deg);
  pointer-events: none;
}

body.mrv-legal-page .mrv-legal-hero h1 {
  max-width: 11ch;
  margin: 0 0 1rem !important;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .95;
}

body.mrv-legal-page .mrv-legal-hero > p:last-of-type {
  max-width: 54ch;
  margin: 0;
  color: var(--mrv-soft);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

body.mrv-legal-page .mrv-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

body.mrv-legal-page .mrv-legal-card {
  position: relative;
  min-height: 260px;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border: 1px solid rgba(12, 122, 120, .12);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(13, 72, 71, .055);
}

body.mrv-legal-page .mrv-legal-card__number {
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  height: 34px;
  padding: 0 .8rem;
  border-radius: 999px;
  color: var(--mrv-primary-dark);
  background: #e8f2f1;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}

body.mrv-legal-page .mrv-legal-card h2 {
  margin: 1.25rem 0 .8rem !important;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.08;
}

body.mrv-legal-page .mrv-legal-card p {
  margin: 0;
  color: var(--mrv-soft);
  font-size: 1rem;
  line-height: 1.72;
}

body.mrv-legal-page .mrv-legal-card a {
  color: var(--mrv-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body.mrv-legal-page .mrv-legal-card__highlight {
  margin-top: 1rem !important;
  color: var(--mrv-primary-dark) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem) !important;
}

body.mrv-legal-page .mrv-legal-about {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
  margin-top: 1rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 34px;
  color: #f6fbfa;
  background:
    radial-gradient(circle at 90% 5%, rgba(73, 154, 151, .32), transparent 26%),
    linear-gradient(135deg, #086363 0%, #044647 100%);
  box-shadow: 0 24px 62px rgba(3, 65, 65, .18);
}

body.mrv-legal-page .mrv-legal-about .mrv-kicker,
body.mrv-legal-page .mrv-legal-about .mrv-kicker::before {
  color: rgba(226, 247, 243, .72);
}

body.mrv-legal-page .mrv-legal-about h2 {
  margin: 0 !important;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 4rem);
  font-weight: 400;
  line-height: 1.04;
}

body.mrv-legal-page .mrv-legal-about__copy {
  display: grid;
  gap: 1rem;
}

body.mrv-legal-page .mrv-legal-about__copy p {
  margin: 0;
  color: rgba(244, 252, 250, .83);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.78;
}

body.mrv-legal-page .mrv-legal-about__copy strong {
  color: #fff;
}

body.mrv-legal-page .mrv-legal-status {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  color: var(--mrv-primary-dark);
  background: rgba(218, 239, 236, .9);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.mrv-legal-page .mrv-legal-placeholder-card {
  margin-top: 1rem;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid rgba(12, 122, 120, .12);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(13, 72, 71, .06);
}

body.mrv-legal-page .mrv-legal-placeholder-card__notice {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.1rem;
  border-radius: 20px;
  background: #edf6f5;
}

body.mrv-legal-page .mrv-legal-placeholder-card__notice > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(12, 122, 120, .22);
  border-radius: 50%;
  color: var(--mrv-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

body.mrv-legal-page .mrv-legal-placeholder-card__notice p {
  margin: 0;
  color: var(--mrv-soft);
  line-height: 1.65;
}

body.mrv-legal-page .mrv-legal-placeholder-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

body.mrv-legal-page .mrv-legal-placeholder-list > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  min-height: 76px;
  padding: .9rem 1rem;
  border: 1px solid rgba(12, 122, 120, .09);
  border-radius: 18px;
}

body.mrv-legal-page .mrv-legal-placeholder-list span {
  color: rgba(12, 122, 120, .55);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
}

body.mrv-legal-page .mrv-legal-placeholder-list p {
  margin: 0;
  color: var(--mrv-ink);
  line-height: 1.45;
}

@media (max-width: 900px) {
  body.mrv-legal-page .mrv-legal-grid,
  body.mrv-legal-page .mrv-legal-about {
    grid-template-columns: 1fr;
  }

  body.mrv-legal-page .mrv-legal-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  body.mrv-legal-page .mrv-legal-shell {
    width: min(100% - 20px, 1420px);
    margin-top: 1.2rem;
  }

  body.mrv-legal-page .mrv-legal-hero,
  body.mrv-legal-page .mrv-legal-about,
  body.mrv-legal-page .mrv-legal-placeholder-card {
    border-radius: 24px;
  }

  body.mrv-legal-page .mrv-legal-placeholder-list {
    grid-template-columns: 1fr;
  }
}


/* === Matilde 1.1.22: mehr Luft oberhalb der Rechtstexte === */
@media (min-width: 861px) {
  body.mrv-legal-page .mrv-legal-shell {
    margin-top: clamp(4.75rem, 7vw, 7rem);
  }
}

@media (max-width: 860px) {
  body.mrv-legal-page .mrv-legal-shell {
    margin-top: 2rem;
  }
}

/* === Matilde 1.1.25: eigenständige Galerieseite === */
body.mrv-gallery-page,
body.mrv-gallery-page .site-content,
body.mrv-gallery-page #primary,
body.mrv-gallery-page .content-area,
body.mrv-gallery-page .content-container,
body.mrv-gallery-page .site-main,
body.mrv-gallery-page main#main,
body.mrv-gallery-page .content-wrap,
body.mrv-gallery-page article.entry,
body.mrv-gallery-page .entry-content-wrap,
body.mrv-gallery-page .entry-content,
body.mrv-gallery-page .single-content {
  background: #f2f7f6 !important;
}

body.mrv-gallery-page .mrv-gallery-page-shell {
  width: 100%;
  padding: clamp(4.75rem, 7vw, 7rem) clamp(28px, 3.3vw, 58px) clamp(2rem, 4vw, 3.5rem);
  overflow: clip;
  background:
    radial-gradient(circle at 7% 8%, rgba(182, 220, 218, .42), transparent 22%),
    radial-gradient(circle at 94% 42%, rgba(208, 232, 230, .42), transparent 20%),
    #f2f7f6;
}

body.mrv-gallery-page .mrv-gallery-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(440px, 1.14fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  min-height: min(760px, calc(100vh - 120px));
  padding: clamp(2.2rem, 5vw, 5rem);
  overflow: hidden;
  border: 1px solid rgba(7, 105, 106, .11);
  border-radius: 42px;
  background:
    radial-gradient(circle at 16% 14%, rgba(216, 237, 235, .9), transparent 30%),
    linear-gradient(135deg, #fbfdfd 0%, #ffffff 55%, #eaf4f3 100%);
  box-shadow: 0 25px 70px rgba(8, 76, 77, .09);
}

body.mrv-gallery-page .mrv-gallery-page-hero::before,
body.mrv-gallery-page .mrv-gallery-page-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body.mrv-gallery-page .mrv-gallery-page-hero::before {
  width: 300px;
  height: 300px;
  left: -225px;
  bottom: -145px;
  border: 1px solid rgba(7, 105, 106, .19);
  border-radius: 50%;
  box-shadow: 46px -24px 0 -45px rgba(7, 105, 106, .23), 88px -48px 0 -87px rgba(7, 105, 106, .2);
}

body.mrv-gallery-page .mrv-gallery-page-hero::after {
  top: -105px;
  right: 31%;
  width: 250px;
  height: 180px;
  border: 1px solid rgba(7, 105, 106, .13);
  border-radius: 48% 52% 68% 32% / 49% 44% 56% 51%;
  transform: rotate(-14deg);
}

body.mrv-gallery-page .mrv-gallery-page-hero__copy,
body.mrv-gallery-page .mrv-gallery-page-hero__media {
  position: relative;
  z-index: 1;
}

body.mrv-gallery-page .mrv-gallery-page-hero__copy h1 {
  max-width: 8.5ch;
  margin: 0 0 1.4rem !important;
  color: #075e60;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 6.3vw, 6.7rem);
  font-weight: 400;
  letter-spacing: -.048em;
  line-height: .94;
}

body.mrv-gallery-page .mrv-gallery-page-hero__copy h1 em {
  color: #6ba8ad;
  font-weight: 400;
}

body.mrv-gallery-page .mrv-gallery-page-hero__lead {
  max-width: 46ch;
  margin-bottom: 1.65rem;
  color: #446868;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.72;
}

body.mrv-gallery-page .mrv-gallery-page-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1.75rem;
}

body.mrv-gallery-page .mrv-gallery-page-hero__facts span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .48rem .78rem;
  border: 1px solid rgba(7, 105, 106, .13);
  border-radius: 999px;
  color: #075e60;
  background: rgba(235, 246, 245, .86);
  font-size: .86rem;
  font-weight: 750;
}

body.mrv-gallery-page .mrv-gallery-page__outline {
  --btn-bg: transparent;
  --btn-color: #075e60;
  border-color: rgba(7, 105, 106, .42);
  box-shadow: none;
}

body.mrv-gallery-page .mrv-gallery-page__outline:hover,
body.mrv-gallery-page .mrv-gallery-page__outline:focus-visible {
  --btn-bg: #e6f2f1;
  box-shadow: 0 14px 30px rgba(7, 88, 89, .09);
}

body.mrv-gallery-page .mrv-gallery-page-hero__media {
  min-height: clamp(470px, 52vw, 680px);
  margin: 0;
  overflow: hidden;
  border-radius: 34px;
  background: #e6eeec;
  box-shadow: 0 24px 64px rgba(12, 76, 76, .13);
}

body.mrv-gallery-page .mrv-gallery-page-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .75, .25, 1);
}

body.mrv-gallery-page .mrv-gallery-page-hero__media:hover img {
  transform: scale(1.025);
}

body.mrv-gallery-page .mrv-gallery-page-hero__media figcaption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: .05rem;
  min-width: 190px;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 16px;
  color: #fff;
  background: rgba(4, 67, 68, .72);
  backdrop-filter: blur(14px);
}

body.mrv-gallery-page .mrv-gallery-page-hero__media figcaption span {
  color: rgba(255, 255, 255, .72);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.mrv-gallery-page .mrv-gallery-page-hero__media figcaption strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

body.mrv-gallery-page .mrv-gallery-page-content {
  padding: clamp(4.5rem, 8vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
}

body.mrv-gallery-page .mrv-gallery-page-content__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}

body.mrv-gallery-page .mrv-gallery-page-content__head h2,
body.mrv-gallery-page .mrv-gallery-page-story h2,
body.mrv-gallery-page .mrv-gallery-page-cta h2 {
  color: #075e60;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .98;
}

body.mrv-gallery-page .mrv-gallery-page-content__head h2 {
  max-width: 12ch;
  margin: 0 !important;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
}

body.mrv-gallery-page .mrv-gallery-page-content__head > p {
  max-width: 48ch;
  margin: 0 0 .35rem;
  color: #4f6e6e;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.75;
}

body.mrv-gallery-page .mrv-gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: clamp(74px, 6.3vw, 112px);
  gap: clamp(.75rem, 1.25vw, 1.25rem);
}

body.mrv-gallery-page .mrv-gallery-page-item {
  position: relative;
  grid-column: span 4;
  grid-row: span 4;
  min-width: 0;
  margin: 0;
}

body.mrv-gallery-page .mrv-gallery-page-item--1,
body.mrv-gallery-page .mrv-gallery-page-item--7 {
  grid-column: span 7;
  grid-row: span 6;
}

body.mrv-gallery-page .mrv-gallery-page-item--2,
body.mrv-gallery-page .mrv-gallery-page-item--8 {
  grid-column: span 5;
  grid-row: span 3;
}

body.mrv-gallery-page .mrv-gallery-page-item--3 {
  grid-column: span 5;
  grid-row: span 3;
}

body.mrv-gallery-page .mrv-gallery-page-item--4 {
  grid-column: span 4;
  grid-row: span 4;
}

body.mrv-gallery-page .mrv-gallery-page-item--5 {
  grid-column: span 4;
  grid-row: span 5;
}

body.mrv-gallery-page .mrv-gallery-page-item--6 {
  grid-column: span 4;
  grid-row: span 4;
}

body.mrv-gallery-page .mrv-gallery-page-item > a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(7, 105, 106, .1);
  border-radius: 26px;
  background: #e6efee;
  box-shadow: 0 16px 42px rgba(8, 76, 77, .07);
  text-decoration: none;
}

body.mrv-gallery-page .mrv-gallery-page-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2, .75, .25, 1), filter .4s ease;
}

body.mrv-gallery-page .mrv-gallery-page-item > a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(3, 55, 56, .45) 100%);
  opacity: .5;
  transition: opacity .35s ease;
  pointer-events: none;
}

body.mrv-gallery-page .mrv-gallery-page-item > a:hover img,
body.mrv-gallery-page .mrv-gallery-page-item > a:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.04);
}

body.mrv-gallery-page .mrv-gallery-page-item > a:hover::after,
body.mrv-gallery-page .mrv-gallery-page-item > a:focus-visible::after {
  opacity: .72;
}

body.mrv-gallery-page .mrv-gallery-page-item__number,
body.mrv-gallery-page .mrv-gallery-page-item__zoom {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: rgba(4, 68, 69, .6);
  backdrop-filter: blur(10px);
}

body.mrv-gallery-page .mrv-gallery-page-item__number {
  left: 14px;
  bottom: 14px;
  min-width: 38px;
  height: 30px;
  padding: 0 .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .11em;
}

body.mrv-gallery-page .mrv-gallery-page-item__zoom {
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  font-size: 1.05rem;
  transition: transform .3s ease, background .3s ease;
}

body.mrv-gallery-page .mrv-gallery-page-item > a:hover .mrv-gallery-page-item__zoom,
body.mrv-gallery-page .mrv-gallery-page-item > a:focus-visible .mrv-gallery-page-item__zoom {
  transform: translate(2px, -2px);
  background: rgba(4, 68, 69, .84);
}

body.mrv-gallery-page .mrv-gallery-page-item > figcaption {
  position: absolute;
  z-index: 2;
  right: 58px;
  bottom: 15px;
  left: 66px;
  overflow: hidden;
  color: #fff;
  font-size: .86rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

body.mrv-gallery-page .mrv-gallery-page-story {
  display: grid;
  grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
  padding: clamp(2.4rem, 5vw, 5rem);
  border: 1px solid rgba(7, 105, 106, .12);
  border-radius: 36px;
  background:
    radial-gradient(circle at 90% 10%, rgba(197, 226, 224, .7), transparent 25%),
    #fff;
  box-shadow: 0 20px 55px rgba(8, 76, 77, .07);
}

body.mrv-gallery-page .mrv-gallery-page-story h2 {
  max-width: 10ch;
  margin: 0 !important;
  font-size: clamp(2.5rem, 4.4vw, 4.7rem);
}

body.mrv-gallery-page .mrv-gallery-page-story__copy {
  display: grid;
  gap: 1rem;
  padding-top: .4rem;
}

body.mrv-gallery-page .mrv-gallery-page-story__copy p {
  max-width: 54ch;
  margin: 0;
  color: #4f6e6e;
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  line-height: 1.76;
}

body.mrv-gallery-page .mrv-gallery-page-story__values {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(.5rem, 2vw, 1.5rem);
  overflow: hidden;
  border: 1px solid rgba(7, 105, 106, .1);
  border-radius: 22px;
  background: #eff7f6;
}

body.mrv-gallery-page .mrv-gallery-page-story__values div {
  display: grid;
  gap: .2rem;
  padding: 1.3rem 1.45rem;
}

body.mrv-gallery-page .mrv-gallery-page-story__values div:not(:last-child) {
  border-right: 1px solid rgba(7, 105, 106, .12);
}

body.mrv-gallery-page .mrv-gallery-page-story__values strong {
  color: #075e60;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

body.mrv-gallery-page .mrv-gallery-page-story__values span {
  color: #587575;
  font-size: .91rem;
}

body.mrv-gallery-page .mrv-gallery-page-cta {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3.2rem);
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  overflow: hidden;
  border-radius: 36px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 8% 15%, rgba(66, 154, 151, .34), transparent 24%),
    radial-gradient(circle at 92% 80%, rgba(70, 154, 151, .28), transparent 24%),
    linear-gradient(135deg, #086767 0%, #034a4b 100%);
  box-shadow: 0 24px 64px rgba(3, 65, 65, .18);
}

body.mrv-gallery-page .mrv-gallery-page-cta::before,
body.mrv-gallery-page .mrv-gallery-page-cta::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(220, 246, 242, .18);
  border-radius: 46% 54% 68% 32% / 49% 44% 56% 51%;
  pointer-events: none;
}

body.mrv-gallery-page .mrv-gallery-page-cta::before {
  left: -175px;
  bottom: -150px;
  transform: rotate(20deg);
}

body.mrv-gallery-page .mrv-gallery-page-cta::after {
  top: -165px;
  right: -145px;
  transform: rotate(-24deg);
}

body.mrv-gallery-page .mrv-gallery-page-cta .mrv-kicker {
  color: rgba(232, 249, 246, .78);
}

body.mrv-gallery-page .mrv-gallery-page-cta .mrv-kicker::before {
  background: rgba(232, 249, 246, .78);
  box-shadow: 0 0 0 .35rem rgba(232, 249, 246, .1);
}

body.mrv-gallery-page .mrv-gallery-page-cta h2 {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  margin: 0 auto 1.2rem !important;
  color: #fff;
  font-size: clamp(2.7rem, 5vw, 5rem);
}

body.mrv-gallery-page .mrv-gallery-page-cta > p:not(.mrv-kicker) {
  position: relative;
  z-index: 1;
  max-width: 55ch;
  margin: 0 auto 1.8rem;
  color: rgba(242, 252, 250, .83);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.7;
}

body.mrv-gallery-page .mrv-gallery-page-cta .mrv-actions {
  position: relative;
  z-index: 1;
}

body.mrv-gallery-page .mrv-gallery-page-cta__primary {
  --btn-bg: #d4f0ed;
  --btn-color: #075e60;
  gap: 1.2rem;
  min-width: 230px;
  box-shadow: none;
}

body.mrv-gallery-page .mrv-gallery-page-cta__primary:hover,
body.mrv-gallery-page .mrv-gallery-page-cta__primary:focus-visible {
  --btn-bg: #fff;
}

body.mrv-gallery-page .mrv-gallery-page-cta__secondary {
  --btn-bg: transparent;
  --btn-color: #fff;
  min-width: 210px;
  border-color: rgba(255, 255, 255, .65);
  box-shadow: none;
}

body.mrv-gallery-page .mrv-gallery-page-cta__secondary:hover,
body.mrv-gallery-page .mrv-gallery-page-cta__secondary:focus-visible {
  --btn-bg: rgba(255, 255, 255, .1);
}

body.mrv-gallery-page .mrv-gallery-lightbox {
  width: min(94vw, 1260px);
  max-width: none;
  height: min(92vh, 900px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #042f30;
  box-shadow: 0 30px 100px rgba(0, 35, 36, .4);
}

body.mrv-gallery-page .mrv-gallery-lightbox::backdrop {
  background: rgba(1, 26, 27, .82);
  backdrop-filter: blur(10px);
}

body.mrv-gallery-page .mrv-gallery-lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  margin: 0;
}

body.mrv-gallery-page .mrv-gallery-lightbox img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #032829;
}

body.mrv-gallery-page .mrv-gallery-lightbox figcaption {
  min-height: 56px;
  padding: .95rem 5rem;
  color: rgba(241, 252, 250, .84);
  text-align: center;
  background: #054445;
}

body.mrv-gallery-page .mrv-gallery-lightbox__close,
body.mrv-gallery-page .mrv-gallery-lightbox__nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  background: rgba(2, 50, 51, .68);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

body.mrv-gallery-page .mrv-gallery-lightbox__close:hover,
body.mrv-gallery-page .mrv-gallery-lightbox__nav:hover,
body.mrv-gallery-page .mrv-gallery-lightbox__close:focus-visible,
body.mrv-gallery-page .mrv-gallery-lightbox__nav:focus-visible {
  background: rgba(8, 105, 106, .92);
}

body.mrv-gallery-page .mrv-gallery-lightbox__close {
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

body.mrv-gallery-page .mrv-gallery-lightbox__nav {
  top: 50%;
  width: 48px;
  height: 68px;
  border-radius: 18px;
  font-size: 2.2rem;
  transform: translateY(-50%);
}

body.mrv-gallery-page .mrv-gallery-lightbox__nav--prev {
  left: 16px;
}

body.mrv-gallery-page .mrv-gallery-lightbox__nav--next {
  right: 16px;
}

body.mrv-gallery-page .mrv-gallery-lightbox__nav:hover,
body.mrv-gallery-page .mrv-gallery-lightbox__nav:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

@media (max-width: 1180px) {
  body.mrv-gallery-page .mrv-gallery-page-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.mrv-gallery-page .mrv-gallery-page-hero__copy h1 {
    max-width: 12ch;
  }

  body.mrv-gallery-page .mrv-gallery-page-hero__media {
    min-height: min(68vw, 650px);
  }

  body.mrv-gallery-page .mrv-gallery-page-content__head,
  body.mrv-gallery-page .mrv-gallery-page-story {
    grid-template-columns: 1fr;
  }

  body.mrv-gallery-page .mrv-gallery-page-content__head > p {
    max-width: 58ch;
  }

  body.mrv-gallery-page .mrv-gallery-page-item,
  body.mrv-gallery-page .mrv-gallery-page-item--1,
  body.mrv-gallery-page .mrv-gallery-page-item--7 {
    grid-column: span 6;
    grid-row: span 5;
  }

  body.mrv-gallery-page .mrv-gallery-page-item--2,
  body.mrv-gallery-page .mrv-gallery-page-item--3,
  body.mrv-gallery-page .mrv-gallery-page-item--8 {
    grid-column: span 6;
    grid-row: span 4;
  }

  body.mrv-gallery-page .mrv-gallery-page-story__values {
    grid-column: 1;
  }
}

@media (max-width: 860px) {
  body.mrv-gallery-page .mrv-gallery-page-shell {
    padding: 2rem 18px 1.5rem;
  }

  body.mrv-gallery-page .mrv-gallery-page-hero {
    gap: 1.7rem;
    padding: 1.5rem;
    border-radius: 28px;
  }

  body.mrv-gallery-page .mrv-gallery-page-hero__copy h1 {
    max-width: none;
    font-size: clamp(2.8rem, 12vw, 4.6rem);
  }

  body.mrv-gallery-page .mrv-gallery-page-hero__media {
    min-height: min(80vw, 520px);
    border-radius: 22px;
  }

  body.mrv-gallery-page .mrv-gallery-page-content {
    padding-block: 4rem 3rem;
  }

  body.mrv-gallery-page .mrv-gallery-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
  }

  body.mrv-gallery-page .mrv-gallery-page-item,
  body.mrv-gallery-page .mrv-gallery-page-item--1,
  body.mrv-gallery-page .mrv-gallery-page-item--2,
  body.mrv-gallery-page .mrv-gallery-page-item--3,
  body.mrv-gallery-page .mrv-gallery-page-item--4,
  body.mrv-gallery-page .mrv-gallery-page-item--5,
  body.mrv-gallery-page .mrv-gallery-page-item--6,
  body.mrv-gallery-page .mrv-gallery-page-item--7,
  body.mrv-gallery-page .mrv-gallery-page-item--8 {
    grid-column: span 1;
    grid-row: span 2;
  }

  body.mrv-gallery-page .mrv-gallery-page-item:nth-child(3n + 1) {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  body.mrv-gallery-page .mrv-gallery-page-story,
  body.mrv-gallery-page .mrv-gallery-page-cta {
    padding: 1.7rem;
    border-radius: 28px;
  }

  body.mrv-gallery-page .mrv-gallery-page-story__values {
    grid-template-columns: 1fr;
  }

  body.mrv-gallery-page .mrv-gallery-page-story__values div:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(7, 105, 106, .12);
  }
}

@media (max-width: 560px) {
  body.mrv-gallery-page .mrv-gallery-page-hero__facts {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.mrv-gallery-page .mrv-gallery-page-hero__facts span {
    justify-content: center;
  }

  body.mrv-gallery-page .mrv-gallery-page-hero .mrv-actions,
  body.mrv-gallery-page .mrv-gallery-page-cta .mrv-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.mrv-gallery-page .mrv-gallery-page-hero .mrv-btn,
  body.mrv-gallery-page .mrv-gallery-page-cta .mrv-btn {
    width: 100%;
  }

  body.mrv-gallery-page .mrv-gallery-page-hero__media {
    min-height: 330px;
  }

  body.mrv-gallery-page .mrv-gallery-page-hero__media figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-width: 0;
  }

  body.mrv-gallery-page .mrv-gallery-page-content__head h2,
  body.mrv-gallery-page .mrv-gallery-page-story h2,
  body.mrv-gallery-page .mrv-gallery-page-cta h2 {
    max-width: none;
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }

  body.mrv-gallery-page .mrv-gallery-page-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 270px;
  }

  body.mrv-gallery-page .mrv-gallery-page-item,
  body.mrv-gallery-page .mrv-gallery-page-item--1,
  body.mrv-gallery-page .mrv-gallery-page-item--2,
  body.mrv-gallery-page .mrv-gallery-page-item--3,
  body.mrv-gallery-page .mrv-gallery-page-item--4,
  body.mrv-gallery-page .mrv-gallery-page-item--5,
  body.mrv-gallery-page .mrv-gallery-page-item--6,
  body.mrv-gallery-page .mrv-gallery-page-item--7,
  body.mrv-gallery-page .mrv-gallery-page-item--8,
  body.mrv-gallery-page .mrv-gallery-page-item:nth-child(3n + 1) {
    grid-column: 1;
    grid-row: span 1;
  }

  body.mrv-gallery-page .mrv-gallery-page-item > figcaption {
    display: none;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox figcaption {
    padding-inline: 3.8rem;
    font-size: .9rem;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__nav {
    width: 42px;
    height: 58px;
    border-radius: 14px;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__nav--prev {
    left: 8px;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__nav--next {
    right: 8px;
  }
}

/* === Matilde 1.1.26: Galerie und Bildansicht hochwertig verfeinert === */
html.mrv-gallery-is-open {
  overflow: hidden;
}

body.mrv-gallery-page .mrv-gallery-page-content__head {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(7, 105, 106, .09);
  border-radius: 28px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 18px 48px rgba(8, 76, 77, .05);
}

body.mrv-gallery-page .mrv-gallery-page-grid {
  gap: clamp(.85rem, 1.4vw, 1.35rem);
}

body.mrv-gallery-page .mrv-gallery-page-item > a {
  isolation: isolate;
  border-color: rgba(7, 105, 106, .12);
  border-radius: 30px;
  box-shadow: 0 18px 44px rgba(7, 72, 73, .08);
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}

body.mrv-gallery-page .mrv-gallery-page-item > a::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

body.mrv-gallery-page .mrv-gallery-page-item > a::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(1, 42, 43, .04) 0%, transparent 42%, rgba(1, 42, 43, .68) 100%);
  opacity: .68;
}

body.mrv-gallery-page .mrv-gallery-page-item > a:hover,
body.mrv-gallery-page .mrv-gallery-page-item > a:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(7, 105, 106, .28);
  box-shadow: 0 26px 64px rgba(7, 72, 73, .14);
  outline: 0;
}

body.mrv-gallery-page .mrv-gallery-page-item > a:hover::before,
body.mrv-gallery-page .mrv-gallery-page-item > a:focus-visible::before {
  opacity: 1;
}

body.mrv-gallery-page .mrv-gallery-page-item > a:hover img,
body.mrv-gallery-page .mrv-gallery-page-item > a:focus-visible img {
  transform: scale(1.055);
  filter: saturate(1.04) contrast(1.015);
}

body.mrv-gallery-page .mrv-gallery-page-item__number {
  top: 16px;
  bottom: auto;
  left: 16px;
  min-width: 42px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .34);
  color: rgba(255, 255, 255, .92);
  background: rgba(3, 54, 55, .52);
  box-shadow: 0 8px 24px rgba(0, 34, 35, .16);
}

body.mrv-gallery-page .mrv-gallery-page-item__zoom {
  top: auto;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-color: rgba(255, 255, 255, .48);
  color: #075e60;
  background: rgba(247, 253, 252, .92);
  box-shadow: 0 10px 28px rgba(0, 35, 36, .18);
}

body.mrv-gallery-page .mrv-gallery-page-item__zoom svg {
  width: 20px;
  height: 20px;
}

body.mrv-gallery-page .mrv-gallery-page-item > a:hover .mrv-gallery-page-item__zoom,
body.mrv-gallery-page .mrv-gallery-page-item > a:focus-visible .mrv-gallery-page-item__zoom {
  transform: scale(1.08);
  color: #fff;
  background: #087778;
}

body.mrv-gallery-page .mrv-gallery-page-item > figcaption {
  right: 78px;
  bottom: 24px;
  left: 22px;
  color: rgba(255, 255, 255, .94);
  font-size: .9rem;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 30, 31, .28);
}

/* Moderne Lightbox: klare Bedienung, ruhige Bildfläche und saubere Icons. */
body.mrv-gallery-page .mrv-gallery-lightbox {
  width: min(96vw, 1480px);
  max-width: none;
  height: min(94dvh, 980px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(222, 246, 243, .2);
  border-radius: 32px;
  color: #fff;
  background: transparent;
  box-shadow: 0 38px 120px rgba(0, 25, 26, .58);
}

body.mrv-gallery-page .mrv-gallery-lightbox[open] {
  animation: mrv-gallery-dialog-in .24s cubic-bezier(.2, .75, .25, 1) both;
}

body.mrv-gallery-page .mrv-gallery-lightbox::backdrop {
  background: rgba(0, 24, 25, .86);
  backdrop-filter: blur(14px) saturate(.82);
  animation: mrv-gallery-backdrop-in .2s ease both;
}

body.mrv-gallery-page .mrv-gallery-lightbox__shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at 15% 5%, rgba(28, 116, 115, .2), transparent 26%),
    linear-gradient(145deg, #063b3c 0%, #022627 100%);
}

body.mrv-gallery-page .mrv-gallery-lightbox__toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px 14px 12px 22px;
  border-bottom: 1px solid rgba(226, 248, 245, .12);
  background: rgba(4, 51, 52, .82);
  backdrop-filter: blur(18px);
}

body.mrv-gallery-page .mrv-gallery-lightbox__identity {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}

body.mrv-gallery-page .mrv-gallery-lightbox__label {
  color: rgba(241, 253, 251, .9);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.mrv-gallery-page .mrv-gallery-lightbox__counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 .8rem;
  border: 1px solid rgba(223, 247, 243, .18);
  border-radius: 999px;
  color: rgba(238, 252, 249, .78);
  background: rgba(255, 255, 255, .07);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

body.mrv-gallery-page .mrv-gallery-lightbox__close,
body.mrv-gallery-page .mrv-gallery-lightbox__nav {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  line-height: 1;
  box-shadow: none;
  outline: 0;
}

body.mrv-gallery-page .mrv-gallery-lightbox__close {
  position: relative;
  top: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: auto;
  height: 44px;
  min-width: 0;
  padding: 0 12px 0 16px;
  border: 1px solid rgba(231, 250, 247, .2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

body.mrv-gallery-page .mrv-gallery-lightbox__close span {
  font-size: .83rem;
  font-weight: 750;
}

body.mrv-gallery-page .mrv-gallery-lightbox__close svg {
  width: 21px;
  height: 21px;
}

body.mrv-gallery-page .mrv-gallery-lightbox__close:hover,
body.mrv-gallery-page .mrv-gallery-lightbox__close:focus-visible {
  border-color: rgba(255, 255, 255, .6);
  color: #075e60;
  background: #f3fbfa;
  transform: translateY(-1px);
}

body.mrv-gallery-page .mrv-gallery-lightbox__stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body.mrv-gallery-page .mrv-gallery-lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  margin: 0;
}

body.mrv-gallery-page .mrv-gallery-lightbox__media {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(12px, 1.5vw, 24px) clamp(68px, 6vw, 94px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(26, 92, 92, .18), transparent 48%),
    #032728;
}

body.mrv-gallery-page .mrv-gallery-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 24px 70px rgba(0, 20, 21, .26);
  opacity: 1;
  transform: scale(1);
  transition: opacity .18s ease, transform .22s ease;
  user-select: none;
  -webkit-user-drag: none;
}

body.mrv-gallery-page .mrv-gallery-lightbox.is-changing img {
  opacity: .22;
  transform: scale(.985);
}

body.mrv-gallery-page .mrv-gallery-lightbox figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: .9rem 6rem;
  border-top: 1px solid rgba(226, 248, 245, .11);
  color: rgba(241, 252, 250, .86);
  text-align: center;
  line-height: 1.5;
  background: rgba(5, 63, 64, .88);
}

body.mrv-gallery-page .mrv-gallery-lightbox figcaption[hidden] {
  display: none;
}

body.mrv-gallery-page .mrv-gallery-lightbox__nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 50%;
  color: #075e60;
  background: rgba(247, 253, 252, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0, 28, 29, .28);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

body.mrv-gallery-page .mrv-gallery-lightbox__nav svg {
  width: 27px;
  height: 27px;
}

body.mrv-gallery-page .mrv-gallery-lightbox__nav--prev {
  left: 20px;
}

body.mrv-gallery-page .mrv-gallery-lightbox__nav--next {
  right: 20px;
}

body.mrv-gallery-page .mrv-gallery-lightbox__nav:hover,
body.mrv-gallery-page .mrv-gallery-lightbox__nav:focus-visible {
  color: #fff;
  background: #087778;
  box-shadow: 0 18px 40px rgba(0, 30, 31, .34);
  transform: translateY(-50%) scale(1.08);
}

body.mrv-gallery-page .mrv-gallery-lightbox__nav:active {
  transform: translateY(-50%) scale(.96);
}

body.mrv-gallery-page .mrv-gallery-lightbox__hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 76px;
  margin: 0;
  padding: .45rem .8rem;
  border: 1px solid rgba(238, 252, 249, .14);
  border-radius: 999px;
  color: rgba(238, 252, 249, .68);
  background: rgba(2, 41, 42, .6);
  backdrop-filter: blur(10px);
  font-size: .72rem;
  letter-spacing: .03em;
  transform: translateX(-50%);
  pointer-events: none;
}

@keyframes mrv-gallery-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mrv-gallery-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 860px) {
  body.mrv-gallery-page .mrv-gallery-page-content__head {
    padding: 1.4rem;
    border-radius: 22px;
  }

  body.mrv-gallery-page .mrv-gallery-page-item > a {
    border-radius: 24px;
  }

  body.mrv-gallery-page .mrv-gallery-page-item > a::before {
    inset: 8px;
    border-radius: 17px;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    border-radius: 24px;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__media {
    padding: 10px 58px;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__nav {
    width: 50px;
    height: 50px;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__nav--prev {
    left: 10px;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__nav--next {
    right: 10px;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__hint {
    display: none;
  }
}

@media (max-width: 560px) {
  body.mrv-gallery-page .mrv-gallery-page-item__number {
    top: 12px;
    left: 12px;
  }

  body.mrv-gallery-page .mrv-gallery-page-item__zoom {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__shell {
    border-radius: 0;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__toolbar {
    min-height: 62px;
    padding: 9px 10px 9px 14px;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__label {
    display: none;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__close {
    width: 43px;
    height: 43px;
    padding: 0;
    border-radius: 50%;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__close span {
    display: none;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__media {
    padding: 8px 44px;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox img {
    border-radius: 6px;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox figcaption {
    min-height: 58px;
    padding: .8rem 1.15rem;
    font-size: .88rem;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__nav {
    width: 42px;
    height: 42px;
    border-color: rgba(255, 255, 255, .5);
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__nav svg {
    width: 23px;
    height: 23px;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__nav--prev {
    left: 6px;
  }

  body.mrv-gallery-page .mrv-gallery-lightbox__nav--next {
    right: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mrv-gallery-page .mrv-gallery-lightbox[open],
  body.mrv-gallery-page .mrv-gallery-lightbox::backdrop {
    animation: none;
  }

  body.mrv-gallery-page .mrv-gallery-page-item > a,
  body.mrv-gallery-page .mrv-gallery-page-item img,
  body.mrv-gallery-page .mrv-gallery-lightbox img,
  body.mrv-gallery-page .mrv-gallery-lightbox__nav,
  body.mrv-gallery-page .mrv-gallery-lightbox__close {
    transition: none;
  }
}


/* === Matilde 1.1.28: klare Entfernen-Buttons für Zeit-Chips === */
.mrv-chip {
  min-height: 2.25rem;
  padding: .3rem .32rem .3rem .72rem;
  gap: .55rem;
  border: 1px solid rgba(0, 111, 111, .08);
  background: #edf7f6;
  box-shadow: 0 4px 12px rgba(7, 73, 72, .05);
}

@media (max-width: 640px) {
  .mrv-selectbar__chips .mrv-chip,
  .mrv-slot-chips .mrv-chip {
    min-height: 2.45rem;
    padding-left: .78rem;
    font-size: .8rem;
  }

  .mrv-chip__remove {
    width: 1.9rem;
    height: 1.9rem;
    background: #fff;
    border-color: rgba(0, 111, 111, .16);
  }

  .mrv-chip__remove svg {
    width: .9rem;
    height: .9rem;
  }
}


/* === Matilde 1.1.31: kompakter Überblick ohne doppelte Fakten === */
@media (min-width: 1181px) {
  body.mrv-home-page .mrv-overview__top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
  }

  body.mrv-home-page .mrv-overview__intro {
    max-width: 940px;
  }

  body.mrv-home-page .mrv-overview__intro h2 {
    max-width: none;
    font-size: clamp(2.9rem, 4.4vw, 4.55rem);
    line-height: 1.01;
  }

  body.mrv-home-page .mrv-overview__lead {
    max-width: 54ch;
  }

  body.mrv-home-page .mrv-overview__stats {
    align-self: center;
    justify-content: flex-end;
  }

  body.mrv-home-page .mrv-overview-stat {
    min-width: 220px;
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 1180px) {
  body.mrv-home-page .mrv-overview__intro h2 {
    max-width: 15ch;
  }

  body.mrv-home-page .mrv-overview__stats {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body.mrv-home-page .mrv-overview__intro h2 br {
    display: none;
  }
}

/* === Matilde 1.1.34: verständlicher Anbieter-Login und Portalzugang === */
body.mrv-dashboard-page .mrv-provider-access {
  padding-top: clamp(1.5rem, 4vw, 3.5rem);
}

.mrv-provider-access__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
  width: min(100% - 36px, 1280px);
  padding: clamp(1.4rem, 3.5vw, 3rem);
  border: 1px solid rgba(12, 122, 120, .1);
  border-radius: 36px;
  background:
    radial-gradient(circle at 5% 8%, rgba(203, 232, 231, .72), transparent 27%),
    linear-gradient(135deg, #f4faf9 0%, #ffffff 58%, #eef7f6 100%);
  box-shadow: 0 24px 64px rgba(13, 72, 71, .1);
  overflow: hidden;
}

.mrv-provider-access__intro {
  position: relative;
  padding: clamp(.5rem, 2vw, 1.4rem);
}

.mrv-provider-access__logo {
  display: block;
  width: clamp(150px, 18vw, 225px);
  height: auto;
  margin-bottom: 1.5rem;
}

.mrv-provider-access__intro h1 {
  max-width: 8ch;
  margin: 0 0 1rem !important;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
}

.mrv-provider-access__lead {
  max-width: 38ch;
  margin: 0 0 1.8rem;
  color: var(--mrv-soft);
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  line-height: 1.65;
}

.mrv-provider-access__steps {
  display: grid;
  gap: .8rem;
  max-width: 600px;
}

.mrv-provider-access__steps > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .85rem;
  align-items: start;
  padding: .9rem 1rem;
  border: 1px solid rgba(12, 122, 120, .1);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.mrv-provider-access__steps > div > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2f1f0;
  color: var(--mrv-primary-dark);
  font-weight: 800;
}

.mrv-provider-access__steps p {
  display: grid;
  gap: .15rem;
  margin: 0;
}

.mrv-provider-access__steps strong {
  color: var(--mrv-ink);
  font-size: 1rem;
}

.mrv-provider-access__steps small {
  color: var(--mrv-soft);
  font-size: .92rem;
  line-height: 1.45;
}

.mrv-provider-access .mrv-login-card {
  align-self: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(13, 72, 71, .1);
}

.mrv-provider-access .mrv-login-card h2 {
  margin: 0 0 .65rem !important;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
}

.mrv-provider-access .mrv-login-card input[type="text"],
.mrv-provider-access .mrv-login-card input[type="password"] {
  min-height: 52px;
  border-color: rgba(12, 122, 120, .22);
}

.mrv-provider-access .mrv-login-card input[type="submit"] {
  background: #007f80;
  box-shadow: 0 12px 28px rgba(0, 121, 122, .18);
}

.mrv-login-card__links {
  margin-top: .9rem;
  text-align: center;
}

.mrv-login-card__links a {
  color: var(--mrv-primary-dark);
  font-weight: 700;
}

.mrv-login-card__new {
  margin-top: 1.35rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: #eef7f6;
}

.mrv-login-card__new strong {
  color: var(--mrv-ink);
}

.mrv-login-card__new p {
  margin: .4rem 0 .9rem;
  color: var(--mrv-soft);
  font-size: .94rem;
  line-height: 1.5;
}

.mrv-login-card__new .mrv-btn {
  width: 100%;
}

.mrv-dashboard__top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem 1rem;
  margin-top: 1rem;
}

.mrv-dashboard__logout {
  color: var(--mrv-primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 920px) {
  .mrv-provider-access__shell {
    grid-template-columns: 1fr;
  }

  .mrv-provider-access__intro h1,
  .mrv-provider-access__lead {
    max-width: none;
  }
}

@media (max-width: 640px) {
  body.mrv-dashboard-page .mrv-provider-access {
    padding-top: .5rem;
  }

  .mrv-provider-access__shell {
    width: min(100% - 20px, 1280px);
    padding: 1rem;
    border-radius: 26px;
  }

  .mrv-provider-access__intro {
    padding: .35rem;
  }

  .mrv-provider-access__intro h1 {
    font-size: clamp(2.35rem, 12vw, 3.3rem);
  }

  .mrv-provider-access__steps > div {
    grid-template-columns: 36px 1fr;
    padding: .8rem;
  }

  .mrv-provider-access__steps > div > span {
    width: 34px;
    height: 34px;
  }

  .mrv-provider-access .mrv-login-card {
    padding: 1.15rem;
    border-radius: 22px;
  }
}

/* === Matilde 1.1.35: klarer Anbieterbereich, mehrere Kurse und Reset-Weiterleitung === */
body.mrv-dashboard-page:not(.logged-in) .mrv-provider-access {
  padding-top: clamp(5rem, 8vw, 7.5rem);
}

body.mrv-dashboard-page.logged-in .mrv-dashboard {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}

body.mrv-dashboard-page .mrv-dashboard__shell {
  width: min(100% - 36px, 1420px);
}

.mrv-dashboard__header {
  position: relative;
  min-height: 96px;
  margin-bottom: 1.5rem;
  padding-right: 10rem;
}

.mrv-dashboard__welcome {
  max-width: 760px;
}

.mrv-dashboard__welcome h1 {
  margin: 0 0 .7rem !important;
}

.mrv-dashboard__welcome > p:last-child {
  max-width: 58ch;
  margin: 0;
  color: var(--mrv-soft);
  line-height: 1.65;
}

.mrv-dashboard__logout {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .7rem 1rem;
  border: 1px solid rgba(12, 122, 120, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--mrv-primary-dark);
  box-shadow: 0 9px 22px rgba(13, 72, 71, .07);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.mrv-dashboard__logout:hover,
.mrv-dashboard__logout:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(12, 122, 120, .52);
  background: #eef8f7;
  color: var(--mrv-primary-dark);
}

.mrv-dashboard__logout span {
  font-size: 1.05rem;
  transform: rotate(90deg);
}

.mrv-dashboard__courses,
.mrv-dashboard__editor,
.mrv-dashboard__times {
  margin-bottom: 1.25rem;
}

.mrv-dashboard-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
}

.mrv-dashboard-card-head > div {
  max-width: 760px;
}

.mrv-dashboard-card-head h2 {
  margin: .15rem 0 .45rem !important;
}

.mrv-dashboard-card-head p:last-child {
  margin-bottom: 0;
}

.mrv-dashboard-card-head--compact {
  align-items: flex-start;
}

.mrv-provider-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mrv-provider-course-card {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 1.15rem;
  border: 1px solid rgba(12, 122, 120, .13);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f7fbfa 100%);
  box-shadow: 0 10px 28px rgba(13, 72, 71, .05);
}

.mrv-provider-course-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.mrv-provider-course-card h3 {
  margin: 0 !important;
  color: var(--mrv-ink);
  font-size: 1.2rem;
  line-height: 1.25;
}

.mrv-provider-course-card p {
  margin: .75rem 0 1rem;
  color: var(--mrv-soft);
  line-height: 1.5;
}

.mrv-provider-course-card .mrv-link {
  margin-top: auto;
  font-weight: 800;
}

.mrv-dashboard-empty {
  padding: 1.2rem;
  border: 1px dashed rgba(12, 122, 120, .25);
  border-radius: 18px;
  background: #f4faf9;
}

.mrv-dashboard-empty strong {
  color: var(--mrv-ink);
}

.mrv-dashboard-empty p {
  margin: .35rem 0 0;
  color: var(--mrv-soft);
}

.mrv-dashboard-empty--course .mrv-btn {
  margin-top: 1rem;
}

.mrv-times-list {
  display: grid;
  gap: .75rem;
  margin: .5rem 0 1.25rem;
}

.mrv-times-list__item {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, .72fr);
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(12, 122, 120, .13);
  border-radius: 18px;
  background: #fff;
}

.mrv-times-list__time {
  display: grid;
  gap: .25rem;
}

.mrv-times-list__label,
.mrv-times-list__assignment > span {
  color: var(--mrv-soft);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mrv-times-list__summary {
  color: var(--mrv-ink);
  font-size: 1rem;
}

.mrv-times-list__time small {
  color: var(--mrv-primary-dark);
  font-size: .84rem;
}

.mrv-times-list__assignment {
  display: grid;
  gap: .42rem;
}

.mrv-times-list__assignment select,
.mrv-times-list__item select {
  width: 100%;
  min-height: 48px;
  padding: .65rem 2.65rem .65rem .85rem;
  border: 1px solid rgba(12, 122, 120, .22);
  border-radius: 14px;
  background-color: #f9fcfb;
  background-image: linear-gradient(45deg, transparent 50%, #087371 50%), linear-gradient(135deg, #087371 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: var(--mrv-ink);
  font: inherit;
  font-weight: 700;
  appearance: none;
}

.mrv-times-list__assignment select:focus {
  outline: 3px solid rgba(12, 122, 120, .12);
  border-color: rgba(12, 122, 120, .55);
}

.mrv-times-form__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.mrv-times-form__footer p {
  margin: 0;
}

.mrv-dashboard__grid--secondary {
  align-items: start;
}

@media (max-width: 980px) {
  body.mrv-dashboard-page:not(.logged-in) .mrv-provider-access {
    padding-top: 4rem;
  }

  body.mrv-dashboard-page.logged-in .mrv-dashboard {
    padding-top: 3rem;
  }

  .mrv-provider-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mrv-times-list__item {
    grid-template-columns: 1fr;
    gap: .85rem;
  }
}

@media (max-width: 680px) {
  body.mrv-dashboard-page:not(.logged-in) .mrv-provider-access {
    padding-top: 2.4rem;
  }

  body.mrv-dashboard-page.logged-in .mrv-dashboard {
    padding-top: 2rem;
  }

  body.mrv-dashboard-page .mrv-dashboard__shell {
    width: min(100% - 20px, 1420px);
  }

  .mrv-dashboard__header {
    min-height: 0;
    padding-top: 3.4rem;
    padding-right: 0;
  }

  .mrv-dashboard__logout {
    top: 0;
    right: 0;
    min-height: 40px;
    padding: .55rem .85rem;
    font-size: .9rem;
  }

  .mrv-dashboard-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .mrv-dashboard-card-head .mrv-btn {
    width: 100%;
  }

  .mrv-provider-course-grid {
    grid-template-columns: 1fr;
  }

  .mrv-provider-course-card {
    min-height: 0;
  }

  .mrv-times-list__item {
    padding: .9rem;
    border-radius: 16px;
  }

  .mrv-times-form__footer,
  .mrv-times-form__footer .mrv-btn {
    width: 100%;
  }
}

/* === Matilde 1.1.37: Anbieter-Speichern bleibt im Dashboard + verständliche Bildlöschung === */
.mrv-dashboard .mrv-course-image-preview {
  display: grid;
  grid-template-columns: minmax(180px, 270px) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin: .45rem 0 1rem;
  padding: .85rem;
  border: 1px solid rgba(12, 122, 120, .14);
  border-radius: 18px;
  background: #f7fbfa;
}

.mrv-dashboard .mrv-course-image-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  border-radius: 14px;
  object-fit: cover;
}

.mrv-dashboard .mrv-course-image-remove {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: .75rem;
  margin: 0 !important;
  padding: .85rem .95rem;
  border: 1px solid rgba(180, 35, 24, .18);
  border-radius: 14px;
  background: rgba(254, 242, 242, .72);
  color: #7f1d1d;
  cursor: pointer;
}

.mrv-dashboard .mrv-course-image-remove input[type="checkbox"] {
  width: 19px !important;
  min-width: 19px;
  height: 19px;
  margin: .15rem 0 0 !important;
  padding: 0 !important;
  border-radius: 5px;
  accent-color: #b42318;
  box-shadow: none;
}

.mrv-dashboard .mrv-course-image-remove__copy {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.mrv-dashboard .mrv-course-image-remove__copy strong {
  color: #991b1b;
  font-size: .94rem;
  line-height: 1.3;
}

.mrv-dashboard .mrv-course-image-remove__copy small {
  color: #7f5555;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.45;
}

.mrv-dashboard .mrv-course-image-remove:has(input:checked) {
  border-color: rgba(180, 35, 24, .48);
  background: #fee2e2;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .08);
}

#mrv-dashboard-times,
#mrv-provider-profile,
#mrv-course-editor {
  scroll-margin-top: 120px;
}

@media (max-width: 720px) {
  .mrv-dashboard .mrv-course-image-preview {
    grid-template-columns: 1fr;
  }

  .mrv-dashboard .mrv-course-image-preview img {
    max-height: 240px;
  }

  #mrv-dashboard-times,
  #mrv-provider-profile,
  #mrv-course-editor {
    scroll-margin-top: 90px;
  }
}

/* === Matilde 1.1.38: Anbieterbereich als klarer 3-Schritte-Konfigurator === */
.mrv-dashboard-wizard {
  display: grid;
  grid-template-columns: minmax(235px, 285px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.mrv-dashboard-wizard__nav {
  position: sticky;
  top: 112px;
  padding: 1rem;
  border: 1px solid rgba(12, 122, 120, .13);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(205, 234, 232, .72), transparent 34%),
    linear-gradient(180deg, #fbfdfd 0%, #f1f8f7 100%);
  box-shadow: 0 14px 34px rgba(13, 72, 71, .07);
}

.mrv-dashboard-wizard__nav-head {
  display: grid;
  gap: .15rem;
  padding: .35rem .35rem .9rem;
}

.mrv-dashboard-wizard__nav-head span {
  color: var(--mrv-primary-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mrv-dashboard-wizard__nav-head strong {
  color: var(--mrv-ink);
  font-size: 1.2rem;
}

.mrv-dashboard-tabs {
  display: grid;
  gap: .55rem;
}

.mrv-dashboard-tab {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  min-height: 72px;
  padding: .72rem;
  border: 1px solid transparent;
  border-radius: 17px;
  color: var(--mrv-ink);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.mrv-dashboard-tab:hover,
.mrv-dashboard-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(12, 122, 120, .2);
  background: rgba(255,255,255,.86);
  color: var(--mrv-ink);
}

.mrv-dashboard-tab.is-active {
  border-color: rgba(12, 122, 120, .32);
  background: #087f7c;
  color: #fff;
  box-shadow: 0 12px 26px rgba(8, 127, 124, .18);
}

.mrv-dashboard-tab.is-disabled {
  opacity: .5;
  cursor: not-allowed;
}

.mrv-dashboard-tab__number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e4f1f0;
  color: var(--mrv-primary-dark);
  font-weight: 900;
}

.mrv-dashboard-tab.is-active .mrv-dashboard-tab__number {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.mrv-dashboard-tab > span:last-child {
  display: grid;
  gap: .12rem;
  min-width: 0;
}

.mrv-dashboard-tab strong {
  color: inherit;
  font-size: .98rem;
  line-height: 1.25;
}

.mrv-dashboard-tab small {
  color: var(--mrv-soft);
  font-size: .78rem;
  line-height: 1.35;
}

.mrv-dashboard-tab.is-active small {
  color: rgba(255,255,255,.82);
}

.mrv-dashboard-wizard__help {
  display: grid;
  gap: .42rem;
  margin-top: 1rem;
  padding: .9rem .45rem .25rem;
  border-top: 1px solid rgba(12, 122, 120, .12);
}

.mrv-dashboard-wizard__help strong {
  color: var(--mrv-ink);
  font-size: .9rem;
}

.mrv-dashboard-wizard__help a {
  color: var(--mrv-primary-dark);
  font-size: .86rem;
  font-weight: 700;
}

.mrv-dashboard-wizard__panel {
  min-width: 0;
}

.mrv-dashboard-step-card,
.mrv-dashboard-wizard__panel > .mrv-card {
  margin: 0 0 1.15rem;
}

.mrv-dashboard-step-card__head {
  max-width: 780px;
  margin-bottom: 1.35rem;
}

.mrv-dashboard-step-card__head > span,
.mrv-dashboard-step-card__head > div > span {
  color: var(--mrv-primary-dark);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.mrv-dashboard-step-card__head h2 {
  margin: .28rem 0 .55rem !important;
  color: var(--mrv-ink);
}

.mrv-dashboard-step-card__head p {
  margin: 0;
  color: var(--mrv-soft);
  line-height: 1.6;
}

.mrv-dashboard-step-card__head--action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: none;
}

.mrv-dashboard-step-card__head--action > div {
  max-width: 760px;
}

.mrv-dashboard-mini-flow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.2rem;
  padding: .7rem .85rem;
  border-radius: 14px;
  background: #f2f8f7;
  color: var(--mrv-soft);
  font-size: .88rem;
  font-weight: 700;
}

.mrv-dashboard-mini-flow span {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
}

.mrv-dashboard-mini-flow b {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #dfeeed;
  color: var(--mrv-primary-dark);
  font-size: .78rem;
}

.mrv-dashboard-mini-flow .is-active {
  color: var(--mrv-primary-dark);
}

.mrv-dashboard-mini-flow .is-active b {
  background: #087f7c;
  color: #fff;
}

.mrv-dashboard-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(12, 122, 120, .14);
  border-radius: 19px;
  background: linear-gradient(90deg, #eef8f7 0%, #fff 100%);
}

.mrv-dashboard-next-step strong {
  color: var(--mrv-ink);
}

.mrv-dashboard-next-step p {
  margin: .25rem 0 0;
  color: var(--mrv-soft);
}

.mrv-profile-image-preview {
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin: .45rem 0 1rem;
  padding: .85rem;
  border: 1px solid rgba(12, 122, 120, .14);
  border-radius: 18px;
  background: #f7fbfa;
}

.mrv-profile-image-preview img {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 14px;
}

.mrv-profile-image-remove {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  cursor: pointer;
}

.mrv-profile-image-remove input {
  width: 19px;
  height: 19px;
  margin-top: .12rem;
  accent-color: #087f7c;
}

.mrv-profile-image-remove span {
  display: grid;
  gap: .18rem;
}

.mrv-profile-image-remove strong {
  color: var(--mrv-ink);
}

.mrv-profile-image-remove small {
  color: var(--mrv-soft);
  line-height: 1.45;
}

.mrv-profile-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.mrv-profile-form__actions > span {
  color: var(--mrv-soft);
  font-size: .92rem;
}

@media (max-width: 980px) {
  .mrv-dashboard-wizard {
    grid-template-columns: 1fr;
  }

  .mrv-dashboard-wizard__nav {
    position: static;
  }

  .mrv-dashboard-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mrv-dashboard-tab {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 78px;
  }

  .mrv-dashboard-tab__number {
    width: 34px;
    height: 34px;
  }

  .mrv-dashboard-wizard__help {
    grid-auto-flow: column;
    justify-content: start;
    gap: 1rem;
  }
}

@media (max-width: 720px) {
  .mrv-dashboard-wizard__nav {
    padding: .75rem;
    border-radius: 20px;
    overflow: hidden;
  }

  .mrv-dashboard-wizard__nav-head {
    padding: .25rem .25rem .7rem;
  }

  .mrv-dashboard-tabs {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding-bottom: .2rem;
    scroll-snap-type: x mandatory;
  }

  .mrv-dashboard-tab {
    flex: 0 0 215px;
    scroll-snap-align: start;
  }

  .mrv-dashboard-step-card__head--action,
  .mrv-dashboard-next-step {
    align-items: stretch;
    flex-direction: column;
  }

  .mrv-dashboard-step-card__head--action .mrv-btn,
  .mrv-dashboard-next-step .mrv-btn {
    width: 100%;
  }

  .mrv-dashboard-mini-flow {
    justify-content: center;
    font-size: .82rem;
  }

  .mrv-profile-image-preview {
    grid-template-columns: 1fr;
  }

  .mrv-profile-form__actions,
  .mrv-profile-form__actions .mrv-btn {
    width: 100%;
  }
}

.mrv-dashboard-tab.is-disabled:hover,
.mrv-dashboard-tab.is-disabled:focus-visible {
  transform: none;
  border-color: transparent;
  background: transparent;
}

/* === Matilde 1.1.39: öffentliches Anbieterprofil auf der Kursdetailseite === */
.mrv-course-detail__provider-profile {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  border: 1px solid rgba(12, 122, 120, .13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 4% 8%, rgba(197, 233, 233, .62), transparent 30%),
    linear-gradient(135deg, #f4faf9 0%, #ffffff 62%, #edf7f6 100%);
  box-shadow: 0 18px 44px rgba(13, 72, 71, .08);
  overflow: hidden;
}

.mrv-course-detail__provider-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: linear-gradient(145deg, #dceeed, #ffffff);
  box-shadow: 0 18px 38px rgba(13, 72, 71, .14);
}

.mrv-course-detail__provider-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mrv-course-detail__provider-initials {
  color: var(--mrv-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.mrv-course-detail__provider-copy {
  min-width: 0;
}

.mrv-course-detail__provider-copy .mrv-kicker {
  margin-bottom: .75rem;
}

.mrv-course-detail__provider-copy h2 {
  margin: 0 0 .85rem;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: pretty;
}

.mrv-course-detail__provider-bio {
  max-width: 64ch;
  color: var(--mrv-text);
  font-size: 1.03rem;
  line-height: 1.7;
}

.mrv-course-detail__provider-bio p {
  margin: 0 0 .75rem;
}

.mrv-course-detail__provider-bio p:last-child {
  margin-bottom: 0;
}

.mrv-course-detail__provider-bio--empty {
  color: var(--mrv-soft);
}

.mrv-course-detail__provider-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.35rem;
}

.mrv-course-detail__provider-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  max-width: 100%;
  padding: .75rem 1rem;
  border: 1px solid rgba(12, 122, 120, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  color: var(--mrv-primary-dark);
  font-size: .94rem;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(13, 72, 71, .05);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.mrv-course-detail__provider-link:hover,
.mrv-course-detail__provider-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(12, 122, 120, .4);
  background: #fff;
}

.mrv-course-detail__provider-link .mrv-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.mrv-course-detail__provider-link span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .mrv-course-detail__provider-profile {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 1.3rem;
    border-radius: 22px;
  }

  .mrv-course-detail__provider-media {
    width: min(190px, 58vw);
  }

  .mrv-course-detail__provider-links {
    display: grid;
    width: 100%;
  }

  .mrv-course-detail__provider-link {
    width: 100%;
  }
}

/* === Matilde 1.1.41: klarer Abschluss der Anbieter-Schritte + Hauptbereich === */
.mrv-dashboard-overview {
  display: grid;
  gap: 1.15rem;
  scroll-margin-top: 120px;
}

.mrv-dashboard-overview__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(12, 122, 120, .14);
  background:
    radial-gradient(circle at 100% 0, rgba(199, 231, 229, .72), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f1f8f7 100%);
}

.mrv-dashboard-overview__hero > div {
  max-width: 760px;
}

.mrv-dashboard-overview__hero h2 {
  margin: .25rem 0 .55rem !important;
  color: var(--mrv-ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem) !important;
}

.mrv-dashboard-overview__hero p:last-child {
  margin: 0;
  color: var(--mrv-soft);
  line-height: 1.65;
}

.mrv-dashboard-overview__hero .mrv-btn {
  flex: 0 0 auto;
}

.mrv-dashboard-overview__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.mrv-dashboard-overview-stat {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: .85rem;
  min-height: 94px;
  padding: 1rem;
  border: 1px solid rgba(12, 122, 120, .13);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(13, 72, 71, .05);
  color: var(--mrv-ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mrv-dashboard-overview-stat:hover,
.mrv-dashboard-overview-stat:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(12, 122, 120, .35);
  box-shadow: 0 15px 32px rgba(13, 72, 71, .08);
  color: var(--mrv-ink);
}

.mrv-dashboard-overview-stat > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e7f2f1;
  color: var(--mrv-primary-dark);
  font-size: 1rem;
  font-weight: 900;
}

.mrv-dashboard-overview-stat.is-complete > span {
  background: #087f7c;
  color: #fff;
}

.mrv-dashboard-overview-stat > div {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.mrv-dashboard-overview-stat strong {
  color: var(--mrv-ink);
  font-size: 1rem;
  line-height: 1.3;
}

.mrv-dashboard-overview-stat small {
  color: var(--mrv-soft);
  font-size: .84rem;
  line-height: 1.4;
}

.mrv-dashboard-overview__flow {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid rgba(12, 122, 120, .13);
  background: #f7fbfa;
}

.mrv-dashboard-overview__flow-copy h3 {
  margin: .25rem 0 0 !important;
  color: var(--mrv-ink);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.3;
}

.mrv-dashboard-overview__flow ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mrv-dashboard-overview__flow li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  padding: .85rem;
  border: 1px solid rgba(12, 122, 120, .1);
  border-radius: 15px;
  background: #fff;
}

.mrv-dashboard-overview__flow li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #087f7c;
  color: #fff;
  font-size: .84rem;
  font-weight: 900;
}

.mrv-dashboard-overview__flow li div {
  display: grid;
  gap: .18rem;
}

.mrv-dashboard-overview__flow li strong {
  color: var(--mrv-ink);
  font-size: .92rem;
  line-height: 1.3;
}

.mrv-dashboard-overview__flow li small {
  color: var(--mrv-soft);
  font-size: .8rem;
  line-height: 1.45;
}

.mrv-dashboard-overview__courses {
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid rgba(12, 122, 120, .13);
}

.mrv-dashboard-overview__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .7rem;
  flex-wrap: wrap;
}

.mrv-dashboard-wizard__home {
  display: inline-flex;
  width: fit-content;
  margin-top: .45rem;
  color: var(--mrv-primary-dark);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}

.mrv-dashboard-wizard__home:hover,
.mrv-dashboard-wizard__home:focus-visible {
  text-decoration: underline;
  color: var(--mrv-primary-dark);
}

.mrv-course-create-explainer,
.mrv-course-focus {
  display: grid;
  gap: .3rem;
  margin: .25rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(12, 122, 120, .18);
  border-radius: 17px;
  background: linear-gradient(135deg, #eef8f7 0%, #fff 100%);
}

.mrv-course-create-explainer strong,
.mrv-course-focus strong {
  color: var(--mrv-ink);
}

.mrv-course-create-explainer p,
.mrv-course-focus p {
  margin: 0;
  color: var(--mrv-soft);
  line-height: 1.55;
}

.mrv-course-focus {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  margin-top: 0;
}

.mrv-course-focus__check {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #087f7c;
  color: #fff;
  font-weight: 900;
}

.mrv-provider-course-card__actions {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.mrv-provider-course-card__actions .mrv-link {
  margin-top: 0;
}

.mrv-provider-course-card__actions .mrv-link--secondary {
  color: var(--mrv-soft);
  font-size: .9rem;
}

.mrv-times-form__footer .mrv-btn--outline {
  background: #fff;
}

@media (max-width: 1080px) {
  .mrv-dashboard-overview__flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .mrv-dashboard-overview__stats,
  .mrv-dashboard-overview__flow ol {
    grid-template-columns: 1fr;
  }

  .mrv-dashboard-overview__hero,
  .mrv-dashboard-step-card__head--action {
    align-items: stretch;
    flex-direction: column;
  }

  .mrv-dashboard-overview__hero .mrv-btn,
  .mrv-dashboard-overview__actions,
  .mrv-dashboard-overview__actions .mrv-btn {
    width: 100%;
  }

  .mrv-dashboard-overview__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .mrv-dashboard-overview {
    scroll-margin-top: 90px;
  }

  .mrv-dashboard-overview__hero,
  .mrv-dashboard-overview__flow,
  .mrv-dashboard-overview__courses {
    padding: 1rem;
    border-radius: 20px;
  }

  .mrv-dashboard-overview-stat {
    min-height: 82px;
  }

  .mrv-course-focus {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: .9rem;
  }

  .mrv-course-focus__check {
    width: 34px;
    height: 34px;
  }

  .mrv-provider-course-card__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem;
  }

  .mrv-times-form__footer .mrv-btn,
  .mrv-times-form__footer .mrv-btn--outline {
    width: 100%;
  }
}

.mrv-course-form-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .mrv-course-form-actions,
  .mrv-course-form-actions .mrv-btn {
    width: 100%;
  }
}

/* === Matilde 1.1.43: verständlicher 3-Schritt-Ablauf + Bildprüfung direkt im Formular === */
.mrv-file-error {
  display: none;
  margin: .55rem 0 .75rem;
  padding: .78rem .9rem;
  border: 1px solid rgba(176, 53, 53, .28);
  border-radius: 12px;
  background: #fff4f3;
  color: #8f2424;
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.45;
}

.mrv-file-error.is-visible {
  display: block;
}

.mrv-field.has-error input[type="file"] {
  border-color: #b03535 !important;
  box-shadow: 0 0 0 3px rgba(176, 53, 53, .09);
}

.mrv-times-course-hint {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(12, 122, 120, .16);
  border-radius: 18px;
  background: linear-gradient(135deg, #eef8f7 0%, #ffffff 100%);
}

.mrv-times-course-hint__icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mrv-primary, #087f7c);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.mrv-times-course-hint strong {
  color: var(--mrv-ink);
}

.mrv-times-course-hint p {
  margin: .3rem 0 .55rem;
  color: var(--mrv-soft);
  line-height: 1.55;
}

.mrv-times-course-hint a {
  color: var(--mrv-primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .mrv-times-course-hint {
    grid-template-columns: 1fr;
    padding: .95rem;
  }
}


/* Matilde 1.1.44 – Hinweis erst nach der Zeitzuordnung anzeigen. */
.mrv-times-course-hint--after {
  margin: 1rem 0 0;
}

/* Matilde 1.1.46 – sichere Nutzungsvereinbarung im Anbieterbereich */
.mrv-dashboard .mrv-notice--agreement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(12, 122, 120, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, #eff8f7, #fff);
  color: var(--mrv-ink);
}

.mrv-dashboard .mrv-notice--agreement > div {
  display: grid;
  gap: .25rem;
}

.mrv-dashboard .mrv-notice--agreement strong {
  color: var(--mrv-primary-dark);
}

.mrv-dashboard .mrv-notice--agreement span {
  color: var(--mrv-soft);
  line-height: 1.55;
}

.mrv-dashboard .mrv-notice--agreement .mrv-btn {
  flex: 0 0 auto;
  min-width: 170px;
}

@media (max-width: 720px) {
  .mrv-dashboard .mrv-notice--agreement {
    align-items: stretch;
    flex-direction: column;
  }

  .mrv-dashboard .mrv-notice--agreement .mrv-btn {
    width: 100%;
  }
}

/* === Matilde 1.1.51: vollständige Datenschutzerklärung === */
body.mrv-legal-page .mrv-privacy-shell {
  --mrv-privacy-line: rgba(12, 122, 120, .14);
  --mrv-privacy-soft-bg: #f5faf9;
  --mrv-privacy-card-bg: rgba(255, 255, 255, .94);
}

body.mrv-legal-page .mrv-privacy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .55fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

body.mrv-legal-page .mrv-privacy-hero__copy {
  position: relative;
  z-index: 1;
}

body.mrv-legal-page .mrv-privacy-hero h1 {
  max-width: none;
  font-size: clamp(3rem, 7vw, 6.35rem);
}

body.mrv-legal-page .mrv-privacy-hero__copy > p:last-child {
  max-width: 66ch;
}

body.mrv-legal-page .mrv-privacy-hero__meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .75rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(12, 122, 120, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 14px 34px rgba(13, 72, 71, .07);
  backdrop-filter: blur(12px);
}

body.mrv-legal-page .mrv-privacy-hero__meta span {
  display: grid;
  gap: .18rem;
  color: var(--mrv-soft);
  font-size: .93rem;
  line-height: 1.45;
}

body.mrv-legal-page .mrv-privacy-hero__meta strong {
  color: var(--mrv-primary-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body.mrv-legal-page .mrv-privacy-hero__meta a {
  color: var(--mrv-primary-dark);
  text-decoration: none;
}

body.mrv-legal-page .mrv-privacy-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

body.mrv-legal-page .mrv-privacy-summary article {
  min-height: 190px;
  padding: 1.45rem;
  border: 1px solid var(--mrv-privacy-line);
  border-radius: 25px;
  background: var(--mrv-privacy-card-bg);
  box-shadow: 0 14px 32px rgba(13, 72, 71, .05);
}

body.mrv-legal-page .mrv-privacy-summary article > span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 30px;
  margin-bottom: 1.1rem;
  padding: 0 .65rem;
  border-radius: 999px;
  color: var(--mrv-primary-dark);
  background: #e7f2f1;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
}

body.mrv-legal-page .mrv-privacy-summary strong {
  display: block;
  margin-bottom: .55rem;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.12;
}

body.mrv-legal-page .mrv-privacy-summary p {
  margin: 0;
  color: var(--mrv-soft);
  font-size: .95rem;
  line-height: 1.6;
}

body.mrv-legal-page .mrv-privacy-layout {
  display: grid;
  grid-template-columns: minmax(230px, .28fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

body.mrv-legal-page .mrv-privacy-nav {
  position: sticky;
  top: 110px;
  display: grid;
  gap: .15rem;
  max-height: calc(100vh - 140px);
  padding: 1.2rem;
  overflow: auto;
  border: 1px solid var(--mrv-privacy-line);
  border-radius: 25px;
  background: rgba(245, 250, 249, .96);
  box-shadow: 0 16px 40px rgba(13, 72, 71, .06);
  scrollbar-width: thin;
}

body.mrv-legal-page .mrv-privacy-nav > p {
  margin: 0 0 .75rem;
  color: var(--mrv-primary-dark);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.mrv-legal-page .mrv-privacy-nav a {
  display: block;
  padding: .62rem .72rem;
  border-radius: 12px;
  color: var(--mrv-soft);
  font-size: .92rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

body.mrv-legal-page .mrv-privacy-nav a:hover,
body.mrv-legal-page .mrv-privacy-nav a:focus-visible {
  color: var(--mrv-primary-dark);
  background: #e7f2f1;
  transform: translateX(2px);
  outline: none;
}

body.mrv-legal-page .mrv-privacy-content {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

body.mrv-legal-page .mrv-privacy-section {
  scroll-margin-top: 118px;
  padding: clamp(1.65rem, 3.3vw, 3rem);
  border: 1px solid var(--mrv-privacy-line);
  border-radius: 30px;
  background: var(--mrv-privacy-card-bg);
  box-shadow: 0 17px 42px rgba(13, 72, 71, .055);
}

body.mrv-legal-page .mrv-privacy-section__number {
  display: inline-flex;
  align-items: center;
  min-width: 47px;
  height: 32px;
  margin: 0 0 1rem !important;
  padding: 0 .8rem;
  border-radius: 999px;
  color: var(--mrv-primary-dark) !important;
  background: #e7f2f1;
  font-size: .76rem !important;
  font-weight: 800;
  letter-spacing: .12em;
}

body.mrv-legal-page .mrv-privacy-section h2 {
  margin: 0 0 1.2rem !important;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 3.45rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.03;
}

body.mrv-legal-page .mrv-privacy-section p,
body.mrv-legal-page .mrv-privacy-section li {
  color: var(--mrv-soft);
  font-size: 1rem;
  line-height: 1.75;
}

body.mrv-legal-page .mrv-privacy-section p {
  margin: 0 0 1rem;
}

body.mrv-legal-page .mrv-privacy-section p:last-child {
  margin-bottom: 0;
}

body.mrv-legal-page .mrv-privacy-section ul {
  display: grid;
  gap: .55rem;
  margin: .7rem 0 1.1rem;
  padding-left: 1.25rem;
}

body.mrv-legal-page .mrv-privacy-section strong {
  color: var(--mrv-ink);
}

body.mrv-legal-page .mrv-privacy-section a {
  color: var(--mrv-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body.mrv-legal-page .mrv-privacy-contact-card,
body.mrv-legal-page .mrv-privacy-authority {
  display: grid;
  gap: .28rem;
  margin: 1.25rem 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(12, 122, 120, .13);
  border-radius: 20px;
  background: var(--mrv-privacy-soft-bg);
}

body.mrv-legal-page .mrv-privacy-contact-card strong,
body.mrv-legal-page .mrv-privacy-authority strong {
  margin-bottom: .2rem;
  color: var(--mrv-primary-dark);
  font-size: 1.06rem;
}

body.mrv-legal-page .mrv-privacy-contact-card span,
body.mrv-legal-page .mrv-privacy-authority span,
body.mrv-legal-page .mrv-privacy-contact-card a,
body.mrv-legal-page .mrv-privacy-authority a {
  color: var(--mrv-soft);
  font-size: .96rem;
  line-height: 1.5;
}

body.mrv-legal-page .mrv-privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.25rem 0;
}

body.mrv-legal-page .mrv-privacy-actions .mrv-btn {
  cursor: pointer;
}

body.mrv-legal-page .mrv-privacy-section--final {
  color: #f7fbfa;
  background:
    radial-gradient(circle at 92% 4%, rgba(72, 157, 154, .28), transparent 28%),
    linear-gradient(135deg, #086363 0%, #044647 100%);
  box-shadow: 0 22px 58px rgba(3, 65, 65, .17);
}

body.mrv-legal-page .mrv-privacy-section--final .mrv-privacy-section__number {
  color: #e8faf7 !important;
  background: rgba(255, 255, 255, .12);
}

body.mrv-legal-page .mrv-privacy-section--final h2,
body.mrv-legal-page .mrv-privacy-section--final p,
body.mrv-legal-page .mrv-privacy-section--final strong {
  color: #f7fbfa;
}

body.mrv-legal-page .mrv-privacy-section--final a {
  color: #e7faf7;
  text-decoration-color: rgba(231, 250, 247, .62);
}

body.mrv-legal-page .mrv-privacy-section--final a:hover,
body.mrv-legal-page .mrv-privacy-section--final a:focus-visible {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, .88);
}

body.mrv-legal-page .mrv-privacy-section--final .mrv-btn--outline {
  --btn-bg: rgba(255, 255, 255, .04);
  --btn-color: #ecfbf8;
  border-color: rgba(231, 250, 247, .34);
  box-shadow: none;
}

body.mrv-legal-page .mrv-privacy-section--final .mrv-btn--outline:hover,
body.mrv-legal-page .mrv-privacy-section--final .mrv-btn--outline:focus-visible {
  --btn-bg: rgba(255, 255, 255, .12);
  --btn-color: #ffffff;
  border-color: rgba(255, 255, 255, .5);
  box-shadow: 0 14px 28px rgba(4, 47, 47, .18);
}

@media (max-width: 1180px) {
  body.mrv-legal-page .mrv-privacy-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mrv-legal-page .mrv-privacy-layout {
    grid-template-columns: 1fr;
  }

  body.mrv-legal-page .mrv-privacy-nav {
    position: static;
    display: flex;
    gap: .4rem;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
  }

  body.mrv-legal-page .mrv-privacy-nav > p {
    display: none;
  }

  body.mrv-legal-page .mrv-privacy-nav a {
    flex: 0 0 auto;
    border: 1px solid rgba(12, 122, 120, .1);
    background: #fff;
  }
}

@media (max-width: 820px) {
  body.mrv-legal-page .mrv-privacy-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.mrv-legal-page .mrv-privacy-hero__meta {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  body.mrv-legal-page .mrv-privacy-shell {
    width: min(100% - 20px, 1420px);
  }

  body.mrv-legal-page .mrv-privacy-hero {
    padding: 1.6rem;
    border-radius: 27px;
  }

  body.mrv-legal-page .mrv-privacy-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  body.mrv-legal-page .mrv-privacy-summary {
    grid-template-columns: 1fr;
  }

  body.mrv-legal-page .mrv-privacy-summary article {
    min-height: 0;
  }

  body.mrv-legal-page .mrv-privacy-nav {
    margin-inline: -2px;
    padding: .85rem;
    border-radius: 20px;
  }

  body.mrv-legal-page .mrv-privacy-section {
    padding: 1.4rem;
    border-radius: 24px;
  }

  body.mrv-legal-page .mrv-privacy-section h2 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  body.mrv-legal-page .mrv-privacy-section p,
  body.mrv-legal-page .mrv-privacy-section li {
    font-size: .96rem;
    line-height: 1.68;
  }

  body.mrv-legal-page .mrv-privacy-actions .mrv-btn {
    width: 100%;
  }
}


/* === Matilde 1.1.52: Allgemeine Nutzungsbedingungen === */
body.mrv-legal-page .mrv-terms-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem 1rem;
  align-items: start;
  margin: 0 0 1.4rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(12, 122, 120, .18);
  border-left: 4px solid var(--mrv-primary, #087d7b);
  border-radius: 18px;
  background: #eef7f6;
  color: var(--mrv-ink, #174b4b);
}
body.mrv-legal-page .mrv-terms-callout strong {
  font-weight: 800;
}
body.mrv-legal-page .mrv-terms-callout p {
  margin: 0;
  line-height: 1.6;
}
body.mrv-legal-page .mrv-terms-shell .mrv-privacy-section ul {
  padding-left: 1.25rem;
}
body.mrv-legal-page .mrv-terms-shell .mrv-privacy-section li + li {
  margin-top: .45rem;
}
body.mrv-legal-page .mrv-terms-shell .mrv-privacy-actions {
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  body.mrv-legal-page .mrv-terms-callout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

/* Matilde 1.1.54 – semantisches H1 im Kalender bei unverändertem Design. */
.mrv-calendar h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}
.mrv-calendar h1 em {
  color: var(--mrv-primary-dark);
  font-style: normal;
}

/* === Matilde 1.1.55: eigene, suchmaschinenfreundliche 404-Seite === */
body.mrv-404-page {
  background: #f3f8f7;
}

body.mrv-404-page .site-content,
body.mrv-404-page #primary,
body.mrv-404-page .content-area,
body.mrv-404-page .content-container,
body.mrv-404-page .site-main,
body.mrv-404-page main#main,
body.mrv-404-page .content-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mrv-404-shell {
  width: 100%;
  padding: clamp(2rem, 5vw, 5rem) clamp(18px, 4.5vw, 82px);
  background:
    radial-gradient(circle at 8% 15%, rgba(195, 226, 224, .55), transparent 28%),
    linear-gradient(180deg, #f4f9f8 0%, #ffffff 52%, #eef7f6 100%);
}

.mrv-404-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  width: min(100%, 1540px);
  min-height: 660px;
  margin: 0 auto;
  border: 1px solid rgba(0, 111, 112, .13);
  border-radius: 38px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 28px 80px rgba(4, 79, 80, .12);
  overflow: hidden;
}

.mrv-404-card__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.2rem, 5vw, 5.2rem);
}

.mrv-404-card__code {
  margin: .4rem 0 -.35rem;
  color: rgba(0, 111, 112, .1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.5rem, 11vw, 10rem);
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: .8;
}

.mrv-404-card h1 {
  max-width: 10.5ch;
  margin: 0 0 1.35rem;
  color: #075d5e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .98;
}

.mrv-404-card h1 em {
  color: #78aeb3;
  font-weight: 400;
}

.mrv-404-card__lead {
  max-width: 48ch;
  margin: 0 0 1.8rem;
  color: #31595a;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.7;
}

.mrv-404-card__actions {
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.mrv-404-card__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  border-top: 1px solid rgba(0, 111, 112, .14);
  border-bottom: 1px solid rgba(0, 111, 112, .14);
}

.mrv-404-card__links a {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem .85rem;
  color: #075d5e;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.mrv-404-card__links a:not(:last-child) {
  border-right: 1px solid rgba(0, 111, 112, .14);
}

.mrv-404-card__links a:hover,
.mrv-404-card__links a:focus-visible {
  color: #004d4e;
  background: #edf7f5;
}

.mrv-404-card__visual {
  position: relative;
  min-height: 100%;
  padding: clamp(1rem, 2.2vw, 2rem);
}

.mrv-404-card__image {
  width: 100%;
  height: 100%;
  min-height: 590px;
  margin: 0;
  border-radius: 220px 30px 30px 220px;
  overflow: hidden;
  background: #e6f1ef;
  box-shadow: inset 0 0 0 14px rgba(198, 231, 229, .85);
}

.mrv-404-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mrv-404-card__badge {
  position: absolute;
  right: clamp(1.8rem, 4vw, 4rem);
  bottom: clamp(1.8rem, 4vw, 4rem);
  display: grid;
  gap: .45rem;
  width: min(280px, 72%);
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 24px;
  color: #fff;
  background: rgba(4, 79, 80, .88);
  box-shadow: 0 20px 48px rgba(1, 45, 46, .22);
  backdrop-filter: blur(12px);
}

.mrv-404-card__badge img {
  width: 128px;
  height: auto;
  filter: brightness(0) invert(1);
}

.mrv-404-card__badge span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.35;
}

.mrv-404-card__line {
  position: absolute;
  z-index: 1;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(0, 111, 112, .18);
  border-radius: 50%;
  pointer-events: none;
}

.mrv-404-card__line--one {
  left: -190px;
  top: -120px;
}

.mrv-404-card__line--two {
  left: -150px;
  top: -75px;
}

@media (max-width: 1080px) {
  .mrv-404-card {
    grid-template-columns: 1fr;
  }

  .mrv-404-card__visual {
    min-height: 480px;
    padding-top: 0;
  }

  .mrv-404-card__image {
    min-height: 480px;
    border-radius: 30px;
  }
}

@media (max-width: 680px) {
  .mrv-404-shell {
    padding: 1rem 10px 1.5rem;
  }

  .mrv-404-card {
    min-height: 0;
    border-radius: 26px;
  }

  .mrv-404-card__copy {
    padding: 2rem 1.25rem 1.4rem;
  }

  .mrv-404-card h1 {
    max-width: none;
  }

  .mrv-404-card__links {
    grid-template-columns: 1fr;
  }

  .mrv-404-card__links a:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 111, 112, .14);
  }

  .mrv-404-card__visual {
    min-height: 340px;
    padding: .75rem;
  }

  .mrv-404-card__image {
    min-height: 340px;
    border-radius: 22px;
  }

  .mrv-404-card__badge {
    right: 1.25rem;
    bottom: 1.25rem;
    width: calc(100% - 2.5rem);
    border-radius: 18px;
  }
}

/* === Matilde 1.1.56: zusätzliche Zeiten im Anbieterbereich === */
.mrv-dashboard-tab--booking .mrv-dashboard-tab__number {
  background: #fff1bd;
  color: #6a5100;
}
.mrv-dashboard-overview__book-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border-color: rgba(183, 121, 0, .22);
  background: linear-gradient(120deg, #fffdf5, #f5fbfa);
}
.mrv-dashboard-overview__book-more h3 { margin: .3rem 0 .5rem; color: var(--mrv-ink); }
.mrv-dashboard-overview__book-more p:last-child { margin-bottom: 0; }
.mrv-dashboard__flexbook { overflow: visible; }
.mrv-flex-booking-calendar .mrv-calendar--provider {
  margin: 1.25rem 0 0;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid rgba(12, 122, 120, .13);
  border-radius: 24px;
  background: #fbfdfd;
  box-shadow: none;
}
.mrv-flex-calendar-head h3 {
  margin: .45rem 0 .7rem;
  color: var(--mrv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}
.mrv-flex-booking-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid #bfdcda;
  background: #eef8f7;
  color: #075f5d;
}
.mrv-flex-booking-status.is-success { background: #eaf7ed; border-color: #b7ddc0; color: #245b31; }
.mrv-flex-booking-status.is-error { background: #fff0f0; border-color: #efc3c3; color: #8a2525; }
.mrv-flex-booking-status a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.mrv-selectbar--provider .mrv-selectbar__actions { justify-content: flex-end; }
@media (max-width: 760px) {
  .mrv-dashboard-overview__book-more { align-items: stretch; flex-direction: column; }
  .mrv-dashboard-overview__book-more .mrv-btn { width: 100%; justify-content: center; }
  .mrv-flex-booking-status { align-items: flex-start; flex-direction: column; }
}

/* === Matilde 1.1.57: fokussierte Direktbuchung === */
.mrv-dashboard-wizard__nav--flexbook .mrv-dashboard-tabs {
  margin-top: .75rem;
}
.mrv-dashboard-wizard__nav--flexbook .mrv-dashboard-tab--booking {
  cursor: default;
}
.mrv-dashboard-wizard__nav--flexbook .mrv-dashboard-tab--booking:hover {
  transform: none;
}


/* Matilde 1.1.61 – Auf-einen-Blick Preisinfo wie Referenz breiter darstellen. */
@media (min-width: 861px) {
  body.mrv-home-page .mrv-overview-stat {
    min-width: 235px;
    max-width: 255px;
  }
}

/* === Matilde 1.1.68: Räume & Ausstattung – Breite & Materialsymbol === */
/*
 * Die Seite liegt wie die Startseite unter dem transparenten WordPress-Menü.
 * Der Inhaltsabstand wird deshalb hier bewusst erzeugt, damit nichts unter
 * dem Header abgeschnitten wird.
 */
body.mrv-rooms-page,
body.mrv-rooms-page .site-content,
body.mrv-rooms-page #primary,
body.mrv-rooms-page .content-area,
body.mrv-rooms-page .content-container,
body.mrv-rooms-page .site-main,
body.mrv-rooms-page main#main,
body.mrv-rooms-page .content-wrap,
body.mrv-rooms-page article.entry,
body.mrv-rooms-page .entry-content-wrap,
body.mrv-rooms-page .entry-content,
body.mrv-rooms-page .single-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
  background: #f6faf9 !important;
}

body.mrv-rooms-page #masthead.site-header,
body.mrv-rooms-page header#masthead,
body.mrv-rooms-page .site-header {
  position: absolute !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.admin-bar.mrv-rooms-page #masthead.site-header,
body.admin-bar.mrv-rooms-page header#masthead,
body.admin-bar.mrv-rooms-page .site-header {
  top: 32px;
}

body.mrv-rooms-page #masthead .site-header-wrap,
body.mrv-rooms-page #masthead .site-main-header-wrap,
body.mrv-rooms-page #masthead .site-header-row-container,
body.mrv-rooms-page #masthead .site-header-row-container-inner,
body.mrv-rooms-page #masthead .site-main-header-inner-wrap,
body.mrv-rooms-page #masthead .site-container {
  background: transparent !important;
  box-shadow: none !important;
}

body.mrv-rooms-page #masthead .site-header-row-container-inner,
body.mrv-rooms-page #masthead .site-container {
  width: 100% !important;
  max-width: none !important;
}

body.mrv-rooms-page #masthead .site-container {
  padding-right: clamp(28px, 3.3vw, 58px) !important;
  padding-left: clamp(28px, 3.3vw, 58px) !important;
}

body.mrv-rooms-page #masthead .site-main-header-inner-wrap {
  min-height: clamp(88px, 7vw, 112px);
}

body.mrv-rooms-page .mrv-rooms-page-shell {
  width: 100%;
  margin: 0;
  padding: clamp(118px, 8vw, 146px) 0 clamp(2.4rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at 3% 3%, rgba(208, 234, 232, .62), transparent 24%),
    radial-gradient(circle at 98% 5%, rgba(250, 244, 235, .88), transparent 25%),
    linear-gradient(135deg, #f7fbfa 0%, #fffdfa 100%);
}

body.mrv-rooms-page .mrv-rooms-panel {
  width: min(1320px, calc(100% - 42px));
  margin: 0 auto;
}


/* === Matilde 1.1.84: neuer Einstieg vor Material & Ausstattung === */
body.mrv-rooms-page .mrv-rooms-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .32fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(1320px, calc(100% - 42px));
  min-height: 300px;
  margin: 0 auto clamp(1.5rem, 2.4vw, 2rem);
  padding: clamp(2.6rem, 4.2vw, 4.3rem) clamp(2.5rem, 4.6vw, 5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 20%, rgba(235, 244, 239, .62), transparent 30%),
    linear-gradient(135deg, #fffefb 0%, #fffdfa 100%);
}

body.mrv-rooms-page .mrv-rooms-intro__copy {
  position: relative;
  z-index: 1;
}

body.mrv-rooms-page .mrv-rooms-intro__kicker {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.35rem;
  color: #719f92;
  font-size: clamp(.72rem, .85vw, .9rem);
  font-weight: 800;
  letter-spacing: .23em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.mrv-rooms-page .mrv-rooms-intro__kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  flex: 0 0 auto;
  background: #6eaa9e;
}

body.mrv-rooms-page .mrv-rooms-intro h1 {
  max-width: 15ch;
  margin: 0 0 1.25rem !important;
  color: #0a5056;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 4.3vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.02;
}

body.mrv-rooms-page .mrv-rooms-intro__lead {
  max-width: 760px;
  margin: 0;
  color: #355b61;
  font-size: clamp(.98rem, 1.25vw, 1.15rem);
  line-height: 1.65;
}

body.mrv-rooms-page .mrv-rooms-intro__symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: min(100%, 320px);
}

body.mrv-rooms-page .mrv-rooms-intro__symbol img {
  display: block;
  width: clamp(174px, 15.95vw, 247px);
  height: auto;
  opacity: .56;
  filter: saturate(.72) brightness(1.08);
}

/* Große Material-/Ausstattungs-Karte wie in der Referenz. */
body.mrv-rooms-page .mrv-rooms-feature {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  overflow: hidden;
  min-height: 455px;
  border: 1px solid rgba(7, 94, 94, .10);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(24, 88, 84, .08);
}

body.mrv-rooms-page .mrv-rooms-feature__copy {
  padding: clamp(2rem, 3.2vw, 3rem) clamp(1.8rem, 3vw, 2.8rem);
  background:
    radial-gradient(circle at 7% 8%, rgba(198, 226, 222, .42), transparent 35%),
    linear-gradient(145deg, #f0f6f3 0%, #f8faf6 100%);
}

body.mrv-rooms-page .mrv-rooms-feature__heading {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: .95rem;
  align-items: center;
}

body.mrv-rooms-page .mrv-rooms-feature__symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 50%;
  background: #d5eae3;
}

body.mrv-rooms-page .mrv-rooms-feature__symbol img {
  display: block;
  width: 72px;
  height: 72px;
  max-width: none;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: none;
  opacity: 1;
  transform: scale(1.02);
  transform-origin: center;
}

body.mrv-rooms-page .mrv-rooms-feature h2 {
  margin: 0;
  color: #0a5d5e;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 2.55vw, 2.7rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
}

body.mrv-rooms-page .mrv-rooms-feature__lead {
  max-width: 360px;
  margin: 1.25rem 0 1.45rem 74px;
  color: #365f5f;
  font-size: .98rem;
  line-height: 1.55;
}

body.mrv-rooms-page .mrv-rooms-material-list {
  display: grid;
  gap: .52rem;
  margin: 0 0 0 74px;
  padding: 0;
  list-style: none;
  color: #355d5d;
  font-size: .94rem;
}

body.mrv-rooms-page .mrv-rooms-material-list li {
  display: flex;
  align-items: center;
  gap: .68rem;
}

body.mrv-rooms-page .mrv-rooms-material-list__check {
  display: inline-flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #58a39b;
}

body.mrv-rooms-page .mrv-rooms-material-list__check svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.mrv-rooms-page .mrv-rooms-feature__media {
  position: relative;
  min-width: 0;
  min-height: 455px;
  margin: 0;
  overflow: hidden;
  background: #e6efec;
}

body.mrv-rooms-page .mrv-rooms-feature__slider-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform .58s cubic-bezier(.22, .72, .2, 1);
  will-change: transform;
}

body.mrv-rooms-page .mrv-rooms-feature__slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
}

body.mrv-rooms-page .mrv-rooms-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 455px;
  object-fit: cover;
  object-position: center;
}

body.mrv-rooms-page .mrv-rooms-feature__slider-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 50%;
  color: #075e60;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 24px rgba(5, 62, 62, .16);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

body.mrv-rooms-page .mrv-rooms-feature__slider-nav--prev {
  left: 16px;
}

body.mrv-rooms-page .mrv-rooms-feature__slider-nav--next {
  right: 16px;
}

body.mrv-rooms-page .mrv-rooms-feature__slider-nav:hover,
body.mrv-rooms-page .mrv-rooms-feature__slider-nav:focus-visible {
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(5, 62, 62, .22);
  transform: translateY(-50%) scale(1.04);
}

body.mrv-rooms-page .mrv-rooms-feature__slider-nav svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.mrv-rooms-page .mrv-rooms-feature__slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 999px;
  background: rgba(6, 74, 74, .38);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

body.mrv-rooms-page .mrv-rooms-feature__slider-dots button {
  width: 8px;
  height: 8px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .62);
  box-shadow: none;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

body.mrv-rooms-page .mrv-rooms-feature__slider-dots button.is-active {
  width: 22px;
  border-radius: 999px;
  background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  body.mrv-rooms-page .mrv-rooms-feature__slider-track {
    transition: none;
  }
}

/* Exakt fünf Karten: 3 oben, 2 breit darunter. */
body.mrv-rooms-page .mrv-rooms-grid--five {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.9rem, 1.45vw, 1.2rem);
  margin-top: clamp(1.1rem, 1.8vw, 1.5rem);
}

body.mrv-rooms-page .mrv-rooms-card {
  grid-column: span 2;
  min-width: 0;
  overflow: hidden;
  padding: .82rem;
  border: 1px solid rgba(10, 96, 96, .11);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(26, 82, 80, .065);
  transition: transform .22s ease, box-shadow .22s ease;
}

body.mrv-rooms-page .mrv-rooms-card--4,
body.mrv-rooms-page .mrv-rooms-card--5 {
  grid-column: span 3;
}

body.mrv-rooms-page .mrv-rooms-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(26, 82, 80, .095);
}

body.mrv-rooms-page .mrv-rooms-card__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  min-height: 50px;
  margin-bottom: .65rem;
}

body.mrv-rooms-page .mrv-rooms-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dfeee9;
  color: #197d78;
}

body.mrv-rooms-page .mrv-rooms-card__icon .mrv-icon,
body.mrv-rooms-page .mrv-rooms-card__icon svg {
  width: 23px;
  height: 23px;
}

body.mrv-rooms-page .mrv-rooms-card h2 {
  margin: 0;
  color: #0a5d5e;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.22rem, 1.55vw, 1.58rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.018em;
}

@media (min-width: 981px) {
  body.mrv-rooms-page .mrv-rooms-card__title-line {
    display: block;
  }
}

@media (max-width: 980px) {
  body.mrv-rooms-page .mrv-rooms-card__title-line {
    display: inline;
  }

  body.mrv-rooms-page .mrv-rooms-card__title-line + .mrv-rooms-card__title-line::before {
    content: ' ';
  }
}

body.mrv-rooms-page .mrv-rooms-card__media {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1.72 / 1;
  background: #e9f0ee;
}

body.mrv-rooms-page .mrv-rooms-card--4 .mrv-rooms-card__media,
body.mrv-rooms-page .mrv-rooms-card--5 .mrv-rooms-card__media {
  aspect-ratio: 2.35 / 1;
}

body.mrv-rooms-page .mrv-rooms-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}

body.mrv-rooms-page .mrv-rooms-card:hover .mrv-rooms-card__media img {
  transform: scale(1.02);
}

body.mrv-rooms-page .mrv-rooms-card > p {
  margin: .7rem .12rem .08rem;
  color: #496565;
  font-size: clamp(.82rem, .88vw, .92rem);
  line-height: 1.42;
}

body.mrv-rooms-page .mrv-rooms-closing {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 42px;
  gap: 1rem;
  align-items: center;
  margin-top: clamp(1rem, 1.7vw, 1.4rem);
  padding: .95rem 1.35rem;
  border: 1px solid rgba(10, 96, 96, .06);
  border-radius: 15px;
  background: linear-gradient(90deg, rgba(224, 239, 235, .82), rgba(247, 248, 241, .78));
  color: #3a5e5d;
}

body.mrv-rooms-page .mrv-rooms-closing__spark,
body.mrv-rooms-page .mrv-rooms-closing__heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6aa8a0;
}

body.mrv-rooms-page .mrv-rooms-closing__spark svg {
  width: 46px;
  height: 46px;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.mrv-rooms-page .mrv-rooms-closing__heart {
  justify-self: end;
}

body.mrv-rooms-page .mrv-rooms-closing__heart .mrv-icon,
body.mrv-rooms-page .mrv-rooms-closing__heart svg {
  width: 30px;
  height: 30px;
}

body.mrv-rooms-page .mrv-rooms-closing strong {
  display: block;
  color: #0b5d5d;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 600;
  line-height: 1.25;
}

body.mrv-rooms-page .mrv-rooms-closing div > span {
  display: block;
  margin-top: .18rem;
  font-size: .88rem;
}

@media (max-width: 980px) {
  body.mrv-rooms-page .mrv-rooms-panel {
    width: min(100% - 28px, 920px);
  }

  body.mrv-rooms-page .mrv-rooms-feature {
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  }

  body.mrv-rooms-page .mrv-rooms-grid--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mrv-rooms-page .mrv-rooms-card,
  body.mrv-rooms-page .mrv-rooms-card--4,
  body.mrv-rooms-page .mrv-rooms-card--5 {
    grid-column: auto;
  }

  body.mrv-rooms-page .mrv-rooms-card--5 {
    grid-column: 1 / -1;
    width: min(100%, calc(50% - .6rem));
    justify-self: center;
  }
}

@media (max-width: 760px) {
  body.admin-bar.mrv-rooms-page #masthead.site-header,
  body.admin-bar.mrv-rooms-page header#masthead,
  body.admin-bar.mrv-rooms-page .site-header {
    top: 46px;
  }

  body.mrv-rooms-page .mrv-rooms-page-shell {
    padding-top: 96px;
  }

  body.mrv-rooms-page .mrv-rooms-panel {
    width: calc(100% - 20px);
  }


  body.mrv-rooms-page .mrv-rooms-intro {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 1rem;
    width: calc(100% - 20px);
    min-height: 0;
    margin-bottom: 18px;
    padding: 1.7rem 1.25rem 1.8rem;
  }

  body.mrv-rooms-page .mrv-rooms-intro__kicker {
    margin-bottom: 1rem;
    font-size: .69rem;
    letter-spacing: .18em;
  }

  body.mrv-rooms-page .mrv-rooms-intro h1 {
    max-width: none;
    margin-bottom: 1rem !important;
    font-size: clamp(2rem, 8.8vw, 2.65rem);
    line-height: 1.04;
  }

  body.mrv-rooms-page .mrv-rooms-intro__lead {
    font-size: .94rem;
    line-height: 1.55;
  }

  body.mrv-rooms-page .mrv-rooms-intro__desktop-break {
    display: none;
  }

  body.mrv-rooms-page .mrv-rooms-intro__symbol {
    align-self: center;
    width: 76px;
  }

  body.mrv-rooms-page .mrv-rooms-intro__symbol img {
    width: 72px;
    opacity: .5;
  }

  body.mrv-rooms-page .mrv-rooms-feature {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 20px;
  }

  body.mrv-rooms-page .mrv-rooms-feature__copy {
    padding: 1.5rem 1.2rem 1.6rem;
  }

  body.mrv-rooms-page .mrv-rooms-feature__heading {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: .8rem;
  }

  body.mrv-rooms-page .mrv-rooms-feature__symbol {
    width: 48px;
    height: 48px;
  }

  body.mrv-rooms-page .mrv-rooms-feature__symbol img {
    width: 60px;
    height: 60px;
  }

  body.mrv-rooms-page .mrv-rooms-feature h2 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  body.mrv-rooms-page .mrv-rooms-feature__lead,
  body.mrv-rooms-page .mrv-rooms-material-list {
    margin-left: 0;
  }

  body.mrv-rooms-page .mrv-rooms-feature__lead {
    margin-top: 1rem;
  }

  body.mrv-rooms-page .mrv-rooms-feature__media {
    order: -1;
    min-height: 0;
    aspect-ratio: 1.35 / 1;
  }

  body.mrv-rooms-page .mrv-rooms-feature__media img {
    min-height: 0;
  }

  body.mrv-rooms-page .mrv-rooms-feature__slider-nav {
    width: 40px;
    height: 40px;
  }

  body.mrv-rooms-page .mrv-rooms-feature__slider-nav--prev {
    left: 10px;
  }

  body.mrv-rooms-page .mrv-rooms-feature__slider-nav--next {
    right: 10px;
  }

  body.mrv-rooms-page .mrv-rooms-feature__slider-dots {
    bottom: 10px;
  }

  body.mrv-rooms-page .mrv-rooms-grid--five {
    grid-template-columns: 1fr;
  }

  body.mrv-rooms-page .mrv-rooms-card,
  body.mrv-rooms-page .mrv-rooms-card--4,
  body.mrv-rooms-page .mrv-rooms-card--5 {
    grid-column: auto;
    width: 100%;
  }

  body.mrv-rooms-page .mrv-rooms-card__media,
  body.mrv-rooms-page .mrv-rooms-card--4 .mrv-rooms-card__media,
  body.mrv-rooms-page .mrv-rooms-card--5 .mrv-rooms-card__media {
    aspect-ratio: 1.65 / 1;
  }

  body.mrv-rooms-page .mrv-rooms-closing {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: .9rem 1rem;
  }

  body.mrv-rooms-page .mrv-rooms-closing__spark svg {
    width: 36px;
    height: 36px;
  }

  body.mrv-rooms-page .mrv-rooms-closing__heart {
    display: none;
  }
}


/* === Matilde 1.1.78: Mobile Feinschliff – Abstaende, Kurse und Kalender === */
/*
 * Ausschliesslich fuer Smartphone-Breiten. Desktop/Tablet-Desktop-Layouts
 * bleiben unveraendert. Auf der Startseite erhalten die grossen Inhaltsboxen
 * einen einheitlichen seitlichen Abstand von 16px.
 */
@media (max-width: 640px) {
  body.mrv-home-page .mrv-hero--reference .mrv-hero__copy,
  body.mrv-home-page .mrv-hero--reference .mrv-hero__highlights,
  body.mrv-home-page .mrv-overview,
  body.mrv-home-page .mrv-course-idea,
  body.mrv-home-page .mrv-usecases,
  body.mrv-home-page .mrv-calendar-teaser,
  body.mrv-home-page .mrv-final-cta {
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  body.mrv-home-page .mrv-hero--reference .mrv-hero__image-wrap {
    width: calc(100% - 32px);
    margin: 0 auto 1.25rem;
  }

  /* Der Kurseinstieg bekommt unter dem mobilen Header etwas mehr Luft. */
  body.mrv-plugin-page .mrv-courses > .mrv-section {
    padding-top: 6rem;
  }

  body.mrv-plugin-page .mrv-courses .mrv-section__head .mrv-eyebrow {
    margin-bottom: 1.25rem;
  }

  /* Kalender: Abstand zum Header vergroessern und H1 smartphonegerecht setzen. */
  body.mrv-plugin-page .mrv-calendar-wrap .mrv-calendar--month {
    margin-top: 4rem;
  }

  body.mrv-plugin-page .mrv-calendar--month > .mrv-section__head {
    padding-top: .35rem;
  }

  body.mrv-plugin-page .mrv-calendar--month #mrv-calendar-title {
    width: 100%;
    max-width: 100%;
    margin: .75rem auto 1.15rem !important;
    font-size: clamp(2.45rem, 11vw, 3.05rem);
    line-height: 1.01;
    letter-spacing: -.035em;
    text-align: center;
    text-wrap: balance;
  }

  body.mrv-plugin-page .mrv-calendar--month > .mrv-section__head > p:last-child {
    margin-inline: auto;
    text-align: center;
  }
}


/* === Matilde 1.1.79: Mobile Ausrichtung – Anfrage, Start-Hero und Kursdetail === */
/* Nur Smartphones. Desktop und Tablet/Desktop bleiben unveraendert. */
@media (max-width: 640px) {
  /*
   * Raum anfragen: Der Theme-Header belegt mobil mehr Hoehe als der normale
   * Contentfluss. Die Anfrage beginnt deshalb mit zusaetzlicher Luft unter
   * dem Logo und nutzt dieselbe 16px-Seitenkante wie die restlichen Inhalte.
   */
  body.mrv-plugin-page .mrv-request > .mrv-request__wrap {
    width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 7.25rem;
  }

  body.mrv-plugin-page .mrv-request__intro,
  body.mrv-plugin-page .mrv-request__intro > * {
    min-width: 0;
    max-width: 100%;
  }

  /*
   * Startseite: echte Innenkante statt nur einer berechneten Breite.
   * Dadurch liegen H1, Beschreibung und beide Buttons garantiert 16px
   * von beiden Displayseiten entfernt.
   */
  body.mrv-home-page .mrv-home--editorial .mrv-hero--reference .mrv-hero__copy {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.mrv-home-page .mrv-home--editorial .mrv-hero--reference .mrv-hero__copy h1,
  body.mrv-home-page .mrv-home--editorial .mrv-hero--reference .mrv-hero__intro,
  body.mrv-home-page .mrv-home--editorial .mrv-hero--reference .mrv-actions {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  /*
   * Kursdetail: gleiche 16px-Aussenkante wie die mobilen Karten.
   * Damit sitzt auch "Alle Kurse" nicht mehr direkt am Displayrand.
   */
  body.mrv-plugin-page .mrv-course-detail__shell {
    box-sizing: border-box;
    width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.mrv-plugin-page .mrv-course-detail__breadcrumb {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}


/* === Matilde 1.1.80: Start-Hero mobile Seitenkante robust === */
/*
 * Direkt am Shortcode-Container statt an einer Body-Klasse gebunden.
 * So hat der Hero auf Smartphones verlaesslich dieselbe 16px-Aussenkante
 * wie die uebrigen Inhaltsbereiche der Startseite.
 */
@media (max-width: 640px) {
  .mrv-home.mrv-home--editorial .mrv-hero--reference .mrv-hero__inner > .mrv-hero__copy {
    box-sizing: border-box !important;
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .mrv-home.mrv-home--editorial .mrv-hero--reference .mrv-hero__copy h1,
  .mrv-home.mrv-home--editorial .mrv-hero--reference .mrv-hero__intro,
  .mrv-home.mrv-home--editorial .mrv-hero--reference .mrv-actions {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* === Matilde 1.1.81: Kalender mobile – mehr Luft unter dem Header === */
/* Nur Smartphone: die weisse Kalenderkarte etwas weiter nach unten setzen. */
@media (max-width: 640px) {
  body.mrv-plugin-page .mrv-calendar-wrap .mrv-calendar--month {
    margin-top: 5.5rem;
  }
}

/* === Matilde 1.1.85: Räume breiter + Kartenraster nach Referenz === */
@media (min-width: 981px) {
  body.mrv-rooms-page .mrv-rooms-panel,
  body.mrv-rooms-page .mrv-rooms-intro {
    width: min(1420px, calc(100% - 32px));
  }

  body.mrv-rooms-page .mrv-rooms-intro {
    border: 1px solid rgba(10, 96, 96, .08);
    border-radius: 30px;
    box-shadow: 0 16px 38px rgba(26, 82, 80, .055);
  }

  body.mrv-rooms-page .mrv-rooms-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem 1rem;
    margin: clamp(1.35rem, 2vw, 1.8rem) auto 1rem;
  }

  body.mrv-rooms-page .mrv-rooms-fact {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 40px;
    padding: .55rem 1rem;
    border: 1px solid rgba(10, 96, 96, .05);
    border-radius: 10px;
    color: #355f60;
    background: #edf4f1;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.2;
  }

  body.mrv-rooms-page .mrv-rooms-fact__icon,
  body.mrv-rooms-page .mrv-rooms-fact__icon .mrv-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    color: #4d8f89;
  }

  body.mrv-rooms-page .mrv-rooms-fact__icon svg {
    width: 20px;
    height: 20px;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(.95rem, 1.35vw, 1.25rem);
    margin-top: 1rem;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card {
    grid-column: span 2;
    display: grid;
    grid-template-rows: auto auto 1fr;
    min-width: 0;
    overflow: hidden;
    padding: 0 0 1rem;
    border: 1px solid rgba(10, 96, 96, .09);
    border-radius: 18px;
    background: #fffdfa;
    box-shadow: 0 8px 22px rgba(33, 72, 69, .075);
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--7 {
    grid-column: 2 / span 2;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--8 {
    grid-column: 4 / span 2;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card__media,
  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--4 .mrv-rooms-card__media,
  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--5 .mrv-rooms-card__media {
    order: 1;
    width: 100%;
    margin: 0;
    border-radius: 0;
    aspect-ratio: 1.58 / 1;
    background: #e9f0ee;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card__head {
    order: 2;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: .7rem;
    align-items: center;
    min-height: 0;
    margin: 0;
    padding: .78rem 1rem .2rem;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card__icon {
    width: 42px;
    height: 42px;
    margin-top: -1.25rem;
    border: 1px solid rgba(79, 151, 140, .14);
    background: #dfeee8;
    box-shadow: 0 4px 12px rgba(32, 101, 95, .06);
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card h2 {
    font-size: clamp(1.08rem, 1.28vw, 1.38rem);
    line-height: 1.04;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card > p {
    order: 3;
    margin: .15rem 1rem 0 4.45rem;
    color: #496363;
    font-size: .86rem;
    line-height: 1.42;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(33, 72, 69, .105);
  }

  body.mrv-rooms-page .mrv-rooms-closing {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: .8rem;
    margin-top: 1.25rem;
    padding: .9rem 1.15rem;
    border-radius: 14px;
  }

  body.mrv-rooms-page .mrv-rooms-closing strong {
    display: inline;
    margin-right: .25rem;
    font-size: .98rem;
  }

  body.mrv-rooms-page .mrv-rooms-closing div > span {
    display: inline;
    margin-top: 0;
    font-size: .9rem;
    line-height: 1.5;
  }
}

@media (max-width: 980px) {
  body.mrv-rooms-page .mrv-rooms-intro {
    border: 1px solid rgba(10, 96, 96, .08);
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(26, 82, 80, .05);
  }

  body.mrv-rooms-page .mrv-rooms-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin: 1rem 0;
  }

  body.mrv-rooms-page .mrv-rooms-fact {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 40px;
    padding: .6rem .75rem;
    border-radius: 10px;
    color: #355f60;
    background: #edf4f1;
    font-size: .82rem;
    line-height: 1.25;
  }

  body.mrv-rooms-page .mrv-rooms-fact__icon,
  body.mrv-rooms-page .mrv-rooms-fact__icon .mrv-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    color: #4d8f89;
  }

  body.mrv-rooms-page .mrv-rooms-fact__icon svg {
    width: 19px;
    height: 19px;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-top: .9rem;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card,
  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--4,
  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--5,
  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--7,
  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--8 {
    display: grid;
    grid-column: auto;
    grid-template-rows: auto auto 1fr;
    width: 100%;
    overflow: hidden;
    padding: 0 0 .9rem;
    border-radius: 17px;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card__media,
  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--4 .mrv-rooms-card__media,
  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--5 .mrv-rooms-card__media {
    order: 1;
    margin: 0;
    border-radius: 0;
    aspect-ratio: 1.58 / 1;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card__head {
    order: 2;
    margin: 0;
    padding: .7rem .8rem .15rem;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card__icon {
    margin-top: -.95rem;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card > p {
    order: 3;
    margin: .18rem .85rem 0 4.2rem;
  }
}

@media (max-width: 640px) {
  body.mrv-rooms-page .mrv-rooms-facts,
  body.mrv-rooms-page .mrv-rooms-grid--reference {
    grid-template-columns: 1fr;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card > p {
    margin-left: 4.15rem;
  }
}


/* === Matilde 1.1.86: Kartenbereich volle Breite + einheitliche Titel/Icons === */
@media (min-width: 981px) {
  /* Der Bereich nach dem Slider nutzt die volle breite Inhaltsflaeche. */
  body.mrv-rooms-page .mrv-rooms-facts,
  body.mrv-rooms-page .mrv-rooms-grid--reference,
  body.mrv-rooms-page .mrv-rooms-closing {
    position: relative;
    left: 50%;
    width: min(1540px, calc(100vw - 24px));
    max-width: none;
    transform: translateX(-50%);
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 1.25vw, 1.35rem);
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card,
  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--4,
  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--5 {
    grid-column: auto;
  }

  /* Die beiden letzten Karten bleiben als ruhige Zweierreihe zentriert. */
  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--7 {
    grid-column: 1 / 2;
    justify-self: end;
    width: calc(100% - .35rem);
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--8 {
    grid-column: 2 / 3;
    justify-self: start;
    width: calc(100% - .35rem);
  }

  /* Icon und Ueberschrift sitzen in jeder Karte exakt gleich. */
  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card__head {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .8rem;
    align-items: center;
    min-height: 62px;
    padding: .65rem 1rem .18rem;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card__icon {
    align-self: center;
    justify-self: start;
    width: 42px;
    height: 42px;
    margin-top: 0;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card h2 {
    min-width: 0;
    margin: 0;
    white-space: nowrap;
    font-size: clamp(1.02rem, 1.17vw, 1.28rem);
    line-height: 1.08;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card__title-line {
    display: inline;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card__title-line + .mrv-rooms-card__title-line::before {
    content: ' ';
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card > p {
    margin-left: 4.25rem;
  }
}

/* === Matilde 1.1.87: Räume – gemeinsame Breite, Facts zentriert, Kartenicons mittig === */
/* Desktop: Intro, Slider, Fakten, Karten und Abschluss teilen exakt dieselbe Inhaltsbreite. */
@media (min-width: 981px) {
  body.mrv-rooms-page .mrv-rooms-panel,
  body.mrv-rooms-page .mrv-rooms-intro {
    width: min(1420px, calc(100% - 32px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  body.mrv-rooms-page .mrv-rooms-facts,
  body.mrv-rooms-page .mrv-rooms-grid--reference,
  body.mrv-rooms-page .mrv-rooms-closing {
    position: static;
    left: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  body.mrv-rooms-page .mrv-rooms-facts {
    justify-content: center;
  }
}

/* Alle Breakpoints: Icon und H2 sitzen in jeder Referenzkarte exakt vertikal mittig. */
body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card__head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
}

body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card__icon {
  align-self: center;
  justify-self: center;
  margin-top: 0 !important;
  transform: none;
}

body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card h2 {
  align-self: center;
  margin-top: 0;
  margin-bottom: 0;
}

/* === Matilde 1.1.98: redaktionelle Kursuebersicht === */
.mrv-courses-showcase {
  background:
    radial-gradient(circle at 88% 4%, rgba(191, 226, 222, .36), transparent 24%),
    linear-gradient(180deg, #f7fbfa 0%, #ffffff 43%, #f6faf9 100%);
}

.mrv-courses-showcase__shell {
  width: min(94vw, 1380px);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(4rem, 7vw, 7rem);
}

.mrv-courses-showcase__hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(10, 93, 94, .11);
  border-radius: 34px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 22px 58px rgba(13,72,71,.09);
}

.mrv-courses-showcase__hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.4rem, 5vw, 5rem);
}

.mrv-courses-showcase__hero-copy .mrv-kicker {
  margin: 0 0 1.5rem;
  color: #0a6e6d;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.mrv-courses-showcase__hero-copy h1 {
  max-width: 12ch;
  margin: 0 0 1.35rem !important;
  color: #0a5d5e;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.mrv-courses-showcase__hero-copy > p:last-child {
  max-width: 52ch;
  margin: 0;
  color: #526e6d;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.72;
}

.mrv-courses-showcase__hero-media {
  min-height: inherit;
  margin: 0;
  overflow: hidden;
}

.mrv-courses-showcase__hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.mrv-courses-showcase__types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.35rem;
}

.mrv-courses-type-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 150px;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(10, 93, 94, .11);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(13,72,71,.06);
}

.mrv-courses-type-card__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #0b7d7b;
  background: #e5f2f0;
}

.mrv-courses-type-card--workshop .mrv-courses-type-card__icon {
  color: #a06e1f;
  background: #f7f0e4;
}

.mrv-courses-type-card--individual .mrv-courses-type-card__icon {
  color: #a95c6b;
  background: #f7eaed;
}

.mrv-courses-type-card__icon .mrv-icon {
  width: 27px;
  height: 27px;
}

.mrv-courses-type-card h2 {
  margin: 0 0 .45rem !important;
  color: #0a5d5e;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-weight: 400;
  line-height: 1.08;
}

.mrv-courses-type-card p {
  margin: 0;
  color: #637675;
  font-size: .94rem;
  line-height: 1.55;
}

.mrv-courses-showcase__overview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: 1.4rem;
  align-items: stretch;
  margin-top: clamp(2.7rem, 5vw, 4.5rem);
}

.mrv-courses-featured,
.mrv-courses-weekly {
  overflow: hidden;
  border: 1px solid rgba(10,93,94,.12);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(13,72,71,.07);
}

.mrv-courses-featured {
  position: relative;
  min-height: 460px;
}

.mrv-courses-featured__media {
  position: absolute;
  inset: 0 0 0 44%;
  display: block;
  overflow: hidden;
  background: #e8f1ef;
}

.mrv-courses-featured__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 8%, rgba(255,255,255,.14) 46%, transparent 72%);
  pointer-events: none;
}

.mrv-courses-featured__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mrv-courses-featured__copy {
  position: relative;
  z-index: 2;
  width: 58%;
  min-height: 460px;
  padding: 2rem 1.4rem 1.7rem 1.7rem;
}

.mrv-courses-showcase__label {
  margin: 0 0 .7rem;
  color: #087c79;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mrv-courses-featured h2 {
  max-width: 12ch;
  margin: 0 0 .55rem !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.02;
}

.mrv-courses-featured h2 a,
.mrv-workshop-card h3 a {
  color: #0a5d5e;
  text-decoration: none;
}

.mrv-courses-featured__provider {
  margin: 0 0 1rem;
  color: #0a6e6d;
  font-weight: 750;
}

.mrv-courses-featured__dates {
  display: grid;
  gap: .35rem;
  margin-bottom: .8rem;
}

.mrv-courses-featured__dates span {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #426867;
  font-size: .88rem;
  font-weight: 650;
}

.mrv-courses-featured__dates .mrv-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.mrv-courses-featured__price {
  margin: .75rem 0;
  color: #4f7573;
  font-size: .96rem;
}

.mrv-courses-featured__excerpt {
  max-width: 34ch;
  margin: 0 0 1.15rem;
  color: #5d7170;
  font-size: .95rem;
  line-height: 1.6;
}

.mrv-courses-featured__button {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  min-height: 48px;
  padding: .8rem 1.15rem;
  border-radius: 13px;
  color: #fff;
  background: #0b8582;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(11,133,130,.16);
}

/* Matilde 1.1.99: Kursangebot-CTA auf allen Link-Zustaenden klar lesbar. */
.mrv .mrv-courses-showcase .mrv-courses-featured__button,
.mrv .mrv-courses-showcase .mrv-courses-featured__button:visited,
.mrv .mrv-courses-showcase .mrv-courses-featured__button:hover,
.mrv .mrv-courses-showcase .mrv-courses-featured__button:focus-visible {
  color: #fff !important;
}

.mrv-courses-weekly {
  padding: 1.7rem;
}

.mrv-courses-weekly > h2,
.mrv-courses-showcase__section-head h2 {
  margin: 0 !important;
  color: #0a5d5e;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  font-weight: 400;
}

.mrv-courses-weekly__list {
  display: grid;
  gap: .55rem;
  margin-top: 1.25rem;
}

.mrv-courses-weekly__row {
  display: grid;
  grid-template-columns: 48px 96px minmax(0, 1fr) minmax(110px, auto);
  gap: .65rem;
  align-items: center;
  min-height: 54px;
  padding: .55rem .65rem;
  border: 1px solid rgba(10,93,94,.11);
  border-radius: 14px;
  color: #405c5b;
  background: #fff;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.mrv-courses-weekly__row:hover,
.mrv-courses-weekly__row:focus-visible {
  border-color: rgba(10,93,94,.24);
  background: #f4faf8;
}

.mrv-courses-weekly__day {
  display: grid;
  place-items: center;
  width: 42px;
  height: 32px;
  border-radius: 999px;
  color: #086867;
  background: #e7f2f0;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .05em;
}

.mrv-courses-weekly__time {
  color: #5e7070;
  font-size: .84rem;
  white-space: nowrap;
}

.mrv-courses-weekly__row strong {
  color: #233f3e;
  font-size: .9rem;
  font-weight: 750;
}

.mrv-courses-weekly__provider {
  color: #6d7d7c;
  font-size: .82rem;
  text-align: right;
}

.mrv-courses-showcase__empty {
  display: grid;
  gap: .35rem;
  min-height: 140px;
  place-content: center;
  padding: 1.5rem;
  border: 1px dashed rgba(10,93,94,.2);
  border-radius: 20px;
  color: #5c7473;
  background: rgba(246,251,250,.8);
  text-align: center;
}

.mrv-courses-showcase__empty--compact {
  min-height: 110px;
  margin-top: 1.25rem;
}

.mrv-courses-workshops,
.mrv-courses-people {
  margin-top: clamp(2.7rem, 5vw, 4.5rem);
}

.mrv-courses-showcase__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 0 .35rem;
}

.mrv-courses-workshops__controls {
  display: flex;
  gap: .45rem;
}

.mrv-courses-workshops__controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(10,93,94,.18);
  border-radius: 50%;
  color: #086867;
  background: #fff;
  cursor: pointer;
}

.mrv-courses-workshops__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: .2rem .15rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.mrv-workshop-card {
  position: relative;
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 320px;
  overflow: hidden;
  border: 1px solid rgba(10,93,94,.11);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(13,72,71,.07);
  scroll-snap-align: start;
}

.mrv-workshop-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8.8;
  overflow: hidden;
  background: #e8f1ef;
}

.mrv-workshop-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mrv-workshop-card__date {
  position: absolute;
  left: .85rem;
  top: .85rem;
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 66px;
  padding: .45rem;
  border-radius: 12px;
  color: #0a5d5e;
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 18px rgba(13,72,71,.12);
}

.mrv-workshop-card__date b {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.65rem;
  line-height: .95;
}

.mrv-workshop-card__date small {
  margin-top: .2rem;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .07em;
}

.mrv-workshop-card__copy {
  padding: 1.15rem 1.2rem 1.25rem;
}

.mrv-workshop-card h3 {
  margin: 0 0 .35rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.08;
}

.mrv-workshop-card__copy > p {
  margin: 0 0 .8rem;
  color: #607574;
  font-size: .9rem;
}

.mrv-workshop-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.1rem;
  color: #617473;
  font-size: .84rem;
  font-weight: 650;
}

.mrv-courses-people__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.mrv-person-card {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 158px;
  padding: .8rem;
  border: 1px solid rgba(10,93,94,.11);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(13,72,71,.06);
}

.mrv-person-card__media {
  display: grid;
  place-items: center;
  width: 105px;
  height: 132px;
  overflow: hidden;
  border-radius: 16px;
  color: #0a5d5e;
  background: linear-gradient(145deg, #e1f1ee, #fff);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
}

.mrv-person-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mrv-person-card h3 {
  margin: 0 0 .45rem;
  color: #0a5d5e;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.08;
}

.mrv-person-card p {
  margin: 0;
  color: #657877;
  font-size: .85rem;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .mrv-courses-showcase__hero {
    grid-template-columns: 1fr 1fr;
  }
  .mrv-courses-showcase__overview {
    grid-template-columns: 1fr;
  }
  .mrv-courses-featured {
    min-height: 430px;
  }
  .mrv-courses-people__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mrv-workshop-card {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 760px) {
  .mrv-courses-showcase__shell {
    width: calc(100% - 32px);
    padding-top: 3rem;
  }
  .mrv-courses-showcase__hero {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 26px;
  }
  .mrv-courses-showcase__hero-copy {
    padding: 2rem 1.35rem 1.6rem;
  }
  .mrv-courses-showcase__hero-copy h1 {
    max-width: none;
    font-size: clamp(2.55rem, 12vw, 3.8rem);
  }
  .mrv-courses-showcase__hero-media {
    min-height: 250px;
  }
  .mrv-courses-showcase__types {
    grid-template-columns: 1fr;
  }
  .mrv-courses-type-card {
    min-height: 0;
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 1.1rem;
  }
  .mrv-courses-type-card__icon {
    width: 52px;
    height: 52px;
  }
  .mrv-courses-featured {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .mrv-courses-featured__media {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 10;
  }
  .mrv-courses-featured__media::after {
    display: none;
  }
  .mrv-courses-featured__copy {
    width: 100%;
    min-height: 0;
    padding: 1.4rem;
  }
  .mrv-courses-featured h2 {
    max-width: none;
  }
  .mrv-courses-weekly {
    padding: 1.25rem;
  }
  .mrv-courses-weekly__row {
    grid-template-columns: 44px 1fr;
    gap: .3rem .65rem;
  }
  .mrv-courses-weekly__time {
    justify-self: start;
  }
  .mrv-courses-weekly__row strong,
  .mrv-courses-weekly__provider {
    grid-column: 2;
    text-align: left;
  }
  .mrv-workshop-card {
    flex-basis: 86%;
    min-width: 280px;
  }
  .mrv-courses-people__grid {
    grid-template-columns: 1fr;
  }
  .mrv-person-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .mrv-person-card__media {
    width: 88px;
    height: 112px;
  }
}


/* === Matilde 1.1.100: Kurse-Showcase – Desktop-Titel einzeilig + CTA-Kontrast === */
@media (min-width: 761px) {
  .mrv-courses-showcase .mrv-courses-type-card h2 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(1.28rem, 1.45vw, 1.55rem);
    letter-spacing: -.035em;
  }

  .mrv-courses-showcase .mrv-courses-showcase__section-head h2 {
    max-width: none;
    white-space: nowrap;
  }
}

.mrv .mrv-courses-showcase a.mrv-courses-featured__button,
.mrv .mrv-courses-showcase a.mrv-courses-featured__button:link,
.mrv .mrv-courses-showcase a.mrv-courses-featured__button:visited,
.mrv .mrv-courses-showcase a.mrv-courses-featured__button:hover,
.mrv .mrv-courses-showcase a.mrv-courses-featured__button:focus,
.mrv .mrv-courses-showcase a.mrv-courses-featured__button:focus-visible,
.mrv .mrv-courses-showcase a.mrv-courses-featured__button:active,
.mrv .mrv-courses-showcase a.mrv-courses-featured__button span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}


/* === Matilde 1.1.101: Kurse-Seite – Breite, Headerabstand und Anbieter-Ausrichtung === */
/* Nur die neue Kursuebersicht. Andere Matilde-Seiten bleiben unveraendert. */
.mrv-courses-showcase__shell {
  width: min(96vw, 1480px);
}

/* Anbieterprofile beginnen unabhaengig von der Textlaenge auf derselben Linie. */
.mrv-courses-showcase .mrv-person-card {
  align-items: start;
}

.mrv-courses-showcase .mrv-person-card__copy {
  min-width: 0;
  padding-top: .55rem;
}

.mrv-courses-showcase .mrv-person-card h3 {
  margin-top: 0 !important;
}

/* Desktop/Tablet: sichtbare Luft zwischen Theme-Navigation und Kurs-Hero. */
@media (min-width: 761px) {
  .mrv-courses-showcase__shell {
    padding-top: clamp(4.75rem, 5.5vw, 6.25rem);
  }
}

/* Smartphone: derselbe sichere Abstand unter Logo/Burger wie auf den bereits optimierten Seiten. */
@media (max-width: 760px) {
  .mrv-courses-showcase__shell {
    box-sizing: border-box;
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
    padding-top: 6.5rem;
  }

  .mrv-courses-showcase .mrv-person-card__copy {
    padding-top: .35rem;
  }
}


/* === Matilde 1.1.102: Anbieterprofile wie Workshops horizontal scrollbar === */
.mrv-courses-people__controls {
  display: flex;
  gap: .45rem;
}

.mrv-courses-people__controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(10,93,94,.18);
  border-radius: 50%;
  color: #086867;
  background: #fff;
  cursor: pointer;
}

.mrv-courses-people__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: .2rem .15rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.mrv-courses-people__track .mrv-person-card {
  flex: 0 0 calc((100% - 3rem) / 4);
  min-width: 250px;
  scroll-snap-align: start;
}

@media (max-width: 1100px) {
  .mrv-courses-people__track .mrv-person-card {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 760px) {
  .mrv-courses-people__track .mrv-person-card {
    flex-basis: 86%;
    min-width: 280px;
  }
}


/* === Matilde 1.1.103: Kurse-Typografie wie Räume & Ausstattung + letzte Raumkarten zentriert === */
/*
 * Die neue Kursübersicht verwendet exakt dieselbe typografische Skala wie
 * die Seite "Räume & Ausstattung": Georgia für redaktionelle Überschriften
 * und die bestehende Matilde-Systemschrift für Fließtext.
 */
.mrv-courses-showcase__hero-copy .mrv-kicker {
  font-size: clamp(.72rem, .85vw, .9rem);
  font-weight: 800;
  letter-spacing: .23em;
  line-height: 1.2;
}

.mrv-courses-showcase__hero-copy h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 4.3vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.02;
}

.mrv-courses-showcase__hero-copy > p:last-child {
  font-size: clamp(.98rem, 1.25vw, 1.15rem);
  line-height: 1.65;
}

.mrv-courses-showcase .mrv-courses-type-card h2,
.mrv-courses-showcase .mrv-workshop-card h3,
.mrv-courses-showcase .mrv-person-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.22rem, 1.55vw, 1.58rem);
  font-weight: 400;
  letter-spacing: -.018em;
  line-height: 1.05;
}

.mrv-courses-showcase .mrv-courses-type-card p,
.mrv-courses-showcase .mrv-workshop-card__copy > p,
.mrv-courses-showcase .mrv-person-card p {
  font-size: clamp(.82rem, .88vw, .92rem);
  line-height: 1.42;
}

.mrv-courses-showcase .mrv-courses-featured h2,
.mrv-courses-showcase .mrv-courses-weekly > h2,
.mrv-courses-showcase .mrv-courses-showcase__section-head h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 2.55vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.mrv-courses-showcase .mrv-courses-featured__excerpt,
.mrv-courses-showcase .mrv-courses-featured__price {
  font-size: clamp(.82rem, .88vw, .92rem);
  line-height: 1.42;
}

/* Desktop: acht Ausstattungskarten = 3 + 3 + zwei exakt zentrierte Karten. */
@media (min-width: 981px) {
  body.mrv-rooms-page .mrv-rooms-grid--reference {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card,
  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--4,
  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--5 {
    grid-column: span 2;
    width: 100%;
    justify-self: stretch;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--7 {
    grid-column: 2 / span 2;
    width: 100%;
    justify-self: stretch;
  }

  body.mrv-rooms-page .mrv-rooms-grid--reference .mrv-rooms-card--8 {
    grid-column: 4 / span 2;
    width: 100%;
    justify-self: stretch;
  }
}

/* === Matilde 1.1.105: einheitlicher Seitenstart unter der Navigation === */
/*
 * Raeume & Ausstattung nutzte historisch einen deutlich groesseren Abstand
 * als die inzwischen harmonisierten Kurs-/Kalenderseiten. Nur der obere
 * Seitenstart wird angeglichen; Layout und Innenabstaende bleiben unveraendert.
 */
@media (min-width: 761px) {
  body.mrv-rooms-page .mrv-rooms-page-shell {
    padding-top: clamp(4.75rem, 5.5vw, 6.25rem);
  }
}

@media (max-width: 760px) {
  body.mrv-rooms-page .mrv-rooms-page-shell {
    padding-top: 6.5rem;
  }
}



/* === Matilde 1.1.106: Kalender-Seitenstart wie Kurse und Räume === */
/*
 * Kalender, Kurse und Räume & Ausstattung beginnen jetzt mit derselben
 * Shell-Padding-Logik unter der Theme-Navigation. Nur der äußere Seitenstart
 * wird harmonisiert; Kalenderkarte und interne Abstände bleiben unverändert.
 */
@media (min-width: 761px) {
  body.mrv-plugin-page .mrv-calendar-wrap {
    box-sizing: border-box;
    padding-top: clamp(4.75rem, 5.5vw, 6.25rem);
  }
}

@media (max-width: 760px) {
  body.mrv-plugin-page .mrv-calendar-wrap {
    box-sizing: border-box;
    padding-top: 6.5rem;
  }

  body.mrv-plugin-page .mrv-calendar-wrap .mrv-calendar--month {
    margin-top: 0;
  }
}


/* Matilde 1.1.108 – lange Titel im Kursangebot harmonisch skalieren. */
.mrv-courses-showcase .mrv-courses-featured h2,
.mrv-courses-showcase .mrv-courses-featured h2 a {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.mrv-courses-showcase .mrv-courses-featured h2.is-long-title {
  max-width: 100%;
  font-size: clamp(1.65rem, 2.05vw, 2.18rem);
  line-height: 1.04;
  letter-spacing: -.022em;
}

.mrv-courses-showcase .mrv-courses-featured h2.is-very-long-title {
  max-width: 100%;
  font-size: clamp(1.48rem, 1.78vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -.018em;
}

@media (max-width: 640px) {
  .mrv-courses-showcase .mrv-courses-featured h2.is-long-title,
  .mrv-courses-showcase .mrv-courses-featured h2.is-very-long-title {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
    line-height: 1.04;
  }
}
